:root {
  /* Fresh & Fashionable Palette */
  --primary: #0d9488;    /* Teal 600 - Fresh & Professional */
  --primary-light: #2dd4bf; /* Teal 400 */
  --accent: #f59e0b;     /* Amber 500 - Bright Gold */
  --accent-light: #fbbf24; /* Amber 400 */
  --bg: #f0fdfa;         /* Azure / Mint hints */
  --surface: #ffffff;    /* Pure White */
  --text-main: #334155;  /* Slate 700 */
  --text-muted: #64748b; /* Slate 500 */
  --border: #e2e8f0;     /* Slate 200 */
  
  /* Modern Shadows - Softer */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-gold: 0 4px 20px rgba(245, 158, 11, 0.2);
  
  /* Metrics */
  --radius: 8px; /* Softer corners */
  --header-height: 80px;
  
  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Noto Sans SC', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 2rem);
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-top: 0;
  line-height: 1.2;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

a { color: inherit; text-decoration: none; transition: all 0.3s ease; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.text-gold { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  border-radius: 2px;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(13, 148, 136, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-outline-light {
  border-color: rgba(255,255,255,0.8);
  color: white;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary);
}

.btn-outline-dark {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo { height: 48px; width: auto; }

.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  line-height: 1;
}
.brand-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  align-items: center;
}

.nav-list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-list a:hover { color: var(--primary); }
.nav-list a:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--primary); margin: 6px 0; transition: 0.3s; }

/* Sections */
.section { display: none; padding-bottom: 6rem; animation: fadeIn 0.8s ease; }
.section.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header { margin-bottom: 4rem; margin-top: 3rem; position: relative; }
.section-header::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 1.5rem auto 0;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* Hero */
.home-section { padding-top: 0; }
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  margin-bottom: 6rem;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: zoomSlow 20s infinite alternate;
}

@keyframes zoomSlow {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.9) 0%, rgba(45, 212, 191, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
}

.hero h1 {
  color: white;
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-cta { display: flex; gap: 1.5rem; justify-content: center; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: -8rem;
  position: relative;
  z-index: 10;
  margin-bottom: 6rem;
}

.feature-item {
  background: var(--surface);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 3px solid transparent;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--accent);
}

.feature-icon { font-size: 3rem; margin-bottom: 1.5rem; color: var(--accent); }
.feature-item h3 { font-size: 1.25rem; color: var(--primary); margin-bottom: 1rem; }
.feature-item p { color: var(--text-muted); font-size: 0.95rem; }

/* Shop */
.tabs {
  display: inline-flex;
  background: #f1f5f9;
  padding: 0.3rem;
  border-radius: 4px;
  gap: 0.3rem;
}

.tab {
  padding: 0.75rem 2rem;
  border-radius: 2px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-family: var(--font-body);
}

.tab.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.shop-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3rem;
  align-items: start;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
}

.product {
  background: var(--surface);
  transition: all 0.4s ease;
  border: 1px solid transparent;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.product img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: #f8fafc;
}

.product .meta { padding: 1.5rem; text-align: center; }
.product .title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.product .price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  font-family: 'Georgia', serif;
}

.product .actions {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.product:hover .actions { opacity: 1; transform: translateY(0); }
.product .actions .btn { flex: 1; padding: 0.6rem; font-size: 0.8rem; }

/* Cart */
.cart-sidebar { position: relative; }
.sticky-cart { position: sticky; top: calc(var(--header-height) + 2rem); }

.cart-card {
  background: var(--surface);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--primary);
}

.cart-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items {
  max-height: 400px;
  overflow-y: auto;
  padding: 1.5rem;
  min-height: 150px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; }

