/* ===== Hotel Mesh — Premium Design System ===== */
/* Aesthetic: Luxury hotel — deep charcoal + warm gold + cream */

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

:root {
  --bg: #0f0d0a;
  --bg-2: #16130f;
  --surface: #1c1814;
  --surface-2: #221d17;
  --surface-3: #2a241d;
  --border: rgba(212,175,55,0.12);
  --border-strong: rgba(212,175,55,0.25);
  --text: #f5f0e6;
  --text-dim: #b8ac96;
  --text-mute: #7a7062;
  --gold: #d4af37;
  --gold-bright: #f0c75e;
  --gold-dark: #a8881e;
  --gold-soft: rgba(212,175,55,0.10);
  --cream: #f5f0e6;
  --emerald: #50c878;
  --emerald-soft: rgba(80,200,120,0.12);
  --crimson: #e57373;
  --crimson-soft: rgba(229,115,115,0.12);
  --amber: #f5a623;
  --amber-soft: rgba(245,166,35,0.12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-xs: 5px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow: 0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.5);
  --shadow-gold: 0 8px 32px rgba(212,175,55,0.15);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 1200px;
  --transition: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 80% 0%, rgba(212,175,55,0.06), transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 100%, rgba(212,175,55,0.04), transparent 70%);
}
a { color: var(--gold); text-decoration: none; transition: color 0.2s var(--transition); }
a:hover { color: var(--gold-bright); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; font-family: var(--font-body); font-weight: 600; }
p { color: var(--text-dim); }
ul, ol { color: var(--text-dim); padding-left: 1.3em; }
li { margin: 0.3em 0; }
code, pre { font-family: var(--font-mono); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

/* ===== Gold gradient text ===== */
.gold-text {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold), var(--gold-dark));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,13,10,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s var(--transition);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 70px; }
.brand { display: flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 700; color: var(--text); font-size: 1.25rem; letter-spacing: 0.02em; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
  display: grid; place-items: center; color: #1c1814; font-weight: 800; font-size: 1.1rem;
  font-family: var(--font-display);
  box-shadow: var(--shadow-gold);
}
.nav-links { display: flex; align-items: center; gap: 0.15rem; list-style: none; padding: 0; }
.nav-links a {
  color: var(--text-dim); font-size: 0.9rem; font-weight: 500;
  padding: 0.5rem 0.85rem; border-radius: var(--radius-sm); transition: all 0.2s var(--transition);
  position: relative;
}
.nav-links a::after {
  content: ""; position: absolute; bottom: 0.3rem; left: 50%; width: 0; height: 2px;
  background: var(--gold); transition: width 0.3s var(--transition); transform: translateX(-50%);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 60%; }
.nav-links a.active { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0.4rem 0.6rem; cursor: pointer; color: var(--text); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.65rem 1.3rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem;
  border: 1px solid transparent; cursor: pointer; transition: all 0.25s var(--transition); text-align: center;
  font-family: var(--font-body); position: relative; overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
  color: #1c1814; box-shadow: 0 4px 16px rgba(212,175,55,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,175,55,0.4); color: #1c1814; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--gold-soft); border-color: var(--gold); color: var(--gold-bright); }
.btn-danger { color: var(--crimson); border-color: rgba(229,115,115,0.3); background: transparent; }
.btn-danger:hover { background: var(--crimson-soft); border-color: var(--crimson); }
.btn-lg { padding: 0.85rem 1.6rem; font-size: 1rem; }

/* ===== Hero ===== */
.hero {
  position: relative; padding: 5rem 0 4rem; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 50% at 70% 20%, var(--gold-soft), transparent 60%),
    radial-gradient(circle 40% at 15% 80%, rgba(212,175,55,0.05), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: 1.2rem; }
.hero h1 .accent { display: block; font-style: italic; }
.hero .lead { font-size: 1.15rem; color: var(--text-dim); margin-bottom: 2rem; max-width: 42ch; line-height: 1.7; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 600;
  color: var(--gold); background: var(--gold-soft); padding: 0.35rem 0.9rem;
  border-radius: 999px; margin-bottom: 1.2rem; font-family: var(--font-mono);
  border: 1px solid var(--border-strong); letter-spacing: 0.05em;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-bright); box-shadow: 0 0 8px var(--gold); }

/* ===== Glass card ===== */
.glass-card {
  background: rgba(28,24,20,0.6);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}
