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

:root {
  --background: #090909;
  --background-soft: #0d0d0d;
  --foreground: #f7f4ec;
  --card: #141414;
  --card-hover: #181818;
  --secondary: #1d1d1d;
  --muted: #202020;
  --muted-foreground: #aaa69b;
  --border: rgba(212, 175, 55, 0.2);
  --border-strong: rgba(212, 175, 55, 0.42);
  --gold: #d4af37;
  --gold-light: #efd578;
  --gold-dark: #9c771e;
  --danger: #e35a5a;
  --success: #45b879;
  --radius: 14px;
  --shadow: 0 20px 55px -25px rgba(212, 175, 55, 0.32);
  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(212, 175, 55, 0.13), transparent 62%),
    radial-gradient(720px 420px at -5% 105%, rgba(212, 175, 55, 0.09), transparent 62%),
    var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img { max-width: 100%; display: block; }
.app-shell { display: flex; min-height: 100vh; flex-direction: column; }
.main-content { flex: 1; }
.container { width: min(100% - 32px, 1180px); margin-inline: auto; }
.container-narrow { width: min(100% - 32px, 900px); margin-inline: auto; }
.page { padding-block: 64px; }
.page-header { margin-bottom: 40px; }
.page-header.center { text-align: center; }
.eyebrow { margin: 0; color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .3em; }
h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: -.01em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; font-size: clamp(2.4rem, 6vw, 4.1rem); line-height: 1.08; }
h2 { font-size: clamp(2rem, 4vw, 2.65rem); }
h3 { font-size: 1.3rem; }
.muted { color: var(--muted-foreground); }
.gold { color: var(--gold); }
.gold-gradient-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gold-border { border: 1px solid var(--border-strong); }
.gold-shadow { box-shadow: inset 0 1px 0 rgba(239, 213, 120, .15), var(--shadow); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(212,175,55,.14);
  background: rgba(9,9,9,.86);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: flex; align-items: center; gap: 11px; min-width: max-content; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand-title { font-family: var(--font-display); font-size: 18px; line-height: 1.1; }
.brand-subtitle { margin-top: 3px; color: var(--muted-foreground); font-size: 9px; text-transform: uppercase; letter-spacing: .24em; }
.desktop-nav { display: flex; align-items: center; gap: 2px; }
.nav-link { padding: 10px 11px; border-radius: 8px; color: rgba(247,244,236,.82); font-size: 14px; font-weight: 500; transition: .2s; }
.nav-link:hover, .nav-link.active { color: var(--gold); background: rgba(212,175,55,.06); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.mobile-menu-button { display: none; border: 0; background: transparent; padding: 8px; color: var(--gold); cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--border); padding: 10px 0 14px; }
.mobile-nav.open { display: block; }
.mobile-nav .nav-link, .mobile-nav button { display: block; width: 100%; text-align: left; border: 0; background: transparent; }

.btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 9px 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: transform .18s, opacity .18s, background .18s, border-color .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { color: #141006; background: linear-gradient(135deg, var(--gold-light), var(--gold-dark)); }
.btn-outline { color: var(--gold); border-color: var(--border-strong); background: transparent; }
.btn-outline:hover { color: #151005; background: var(--gold); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--secondary); }
.btn-danger { color: #fff; background: #8c2f2f; }
.btn-sm { min-height: 34px; padding: 7px 10px; font-size: 13px; }
.btn-lg { min-height: 48px; padding: 12px 20px; font-size: 15px; }
.icon-button { width: 36px; height: 36px; padding: 0; }

.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 60px; padding-block: 88px 100px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 12px; background: rgba(29,29,29,.75); color: var(--gold); font-size: 12px; }
.hero h1 { max-width: 760px; }
.hero-copy { max-width: 660px; color: var(--muted-foreground); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-logo-wrap { position: relative; display: grid; place-items: center; min-height: 390px; }
.hero-logo-glow { position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(212,175,55,.25), rgba(212,175,55,.06) 48%, transparent 70%); filter: blur(22px); }
.hero-logo { position: relative; width: min(92%, 390px); filter: drop-shadow(0 0 36px rgba(212,175,55,.34)); }

.feature-band { border-block: 1px solid rgba(212,175,55,.12); background: rgba(29,29,29,.23); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-block: 45px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.feature-card { padding: 26px; }
.feature-icon { width: 30px; height: 30px; color: var(--gold); }
.feature-card h3 { margin: 14px 0 7px; }
.feature-card p { margin: 0; color: var(--muted-foreground); font-size: 14px; line-height: 1.6; }

.section { padding-block: 64px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 0; }
.section-link { color: var(--gold); font-size: 14px; }
.section-link:hover { text-decoration: underline; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.empty-state { padding: 40px; text-align: center; color: var(--muted-foreground); }

.media-card { overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.media-card:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.55); box-shadow: var(--shadow); }
.media-frame { aspect-ratio: 16/9; overflow: hidden; background: var(--secondary); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.media-card:hover .media-frame img { transform: scale(1.04); }
.image-placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: var(--gold); background: var(--secondary); }
.card-body { padding: 20px; }
.card-body h3 { margin: 11px 0 8px; }
.card-body p { color: var(--muted-foreground); font-size: 14px; line-height: 1.6; }
.badges { display: flex; flex-wrap: wrap; gap: 7px; }
.badge { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 8px; color: var(--gold); font-size: 11px; }
.badge-secondary { border-color: transparent; background: var(--secondary); color: var(--foreground); }
.card-footer-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.card-action { color: var(--gold); font-size: 14px; }
.details-link { color: var(--muted-foreground); font-size: 12px; }

.package-card { position: relative; display: flex; min-height: 100%; flex-direction: column; padding: 28px; transition: transform .2s, box-shadow .2s; }
.package-card:hover { transform: translateY(-4px); }
.package-card.featured { border-color: rgba(212,175,55,.56); box-shadow: var(--shadow); }
.premium-label { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap; border-radius: 999px; padding: 6px 12px; background: var(--gold); color: #171106; font-size: 11px; font-weight: 700; }
.package-card h3 { margin-bottom: 9px; font-size: 27px; }
.package-description { min-height: 42px; color: var(--muted-foreground); font-size: 14px; }
.package-value { margin-top: 14px; font-size: 28px; font-weight: 700; }
.benefit-list { flex: 1; margin: 24px 0; padding: 0; list-style: none; }
.benefit-list li { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; color: rgba(247,244,236,.86); font-size: 14px; line-height: 1.45; }
.check { color: var(--gold); font-weight: 700; }

.cta-card { padding: 42px; text-align: center; }
.cta-card h2 { margin-bottom: 10px; }
.cta-card p { max-width: 700px; margin-inline: auto; color: var(--muted-foreground); line-height: 1.65; }
.cta-card .btn { margin-top: 18px; }

.about-grid, .hire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: start; }
.about-image, .hire-image { overflow: hidden; border: 1px solid var(--border-strong); border-radius: 18px; aspect-ratio: 4/3; background: var(--secondary); }
.about-image img, .hire-image img { width: 100%; height: 100%; object-fit: cover; }
.content-block { margin-bottom: 28px; }
.content-block h2 { margin-bottom: 9px; color: var(--gold); font-size: 25px; }
.content-block p, .preline { white-space: pre-line; color: rgba(247,244,236,.86); line-height: 1.75; }
.value-card { padding: 24px; }
.value-card h3 { color: var(--gold); }
.value-card p { color: rgba(247,244,236,.84); font-size: 14px; line-height: 1.7; white-space: pre-line; }
.contact-line { display: flex; align-items: center; gap: 9px; margin-top: 16px; color: rgba(247,244,236,.85); }

.auth-wrap { display: flex; min-height: 70vh; align-items: center; justify-content: center; padding-block: 48px; }
.auth-card { width: min(100%, 430px); text-align: center; }
.auth-logo { width: 72px; height: 72px; margin: 0 auto 10px; }
.auth-panel { margin-top: 24px; padding: 25px; text-align: left; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-radius: 10px; padding: 4px; background: var(--secondary); }
.tab-button { flex: 1; border: 0; border-radius: 7px; padding: 9px 12px; background: transparent; color: var(--muted-foreground); cursor: pointer; font-size: 14px; font-weight: 600; }
.tab-button.active { background: var(--card); color: var(--gold); box-shadow: 0 1px 8px rgba(0,0,0,.3); }
.tab-panel { margin-top: 20px; }

.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-row.three { grid-template-columns: 2fr 1fr; }
.field { display: grid; gap: 7px; }
.field label { color: rgba(247,244,236,.91); font-size: 13px; font-weight: 600; }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 9px;
  outline: none;
  padding: 10px 12px;
  background: #171717;
  color: var(--foreground);
  transition: border-color .18s, box-shadow .18s;
}
.input:focus, .textarea:focus, .select:focus { border-color: rgba(212,175,55,.6); box-shadow: 0 0 0 3px rgba(212,175,55,.09); }
.textarea { min-height: 105px; resize: vertical; line-height: 1.55; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 10px; }
.check-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 7px 10px; background: rgba(29,29,29,.55); font-size: 13px; }
.switch-row { display: flex; align-items: center; gap: 10px; }
.switch { appearance: none; width: 42px; height: 23px; border-radius: 999px; background: #343434; cursor: pointer; position: relative; transition: .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #eee; transition: .2s; }
.switch:checked { background: var(--gold-dark); }
.switch:checked::after { transform: translateX(19px); }
.help-text { color: var(--muted-foreground); font-size: 12px; line-height: 1.55; }

.upload-box { display: grid; grid-template-columns: 160px 1fr; gap: 14px; }
.upload-preview { height: 126px; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--secondary); }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-actions { display: grid; gap: 9px; align-content: start; }
.url-row { display: flex; gap: 8px; }

.admin-tabs { margin-bottom: 24px; }
.admin-list { display: grid; gap: 10px; }
.admin-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 16px; }
.admin-item-title { font-weight: 600; }
.admin-item-meta { margin-top: 5px; color: var(--muted-foreground); font-size: 12px; }
.admin-item-actions { display: flex; gap: 7px; }
.admin-header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.admin-header-row h2 { margin: 0; font-size: 26px; }
.user-item { grid-template-columns: 1fr 180px 130px; }

.stat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.stat-card { padding: 20px; min-width: 0; }
.stat-label { color: var(--muted-foreground); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.stat-value { margin-top: 9px; overflow: hidden; color: var(--gold); font-family: var(--font-display); font-size: 26px; text-overflow: ellipsis; white-space: nowrap; }
.stat-sub { margin-top: 4px; color: var(--muted-foreground); font-size: 11px; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; }
.dashboard-card { padding: 21px; }
.dashboard-card h3 { margin-bottom: 17px; color: var(--gold); font-size: 20px; }
.bar-chart { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: minmax(70px, 150px) 1fr 35px; align-items: center; gap: 10px; font-size: 12px; }
.bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-foreground); }
.bar-track { height: 14px; overflow: hidden; border-radius: 999px; background: #242424; }
.bar-fill { height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); }
.pie-layout { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 24px; }
.pie { width: 150px; aspect-ratio: 1; border-radius: 50%; position: relative; }
.pie::after { content: ""; position: absolute; inset: 33px; border-radius: 50%; background: var(--card); }
.legend { display: grid; gap: 8px; color: var(--muted-foreground); font-size: 12px; }
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.line-chart { width: 100%; height: 230px; overflow: visible; }
.data-list { margin: 0; padding: 0; list-style: none; }
.data-list li { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid rgba(212,175,55,.09); padding: 10px 0; font-size: 13px; }
.data-list li:last-child { border-bottom: 0; }
.data-list time { flex: 0 0 auto; color: var(--muted-foreground); font-size: 11px; }

