/* ═══════════════════════════════════════════════════════════════
   BIGMAN ACADEMIC SERVICES — Tutoring Platform CSS (Lobby)
   Design: Ultra-Premium Glassmorphism · Deep Navy · Royal Blue
   Matches main Bigman Academic Services brand exactly
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ─── BIGMAN BRAND TOKENS ──────────────────────────────────── */
:root {
  --primary:        #1a4fa0;
  --primary-dark:   #0d2d5e;
  --primary-mid:    #2361c8;
  --primary-deep:   #071835;
  --primary-light:  rgba(26,79,160,.10);
  --primary-glow:   rgba(26,79,160,.32);
  --accent:         #4f8ef7;
  --accent-2:       #6ea8fe;
  --accent-light:   rgba(79,142,247,.13);
  --success:        #059669;
  --danger:         #dc2626;
  --warning:        #d97706;
  --bg:             #f0f4fd;
  --bg-deep:        #e4eaf8;
  --bg-card:        rgba(255,255,255,0.96);
  --bg-glass:       rgba(255,255,255,0.72);
  --bg-glass-strong:rgba(255,255,255,0.88);
  --bg-nav:         rgba(255,255,255,0.92);
  --text-primary:   #08122a;
  --text-secondary: #374469;
  --text-muted:     #6b7fa8;
  --text-inverse:   #ffffff;
  --border:         rgba(26,79,160,.14);
  --border-subtle:  rgba(26,79,160,.07);
  --border-strong:  rgba(26,79,160,.26);
  --shadow-xs:   0 1px 3px rgba(8,18,42,.07);
  --shadow-sm:   0 2px 14px rgba(8,18,42,.09),0 1px 3px rgba(0,0,0,.04);
  --shadow-md:   0 6px 32px rgba(8,18,42,.12),0 2px 8px rgba(0,0,0,.05);
  --shadow-lg:   0 16px 56px rgba(8,18,42,.16),0 4px 16px rgba(0,0,0,.07);
  --shadow-xl:   0 28px 80px rgba(8,18,42,.20),0 8px 24px rgba(0,0,0,.09);
  --shadow-2xl:  0 44px 100px rgba(8,18,42,.24),0 12px 32px rgba(0,0,0,.11);
  --shadow-glow: 0 0 56px rgba(26,79,160,.32);
  --shadow-blue: 0 8px 40px rgba(26,79,160,.28);
  --shadow-inset:inset 0 1.5px 0 rgba(255,255,255,.80),inset 0 -1px 0 rgba(26,79,160,.06);
  --glass-blur:    blur(28px) saturate(190%);
  --glass-blur-md: blur(18px) saturate(170%);
  --glass-blur-sm: blur(12px) saturate(150%);
  --r-xs: 4px; --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px; --r-full: 9999px;
  --font-body:    'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Instrument Serif', Georgia, serif;
  --tr:        0.28s cubic-bezier(.4,0,.2,1);
  --tr-fast:   0.14s cubic-bezier(.4,0,.2,1);
  --tr-spring: 0.36s cubic-bezier(.34,1.56,.64,1);
  --header-h:  72px;
  --grad-primary: linear-gradient(145deg, #1a4fa0 0%, #0d2d5e 100%);
  --grad-hero:    linear-gradient(160deg, #040e24 0%, #0a1e52 40%, #142c7a 75%, #1a4fa0 100%);
  --grad-glass:   linear-gradient(140deg, rgba(255,255,255,.26) 0%, rgba(255,255,255,.06) 100%);
  --grad-accent:  linear-gradient(135deg, #4f8ef7 0%, #6ea8fe 50%, #2361c8 100%);
  --grad-mesh:    radial-gradient(ellipse at 20% 50%, rgba(26,79,160,.12) 0%, transparent 60%),
                  radial-gradient(ellipse at 80% 20%, rgba(79,142,247,.08) 0%, transparent 50%);
}

[data-theme="dark"] {
  --bg:              #050d1e;
  --bg-deep:         #030810;
  --bg-card:         rgba(10,18,45,.95);
  --bg-glass:        rgba(10,18,45,.75);
  --bg-glass-strong: rgba(14,22,52,.88);
  --bg-nav:          rgba(5,13,30,.94);
  --text-primary:   #dde6fa;
  --text-secondary: #7b96cc;
  --text-muted:     #3f5475;
  --border:        rgba(79,142,247,.16);
  --border-subtle: rgba(79,142,247,.07);
  --border-strong: rgba(79,142,247,.28);
  --shadow-xs:   0 1px 4px rgba(0,0,0,.4);
  --shadow-sm:   0 2px 14px rgba(0,0,0,.5);
  --shadow-md:   0 6px 32px rgba(0,0,0,.56);
  --shadow-lg:   0 16px 56px rgba(0,0,0,.64);
  --shadow-xl:   0 28px 80px rgba(0,0,0,.70);
  --shadow-2xl:  0 44px 100px rgba(0,0,0,.76);
  --shadow-glow: 0 0 64px rgba(26,79,160,.55);
  --shadow-blue: 0 8px 40px rgba(79,142,247,.20);
  --shadow-inset:inset 0 1.5px 0 rgba(255,255,255,.07),inset 0 -1px 0 rgba(0,0,0,.14);
  --primary-light:  rgba(26,79,160,.24);
  --grad-glass:     linear-gradient(140deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,.02) 100%);
  --accent-light:   rgba(79,142,247,.20);
}

/* ─── RESET ──────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text-primary); line-height: 1.72; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background var(--tr), color var(--tr); }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
::selection { background: rgba(79,142,247,.22); color: var(--text-primary); }
::-webkit-scrollbar { width: 6px; } ::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(26,79,160,.4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ─── HEADER ─────────────────────────────────────────────────── */
.tut-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: var(--glass-blur-md);
  -webkit-backdrop-filter: var(--glass-blur-md);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 40px;
  gap: 20px;
}
.tut-header-brand { display: flex; align-items: center; gap: 12px; flex: 1; }
.tut-header-logo  { width: 36px; height: 36px; object-fit: contain; border-radius: var(--r-sm); }
.tut-header-name  { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.tut-header-tag   {
  font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--grad-accent); color: #fff;
  padding: 2px 8px; border-radius: var(--r-full); margin-left: 4px;
}
.tut-header-actions { display: flex; align-items: center; gap: 10px; }
.tut-user-info {
  display: flex; align-items: center; gap: 8px;
  background: var(--primary-light);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 5px 14px 5px 6px;
  font-size: 13px;
  font-weight: 600;
}
.tut-user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ─── HERO SECTION ───────────────────────────────────────────── */
.tut-hero {
  background: var(--grad-hero);
  padding: 80px 40px 72px;
  text-align: center;
  position: relative; overflow: hidden;
}
.tut-hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--grad-mesh); pointer-events: none;
}
.tut-hero > * { position: relative; z-index: 1; }
.tut-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,142,247,.18);
  border: 1px solid rgba(79,142,247,.3);
  border-radius: var(--r-full);
  padding: 5px 16px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 18px;
}
.tut-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-style: italic;
  color: #fff; line-height: 1.1; margin-bottom: 16px;
}
.tut-hero h1 strong { font-style: normal; font-family: var(--font-body); }
.tut-hero p { font-size: 18px; color: rgba(255,255,255,.75); max-width: 540px; margin: 0 auto 32px; line-height: 1.6; }
.tut-hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ─── MAIN CONTENT ───────────────────────────────────────────── */
.tut-main { max-width: 1240px; margin: 0 auto; padding: 48px 32px; }

