/* ============================================================
   SISTEM PENILAIAN PRAMUKA — Global Design System
   Kecamatan Ngoro, Mojokerto 2026
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:wght@700;800&display=swap');

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  /* Colors */
  --clr-primary:      #4e342e;
  --clr-primary-dk:   #3e2723;
  --clr-primary-lt:   #795548;
  --clr-secondary:    #ffb300;
  --clr-secondary-dk: #ff8f00;
  --clr-accent:       #ffca28;
  --clr-danger:       #e63946;
  --clr-success:      #06d6a0;
  --clr-warning:      #ffd166;
  --clr-info:         #118ab2;

  /* Backgrounds */
  --bg-base:    #1b1210;
  --bg-surface: #271b18;
  --bg-card:    rgba(62, 39, 35, 0.65);
  --bg-card-hv: rgba(78, 52, 46, 0.5);

  /* Text */
  --txt-primary:   #fff3e0;
  --txt-secondary: #ffca28;
  --txt-muted:     #bcaaa4;

  /* Borders */
  --bdr:    rgba(255, 202, 40, 0.14);
  --bdr-lt: rgba(255, 202, 40, 0.07);

  /* Shadows */
  --shd:      0 8px 32px rgba(0,0,0,0.45);
  --shd-sm:   0 4px 16px rgba(0,0,0,0.3);
  --shd-glow: 0 0 24px rgba(78,52,46,0.35);

  /* Radius */
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;

  /* Transitions */
  --tr: all 0.28s cubic-bezier(0.4,0,0.2,1);

  /* Layout */
  --sidebar-w: 258px;
}

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { 
  box-sizing: border-box; margin: 0; padding: 0; 
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
html { scroll-behavior: smooth; font-size: 15px; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-base);
  color: var(--txt-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  /* PWA Enhancements */
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

/* Re-enable text selection for form elements */
input, textarea, select, .selectable {
  user-select: auto;
  -webkit-user-select: auto;
}

/* Ambient background */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 15% 15%, rgba(121,85,72,.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 85%, rgba(62,39,35,.22) 0%, transparent 60%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffca28' fill-opacity='0.025'%3E%3Cpath d='M40 0L0 40l40 40 40-40z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,.02); }
::-webkit-scrollbar-thumb { background: rgba(149,213,178,.18); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(149,213,178,.3); }

/* Selection */
::selection { background: rgba(45,106,79,.4); color: var(--txt-primary); }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1,h2,h3,h4,h5 { line-height: 1.2; font-weight: 700; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p  { line-height: 1.65; }
.brand { font-family: 'Playfair Display', serif; }

/* ============================================================
   LOGIN PAGE
============================================================ */
.login-page {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; z-index: 1; padding: 1.5rem;
  overflow-y: auto;
}

.login-wrap {
  width: 100%; max-width: 960px;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--bdr);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shd), 0 0 80px rgba(78,52,46,.18);
  animation: fadeUp .5s ease both;
}

/* Hero side */
.login-hero {
  background: linear-gradient(145deg, #1b1210 0%, #3e2723 45%, #4e342e 100%);
  padding: 3rem 2rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}

.login-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffca28' fill-opacity='0.06'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
}

.login-hero-inner { position: relative; z-index: 1; }

.hero-logo {
  width: 140px; height: 140px;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; margin: 0 auto 2.5rem;
}

.hero-logo img { 
  width: 140px; 
  height: 140px; 
  object-fit: contain; 
  transform: scale(1.25); 
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}
.hero-logo:hover img { 
  transform: scale(1.35) translateY(-5px); 
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.6)); 
}

.login-hero h1 {
  font-size: 1.55rem; color: #fff;
  font-family: 'Playfair Display', serif; margin-bottom: .4rem;
}

.login-hero p { font-size: .82rem; color: rgba(255,255,255,.65); line-height: 1.65; }

.hero-badges { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin-top: 1rem; }

.hero-badge {
  padding: .3rem .8rem; border-radius: 20px; font-size: .72rem; font-weight: 500;
  background: rgba(244,164,41,.12); border: 1px solid rgba(244,164,41,.3); color: var(--clr-secondary);
}

.hero-info {
  margin-top: 1.5rem; padding: 1rem; border-radius: var(--r);
  background: rgba(0,0,0,.2); text-align: left;
}

.hero-info-row { display: flex; align-items: flex-start; gap: .5rem; font-size: .78rem; color: rgba(255,255,255,.6); margin-bottom: .4rem; }
.hero-info-row:last-child { margin-bottom: 0; }
.hero-info-row span:first-child { font-size: .9rem; flex-shrink: 0; }

/* Form side */
.login-form-side {
  padding: 3rem 2.5rem;
  display: flex; flex-direction: column; justify-content: center;
}

