/* ============================================================
   JUGADA MAESTRA TACTICS — Design System
   Chess-inspired dark theme
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&family=Playfair+Display:wght@700&display=swap');

:root {
  --bg-primary:    #1a1d27;
  --bg-secondary:  #22263a;
  --bg-card:       #2a2f45;
  --bg-card-hover: #323752;
  --accent-green:       #81b64c;
  --accent-green-dark:  #6a9a3d;
  --accent-blue:        #3a8fd8;
  --accent-gold:        #f5c842;
  --text-primary:   #eef0f7;
  --text-secondary: #9097b3;
  --text-muted:     #5d647e;
  --board-light:    #f0d9b5;
  --board-dark:     #b58863;
  --border:         rgba(255,255,255,0.08);
  --danger:  #e05252;
  --success: #52c77a;
  --warning: #f5a442;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;
  --board-size: 480px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-green); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Typography ---- */
h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: .95rem; font-weight: 600; }
p  { color: var(--text-secondary); }

/* ---- Layout ---- */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 460px;  margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 720px;  margin: 0 auto; padding: 0 1.5rem; }

/* ---- Navbar — matches jugadamaestracr.com style ---- */
.navbar {
  background: #1C2B4A;
  border-bottom: 1px solid rgba(255,255,255,.07);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.navbar-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; line-height: 1.15;
  flex-shrink: 0;
}
.navbar-logo:hover { text-decoration: none; }
.navbar-logo .logo-icon { font-size: 1.3rem; }
.navbar-logo .tag {
  font-size: .58rem; background: var(--accent-green);
  color: #fff; padding: 2px 7px; border-radius: 4px;
  font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  align-self: flex-start; margin-top: 2px;
}
.navbar-logo img {
  height: 46px; width: 46px;
  object-fit: contain; flex-shrink: 0;
  display: block;
}
.navbar-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.navbar-brand-text .brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px; font-weight: 700; color: #fff; letter-spacing: 1.5px;
}
.navbar-brand-text .brand-gold { color: #D4A843; }
.navbar-brand-text .brand-sub  {
  font-size: 9px; font-weight: 600; letter-spacing: 2.5px;
  color: rgba(255,255,255,.4); text-transform: uppercase; margin-top: 1px;
}

.navbar-nav { display: flex; align-items: center; gap: 1.4rem; }
.navbar-nav a {
  color: rgba(255,255,255,.72); font-size: .84rem;
  font-weight: 600; transition: color var(--transition); white-space: nowrap;
  text-decoration: none;
}
.navbar-nav a:hover, .navbar-nav a.active { color: #fff; text-decoration: none; }

.navbar-user {
  display: flex; align-items: center; gap: .5rem;
  flex-shrink: 0;
}
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .78rem; color: #fff; cursor: pointer;
  flex-shrink: 0; text-decoration: none; line-height: 1;
  border: 2px solid rgba(255,255,255,.15); transition: border-color var(--transition);
}
.user-avatar:hover { border-color: rgba(255,255,255,.45); text-decoration: none; }

/* Override btn-ghost on dark navbar */
.navbar .btn-ghost {
  color: rgba(255,255,255,.72); border-color: rgba(255,255,255,.2);
}
.navbar .btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .65rem 1.25rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 600; font-family: inherit;
  cursor: pointer; border: none; transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary  { background: var(--accent-green); color: #fff; }
.btn-primary:hover:not(:disabled) {
  background: var(--accent-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(129,182,76,.35);
  color: #fff; text-decoration: none;
}
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-card-hover); color: var(--text-primary); text-decoration: none; }
.btn-danger  { background: var(--danger); color: #fff; }
.btn-danger:hover:not(:disabled) { background: #c94444; color: #fff; text-decoration: none; }
.btn-ghost   { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-card); text-decoration: none; }
.btn-lg  { padding: .85rem 1.75rem; font-size: 1rem; }
.btn-sm  { padding: .35rem .8rem; font-size: .78rem; }
.btn-block { width: 100%; }

/* ---- Cards ---- */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.card-title { font-size: .95rem; font-weight: 600; color: var(--text-primary); }

/* ---- Forms ---- */
.form-group { margin-bottom: 1.1rem; }
.form-label {
  display: block; font-size: .78rem; font-weight: 700;
  color: var(--text-secondary); margin-bottom: .45rem;
  text-transform: uppercase; letter-spacing: .5px;
}
.form-control {
  width: 100%; background: var(--bg-primary);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .68rem 1rem; font-size: .92rem; color: var(--text-primary);
  transition: border-color var(--transition); outline: none; font-family: var(--font);
}
.form-control:focus  { border-color: var(--accent-green); }
.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled { opacity: .55; cursor: not-allowed; }
select.form-control  { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint  { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: .3rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ---- Alerts ---- */
.alert {
  padding: .8rem 1rem; border-radius: var(--radius-sm);
  font-size: .88rem; display: flex; align-items: flex-start; gap: .7rem; margin-bottom: 1rem;
}
.alert-info    { background: rgba(58,143,216,.12); border: 1px solid rgba(58,143,216,.3); color: #7ab8e8; }
.alert-success { background: rgba(82,199,122,.12); border: 1px solid rgba(82,199,122,.3); color: #52c77a; }
.alert-danger  { background: rgba(224,82,82,.12);  border: 1px solid rgba(224,82,82,.3);  color: #e05252; }
.alert-warning { background: rgba(245,164,66,.12); border: 1px solid rgba(245,164,66,.3); color: #f5a442; }

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; padding: .2rem .6rem;
  border-radius: 99px; font-size: .72rem; font-weight: 700;
}
.badge-green  { background: rgba(129,182,76,.18); color: var(--accent-green); }
.badge-blue   { background: rgba(58,143,216,.18); color: var(--accent-blue); }
.badge-gold   { background: rgba(245,200,66,.18); color: var(--accent-gold); }
.badge-red    { background: rgba(224,82,82,.18);  color: var(--danger); }
.badge-gray   { background: var(--bg-secondary);  color: var(--text-secondary); }

/* ---- Level badges ---- */
.level-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.level-1 { background: rgba(82,199,122,.18);  color: #52c77a; }
.level-2 { background: rgba(58,143,216,.18);  color: #3a8fd8; }
.level-3 { background: rgba(245,200,66,.18);  color: #f5c842; }
.level-4 { background: rgba(240,140,60,.18);  color: #f08c3c; }
.level-5 { background: rgba(224,82,82,.18);   color: #e05252; }

/* ---- Tables ---- */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .88rem; }
thead th {
  text-align: left; padding: .7rem 1rem;
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--text-muted); border-bottom: 1px solid var(--border);
}
tbody td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg-secondary); }

/* ---- Tabs ---- */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.tab-btn {
  padding: .7rem 1.1rem; background: none; border: none;
  color: var(--text-secondary); font-size: .88rem; font-weight: 500;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: all var(--transition); font-family: var(--font);
}
.tab-btn:hover, .tab-btn.active { color: var(--text-primary); border-bottom-color: var(--accent-green); }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.72);
  z-index: 999; display: flex; align-items: center; justify-content: center;
  padding: 1rem; backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: all var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  width: 100%; max-width: 500px; box-shadow: var(--shadow-lg);
  transform: scale(.96); transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-title  { font-size: 1.1rem; font-weight: 700; }
.modal-close  { background: none; border: none; color: var(--text-secondary); font-size: 1.3rem; cursor: pointer; line-height: 1; transition: color var(--transition); }
.modal-close:hover { color: var(--text-primary); }

/* ---- Step Indicator ---- */
.step-indicator { display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; gap: 0; }
.step-item { display: flex; flex-direction: column; align-items: center; }
.step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-secondary); border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: var(--text-muted);
}
.step-item.active .step-circle { background: var(--accent-green); border-color: var(--accent-green); color: #fff; }
.step-item.done   .step-circle { background: rgba(129,182,76,.18); border-color: var(--accent-green); color: var(--accent-green); }
.step-label { font-size: .68rem; color: var(--text-muted); margin-top: 4px; white-space: nowrap; }
.step-item.active .step-label { color: var(--accent-green); }
.step-connector { width: 56px; height: 2px; background: var(--border); margin-bottom: 1.3rem; }
.step-connector.done { background: var(--accent-green); }

/* ---- Auth Pages ---- */
.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 2rem 1rem;
}
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.5rem;
  width: 100%; max-width: 440px; box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 1.75rem; }
.auth-logo .logo-icon-big { font-size: 2.8rem; display: block; margin-bottom: .4rem; }
.auth-logo .brand { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); }
.auth-logo .brand-sub { font-size: .7rem; color: var(--text-muted); letter-spacing: 2px; text-transform: uppercase; display: block; margin-top: 2px; }
.auth-title    { font-size: 1.4rem; font-weight: 800; margin-bottom: .3rem; text-align: center; }
.auth-subtitle { text-align: center; color: var(--text-secondary); font-size: .88rem; margin-bottom: 1.75rem; }
.auth-footer   { text-align: center; margin-top: 1.5rem; font-size: .88rem; color: var(--text-secondary); }
.auth-divider  { text-align: center; position: relative; margin: 1.25rem 0; }
.auth-divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); }
.auth-divider span { position: relative; background: var(--bg-card); padding: 0 .75rem; font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* ---- Notice Box ---- */
.notice-box {
  background: rgba(58,143,216,.07); border: 1px solid rgba(58,143,216,.2);
  border-radius: var(--radius-md); padding: 1.1rem 1.25rem; margin: 1rem 0;
}
.notice-box h4 { color: var(--accent-blue); margin-bottom: .5rem; font-size: .88rem; }
.notice-box p  { font-size: .83rem; color: var(--text-secondary); line-height: 1.6; }
.notice-box p + p { margin-top: .4rem; }

/* ---- Stats Grid ---- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1.2rem; text-align: center; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: .3rem; }
.stat-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; font-weight: 700; }
.stat-card.green { border-color: rgba(129,182,76,.35); } .stat-card.green .stat-value { color: var(--accent-green); }
.stat-card.blue  { border-color: rgba(58,143,216,.35);  } .stat-card.blue  .stat-value { color: var(--accent-blue); }
.stat-card.gold  { border-color: rgba(245,200,66,.35);  } .stat-card.gold  .stat-value { color: var(--accent-gold); }

/* ---- Page Header ---- */
.page-header { padding: 1.75rem 0 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.page-header h1 { margin-bottom: .2rem; }
.page-header p  { color: var(--text-secondary); font-size: .92rem; }

/* ======================================================
   CHESS BOARD
   ====================================================== */
.chess-wrapper { display: flex; flex-direction: column; align-items: center; gap: .25rem; user-select: none; }
.chess-board-row { display: flex; align-items: center; gap: .25rem; }
.coord-col { display: flex; flex-direction: column; justify-content: space-around; width: 18px; }
.coord-row { display: flex; justify-content: space-around; padding: 0 0 0 20px; }
.coord-col span, .coord-row span {
  font-size: .72rem; font-weight: 700; color: var(--text-muted);
  text-align: center; line-height: 1; display: flex; align-items: center; justify-content: center;
}

.chess-board {
  display: grid; grid-template-columns: repeat(8,1fr);
  border: 3px solid #5c3d1e;
  border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 4px #3d2510, 0 10px 40px rgba(0,0,0,.6);
  flex-shrink: 0;
}
.chess-square {
  position: relative; display: flex; align-items: center; justify-content: center;
  cursor: pointer; aspect-ratio: 1;
}
.chess-square.light { background: var(--board-light); }
.chess-square.dark  { background: var(--board-dark);  }
.chess-square.selected   { background: #f6f669 !important; }
.chess-square.last-from,
.chess-square.last-to    { background: rgba(170,210,80,.5) !important; }
.chess-square.in-check   { background: rgba(220,0,0,.45) !important; }

/* Valid move dots */
.chess-square.valid-move::after {
  content: ''; position: absolute;
  width: 30%; height: 30%;
  background: rgba(0,0,0,.18); border-radius: 50%; pointer-events: none; z-index: 2;
}
.chess-square.valid-capture::after {
  content: ''; position: absolute; inset: 4px;
  border: 4px solid rgba(0,0,0,.18); border-radius: 50%; pointer-events: none; z-index: 2;
  width: auto; height: auto;
}

/* Pieces via unicode */
.chess-piece {
  font-size: calc(var(--board-size) / 9.5);
  line-height: 1; pointer-events: none; z-index: 1;
  transition: transform .08s ease;
  display: flex; align-items: center; justify-content: center;
}
.chess-piece.white {
  color: #fff;
  text-shadow:
    -1.2px -1.2px 0 #4a2e0a, 1.2px -1.2px 0 #4a2e0a,
    -1.2px  1.2px 0 #4a2e0a, 1.2px  1.2px 0 #4a2e0a,
    0 2px 6px rgba(0,0,0,.45);
}
.chess-piece.black {
  color: #1c1008;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.chess-square:hover .chess-piece { transform: scale(1.08); }

/* ---- Timer ---- */
.timer-display {
  font-size: 2.4rem; font-weight: 700; letter-spacing: 3px;
  font-family: var(--font-mono); color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.timer-display.urgent  { color: var(--danger); animation: pulse .9s infinite; }
.timer-display.running { color: var(--accent-green); }
@keyframes pulse { 0%,100% { opacity:1 } 50% { opacity:.55 } }

/* ---- Puzzle result overlay ---- */
.puzzle-overlay {
  position: absolute; inset: 0; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  border-radius: var(--radius-md); z-index: 10;
  opacity: 0; visibility: hidden; transition: all .3s; text-align: center; gap: .75rem;
  backdrop-filter: blur(2px);
}
.puzzle-overlay.show { opacity: 1; visibility: visible; }
.puzzle-overlay.correct { background: rgba(82,199,122,.18); }
.puzzle-overlay.wrong   { background: rgba(224,82,82,.12); }
.puzzle-overlay .overlay-icon { font-size: 3.5rem; }
.puzzle-overlay .overlay-text { font-size: 1.4rem; font-weight: 800; }
.puzzle-overlay .overlay-time { color: var(--text-secondary); font-size: .9rem; }

/* ---- Admin Layout ---- */
.admin-layout { display: flex; min-height: calc(100vh - 60px); }
.admin-sidebar { width: 220px; background: var(--bg-secondary); border-right: 1px solid var(--border); padding: 1.5rem 0; flex-shrink: 0; }
.sidebar-section { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); padding: 1rem 1.5rem .4rem; margin-top: .5rem; }
.admin-sidebar nav a { display: flex; align-items: center; gap: .75rem; padding: .7rem 1.5rem; color: var(--text-secondary); font-size: .88rem; font-weight: 500; transition: all var(--transition); text-decoration: none; border-right: 2px solid transparent; }
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: var(--bg-card); color: var(--text-primary); border-right-color: var(--accent-green); text-decoration: none; }
.admin-content { flex: 1; padding: 2rem; overflow-y: auto; }

/* ---- Spinner ---- */
.spinner { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; animation: spin .55s linear infinite; display: inline-block; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Toast ---- */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; display: flex; flex-direction: column; gap: .5rem; z-index: 9999; }
.toast {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: .8rem 1.1rem;
  min-width: 260px; max-width: 360px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .7rem; font-size: .88rem;
  animation: slideIn .3s ease;
}
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } }
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--accent-blue); }

