/* ============================================================
   AzTU Zal Rezervasiyası — dizayn sistemi
   ============================================================ */
:root {
  --navy: #1C2354;
  --navy-900: #0D1233;
  --navy-800: #151B45;
  --navy-700: #26307A;
  --blue: #3D5AFE;
  --blue-500: #4F7BFF;
  --blue-100: #E6ECFF;
  --blue-50: #F2F5FF;
  --gold: #F4B740;
  --gold-100: #FFF4DA;
  --green: #12A150;
  --green-100: #DFF7E9;
  --amber: #D97706;
  --amber-100: #FEF0D6;
  --red: #E11D48;
  --red-100: #FFE4EA;
  --gray-100: #EEF0F6;
  --gray-50: #F7F8FC;
  --text: #141833;
  --muted: #646B8A;
  --line: #E3E6F0;
  --bg: #F6F7FB;
  --card: #FFFFFF;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 64, .06), 0 2px 8px rgba(16, 24, 64, .05);
  --shadow: 0 10px 30px -10px rgba(16, 24, 64, .18), 0 4px 12px rgba(16, 24, 64, .06);
  --shadow-lg: 0 30px 60px -20px rgba(16, 24, 64, .35);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Montserrat', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; outline: none; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: #fff; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.muted-light { color: rgba(255, 255, 255, .65); }
.hidden { display: none !important; }

/* ---------- progress bar ---------- */
.page-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 100;
  background: linear-gradient(90deg, var(--gold), var(--blue-500));
  transition: width .4s var(--ease), opacity .3s;
}

/* ---------- logo ---------- */
.logo-mark {
  position: relative; width: 44px; height: 44px; border-radius: 12px; background: #fff;
  overflow: hidden; flex: none; box-shadow: 0 4px 14px rgba(28, 35, 84, .18);
}
.logo-mark img {
  position: absolute; left: 50%; top: 50%; height: 158%; width: auto; max-width: none;
  transform: translate(-50%, -36.5%);
}
.logo-mark.xl { width: 120px; height: 120px; border-radius: 30px; }