.login-form-side h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.login-form-side > p { font-size: .82rem; color: var(--txt-muted); margin-bottom: 1.75rem; }

.role-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1.5rem; }

.role-tab {
  padding: .875rem .75rem;
  background: transparent; border: 2px solid var(--bdr);
  border-radius: var(--r); cursor: pointer;
  font-family: 'Poppins', sans-serif; font-size: .82rem; font-weight: 500;
  color: var(--txt-secondary); transition: var(--tr);
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
}

.role-tab .rt-icon { font-size: 1.6rem; }
.role-tab:hover { border-color: var(--clr-primary-lt); background: rgba(78,52,46,.15); color: var(--clr-accent); }
.role-tab.active { border-color: var(--clr-secondary); background: rgba(244,164,41,.08); color: var(--clr-secondary); }

.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: .8rem; font-weight: 500; color: var(--txt-secondary); margin-bottom: .45rem; }

.form-control {
  width: 100%; padding: .8rem 1rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--bdr);
  border-radius: var(--r); color: var(--txt-primary);
  font-family: 'Poppins', sans-serif; font-size: .875rem;
  transition: var(--tr); outline: none;
}

.form-control:focus { border-color: var(--clr-primary-lt); background: rgba(78,52,46,.1); box-shadow: 0 0 0 3px rgba(78,52,46,.15); }
.form-control::placeholder { color: var(--txt-muted); }

/* Prevent ugly browser autofill backgrounds (Force Dark Mode) */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0px 1000px #2a1d1a inset !important;
    -webkit-text-fill-color: var(--txt-primary) !important;
    caret-color: var(--txt-primary);
    border: 1px solid var(--clr-primary-lt) !important;
}

select.form-control option { background: #3e2723; }

.input-wrap { position: relative; }
.input-icon { position: absolute; left: .875rem; top: 50%; transform: translateY(-50%); color: var(--txt-muted); pointer-events: none; }
.input-wrap .form-control { padding-left: 2.5rem; }

.input-pass-toggle {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--txt-muted); cursor: pointer;
  font-size: 1rem; padding: .25rem; transition: var(--tr);
}
.input-pass-toggle:hover { color: var(--txt-secondary); }

.btn-login {
  width: 100%; padding: .9rem; margin-top: .5rem;
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-lt) 100%);
  border: none; border-radius: var(--r);
  color: #fff; font-family: 'Poppins', sans-serif;
  font-size: .95rem; font-weight: 600; cursor: pointer; transition: var(--tr);
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  position: relative; overflow: hidden;
}

.btn-login::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0); transition: var(--tr); }
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(78,52,46,.4); }
.btn-login:hover::after { background: rgba(255,255,255,.06); }
.btn-login:active { transform: translateY(0); }
.btn-login:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.login-error {
  margin-top: .875rem; padding: .7rem 1rem;
  background: rgba(230,57,70,.12); border: 1px solid rgba(230,57,70,.28);
  border-radius: var(--r); color: #ff8a90; font-size: .82rem; text-align: center;
  display: none; animation: fadeUp .3s ease;
}
.login-error.show { display: block; }

.login-footer { margin-top: 1.5rem; font-size: .75rem; color: var(--txt-muted); text-align: center; }

/* ============================================================
   APP LAYOUT
============================================================ */
.app-layout { display: flex; min-height: 100vh; position: relative; z-index: 1; }

/* ---- SIDEBAR ---- */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: linear-gradient(180deg, rgba(62,39,35,.97) 0%, rgba(27,18,16,.99) 100%);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--bdr);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; height: 100vh;
  z-index: 200; transition: var(--tr);
}

.sb-header {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--bdr-lt);
  text-align: center;
}

.sb-logo {
  width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin: 0 auto 1.2rem;
}

.sb-logo img { 
  width: 70px; 
  height: 70px; 
  object-fit: contain; 
  transform: scale(1.3); 
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.4)); 
  transition: transform 0.3s ease;
}
.sb-logo:hover img {
  transform: scale(1.4) translateY(-2px);
}

.sb-title { font-size: .78rem; font-weight: 700; color: var(--txt-primary); line-height: 1.3; }
.sb-sub   { font-size: .68rem; color: var(--txt-muted); margin-top: .15rem; }

.sb-nav { flex: 1; overflow-y: auto; padding: .75rem 0; }

.nav-section-lbl {
  padding: .6rem 1.1rem .2rem;
  font-size: .62rem; font-weight: 600;
  color: var(--txt-muted); text-transform: uppercase; letter-spacing: 1px;
}


.nav-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .7rem 1.1rem; margin: .1rem .5rem;
  border-radius: var(--r); cursor: pointer; transition: var(--tr);
  color: var(--txt-secondary); font-size: .83rem; font-weight: 500;
  border-left: 3px solid transparent; user-select: none;
}