.hero-card .card-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); margin-bottom: 1rem; font-family: var(--font-mono); }
.quick-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.75rem; }
.quick-stat { text-align: center; padding: 1.1rem 0.8rem; background: var(--surface-2); border-radius: var(--radius-sm); border: 1px solid var(--border); transition: all 0.25s var(--transition); }
.quick-stat:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.quick-stat .num { font-size: 1.5rem; font-weight: 700; color: var(--gold-bright); font-family: var(--font-mono); }
.quick-stat .lbl { font-size: 0.72rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.2rem; }

/* ===== Sections ===== */
.section { padding: 4rem 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 60ch; margin-bottom: 2.5rem; }
.section-head .eyebrow { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.section-head .eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.section-head h2 { font-family: var(--font-display); }
.section-head p { font-size: 1.05rem; }

/* ===== Card ===== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all 0.3s var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.3s var(--transition);
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: var(--shadow-gold); }
.card:hover::before { opacity: 1; }
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
  background: var(--gold-soft); color: var(--gold-bright); margin-bottom: 1rem;
  border: 1px solid var(--border-strong);
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 0.35rem; color: var(--text); }
.card p { font-size: 0.92rem; line-height: 1.6; }

/* ===== Step cards ===== */
.step-card {
  text-align: center; padding: 2rem 1.5rem;
}
.step-num {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-dark));
  display: grid; place-items: center; font-weight: 700; font-size: 1.3rem;
  font-family: var(--font-display); color: #1c1814;
  box-shadow: var(--shadow-gold);
}

/* ===== Stats band ===== */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.stat { text-align: center; padding: 1.5rem; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); }
.stat .num { font-size: 2.2rem; font-weight: 700; font-family: var(--font-display); }
.stat .lbl { font-size: 0.8rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3rem; }

/* ===== Badge ===== */
.badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; font-weight: 600; padding: 0.25rem 0.65rem; border-radius: 999px; font-family: var(--font-mono); }
.badge--ok { background: var(--emerald-soft); color: var(--emerald); }
.badge--err { background: var(--crimson-soft); color: var(--crimson); }
.badge--info { background: var(--gold-soft); color: var(--gold-bright); }
.badge--warn { background: var(--amber-soft); color: var(--amber); }

/* ===== Tables ===== */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead { background: var(--surface-2); }
th { text-align: left; padding: 0.9rem 1.1rem; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border-strong); white-space: nowrap; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
td { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border); color: var(--text-dim); }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: var(--surface-2); }
td.right, th.right { text-align: right; }
.income { color: var(--emerald) !important; }
.expense { color: var(--crimson) !important; }
.net { color: var(--gold-bright) !important; }

/* ===== Form ===== */
.form-row { display: grid; gap: 0.75rem; }
.form-row label { font-size: 0.78rem; font-weight: 600; color: var(--text-dim); display: block; margin-bottom: 0.35rem; text-transform: uppercase; letter-spacing: 0.03em; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 0.65rem 0.85rem; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); font-size: 0.92rem; font-family: var(--font-body);
  transition: all 0.2s var(--transition);
}
.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.form-row select option { background: var(--surface); color: var(--text); }

/* ===== Summary cards ===== */
.summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; position: relative; overflow: hidden; transition: all 0.3s var(--transition); }
.summary-card::before { content: ""; position: absolute; top: 0; left: 0; width: 4px; height: 100%; opacity: 0.8; }
.summary-card.income-card::before { background: var(--emerald); }
.summary-card.expense-card::before { background: var(--crimson); }
.summary-card.net-card::before { background: var(--gold); }
.summary-card.info-card::before { background: var(--amber); }
.summary-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.summary-card .lbl { font-size: 0.78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.summary-card .val { font-size: 1.7rem; font-weight: 700; font-family: var(--font-mono); }

/* ===== Callout ===== */
.callout { border-left: 3px solid var(--gold); background: var(--gold-soft); padding: 1rem 1.2rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 1.5rem 0; }
.callout strong { color: var(--text); }

/* ===== Tabs ===== */
.tabs { margin: 1.5rem 0; }
.tab-list { display: flex; gap: 0.25rem; border-bottom: 2px solid var(--border-strong); margin-bottom: 1.5rem; flex-wrap: wrap; }
.tab-btn { background: none; border: none; padding: 0.7rem 1.2rem; cursor: pointer; font-weight: 600; color: var(--text-dim); border-bottom: 2px solid transparent; margin-bottom: -2px; font-size: 0.92rem; font-family: var(--font-body); transition: all 0.2s var(--transition); }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== Page header ===== */
.page-header { padding: 3rem 0 2.5rem; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-header::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle 60% at 70% 0%, var(--gold-soft), transparent 60%); }
.page-header .eyebrow { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: var(--gold); text-transform: uppercase; letter-spacing: 0.1em; position: relative; }
.page-header h1 { margin: 0.5rem 0 0.7rem; font-family: var(--font-display); position: relative; }
.page-header p { font-size: 1.08rem; max-width: 60ch; position: relative; }