/* ─── SECTION TITLE ──────────────────────────────────────────── */
.tut-section-title {
  font-size: 22px; font-weight: 800; color: var(--text-primary);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.tut-section-title i { color: var(--primary); }
.tut-section-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }

/* ─── ACTION PANEL ───────────────────────────────────────────── */
.tut-action-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 18px;
  margin-bottom: 40px;
}
.tut-action-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur-sm);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: all var(--tr);
}
.tut-action-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.tut-action-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.tut-action-icon.blue   { background: var(--primary-light); }
.tut-action-icon.green  { background: rgba(5,150,105,.12); }
.tut-action-icon.purple { background: rgba(124,58,237,.10); }
.tut-action-title { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.tut-action-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.5; flex: 1; }
.tut-action-form  { width: 100%; }

/* ─── ROOMS TABLE ────────────────────────────────────────────── */
.tut-rooms-section { margin-top: 40px; }
.tut-rooms-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(310px,1fr)); gap: 18px;
}
.tut-room-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-xs);
  transition: all var(--tr);
  display: flex; flex-direction: column; gap: 12px;
}
.tut-room-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); transform: translateY(-2px); }
.tut-room-header { display: flex; align-items: flex-start; gap: 12px; }
.tut-room-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.tut-room-icon.active { background: var(--grad-accent); }
.tut-room-icon.ended  { background: linear-gradient(145deg,#6b7fa8,#374469); }
.tut-room-name     { font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 2px; }
.tut-room-subject  { font-size: 12.5px; color: var(--text-muted); }
.tut-room-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  font-size: 12px; color: var(--text-muted);
}
.tut-room-meta i { color: var(--primary); }
.tut-room-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tut-room-code {
  font-family: monospace; font-size: 12px;
  background: var(--primary-light); color: var(--primary);
  padding: 3px 10px; border-radius: var(--r-full);
  font-weight: 700; letter-spacing: .05em;
}
.tut-status-dot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
}
.tut-status-dot::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  flex-shrink: 0;
}
.tut-status-dot.waiting::before { background: var(--warning); box-shadow: 0 0 0 3px rgba(217,119,6,.2); }
.tut-status-dot.active::before  { background: var(--success);  box-shadow: 0 0 0 3px rgba(5,150,105,.2); animation: bmt-pulse 1.6s ease-in-out infinite; }
.tut-status-dot.ended::before   { background: var(--text-muted); }
@keyframes bmt-pulse { 0%,100%{opacity:1}50%{opacity:.5} }