.nav-item:hover { background: rgba(78,52,46,.2); color: var(--txt-primary); }
.nav-item.active { background: rgba(78,52,46,.28); color: var(--clr-accent); border-left-color: var(--clr-secondary); }
.nav-icon { font-size: 1rem; width: 18px; text-align: center; flex-shrink: 0; }
.nav-badge {
  margin-left: auto; padding: .15rem .5rem; border-radius: 10px; font-size: .68rem; font-weight: 600;
  background: rgba(244,164,41,.15); border: 1px solid rgba(244,164,41,.25); color: var(--clr-secondary);
}

.sb-footer {
  padding: .875rem 1rem; border-top: 1px solid var(--bdr-lt);
}

.user-card {
  display: flex; align-items: center; gap: .65rem;
  padding: .65rem .75rem; border-radius: var(--r);
  background: rgba(255,255,255,.03); margin-bottom: .65rem;
}

.user-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-primary-lt), var(--clr-primary));
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0; font-weight: 700;
}

.user-name { font-size: .78rem; font-weight: 600; color: var(--txt-primary); }
.user-role { font-size: .68rem; color: var(--txt-muted); }

.btn-logout {
  width: 100%; padding: .55rem; font-size: .78rem; font-weight: 500;
  background: rgba(230,57,70,.1); border: 1px solid rgba(230,57,70,.22);
  border-radius: var(--r); color: #ff8a90; cursor: pointer; transition: var(--tr);
  font-family: 'Poppins', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
}
.btn-logout:hover { background: rgba(230,57,70,.2); }

/* Mobile toggle */
.sb-toggle {
  display: none; position: fixed; top: 1rem; left: 1rem; z-index: 300;
  width: 40px; height: 40px; background: var(--bg-card); border: 1px solid var(--bdr);
  border-radius: var(--r); align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.1rem; color: var(--txt-secondary);
}

/* ---- MAIN CONTENT ---- */
.main-content { flex: 1; margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  background: rgba(27,18,16,.88); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bdr-lt);
  padding: .875rem 2rem; position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.topbar-left h2 { font-size: 1.15rem; font-weight: 700; }
.topbar-breadcrumb { font-size: .73rem; color: var(--txt-muted); margin-top: .1rem; }
.topbar-right { display: flex; align-items: center; gap: .65rem; }

.page-content { flex: 1; padding: 1.75rem 2rem; animation: fadeUp .35s ease; }

/* ============================================================
   STATS / KPI CARDS
============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .875rem; margin-bottom: 1.75rem; }

.stat-card {
  background: var(--bg-card); backdrop-filter: blur(12px);
  border: 1px solid var(--bdr); border-radius: var(--r-lg);
  padding: 1.25rem; position: relative; overflow: hidden;
  transition: var(--tr); cursor: default;
}

.stat-card::after {
  content: ''; position: absolute; top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, var(--sc, var(--clr-primary-lt)) 0%, transparent 70%);
  opacity: .18;
}

.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shd-sm); border-color: rgba(255,202,40,.22); }
.stat-icon { font-size: 1.75rem; margin-bottom: .6rem; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--sc, var(--clr-accent)); line-height: 1; }
.stat-label { font-size: .76rem; color: var(--txt-muted); margin-top: .35rem; font-weight: 500; }
.stat-note  { font-size: .7rem; color: var(--txt-muted); margin-top: .15rem; }

/* ============================================================
   CARDS
============================================================ */
.card {
  background: var(--bg-card); backdrop-filter: blur(12px);
  border: 1px solid var(--bdr); border-radius: var(--r-lg); padding: 1.35rem;
  transition: var(--tr);
}
.card:hover { border-color: rgba(255,202,40,.2); }
.card-title { font-size: .95rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem; }

/* ============================================================
   LOMBA CARDS GRID
============================================================ */
.lomba-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }

.lomba-card {
  background: var(--bg-card); backdrop-filter: blur(12px);
  border: 1px solid var(--bdr); border-radius: var(--r-lg);
  padding: 1.15rem; cursor: pointer; transition: var(--tr);
  position: relative; overflow: hidden;
}

.lomba-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2.5px;
  background: linear-gradient(90deg, var(--clr-primary-lt), var(--clr-accent));
  transform: scaleX(0); transform-origin: left; transition: var(--tr);
}

.lomba-card:hover { transform: translateY(-4px); box-shadow: var(--shd-sm); border-color: rgba(255,202,40,.22); }
.lomba-card:hover::before { transform: scaleX(1); }

.lc-icon { font-size: 1.75rem; margin-bottom: .6rem; }
.lc-name { font-size: .95rem; font-weight: 700; margin-bottom: .15rem; }
.lc-info { font-size: .72rem; color: var(--txt-muted); margin-bottom: .875rem; }
.lc-progress-lbl { display: flex; justify-content: space-between; font-size: .72rem; color: var(--txt-muted); margin-bottom: .25rem; }
.lc-progress { height: 5px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.lc-progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--clr-primary-lt), var(--clr-accent)); transition: width .7s ease; }

