/* ==============================================================================
   Kaya Social Club — Design System & Stylesheet
   Brand Aesthetic: Kayaseeds.de (Earthy organic greens, deep forest, gold & amber)
   ============================================================================== */

:root {
  --bg-primary: #08140c;
  --bg-secondary: #0e2215;
  --bg-surface: #122b1c;
  --bg-card: rgba(18, 43, 28, 0.75);
  --bg-card-hover: rgba(24, 56, 36, 0.85);
  --bg-input: #0a180f;

  --accent-emerald: #22c55e;
  --accent-emerald-light: #4ade80;
  --accent-emerald-dark: #15803d;
  --accent-gold: #f59e0b;
  --accent-gold-light: #fef08a;
  --accent-gold-dark: #b45309;
  --accent-amber: #d97706;

  --paypal-yellow: #ffc439;
  --paypal-yellow-hover: #f2ba32;
  --paypal-blue: #003087;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-emerald: #86efac;
  --text-gold: #fef08a;

  --border-subtle: rgba(74, 222, 128, 0.15);
  --border-highlight: rgba(245, 158, 11, 0.35);
  --border-focus: #4ade80;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 35px rgba(34, 197, 94, 0.15);
  --shadow-gold: 0 0 25px rgba(245, 158, 11, 0.2);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.6);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(34, 197, 94, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(14, 38, 23, 0.4) 0%, transparent 80%);
  background-attachment: fixed;
}

/* Background Leaf Pattern Subtle Watermark */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(34, 197, 94, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  z-index: 0;
}

/* 18+ Top Notification Bar */
.age-disclaimer-bar {
  background: linear-gradient(90deg, #1e1104, #2b1706, #1e1104);
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-gold-light);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 100;
}

.age-badge-18 {
  background: var(--accent-gold);
  color: #000;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.5px;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Header & Nav */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(8, 20, 12, 0.85);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 90;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-img {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 8px rgba(34, 197, 94, 0.3));
  transition: transform 0.3s ease;
}

.brand-link:hover .brand-logo-img {
  transform: rotate(5deg) scale(1.04);
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent-gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.brand-text .brand-tagline {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-emerald-light);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-badge-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-emerald-light);
}

.user-badge-pill .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-emerald-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-emerald-light) 0%, var(--accent-emerald) 100%);
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  color: #000000;
  font-weight: 800;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 100%);
  box-shadow: 0 6px 22px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

.btn-outline:hover {
  border-color: var(--accent-emerald-light);
  color: #ffffff;
  background: rgba(34, 197, 94, 0.08);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* PayPal Express Checkout Button */
.btn-paypal-express {
  width: 100%;
  background: var(--paypal-yellow);
  color: #111827;
  border: 1px solid #d97706;
  border-radius: var(--radius-full);
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 12px rgba(255, 196, 57, 0.25);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-paypal-express:hover {
  background: var(--paypal-yellow-hover);
  box-shadow: 0 6px 18px rgba(255, 196, 57, 0.4);
  transform: translateY(-1px);
}

.paypal-svg-icon {
  height: 20px;
  vertical-align: middle;
}

/* Section: Gate / Home Screen */
.gate-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 40px 20px;
}

.gate-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gate-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-emerald), var(--accent-gold), var(--accent-emerald));
}

.gate-logo-wrap {
  margin-bottom: 24px;
}

.gate-logo-wrap img {
  width: 120px;
  height: 120px;
  filter: drop-shadow(0 4px 18px rgba(34, 197, 94, 0.35));
}

.gate-title {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
  color: #ffffff;
}

.gate-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: #ffffff;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.form-textarea {
  resize: vertical;
  min-height: 85px;
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
  margin: 16px 0;
}

.form-checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent-emerald);
  width: 18px;
  height: 18px;
}

.gate-footer-links {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.gate-footer-links a {
  color: var(--accent-emerald-light);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.gate-footer-links a:hover {
  text-decoration: underline;
  color: #ffffff;
}

.demo-credentials-box {
  background: rgba(14, 38, 23, 0.6);
  border: 1px dashed rgba(74, 222, 128, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: left;
}

.demo-credentials-box code {
  color: var(--accent-gold-light);
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.85rem;
}

/* Alert Notification Messages */
.alert-msg {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.88rem;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-msg.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.alert-msg.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #86efac;
}

.alert-msg.warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde047;
}

/* Section: Products Store (Member Area) */
.store-section {
  padding: 40px 0 80px 0;
}

.store-hero {
  text-align: center;
  margin-bottom: 48px;
}

.store-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-gold-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.store-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 40%, #86efac 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.store-hero-desc {
  max-width: 650px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.merchant-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--accent-emerald-light);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.product-media {
  position: relative;
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  background: #06110a;
  overflow: hidden;
}

.product-media img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: rgba(8, 20, 12, 0.85);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.product-age-badge {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(185, 28, 28, 0.85);
  border: 1px solid #ef4444;
  color: #fff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 800;
}

.product-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-emerald-light);
  font-weight: 700;
  margin-bottom: 8px;
}

.product-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.product-attributes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.attribute-item {
  display: flex;
  justify-content: space-between;
}

.attribute-label {
  color: #94a3b8;
}

.attribute-val {
  color: #f1f5f9;
  font-weight: 600;
}

.product-purchase-row {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.price-display {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.price-amount {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  font-feature-settings: "tnum";
}

.price-currency {
  font-size: 1.1rem;
  color: var(--accent-gold);
  margin-right: 4px;
}

.product-weight-tag {
  font-size: 0.85rem;
  color: var(--accent-emerald-light);
  background: rgba(34, 197, 94, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.product-selectors-row {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.qty-select, .size-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-family: inherit;
  flex: 1;
}

/* Modal Overlay & Dialogs */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(4, 10, 6, 0.85);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px; right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Admin Dashboard Specifics */
.admin-badge {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-light);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.admin-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.admin-tab.active {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-emerald-light);
  border: 1px solid rgba(74, 222, 128, 0.3);
}

.request-card {
  background: rgba(10, 24, 15, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.request-card:hover {
  border-color: rgba(74, 222, 128, 0.4);
}

.request-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.request-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
}

.request-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.request-notes-quote {
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--accent-gold);
  padding: 8px 12px;
  margin: 12px 0;
  font-style: italic;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.request-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

/* Footer */
.site-footer {
  background: #040905;
  border-top: 1px solid rgba(74, 222, 128, 0.1);
  padding: 48px 0 32px 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-disclaimer-box {
  background: rgba(14, 38, 23, 0.3);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.footer-disclaimer-box strong {
  color: var(--accent-gold-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-wrapper {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .gate-card {
    padding: 30px 20px;
  }
  .store-hero-title {
    font-size: 1.8rem;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
}