/* ─── LOGIN SPLIT ────────────────────────────────────────────── */
.tut-login-wrap { min-height: 100vh; display: flex; background: var(--bg); }
.tut-login-left {
  flex: 1; background: var(--grad-hero);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 48px; position: relative; overflow: hidden;
}
.tut-login-left::before { content: ''; position: absolute; inset: 0; background: var(--grad-mesh); pointer-events: none; }
.tut-login-left > * { position: relative; z-index: 1; }
.tut-login-hero-logo { width: 80px; height: 80px; object-fit: contain; border-radius: var(--r-lg); margin-bottom: 24px; filter: drop-shadow(0 8px 24px rgba(79,142,247,.4)); }
.tut-login-hero-title { font-family: var(--font-display); font-size: clamp(28px,4vw,44px); font-style: italic; color: #fff; text-align: center; margin-bottom: 14px; }
.tut-login-hero-sub   { font-size: 16px; color: rgba(255,255,255,.72); text-align: center; line-height: 1.6; max-width: 360px; }
.tut-login-features   { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.tut-login-feature    { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.85); font-size: 14.5px; }
.tut-login-feature i  { width: 30px; height: 30px; border-radius: var(--r-sm); background: rgba(79,142,247,.25); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--accent-2); flex-shrink: 0; }
.tut-login-right { width: 460px; display: flex; align-items: center; justify-content: center; padding: 48px; background: var(--bg-card); }
.tut-login-box { width: 100%; max-width: 360px; }
.tut-login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.tut-login-brand img  { width: 38px; height: 38px; object-fit: contain; }
.tut-login-brand span { font-weight: 800; font-size: 15px; }