/* ============================================================
   DATA TABLE
============================================================ */
.table-wrap { overflow-x: auto; border-radius: var(--r); }

.data-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: .84rem; min-width: 600px;
}

.data-table th {
  padding: .875rem 1rem; text-align: left;
  font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--txt-muted); background: rgba(62,39,35,.6);
  border-bottom: 1px solid var(--bdr); white-space: nowrap;
}

.data-table th:first-child { border-radius: var(--r) 0 0 0; }
.data-table th:last-child  { border-radius: 0 var(--r) 0 0; }

.data-table td {
  padding: .8rem 1rem; border-bottom: 1px solid var(--bdr-lt);
  color: var(--txt-primary); transition: var(--tr); vertical-align: middle;
}

.data-table tbody tr:hover td { background: rgba(78,52,46,.1); }
.data-table tbody tr:last-child td { border-bottom: none; }

/* Score badges */
.score-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 65px; padding: .25rem .75rem;
  border-radius: 20px; font-weight: 700; font-size: .82rem;
}

.score-excellent { background: rgba(6,214,160,.12); color: #06d6a0; border: 1px solid rgba(6,214,160,.25); }
.score-good      { background: rgba(244,164,41,.12); color: #f4a429; border: 1px solid rgba(244,164,41,.25); }
.score-average   { background: rgba(17,138,178,.12); color: #118ab2; border: 1px solid rgba(17,138,178,.25); }
.score-low       { background: rgba(230,57,70,.12);  color: #e63946; border: 1px solid rgba(230,57,70,.25); }
.score-none      { background: rgba(255,255,255,.05); color: var(--txt-muted); border: 1px solid var(--bdr); }

/* Rank badges */
.rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  font-weight: 700; font-size: .82rem;
}
.rank-1 { background: linear-gradient(135deg,#ffd700,#ffb300); color: #000; box-shadow: 0 2px 8px rgba(255,215,0,.35); }
.rank-2 { background: linear-gradient(135deg,#c0c0c0,#9e9e9e); color: #000; }
.rank-3 { background: linear-gradient(135deg,#cd7f32,#8d4a00); color: #fff; }
.rank-n { background: rgba(255,255,255,.08); color: var(--txt-muted); }

/* Progress bars */
.prog { height: 6px; background: rgba(255,255,255,.07); border-radius: 3px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--clr-primary-lt), var(--clr-accent)); transition: width .8s cubic-bezier(.4,0,.2,1); }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .58rem 1.15rem; border-radius: var(--r);
  font-family: 'Poppins', sans-serif; font-size: .83rem; font-weight: 500;
  cursor: pointer; transition: var(--tr); border: none;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn-primary  { background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-primary-lt) 100%); color: #fff; }
.btn-primary:hover  { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(78,52,46,.4); }
.btn-secondary{ background: rgba(244,164,41,.12); border: 1px solid rgba(244,164,41,.28); color: var(--clr-secondary); }
.btn-secondary:hover{ background: rgba(244,164,41,.22); }
.btn-danger   { background: rgba(230,57,70,.12); border: 1px solid rgba(230,57,70,.28); color: var(--clr-danger); }
.btn-danger:hover { background: rgba(230,57,70,.22); }
.btn-ghost    { background: transparent; border: 1px solid var(--bdr); color: var(--txt-secondary); }
.btn-ghost:hover { background: rgba(255,255,255,.05); }
.btn-success  { background: rgba(6,214,160,.12); border: 1px solid rgba(6,214,160,.28); color: var(--clr-success); }
.btn-success:hover { background: rgba(6,214,160,.22); }
.btn-sm  { padding: .38rem .875rem; font-size: .78rem; }
.btn-lg  { padding: .8rem 1.75rem; font-size: .95rem; }
.btn-icon{ width: 34px; height: 34px; padding: 0; border-radius: var(--r); }
.btn:disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ============================================================
   MODAL
============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,.72); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; visibility: hidden; transition: var(--tr);
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal {
  width: 100%; max-width: 680px; max-height: 90vh; overflow-y: auto;
  background: linear-gradient(150deg, rgba(27,18,16,.99) 0%, rgba(39,27,24,.99) 100%);
  border: 1px solid var(--bdr); border-radius: var(--r-xl);
  box-shadow: var(--shd), 0 0 60px rgba(78,52,46,.18);
  transform: scale(.96) translateY(8px); transition: var(--tr);
}
.modal-overlay.show .modal { transform: scale(1) translateY(0); }

.modal-lg { max-width: 860px; }

.modal-header {
  padding: 1.35rem 1.5rem 1rem; border-bottom: 1px solid var(--bdr-lt);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  position: sticky; top: 0; background: rgba(27,18,16,.98); z-index: 10;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.modal-title { font-size: 1.05rem; font-weight: 700; }
.modal-subtitle { font-size: .74rem; color: var(--txt-muted); margin-top: .15rem; }

.modal-close {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.05); border: 1px solid var(--bdr);
  color: var(--txt-muted); cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; transition: var(--tr); flex-shrink: 0;
}
.modal-close:hover { background: rgba(230,57,70,.15); color: var(--clr-danger); border-color: rgba(230,57,70,.25); }

.modal-body { padding: 1.35rem 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--bdr-lt); display: flex; gap: .65rem; justify-content: flex-end; }

/* Score input */
.score-group {
  padding: .9rem 1rem; margin-bottom: .875rem;
  background: rgba(255,255,255,.025); border: 1px solid var(--bdr-lt);
  border-radius: var(--r); transition: var(--tr);
}
.score-group:hover { border-color: var(--bdr); }
.sg-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.sg-label { font-size: .84rem; font-weight: 500; color: var(--txt-primary); }
.sg-bobot { font-size: .7rem; color: var(--clr-secondary); background: rgba(244,164,41,.1); padding: .15rem .55rem; border-radius: 10px; border: 1px solid rgba(244,164,41,.2); }
.sg-detail { font-size: .72rem; color: var(--txt-muted); margin-bottom: .65rem; line-height: 1.5; }
.sg-controls { display: flex; align-items: center; gap: .75rem; }

.score-slider {
  flex: 1; -webkit-appearance: none; appearance: none; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.1); outline: none; cursor: pointer;
}
.score-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 16px; height: 16px;
  border-radius: 50%; background: var(--clr-primary-lt); cursor: pointer;
  border: 2px solid var(--clr-accent); transition: var(--tr);
  box-shadow: 0 0 6px rgba(255,202,40,.4);
}
.score-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.score-num {
  width: 64px; padding: .38rem .5rem;
  background: rgba(255,255,255,.05); border: 1px solid var(--bdr);
  border-radius: 8px; color: var(--txt-primary);
  font-family: 'Poppins', sans-serif; font-size: .84rem; font-weight: 600;
  text-align: center; outline: none; transition: var(--tr);
}
.score-num:focus { border-color: var(--clr-primary-lt); }

.score-total-box {
  margin-top: 1rem; padding: .875rem 1rem;
  background: rgba(78,52,46,.12); border: 1px solid rgba(78,52,46,.28); border-radius: var(--r);
  display: flex; align-items: center; justify-content: space-between;
}
.stb-label { font-size: .84rem; color: var(--txt-secondary); font-weight: 500; }
.stb-value { font-size: 1.6rem; font-weight: 800; color: var(--clr-accent); }

/* Sub-pos tabs (Penjelajahan) */
.subpos-nav { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem; }
.subpos-btn {
  padding: .38rem .875rem; border-radius: 8px;
  background: transparent; border: 1px solid var(--bdr);
  color: var(--txt-muted); font-family: 'Poppins', sans-serif; font-size: .76rem; font-weight: 500;
  cursor: pointer; transition: var(--tr); white-space: nowrap;
}
.subpos-btn:hover  { color: var(--txt-secondary); border-color: var(--bdr); background: rgba(255,255,255,.04); }
.subpos-btn.active { background: var(--clr-primary); border-color: var(--clr-primary); color: #fff; }

.subpos-content { display: none; }
.subpos-content.active { display: block; }

.subsec-title {
  font-size: .8rem; font-weight: 600; color: var(--txt-secondary);
  padding: .5rem .75rem; background: rgba(255,255,255,.03);
  border-radius: var(--r); margin-bottom: .65rem;
  display: flex; align-items: center; justify-content: space-between;
}
.subsec-bobot { font-size: .7rem; color: var(--txt-muted); }

/* ============================================================
   BADGES, PILLS
============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .6rem; border-radius: 20px; font-size: .7rem; font-weight: 600;
}
.badge-success { background: rgba(6,214,160,.12); color: var(--clr-success); border: 1px solid rgba(6,214,160,.25); }
.badge-warning { background: rgba(244,164,41,.12); color: var(--clr-secondary); border: 1px solid rgba(244,164,41,.25); }
.badge-danger  { background: rgba(230,57,70,.12);  color: var(--clr-danger);  border: 1px solid rgba(230,57,70,.25); }
.badge-info    { background: rgba(17,138,178,.12);  color: var(--clr-info);   border: 1px solid rgba(17,138,178,.25); }
.badge-muted   { background: rgba(255,255,255,.05); color: var(--txt-muted);  border: 1px solid var(--bdr); }
.badge-gold    { background: rgba(255,215,0,.12); color: #ffd700; border: 1px solid rgba(255,215,0,.28); }

/* ============================================================
   TOAST
============================================================ */
.toast-container { position: fixed; top: 1.25rem; right: 1.25rem; z-index: 9999; display: flex; flex-direction: column; gap: .4rem; }

.toast {
  background: rgba(22,50,33,.97); backdrop-filter: blur(16px);
  border: 1px solid var(--bdr); border-radius: var(--r);
  padding: .8rem 1.15rem; display: flex; align-items: center; gap: .65rem;
  font-size: .83rem; min-width: 270px; box-shadow: var(--shd);
  animation: slideInRight .3s cubic-bezier(.4,0,.2,1);
  transition: opacity .35s ease, transform .35s ease;
}
.toast.success { border-color: rgba(6,214,160,.28); }
.toast.error   { border-color: rgba(230,57,70,.28);  }
.toast.warning { border-color: rgba(244,164,41,.28); }

/* ============================================================
   SECTION HEADERS
============================================================ */
.section-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; flex-wrap: wrap; gap: .875rem; }
.section-title { font-size: 1.1rem; font-weight: 700; }
.section-sub   { font-size: .76rem; color: var(--txt-muted); margin-top: .15rem; }

/* ============================================================
   RANKING / PODIUM
============================================================ */
.juara-header {
  background: linear-gradient(135deg, rgba(244,164,41,.12) 0%, rgba(244,164,41,.04) 100%);
  border: 1px solid rgba(244,164,41,.2); border-radius: var(--r-lg);
  padding: 1.35rem 1.5rem; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem;
}
.juara-trophy { font-size: 2.75rem; }
.juara-info h3 { font-size: 1.15rem; color: var(--clr-secondary); }
.juara-info p  { font-size: .78rem; color: var(--txt-muted); margin-top: .2rem; }

.podium-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .875rem; margin-bottom: 1.75rem; }
.podium-card {
  background: var(--bg-card); border: 1px solid var(--bdr); border-radius: var(--r-lg);
  padding: 1.35rem; text-align: center; transition: var(--tr);
}
.podium-card.p1 { border-color: rgba(255,215,0,.28); background: rgba(255,215,0,.04); }
.podium-card.p2 { border-color: rgba(192,192,192,.28); background: rgba(192,192,192,.04); }
.podium-card.p3 { border-color: rgba(205,127,50,.28); background: rgba(205,127,50,.04); }
.pm-medal { font-size: 2.25rem; margin-bottom: .6rem; }
.pm-name  { font-size: .88rem; font-weight: 700; margin-bottom: .2rem; }
.pm-score { font-size: 1.5rem; font-weight: 800; color: var(--clr-secondary); }
.pm-school{ font-size: .72rem; color: var(--txt-muted); margin-top: .2rem; }

/* ============================================================
   GUDEP DASHBOARD
============================================================ */
.gudep-hero {
  background: linear-gradient(135deg, #132c1e 0%, #1e5535 50%, #2a7045 100%);
  border-radius: var(--r-xl); padding: 2rem; margin-bottom: 1.75rem;
  position: relative; overflow: hidden;
}
.gudep-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2395d5b2' fill-opacity='0.055'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
.gudep-hero-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.gudep-hero-title h1 { font-size: 1.6rem; color: #fff; font-family: 'Playfair Display', serif; }
.gudep-hero-title p  { color: rgba(255,255,255,.65); font-size: .82rem; margin-top: .3rem; }

.gudep-hero-score {
  text-align: center; background: rgba(0,0,0,.2);
  padding: .875rem 1.5rem; border-radius: var(--r); border: 1px solid rgba(255,255,255,.1);
}
.ghs-label { font-size: .72rem; color: rgba(255,255,255,.55); font-weight: 500; margin-bottom: .2rem; }
.ghs-value { font-size: 2.25rem; font-weight: 800; color: var(--clr-secondary); line-height: 1; }
.ghs-sub   { font-size: .7rem; color: rgba(255,255,255,.5); margin-top: .2rem; }

/* Chart bars */
.chart-bars { display: flex; flex-direction: column; gap: .7rem; }
.cb-item { display: grid; grid-template-columns: 130px 1fr 55px; align-items: center; gap: .65rem; }
.cb-label { font-size: .76rem; color: var(--txt-secondary); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-track { height: 9px; background: rgba(255,255,255,.05); border-radius: 5px; overflow: hidden; }
.cb-fill  { height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--clr-primary-lt), var(--clr-accent)); transition: width 1s cubic-bezier(.4,0,.2,1); }
.cb-val   { font-size: .76rem; font-weight: 600; color: var(--clr-accent); }

/* ============================================================
   FORM ELEMENTS
============================================================ */
.input-group { margin-bottom: 1rem; }
.input-label { display: block; font-size: .8rem; font-weight: 500; color: var(--txt-secondary); margin-bottom: .4rem; }
.input-field {
  width: 100%; padding: .75rem 1rem;
  background: rgba(255,255,255,.04); border: 1px solid var(--bdr);
  border-radius: var(--r); color: var(--txt-primary);
  font-family: 'Poppins', sans-serif; font-size: .875rem; outline: none; transition: var(--tr);
}
.input-field:focus { border-color: var(--clr-primary-lt); background: rgba(45,106,79,.1); box-shadow: 0 0 0 3px rgba(45,106,79,.12); }
.input-field::placeholder { color: var(--txt-muted); }
select.input-field option { background: #1b4332; }

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; gap: .65rem; cursor: pointer; }
.toggle-input { display: none; }
.toggle-track {
  width: 42px; height: 22px; background: rgba(255,255,255,.1); border-radius: 11px;
  border: 1px solid var(--bdr); position: relative; transition: var(--tr); flex-shrink: 0;
}
.toggle-input:checked ~ .toggle-track { background: var(--clr-primary-lt); border-color: var(--clr-primary-lt); }
.toggle-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: var(--tr);
}
.toggle-input:checked ~ .toggle-track::after { transform: translateX(20px); }
.toggle-label { font-size: .84rem; color: var(--txt-secondary); }

/* Search */
.search-wrap { position: relative; }
.search-wrap .search-icon { position: absolute; left: .875rem; top: 50%; transform: translateY(-50%); color: var(--txt-muted); pointer-events: none; font-size: .95rem; }
.search-wrap .input-field  { padding-left: 2.5rem; }

/* Info / Note boxes */
.info-box {
  padding: .875rem 1rem; border-radius: var(--r);
  background: rgba(17,138,178,.08); border: 1px solid rgba(17,138,178,.2);
  font-size: .8rem; color: #7ec8e3;
  display: flex; align-items: flex-start; gap: .65rem; line-height: 1.55; margin-bottom: 1.25rem;
}
.info-box-icon { font-size: 1rem; flex-shrink: 0; margin-top: .05rem; }

.nota-box {
  padding: .8rem 1rem; border-radius: var(--r);
  background: rgba(27,67,50,.4); border-left: 3px solid var(--clr-primary-lt);
  font-size: .79rem; color: var(--txt-secondary); line-height: 1.6; margin-bottom: .875rem;
}

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--txt-muted); }
.es-icon  { font-size: 2.75rem; margin-bottom: .875rem; }
.es-title { font-size: .95rem; font-weight: 600; margin-bottom: .4rem; color: var(--txt-secondary); }
.es-desc  { font-size: .82rem; line-height: 1.65; }

