@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
  --gold: #C8A84E;
  --gold-light: #E8D5A3;
  --gold-lighter: #F5ECD7;
  --gold-dark: #8B6914;
  --gold-gradient: linear-gradient(135deg, #C8A84E 0%, #E8D5A3 50%, #C8A84E 100%);
  --gold-gradient-btn: linear-gradient(135deg, #C8A84E 0%, #D4B85A 100%);
  --dark: #1A1A2E;
  --dark-soft: #2D2D44;
  --bg: #FDFBF7;
  --bg-alt: #F7F3EB;
  --card-bg: #FFFFFF;
  --text: #1A1A2E;
  --text-muted: #6B6B80;
  --border: #E8D5A3;
  --border-light: #F0E8D8;
  --shadow: 0 4px 24px rgba(200, 168, 78, 0.08);
  --shadow-lg: 0 12px 48px rgba(200, 168, 78, 0.12);
  --shadow-hover: 0 8px 32px rgba(200, 168, 78, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== TOPBAR ===== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.logo-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gold-gradient);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(200, 168, 78, 0.3);
}

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

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

nav a:hover {
  background: var(--gold-lighter);
  color: var(--gold-dark);
}

nav a i { margin-right: 6px; }

/* ===== CONTAINER ===== */
.container {
  padding: 32px;
  max-width: 1200px;
  margin: auto;
  min-height: calc(100vh - 180px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-gradient-btn);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  color: #fff;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(200, 168, 78, 0.25);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200, 168, 78, 0.35);
}

.btn:active { transform: translateY(0); }

.btn.ghost {
  background: transparent;
  color: var(--gold-dark);
  border: 1.5px solid var(--border);
  box-shadow: none;
}

.btn.ghost:hover {
  background: var(--gold-lighter);
  border-color: var(--gold);
  box-shadow: none;
  transform: none;
}

.btn.sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn.danger {
  background: linear-gradient(135deg, #dc3545, #c82333);
}

.btn i { font-size: 13px; }

/* ===== CARDS ===== */
.card {
  background: var(--card-bg);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

.card h2, .card h3 {
  margin-bottom: 16px;
  color: var(--dark);
}

.card h3 {
  font-size: 16px;
  font-weight: 700;
}

/* ===== GRIDS ===== */
.grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ===== FORMS ===== */
input, select, textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  margin-bottom: 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #FAFAF7;
  transition: var(--transition);
  outline: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200, 168, 78, 0.15);
  background: #fff;
}

label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== TABLES ===== */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
  background: var(--bg-alt);
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
}

tr:hover td {
  background: var(--gold-lighter);
}

/* ===== LAYOUT (sidebar + content) ===== */
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
}

.sidebar h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-sm);
  margin: 2px 0;
  transition: var(--transition);
}

.sidebar a:hover, .sidebar a.active {
  background: var(--gold-lighter);
  color: var(--gold-dark);
}

.sidebar a i {
  width: 18px;
  text-align: center;
  color: var(--gold);
}

.content { min-width: 0; }

/* ===== VIDEO ROW ===== */
.video-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.video-row:last-child { border-bottom: none; }

.video-row:hover {
  padding-left: 8px;
}

/* ===== PRE / CODE ===== */
pre {
  white-space: pre-wrap;
  background: var(--bg-alt);
  padding: 16px;
  border-radius: var(--radius-sm);
  max-height: 360px;
  overflow: auto;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--border-light);
}

code {
  background: var(--bg-alt);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--gold-dark);
}

hr {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 24px 0;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D44 60%, #3D3344 100%);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 168, 78, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 168, 78, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-block;
  background: rgba(200, 168, 78, 0.2);
  color: var(--gold-light);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(200, 168, 78, 0.3);
  letter-spacing: 0.5px;
}

.lead {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .btn {
  padding: 14px 28px;
  font-size: 15px;
}

.hero .btn.ghost {
  color: var(--gold-light);
  border-color: rgba(200, 168, 78, 0.4);
}

.hero .btn.ghost:hover {
  background: rgba(200, 168, 78, 0.15);
  border-color: var(--gold);
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 12px;
}

.hero .muted {
  color: rgba(255, 255, 255, 0.4);
}

/* Hero Feature Card */
.feature-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(200, 168, 78, 0.2);
  backdrop-filter: blur(10px);
  color: #fff;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(200, 168, 78, 0.4);
}

.feature-card h3 {
  color: var(--gold-light);
  font-size: 18px;
  margin-bottom: 16px;
}

.feature-card ul {
  list-style: none;
  padding: 0;
}

.feature-card ul li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.feature-card ul li:last-child { border-bottom: none; }

.feature-card ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 12px;
}

/* ===== STATS CARDS ===== */
.stat-card {
  text-align: center;
  padding: 28px;
}

.stat-card .stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FEATURE ICON CARDS ===== */
.icon-card {
  text-align: center;
  padding: 32px 24px;
}

.icon-card .icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--gold-lighter);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon-card .icon-wrap i {
  font-size: 24px;
  color: var(--gold-dark);
}

.icon-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.icon-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== LOGIN PAGE ===== */
.login-container {
  max-width: 480px;
  margin: 40px auto;
}

.login-container .card {
  padding: 40px;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-header .logo-text {
  width: 56px;
  height: 56px;
  font-size: 20px;
  margin: 0 auto 16px;
}

.login-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin-bottom: 8px;
}

.login-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.btn.google {
  width: 100%;
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow);
  justify-content: center;
  padding: 14px;
  font-size: 15px;
}

.btn.google:hover {
  background: var(--bg-alt);
  border-color: var(--border);
}

.btn.google img {
  width: 20px;
  height: 20px;
}

.btn.full {
  width: 100%;
  justify-content: center;
}

.form-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.form-footer a {
  color: var(--gold-dark);
  font-weight: 600;
  text-decoration: none;
}

/* ===== FLASH / ALERTS ===== */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}

.alert.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert.info {
  background: var(--gold-lighter);
  color: var(--gold-dark);
  border: 1px solid var(--border);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 14px;
}

.pagination .page-info {
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== COMPLIANCE / POLICY SECTIONS ===== */
.policy-section {
  margin-bottom: 32px;
}

.policy-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold-lighter);
  color: var(--dark);
}

.policy-section h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--dark-soft);
}

.policy-section p, .policy-section li {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 15px;
}

.policy-section ul {
  padding-left: 20px;
  margin: 12px 0;
}

.policy-section ul li {
  margin-bottom: 8px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px 32px 24px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 32px;
}

.footer h4 {
  color: var(--gold-light);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
}

.footer p {
  font-size: 14px;
  line-height: 1.7;
}

.footer a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 4px 0;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===== THUMB FORM ===== */
.thumb-form input[type=file] {
  padding: 14px;
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  cursor: pointer;
}

.thumb-form input[type=file]:hover {
  border-color: var(--gold);
  background: var(--gold-lighter);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { padding: 40px 24px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid.two { grid-template-columns: 1fr; }
  .grid.three { grid-template-columns: 1fr; }
  .grid.four { grid-template-columns: 1fr 1fr; }
  .container { padding: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .topbar {
    padding: 12px 16px;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }
  nav a {
    font-size: 13px;
    padding: 6px 10px;
  }
  .hero h1 { font-size: 26px; }
  .btn { font-size: 13px; padding: 10px 18px; }
  .section-title { font-size: 24px; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  .grid.four { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .btn.full, .actions .btn { width: 100%; justify-content: center; }
  .actions { flex-direction: column; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .card { padding: 16px; }
}
