/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  --green:      #2f4f4f;
  --green-light:#3d6464;
  --green-pale: #e8efef;
  --gold:       #c9a96e;
  --cream:      #f5f2ec;
  --white:      #ffffff;
  --text:       #1c1c1c;
  --text-muted: #6b6b6b;
  --border:     #ddd8d0;
  --radius:     6px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 6px 32px rgba(0,0,0,.12);
  --font-head:  'Cinzel', Georgia, serif;
  --font-body:  'Lato', Arial, sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 16px; color: var(--text); background: var(--cream); line-height: 1.65; }
img  { max-width: 100%; display: block; }
a    { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); text-decoration: underline; }

/* ── Container ──────────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--green);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.logo {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700;
  color: var(--white); letter-spacing: .04em;
}
.logo:hover { color: var(--gold); text-decoration: none; }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 8px; }
.main-nav a {
  color: rgba(255,255,255,.85); font-size: .9rem; padding: 6px 12px;
  border-radius: var(--radius); transition: color .2s, background .2s;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--white); background: rgba(255,255,255,.12); text-decoration: none;
}
.lang-switcher {
  color: var(--gold) !important; font-size: .85rem; border: 1px solid var(--gold);
  padding: 4px 10px !important; border-radius: 20px;
}
.lang-switcher:hover { background: var(--gold) !important; color: var(--green) !important; }

/* Mobile toggle */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--green); padding: 16px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 4px; }
}

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; background: var(--green); color: var(--white);
  padding: 11px 24px; border-radius: var(--radius); font-family: var(--font-body);
  font-size: .95rem; font-weight: 700; border: 2px solid var(--green);
  cursor: pointer; transition: background .2s, color .2s; text-align: center;
  line-height: 1.2;
}
.btn:hover { background: var(--green-light); border-color: var(--green-light); color: var(--white); text-decoration: none; }
.btn-sm { padding: 7px 16px; font-size: .85rem; }
.btn-outline {
  background: transparent; color: var(--green); border: 2px solid var(--green);
}
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--green); }
.btn-gold:hover { background: #b8954f; border-color: #b8954f; color: var(--white); }
.btn-danger { background: #c0392b; border-color: #c0392b; }
.btn-danger:hover { background: #a93226; border-color: #a93226; }
.btn-block { display: block; width: 100%; }

/* ── Alerts ─────────────────────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px; border-radius: var(--radius); margin: 20px 0;
  font-size: .95rem; border-left: 4px solid;
}
.alert-success { background: #eaf7ed; border-color: #2ecc71; color: #1a6b35; }
.alert-error   { background: #fdecea; border-color: #e74c3c; color: #922b21; }
.alert-info    { background: #eaf3fd; border-color: #3498db; color: #1a5276; }
.alert-warning { background: #fef9e7; border-color: #f39c12; color: #7d5a0a; }

/* ── Forms ──────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .9rem; color: var(--text); }
input[type=text], input[type=email], input[type=password],
input[type=number], select, textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem;
  background: var(--white); color: var(--text); transition: border-color .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--green);
}
textarea { min-height: 100px; resize: vertical; }
.form-check { display: flex; align-items: flex-start; gap: 10px; }
.form-check input[type=checkbox] { width: auto; margin-top: 3px; flex-shrink: 0; }
.form-check label { font-weight: 400; margin-bottom: 0; }
.form-error { color: #c0392b; font-size: .85rem; margin-top: 4px; }
.form-hint  { color: var(--text-muted); font-size: .85rem; margin-top: 4px; }

/* ── Cards ──────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; border: 1px solid var(--border);
}
.card-title { font-family: var(--font-head); font-size: 1.1rem; margin-bottom: 12px; color: var(--green); }

/* ── Page layouts ───────────────────────────────────────────────────────────── */
.site-main { min-height: calc(100vh - 120px); }
.page-hero {
  background: linear-gradient(135deg, var(--green) 0%, #1a3333 100%);
  color: var(--white); padding: 60px 0; text-align: center;
}
.page-hero h1 { font-family: var(--font-head); font-size: 2.2rem; margin-bottom: 12px; }
.page-hero p  { font-size: 1.1rem; opacity: .85; max-width: 600px; margin: 0 auto; }
.page-section { padding: 60px 0; }
.page-section-alt { background: var(--white); }
.section-title {
  font-family: var(--font-head); font-size: 1.8rem; color: var(--green);
  text-align: center; margin-bottom: 40px;
}
.section-title::after {
  content: ''; display: block; width: 50px; height: 3px;
  background: var(--gold); margin: 10px auto 0;
}

/* ── Landing: hero ──────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, #1a3333 60%, #2a3a2a 100%);
  min-height: 85vh; display: flex; align-items: center; text-align: center;
  color: var(--white); padding: 80px 0;
}
.hero-content h1 {
  font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700; margin-bottom: 20px; line-height: 1.2;
}
.hero-content p {
  font-size: 1.2rem; opacity: .85; max-width: 560px; margin: 0 auto 36px;
}
.hero-gold { color: var(--gold); }

/* ── Features ───────────────────────────────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.feature-card {
  text-align: center; padding: 36px 24px; background: var(--white);
  border-radius: var(--radius); box-shadow: var(--shadow); border-top: 4px solid var(--gold);
}
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-family: var(--font-head); color: var(--green); margin-bottom: 10px; }
.feature-card p  { color: var(--text-muted); font-size: .95rem; }

/* ── Pricing ────────────────────────────────────────────────────────────────── */
.pricing-toggle { text-align: center; margin-bottom: 36px; }
.cycle-btn {
  padding: 9px 24px; border: 2px solid var(--green); background: transparent;
  color: var(--green); cursor: pointer; font-family: var(--font-body); font-size: .95rem;
  transition: .2s;
}
.cycle-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.cycle-btn:last-child  { border-radius: 0 var(--radius) var(--radius) 0; }
.cycle-btn.active      { background: var(--green); color: var(--white); }
.save-badge { font-size: .75rem; background: var(--gold); color: var(--green); padding: 2px 8px; border-radius: 20px; margin-left: 6px; font-weight: 700; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; max-width: 700px; margin: 0 auto; }
.pricing-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
  border: 2px solid var(--border); transition: transform .2s, box-shadow .2s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured { border-color: var(--gold); }
.pricing-card-head {
  background: var(--green); color: var(--white); padding: 24px;
  text-align: center;
}
.pricing-card.featured .pricing-card-head { background: linear-gradient(135deg, var(--green), #1a3333); }
.pricing-name { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 8px; }
.pricing-price { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.pricing-price sup { font-size: 1rem; vertical-align: super; }
.pricing-price span { font-size: 1rem; opacity: .8; }
.pricing-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.pricing-desc { color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; }
.pricing-features { list-style: none; margin-bottom: 24px; flex: 1; }
.pricing-features li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.pricing-features li::before { content: '✓ '; color: var(--gold); font-weight: 700; }

/* ── Auth pages ─────────────────────────────────────────────────────────────── */
.auth-wrap { min-height: 80vh; display: flex; align-items: center; padding: 40px 0; }
.auth-card { max-width: 480px; width: 100%; margin: 0 auto; }

/* ── Dashboard ──────────────────────────────────────────────────────────────── */
.dashboard-wrap { padding: 40px 0; }
.dashboard-grid { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.sub-card { margin-bottom: 24px; }
.sub-badge {
  display: inline-block; padding: 4px 14px; border-radius: 20px;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.sub-badge.basic   { background: var(--green-pale); color: var(--green); }
.sub-badge.premium { background: #fef3dc; color: #7d5a0a; }
.sub-badge.none    { background: #fdecea; color: #922b21; }

.content-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn {
  padding: 8px 20px; border: 2px solid var(--border); background: var(--white);
  border-radius: var(--radius); cursor: pointer; font-family: var(--font-body);
  font-size: .9rem; color: var(--text); transition: .2s;
}
.tab-btn.active { background: var(--green); border-color: var(--green); color: var(--white); }

.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.content-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; border: 1px solid var(--border); transition: transform .2s;
}
.content-card:hover { transform: translateY(-2px); }
.content-card-thumb {
  height: 120px; background: var(--green-pale); display: flex; align-items: center;
  justify-content: center; font-size: 2.5rem; color: var(--green);
}
.content-card-body { padding: 14px; }
.content-card-title { font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.content-type-badge {
  display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 20px;
  background: var(--green-pale); color: var(--green); margin-bottom: 8px;
}
.content-locked-overlay {
  background: rgba(47,79,79,.07); border: 2px dashed var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
  color: var(--text-muted); font-size: .85rem;
}

@media (max-width: 768px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

/* ── Subscribe ──────────────────────────────────────────────────────────────── */
.subscribe-wrap { padding: 40px 0; }
.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.pay-method {
  border: 2px solid var(--border); border-radius: var(--radius); padding: 20px;
  cursor: pointer; transition: .2s; background: var(--white); text-align: center;
}
.pay-method:hover, .pay-method.selected { border-color: var(--green); background: var(--green-pale); }
.pay-method-icon { font-size: 2rem; margin-bottom: 8px; }
.pay-method h4 { font-family: var(--font-head); font-size: 1rem; color: var(--green); }
.pay-method p  { font-size: .85rem; color: var(--text-muted); margin-top: 6px; }
@media (max-width: 480px) { .payment-methods { grid-template-columns: 1fr; } }

/* ── Wire transfer page ─────────────────────────────────────────────────────── */
.wire-table { width: 100%; border-collapse: collapse; }
.wire-table tr { border-bottom: 1px solid var(--border); }
.wire-table th {
  text-align: left; padding: 12px 16px; width: 180px;
  color: var(--text-muted); font-weight: 400; font-size: .9rem;
  background: var(--cream);
}
.wire-table td { padding: 12px 16px; font-weight: 700; }
.wire-ref { font-size: 1.1rem; color: var(--green); font-family: monospace; }
.copy-btn {
  background: none; border: 1px solid var(--border); border-radius: 4px;
  cursor: pointer; font-size: .8rem; padding: 2px 8px; margin-left: 8px;
  color: var(--text-muted);
}
.copy-btn:hover { border-color: var(--green); color: var(--green); }

/* ── Admin ───────────────────────────────────────────────────────────────────── */
.admin-wrap { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--green); color: var(--white); padding: 24px 0;
  display: flex; flex-direction: column;
}
.admin-sidebar .sidebar-logo {
  font-family: var(--font-head); font-size: 1.1rem; padding: 0 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,.15); margin-bottom: 16px;
  color: var(--white);
}
.admin-sidebar nav a {
  display: block; color: rgba(255,255,255,.8); padding: 10px 20px;
  font-size: .9rem; transition: .2s;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active {
  color: var(--white); background: rgba(255,255,255,.12); text-decoration: none;
}
.admin-sidebar nav a.logout { color: #ff9a9a; margin-top: auto; }
.admin-content { padding: 32px; background: var(--cream); }
.admin-title { font-family: var(--font-head); font-size: 1.6rem; color: var(--green); margin-bottom: 24px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); text-align: center; border-top: 4px solid var(--gold); }
.stat-number { font-size: 2.2rem; font-weight: 700; color: var(--green); font-family: var(--font-head); }
.stat-label  { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }

table.data-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.data-table th { background: var(--green); color: var(--white); padding: 12px 16px; text-align: left; font-size: .85rem; font-weight: 700; }
.data-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: .9rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--cream); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.badge-active  { background: #eaf7ed; color: #1a6b35; }
.badge-pending { background: #fef9e7; color: #7d5a0a; }
.badge-expired { background: #f0f0f0; color: #666; }
.badge-basic   { background: var(--green-pale); color: var(--green); }
.badge-premium { background: #fef3dc; color: #7d5a0a; }

.admin-form { max-width: 700px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .admin-wrap { grid-template-columns: 1fr; } }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
.site-footer { background: var(--green); color: rgba(255,255,255,.7); padding: 24px 0; font-size: .85rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-nav a { color: rgba(255,255,255,.7); margin-left: 20px; }
.footer-nav a:hover { color: var(--white); }

/* ── Cookie banner ───────────────────────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: var(--green); color: var(--white); padding: 16px 20px;
  display: flex; align-items: center; justify-content: center;
}
.cookie-inner { max-width: 900px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; }
.cookie-inner p { font-size: .9rem; }
.cookie-inner a { color: var(--gold); }

/* ── Utility ─────────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }  .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }.mb-2 { margin-bottom: 16px; }.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; } .flex { display: flex; }