/* ---------- header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.topbar.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -12px rgba(16, 24, 64, .2); }
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.brand-text small { font-size: 12px; color: var(--muted); font-weight: 500; }
.brand-light { color: #fff; }
.brand-light .brand-text small { color: rgba(255, 255, 255, .6); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  position: relative; padding: 9px 14px; border-radius: 10px; color: var(--muted);
  font-weight: 600; font-size: 14px; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--navy); background: var(--gray-100); }
.nav a.active { color: var(--navy); }
.nav a.active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px;
  background: var(--blue); animation: grow .35s var(--ease);
}
@keyframes grow { from { transform: scaleX(0); } }
.nav a.nav-mobile-only { display: none; }
@media (max-width: 640px) { .nav a.nav-mobile-only { display: block; } }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.burger { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px; border: 0; cursor: pointer; white-space: nowrap;
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: 14px;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, opacity .2s;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(28, 35, 84, .5); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { --bg: linear-gradient(135deg, var(--blue) 0%, var(--navy-700) 100%); }
.btn-gold { --bg: var(--gold); --fg: var(--navy-900); }
.btn-ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-white { --bg: #fff; --fg: var(--navy); }
.btn-outline-light { --bg: rgba(255, 255, 255, .08); --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.btn-success { --bg: var(--green); }
.btn-danger { --bg: var(--red); }
.btn-soft-danger { --bg: var(--red-100); --fg: var(--red); }
.btn-sm { padding: 7px 13px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .6s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- bell & user menu ---------- */
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 12px; border: 0; cursor: pointer;
  background: var(--gray-100); color: var(--navy); display: grid; place-items: center; transition: background .2s;
}
.icon-btn:hover { background: var(--blue-100); }
.icon-btn svg { width: 20px; height: 20px; }
.badge-dot {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid #fff; animation: pop .4s var(--ease);
}
.bell-ring svg { animation: ring 1s ease; transform-origin: 50% 4px; }
@keyframes ring { 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } 50% { transform: rotate(0); } }
@keyframes pop { from { transform: scale(0); } 70% { transform: scale(1.2); } }
.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 360px; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
  opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; transform-origin: top right;
  transition: opacity .2s, transform .25s var(--ease); z-index: 60;
}
.dropdown.open .dropdown-panel { opacity: 1; transform: none; pointer-events: auto; }
.dropdown-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dropdown-head strong { font-family: var(--display); }
.link-btn { background: none; border: 0; color: var(--blue); font-weight: 600; cursor: pointer; font-size: 13px; padding: 0; }
.notif-list { max-height: 380px; overflow-y: auto; }
.notif {
  display: flex; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--gray-100); cursor: pointer;
  transition: background .2s; color: inherit;
}
.notif:hover { background: var(--gray-50); }
.notif.unread { background: var(--blue-50); }
.notif-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; font-size: 17px; }
.notif-body { min-width: 0; flex: 1; }
.notif-body strong { display: block; font-size: 14px; }
.notif-body p { margin: 2px 0 4px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.notif-body time { font-size: 12px; color: #9AA0B8; }
.notif .unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); margin-top: 6px; flex: none; }
.dropdown-foot { display: block; text-align: center; padding: 12px; font-weight: 600; font-size: 14px; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 14px; border: 0; background: var(--gray-100); cursor: pointer; transition: background .2s; }
.user-chip:hover { background: var(--blue-100); }
.avatar {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; font-weight: 700; font-size: 13px;
}
.user-chip .name { font-weight: 600; font-size: 14px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-panel { width: 240px; padding: 8px; }
.menu-panel a, .menu-panel button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 0; background: none; color: var(--text); font-weight: 500; font-size: 14px; cursor: pointer; text-align: left;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--gray-100); }
.menu-panel .menu-user { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu-panel .menu-user strong { display: block; }
.menu-panel .menu-user span { font-size: 12px; color: var(--muted); }

/* ---------- view transition ---------- */
.view { animation: viewIn .55s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { animation: viewIn .6s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: .06s; } .stagger > *:nth-child(3) { animation-delay: .12s; }
.stagger > *:nth-child(4) { animation-delay: .18s; } .stagger > *:nth-child(5) { animation-delay: .24s; }
.stagger > *:nth-child(6) { animation-delay: .3s; } .stagger > *:nth-child(n+7) { animation-delay: .36s; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(1200px 600px at 85% -10%, #3A47A8 0%, transparent 60%),
              radial-gradient(900px 500px at -10% 110%, #2A3590 0%, transparent 55%),
              linear-gradient(160deg, var(--navy-900), var(--navy) 60%, var(--navy-800));
  padding: 90px 0 120px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .25;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(60px); z-index: -1; opacity: .55; animation: float 14s ease-in-out infinite; }
.blob.b1 { width: 380px; height: 380px; background: #4F7BFF; top: -80px; right: 10%; }
.blob.b2 { width: 260px; height: 260px; background: var(--gold); bottom: -60px; left: 30%; opacity: .25; animation-delay: -5s; }
.blob.b3 { width: 200px; height: 200px; background: #8B5CF6; top: 40%; left: -60px; opacity: .3; animation-delay: -9s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(30px, -20px) scale(1.06); } 66% { transform: translate(-20px, 20px) scale(.95); } }
.hero-media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster { animation: heroZoom 28s ease-in-out infinite alternate; }
.hero-video { opacity: 0; transition: opacity 1.4s var(--ease); }
.hero-video.ready { opacity: 1; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(100deg, rgba(14, 18, 48, .94) 0%, rgba(22, 28, 72, .82) 42%, rgba(22, 28, 72, .45) 100%),
              linear-gradient(0deg, rgba(14, 18, 48, .75) 0%, transparent 35%);
}
.hero-media-on::before { display: none; }
.hero-caption {
  position: absolute; left: 24px; bottom: 20px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(255, 255, 255, .6); letter-spacing: .02em;
}
.hero-toggle {
  position: absolute; right: 20px; bottom: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(14, 18, 48, .45); color: #fff; cursor: pointer; backdrop-filter: blur(6px);
  transition: background .25s;
}
.hero-toggle:hover { background: rgba(255, 255, 255, .18); }
.hero-toggle[hidden] { display: none; }
.hero-toggle .i-play, .hero-toggle.paused .i-pause { display: none; }
.hero-toggle.paused .i-play { display: block; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 99px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); font-size: 13px; font-weight: 500;
  backdrop-filter: blur(8px);
}
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: pulse 2s infinite; margin-left: 4px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.hero h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 800; margin: 22px 0 18px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--gold), #FFD98A 50%, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: rgba(255, 255, 255, .75); max-width: 560px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--display); font-size: 32px; font-weight: 800; }
.hero-stats div span { font-size: 13px; color: rgba(255, 255, 255, .6); }
.hero-visual { position: relative; height: 440px; }
.glass {
  position: absolute; background: rgba(255, 255, 255, .96); color: var(--text); border-radius: 20px;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .5); padding: 20px;
}
.glass.cal { width: 330px; right: 40px; top: 10px; animation: bob 7s ease-in-out infinite; }
.glass.slot { width: 260px; left: 0; bottom: 30px; animation: bob 7s ease-in-out infinite -3.5s; }
.glass.ok { right: 0; bottom: 0; width: 230px; animation: bob 7s ease-in-out infinite -2s; display: flex; gap: 12px; align-items: center; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.mini-cal-head { display: flex; justify-content: space-between; font-weight: 700; font-family: var(--display); margin-bottom: 12px; font-size: 15px; }
.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; font-size: 12px; text-align: center; }
.mini-cal span { padding: 7px 0; border-radius: 8px; }
.mini-cal .h { color: var(--muted); font-weight: 600; font-size: 11px; }
.mini-cal .b { background: var(--blue-100); color: var(--blue); font-weight: 600; }
.mini-cal .s { background: var(--navy); color: #fff; font-weight: 700; animation: selPulse 2.4s infinite; }
@keyframes selPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61, 90, 254, .5); } 50% { box-shadow: 0 0 0 6px rgba(61, 90, 254, 0); } }
.mini-cal .x { color: #C5C9DA; }
.slot-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 10px; font-size: 13px; margin-top: 8px; }
.slot-row.busy { background: var(--gray-100); color: var(--muted); }
.slot-row.free { background: var(--green-100); color: var(--green); font-weight: 600; }
.slot-row.mine { background: var(--navy); color: #fff; font-weight: 600; }
.ok-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--green); display: grid; place-items: center; color: #fff; flex: none; }

/* ---------- sections ---------- */
.section { padding: 90px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-head .kicker { display: inline-block; color: var(--blue); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; color: var(--navy); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step {
  background: var(--card); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); position: relative; transition: transform .35s var(--ease), box-shadow .35s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step::before { counter-increment: s; content: '0' counter(s); position: absolute; top: 20px; right: 22px; font-family: var(--display); font-weight: 800; font-size: 40px; color: var(--gray-100); }
.step-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--blue-100); color: var(--blue); }
.step-icon svg { width: 26px; height: 26px; }
.step h3 { font-size: 17px; color: var(--navy); }
.step p { color: var(--muted); font-size: 14px; margin: 0; }
/* ---------- məkan kartları ---------- */
.venues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 240px; gap: 18px; }
.venue {
  position: relative; display: block; overflow: hidden; isolation: isolate; border-radius: 22px; color: #fff;
  background: var(--navy); box-shadow: var(--shadow-sm); text-decoration: none;
}
.venue:first-child { grid-column: span 2; grid-row: span 2; }
.venue img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.1s var(--ease); }
.venue::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 18, 48, 0) 35%, rgba(14, 18, 48, .88) 100%); transition: background .4s; }
.venue:hover img { transform: scale(1.06); }
.venue:hover::after { background: linear-gradient(180deg, rgba(14, 18, 48, .1) 20%, rgba(14, 18, 48, .92) 100%); }
.venue:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.venue-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; }
.venue-body small { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); font-weight: 600; }
.venue-body h3 { font-size: 22px; margin: 4px 0 8px; color: #fff; }
.venue:first-child .venue-body h3 { font-size: clamp(26px, 3vw, 36px); }
.venue-go { display: inline-flex; gap: 6px; font-size: 14px; font-weight: 600; color: var(--gold); opacity: .9; }
.venue-go span { transition: transform .3s var(--ease); }
.venue:hover .venue-go span { transform: translateX(4px); }
.venue-note {
  position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: 99px; font-size: 11px; font-weight: 600;
  background: rgba(14, 18, 48, .55); color: rgba(255, 255, 255, .85); backdrop-filter: blur(6px);
}
.venue-info {
  background: linear-gradient(150deg, var(--navy), var(--blue)); padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.venue-info > div { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.venue-info .fi { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 18px; }
.venue-info strong { font-size: 15px; }
.venue-info span:not(.fi) { font-size: 13px; color: rgba(255, 255, 255, .7); }
.venue-info .btn { align-self: flex-start; }
.cta-band {
  border-radius: 28px; padding: 56px; color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band::after { content: ''; position: absolute; width: 400px; height: 400px; border-radius: 50%; right: -100px; top: -150px; background: rgba(255, 255, 255, .08); z-index: -1; }
.cta-band h2 { font-size: 32px; margin: 0 0 8px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .75); }

/* ---------- events ---------- */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.event-card {
  background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: flex; gap: 18px; transition: transform .35s var(--ease), box-shadow .35s;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.date-badge {
  width: 64px; flex: none; border-radius: 14px; text-align: center; overflow: hidden; align-self: flex-start;
  background: var(--blue-50); border: 1px solid var(--blue-100);
}
.date-badge .m { background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 4px 0; letter-spacing: .06em; }
.date-badge .d { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--navy); padding: 4px 0 0; }
.date-badge .w { font-size: 11px; color: var(--muted); padding-bottom: 6px; }
.event-card h3 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 14px; height: 14px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--gray-100); color: var(--muted); }
.tag.blue { background: var(--blue-100); color: var(--blue); }
.tag.green { background: var(--green-100); color: var(--green); }
.tag.red { background: var(--red-100); color: var(--red); }

/* ---------- tədbir hesabatı ---------- */
.report-box { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--gold-100); border: 1px solid rgba(244, 183, 64, .45); font-size: 14px; }
.report-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; color: var(--navy); }
.report-head span { color: var(--muted); font-size: 13px; }
.report-box p { margin: 8px 0 0; color: var(--text); }
.report-photos { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.report-photos img { width: 120px; height: 84px; object-fit: cover; border-radius: 10px; display: block; border: 1px solid var(--line); }
.report-photos.edit { margin-top: 4px; }
.rp-photo { display: grid; gap: 4px; font-size: 13px; cursor: pointer; }
.rp-photo span { display: flex; gap: 6px; align-items: center; color: var(--red); }

/* ---------- həftəlik cədvəl ---------- */
.sch-table { table-layout: fixed; min-width: 900px; }
.sch-table th, .sch-table td { vertical-align: top; }
.sch-table thead th { font-size: 13px; white-space: normal; }
.sch-table tbody th { white-space: normal; }
.sch-table td { padding: 8px 6px; }
.sch-table thead th small, .sch-table tbody th small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.sch-table thead th.is-today { color: var(--blue); }
.sch-table tbody th { width: 150px; color: var(--navy); font-size: 14px; text-align: left; }
.sch-item { padding: 8px 10px; border-radius: 10px; background: var(--blue-50); border-left: 3px solid var(--navy); margin-bottom: 6px; font-size: 12.5px; line-height: 1.35; }
.sch-item b { color: var(--navy); }
.sch-item em { font-style: normal; font-size: 11px; font-weight: 700; color: var(--amber); margin-left: 6px; }
.sch-item span { display: block; font-weight: 600; color: var(--text); margin: 2px 0; }
.sch-item small { display: block; color: var(--muted); font-size: 11.5px; overflow-wrap: anywhere; }
.sch-item.pending { background: #fff; border: 1px dashed var(--amber); border-left: 3px dashed var(--amber); }
.sch-closed { padding: 8px 10px; border-radius: 10px; background: var(--red-100); color: var(--red); font-size: 12.5px; font-weight: 600; }
.sch-empty { color: #C5C9DA; }
.print-only { display: none; }

/* ---------- məxfilik ---------- */
.privacy { max-width: 860px; }
.privacy-sec + .privacy-sec { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.privacy-sec h2 { font-size: 19px; color: var(--navy); margin: 0 0 10px; }
.privacy-sec p, .privacy-sec li { color: var(--text); font-size: 15px; line-height: 1.65; }
.privacy-sec ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* ---------- status badges ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.pending { background: var(--amber-100); color: var(--amber); }
.status.pending::before { animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.status.approved { background: var(--green-100); color: var(--green); }
.status.rejected { background: var(--red-100); color: var(--red); }
.status.cancelled, .status.expired, .status.done { background: var(--gray-100); color: var(--muted); }

/* ---------- page header ---------- */
.page-head {
  background: linear-gradient(160deg, var(--navy-900), var(--navy)); color: #fff; padding: 48px 0 90px; position: relative; overflow: hidden;
}
.page-head::after { content: ''; position: absolute; width: 500px; height: 500px; border-radius: 50%; right: -150px; top: -250px; background: radial-gradient(circle, rgba(79, 123, 255, .5), transparent 70%); }
.page-head h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 8px; position: relative; z-index: 1; }
.page-head p { color: rgba(255, 255, 255, .7); margin: 0; position: relative; z-index: 1; max-width: 640px; }
.page-body { margin-top: -60px; position: relative; z-index: 2; padding-bottom: 80px; }
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 28px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-title h2, .card-title h3 { margin: 0; color: var(--navy); font-size: 19px; }

/* ---------- stepper ---------- */
.stepper { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.stepper .st { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 99px; background: var(--gray-100); color: var(--muted); font-weight: 600; font-size: 14px; transition: all .4s var(--ease); }
.stepper .st b { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 13px; transition: all .4s var(--ease); }
.stepper .st.on { background: var(--navy); color: #fff; }
.stepper .st.on b { background: var(--gold); color: var(--navy-900); }
.stepper .st.done { background: var(--green-100); color: var(--green); }
.stepper .st.done b { background: var(--green); color: #fff; }

/* ---------- booking ---------- */
.book-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; align-items: start; }
#calCard { position: sticky; top: 92px; }
.cal-head .tag { display: inline-flex; }

/* ---------- rooms ---------- */
.room-picker { margin-bottom: 24px; padding: 22px; }
.rooms { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.room {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; text-align: left; color: var(--text); transition: all .25s var(--ease); position: relative;
}
.room:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.room.on { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: 0 12px 24px -12px rgba(28, 35, 84, .7); }
.room.on small { color: rgba(255, 255, 255, .65); }
.room.on .room-ic { background: rgba(255, 255, 255, .12); }
.room-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--blue-50); display: grid; place-items: center; font-size: 20px; flex: none; transition: background .25s; }
.room-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.room-txt strong { font-size: 14px; }
.room-txt small { font-size: 12px; color: var(--muted); }
.room-thumb { overflow: hidden; padding: 0; }
.room-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.room:hover .room-thumb img { transform: scale(1.08); }
.room.on .room-thumb { box-shadow: 0 0 0 2px var(--gold); }

/* ---------- time inputs ---------- */
.time-grid { display: grid; grid-template-columns: 1fr auto 1fr 1fr; gap: 12px; align-items: end; }
.time-grid input[type="time"] { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--navy); padding: 11px 12px; }
.time-arrow { padding-bottom: 12px; color: var(--muted); font-size: 20px; }
.dur-box { border-radius: 12px; padding: 7px 14px; background: var(--gray-100); display: flex; flex-direction: column; justify-content: center; min-height: 50px; transition: background .3s, color .3s; }
.dur-box span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.dur-box strong { font-family: var(--display); font-size: 17px; color: var(--navy); }
.dur-box.ok { background: var(--green-100); }
.dur-box.ok strong { color: var(--green); }
.dur-box.bad { background: var(--red-100); }
.dur-box.bad strong { color: var(--red); }
.dur-box strong { animation: pop .35s var(--ease); }
.time-ok { margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: var(--green-100); color: var(--green); font-weight: 600; font-size: 14px; animation: viewIn .35s var(--ease); }
.gaps { margin-top: 16px; font-size: 13px; }
.gaps .chips { margin-top: 8px; }
.tl-block.selection.invalid { background: repeating-linear-gradient(-45deg, rgba(225, 29, 72, .85) 0 10px, rgba(190, 18, 60, .9) 10px 20px); border-left-color: #fff; }
@media (max-width: 1080px) { #calCard { position: static; } }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-head h3 { margin: 0; font-size: 20px; color: var(--navy); text-transform: capitalize; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; transition: all .2s; }
.cal-nav button:hover:not(:disabled) { background: var(--navy); color: #fff; border-color: var(--navy); }
.cal-nav button:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-grid .dow { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 0; text-transform: uppercase; letter-spacing: .04em; }
.day {
  position: relative; aspect-ratio: 1; border-radius: 12px; border: 1.5px solid transparent; background: var(--gray-50);
  cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-weight: 600; font-size: 15px; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  animation: viewIn .4s var(--ease) both; padding: 0;
}
.day:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--blue); background: #fff; box-shadow: var(--shadow-sm); }
.day:disabled { cursor: not-allowed; color: #C2C6D6; background: transparent; }
.day.out { visibility: hidden; }
.day.today { border-color: var(--gold); }
.day.today::after { content: 'Bu gün'; position: absolute; top: 3px; font-size: 8.5px; font-weight: 700; color: #A86B00; text-transform: uppercase; }
.day.closed { background: repeating-linear-gradient(-45deg, transparent 0 6px, #F0F1F6 6px 8px); }
.day.blocked { background: var(--red-100); color: #F28CA2; }
.day.selected { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 10px 20px -8px rgba(28, 35, 84, .6); transform: scale(1.05); }
.day .dots { display: flex; gap: 3px; height: 6px; }
.day .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); }
.day .dots i.p { background: var(--amber); }
.day.selected .dots i { background: var(--gold); }
.day.full .num { text-decoration: line-through; opacity: .6; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.timeline { position: relative; border-left: 2px solid var(--line); margin: 8px 0 0 52px; }
.tl-hour { position: relative; height: 34px; }
.tl-hour span { position: absolute; left: -52px; top: -9px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-hour::before { content: ''; position: absolute; left: -5px; top: 0; width: 8px; height: 2px; background: var(--line); }
.tl-block {
  position: absolute; left: 10px; right: 0; border-radius: 10px; padding: 6px 12px; font-size: 12.5px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; line-height: 1.3; animation: slideIn .45s var(--ease) both;
}
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } }
.tl-block.approved { background: var(--blue-100); color: var(--navy); border-left: 4px solid var(--blue); }
.tl-block.pending { background: var(--amber-100); color: #8A4B00; border-left: 4px solid var(--amber); }
.tl-block.mine { box-shadow: inset 0 0 0 1.5px currentColor; }
.tl-block.selection {
  background: linear-gradient(135deg, rgba(61, 90, 254, .9), rgba(28, 35, 84, .95)); color: #fff; border-left: 4px solid var(--gold);
  box-shadow: 0 10px 24px -10px rgba(61, 90, 254, .8); z-index: 2; transition: top .35s var(--ease), height .35s var(--ease);
  animation: none;
}
.tl-block strong { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer;
  font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums; transition: all .2s var(--ease);
}
.chip:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 6px 14px -6px rgba(28, 35, 84, .6); }
.chip:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.subhead { font-size: 13px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.subhead:first-child { margin-top: 0; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .ei { width: 72px; height: 72px; border-radius: 20px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; margin: 0 auto 16px; font-size: 32px; animation: bob 4s ease-in-out infinite; }
.empty-state h3 { color: var(--navy); font-size: 18px; }
.summary {
  background: linear-gradient(160deg, var(--navy-900), var(--navy)); color: #fff; border-radius: var(--radius); padding: 24px; margin-top: 22px;
  position: relative; overflow: hidden;
}
.summary::after { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; right: -60px; top: -80px; background: rgba(244, 183, 64, .18); }
.summary h4 { margin: 0 0 14px; font-size: 15px; color: var(--gold); text-transform: uppercase; letter-spacing: .08em; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
.summary dt { color: rgba(255, 255, 255, .6); }
.summary dd { margin: 0; font-weight: 600; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.field label .req { color: var(--red); }
.input, .field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff;
  transition: border-color .2s, box-shadow .2s; outline: none; font-size: 14.5px;
}
.field textarea { min-height: 96px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(61, 90, 254, .12); }
.field input:user-invalid, .field select:user-invalid { border-color: var(--red); }
.field .hint { font-size: 12px; color: var(--muted); }
.input-icon { position: relative; }
.input-icon .toggle-pass { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line);
  cursor: pointer; font-size: 13.5px; transition: all .2s; user-select: none;
}
.check:hover { border-color: var(--blue); }
.check input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; flex: none; }
.check:has(input:checked) { border-color: var(--navy); background: var(--blue-50); }
.strength { height: 5px; border-radius: 5px; background: var(--gray-100); overflow: hidden; margin-top: 4px; }
.strength i { display: block; height: 100%; width: 0; transition: width .4s var(--ease), background .4s; }
.form-error {
  background: var(--red-100); color: var(--red); padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 500;
  display: flex; gap: 8px; align-items: center; animation: shake .4s;
}
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side {
  position: relative; overflow: hidden; color: #fff; padding: 60px; display: flex; flex-direction: column; justify-content: center; isolation: isolate;
  background: linear-gradient(160deg, rgba(14, 18, 48, .93), rgba(28, 35, 84, .82)), url(/media/campus-2.jpg) center / cover no-repeat, var(--navy);
}
.auth-side h2 { font-size: 36px; font-weight: 800; margin: 28px 0 14px; }
.auth-side p { color: rgba(255, 255, 255, .7); font-size: 16px; max-width: 420px; }
.auth-side ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; align-items: center; color: rgba(255, 255, 255, .85); }
.auth-side li i { width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 255, 255, .1); display: grid; place-items: center; font-style: normal; flex: none; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-box { width: min(520px, 100%); }
.auth-box h1 { font-size: 30px; color: var(--navy); font-weight: 800; }
.segmented { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--gray-100); border-radius: 14px; padding: 5px; margin: 22px 0; }
.segmented button { position: relative; z-index: 1; border: 0; background: none; padding: 12px; font-weight: 700; cursor: pointer; color: var(--muted); border-radius: 10px; transition: color .3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.segmented button.on { color: var(--navy); }
.segmented .thumb { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); background: #fff; border-radius: 10px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease); }
.segmented[data-v="student"] .thumb { transform: translateX(100%); }
.role-fields { animation: viewIn .45s var(--ease) both; }

/* ---------- my reservations ---------- */
.tabs { display: flex; gap: 6px; background: var(--gray-100); padding: 5px; border-radius: 14px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; transition: all .25s; display: flex; align-items: center; gap: 7px; }
.tabs button.on { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.tabs .count { background: var(--gray-100); color: var(--muted); padding: 1px 8px; border-radius: 99px; font-size: 12px; }
.tabs button.on .count { background: var(--navy); color: #fff; }
.res-list { display: grid; gap: 14px; margin-top: 20px; }
.res-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 20px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: box-shadow .3s, transform .3s var(--ease);
}
.res-card:hover { box-shadow: var(--shadow); }
.res-card h3 { font-size: 17px; color: var(--navy); margin-bottom: 6px; }
.res-card .note { margin-top: 10px; font-size: 13px; padding: 9px 12px; border-radius: 10px; background: var(--gray-50); border-left: 3px solid var(--muted); }
.res-card .note.rejected { background: var(--red-100); border-color: var(--red); }
.res-card .note.approved { background: var(--green-100); border-color: var(--green); }
.res-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.res-actions .btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- admin ---------- */
.admin-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-layout > * { min-width: 0; }
.side-nav { position: sticky; top: 92px; padding: 10px; }
.side-nav button {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 12px; border: 0; background: none;
  cursor: pointer; font-weight: 600; color: var(--muted); font-size: 14px; text-align: left; transition: all .2s;
}
.side-nav button:hover { background: var(--gray-100); color: var(--navy); }
.side-nav button.on { background: var(--navy); color: #fff; }
.side-nav button .count { margin-left: auto; background: var(--gold); color: var(--navy-900); padding: 1px 8px; border-radius: 99px; font-size: 12px; }
.side-nav svg { width: 18px; height: 18px; flex: none; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi strong { display: block; font-family: var(--display); font-size: 32px; font-weight: 800; color: var(--navy); margin-top: 4px; }
.kpi .ki { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; }
.bars { display: flex; align-items: flex-end; gap: 14px; height: 200px; padding-top: 20px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar i { display: block; width: 100%; max-width: 48px; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--blue-500), var(--navy)); transform-origin: bottom; animation: barUp .9s var(--ease) both; position: relative; min-height: 4px; }
.bar i b { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-size: 12px; font-style: normal; color: var(--navy); }
.bar span { font-size: 12px; color: var(--muted); }
@keyframes barUp { from { transform: scaleY(0); } }
.hbar { display: grid; grid-template-columns: 1fr 3fr auto; gap: 12px; align-items: center; font-size: 13px; margin-bottom: 10px; }
.hbar .track { height: 10px; background: var(--gray-100); border-radius: 10px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), #F59E0B); border-radius: 10px; transform-origin: left; animation: barX .9s var(--ease) both; }
@keyframes barX { from { transform: scaleX(0); } }
.req-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; margin-bottom: 14px; animation: viewIn .5s var(--ease) both; transition: opacity .4s, transform .4s var(--ease); }
.req-card.leaving { opacity: 0; transform: translateX(40px) scale(.98); }
.req-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; margin: 16px 0; padding: 16px; background: var(--gray-50); border-radius: 12px; font-size: 13.5px; }
.req-grid dt { color: var(--muted); font-size: 12px; }
.req-grid dd { margin: 0; font-weight: 600; }
.req-desc { font-size: 14px; color: #3A3F5C; white-space: pre-wrap; }
.req-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; margin-top: 12px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .input { max-width: 280px; padding: 10px 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--gray-50); padding: 12px 14px; white-space: nowrap; }
td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
tr:hover td { background: var(--gray-50); }
.switch { position: relative; width: 42px; height: 24px; border-radius: 99px; background: #CBD0E0; border: 0; cursor: pointer; transition: background .25s; flex: none; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch.on { background: var(--green); }
.switch.on::after { transform: translateX(18px); }

/* ---------- profile ---------- */
.profile-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.profile-card { text-align: center; }
.profile-card .avatar { width: 96px; height: 96px; border-radius: 28px; font-size: 34px; margin: 0 auto 16px; font-family: var(--display); }
.profile-card h2 { font-size: 21px; color: var(--navy); margin-bottom: 4px; }
.profile-info { text-align: left; margin-top: 20px; display: grid; gap: 12px; font-size: 14px; }
.profile-info div { display: flex; flex-direction: column; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.profile-info span { font-size: 12px; color: var(--muted); }

/* ---------- rules / faq ---------- */
.rules-list { counter-reset: r; display: grid; gap: 14px; padding: 0; list-style: none; margin: 0; }
.rules-list li { counter-increment: r; display: flex; gap: 16px; padding: 18px; background: var(--gray-50); border-radius: 14px; }
.rules-list li::before { content: counter(r); width: 32px; height: 32px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; flex: none; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 10px; overflow: hidden; transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { padding: 18px 20px; cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--blue); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); animation: viewIn .4s var(--ease); }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--navy-900); color: #fff;
  box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 500; max-width: 400px;
  animation: toastIn .5s var(--ease) both;
}
.toast.out { animation: toastOut .35s ease forwards; }
.toast .ti { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 14px; }
.toast.success .ti { background: var(--green); }
.toast.error .ti { background: var(--red); }
.toast.info .ti { background: var(--blue); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px) scale(.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ---------- modal ---------- */
.modal-root:empty { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 150; background: rgba(13, 18, 51, .55); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 20px; animation: fade .3s both;
}
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 22px; width: min(480px, 100%); padding: 30px; box-shadow: var(--shadow-lg); animation: modalIn .45s var(--ease) both; max-height: 90vh; overflow-y: auto; }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.96); } }
.modal h3 { color: var(--navy); font-size: 21px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.success-anim { width: 96px; height: 96px; margin: 0 auto 18px; }
.success-anim circle { stroke-dasharray: 280; stroke-dashoffset: 280; animation: draw .7s var(--ease) forwards; }
.success-anim path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 160; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- skeleton ---------- */
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, #F8F9FD 50%, var(--gray-100) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: 12px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- footer ---------- */
.footer { background: var(--navy-900); color: #fff; padding: 60px 0 0; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); margin-bottom: 14px; }
.footer p { font-size: 14px; }
.footer .brand { margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { color: rgba(255, 255, 255, .7); transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; font-size: 13px; color: rgba(255, 255, 255, .5); display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.footer-support a { color: var(--gold); font-weight: 600; overflow-wrap: anywhere; }
.footer-support a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid, .book-grid { grid-template-columns: 1fr; }
  .venues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .venue:first-child { grid-row: span 1; }
  .venue-info { grid-column: span 2; }
  .hero-visual { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .rooms { grid-template-columns: repeat(3, 1fr); }
  .admin-layout, .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .side-nav { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .side-nav button { white-space: nowrap; width: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .nav {
    position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 12px 16px 20px; margin: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .4s var(--ease); z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a { padding: 13px 14px; }
  .user-chip .name { display: none; }
  .user-chip { padding: 4px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .dropdown-panel { position: fixed; left: 16px; right: 16px; width: auto; top: 80px; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .hero { padding: 60px 0 80px; }
  .section { padding: 64px 0; }
  .steps, .form-grid, .checks, .kpis, .rooms { grid-template-columns: 1fr; }
  .venues { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 220px; }
  .venue:first-child { grid-column: auto; }
  .venue-info { grid-column: auto; }
  .hero-shade { background: linear-gradient(180deg, rgba(14, 18, 48, .9), rgba(22, 28, 72, .85)); }
  .hero-caption { display: none; }
  .time-grid { grid-template-columns: 1fr 1fr; }
  .time-arrow { display: none; }
  .dur-box { grid-column: 1 / -1; }
  .card { padding: 20px; }
  .cta-band { padding: 36px 24px; }
  .res-card { grid-template-columns: auto 1fr; }
  .res-actions { grid-column: 1 / -1; align-items: stretch; }
  .res-actions .btns { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .top-actions .btn-ghost { display: none; }
  .brand-text small { display: none; }
  .day { font-size: 13px; border-radius: 9px; }
  .day.today::after { display: none; }
  .cal-grid { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-poster { animation: none; }
}

/* ---------- çap (həftəlik cədvəl) ---------- */
@media print {
  @page { size: A4 landscape; margin: 10mm; }
  body { background: #fff !important; }
  .topbar, .footer, .page-head, .side-nav, .no-print, .toasts, .page-progress, .modal-root { display: none !important; }
  .print-only { display: inline !important; }
  p.print-only { display: block !important; }
  .page-body { padding: 0 !important; }
  .container { max-width: none !important; padding: 0 !important; }
  .admin-layout { display: block !important; }
  .card { box-shadow: none !important; border: 0 !important; padding: 0 !important; }
  .table-wrap { overflow: visible !important; border: 0 !important; }
  .sch-table { min-width: 0 !important; width: 100%; font-size: 9pt; border-collapse: collapse; }
  .sch-table th, .sch-table td { border: 1px solid #999 !important; padding: 4px !important; }
  .sch-item { background: #fff !important; border: 1px solid #666 !important; break-inside: avoid; }
  .sch-item.pending { border-style: dashed !important; }
  .view, .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}