/* ─── BUTTONS ────────────────────────────────────────────────── */
.tut-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; padding: 9px 20px; border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: none; transition: all var(--tr-fast);
  text-decoration: none; white-space: nowrap;
  font-family: var(--font-body); box-shadow: var(--shadow-inset);
}
.tut-btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-blue),var(--shadow-inset); }
.tut-btn-primary:hover { opacity: .92; transform: translateY(-1px); box-shadow: var(--shadow-md),var(--shadow-inset); }
.tut-btn-accent  { background: var(--grad-accent);  color: #fff; }
.tut-btn-accent:hover { opacity: .9; transform: translateY(-1px); }
.tut-btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: none; }
.tut-btn-outline:hover { background: var(--primary-light); }
.tut-btn-ghost   { background: var(--bg-glass); color: var(--text-secondary); border: 1px solid var(--border); box-shadow: none; }
.tut-btn-ghost:hover { background: var(--bg-card); color: var(--text-primary); }
.tut-btn-danger  { background: linear-gradient(145deg,#dc2626,#b91c1c); color: #fff; }
.tut-btn-sm  { padding: 6px 14px; font-size: 12px; }
.tut-btn-lg  { padding: 13px 28px; font-size: 15px; }
.tut-btn-full { width: 100%; }
.tut-btn-hero { background: #fff; color: var(--primary-dark); font-weight: 700; }
.tut-btn-hero:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); }

/* ─── FORMS ──────────────────────────────────────────────────── */
.tut-form-group { margin-bottom: 16px; }
.tut-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }
.tut-label .req { color: var(--danger); margin-left: 2px; }
.tut-input,.tut-select {
  width: 100%; padding: 10px 14px;
  background: var(--bg-glass); border: 1.5px solid var(--border);
  border-radius: var(--r-md); font-size: 14px;
  color: var(--text-primary); outline: none;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
  font-family: var(--font-body);
}
.tut-input:focus,.tut-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,79,160,.12); background: var(--bg-card); }

