:root {
  --bg: #080d18;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --text: #f8fbff;
  --text-muted: #a9b5cb;
  --accent: #ff6b66;
  --accent-strong: #ff4b53;
  --accent-soft: rgba(255, 107, 102, 0.18);
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, rgba(255, 107, 102, 0.14), transparent 35%),
    radial-gradient(circle at bottom right, rgba(88, 151, 255, 0.18), transparent 35%),
    var(--bg);
  color: var(--text);
}

button, input, textarea {
  font-family: inherit;
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
}

.brand h1 {
  font-size: 1.16rem;
  margin: 0;
}

.brand p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.menu-toggle {
  border: none;
  background: linear-gradient(135deg, var(--accent), #ff9d82);
  color: #fff;
  padding: 14px 20px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
}

.menu-panel,
.admin-overlay,
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.hidden {
  display: none !important;
}

.menu-panel {
  padding: 22px;
}

.menu-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
}

.menu-items {
  display: grid;
  gap: 14px;
  width: min(420px, 90vw);
}

.menu-items button,
.payment-button,
.primary-button {
  border: none;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff6b66 0%, #ff5577 100%);
  color: #ffffff;
  cursor: pointer;
  padding: 16px 20px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(255, 107, 102, 0.32);
}

.menu-items button:hover,
.payment-button:hover,
.primary-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(255, 107, 102, 0.48);
  background: linear-gradient(135deg, #ff7a77 0%, #ff6688 100%);
}

main {
  position: relative;
  min-height: 70vh;
}

.section {
  animation: fadeIn 0.3s ease both;
}

.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.page-heading h2 {
  margin: 0;
  font-size: 2rem;
}

.page-heading p {
  margin: 8px 0 0;
  color: var(--text-muted);
  max-width: 590px;
}

.product-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.product-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.15));
  pointer-events: none;
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
  background: #161d2b;
}

.product-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.product-card p {
  margin: 6px 0;
  color: var(--text-muted);
}

.product-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.product-card .price {
  font-size: 1.25rem;
  font-weight: 700;
}

.product-card .promo {
  color: #ffb3b0;
  font-weight: 700;
}

.product-card button {
  width: 100%;
  margin-top: 14px;
  background: linear-gradient(135deg, #ff6b66 0%, #ff5577 100%) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 0.95rem !important;
  box-shadow: 0 6px 18px rgba(255, 107, 102, 0.28);
}

.product-card button:hover {
  transform: translateY(-3px) !important;
 

.detail-card .cart-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 26px;
}

.detail-card .cart-actions button {
  background: linear-gradient(135deg, #ff5544 0%, #ff3366 100%) !important;
  color: #000000 !important;
  font-weight: 950 !important;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-size: 1.44rem !important;
  padding: 26px 36px !important;
  box-shadow: 0 0 0 3px rgba(255, 107, 102, 0.3), 0 16px 48px rgba(255, 85, 68, 0.56) !important;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-radius: 18px;
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.32);
  line-height: 1.4;
  filter: brightness(1.1) saturate(1.2);
}

.detail-card .cart-actions button:hover {
  transform: translateY(-8px) scale(1.04) !important;
  box-shadow: 0 0 0 4px rgba(255, 107, 102, 0.4), 0 24px 72px rgba(255, 85, 68, 0.72) !important;
  background: linear-gradient(135deg, #ff6655 0%, #ff4477 100%) !important;
  text-shadow: 0 3px 8px rgba(255, 255, 255, 0.42);
  filter: brightness(1.18) saturate(1.3);
}

.form-card button[class*="primary"],
.admin-panel button {
  background: linear-gradient(135deg, #ff6b66 0%, #ff5577 100%) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 1.05rem !important;
  padding: 18px 28px !important;
  box-shadow: 0 8px 24px rgba(255, 107, 102, 0.32);
  border: none;
  border-radius: 18px;
}

.form-card button[class*="primary"]:hover,
.admin-panel button:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 16px 48px rgba(255, 107, 102, 0.54) !important;
  background: linear-gradient(135deg, #ff7a77 0%, #ff6688 100%) !important;
} box-shadow: 0 12px 32px rgba(255, 107, 102, 0.42) !important;
  background: linear-gradient(135deg, #ff7a77 0%, #ff6688 100%) !important;
}

.detail-card,
.form-card,
.thank-card,
.admin-panel {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.detail-card {
  display: grid;
  gap: 24px;
}

.detail-card h2 {
  font-size: 2.2rem;
  color: #ffffff;
  margin: 0 0 16px;
  font-weight: 900;
  letter-spacing: -0.4px;
}

.detail-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #e8ecf5;
  margin: 12px 0;
}

.detail-card strong {
  color: #ffffff;
  font-weight: 800;
}

.detail-card img,
.quantity-preview img,
.payment-button img,
.thanks-icon img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 24px;
  background: #161d2b;
}

.detail-card h2,
.form-card h2,
.thank-card h2,
.admin-panel h2 {
  margin: 0 0 10px;
}

.detail-card .price-row,
.preview-row,
.payment-grid,
.cart-actions,
.admin-panel label {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.preview-row,
.payment-grid {
  gap: 16px;
}

.preview-row {
  display: grid;
  grid-template-columns: 1fr;
}

.preview-card {
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,0.08);
}

.preview-card h3 {
  margin: 0 0 6px;
}

.preview-card p,
.preview-card span {
  margin: 2px 0;
  color: var(--text-muted);
}

.quantity-input-row,
.admin-panel input,
.admin-panel textarea,
.form-card input,
.form-card textarea {
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  outline: none;
}

.form-card textarea {
  min-height: 140px;
  resize: vertical;
}

.back-button {
  border: none;
  background: transparent;
  color: var(--text);
  margin-bottom: 18px;
  font-size: 1rem;
  cursor: pointer;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
}

.payment-button {
  align-items: center;
  gap: 12px;
  padding: 18px;
  justify-content: center;
  text-align: center;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
}

.payment-button img {
  width: 56px;
  max-height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,0.08);
}

.payment-details {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 1.4fr;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cart-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.thank-card {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.thanks-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  position: relative;
}

.thanks-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255,107,102,0.4);
  animation: spin 2.8s linear infinite;
}

.thanks-icon img {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.admin-panel {
  width: min(560px, 90vw);
  position: relative;
}

.admin-panel label {
  gap: 8px;
}

.admin-note {
  margin-top: 14px;
  color: var(--text-muted);
}

.loading-box {
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 26px;
  border-radius: 26px;
  background: rgba(12, 16, 30, 0.96);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.15);
}

.loading-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255, 107, 102, 0.94);
  animation: spin 1.4s linear infinite;
}

.loading-box img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
}

.subtitle {
  margin-top: 14px;
  color: var(--text-muted);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 720px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
  }
  .payment-grid {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 1fr;
  }
}
