* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background: linear-gradient(135deg, #f6b26b 0%, #f9c88a 100%);
  color: #3a2a1a;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 4px 14px rgba(212, 140, 62, 0.25);
}

header h1 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  transition: transform 0.3s ease;
}

header h1:hover {
  transform: scale(1.02);
}

header > a {
  text-decoration: none;
  color: inherit;
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

nav a {
  color: #3a2a1a;
  text-decoration: none;
  margin-left: 10px;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: 600;
}

nav a:hover {
  background: rgba(255,255,255,0.38);
  transform: translateY(-2px);
}

nav a.nav-home-link {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

nav a.nav-home-link:hover {
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 8px rgba(142, 85, 25, 0.2);
}

@media (max-width: 600px) {
  header {
    flex-direction: column;
    gap: 15px;
    padding: 1rem;
  }
  nav {
    justify-content: center;
  }
  nav a {
    margin-left: 5px;
    padding: 6px 12px;
    font-size: 14px;
  }
}

.card {
  background: white;
  border-radius: 8px;
  padding: 30px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group label .required {
  color: red;
}

.form-group input, .form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.form-group input:focus {
  outline: none;
  border-color: #e79a4a;
}

.btn {
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: #e79a4a;
  color: white;
}

.btn-primary:hover {
  background: #cf8538;
}

.btn-secondary {
  background: #666;
  color: white;
}

.btn-danger {
  background: #d32f2f;
  color: white;
}

.btn-success {
  background: #388e3c;
  color: white;
}

.btn-small {
  padding: 8px 16px;
  font-size: 14px;
}

.alert {
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alert-error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.alert-success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

table th, table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

table th {
  background: #f5f5f5;
  font-weight: 600;
}

table tr:hover {
  background: #fafafa;
}

.promo-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  margin: 20px 0;
}

.promo-box .code {
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 15px 0;
  padding: 10px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 20px 0;
}

.info-item {
  padding: 15px;
  background: #f9f9f9;
  border-radius: 4px;
}

.info-item .label {
  color: #666;
  font-size: 14px;
}

.info-item .value {
  font-size: 18px;
  font-weight: 500;
  margin-top: 5px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.product-card {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card h3 {
  color: #1a237e;
  margin-bottom: 10px;
}

.product-card .price {
  font-size: 24px;
  color: #d32f2f;
  font-weight: bold;
  margin: 10px 0;
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status-unpaid {
  background: #fff3e0;
  color: #e65100;
}

.status-paid {
  background: #e8f5e9;
  color: #2e7d32;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  text-align: center;
}

.qr-code {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    margin: 5px;
  }

  .container {
    padding: 10px;
    width: 100%;
    overflow-x: hidden;
  }

  .card {
    padding: 15px;
    margin: 10px 0;
  }

  header h1 {
    font-size: 1.2rem;
  }

  header h1 img {
    height: 30px !important;
  }

  table {
    font-size: 14px;
  }

  table th, table td {
    padding: 8px;
  }
}
