:root{
  --ink:#0A0A0B;
  --ink-2:#0E0E10;
  --surface:#141416;
  --surface-2:#1B1B1E;
  --line:rgba(255,255,255,0.09);
  --line-soft:rgba(255,255,255,0.055);
  --gold:#C9A24B;
  --gold-light:#E6C976;
  --gold-deep:#9A7A2E;
  --text:#F4F3EF;
  --muted:#8C8C91;
}

*{ -webkit-tap-highlight-color:transparent; box-sizing:border-box; }

html,body{ background:var(--ink); color:var(--text); }
body{ font-family:'Inter',ui-sans-serif,system-ui,sans-serif; letter-spacing:0.005em; }

h1,h2,h3,.serif{ font-family:'Cormorant Garamond','Playfair Display',serif; }

.app-bg{
  position:fixed; inset:0; z-index:-1;
  background:
    linear-gradient(180deg,#0D0D0E 0%, #0A0A0B 46%, #090909 100%);
}
.app-bg::after{
  content:""; position:absolute; inset:0;
  background:radial-gradient(130% 70% at 50% -20%, rgba(201,162,75,0.07), rgba(201,162,75,0) 55%);
}

.eyebrow{ font-size:11px; letter-spacing:0.24em; text-transform:uppercase; color:var(--muted); font-weight:500; }
.gold{ color:var(--gold); }
.hairline{ height:1px; background:var(--line); border:0; }

.sidebar{ background:var(--ink-2); border-right:1px solid var(--line-soft); }

.brand-logo{ width:140px; height:auto; display:block; margin:0 auto; }
.brand-tag{ font-size:9px; letter-spacing:0.34em; color:var(--muted); text-transform:uppercase; margin-top:10px; }

.nav-link{
  position:relative; display:flex; align-items:center; gap:14px;
  margin:3px 12px; border-radius:10px;
  padding:11px 14px; font-size:13.5px; font-weight:500;
  color:rgba(244,243,239,0.66); letter-spacing:0.03em;
  transition:color .3s ease, background .3s ease;
}
.nav-link i{ width:17px; text-align:center; font-size:15px; transition:color .3s ease; }
.nav-link:hover{ color:var(--text); }
.nav-link.active{
  background:linear-gradient(180deg,#D7B462,#B68C3B);
  color:#171206; font-weight:600;
}
.nav-link.active i{ color:#171206; }
.nav-link.danger{ color:rgba(201,162,75,0.85); }
.nav-link.danger:hover{ color:var(--gold-light); }

.topbar{
  background:
    radial-gradient(70% 220% at 58% 0%, rgba(170,136,62,0.5), rgba(10,10,11,0) 72%),
    linear-gradient(90deg, #0A0A0B 0%, #141208 45%, #0A0A0B 100%);
  border-bottom:1px solid var(--line-soft);
}
.topbar-ico{ color:rgba(244,243,239,0.55); transition:color .3s ease; font-size:17px; }
.topbar-ico:hover{ color:var(--gold); }

.card{
  background:linear-gradient(180deg, rgba(27,27,30,0.6), rgba(18,18,20,0.6));
  border:1px solid var(--line-soft); border-radius:10px;
  transition:border-color .35s ease, transform .35s ease;
}
.card-hover:hover{ border-color:rgba(201,162,75,0.28); }

.field{
  width:100%; background:rgba(255,255,255,0.025); border:1px solid var(--line);
  border-radius:8px; padding:12px 14px; color:var(--text); font-size:14px;
  transition:border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.field::placeholder{ color:#5f5f64; }
.field:focus{ outline:none; border-color:var(--gold); background:rgba(201,162,75,0.03); box-shadow:0 0 0 1px rgba(201,162,75,0.25); }
select.field{ appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23C9A24B' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; padding-right:38px; }
label.lbl{ display:block; font-size:11px; letter-spacing:0.14em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; font-weight:500; }

.btn-gold{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  background:var(--gold); color:#171206; font-weight:600; font-size:12.5px;
  letter-spacing:0.12em; text-transform:uppercase;
  border-radius:8px; padding:13px 22px; border:1px solid var(--gold);
  transition:background .3s ease, transform .08s ease, box-shadow .3s ease;
}
.btn-gold:hover{ background:var(--gold-light); box-shadow:0 8px 24px -10px rgba(201,162,75,0.6); }
.btn-gold:active{ transform:translateY(1px); }
.btn-ghost{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  background:transparent; color:var(--text); font-size:12.5px;
  letter-spacing:0.12em; text-transform:uppercase; font-weight:500;
  border:1px solid var(--line); border-radius:8px; padding:13px 22px;
  transition:border-color .3s ease, color .3s ease;
}
.btn-ghost:hover{ border-color:var(--gold); color:var(--gold); }

.link-gold{ color:var(--gold); position:relative; transition:color .3s ease; }
.link-gold:hover{ color:var(--gold-light); }

.cal-grid{ display:grid; grid-template-columns:repeat(7,1fr); }
.cal-dow{ text-align:center; font-size:13px; font-weight:600; color:#D6D6DA; padding-bottom:14px; }
.cal-cell{ position:relative; text-align:center; padding:12px 0 18px; }
.cal-cell .num{ font-size:15.5px; font-weight:700; color:var(--text); }
.cal-cell.out .num{ color:#3a3a3f; }
.cal-cell .u{ display:block; width:16px; height:1px; background:rgba(201,162,75,0.55); margin:8px auto 0; }
.cal-cell.out .u{ background:#2A2A2E; }
.cal-cell.today .num{ color:var(--gold-light); }
.cal-cell.today::after{ content:""; position:absolute; inset:4px 22%; border:1px solid rgba(201,162,75,0.45); border-radius:7px; }
.cal-dot{ position:absolute; top:6px; left:50%; transform:translateX(-50%); width:4px; height:4px; border-radius:50%; background:var(--gold); }
.cal-nav{ width:36px; height:36px; display:flex; align-items:center; justify-content:center; background:#1B1B1E; border:1px solid var(--line-soft); border-radius:9px; transition:all .3s ease; }
.cal-nav{ color:var(--gold); }
.cal-nav:hover{ border-color:var(--gold); color:var(--gold-light); }

.fab{
  position:fixed; right:28px; bottom:28px; z-index:30;
  width:54px; height:54px; border-radius:50%; background:var(--gold); color:#171206;
  display:flex; align-items:center; justify-content:center; font-size:18px;
  box-shadow:0 14px 34px -12px rgba(201,162,75,0.7);
  transition:transform .25s ease, background .3s ease;
}
.fab:hover{ background:var(--gold-light); transform:translateY(-2px) rotate(90deg); }

.modal-backdrop{ position:fixed; inset:0; z-index:50; background:rgba(5,5,6,0.72); backdrop-filter:blur(6px); }
.modal-card{ width:100%; max-width:470px; background:var(--surface); border:1px solid var(--line); border-radius:12px; }

::-webkit-scrollbar{ width:9px; height:9px; }
::-webkit-scrollbar-thumb{ background:#232327; border-radius:8px; }
::-webkit-scrollbar-thumb:hover{ background:#33333a; }

.tbl{ width:100%; border-collapse:collapse; }
.tbl th{ text-align:left; font-size:10.5px; text-transform:uppercase; letter-spacing:0.14em; color:var(--muted); padding:16px 18px; border-bottom:1px solid var(--line); font-weight:500; }
.tbl td{ padding:16px 18px; border-bottom:1px solid var(--line-soft); font-size:13.5px; color:rgba(244,243,239,0.9); }
.tbl tr:last-child td{ border-bottom:0; }
.tbl tr{ transition:background .25s ease; }
.tbl tbody tr:hover td{ background:rgba(201,162,75,0.02); }

.badge{ display:inline-block; padding:4px 11px; border-radius:999px; font-size:11px; font-weight:500; letter-spacing:0.05em; }

.ico-tile{ display:flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:10px; background:rgba(201,162,75,0.08); color:var(--gold); border:1px solid rgba(201,162,75,0.18); font-size:17px; }

.version{ font-style:italic; font-size:11px; color:#6E6E73; }

.reveal{ opacity:0; }