/* ─── CARDS ──────────────────────────────────────────────────── */
.tut-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.tut-card-header { padding: 16px 22px; border-bottom: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; }
.tut-card-title  { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.tut-card-title i { color: var(--primary); }
.tut-card-body   { padding: 20px 22px; }

/* ─── ALERTS ─────────────────────────────────────────────────── */
.tut-alert { padding: 12px 16px; border-radius: var(--r-md); font-size: 13.5px; display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; border: 1px solid transparent; }
.tut-alert-success { background: rgba(5,150,105,.09); border-color: rgba(5,150,105,.22); color: #065f46; }
.tut-alert-error   { background: rgba(220,38,38,.09); border-color: rgba(220,38,38,.22); color: #991b1b; }
.tut-alert-info    { background: var(--accent-light);  border-color: var(--border);       color: var(--primary-mid); }
html[data-theme="dark"] .tut-alert-success { color: #6ee7b7; }
html[data-theme="dark"] .tut-alert-error   { color: #fca5a5; }
html[data-theme="dark"] .tut-alert-info    { color: var(--accent-2); }

/* ─── BADGES ─────────────────────────────────────────────────── */
.tut-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; white-space: nowrap; }
.tut-badge-blue   { background: var(--accent-light);      color: var(--primary); }
.tut-badge-green  { background: rgba(5,150,105,.12);       color: var(--success); }
.tut-badge-yellow { background: rgba(217,119,6,.12);       color: var(--warning); }
.tut-badge-grey   { background: var(--bg-deep);            color: var(--text-muted); }
.tut-badge-primary{ background: var(--primary);            color: #fff; }

/* ─── MODAL ──────────────────────────────────────────────────── */
.tut-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; transition: opacity var(--tr); }
.tut-modal-overlay.open { opacity: 1; pointer-events: all; }
.tut-modal { background: var(--bg-card); border-radius: var(--r-xl); box-shadow: var(--shadow-2xl); border: 1px solid var(--border); width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; transform: translateY(20px); transition: transform var(--tr); }
.tut-modal-overlay.open .tut-modal { transform: translateY(0); }
.tut-modal-header { padding: 22px 24px 0; display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tut-modal-title  { font-size: 17px; font-weight: 700; }
.tut-modal-close  { width: 30px; height: 30px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: var(--text-muted); cursor: pointer; transition: all var(--tr-fast); }
.tut-modal-close:hover { background: var(--bg-deep); color: var(--text-primary); }
.tut-modal-body   { padding: 0 24px 24px; }

/* ─── STATS STRIP ────────────────────────────────────────────── */
.tut-stats-strip { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.tut-stat { flex: 1; min-width: 150px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-xs); transition: all var(--tr); }
.tut-stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tut-stat-icon { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.tut-stat-icon.green  { background: rgba(5,150,105,.12); }
.tut-stat-icon.accent { background: var(--accent-light); }
.tut-stat-value { font-size: 24px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.tut-stat-label { font-size: 11.5px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

/* ─── EMPTY ──────────────────────────────────────────────────── */
.tut-empty { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.tut-empty-icon { font-size: 40px; margin-bottom: 12px; opacity: .45; }
.tut-empty h3 { font-size: 15px; font-weight: 700; color: var(--text-secondary); margin-bottom: 6px; }
.tut-empty p  { font-size: 13.5px; max-width: 300px; margin: 0 auto 16px; }

/* ─── TOAST ──────────────────────────────────────────────────── */
#tut-flash { position: fixed; top: 80px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; max-width: 340px; }
.tut-toast { padding: 12px 18px; border-radius: var(--r-md); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg); border-left: 3px solid; background: var(--bg-card); display: flex; align-items: center; gap: 9px; animation: tut-toast-in 0.3s var(--tr-spring) forwards; }
.tut-toast.success { border-color: var(--success); color: var(--success); }
.tut-toast.error   { border-color: var(--danger);  color: var(--danger); }
.tut-toast.info    { border-color: var(--primary);  color: var(--primary); }
@keyframes tut-toast-in { from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)} }

/* ─── THEME TOGGLE ───────────────────────────────────────────── */
.tut-theme-toggle { width: 36px; height: 36px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); font-size: 15px; cursor: pointer; transition: all var(--tr-fast); }
.tut-theme-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.tut-footer { text-align: center; padding: 32px 20px; color: var(--text-muted); font-size: 13px; border-top: 1px solid var(--border-subtle); margin-top: 48px; }
.tut-footer a { color: var(--primary); }
.tut-footer a:hover { text-decoration: underline; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .tut-action-grid { grid-template-columns: 1fr; }
  .tut-login-left  { display: none; }
  .tut-login-right { width: 100%; padding: 32px 24px; }
  .tut-hero { padding: 52px 24px 48px; }
  .tut-main { padding: 32px 20px; }
  .tut-header { padding: 0 20px; }
}
@media (max-width: 640px) {
  .tut-stats-strip { gap: 10px; }
  .tut-stat { min-width: 130px; }
  .tut-rooms-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   BIGMAN TUTORING — DESIGN ENHANCEMENTS (2026-07-30)
   Premium visual polish: hover effects, transitions, live badges,
   improved room cards, role-aware empty states, and refined UX.
   ═══════════════════════════════════════════════════════════════ */

/* ─── HERO ENHANCEMENTS ──────────────────────────────────────── */
.tut-hero { padding: 96px 40px 80px; }
.tut-hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  z-index: 2;
}
.tut-hero h1 { letter-spacing: -.02em; }
.tut-hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255,255,255,.9); margin-bottom: 6px;
}
.tut-hero-badge .live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399;
  animation: tut-live-pulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 0 3px rgba(52,211,153,.25);
}
@keyframes tut-live-pulse { 0%,100%{transform:scale(1)}50%{transform:scale(1.25)} }

/* ─── STATS STRIP ENHANCEMENTS ───────────────────────────────── */
.tut-stat {
  position: relative; overflow: hidden;
}
.tut-stat::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity var(--tr);
  border-radius: var(--r-full) var(--r-full) 0 0;
}
.tut-stat:hover::before { opacity: 1; }
.tut-stat-value { font-size: 28px; }

/* ─── ACTION CARD ENHANCEMENTS ───────────────────────────────── */
.tut-action-card {
  position: relative; overflow: hidden;
}
.tut-action-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-accent);
  opacity: 0;
  transition: opacity var(--tr);
}
.tut-action-card:hover::before { opacity: 1; }
.tut-action-card:hover .tut-action-icon {
  transform: scale(1.08);
  transition: transform var(--tr-spring);
}
.tut-action-icon { transition: transform var(--tr-spring); }