.detail-card { overflow: hidden; }
.detail-image { aspect-ratio: 21/9; background: var(--secondary); }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-body { padding: 32px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 22px; color: var(--gold); font-size: 14px; }
.detail-description { color: rgba(247,244,236,.86); line-height: 1.8; white-space: pre-line; }

.site-footer { margin-top: 72px; border-top: 1px solid rgba(212,175,55,.13); background: rgba(7,7,7,.68); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; gap: 40px; padding-block: 44px; }
.footer-brand { display: flex; align-items: flex-start; gap: 13px; }
.footer-brand img { width: 50px; height: 50px; }
.footer-title, .footer-heading { color: var(--gold); font-family: var(--font-display); font-size: 18px; }
.footer-heading { margin-bottom: 12px; font-family: var(--font-sans); font-size: 14px; font-weight: 700; }
.footer-copy, .footer-column { color: var(--muted-foreground); font-size: 13px; line-height: 1.7; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin-bottom: 6px; }
.footer-links a:hover { color: var(--gold); }

.modal-root { position: fixed; inset: 0; z-index: 100; display: none; }
.modal-root.open { display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.76); backdrop-filter: blur(5px); }
.modal-panel { position: relative; width: min(100%, 690px); max-height: 91vh; overflow-y: auto; border: 1px solid var(--border-strong); border-radius: 17px; padding: 24px; background: #111; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.modal-header h2 { margin: 0; font-size: 26px; }
.modal-close { border: 0; background: transparent; color: var(--muted-foreground); font-size: 25px; cursor: pointer; }

.toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 10px; }
.toast { min-width: 260px; max-width: 390px; border: 1px solid var(--border-strong); border-radius: 11px; padding: 13px 15px; background: #151515; box-shadow: 0 20px 50px rgba(0,0,0,.55); font-size: 13px; animation: toast-in .2s ease-out; }
.toast.success { border-color: rgba(69,184,121,.55); }
.toast.error { border-color: rgba(227,90,90,.65); }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }
.page-loading { display: flex; min-height: 45vh; align-items: center; justify-content: center; gap: 11px; color: var(--muted-foreground); }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(212,175,55,.22); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-box { padding: 28px; text-align: center; }
.error-box h2 { color: var(--gold); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1080px) {
  .desktop-nav, .header-actions { display: none; }
  .mobile-menu-button { display: inline-flex; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; padding-block: 64px 72px; text-align: center; }
  .hero-copy { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-logo-wrap { min-height: 270px; }
  .hero-logo { width: min(72%, 290px); }
  .feature-grid, .grid-3, .about-grid, .hire-grid, .footer-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-item { grid-template-columns: 1fr; }
  .about-image, .hire-image { max-width: 640px; width: 100%; }
}
@media (max-width: 560px) {
  .container, .container-narrow { width: min(100% - 24px, 1180px); }
  .page, .section { padding-block: 44px; }
  .brand-subtitle { display: none; }
  .hero-grid { gap: 26px; }
  .hero-copy { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .feature-grid, .grid-4 { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .cta-card { padding: 28px 18px; }
  .form-row, .form-row.three, .upload-box { grid-template-columns: 1fr; }
  .upload-preview { width: 100%; }
  .admin-header-row { align-items: stretch; flex-direction: column; }
  .admin-item { grid-template-columns: 1fr; }
  .admin-item-actions { justify-content: flex-end; }
  .stat-grid { grid-template-columns: 1fr; }
  .pie-layout { grid-template-columns: 1fr; justify-items: center; }
  .modal-root.open { padding: 8px; }
  .modal-panel { padding: 18px; border-radius: 13px; }
  .detail-body { padding: 22px; }
  .toast-root { right: 10px; bottom: 10px; left: 10px; }
  .toast { min-width: 0; max-width: none; }
}