/* Aspect detail list */
.aspect-list { list-style: none; }
.aspect-item { display: flex; align-items: center; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--bdr-lt); font-size: .83rem; }
.aspect-item:last-child { border-bottom: none; }
.ai-name  { color: var(--txt-secondary); }
.ai-bobot { font-size: .7rem; color: var(--txt-muted); margin-left: .5rem; }
.ai-score { font-weight: 600; color: var(--txt-primary); }

/* Divider */
.divider { height: 1px; background: var(--bdr-lt); margin: 1.25rem 0; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .875rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: .875rem; }

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes spin { to { transform: rotate(360deg); } }

.anim-fade-up { animation: fadeUp .35s ease both; }

.stagger > * { animation: fadeUp .35s ease both; }
.stagger > *:nth-child(1) { animation-delay: .04s; }
.stagger > *:nth-child(2) { animation-delay: .08s; }
.stagger > *:nth-child(3) { animation-delay: .12s; }
.stagger > *:nth-child(4) { animation-delay: .16s; }
.stagger > *:nth-child(5) { animation-delay: .2s;  }
.stagger > *:nth-child(6) { animation-delay: .24s; }
.stagger > *:nth-child(7) { animation-delay: .28s; }
.stagger > *:nth-child(8) { animation-delay: .32s; }