/* ─── ROOM CARD ENHANCEMENTS ─────────────────────────────────── */
.tut-room-card {
  position: relative; overflow: hidden;
}
.tut-room-card::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--grad-glass);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--tr);
  border-radius: var(--r-lg);
}
.tut-room-card:hover::after { opacity: 1; }
.tut-room-card.active-room {
  border-color: rgba(5,150,105,.28);
  box-shadow: 0 0 0 1px rgba(5,150,105,.12), var(--shadow-sm);
}
.tut-room-meta span {
  display: flex; align-items: center; gap: 4px;
  background: var(--bg-deep);
  padding: 2px 8px; border-radius: var(--r-full);
  font-weight: 500;
}
.tut-room-code {
  cursor: pointer; transition: all var(--tr-fast);
}
.tut-room-code:hover {
  background: var(--primary-light);
  transform: scale(1.04);
}

/* ─── LIVE PARTICIPANT BADGE ─────────────────────────────────── */
.tut-live-count {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(5,150,105,.12);
  border: 1px solid rgba(5,150,105,.22);
  color: var(--success);
  padding: 2px 9px; border-radius: var(--r-full);
  font-size: 11.5px; font-weight: 700;
}
.tut-live-count .dot {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: bmt-pulse 1.6s ease-in-out infinite;
}

/* ─── ROLE BADGE ─────────────────────────────────────────────── */
.tut-role-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em;
  padding: 2px 9px; border-radius: var(--r-full);
}
.tut-role-badge.host        { background: rgba(26,79,160,.12); color: var(--primary); border: 1px solid var(--border); }
.tut-role-badge.participant { background: var(--bg-deep);      color: var(--text-muted); border: 1px solid var(--border-subtle); }

/* ─── SECTION HEADER WITH ACTIONS ───────────────────────────── */
.tut-section-hdr {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.tut-section-hdr-left { display: flex; flex-direction: column; gap: 3px; }

/* ─── IMPROVED EMPTY STATE ───────────────────────────────────── */
.tut-empty {
  background: var(--bg-card);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-xl);
  padding: 64px 40px;
}
.tut-empty-icon {
  font-size: 48px; opacity: .6;
  margin-bottom: 16px; line-height: 1;
}
.tut-empty h3 {
  font-size: 18px; font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.tut-empty p {
  font-size: 14.5px; max-width: 380px;
  margin: 0 auto 20px; line-height: 1.6;
  color: var(--text-muted);
}

/* ─── HEADER IMPROVEMENT ─────────────────────────────────────── */
.tut-header {
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(8,18,42,.06);
}
.tut-user-info { transition: all var(--tr-fast); }
.tut-user-info:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.tut-user-info:hover .tut-user-avatar { background: rgba(255,255,255,.25); }

/* ─── IMPROVED MODAL ─────────────────────────────────────────── */
.tut-modal {
  animation: tut-modal-in var(--tr-spring) forwards;
}
.tut-modal-overlay.open .tut-modal {
  animation: tut-modal-in var(--tr-spring) forwards;
}
@keyframes tut-modal-in {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ─── BUTTON GROUP ───────────────────────────────────────────── */
.tut-btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── INPUT GROUP (for join-by-code) ─────────────────────────── */
.tut-input-group {
  display: flex; gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-glass);
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}
.tut-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,79,160,.12);
}
.tut-input-group .tut-input {
  border: none; background: transparent;
  border-radius: 0; box-shadow: none;
  flex: 1;
}
.tut-input-group .tut-input:focus { box-shadow: none; border: none; }
.tut-input-group .tut-btn { border-radius: 0; }

/* ─── LINK STYLE ─────────────────────────────────────────────── */
.tut-link {
  color: var(--primary); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px;
  transition: color var(--tr-fast);
}
.tut-link:hover { color: var(--primary-mid); }

/* ─── DARK MODE ALERT FIXES ──────────────────────────────────── */
[data-theme="dark"] .tut-toast { background: rgba(10,18,45,.98); }

/* ─── IMPROVED RESPONSIVE ────────────────────────────────────── */
@media (max-width: 1024px) {
  .tut-action-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tut-action-grid { grid-template-columns: 1fr; }
  .tut-hero { padding: 60px 20px 52px; }
  .tut-section-hdr { flex-direction: column; align-items: flex-start; gap: 10px; }
}