/* ---- Empty state ---- */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-muted); }
.empty-state .ei { font-size: 2.5rem; margin-bottom: .75rem; }
.empty-state h3  { color: var(--text-secondary); margin-bottom: .4rem; }

/* ---- Shake animation (wrong move) ---- */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  15%,55%  { transform: translateX(-7px); }
  35%,75%  { transform: translateX(7px); }
}
.shake { animation: shake .38s ease; }

/* ---- Utilities ---- */
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.flex{display:flex}.flex-center{display:flex;align-items:center;justify-content:center}
.flex-between{display:flex;align-items:center;justify-content:space-between}
.flex-col{flex-direction:column}.gap-1{gap:.5rem}.gap-2{gap:1rem}.gap-3{gap:1.5rem}
.text-center{text-align:center}.text-sm{font-size:.83rem}.text-muted{color:var(--text-muted)}
.text-green{color:var(--accent-green)}.text-danger{color:var(--danger)}
.fw-bold{font-weight:700}.w-100{width:100%}.d-none{display:none!important}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--border); padding: .5rem 0; }
  .admin-sidebar nav { display: flex; overflow-x: auto; gap: 0; }
  .admin-sidebar nav a { padding: .6rem 1rem; white-space: nowrap; border-right: none !important; border-bottom: 2px solid transparent; }
  .admin-sidebar nav a.active { border-bottom-color: var(--accent-green) !important; }
  .sidebar-section { display: none; }
  .admin-content { padding: 1.25rem; }
}
@media (max-width: 768px) {
  :root { --board-size: min(85vw, 420px); }
  .form-row { grid-template-columns: 1fr; }
  h1 { font-size: 1.4rem; }
  .auth-card { padding: 1.75rem 1.25rem; }
}
@media (max-width: 480px) {
  :root { --board-size: min(92vw, 360px); }
}