/* Loader */
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,.2); border-top-color: var(--clr-accent); border-radius: 50%; animation: spin .7s linear infinite; }

/* ============================================================
   UTILITIES
============================================================ */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-success { color: var(--clr-success); }
.text-warning { color: var(--clr-secondary); }
.text-danger  { color: var(--clr-danger); }
.text-muted   { color: var(--txt-muted); }
.text-accent  { color: var(--clr-accent); }
.fw-bold      { font-weight: 700; }
.fw-semi      { font-weight: 600; }
.d-flex       { display: flex; }
.flex-1       { flex: 1; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: .5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.w-100 { width: 100%; }
.nowrap{ white-space: nowrap; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {
  html { font-size: 14px; }
  .login-page { align-items: flex-start; padding: 1rem; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-hero { padding: 2rem 1.5rem; border-bottom: 1px solid var(--bdr); }
  .login-hero::before { display: none; } /* Simplify on mobile */
  .hero-logo { width: 90px; height: 90px; margin-bottom: 1.5rem; }
  .hero-logo img { width: 90px; height: 90px; }
  .login-form-side { padding: 2rem 1.5rem; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: 4px 0 20px rgba(0,0,0,.8); }
  .sb-toggle { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: var(--r); }
  .main-content { margin-left: 0; width: 100vw; overflow-x: hidden; }
  .podium-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .page-content { padding: 1rem; width: 100%; }
  .topbar { padding: .75rem 1rem; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .cb-item { grid-template-columns: minmax(70px, 35%) 1fr 40px; gap: .4rem; }
  .data-table th, .data-table td { padding: .6rem .75rem; font-size: .8rem; }
  .score-badge { min-width: 50px; padding: .2rem .5rem; font-size: .75rem; }
  .table-wrap { width: 100%; max-width: calc(100vw - 2rem); margin: 0 auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .lomba-grid { grid-template-columns: 1fr; }
  .role-tabs { grid-template-columns: 1fr 1fr; }
  .stat-card { padding: 1rem; }
  .stat-value { font-size: 1.5rem; }
  .score-total-box { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

/* Print */
@media print {
  .sidebar, .topbar, .btn, .toast-container, .modal-overlay { display: none !important; }
  .main-content { margin-left: 0 !important; }
  body { background: #fff !important; color: #000 !important; }
  .card, .data-table th, .data-table td { border-color: #ccc !important; }
  .score-badge, .rank-badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ============================================================
   SLOT GACHA ANIMATION
============================================================ */
.slot-viewport {
  height: 160px;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 1rem 0;
  width: 100%;
}
.slot-viewport::before, .slot-viewport::after {
  content: ''; position: absolute; left: 0; right: 0; height: 40px; z-index: 2; pointer-events: none;
}
.slot-viewport::before { top: 0; background: linear-gradient(to bottom, var(--bg-base) 0%, transparent 100%); }
.slot-viewport::after { bottom: 0; background: linear-gradient(to top, var(--bg-base) 0%, transparent 100%); }

.slot-strip {
  display: flex;
  flex-direction: column;
  transition: transform 4s cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform;
}
.slot-item {
  height: 160px; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem; 
  font-weight: 800; 
  color: var(--txt-muted);
  line-height: 1;
  opacity: 0.25;
  transition: all 0.5s ease;
}
.slot-item.winner {
  color: var(--clr-secondary);
  opacity: 1;
  text-shadow: var(--shd-glow);
  transform: scale(1.15);
}

/* ============================================================
   UI/UX UPGRADES (GLASSMORPHISM & ANIMATIONS)
============================================================ */

/* Glassmorphism Panel */
.glass-panel {
  background: rgba(39, 27, 24, 0.45) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 202, 40, 0.15) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: var(--r);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.glass-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
}

/* Spinner Animation */
.spinner {
  border: 3px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hover Effects on Interactive Elements */
.btn-login:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(255, 179, 0, 0.3);
}
.role-tab:hover {
  background: rgba(255, 202, 40, 0.1);
}

/* ============================================================
   PREMIUM FOOTER
============================================================ */
.premium-footer {
  grid-column: 1 / -1; /* Span full width of login-wrap */
  width: 100%;
  margin: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.25rem 2.5rem;
  background: rgba(27, 18, 16, 0.6);
  border-top: 1px solid rgba(255, 202, 40, 0.15);
  box-shadow: none; border-radius: 0;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.pf-left { display: flex; align-items: center; gap: 1.25rem; flex: 1; }
.pf-logo { width: 55px; height: 55px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255,202,40,0.2)); }
.pf-title { font-size: 0.95rem; font-weight: 500; color: #fff; margin-bottom: 0.2rem; }
.pf-desc { font-size: 0.75rem; color: rgba(255,255,255,0.5); line-height: 1.4; max-width: 450px; }

.pf-divider { width: 1px; height: 45px; background: rgba(255, 255, 255, 0.08); }

.pf-item { display: flex; align-items: center; gap: 0.85rem; min-width: max-content; }
.pf-icon { 
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: transparent; border: 1.5px solid var(--clr-secondary);
  color: var(--clr-secondary);
}
.pf-details { display: flex; flex-direction: column; }
.pf-label { font-size: 0.7rem; color: rgba(255,255,255,0.6); margin-bottom: 0.15rem; }
.pf-value { font-size: 0.9rem; font-weight: 600; color: var(--clr-secondary); }

@media (max-width: 900px) {
  .premium-footer { flex-wrap: wrap; padding: 1.5rem; justify-content: center; }
  .pf-left { width: 100%; flex-direction: column; text-align: center; margin-bottom: 0.5rem; }
  .pf-desc { margin: 0 auto; }
  .pf-divider { display: none; }
  .pf-item { width: 100%; justify-content: center; margin: 0.5rem 0; }
}
