@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@500;600;700&display=swap');

:root {
  --bg: #15171d;
  --bg-2: #1b1f27;
  --glass: rgba(255,255,255,0.06);
  --glass-strong: rgba(255,255,255,0.09);
  --text: #eef1f7;
  --muted: #aab3c5;
  --line: rgba(255,255,255,0.10);
  --gold: #d8b46a;
  --gold-2: #f0d59a;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0,0,0,.30);
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background:
    radial-gradient(circle at top left, rgba(216,180,106,.12), transparent 26%),
    radial-gradient(circle at top right, rgba(255,255,255,.06), transparent 22%),
    linear-gradient(180deg, #12141a 0%, #171a21 100%);
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}
h1, h2, h3, h4, .brand-font { font-family: var(--font-head); letter-spacing: .2px; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px; flex-shrink: 0; color: var(--text);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.sidebar-brand, .sidebar-wedding, .sidebar-footer { border-color: var(--line) !important; }
.sidebar-brand {
  display: flex; align-items: center; gap: 10px; padding: 22px 20px; border-bottom: 1px solid var(--line);
}
.sidebar-brand img { height: 34px; width: auto; display: block; }
.sidebar-brand-text { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: #fff; line-height: 1.1; }
.sidebar-brand-text small { display: block; font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--gold-2); letter-spacing: .08em; text-transform: uppercase; }

.sidebar-wedding { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.sidebar-wedding .names { font-weight: 700; color: #fff; font-size: 14px; }
.sidebar-wedding .date { color: var(--muted); font-size: 12px; margin-top: 2px; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 10px 12px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; margin-bottom: 4px;
  border-radius: 12px; color: var(--muted); font-size: 13.5px; font-weight: 600;
  transition: all .18s ease;
}
.sidebar-nav a .ico { width: 18px; text-align: center; opacity: .9; }
.sidebar-nav a:hover { background: var(--glass); color: #fff; }
.sidebar-nav a.active {
  background: linear-gradient(135deg, rgba(216,180,106,.18), rgba(255,255,255,.05));
  color: #fff; border: 1px solid rgba(216,180,106,.25);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.sidebar-footer { padding: 14px 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.sidebar-footer a { color: #fff; }
.sidebar-footer a:hover { color: var(--gold-2); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px;
  background: rgba(255,255,255,0.045);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.topbar h1 { font-size: 30px; margin: 0; line-height: 1.05; }
.topbar .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.topbar-user { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.topbar-user strong { color: var(--text); }
.mobile-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: #fff; }

.content { padding: 24px 28px 60px; }

.card, .form-card, .panel, .widget, .table-wrap, .auth-box, .stats-card {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card, .form-card, .panel, .widget, .auth-box, .stats-card { padding: 20px; margin-bottom: 20px; }
.card-title { font-size: 16px; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; justify-content: space-between; }
.card-title span.muted { font-weight: 500; color: var(--muted); font-size: 13px; }

p, li, label, td, th, input, select, textarea, .small, .muted { font-family: var(--font-body); }

input, select, textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
}
input::placeholder, textarea::placeholder { color: #8892a6; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(216,180,106,.45);
  box-shadow: 0 0 0 4px rgba(216,180,106,.12);
}

.btn, button, .button {
  border-radius: 14px;
  border: 1px solid rgba(216,180,106,.28);
  background: linear-gradient(135deg, rgba(216,180,106,.22), rgba(255,255,255,.08));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 16px;
}
.btn:hover, button:hover, .button:hover { filter: brightness(1.05); }

table { width: 100%; border-collapse: collapse; overflow: hidden; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--text); }
th { color: var(--gold-2); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

.badge, .status, .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(255,255,255,.08); color: #fff; border: 1px solid var(--line);
}

.login-page, .auth-page, .welcome-page {
  background:
    radial-gradient(circle at top left, rgba(216,180,106,.16), transparent 28%),
    linear-gradient(180deg, #12141a 0%, #171a21 100%);
  color: var(--text);
}

@media (max-width: 900px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: relative; }
  .topbar h1 { font-size: 24px; }
  .content { padding: 18px 16px 44px; }
}


/* ===== Compatibility fixes ===== */
.hero-countdown{
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:20px;
}
.grid{display:grid; gap:20px;}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr));}
.grid-5{grid-template-columns:repeat(5,minmax(0,1fr));}
.stat-card{
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.stat-card .label{color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.04em}
.stat-card .value{font-family:var(--font-head);font-size:28px;font-weight:700;color:#fff;margin-top:8px}
.stat-card .value.gold{color:var(--gold-2)}
.stat-card .foot{color:var(--muted);font-size:12px;margin-top:6px}
.progress-track{height:10px;border-radius:999px;overflow:hidden}
.progress-fill{height:100%;background:linear-gradient(90deg,var(--gold),var(--gold-2))}
@media (max-width: 900px){
  .hero-countdown{flex-direction:column;align-items:flex-start}
  .grid-5{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 600px){
  .grid-2,.grid-5{grid-template-columns:1fr}
}
