@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oxanium:wght@500;600;700;800&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  --bg: #070b0a;
  --bg-soft: #0a100e;
  --surface: #0e1613;
  --surface-2: #121d18;
  --surface-3: #17241e;
  --border: rgba(200, 230, 214, .12);
  --border-strong: rgba(215, 244, 90, .3);
  --text: #edf5f0;
  --muted: #8fa49a;
  --muted-2: #657a70;
  --lime: #d7f45a;
  --lime-dark: #a7c62f;
  --gold: #e7c86f;
  --gold-dark: #a97c29;
  --queen: #f1a9d2;
  --danger: #ff6b72;
  --info: #66d9ef;
  --success: #63e6a7;
  --warning: #f7c65d;
  --sidebar-w: 276px;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, .32);
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Oxanium', 'Rajdhani', sans-serif;
  --font-tech: 'Rajdhani', sans-serif;
}

* { scrollbar-width: thin; scrollbar-color: #34463e transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #34463e; border-radius: 20px; }
*::-webkit-scrollbar-track { background: transparent; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .925rem;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--lime); color: #0a0f0d; }
a { color: var(--lime); text-decoration: none; }
a:hover { color: #efffa5; }
hr { border-color: var(--border); opacity: 1; }
.text-muted { color: var(--muted) !important; }
.text-lime { color: var(--lime) !important; }
.text-gold { color: var(--gold) !important; }
.text-queen { color: var(--queen) !important; }
.fw-display { font-family: var(--font-display); }
.fw-tech { font-family: var(--font-tech); }
.fs-7 { font-size: .8rem; }
.fs-8 { font-size: .72rem; }
.letter-wide { letter-spacing: .12em; }
.letter-wider { letter-spacing: .22em; }

/* Background atmosphere */
.app-body::before,
.public-body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(circle at 82% 8%, rgba(215, 244, 90, .08), transparent 32%),
    radial-gradient(circle at 8% 95%, rgba(231, 200, 111, .06), transparent 35%),
    linear-gradient(145deg, #080d0b, #060908 60%, #080c0a);
}
.app-body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(215, 244, 90, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 244, 90, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 55% 30%, #000, transparent 80%);
}
.scanlines {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .15;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(255,255,255,.015) 4px);
}

/* Typography / headers */
h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: 700; }
.display-title { font-family: var(--font-display); font-weight: 800; line-height: 1.02; letter-spacing: -.02em; }
.page-title { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.page-subtitle { color: var(--muted); margin: .35rem 0 0; font-size: .875rem; }
.section-kicker {
  color: var(--lime);
  font-family: var(--font-tech);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.section-kicker::before { content: ''; width: 20px; height: 1px; background: var(--lime); }
.text-gradient-lime {
  background: linear-gradient(110deg, #f3ffd0, var(--lime) 48%, #93b925);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gradient-gold {
  background: linear-gradient(110deg, #fff6d2, var(--gold) 55%, #a47824);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Layout */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  z-index: 1040;
  display: flex;
  flex-direction: column;
  background: rgba(10, 16, 14, .96);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(18px);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 160px;
  background: linear-gradient(to bottom, var(--lime), transparent);
  opacity: .55;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: 1.4rem 1.25rem 1.15rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand img { width: 43px; height: 48px; object-fit: contain; filter: drop-shadow(0 0 12px rgba(215, 244, 90, .2)); }
.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.08;
  letter-spacing: .04em;
}
.brand-sub {
  display: block;
  color: var(--muted);
  font-family: var(--font-tech);
  font-size: .63rem;
  letter-spacing: .22em;
  margin-top: .25rem;
  text-transform: uppercase;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem .75rem; }
.nav-section-label {
  color: var(--muted-2);
  font-family: var(--font-tech);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .85rem .8rem .4rem;
}
.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: .8rem;
  color: #9fb2a8;
  padding: .65rem .8rem;
  border-radius: 11px;
  font-size: .855rem;
  font-weight: 500;
  margin-bottom: .14rem;
  position: relative;
  transition: .2s ease;
}
.sidebar-nav .nav-link i { font-size: 1.05rem; width: 20px; text-align: center; color: #6f877b; transition: .2s; }
.sidebar-nav .nav-link:hover { color: var(--text); background: rgba(255, 255, 255, .035); }
.sidebar-nav .nav-link:hover i { color: var(--lime); }
.sidebar-nav .nav-link.active {
  color: #0b100e;
  background: linear-gradient(100deg, var(--lime), #c4e446);
  box-shadow: 0 7px 24px rgba(215, 244, 90, .17);
  font-weight: 700;
}
.sidebar-nav .nav-link.active i { color: #0b100e; }
.sidebar-nav .nav-link .nav-count {
  margin-left: auto;
  background: var(--danger);
  color: #fff;
  font-size: .65rem;
  border-radius: 20px;
  padding: .12rem .42rem;
  font-weight: 700;
}
.sidebar-nav .nav-link.active .nav-count { background: #0b100e; color: var(--lime); }
.sidebar-user {
  margin: .75rem;
  padding: .8rem;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,.035), rgba(255,255,255,.01));
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.sidebar-user img { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; border: 1px solid var(--border); }
.sidebar-user-name { font-weight: 600; font-size: .8rem; line-height: 1.2; color: var(--text); }
.sidebar-user-role { font-size: .68rem; color: var(--muted); }
.sidebar-user .logout-btn { margin-left: auto; color: var(--muted); width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; }
.sidebar-user .logout-btn:hover { color: var(--danger); background: rgba(255, 107, 114, .1); }

.app-shell { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  height: 72px;
  padding: 0 clamp(1rem, 3vw, 2.2rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(7, 11, 10, .78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}
.topbar .menu-btn {
  display: none;
  width: 39px;
  height: 39px;
  border-radius: 10px;
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}
.topbar-context { display: flex; align-items: center; gap: .55rem; color: var(--muted); font-size: .78rem; }
.topbar-context i { color: var(--lime); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.topbar-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.025);
  position: relative;
}
.topbar-icon:hover { color: var(--lime); border-color: var(--border-strong); }
.topbar-icon .notif-dot { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 3px var(--bg); }
.topbar-profile { display: flex; align-items: center; gap: .65rem; color: var(--text); padding: .3rem .45rem .3rem .3rem; border-radius: 12px; }
.topbar-profile:hover { background: rgba(255,255,255,.035); color: var(--text); }
.topbar-profile img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; border: 1px solid var(--border); }
.app-main { flex: 1; padding: 1.7rem clamp(1rem, 3vw, 2.2rem) 2rem; }
.app-footer {
  padding: 1rem clamp(1rem, 3vw, 2.2rem);
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: .72rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.sidebar-backdrop { display: none; position: fixed; inset: 0; z-index: 1030; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); }

/* Page head */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.45rem; flex-wrap: wrap; }
.page-head-actions { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.breadcrumb-clan { display: flex; gap: .45rem; align-items: center; color: var(--muted-2); font-size: .7rem; margin-bottom: .55rem; letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-tech); }
.breadcrumb-clan i { font-size: .6rem; }
.breadcrumb-clan a { color: var(--muted); }

/* Cards */
.card-clan {
  background: linear-gradient(145deg, rgba(20, 31, 26, .94), rgba(12, 19, 16, .94));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.1);
}
.card-clan.hover-lift { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card-clan.hover-lift:hover { transform: translateY(-4px); border-color: rgba(215,244,90,.23); box-shadow: var(--shadow); }
.card-clan .card-body { padding: 1.3rem; }
.card-clan .card-header {
  background: rgba(255,255,255,.015);
  border-bottom: 1px solid var(--border);
  padding: .95rem 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.card-clan .card-footer { background: rgba(255,255,255,.015); border-top: 1px solid var(--border); padding: .85rem 1.3rem; }
.card-title-clan { font-family: var(--font-display); font-weight: 700; font-size: 1rem; margin: 0; }
.card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: .55;
}
.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(215,244,90,.19);
  background:
    linear-gradient(112deg, rgba(14, 24, 19, .98) 0%, rgba(14, 23, 19, .93) 45%, rgba(18, 29, 22, .72) 100%),
    radial-gradient(circle at 86% 25%, rgba(215,244,90,.19), transparent 34%);
  min-height: 240px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.hero-panel::before {
  content: '';
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(215,244,90,.14);
  border-radius: 50%;
  right: -80px;
  top: -140px;
  box-shadow: 0 0 0 30px rgba(215,244,90,.025), 0 0 0 70px rgba(215,244,90,.015);
}
.hero-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(215,244,90,.05) 1px, transparent 1px);
  background-size: 52px 100%;
  mask-image: linear-gradient(90deg, transparent 40%, #000);
  opacity: .5;
}
.hero-panel > * { position: relative; z-index: 2; }
.hero-eyebrow { color: var(--lime); font-family: var(--font-tech); font-weight: 700; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; }
.hero-title { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; margin: .55rem 0 .7rem; line-height: 1.07; }
.hero-text { color: #a2b6ab; max-width: 560px; margin-bottom: 0; line-height: 1.65; }
.hero-watermark {
  position: absolute;
  right: 2rem;
  bottom: -22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 8rem;
  line-height: 1;
  color: rgba(215,244,90,.04);
  letter-spacing: -.06em;
  pointer-events: none;
  z-index: 1;
}

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.stat-card {
  background: linear-gradient(145deg, rgba(20,31,26,.94), rgba(11,18,15,.96));
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 1.05rem;
  position: relative;
  overflow: hidden;
  min-height: 126px;
  transition: .25s ease;
}
.stat-card:hover { border-color: rgba(215,244,90,.25); transform: translateY(-3px); }
.stat-card::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--stat-color, var(--lime));
  filter: blur(40px);
  opacity: .1;
  right: -10px;
  bottom: -25px;
}
.stat-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .55rem; }
.stat-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--stat-color, var(--lime)) 12%, transparent);
  color: var(--stat-color, var(--lime));
  border: 1px solid color-mix(in srgb, var(--stat-color, var(--lime)) 20%, transparent);
  font-size: 1rem;
}
.stat-trend { font-size: .67rem; color: var(--muted); display: flex; align-items: center; gap: .25rem; }
.stat-value { font-family: var(--font-display); font-size: 1.75rem; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.stat-label { color: var(--muted); font-size: .72rem; margin-top: .4rem; }
.stat-mini-bar { height: 3px; background: rgba(255,255,255,.06); border-radius: 10px; overflow: hidden; margin-top: .55rem; }
.stat-mini-bar span { display: block; height: 100%; background: var(--stat-color, var(--lime)); border-radius: inherit; }

/* Buttons */
.btn { border-radius: 10px; font-weight: 600; font-size: .83rem; padding: .58rem .95rem; transition: .2s ease; }
.btn-sm { padding: .4rem .7rem; font-size: .76rem; border-radius: 8px; }
.btn-lg { padding: .8rem 1.3rem; font-size: .92rem; border-radius: 12px; }
.btn-lime {
  background: linear-gradient(105deg, var(--lime), #c3e33e);
  border: 1px solid var(--lime);
  color: #0a0f0d;
  box-shadow: 0 8px 22px rgba(215,244,90,.13);
}
.btn-lime:hover, .btn-lime:focus { background: #e6ff77; border-color: #e6ff77; color: #060908; box-shadow: 0 10px 28px rgba(215,244,90,.22); }
.btn-gold {
  background: linear-gradient(105deg, #f2db95, var(--gold));
  border: 1px solid var(--gold);
  color: #211809;
}
.btn-gold:hover { background: #f8e9b8; color: #160f03; }
.btn-outline-lime { border: 1px solid rgba(215,244,90,.45); color: var(--lime); background: rgba(215,244,90,.02); }
.btn-outline-lime:hover { background: var(--lime); color: #0a0f0d; border-color: var(--lime); }
.btn-ghost { background: rgba(255,255,255,.035); border: 1px solid var(--border); color: #c5d4cc; }
.btn-ghost:hover { background: rgba(255,255,255,.07); color: var(--text); border-color: rgba(255,255,255,.16); }
.btn-danger-soft { background: rgba(255,107,114,.09); border: 1px solid rgba(255,107,114,.25); color: #ff9ca0; }
.btn-danger-soft:hover { background: var(--danger); color: #160708; border-color: var(--danger); }
.btn-queen { background: linear-gradient(105deg, #f7c6e2, var(--queen)); color: #2b1122; border-color: var(--queen); }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; }

/* Badges */
.badge-clan {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .56rem;
  border-radius: 6px;
  font-family: var(--font-tech);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 1.25;
  white-space: nowrap;
  border: 1px solid transparent;
  text-transform: uppercase;
}
.badge-role-admin { color: #f2d98d; background: rgba(231,200,111,.1); border-color: rgba(231,200,111,.28); }
.badge-role-wakil { color: #f3b1d8; background: rgba(241,169,210,.09); border-color: rgba(241,169,210,.25); }
.badge-role-bendahara { color: #8fe7c1; background: rgba(99,230,167,.08); border-color: rgba(99,230,167,.22); }
.badge-role-sekretaris { color: #8edeee; background: rgba(102,217,239,.08); border-color: rgba(102,217,239,.22); }
.badge-role-member { color: #aebfb6; background: rgba(255,255,255,.04); border-color: var(--border); }
.badge-division-king { color: #d7f45a; background: rgba(215,244,90,.08); border-color: rgba(215,244,90,.22); }
.badge-division-queen { color: var(--queen); background: rgba(241,169,210,.08); border-color: rgba(241,169,210,.22); }
.badge-status-success { color: var(--success); background: rgba(99,230,167,.08); border-color: rgba(99,230,167,.2); }
.badge-status-warning { color: var(--warning); background: rgba(247,198,93,.08); border-color: rgba(247,198,93,.2); }
.badge-status-danger { color: var(--danger); background: rgba(255,107,114,.08); border-color: rgba(255,107,114,.2); }
.badge-status-secondary { color: #a3b2aa; background: rgba(160,172,166,.08); border-color: rgba(160,172,166,.16); }
.badge-status-dark { color: #8c9b94; background: rgba(45,56,51,.35); border-color: rgba(100,115,107,.25); }
.badge-status-info { color: var(--info); background: rgba(102,217,239,.08); border-color: rgba(102,217,239,.2); }
.badge-status-lime { color: var(--lime); background: rgba(215,244,90,.08); border-color: rgba(215,244,90,.22); }
.badge-special-dewan { color: #f2d98d; background: linear-gradient(135deg, rgba(231,200,111,.18), rgba(231,200,111,.06)); border-color: rgba(231,200,111,.42); box-shadow: 0 0 14px rgba(231,200,111,.12); }
.badge-special-vip { color: #f3b1d8; background: linear-gradient(135deg, rgba(241,169,210,.18), rgba(241,169,210,.06)); border-color: rgba(241,169,210,.42); box-shadow: 0 0 14px rgba(241,169,210,.12); }
.badge-special-khusus { color: var(--info); background: linear-gradient(135deg, rgba(102,217,239,.18), rgba(102,217,239,.06)); border-color: rgba(102,217,239,.42); box-shadow: 0 0 14px rgba(102,217,239,.12); }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 6px currentColor; display: inline-block; }

/* Forms */
.form-label { color: #b9c9c0; font-size: .76rem; font-weight: 600; margin-bottom: .42rem; letter-spacing: .015em; }
.form-label .req { color: var(--lime); }
.form-control, .form-select {
  background-color: rgba(4, 8, 7, .5);
  border: 1px solid rgba(190, 220, 205, .14);
  color: var(--text);
  border-radius: 9px;
  padding: .6rem .8rem;
  font-size: .855rem;
  transition: .18s ease;
}
.form-control::placeholder { color: #52675d; }
.form-control:focus, .form-select:focus {
  background-color: rgba(4, 8, 7, .7);
  border-color: rgba(215,244,90,.55);
  box-shadow: 0 0 0 3px rgba(215,244,90,.07);
  color: var(--text);
}
.form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239bb0a5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-select option { background: #101a16; color: var(--text); }
.form-control[type=file]::file-selector-button { background: rgba(215,244,90,.08); color: var(--lime); border: 0; border-right: 1px solid var(--border); padding: .6rem .8rem; margin: -.6rem .75rem -.6rem -.8rem; font-size: .77rem; }
.form-check-input { background-color: rgba(4,8,7,.5); border-color: rgba(190,220,205,.22); }
.form-check-input:checked { background-color: var(--lime); border-color: var(--lime); }
.form-check-input:focus { box-shadow: 0 0 0 3px rgba(215,244,90,.08); border-color: var(--lime); }
.form-check-label { color: #b8c9c0; font-size: .82rem; }
.form-text { color: var(--muted-2); font-size: .71rem; }
.input-group-text { background: rgba(255,255,255,.03); border-color: var(--border); color: var(--muted); }
.was-validated .form-control:valid, .form-control.is-valid { border-color: rgba(99,230,167,.5); background-image: none; }
.was-validated .form-control:invalid, .form-control.is-invalid { border-color: rgba(255,107,114,.6); background-image: none; }
.invalid-feedback { font-size: .72rem; }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-section-title { font-family: var(--font-display); font-size: .95rem; font-weight: 700; display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; }
.form-section-title i { color: var(--lime); }
.form-divider { border-top: 1px dashed var(--border); margin: 1.25rem 0; }

/* Tables */
.table { --bs-table-bg: transparent; --bs-table-color: #dce9e2; --bs-table-border-color: var(--border); margin-bottom: 0; font-size: .82rem; }
.table > thead th {
  color: var(--muted-2);
  font-family: var(--font-tech);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding: .75rem 1rem;
  white-space: nowrap;
  background: rgba(255,255,255,.012);
}
.table > tbody td { padding: .78rem 1rem; vertical-align: middle; border-color: rgba(200,230,214,.065); }
.table > tbody tr { transition: background .15s; }
.table > tbody tr:hover { background: rgba(215,244,90,.025); }
.table-responsive { border-radius: 13px; }
.table-avatar { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; border: 1px solid var(--border); }
.table-actions { display: flex; gap: .35rem; justify-content: flex-end; }

/* Avatars */
.avatar { border-radius: 50%; object-fit: cover; border: 1px solid var(--border); background: var(--surface-2); }
.avatar-sm { width: 33px; height: 33px; }
.avatar-md { width: 48px; height: 48px; }
.avatar-lg { width: 76px; height: 76px; }
.avatar-xl { width: 112px; height: 112px; border-radius: 24px; }
.avatar-ring { padding: 3px; border: 1px solid rgba(215,244,90,.35); background: rgba(215,244,90,.04); }
.avatar-ring.queen { border-color: rgba(241,169,210,.4); background: rgba(241,169,210,.04); }
.avatar-stack { display: flex; }
.avatar-stack img { margin-left: -9px; border: 2px solid #0e1613; }
.avatar-stack img:first-child { margin-left: 0; }
.avatar-initials { display: grid; place-items: center; background: var(--surface-3); color: var(--lime); font-family: var(--font-display); font-weight: 700; }

/* Alerts */
.alert { border-radius: 11px; font-size: .82rem; border-width: 1px; padding: .78rem 1rem; }
.alert-success { background: rgba(99,230,167,.07); border-color: rgba(99,230,167,.18); color: #a4f3cd; }
.alert-danger { background: rgba(255,107,114,.07); border-color: rgba(255,107,114,.2); color: #ffb2b5; }
.alert-warning { background: rgba(247,198,93,.07); border-color: rgba(247,198,93,.2); color: #f8d99b; }
.alert-info { background: rgba(102,217,239,.07); border-color: rgba(102,217,239,.2); color: #a5eaf6; }
.alert-clan { display: flex; gap: .65rem; align-items: flex-start; }
.alert-clan .btn-close { margin-left: auto; filter: invert(1); opacity: .45; padding: .9rem; }
.alert-clan strong { color: inherit; }

/* Dashboard */
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr); gap: 1rem; }
.dashboard-stack { display: flex; flex-direction: column; gap: 1rem; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55rem; }
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: .8rem .4rem;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.018);
  color: #adc0b6;
  font-size: .68rem;
  font-weight: 600;
  text-align: center;
  transition: .2s;
}
.quick-action i { font-size: 1.15rem; color: var(--lime); }
.quick-action:hover { background: rgba(215,244,90,.05); border-color: rgba(215,244,90,.25); color: var(--text); transform: translateY(-2px); }
.match-banner {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg, rgba(7,12,10,.97), rgba(9,15,12,.7)),
    radial-gradient(circle at 82% 50%, rgba(215,244,90,.22), transparent 48%);
  border: 1px solid rgba(215,244,90,.17);
  padding: 1.2rem;
}
.match-banner::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -60px;
  width: 200px;
  height: 200px;
  border: 1px solid rgba(215,244,90,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(215,244,90,.02);
}
.match-banner .match-content { position: relative; z-index: 2; }
.countdown { display: flex; gap: .4rem; }
.countdown-block {
  background: rgba(0,0,0,.34);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .35rem .5rem;
  min-width: 47px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.countdown-num { display: block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--lime); line-height: 1; }
.countdown-lbl { display: block; font-size: .53rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; margin-top: 2px; }

.timeline { position: relative; padding-left: 1.15rem; }
.timeline::before { content: ''; position: absolute; left: 4px; top: 5px; bottom: 5px; width: 1px; background: var(--border); }
.timeline-item { position: relative; padding-bottom: 1rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -1.15rem; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--lime); box-shadow: 0 0 8px rgba(215,244,90,.35); }
.timeline-date { color: var(--muted-2); font-size: .65rem; letter-spacing: .04em; margin-bottom: .15rem; }
.timeline-title { font-size: .8rem; font-weight: 600; color: #d7e5dd; line-height: 1.35; }
.timeline-desc { font-size: .7rem; color: var(--muted-2); margin-top: .1rem; }

.division-split { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.division-box { padding: .9rem; border-radius: 12px; border: 1px solid var(--border); position: relative; overflow: hidden; }
.division-box.king { background: linear-gradient(145deg, rgba(215,244,90,.06), rgba(215,244,90,.015)); }
.division-box.queen { background: linear-gradient(145deg, rgba(241,169,210,.06), rgba(241,169,210,.015)); }
.division-box .num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; line-height: 1; }
.division-box.king .num { color: var(--lime); }
.division-box.queen .num { color: var(--queen); }
.division-box .lbl { font-size: .65rem; color: var(--muted); margin-top: .25rem; }
.division-box i { position: absolute; right: .5rem; bottom: .35rem; font-size: 2rem; opacity: .08; }

/* Member directory */
.filter-bar { display: flex; gap: .6rem; align-items: end; flex-wrap: wrap; }
.filter-bar .form-control, .filter-bar .form-select { min-width: 150px; }
.member-card { padding: 1.1rem; border-radius: 15px; border: 1px solid var(--border); background: linear-gradient(145deg, rgba(20,31,26,.9), rgba(11,18,15,.96)); position: relative; overflow: hidden; transition: .22s; height: 100%; }
.member-card:hover { border-color: rgba(215,244,90,.24); transform: translateY(-3px); box-shadow: 0 14px 35px rgba(0,0,0,.25); }
.member-card::after { content: ''; position: absolute; bottom: -60px; right: -40px; width: 130px; height: 130px; border-radius: 50%; background: rgba(215,244,90,.04); }
.member-card.queen::after { background: rgba(241,169,210,.05); }
.member-card-top { display: flex; align-items: center; gap: .75rem; position: relative; z-index: 1; }
.member-card-name { font-weight: 650; font-size: .9rem; color: var(--text); }
.member-card-nick { font-family: var(--font-tech); font-size: .75rem; color: var(--muted); letter-spacing: .03em; }
.member-card-meta { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .8rem; position: relative; z-index: 1; }
.member-card-stats { display: flex; justify-content: space-between; margin-top: .8rem; padding-top: .7rem; border-top: 1px solid var(--border); font-size: .68rem; color: var(--muted-2); position: relative; z-index: 1; }
.member-card-stats strong { color: #c5d6cc; font-weight: 600; }
.member-card-side { margin-left: auto; display: flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.member-card-manage { width: 30px; height: 30px; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.division-stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--lime); }
.member-card.queen .division-stripe { background: var(--queen); }

/* Profile */
.profile-cover { height: 170px; border-radius: 18px 18px 0 0; position: relative; overflow: hidden; background: linear-gradient(105deg, #14241b, #20362a 54%, #0e1712); }
.profile-cover::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(90deg, rgba(215,244,90,.07) 1px, transparent 1px), linear-gradient(rgba(215,244,90,.05) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(90deg, transparent, #000 60%, #000); }
.profile-cover .cover-mark { position: absolute; right: 1.7rem; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-size: 5.5rem; font-weight: 800; color: rgba(215,244,90,.055); letter-spacing: -.05em; }
.profile-main { margin-top: -58px; padding: 0 1.4rem 1.4rem; position: relative; z-index: 2; }
.profile-avatar { width: 110px; height: 110px; border-radius: 24px; object-fit: cover; border: 4px solid #0f1814; background: var(--surface); }
.profile-name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin: .2rem 0 .15rem; }
.profile-meta { color: var(--muted); font-size: .78rem; }
.info-list { display: flex; flex-direction: column; gap: .75rem; }
.info-row { display: flex; gap: .75rem; align-items: flex-start; }
.info-row .icon { width: 31px; height: 31px; flex: 0 0 31px; border-radius: 8px; background: rgba(215,244,90,.055); border: 1px solid rgba(215,244,90,.1); color: var(--lime); display: grid; place-items: center; font-size: .82rem; }
.info-row .label { font-size: .65rem; color: var(--muted-2); text-transform: uppercase; letter-spacing: .07em; }
.info-row .value { font-size: .82rem; color: #d1dfd7; margin-top: .05rem; word-break: break-word; }
.account-item { padding: .85rem; border-radius: 11px; border: 1px solid var(--border); background: rgba(255,255,255,.018); }
.account-item + .account-item { margin-top: .55rem; }
.account-actions { display: flex; gap: .35rem; flex-wrap: wrap; }

/* Tournament */
.tournament-card { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); height: 100%; display: flex; flex-direction: column; transition: .25s; }
.tournament-card:hover { transform: translateY(-4px); border-color: rgba(215,244,90,.3); box-shadow: var(--shadow); }
.tournament-visual { height: 140px; position: relative; overflow: hidden; background: linear-gradient(125deg, #1a2b22, #0c1410 60%, #1c2f23); }
.tournament-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 75% 40%, rgba(215,244,90,.18), transparent 45%), repeating-linear-gradient(115deg, transparent 0 26px, rgba(215,244,90,.035) 26px 27px); }
.tournament-visual .visual-title { position: absolute; left: 1.1rem; bottom: .9rem; right: 1.1rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1.2; z-index: 2; }
.tournament-visual .visual-icon { position: absolute; right: 1rem; top: .9rem; font-size: 2.2rem; color: rgba(215,244,90,.12); }
.tournament-status-float { position: absolute; top: 1rem; left: 1rem; z-index: 2; }
.tournament-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.tournament-meta { display: flex; flex-wrap: wrap; gap: .55rem; color: var(--muted); font-size: .7rem; margin-bottom: .7rem; }
.tournament-meta span { display: inline-flex; align-items: center; gap: .27rem; }
.tournament-meta i { color: var(--lime); font-size: .75rem; }
.tournament-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border); }
.prize-pool { font-family: var(--font-display); font-weight: 700; color: var(--lime); font-size: 1rem; }
.prize-label { display: block; font-size: .6rem; color: var(--muted-2); font-family: var(--font-body); font-weight: 400; letter-spacing: .04em; }
.point-table { font-size: .78rem; }
.point-table td, .point-table th { padding: .45rem .6rem; border-color: var(--border); }
.point-table th { color: var(--muted); font-weight: 600; font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; }
.bracket-pill { display: inline-flex; gap: .3rem; font-size: .7rem; color: var(--muted); }
.prize-breakdown { white-space: pre-line; color: #c5d5cc; font-size: .8rem; line-height: 1.8; }
.sponsor-logo { width: 100%; border-radius: 9px; border: 1px solid var(--border); padding: .65rem; color: #c7d8ce; font-size: .78rem; background: rgba(255,255,255,.02); }
.team-card { border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.018); padding: 1rem; height: 100%; }
.team-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }

/* Finance */
.finance-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.finance-number { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.finance-number.income { color: var(--success); }
.finance-number.expense { color: var(--danger); }
.finance-number.balance { color: var(--lime); }
.finance-type { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.finance-type.income { background: rgba(99,230,167,.08); color: var(--success); }
.finance-type.expense { background: rgba(255,107,114,.08); color: var(--danger); }
.category-pill { display: inline-block; padding: .22rem .5rem; border-radius: 5px; background: rgba(255,255,255,.035); border: 1px solid var(--border); color: #aebfb6; font-size: .66rem; }

/* Meeting */
.meeting-card { border: 1px solid var(--border); border-radius: 13px; padding: 1rem; background: rgba(255,255,255,.016); }
.meeting-card + .meeting-card { margin-top: .7rem; }
.meeting-date { min-width: 50px; text-align: center; background: rgba(215,244,90,.05); border: 1px solid rgba(215,244,90,.12); border-radius: 9px; padding: .4rem .3rem; }
.meeting-date .d { font-family: var(--font-display); font-weight: 700; color: var(--lime); font-size: 1.2rem; line-height: 1; }
.meeting-date .m { font-size: .58rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; }
.meeting-body { flex: 1; min-width: 0; }
.meeting-title { font-weight: 600; font-size: .87rem; }
.meeting-meta { font-size: .68rem; color: var(--muted-2); margin-top: .2rem; display: flex; gap: .65rem; flex-wrap: wrap; }
.meeting-details { color: #aabbb2; font-size: .78rem; line-height: 1.65; white-space: pre-line; }
.agenda-list { padding-left: 1.1rem; color: #b9cac1; font-size: .8rem; line-height: 1.8; }

/* Aside / panels */
.side-panel { background: rgba(255,255,255,.018); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; }
.side-panel-title { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: .6rem; font-family: var(--font-tech); }
.divider-label { display: flex; align-items: center; gap: .75rem; color: var(--muted-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; margin: 1rem 0; }
.divider-label::before, .divider-label::after { content: ''; height: 1px; background: var(--border); flex: 1; }

/* Auth & public */
.public-body { background: var(--bg); color: var(--text); overflow-x: hidden; }
.public-nav { padding: 1rem 0; }
.public-nav .navbar-brand img { width: 37px; }
.public-nav .nav-link { color: #a9bcb2; font-size: .82rem; font-weight: 500; padding: .5rem .9rem !important; }
.public-nav .nav-link:hover { color: var(--lime); }
.landing-hero { min-height: calc(100vh - 70px); display: flex; align-items: center; position: relative; padding: 4.5rem 0 5rem; overflow: hidden; }
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #070b0a 18%, rgba(7,11,10,.76) 55%, rgba(7,11,10,.25)),
    radial-gradient(circle at 72% 40%, rgba(215,244,90,.13), transparent 34%),
    linear-gradient(135deg, transparent 48%, rgba(231,200,111,.025) 48% 49%, transparent 49%);
  z-index: -1;
}
.landing-hero::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 8%;
  width: 650px;
  height: 650px;
  border: 1px solid rgba(215,244,90,.07);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(215,244,90,.018), 0 0 0 140px rgba(215,244,90,.011);
  pointer-events: none;
}
.landing-title { font-size: clamp(2.7rem, 7vw, 6.5rem); line-height: .92; letter-spacing: -.045em; }
.landing-kicker { display: inline-flex; align-items: center; gap: .55rem; border: 1px solid rgba(215,244,90,.22); background: rgba(215,244,90,.045); color: var(--lime); padding: .38rem .7rem; border-radius: 50px; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.landing-kicker .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); animation: pulse 2s infinite; }
.landing-lead { color: #a1b5aa; font-size: clamp(.9rem, 1.5vw, 1.05rem); line-height: 1.75; max-width: 560px; }
.landing-stats { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 2.2rem; }
.landing-stat .n { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--text); line-height: 1; }
.landing-stat .l { color: var(--muted-2); font-size: .68rem; margin-top: .35rem; letter-spacing: .07em; text-transform: uppercase; }
.hero-emblem { position: relative; width: min(440px, 100%); aspect-ratio: 1; display: grid; place-items: center; margin-left: auto; }
.hero-emblem .emblem-glow { position: absolute; inset: 14%; background: radial-gradient(circle, rgba(215,244,90,.18), transparent 65%); filter: blur(30px); }
.hero-emblem img { position: relative; width: 58%; filter: drop-shadow(0 0 32px rgba(215,244,90,.16)); animation: float 7s ease-in-out infinite; }
.hero-emblem .orbit { position: absolute; inset: 5%; border: 1px dashed rgba(215,244,90,.16); border-radius: 50%; animation: spin 35s linear infinite; }
.hero-emblem .orbit::before { content: ''; position: absolute; top: 50%; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px var(--lime); }
.hero-emblem .orbit-2 { inset: 19%; border-style: solid; border-color: rgba(231,200,111,.08); animation-direction: reverse; animation-duration: 45s; }
.hero-emblem .emblem-label { position: absolute; bottom: 10%; font-family: var(--font-tech); letter-spacing: .35em; font-size: .6rem; color: rgba(215,244,90,.45); }
.public-section { padding: 5rem 0; position: relative; }
.public-section:nth-of-type(even) { background: rgba(255,255,255,.012); border-top: 1px solid rgba(255,255,255,.035); border-bottom: 1px solid rgba(255,255,255,.035); }
.section-heading { max-width: 620px; margin-bottom: 2.5rem; }
.section-title { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
.section-sub { color: var(--muted); line-height: 1.7; font-size: .9rem; margin-top: .75rem; }
.feature-card { padding: 1.4rem; border: 1px solid var(--border); border-radius: 15px; height: 100%; background: linear-gradient(145deg, rgba(20,31,26,.7), rgba(10,16,13,.8)); transition: .25s; position: relative; overflow: hidden; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(215,244,90,.26); }
.feature-card .icon-box { width: 43px; height: 43px; border-radius: 11px; display: grid; place-items: center; background: rgba(215,244,90,.06); color: var(--lime); border: 1px solid rgba(215,244,90,.12); font-size: 1.1rem; margin-bottom: 1rem; }
.feature-card h5 { font-family: var(--font-display); font-size: .95rem; margin-bottom: .45rem; }
.feature-card p { color: var(--muted); font-size: .78rem; line-height: 1.65; margin: 0; }
.feature-num { position: absolute; right: .9rem; top: .5rem; font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: rgba(215,244,90,.04); }
.public-footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted-2); font-size: .75rem; }
.landing-cta { border-radius: 22px; padding: clamp(2rem, 5vw, 3.5rem); border: 1px solid rgba(215,244,90,.19); background: linear-gradient(120deg, #14241b, #0b120f); position: relative; overflow: hidden; }
.landing-cta::after { content: 'KQT'; position: absolute; right: 1.5rem; bottom: -2rem; font-family: var(--font-display); font-weight: 800; font-size: 9rem; color: rgba(215,244,90,.04); }
.public-rule { padding: .85rem 0; border-bottom: 1px solid var(--border); display: flex; gap: .8rem; }
.public-rule:last-child { border-bottom: 0; }
.public-rule .num { font-family: var(--font-display); font-weight: 700; color: var(--lime); font-size: .78rem; width: 24px; flex: 0 0 24px; }
.public-rule .txt { font-size: .8rem; color: #b7c8bf; line-height: 1.55; }

.auth-body { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-visual { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(1.5rem, 4vw, 3rem); background: linear-gradient(145deg, #0b1511, #101f17); border-right: 1px solid var(--border); }
.auth-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(215,244,90,.14), transparent 32%), repeating-linear-gradient(125deg, transparent 0 35px, rgba(215,244,90,.025) 35px 36px); }
.auth-visual::after { content: 'TEMPLAR'; position: absolute; bottom: -2rem; left: -1rem; font-family: var(--font-display); font-size: clamp(5rem, 12vw, 10rem); font-weight: 800; color: rgba(215,244,90,.035); letter-spacing: -.07em; }
.auth-visual > * { position: relative; z-index: 1; }
.auth-visual-center { max-width: 470px; margin: auto 0; padding: 2rem 0; }
.auth-visual h2 { font-family: var(--font-display); font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.02; font-weight: 800; letter-spacing: -.035em; }
.auth-visual p { color: #9db1a6; line-height: 1.75; font-size: .88rem; max-width: 410px; }
.auth-emblem { width: 70px; height: 78px; margin-bottom: 1.4rem; }
.auth-badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.4rem; }
.auth-badges span { border: 1px solid var(--border); border-radius: 6px; padding: .3rem .55rem; font-size: .66rem; color: var(--muted); display: inline-flex; align-items: center; gap: .3rem; }
.auth-badges i { color: var(--lime); }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 2rem 1.2rem; background: rgba(8,13,11,.55); }
.auth-card { width: min(440px, 100%); }
.auth-card-wide { width: min(700px, 100%); }
.auth-card h1 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: .35rem; }
.auth-card .sub { color: var(--muted); font-size: .82rem; margin-bottom: 1.5rem; }
.auth-logo-mobile { display: none; width: 50px; margin-bottom: 1.2rem; }
.auth-tabs { display: flex; background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 11px; padding: 3px; margin-bottom: 1.2rem; }
.auth-tabs a { flex: 1; text-align: center; padding: .48rem; font-size: .76rem; color: var(--muted); border-radius: 8px; font-weight: 600; }
.auth-tabs a.active { background: var(--lime); color: #0a0f0d; }
.auth-footer { margin-top: 1.5rem; color: var(--muted-2); font-size: .74rem; text-align: center; }
.otp-input { text-align: center; font-family: var(--font-display); font-size: 1.65rem; letter-spacing: .55em; padding: .7rem 1rem; height: auto; font-weight: 700; }
.demo-account { border: 1px dashed var(--border); border-radius: 9px; padding: .6rem .7rem; font-size: .67rem; color: var(--muted-2); margin-top: 1rem; background: rgba(255,255,255,.012); }
.demo-account code { color: var(--gold); font-size: .66rem; }
.step-indicator { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.step-dot { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.07); }
.step-dot.active { background: var(--lime); box-shadow: 0 0 8px rgba(215,244,90,.3); }

/* ID Card */
.id-card-stage { min-height: 70vh; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2rem; padding: 2rem 0; }
.id-card {
  width: 430px;
  height: 270px;
  border-radius: 17px;
  position: relative;
  overflow: hidden;
  color: #f7fbf8;
  background: linear-gradient(135deg, #14241b 0%, #0c1511 55%, #182b20 100%);
  border: 1px solid rgba(215,244,90,.28);
  box-shadow: 0 30px 60px rgba(0,0,0,.45), inset 0 0 80px rgba(215,244,90,.02);
  flex: 0 0 auto;
}
.id-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(215,244,90,.18), transparent 30%),
    repeating-linear-gradient(120deg, transparent 0 30px, rgba(215,244,90,.018) 30px 31px);
}
.id-card.queen { background: linear-gradient(135deg, #27192a 0%, #120d14 55%, #2c1c28 100%); border-color: rgba(241,169,210,.35); }
.id-card.queen::before { background: radial-gradient(circle at 85% 15%, rgba(241,169,210,.2), transparent 30%), repeating-linear-gradient(120deg, transparent 0 30px, rgba(241,169,210,.018) 30px 31px); }
.id-card .id-watermark { position: absolute; right: .5rem; bottom: -1.1rem; font-family: var(--font-display); font-size: 6.5rem; font-weight: 800; line-height: 1; color: rgba(255,255,255,.025); pointer-events: none; }
.id-card-inner { position: relative; z-index: 2; padding: 1.15rem 1.3rem; height: 100%; display: flex; flex-direction: column; }
.id-card-head { display: flex; align-items: center; gap: .65rem; padding-bottom: .65rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.id-card-head img { width: 29px; height: 32px; object-fit: contain; }
.id-card-brand { font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: .1em; line-height: 1.1; }
.id-card-brand small { display: block; font-family: var(--font-tech); font-size: .48rem; color: rgba(255,255,255,.42); letter-spacing: .28em; margin-top: 2px; }
.id-card-chip { margin-left: auto; width: 27px; height: 21px; border-radius: 4px; background: linear-gradient(135deg, #e6d18c, #9d7d35); position: relative; opacity: .8; }
.id-card-chip::after { content: ''; position: absolute; inset: 4px; border: 1px solid rgba(0,0,0,.24); border-radius: 2px; }
.id-card-main { display: flex; gap: .85rem; margin-top: .8rem; flex: 1; }
.id-card-photo { width: 80px; height: 96px; border-radius: 9px; object-fit: cover; border: 1px solid rgba(255,255,255,.15); background: #1a2821; }
.id-card-info { min-width: 0; flex: 1; }
.id-card-name { font-family: var(--font-display); font-size: 1.04rem; font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id-card-nick { font-family: var(--font-tech); font-size: .74rem; color: var(--lime); letter-spacing: .06em; margin-top: .18rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id-card.queen .id-card-nick { color: var(--queen); }
.id-card-division { display: inline-flex; gap: .3rem; font-family: var(--font-tech); font-size: .58rem; font-weight: 700; letter-spacing: .14em; border: 1px solid rgba(215,244,90,.35); padding: .14rem .4rem; border-radius: 3px; color: var(--lime); margin-top: .4rem; }
.id-card.queen .id-card-division { color: var(--queen); border-color: rgba(241,169,210,.4); }
.id-card-rows { display: grid; grid-template-columns: 1fr 1fr; gap: .32rem .7rem; margin-top: .52rem; }
.id-card-row .k { font-size: .4rem; letter-spacing: .13em; color: rgba(255,255,255,.38); text-transform: uppercase; }
.id-card-row .v { font-size: .57rem; font-weight: 600; color: rgba(255,255,255,.88); margin-top: .02rem; }
.id-card-foot { display: flex; justify-content: space-between; align-items: flex-end; padding-top: .4rem; margin-top: auto; }
.id-card-code { font-family: var(--font-tech); font-size: .6rem; color: rgba(255,255,255,.5); letter-spacing: .08em; }
.id-card-barcode { display: flex; align-items: flex-end; gap: 1.5px; height: 23px; opacity: .65; }
.id-card-barcode span { display: block; width: 1px; background: #fff; height: var(--h); }
.id-card-back .id-card-inner { padding: 1.05rem 1.2rem; }
.id-card-back-title { font-family: var(--font-display); font-size: .7rem; font-weight: 700; letter-spacing: .08em; }
.id-card-rules { font-size: .48rem; color: rgba(255,255,255,.62); line-height: 1.55; margin: .4rem 0; }
.id-card-qr { width: 54px; height: 54px; background: #fff; border-radius: 4px; padding: 4px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; flex: 0 0 54px; }
.id-card-qr span { background: #0c1511; border-radius: .5px; }
.id-card-qr span.light { background: #fff; }
.id-card-terms { font-size: .4rem; color: rgba(255,255,255,.3); margin-top: .25rem; line-height: 1.45; }
.card-print-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Empty states */
.empty-state { text-align: center; padding: 2.8rem 1rem; color: var(--muted); }
.empty-state .icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto .9rem; background: rgba(215,244,90,.04); border: 1px solid var(--border); color: var(--muted-2); font-size: 1.35rem; }
.empty-state h6 { font-family: var(--font-display); font-size: .9rem; margin-bottom: .35rem; }
.empty-state p { font-size: .76rem; max-width: 320px; margin: auto; line-height: 1.6; }

/* Pending status */
.pending-wrap { max-width: 760px; margin: 2rem auto; }
.pending-icon { width: 74px; height: 74px; border-radius: 20px; background: rgba(247,198,93,.07); border: 1px solid rgba(247,198,93,.2); color: var(--warning); font-size: 2rem; display: grid; place-items: center; margin-bottom: 1.2rem; }
.check-list { display: flex; flex-direction: column; gap: .6rem; }
.check-item { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.018); font-size: .8rem; }
.check-item .ico { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; }
.check-item .ico.done { color: #0d160f; background: var(--lime); }
.check-item .ico.wait { color: var(--warning); border: 1px solid rgba(247,198,93,.3); }
.check-item .ico.todo { color: var(--muted-2); border: 1px solid var(--border); }

/* Timers and charts */
.chart-box { position: relative; min-height: 220px; }
.chart-box canvas { max-height: 230px; }
.live-clock { font-family: var(--font-tech); color: var(--muted); font-size: .72rem; letter-spacing: .08em; }
.live-clock strong { color: var(--lime); }

/* Utilities */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
/* transform: none (bukan translateY(0)) agar elemen tidak lagi membentuk stacking context
   yang membuat backdrop modal Bootstrap menutupi dialog di dalamnya. */
.reveal.is-visible { opacity: 1; transform: none; }
.stagger-1 { transition-delay: .05s; }
.stagger-2 { transition-delay: .1s; }
.stagger-3 { transition-delay: .15s; }
.stagger-4 { transition-delay: .2s; }
.min-w-0 { min-width: 0; }
.cursor-pointer { cursor: pointer; }
.object-cover { object-fit: cover; }
.divider-v { width: 1px; align-self: stretch; background: var(--border); }
.dot-lime { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); display: inline-block; box-shadow: 0 0 8px rgba(215,244,90,.5); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.small-note { font-size: .7rem; color: var(--muted-2); }
.link-muted { color: var(--muted); }
.link-muted:hover { color: var(--lime); }
.truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bg-glass { background: rgba(255,255,255,.025); border: 1px solid var(--border); border-radius: 12px; }
.ribbon { position: absolute; top: 12px; right: -32px; width: 130px; transform: rotate(45deg); text-align: center; font-size: .58rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding: .2rem; background: var(--lime); color: #0b100e; }

/* Modal / offcanvas overrides */
.modal-content { background: #101915; border: 1px solid var(--border); border-radius: 17px; box-shadow: 0 40px 100px rgba(0,0,0,.5); }
.modal-header { border-color: var(--border); padding: 1rem 1.25rem; }
.modal-title { font-family: var(--font-display); font-size: 1rem; }
.modal-footer { border-color: var(--border); padding: .8rem 1.25rem; }
.btn-close { filter: invert(1); opacity: .5; }
.modal-backdrop.show { opacity: .72; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }

/* Modern confirmation dialog */
.modal.fade .confirm-dialog { transform: translateY(16px) scale(.97); transition: transform .24s cubic-bezier(.22, 1, .36, 1), opacity .24s ease; }
.modal.show .confirm-dialog { transform: translateY(0) scale(1); }
.confirm-dialog { max-width: 440px; padding: 0 .8rem; }
.confirm-content {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 14% 0%, rgba(215, 244, 90, .1), transparent 38%),
    linear-gradient(160deg, #14211b, #0b1310 58%, #0a100d);
  border: 1px solid rgba(215, 244, 90, .16);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .66), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.confirm-content::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: .85;
}
.confirm-body { display: flex; align-items: flex-start; gap: 1rem; padding: 1.65rem 1.5rem 1.15rem; }
.confirm-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  font-size: 1.35rem;
  color: var(--lime);
  background: linear-gradient(135deg, rgba(215, 244, 90, .17), rgba(215, 244, 90, .04));
  border: 1px solid rgba(215, 244, 90, .22);
  box-shadow: 0 12px 32px rgba(215, 244, 90, .08);
}
.confirm-copy { min-width: 0; padding-top: .1rem; }
.confirm-kicker { display: block; margin-bottom: .35rem; color: var(--muted); font-family: var(--font-tech); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.confirm-title { margin: 0 0 .45rem; font-family: var(--font-display); font-size: 1.08rem; letter-spacing: -.01em; }
.confirm-message { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.65; }
.confirm-actions { display: flex; gap: .6rem; padding: 0 1.5rem 1.5rem; border: 0; }
.confirm-actions .btn { border-radius: 12px; padding: .62rem 1.05rem; font-weight: 600; }
.confirm-cancel { border: 1px solid var(--border); background: rgba(255, 255, 255, .04); color: var(--text); }
.confirm-cancel:hover, .confirm-cancel:focus { border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .08); color: var(--text); }
.confirm-ok { border: 1px solid var(--lime); background: var(--lime); color: #0a0f0d; box-shadow: 0 10px 26px rgba(215, 244, 90, .18); }
.confirm-ok:hover, .confirm-ok:focus { border-color: #efffa5; background: #efffa5; color: #0a0f0d; }
.confirm-modal--danger .confirm-content { border-color: rgba(255, 107, 114, .18); }
.confirm-modal--danger .confirm-content::before { background: linear-gradient(90deg, transparent, var(--danger), transparent); }
.confirm-modal--danger .confirm-icon { color: var(--danger); background: linear-gradient(135deg, rgba(255, 107, 114, .17), rgba(255, 107, 114, .04)); border-color: rgba(255, 107, 114, .24); box-shadow: 0 12px 32px rgba(255, 107, 114, .08); }
.confirm-modal--danger .confirm-ok { border-color: rgba(255, 107, 114, .55); background: linear-gradient(135deg, #ff8a8f, #ff5b64); color: #1a0708; box-shadow: 0 10px 26px rgba(255, 107, 114, .2); }
.confirm-modal--danger .confirm-ok:hover, .confirm-modal--danger .confirm-ok:focus { border-color: #ffb3b7; background: linear-gradient(135deg, #ffa1a5, #ff737a); color: #1a0708; }
.confirm-modal--success .confirm-content { border-color: rgba(99, 230, 167, .18); }
.confirm-modal--success .confirm-content::before { background: linear-gradient(90deg, transparent, var(--success), transparent); }
.confirm-modal--success .confirm-icon { color: var(--success); background: linear-gradient(135deg, rgba(99, 230, 167, .17), rgba(99, 230, 167, .04)); border-color: rgba(99, 230, 167, .24); box-shadow: 0 12px 32px rgba(99, 230, 167, .08); }
.confirm-modal--success .confirm-ok { border-color: rgba(99, 230, 167, .55); background: linear-gradient(135deg, #8af3c0, #4fdc96); color: #04140d; box-shadow: 0 10px 26px rgba(99, 230, 167, .18); }
.confirm-modal--success .confirm-ok:hover, .confirm-modal--success .confirm-ok:focus { border-color: #b8f9d8; background: linear-gradient(135deg, #a5f7cf, #65e6a8); color: #04140d; }
.confirm-modal--info .confirm-content { border-color: rgba(102, 217, 239, .18); }
.confirm-modal--info .confirm-content::before { background: linear-gradient(90deg, transparent, var(--info), transparent); }
.confirm-modal--info .confirm-icon { color: var(--info); background: linear-gradient(135deg, rgba(102, 217, 239, .17), rgba(102, 217, 239, .04)); border-color: rgba(102, 217, 239, .24); box-shadow: 0 12px 32px rgba(102, 217, 239, .08); }
.confirm-modal--info .confirm-ok { border-color: rgba(102, 217, 239, .55); background: linear-gradient(135deg, #9fe9f6, #53cfe8); color: #041014; box-shadow: 0 10px 26px rgba(102, 217, 239, .16); }
.confirm-modal--info .confirm-ok:hover, .confirm-modal--info .confirm-ok:focus { border-color: #c2f3fb; background: linear-gradient(135deg, #b8f1fa, #6edcf1); color: #041014; }
@media (max-width: 480px) {
  .confirm-body { padding: 1.35rem 1.15rem .95rem; }
  .confirm-actions { padding: 0 1.15rem 1.2rem; }
  .confirm-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .modal.fade .confirm-dialog { transform: none; transition: none; }
}
.dropdown-menu { background: #111b17; border: 1px solid var(--border); border-radius: 11px; box-shadow: var(--shadow); padding: .35rem; }
.dropdown-item { border-radius: 7px; color: #b8c9c0; font-size: .8rem; padding: .5rem .65rem; }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(215,244,90,.06); color: var(--lime); }
.dropdown-item.text-danger:hover { background: rgba(255,107,114,.08); color: var(--danger) !important; }
.dropdown-divider { border-color: var(--border); }
.nav-tabs { border-color: var(--border); gap: .2rem; }
.nav-tabs .nav-link { color: var(--muted); border: 0; border-radius: 8px; font-size: .78rem; font-weight: 600; padding: .55rem .8rem; }
.nav-tabs .nav-link:hover { color: var(--text); background: rgba(255,255,255,.03); }
.nav-tabs .nav-link.active { background: rgba(215,244,90,.08); color: var(--lime); border: 0; }
.accordion-item { background: transparent; border-color: var(--border); }
.accordion-button { background: transparent; color: var(--text); font-size: .85rem; font-weight: 600; }
.accordion-button:not(.collapsed) { background: rgba(215,244,90,.04); color: var(--lime); box-shadow: none; }
.accordion-button::after { filter: invert(.75); }
.accordion-body { color: var(--muted); font-size: .8rem; line-height: 1.75; }
.pagination { --bs-pagination-bg: transparent; --bs-pagination-color: var(--muted); --bs-pagination-border-color: var(--border); }
.pagination .page-item.active .page-link { background: var(--lime); border-color: var(--lime); color: #0b100e; }
.progress { background: rgba(255,255,255,.055); height: 5px; border-radius: 10px; }
.progress-bar { background: var(--lime); }

/* Responsive */
@media (max-width: 1199.98px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr); }
}
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-105%); box-shadow: 30px 0 70px rgba(0,0,0,.5); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.show { display: block; }
  .app-shell { margin-left: 0; }
  .topbar .menu-btn { display: grid; place-items: center; }
  .landing-hero { min-height: auto; padding: 3rem 0 4rem; }
  .hero-emblem { width: 300px; margin: 2.5rem auto 0; }
  .auth-body { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-logo-mobile { display: block; }
  .auth-form-wrap { min-height: 100vh; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) {
  .app-main { padding-top: 1.2rem; }
  .topbar { height: 64px; }
  .page-title { font-size: 1.35rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .stat-card { min-height: 112px; padding: .9rem; }
  .stat-value { font-size: 1.5rem; }
  .finance-summary { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .landing-stats { gap: 1.5rem; }
  .hero-panel { padding: 1.3rem; }
  .hero-watermark { font-size: 5rem; }
  .public-section { padding: 3.5rem 0; }
  .id-card { width: 100%; max-width: 430px; height: auto; min-height: 260px; }
  .id-card-main { min-height: 100px; }
  .topbar-context { display: none; }
  .app-footer { flex-direction: column; gap: .35rem; }
  .filter-bar > * { flex: 1 1 100%; }
  .filter-bar .form-control, .filter-bar .form-select { width: 100%; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1; }
  .division-split { grid-template-columns: 1fr 1fr; }
  .table-actions { justify-content: flex-start; }
}
@media (max-width: 575.98px) {
  .stat-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(4, 1fr); }
  .quick-action { font-size: .6rem; padding: .65rem .25rem; }
  .landing-title { font-size: 3.1rem; }
  .landing-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .id-card-name { font-size: .92rem; }
  .id-card-photo { width: 65px; height: 82px; }
  .id-card-rows { gap: .2rem .5rem; }
  .countdown { transform: scale(.92); transform-origin: left; }
}

/* Animation */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp .55s ease both; }
.fade-up-1 { animation-delay: .08s; }
.fade-up-2 { animation-delay: .16s; }
.fade-up-3 { animation-delay: .24s; }
.fade-up-4 { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Print */
@media print {
  @page { size: A4 portrait; margin: 12mm; }
  body { background: #fff !important; color: #111 !important; }
  .sidebar, .topbar, .app-footer, .sidebar-backdrop, .no-print, .app-body::before, .app-body::after, .scanlines { display: none !important; }
  .app-shell { margin: 0 !important; }
  .app-main { padding: 0 !important; }
  .id-card-stage { min-height: auto; display: block; padding: 0; }
  .id-card { width: 85.6mm; height: 54mm; border-radius: 4mm; box-shadow: none; margin: 0 0 8mm; break-inside: avoid; border: 1px solid #333; }
  .id-card-inner { padding: 4mm 4.5mm; }
  .id-card-head { padding-bottom: 2.5mm; }
  .id-card-head img { width: 7mm; height: 8mm; }
  .id-card-brand { font-size: 7pt; }
  .id-card-brand small { font-size: 4pt; }
  .id-card-chip { width: 7mm; height: 5mm; }
  .id-card-main { gap: 3mm; margin-top: 3mm; }
  .id-card-photo { width: 19mm; height: 24mm; }
  .id-card-name { font-size: 10.5pt; }
  .id-card-nick { font-size: 6.5pt; }
  .id-card-division { font-size: 5pt; }
  .id-card-row .k { font-size: 3.4pt; }
  .id-card-row .v { font-size: 5.2pt; }
  .id-card-code { font-size: 5pt; }
  .id-card-barcode { height: 5mm; }
  .id-card-back-title { font-size: 7pt; }
  .id-card-rules { font-size: 4.2pt; }
  .id-card-qr { width: 13mm; height: 13mm; flex-basis: 13mm; }
  .id-card-terms { font-size: 3.5pt; }
  .id-card-stage::after { content: ''; display: block; page-break-after: always; }
  a { color: #111 !important; text-decoration: none; }
}