/* ===== Toast ===== */
.toast { position: fixed; bottom: 1.5rem; right: 1.5rem; background: var(--surface-3); color: var(--text); padding: 0.8rem 1.3rem; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: 0.88rem; font-family: var(--font-mono); border: 1px solid var(--border-strong); opacity: 0; transform: translateY(10px); transition: all 0.3s var(--transition); pointer-events: none; z-index: 200; }
.toast.show { opacity: 1; transform: translateY(0); }

/* ===== Chart bars (for reports) ===== */
.chart-bars { display: flex; gap: 0.5rem; align-items: flex-end; height: 120px; padding: 1rem 0; }
.chart-bar { flex: 1; border-radius: var(--radius-xs) var(--radius-xs) 0 0; min-height: 4px; position: relative; transition: all 0.3s var(--transition); }
.chart-bar:hover { filter: brightness(1.2); }
.chart-bar .bar-label { position: absolute; bottom: -1.5rem; left: 50%; transform: translateX(-50%); font-size: 0.7rem; color: var(--text-mute); white-space: nowrap; }

/* ===== Empty state ===== */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state .icon-circle { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-mute); }
.empty-state h3 { color: var(--text-dim); margin-bottom: 0.3rem; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 3rem 0 2rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 2rem; }
.footer-brand p { font-size: 0.9rem; margin-top: 0.6rem; max-width: 32ch; }
.footer-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 0.8rem; font-family: var(--font-mono); }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin: 0.4rem 0; }
.footer-col a { font-size: 0.9rem; color: var(--text-dim); }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-mute); }

/* ===== Animations ===== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
.animate-up { animation: fadeUp 0.6s var(--transition) backwards; }
.animate-in { animation: fadeIn 0.8s var(--transition) backwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border-strong); padding: 1rem; gap: 0.25rem; }
  .nav-toggle { display: inline-flex; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 3rem 0 2rem; }
  .section { padding: 2.5rem 0; }
}


/* ===== Modal ===== */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 300; display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.modal-overlay.show { display: flex; }
.modal { background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 2rem; max-width: 500px; width: 100%; box-shadow: var(--shadow-lg); }
.modal h3 { font-family: var(--font-display); margin-bottom: 1.5rem; font-size: 1.4rem; }
.modal-close { float: right; background: none; border: none; color: var(--text-mute); font-size: 1.5rem; cursor: pointer; line-height: 1; transition: color 0.2s; }
.modal-close:hover { color: var(--crimson); }
.modal-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1.5rem; }
/* ===== Chart bars ===== */
.chart-container { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 1rem 0; }
.chart-title { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-mute); margin-bottom: 1rem; font-family: var(--font-mono); }
.chart-bars { display: flex; gap: 0.75rem; align-items: flex-end; height: 160px; padding-bottom: 2rem; position: relative; }
.chart-bar-group { flex: 1; display: flex; gap: 3px; align-items: flex-end; height: 100%; position: relative; }
.chart-bar { flex: 1; border-radius: var(--radius-xs) var(--radius-xs) 0 0; min-height: 3px; transition: all 0.4s var(--transition); position: relative; }
.chart-bar.bar-income { background: linear-gradient(180deg, var(--emerald), rgba(80,200,120,0.4)); }
.chart-bar.bar-expense { background: linear-gradient(180deg, var(--crimson), rgba(229,115,115,0.4)); }
.chart-bar:hover { filter: brightness(1.3); }
.chart-bar .bar-val { position: absolute; top: -1.3rem; left: 50%; transform: translateX(-50%); font-size: 0.68rem; color: var(--text-dim); white-space: nowrap; font-family: var(--font-mono); }
.chart-bar .bar-lbl { position: absolute; bottom: -1.5rem; left: 50%; transform: translateX(-50%); font-size: 0.68rem; color: var(--text-mute); white-space: nowrap; }
.chart-legend { display: flex; gap: 1.5rem; margin-bottom: 1rem; }
.chart-legend-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.8rem; color: var(--text-dim); }
.chart-legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.chart-legend-dot.income { background: var(--emerald); }
.chart-legend-dot.expense { background: var(--crimson); }
/* ===== Export button ===== */
.btn-export { background: var(--surface-3); color: var(--gold-bright); border: 1px solid var(--border-strong); }
.btn-export:hover { background: var(--gold-soft); border-color: var(--gold); }