.cart-footer { padding: 1.5rem; background: #f8fafc; }
.cart-total { display: flex; justify-content: space-between; margin-bottom: 1.5rem; font-size: 1.2rem; font-weight: 700; color: var(--primary); }

/* Distribution Dashboard */
.distribution-dashboard { display: grid; grid-template-columns: 350px 1fr; gap: 3rem; }
.card {
  background: var(--surface);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.3s;
}

.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-header { padding: 1.5rem; border-bottom: 1px solid var(--border); background: #fafafa; }
.card-header h3 { font-size: 1.1rem; color: var(--primary); margin: 0; }

.form-group-stack { padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form-control {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  background: #fdfdfd;
  font-family: inherit;
  font-size: 0.95rem;
  transition: 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.promo-box { padding: 3rem 2rem; text-align: center; background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%); }
.promo-box h2 { font-size: 2.5rem; color: var(--accent); margin: 1rem 0 2rem; letter-spacing: 0.05em; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stat-card {
  background: var(--surface);
  padding: 2rem;
  text-align: center;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 4px; height: 100%;
  background: var(--accent);
}

.stat-card h4 { color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.stat-value { font-size: 2.5rem; font-weight: 700; color: var(--primary); font-family: 'Georgia', serif; margin: 0.5rem 0; }

.tree-viz { height: 500px; padding: 2rem; overflow: auto; background: #fdfdfd; border-radius: 4px; }
.tree-node {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.2rem;
  background: white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  transition: 0.3s;
}
.tree-node:hover { border-color: var(--accent); transform: translateX(5px); }
.tree-badge { font-size: 0.7rem; padding: 0.2rem 0.6rem; background: var(--primary); color: white; text-transform: uppercase; letter-spacing: 0.05em; }

/* Logs */
.log-list { max-height: 300px; overflow-y: auto; padding: 0.5rem 0; }
.log-item { padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 0.95rem; }
.log-item:last-child { border-bottom: none; }
.log-time { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.25rem; }
.log-amount { color: #10B981; font-weight: 700; font-family: 'Georgia', serif; }

/* Switch */
.switch-wrapper { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }
.toggle-switch { position: relative; display: inline-block; width: 50px; height: 26px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #cbd5e1; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(24px); }

/* Member Center */
.member-center { max-width: 1000px; margin: 0 auto; }
.member-header-card {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 4rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.member-header-card::after {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.avatar-placeholder {
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.05);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--accent);
  flex-shrink: 0;
}

.member-info h2 { color: white; margin: 0 0 0.5rem; font-size: 2.5rem; }
.member-info p { color: rgba(255,255,255,0.6); }

.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact-info {
  padding: 3rem;
  background: white;
  box-shadow: var(--shadow-lg);
  border-left: 5px solid var(--accent);
}

.contact-list li { margin-bottom: 1.5rem; font-size: 1.1rem; }
.contact-list .icon { color: var(--accent); min-width: 30px; }

.qr-code-box img { width: 120px; height: 120px; margin: 0 auto 0.5rem; }
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.gallery-grid img { height: 250px; border-radius: 2px; }

/* Footer */
.site-footer {
  background: white;
  color: var(--text-main);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
  border-top: 4px solid var(--accent);
}

.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { width: 120px; margin-bottom: 1rem; opacity: 1; }
.footer-brand p { font-size: 0.95rem; max-width: 350px; margin-top: 1rem; line-height: 1.6; }

.footer-links h4, .footer-contact h4 {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.footer-links a { display: block; margin-bottom: 1rem; transition: 0.3s; }
.footer-links a:hover { color: var(--accent); padding-left: 10px; }

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Modal */
.modal {
  border: none;
  padding: 0;
  box-shadow: var(--shadow-lg);
  width: 90%;
  max-width: 450px;
  background: white;
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal::backdrop { background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(5px); }
.modal-header { padding: 2rem; background: var(--primary); color: white; }
.modal-header h3 { color: white; font-size: 1.5rem; }
.close-modal { color: rgba(255,255,255,0.7); transition: 0.3s; }
.close-modal:hover { color: white; transform: rotate(90deg); }

.modal-body { padding: 2rem; }

/* Mobile */
@media (max-width: 768px) {
  h1 { font-size: 2.8rem; }
  .hero { height: 600px; }
  
  .nav-list {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    transition: transform 0.4s ease;
    z-index: 90;
    opacity: 0;
    pointer-events: none;
  }
  
  .nav-list.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: block; }
  
  .shop-layout, .distribution-dashboard, .contact-layout, .stats-row, .footer-content { grid-template-columns: 1fr; }
  .cart-sidebar { display: none; }
  .member-header-card { padding: 2rem; flex-direction: column; text-align: center; }
  .hero-cta { flex-direction: column; padding: 0 2rem; }
}
