/* =========================================================
   KELASONLINE — Super Seru
   Refined UI/UX v2.0
   ========================================================= */

:root {
  /* Brand */
  --brand-50:  #FAF5FF;
  --brand-100: #F3E8FF;
  --brand-200: #E9D5FF;
  --brand-300: #D8B4FE;
  --brand-400: #C084FC;
  --brand-500: #A855F7;
  --brand-600: #9333EA;
  --brand-700: #7E22CE;
  --brand-800: #6B21A8;
  --brand-900: #581C87;

  /* Accent (pink for label borders) */
  --pink-400: #E879F9;
  --pink-500: #D946EF;

  /* Semantic */
  --success: #10B981;
  --success-bg: #D1FAE5;
  --success-text: #065F46;
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --warning-text: #92400E;
  --danger: #EF4444;
  --danger-bg: #FEE2E2;
  --danger-text: #991B1B;
  --info: #3B82F6;
  --info-bg: #DBEAFE;
  --info-text: #1E40AF;
  --gold-from: #FBBF24;
  --gold-to: #D97706;

  /* Neutrals */
  --white: #FFFFFF;
  --gray-50:  #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-150: #ECEEF1;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Brand gradient */
  --grad-brand: linear-gradient(135deg, #9333EA 0%, #7E22CE 45%, #581C87 100%);
  --grad-brand-soft: linear-gradient(135deg, #A855F7 0%, #7E22CE 100%);
  --grad-brand-vivid: linear-gradient(135deg, #C084FC 0%, #9333EA 50%, #6B21A8 100%);
  --grad-page: linear-gradient(180deg, #FAFAFC 0%, #F5F3FF 100%);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-sm: 0 1px 3px rgba(17, 24, 39, 0.06), 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow:    0 4px 6px -1px rgba(17, 24, 39, 0.06), 0 2px 4px -2px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 10px 15px -3px rgba(17, 24, 39, 0.08), 0 4px 6px -4px rgba(17, 24, 39, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(17, 24, 39, 0.10), 0 8px 10px -6px rgba(17, 24, 39, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(76, 29, 149, 0.18);
  --shadow-brand: 0 8px 20px -4px rgba(124, 58, 237, 0.30);
  --shadow-brand-lg: 0 20px 40px -10px rgba(124, 58, 237, 0.35);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius:    10px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --t-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t:      200ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container: 1180px;
  --container-narrow: 880px;
}

/* ============ RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--gray-800);
  background: var(--grad-page);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: inherit; }

h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: var(--gray-900); font-weight: 600; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 8px; border: 2px solid var(--gray-100); }
::-webkit-scrollbar-thumb:hover { background: var(--brand-400); }

/* ============ NAVBAR ============ */
.navbar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; }

.logo-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.app-logo {
  width: auto;
  height: 42px;
  object-fit: contain;
}
.app-logo-lg {
  height: 72px;
}

.navbar-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-link {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all var(--t-fast);
  position: relative;
}
.nav-link:hover { color: var(--brand-700); background: var(--brand-50); }
.nav-link.active {
  color: var(--brand-700);
  background: var(--brand-50);
  font-weight: 600;
}

.table-subtext {
  color: var(--gray-500);
  font-size: 12px;
  margin-top: 4px;
}

.csv-schema-box {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--gray-50);
  color: var(--gray-700);
  overflow-x: auto;
}
.csv-schema-box code {
  display: block;
  margin-top: 6px;
  white-space: nowrap;
}
.validation-text {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
}
.validation-error { color: var(--danger-text); }
.validation-warning { color: var(--warning-text); }

.thanks-hero-image {
  width: 300px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 16px;
}

/* ============ LAYOUT ============ */
.page-wrapper { flex: 1; width: 100%; padding-bottom: 24px; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 28px;
}

/* ============ PROFILE BANNER ============ */
.profile-banner {
  max-width: var(--container);
  margin: 28px auto 24px;
  padding: 44px 32px 36px;
  background: var(--grad-brand-vivid);
  border-radius: var(--radius-lg);
  color: white;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.profile-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08), transparent 45%);
  pointer-events: none;
}
.profile-banner > * { position: relative; z-index: 1; }

.banner-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 3px solid rgba(255, 255, 255, 0.95);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.avatar-img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials {
  font-size: 34px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
}
.avatar-xl { width: 124px; height: 124px; font-size: 44px; }

.banner-name {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
  color: white;
  letter-spacing: 0.2px;
}
.btn-edit-profile {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-900);
  padding: 7px 18px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  transition: all var(--t);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.btn-edit-profile:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}
.vip-badge-banner {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-from), var(--gold-to));
  color: white;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.35);
  letter-spacing: 0.3px;
}

/* ============ SUB BANNER ============ */
.sub-banner {
  max-width: var(--container);
  margin: 28px auto 18px;
  padding: 22px 28px;
  background: var(--grad-brand-vivid);
  border-radius: var(--radius-lg);
  color: white;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.sub-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 50%, rgba(255,255,255,0.10), transparent 60%);
  pointer-events: none;
}
.sub-banner > * { position: relative; z-index: 1; }
.sub-banner h1 {
  font-size: 20px;
  font-weight: 600;
  flex: 1;
  color: white;
  letter-spacing: 0.2px;
}
.back-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 14px;
  transition: all var(--t-fast);
  border: 1px solid rgba(255,255,255,0.1);
}
.back-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-2px);
}

/* ============ MENU GRID ============ */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.menu-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 24px 18px 22px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
  border: 1px solid var(--gray-100);
  position: relative;
  overflow: hidden;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.menu-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(168, 85, 247, 0.04));
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-brand);
  border-color: var(--brand-200);
}
.menu-card:hover::before { opacity: 1; }
.menu-card:active { transform: translateY(-2px); }

.menu-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}
.menu-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--grad-brand-soft);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  margin: 0 auto;
  box-shadow: var(--shadow-brand);
  transition: transform var(--t), box-shadow var(--t);
}
.menu-card:hover .menu-icon {
  transform: translateY(-2px) scale(1.06);
  box-shadow: var(--shadow-brand-lg);
}
.menu-icon-logout {
  background: linear-gradient(135deg, #F87171, #DC2626);
  box-shadow: 0 8px 20px -4px rgba(220, 38, 38, 0.30);
}
.menu-label {
  display: block;
  width: 100%;
  max-width: 190px;
  border: 0;
  padding: 0 4px;
  border-radius: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--gray-800);
  background: transparent;
  letter-spacing: 0;
  transition: color var(--t-fast);
  overflow-wrap: anywhere;
}
.menu-card:hover .menu-label {
  background: transparent;
  border-color: transparent;
  color: var(--brand-700);
}
.menu-label-logout {
  color: #DC2626;
  background: transparent;
}
.menu-card:hover .menu-label-logout {
  background: transparent;
  border-color: transparent;
  color: #B91C1C;
}
.card-badge {
  position: absolute;
  top: -10px;
  right: -18px;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  color: white;
  letter-spacing: 0.4px;
  z-index: 2;
  white-space: nowrap;
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.25);
}
.badge-vip, .badge-bonus { background: linear-gradient(135deg, #EF4444, #DC2626); }
.menu-card-locked { opacity: 0.65; }
.menu-card-locked:hover { opacity: 1; }

/* ============ AUTH ============ */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(ellipse at top left, #C084FC 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, #6B21A8 0%, transparent 50%),
    linear-gradient(135deg, #9333EA 0%, #581C87 100%);
}
.auth-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 40px 36px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(76, 29, 149, 0.35);
  border: 1px solid rgba(255,255,255,0.4);
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-subtitle {
  color: var(--gray-500);
  font-size: 12px;
  margin-top: 10px;
  letter-spacing: 0.3px;
}
.auth-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}
.auth-form .form-group { margin-bottom: 16px; }
.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--gray-500);
}
.auth-link {
  color: var(--brand-600);
  font-weight: 600;
  transition: color var(--t-fast);
}
.auth-link:hover { color: var(--brand-800); text-decoration: underline; }

.demo-accounts {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px dashed var(--gray-200);
}
.demo-title {
  font-size: 11px;
  color: var(--gray-500);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 600;
}
.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.demo-item {
  padding: 12px 6px;
  text-align: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--t-fast);
  color: var(--gray-600);
  background: white;
}
.demo-item:hover {
  border-color: var(--brand-400);
  background: var(--brand-50);
  color: var(--brand-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.demo-item i {
  display: block;
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--brand-600);
}

/* ============ FORMS ============ */
.form-group { margin-bottom: 14px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row .form-group { margin-bottom: 0; }

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 7px;
  letter-spacing: 0.2px;
}
.form-label i { color: var(--brand-600); font-size: 12px; }

.form-input, .form-textarea, select.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 13.5px;
  background: white;
  color: var(--gray-800);
  transition: all var(--t-fast);
}
.form-input:hover, .form-textarea:hover, select.form-input:hover { border-color: var(--gray-300); }
.form-input:focus, .form-textarea:focus, select.form-input:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-400); }
.form-input:disabled {
  background: var(--gray-50);
  color: var(--gray-500);
  cursor: not-allowed;
}
.form-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }
.form-hint {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 4px;
  display: block;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--gray-100);
}
.input-password-wrapper { position: relative; }
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: var(--gray-400);
  font-size: 14px;
  padding: 4px;
  transition: color var(--t-fast);
}
.toggle-password:hover { color: var(--brand-600); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  transition: all var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad-brand-soft);
  color: white;
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand-lg);
}
.btn-outline {
  background: white;
  color: var(--brand-700);
  border: 1.5px solid var(--brand-300);
}
.btn-outline:hover {
  background: var(--brand-50);
  border-color: var(--brand-500);
}
.btn-light {
  background: white;
  color: var(--brand-800);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.btn-light:hover {
  background: var(--brand-50);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-danger {
  background: linear-gradient(135deg, #F87171, #DC2626);
  color: white;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}
.btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.35);
}
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 13px 28px; font-size: 14.5px; }
.btn-full { width: 100%; }

.btn-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  color: var(--gray-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.btn-icon:hover { background: var(--gray-200); color: var(--gray-900); }
.btn-danger-icon { background: var(--danger-bg); color: var(--danger); }
.btn-danger-icon:hover { background: var(--danger); color: white; }

/* ============ ALERTS ============ */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  margin: 16px auto;
  max-width: var(--container);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  position: relative;
  border: 1px solid;
  animation: slideDown 0.3s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.alert i:first-child { font-size: 16px; }
.alert-success {
  background: var(--success-bg);
  color: var(--success-text);
  border-color: rgba(16, 185, 129, 0.2);
}
.alert-danger {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: rgba(239, 68, 68, 0.2);
}
.alert-close {
  position: absolute;
  right: 14px;
  background: none;
  color: inherit;
  opacity: 0.5;
  font-size: 13px;
  padding: 4px;
  transition: opacity var(--t-fast);
}
.alert-close:hover { opacity: 1; }

/* ============ STATS ============ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.stats-row-5 { grid-template-columns: repeat(5, 1fr); }
.stat-card {
  background: white;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--t);
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gray-200);
}
.stat-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--grad-brand-soft);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: var(--shadow-brand);
}
.stat-icon-present { background: linear-gradient(135deg, #34D399, #10B981); box-shadow: 0 4px 10px rgba(16, 185, 129, 0.25); }
.stat-icon-absent  { background: linear-gradient(135deg, #F87171, #DC2626); box-shadow: 0 4px 10px rgba(220, 38, 38, 0.25); }
.stat-icon-rate    { background: linear-gradient(135deg, #60A5FA, #2563EB); box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25); }
.stat-icon-total   { background: linear-gradient(135deg, #FBBF24, #D97706); box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25); }
.stat-info { display: flex; flex-direction: column; min-width: 0; }
.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.stat-label {
  font-size: 11.5px;
  color: var(--gray-500);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* ============ SECTION CARD ============ */
.section-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 18px;
  border: 1px solid var(--gray-100);
}
.section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.1px;
}
.section-title i {
  color: var(--brand-600);
  font-size: 14px;
  width: 28px;
  height: 28px;
  background: var(--brand-50);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.mt-20 { margin-top: 22px; }

/* ============ TABLES ============ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-150);
  background: white;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table thead {
  background: var(--gray-50);
}
.data-table th {
  text-align: left;
  padding: 14px 16px;
  font-weight: 600;
  color: var(--gray-600);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--gray-150);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
  color: var(--gray-700);
}
.data-table tbody tr {
  transition: background var(--t-fast);
}
.data-table tbody tr:hover { background: var(--brand-50); }
.data-table tbody tr:last-child td { border-bottom: none; }
.td-actions { display: flex; gap: 6px; align-items: center; }

.member-name-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 500;
  color: var(--gray-900);
}
.table-avatar, .table-avatar-init {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
}
.table-avatar { object-fit: cover; }
.table-avatar-init {
  background: var(--grad-brand-soft);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: var(--shadow-xs);
}

/* ============ BADGES ============ */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
}
.badge-completed, .badge-active {
  background: var(--success-bg); color: var(--success-text);
  border-color: rgba(16, 185, 129, 0.2);
}
.badge-upcoming {
  background: var(--info-bg); color: var(--info-text);
  border-color: rgba(59, 130, 246, 0.2);
}
.badge-cancelled, .badge-expired {
  background: var(--danger-bg); color: var(--danger-text);
  border-color: rgba(239, 68, 68, 0.2);
}
.badge-suspended {
  background: var(--warning-bg); color: var(--warning-text);
  border-color: rgba(245, 158, 11, 0.2);
}
.badge-admin  { background: #FEE2E2; color: #991B1B; border-color: rgba(239, 68, 68, 0.2); }
.badge-tutor  { background: #DBEAFE; color: #1E40AF; border-color: rgba(59, 130, 246, 0.2); }
.badge-member { background: var(--brand-100); color: var(--brand-800); border-color: rgba(168, 85, 247, 0.2); }
.badge-status {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

/* ============ SCHEDULE ============ */
.schedule-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.sched-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--brand-500);
  position: relative;
}
.sched-card.completed { border-left-color: var(--success); opacity: 0.92; }
.sched-card.cancelled { border-left-color: var(--danger); }
.sched-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--brand-200);
  border-left-color: var(--brand-500);
}
.sched-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.sched-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--grad-brand-soft);
  color: white;
  padding: 9px 14px;
  border-radius: var(--radius);
  min-width: 64px;
  box-shadow: var(--shadow-brand);
}
.sched-day { font-size: 19px; font-weight: 700; line-height: 1; }
.sched-month {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
  margin-top: 2px;
}
.sched-body { padding: 16px 20px; }
.sched-title {
  font-size: 15.5px;
  margin-bottom: 12px;
  color: var(--gray-900);
  font-weight: 600;
}
.sched-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--gray-600);
}
.sched-meta i { color: var(--brand-600); width: 14px; margin-right: 2px; }
.sched-desc {
  font-size: 12.5px;
  margin-top: 10px;
  color: var(--gray-600);
  line-height: 1.5;
}
.sched-footer {
  padding: 13px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--brand-50);
  border-top: 1px solid var(--gray-100);
}

.schedule-list { display: flex; flex-direction: column; gap: 10px; }
.schedule-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--gray-150);
  border-radius: var(--radius);
  transition: all var(--t-fast);
  background: white;
}
.schedule-item:hover {
  border-color: var(--brand-300);
  background: var(--brand-50);
  transform: translateX(2px);
}
.schedule-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--grad-brand-soft);
  color: white;
  padding: 9px 12px;
  border-radius: var(--radius);
  min-width: 58px;
  box-shadow: var(--shadow-brand);
}
.sdb-day { font-size: 19px; font-weight: 700; line-height: 1; }
.sdb-month { font-size: 10px; text-transform: uppercase; font-weight: 600; margin-top: 2px; }
.schedule-info { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--gray-600); }
.schedule-info strong { font-size: 14px; color: var(--gray-900); margin-bottom: 2px; }
.schedule-info i { color: var(--brand-600); margin-right: 4px; width: 13px; }

/* ============ PRESENCE ============ */
.presence-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}
.presence-present { background: var(--success-bg); color: var(--success-text); }
.presence-late    { background: var(--warning-bg); color: var(--warning-text); }
.presence-excused { background: var(--info-bg);    color: var(--info-text); }
.presence-absent  { background: var(--danger-bg);  color: var(--danger-text); }

.presence-radio-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.presence-radio { position: relative; cursor: pointer; }
.presence-radio input { display: none; }
.presence-radio span {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
  border: 1.5px solid var(--gray-200);
  background: white;
  color: var(--gray-500);
  transition: all var(--t-fast);
}
.presence-radio:hover span { border-color: var(--brand-300); }
.presence-radio.present input:checked ~ span { background: var(--success-bg); border-color: var(--success); color: var(--success-text); }
.presence-radio.late    input:checked ~ span { background: var(--warning-bg); border-color: var(--warning); color: var(--warning-text); }
.presence-radio.excused input:checked ~ span { background: var(--info-bg);    border-color: var(--info);    color: var(--info-text); }
.presence-radio.absent  input:checked ~ span { background: var(--danger-bg);  border-color: var(--danger);  color: var(--danger-text); }

.presence-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.presence-header h3 { font-size: 16px; }
.presence-header p { font-size: 12.5px; color: var(--gray-500); margin-top: 4px; }

/* ============ PROGRESS ============ */
.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: var(--gray-600);
}
.progress-label strong { color: var(--brand-700); font-weight: 700; }
.progress-bar-wrap {
  width: 100%;
  height: 10px;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}
.empty-state i {
  font-size: 56px;
  color: var(--gray-300);
  margin-bottom: 18px;
  display: block;
}
.empty-state p { font-size: 14px; font-weight: 500; }
.empty-state small {
  font-size: 12px;
  display: block;
  margin-top: 6px;
  color: var(--gray-400);
}

/* ============ MODULES ============ */
.module-program-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-800);
  margin: 22px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.1px;
}
.module-program-title i {
  width: 30px;
  height: 30px;
  background: var(--brand-100);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--brand-700);
}
.module-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 12px;
  display: flex;
  gap: 18px;
  box-shadow: var(--shadow-sm);
  transition: all var(--t);
  border: 1px solid var(--gray-100);
  border-left: 4px solid var(--brand-500);
}
.module-card.premium { border-left-color: var(--gold-from); }
.module-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.module-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad-brand-soft);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 14px;
  box-shadow: var(--shadow-brand);
}
.module-body { flex: 1; min-width: 0; }
.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 10px;
}
.module-header h4 { font-size: 15px; color: var(--gray-900); }
.badge-premium {
  background: linear-gradient(135deg, var(--gold-from), var(--gold-to));
  color: white;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  box-shadow: 0 4px 8px rgba(217, 119, 6, 0.25);
}
.module-desc {
  font-size: 12.5px;
  color: var(--gray-600);
  margin-bottom: 14px;
  line-height: 1.55;
}
.module-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.content-box {
  background: var(--brand-50);
  padding: 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-top: 14px;
  border-left: 3px solid var(--brand-500);
  line-height: 1.6;
  color: var(--gray-700);
}

/* ============ QUIZ ============ */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.quiz-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--t);
  border: 1px solid var(--gray-100);
}
.quiz-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--brand-200); }
.quiz-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.quiz-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--grad-brand-soft);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-brand);
  flex-shrink: 0;
}
.quiz-meta-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
  font-size: 11px;
}
.quiz-program {
  background: var(--brand-100);
  color: var(--brand-800);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.quiz-status-done    { color: var(--success-text); font-weight: 600; }
.quiz-status-open    { color: var(--info-text);    font-weight: 600; }
.quiz-status-expired { color: var(--danger-text);  font-weight: 600; }
.quiz-title { font-size: 15.5px; font-weight: 600; color: var(--gray-900); }
.quiz-desc { font-size: 12.5px; color: var(--gray-600); line-height: 1.55; }
.quiz-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11.5px;
  color: var(--gray-600);
  padding: 12px;
  background: var(--brand-50);
  border-radius: var(--radius);
  border: 1px solid var(--brand-100);
}
.quiz-info i { color: var(--brand-600); margin-right: 5px; }
.quiz-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
  border-radius: var(--radius);
  border: 1px solid var(--brand-200);
}
.quiz-result span { font-size: 12px; color: var(--gray-600); }
.quiz-score-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-brand-soft);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-brand);
}
.quiz-score-circle span { font-weight: 700; font-size: 18px; line-height: 1; color: white; }
.quiz-score-circle small { font-size: 9.5px; opacity: 0.9; margin-top: 2px; }

.quiz-take-wrapper { max-width: var(--container-narrow); margin: 0 auto; }
.quiz-take-header {
  background: white;
  padding: 22px 26px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.quiz-take-meta {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--gray-600);
}
.quiz-take-meta i { color: var(--brand-600); }
.quiz-take-desc { margin-top: 12px; font-size: 13px; color: var(--gray-700); }

.timer-bar {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  padding: 12px 22px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--warning-text);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: var(--shadow-xs);
}
.timer-count { font-family: 'Courier New', monospace; font-size: 17px; font-weight: 700; }

.question-card {
  background: white;
  padding: 22px;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}
.question-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-600);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin-bottom: 8px;
}
.question-pts { color: var(--gray-500); text-transform: none; font-weight: 500; }
.question-text {
  font-size: 14.5px;
  margin-bottom: 16px;
  font-weight: 500;
  color: var(--gray-900);
  line-height: 1.55;
}
.options-grid { display: flex; flex-direction: column; gap: 8px; }
.option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--t-fast);
  background: white;
}
.option-label:hover { border-color: var(--brand-300); background: var(--brand-50); }
.option-label input { display: none; }
.option-label:has(input:checked) {
  border-color: var(--brand-500);
  background: var(--brand-50);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.08);
}
.option-label:has(input:checked) .option-letter { background: var(--brand-600); color: white; }
.option-letter {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
  transition: all var(--t-fast);
}
.option-text { flex: 1; font-size: 13.5px; color: var(--gray-700); }

.rating-options { display: flex; gap: 8px; flex-wrap: wrap; }
.rating-label { cursor: pointer; }
.rating-label input { display: none; }
.rating-star {
  display: inline-block;
  padding: 9px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  transition: all var(--t-fast);
  background: white;
}
.rating-label:hover .rating-star { border-color: var(--gold-from); }
.rating-label input:checked ~ .rating-star {
  background: var(--warning-bg);
  border-color: var(--gold-from);
  color: var(--warning-text);
}

.quiz-submit-bar {
  text-align: center;
  padding: 22px;
  background: white;
  border-radius: var(--radius-md);
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

.result-card {
  background: var(--grad-brand-vivid);
  color: white;
  padding: 36px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin-bottom: 22px;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}
.result-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255,255,255,0.15), transparent 60%);
  pointer-events: none;
}
.result-card > * { position: relative; z-index: 1; }
.result-icon { font-size: 52px; margin-bottom: 16px; opacity: 0.95; }
.result-card h2 { font-size: 23px; margin-bottom: 16px; color: white; font-weight: 700; }
.result-score { font-size: 50px; font-weight: 700; line-height: 1; color: white; }
.score-big { font-size: 60px; }
.score-max { font-size: 24px; opacity: 0.7; }
.score-pct { font-size: 19px; opacity: 0.95; margin: 10px 0; font-weight: 600; }
.result-card p:last-child { font-size: 12px; opacity: 0.85; margin-top: 4px; }

.question-review-card {
  background: white;
  padding: 18px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--gray-100);
}
.answer-review {
  background: var(--brand-50);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  margin-top: 10px;
  border-left: 3px solid var(--brand-500);
}
.answer-text { color: var(--brand-700); font-weight: 600; }
.correct-answer {
  background: var(--success-bg);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  margin-top: 6px;
  color: var(--success-text);
  border-left: 3px solid var(--success);
}

.score-badge {
  display: inline-block;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.score-good { background: var(--success-bg); color: var(--success-text); }
.score-low  { background: var(--danger-bg); color: var(--danger-text); }

.quiz-type-badge {
  display: inline-block;
  background: var(--brand-100);
  color: var(--brand-800);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.options-preview { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.option-preview {
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  color: var(--gray-700);
}
.option-preview.correct {
  background: var(--success-bg);
  color: var(--success-text);
  font-weight: 600;
}

.response-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--t-fast);
}
.response-item:hover { background: var(--brand-50); }
.response-item:last-child { border: none; }
.response-item strong { flex: 1; font-size: 13px; color: var(--gray-900); }
.response-item small { font-size: 11px; color: var(--gray-500); }

/* ============ CERTIFICATE ============ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 22px;
}
.cert-card { display: flex; flex-direction: column; gap: 14px; }
.cert-bg {
  background:
    linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%),
    repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(217, 119, 6, 0.03) 10px, rgba(217, 119, 6, 0.03) 11px);
  border: 6px double #B45309;
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.cert-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-from), var(--gold-to));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.35);
}
.cert-logo {
  margin-bottom: 18px;
  display: flex;
  justify-content: center;
}
.cert-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
}
.cert-body { text-align: center; }
.cert-with {
  font-size: 11px;
  color: #92400E;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 8px;
  font-weight: 600;
}
.cert-name {
  font-size: 24px;
  font-weight: 700;
  color: #78350F;
  margin: 10px 0;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.5px;
}
.cert-desc { font-size: 11.5px; color: #92400E; margin: 8px 0; }
.cert-program {
  font-size: 17px;
  font-weight: 700;
  color: #B45309;
  margin: 8px 0 20px;
}
.cert-footer-row {
  font-size: 10.5px;
  color: #92400E;
  border-top: 1px dashed rgba(180, 83, 9, 0.5);
  padding-top: 12px;
}
.cert-num, .cert-date { margin: 3px 0; }
.cert-actions { display: flex; gap: 10px; justify-content: center; }

/* ============ PROFILE FORM ============ */
.profile-form-card {
  background: white;
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--gray-100);
}
.profile-photo-section {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--gray-200);
}
.profile-photo-preview {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  margin: 0 auto 14px;
  overflow: hidden;
  background: var(--grad-brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid white;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}
.preview-img { width: 100%; height: 100%; object-fit: cover; }
.photo-upload-btn { cursor: pointer; }

/* ============ PROFILE SETTINGS ============ */
.settings-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.settings-sidebar,
.settings-main {
  min-width: 0;
}
.settings-photo-card,
.settings-info-card,
.settings-section {
  background: white;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.settings-photo-card {
  padding: 26px 22px;
  text-align: center;
}
.settings-avatar {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  margin: 0 auto 15px;
  overflow: hidden;
  background: var(--grad-brand-soft);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid white;
  box-shadow: var(--shadow-brand);
}
.settings-avatar span {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.4px;
}
.settings-photo-card h2 {
  font-size: 18px;
  margin-bottom: 4px;
}
.settings-photo-card p {
  color: var(--gray-500);
  font-size: 12.5px;
  overflow-wrap: anywhere;
}
.settings-role {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 13px 0 16px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--brand-50);
  color: var(--brand-800);
  border: 1px solid var(--brand-100);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.settings-upload-btn {
  min-height: 38px;
  padding: 0 15px;
  border-radius: var(--radius);
  border: 1.5px solid var(--brand-300);
  color: var(--brand-800);
  background: var(--brand-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: all var(--t-fast);
}
.settings-upload-btn:hover {
  border-color: var(--brand-500);
  background: var(--brand-100);
}
.settings-upload-btn input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.settings-photo-card small {
  display: block;
  margin-top: 10px;
  color: var(--gray-400);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.settings-info-card {
  margin-top: 14px;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.settings-info-card div {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--gray-50);
}
.settings-info-card i {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--grad-brand-soft);
}
.settings-info-card span {
  color: var(--gray-500);
  font-size: 12px;
}
.settings-info-card strong {
  color: var(--gray-900);
  font-size: 12.5px;
}
.settings-main {
  display: grid;
  gap: 16px;
}
.settings-section {
  padding: 24px;
}
.settings-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.settings-section-head p {
  color: var(--brand-700);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
.settings-section-head h2 {
  font-size: 17px;
}
.settings-section-head > i {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--brand-50);
  color: var(--brand-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.label-row small {
  color: var(--gray-400);
  font-size: 11px;
}
.security-note {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--info-bg);
  color: var(--info-text);
  font-size: 12.5px;
  border: 1px solid rgba(59, 130, 246, 0.18);
}
.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 0 0;
}

/* ============ RENEWAL / PROGRAMS ============ */
.renewal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--gray-150);
  border-radius: var(--radius);
  margin-bottom: 10px;
  background: white;
  transition: all var(--t-fast);
}
.renewal-item:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
}
.renewal-info h4 { font-size: 14.5px; margin-bottom: 5px; color: var(--gray-900); }
.renewal-info span { font-size: 12px; color: var(--gray-500); display: block; }
.renewal-warning {
  color: var(--danger);
  font-weight: 600;
  margin-top: 5px !important;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  font-size: 12px !important;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.program-card {
  background: white;
  padding: 26px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--gray-100);
  border-top: 4px solid var(--brand-500);
  transition: all var(--t);
}
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--brand-600);
}
.program-card-header {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  background: var(--grad-brand-soft);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: var(--shadow-brand);
}
.program-name {
  font-size: 16px;
  text-align: center;
  color: var(--gray-900);
  font-weight: 700;
}
.program-desc {
  font-size: 12.5px;
  color: var(--gray-600);
  text-align: center;
  flex: 1;
  line-height: 1.55;
}
.program-detail {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  font-size: 12.5px;
  color: var(--gray-600);
  margin: 4px 0;
}
.program-detail i { color: var(--brand-600); margin-right: 4px; }
.program-price {
  color: var(--brand-700);
  font-weight: 700;
  font-size: 15px;
}

.renewal-note {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  color: var(--info-text);
  padding: 16px 20px;
  border-radius: var(--radius);
  display: flex;
  gap: 12px;
  margin-top: 22px;
  font-size: 13px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  align-items: flex-start;
  line-height: 1.55;
}
.renewal-note i { font-size: 18px; flex-shrink: 0; }

/* ============ ENROLLMENT ============ */
.enrollment-list { display: flex; flex-direction: column; gap: 10px; }
.enrollment-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--gray-150);
  border-radius: var(--radius);
  background: white;
  transition: all var(--t-fast);
}
.enrollment-item:hover { border-color: var(--brand-300); background: var(--brand-50); }
.enrollment-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--grad-brand-soft);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-brand);
}
.enrollment-info { flex: 1; }
.enrollment-info strong { font-size: 13.5px; display: block; color: var(--gray-900); }
.enrollment-info span { font-size: 11.5px; color: var(--gray-500); }

/* ============ TOEFL ============ */
.toefl-info-card {
  background: linear-gradient(135deg, var(--gold-from), var(--gold-to));
  color: white;
  padding: 22px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.25);
}
.toefl-info-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.3);
}
.toefl-info-card h3 { font-size: 17px; margin-bottom: 5px; color: white; font-weight: 700; }
.toefl-info-card p { font-size: 12.5px; opacity: 0.95; line-height: 1.55; }

.sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}
.sim-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--gray-100);
  border-top: 4px solid var(--gold-from);
  transition: all var(--t);
}
.sim-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sim-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--gold-from), var(--gold-to));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.25);
}
.sim-card h4 { font-size: 15px; color: var(--gray-900); }
.sim-card p { font-size: 12.5px; color: var(--gray-600); flex: 1; line-height: 1.55; }
.sim-meta {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--gray-100);
  font-size: 11.5px;
  color: var(--gray-600);
}
.sim-meta i { color: var(--gold-to); margin-right: 5px; }

.vip-label, .bonus-label {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: white;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  margin-left: 10px;
  letter-spacing: 0.4px;
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.25);
  text-transform: uppercase;
  vertical-align: middle;
}

/* ============ MEMBER REGISTRATION ============ */
.signup-page {
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.16), transparent 34%),
    linear-gradient(180deg, #FAFAFC 0%, #F5F3FF 100%);
}
.signup-page + .footer {
  display: none;
}
.signup-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.signup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.signup-logo {
  display: inline-flex;
}
.signup-login-link {
  color: var(--brand-700);
  font-size: 13px;
  font-weight: 600;
}
.signup-login-link:hover {
  color: var(--brand-900);
  text-decoration: underline;
}
.signup-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 30px;
}
.signup-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gray-150);
}
.signup-kicker {
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.signup-intro h1 {
  font-size: 25px;
  letter-spacing: 0;
}
.signup-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--brand-100);
}
.signup-alert {
  margin: 18px 0 0;
  max-width: none;
}
.signup-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-100);
}
.signup-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.signup-section-title i {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--grad-brand-soft);
  box-shadow: var(--shadow-brand);
  font-size: 13px;
}
.signup-section-title h2 {
  font-size: 16px;
}
.signup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.signup-grid.three-col {
  grid-template-columns: 1.05fr 1.65fr 0.9fr 0.9fr;
  margin-top: 18px;
}
.signup-wide {
  grid-column: 1 / -1;
}
.signup-inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.signup-field label {
  display: block;
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
.signup-field label span {
  color: var(--danger);
}
.signup-field input,
.signup-field select {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: white;
  color: var(--gray-800);
  font-size: 13.5px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.signup-field input:hover,
.signup-field select:hover {
  border-color: var(--gray-300);
}
.signup-field input:focus,
.signup-field select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}
.signup-field input[readonly] {
  background: var(--gray-50);
  color: var(--gray-600);
}
.signup-program-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.signup-program-tabs label,
.signup-class-chips label {
  cursor: pointer;
}
.signup-program-tabs input,
.signup-class-chips input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.signup-program-tabs span,
.signup-class-chips span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  color: var(--gray-700);
  background: white;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: all var(--t-fast);
}
.signup-program-tabs input:checked + span,
.signup-class-chips input:checked + span {
  border-color: var(--brand-500);
  background: var(--brand-50);
  color: var(--brand-800);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.10);
}
.signup-program-tabs span:hover,
.signup-class-chips span:hover {
  border-color: var(--brand-300);
  color: var(--brand-700);
}
.signup-program-detail {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed var(--gray-200);
}
.signup-class-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
}
.signup-class-chips span {
  min-height: 40px;
  border-radius: var(--radius);
  font-size: 12px;
  padding: 9px 12px;
  text-transform: none;
}
.signup-code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.signup-friend-field {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.24);
}
.signup-friend-field label {
  color: var(--warning-text);
}
.signup-action-field {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}
.signup-action-field input {
  border: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.signup-action-field input:focus {
  box-shadow: none;
}
.signup-action-field button {
  min-width: 98px;
  padding: 0 14px;
  border-radius: 0;
  background: var(--brand-700);
  color: white;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.signup-action-field button:hover {
  background: var(--brand-800);
}
.signup-summary {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFC 100%);
  border: 1px solid var(--gray-150);
  box-shadow: var(--shadow-xs);
}
.summary-empty {
  color: var(--gray-500);
  font-size: 13px;
}
.summary-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.summary-heading span {
  display: block;
  color: var(--gray-500);
  font-size: 12px;
  margin-bottom: 4px;
}
.summary-heading strong {
  display: block;
  color: var(--gray-900);
  font-size: 15px;
}
.summary-heading b {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: 12px;
  white-space: nowrap;
}
.summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.summary-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: var(--radius-full);
  background: white;
  border: 1px solid var(--gray-150);
  color: var(--gray-700);
  font-size: 12px;
  font-weight: 700;
}
.summary-meta i {
  color: var(--brand-600);
  font-size: 11px;
}
.summary-row,
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  font-size: 13px;
}
.summary-row + .summary-row {
  margin-top: 12px;
}
.summary-row span {
  color: var(--gray-600);
  min-width: 96px;
}
.summary-row strong {
  color: var(--gray-900);
  text-align: right;
  overflow-wrap: anywhere;
}
.summary-note {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  background: var(--warning-bg);
  color: var(--warning-text);
  font-size: 12px;
  font-weight: 600;
}
.summary-total {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  color: var(--brand-800);
  font-weight: 800;
  align-items: center;
}
.summary-total strong {
  font-size: 20px;
  white-space: nowrap;
}
.signup-agreement {
  display: grid;
  gap: 10px;
  padding: 20px 0 4px;
}
.signup-agreement label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--gray-600);
  font-size: 12.5px;
  line-height: 1.55;
}
.signup-agreement input {
  margin-top: 3px;
  width: 15px;
  height: 15px;
  accent-color: var(--brand-700);
  flex: 0 0 auto;
}
.signup-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 18px;
  border-radius: var(--radius);
  background: var(--grad-brand-soft);
  color: white;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow-brand);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.signup-submit:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand-lg);
}
.thanks-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 30px;
}
.thanks-hero {
  text-align: center;
  padding: 12px 0 26px;
  border-bottom: 1px solid var(--gray-150);
}
.thanks-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--success-bg);
  color: var(--success-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.thanks-hero h1 {
  font-size: 25px;
  margin-bottom: 7px;
}
.thanks-hero p {
  color: var(--gray-500);
  font-size: 13.5px;
}
.registration-code {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 9px 14px;
  border-radius: var(--radius);
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.6px;
  border: 1px solid var(--brand-100);
}
.thanks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.thanks-card {
  padding: 18px;
  border: 1px solid var(--gray-150);
  border-radius: var(--radius);
  background: white;
}
.thanks-card h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  margin-bottom: 14px;
}
.thanks-card h2 i {
  color: var(--brand-600);
}
.detail-list {
  display: grid;
  gap: 10px;
}
.detail-list div,
.confirm-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.detail-list dt,
.confirm-summary span,
.payment-box span {
  color: var(--gray-500);
  font-size: 12px;
}
.detail-list dd,
.confirm-summary strong {
  color: var(--gray-900);
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}
.payment-box {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.payment-box strong {
  display: block;
  color: var(--brand-800);
  font-size: 22px;
  margin-top: 3px;
}
.payment-box p {
  color: var(--gray-600);
  font-size: 13px;
}
.thanks-actions {
  margin-top: 20px;
}
.confirm-summary {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--gray-50);
  border: 1px solid var(--gray-150);
}
.lookup-shell {
  max-width: 640px;
}
.transfer-callout {
  margin-top: 20px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--grad-brand-soft);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-brand);
}
.transfer-callout span {
  display: block;
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 2px;
}
.transfer-callout strong {
  font-size: 24px;
  color: white;
}
.copy-code-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.18);
  color: white;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.copy-code-btn:hover {
  background: rgba(255, 255, 255, 0.26);
}
.confirm-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
  margin-top: 16px;
}
.bank-note {
  padding: 16px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--gray-150);
}
.bank-note h2 {
  font-size: 15px;
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 8px;
}
.bank-note h2 i {
  color: var(--brand-600);
}
.bank-note p {
  color: var(--gray-600);
  font-size: 12.5px;
  line-height: 1.55;
}
.bank-note-row {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--brand-50);
  color: var(--brand-800);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.confirm-password-field {
  position: relative;
}
.confirm-password-field input {
  padding-right: 46px;
}
.confirm-password-field button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: var(--gray-500);
}
.confirm-password-field button:hover {
  background: var(--brand-50);
  color: var(--brand-700);
}
.transfer-section {
  padding-bottom: 0;
}
.transfer-upload {
  min-height: 132px;
  border: 1.5px dashed var(--brand-400);
  border-radius: var(--radius);
  background: var(--brand-50);
  color: var(--brand-800);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  padding: 20px;
  transition: all var(--t-fast);
}
.transfer-upload:hover {
  border-color: var(--brand-600);
  background: var(--brand-100);
}
.transfer-upload input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.transfer-upload i {
  font-size: 26px;
}
.transfer-upload span {
  color: var(--gray-500);
  font-size: 12px;
}
.transfer-preview {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  margin-top: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-150);
  background: var(--gray-50);
}

/* ============ VIDEO ============ */
.video-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--t);
}
.video-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.video-thumb {
  width: 220px;
  height: 130px;
  background: var(--grad-brand-vivid);
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-brand);
}
.video-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.25));
  pointer-events: none;
}
.video-play-btn {
  font-size: 44px;
  color: white;
  opacity: 0.95;
  transition: all var(--t);
  position: relative;
  z-index: 1;
}
.video-thumb:hover .video-play-btn { transform: scale(1.15); opacity: 1; }
.video-thumb-overlay { position: absolute; top: 10px; right: 10px; z-index: 2; }
.video-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.video-info h4 { font-size: 15px; color: var(--gray-900); }
.video-info p { font-size: 12.5px; color: var(--gray-600); line-height: 1.55; }
.video-meta { font-size: 11.5px; color: var(--gray-500); }
.video-meta i { color: var(--brand-600); margin-right: 4px; }

/* ============ MODAL ============ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255,255,255,0.5);
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.video-modal { max-width: 880px; padding: 0; overflow: hidden; }
.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 1;
}
.modal-header h3 { font-size: 16.5px; color: var(--gray-900); }
.modal-close {
  background: var(--gray-100);
  font-size: 14px;
  color: var(--gray-600);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast);
}
.modal-close:hover { background: var(--danger-bg); color: var(--danger); }
.modal-form { padding: 22px 24px 24px; }

/* ============ TIME GRID ============ */
.time-grid { display: flex; flex-direction: column; gap: 12px; }
.time-day-group {
  background: var(--brand-50);
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--brand-100);
}
.time-day-name {
  font-size: 13px;
  color: var(--brand-800);
  margin-bottom: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.time-slot {
  background: white;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-700);
  border: 1px solid var(--gray-100);
}
.time-slot:last-child { margin-bottom: 0; }

/* ============ NOTIF / UPCOMING ============ */
.notif-bar {
  background: linear-gradient(135deg, #DBEAFE, #BFDBFE);
  padding: 12px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--info-text);
  border: 1px solid rgba(59, 130, 246, 0.2);
  animation: slideDown 0.4s ease;
}
.notif-icon { color: var(--info); font-size: 16px; }
.notif-text { flex: 1; line-height: 1.5; }
.notif-close {
  color: var(--info-text);
  font-size: 13px;
  opacity: 0.6;
  padding: 4px;
  transition: opacity var(--t-fast);
}
.notif-close:hover { opacity: 1; }

.upcoming-banner {
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  padding: 12px 18px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--warning-text);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: var(--shadow-xs);
}
.upcoming-banner i { color: var(--gold-to); font-size: 17px; }
.btn-join {
  margin-left: auto;
  background: linear-gradient(135deg, var(--gold-from), var(--gold-to));
  color: white;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--t-fast);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
}
.btn-join:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(217, 119, 6, 0.35);
}

/* ============ FILTER ============ */
.filter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.filter-form .form-input { flex: 1; min-width: 200px; }

/* ============ ERROR PAGE ============ */
.error-page {
  text-align: center;
  padding: 100px 20px;
  max-width: 520px;
  margin: 0 auto;
}
.error-icon {
  font-size: 72px;
  background: linear-gradient(135deg, var(--gold-from), var(--gold-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
}
.error-page h1 {
  font-size: 26px;
  margin-bottom: 12px;
  color: var(--gray-900);
}
.error-page p {
  color: var(--gray-500);
  margin-bottom: 28px;
  font-size: 14px;
}

.text-muted { color: var(--gray-400); }

/* ============ FOOTER ============ */
.footer {
  background: white;
  padding: 24px;
  text-align: center;
  border-top: 1px solid var(--gray-150);
  margin-top: 36px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  font-size: 12px;
  color: var(--gray-500);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.profile-banner, .sub-banner { animation: fadeInUp 0.4s ease; }
.menu-card, .stat-card, .section-card, .quiz-card, .sched-card, .program-card {
  animation: fadeInUp 0.4s ease;
  animation-fill-mode: both;
}
.menu-grid > .menu-card:nth-child(1) { animation-delay: 0.05s; }
.menu-grid > .menu-card:nth-child(2) { animation-delay: 0.10s; }
.menu-grid > .menu-card:nth-child(3) { animation-delay: 0.15s; }
.menu-grid > .menu-card:nth-child(4) { animation-delay: 0.20s; }
.menu-grid > .menu-card:nth-child(5) { animation-delay: 0.25s; }
.menu-grid > .menu-card:nth-child(6) { animation-delay: 0.30s; }
.menu-grid > .menu-card:nth-child(7) { animation-delay: 0.35s; }
.menu-grid > .menu-card:nth-child(8) { animation-delay: 0.40s; }
.menu-grid > .menu-card:nth-child(9) { animation-delay: 0.45s; }
.menu-grid > .menu-card:nth-child(10) { animation-delay: 0.50s; }

/* ============ RESPONSIVE ============ */
.form-input,
.form-textarea,
select.form-input,
.signup-field input,
.signup-field select,
.confirm-password-field input,
.settings-section input,
.settings-section textarea,
.settings-section select {
  font-size: 16px;
}

@media (max-width: 1024px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-row, .stats-row-5 { grid-template-columns: repeat(2, 1fr); }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
    gap: 14px;
  }
  .settings-info-card { margin-top: 0; }
  .signup-grid.three-col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  body { font-size: 14px; }
  .form-input,
  .form-textarea,
  select.form-input,
  .signup-field input,
  .signup-field select,
  .confirm-password-field input,
  .settings-section input,
  .settings-section textarea,
  .settings-section select {
    font-size: 14px;
  }
  .form-row, .two-col { grid-template-columns: 1fr; gap: 14px; }
  .container { padding: 10px 18px; }
  .navbar-inner { padding: 12px 18px; }
  .navbar-nav { gap: 4px; }
  .nav-link { padding: 6px 10px; font-size: 12.5px; }
  .app-logo { height: 36px; }
  .app-logo-lg { height: 62px; }
  .profile-banner, .sub-banner { margin: 16px; padding: 28px 22px; border-radius: var(--radius-md); }
  .banner-title { font-size: 23px; }
  .menu-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .signup-page { padding: 16px; }
  .signup-panel,
  .thanks-panel { padding: 22px 18px; border-radius: var(--radius-md); }
  .signup-intro { flex-direction: column; gap: 12px; }
  .signup-grid,
  .signup-grid.three-col,
  .signup-code-grid,
  .signup-program-tabs,
  .thanks-grid { grid-template-columns: 1fr; }
  .signup-inline-grid { grid-template-columns: 1fr 1fr; }
  .signup-class-chips { flex-direction: column; }
  .signup-class-chips span { border-radius: var(--radius); }
  .signup-action-field { flex-direction: column; gap: 8px; }
  .signup-action-field input,
  .signup-action-field button { border-radius: var(--radius); }
  .payment-box { align-items: flex-start; flex-direction: column; }
  .confirm-layout { grid-template-columns: 1fr; }
  .transfer-callout { align-items: flex-start; flex-direction: column; }
  .settings-sidebar { grid-template-columns: 1fr; }
  .settings-section { padding: 20px 16px; }
  .settings-actions { flex-direction: column-reverse; }
  .settings-actions .btn { width: 100%; }
}
@media (max-width: 540px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stats-row, .stats-row-5 { grid-template-columns: 1fr; }
  .menu-card { min-height: 128px; padding: 20px 12px 16px; gap: 12px; }
  .menu-icon { width: 56px; height: 56px; font-size: 22px; }
  .menu-label { font-size: 12px; }
  .video-card { flex-direction: column; }
  .video-thumb { width: 100%; height: 180px; }
  .profile-banner { padding: 24px 18px; }
  .banner-title { font-size: 20px; margin-bottom: 16px; }
  .profile-avatar { width: 80px; height: 80px; }
  .avatar-initials { font-size: 28px; }
  .sub-banner h1 { font-size: 17px; }
  .stat-card { padding: 14px; }
  .stat-value { font-size: 20px; }
  .signup-page { padding: 12px; }
  .signup-header { align-items: flex-start; flex-direction: column; }
  .signup-intro h1 { font-size: 21px; }
  .signup-inline-grid { grid-template-columns: 1fr; }
  .summary-row,
  .summary-total,
  .summary-heading,
  .detail-list div,
  .confirm-summary div { align-items: flex-start; flex-direction: column; gap: 5px; }
  .summary-heading b { white-space: normal; }
  .detail-list dd,
  .confirm-summary strong { text-align: left; }
}

@media print {
  .navbar, .footer, .sub-banner, .cert-actions, .btn { display: none !important; }
  body { background: white !important; }
  .cert-bg { box-shadow: none !important; }
}

/* ============ UTILITIES ============ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.text-center { text-align: center; }
.w-full { width: 100%; }

/* ============ AVAILABLE TIME (FluentForm parity) ============ */
.req { color: var(--danger, #e3342f); }
.section-subtitle {
  margin: 18px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong, #1f2937);
}
.ff-read-only { background: var(--gray-100); cursor: not-allowed; }

/* Shared small helpers used by the available-time screen */
.sub-banner-desc { margin-top: 6px; font-size: 13.5px; opacity: 0.9; }
.field-hint { margin-top: 6px; font-size: 12px; color: var(--gray-500); }
.btn-ghost {
  background: var(--white);
  color: var(--brand-700);
  border: 1.5px solid var(--gray-200);
}
.btn-ghost:hover { background: var(--brand-50); border-color: var(--brand-300); color: var(--brand-800); }

/* ---- Summary stats ---- */
.at-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.at-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.at-stat-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 18px;
  color: var(--c, var(--brand-600));
  background: color-mix(in srgb, var(--c, var(--brand-600)) 12%, white);
}
.at-stat strong { display: block; font-size: 20px; font-weight: 800; color: var(--gray-900); line-height: 1.1; }
.at-stat small { font-size: 12px; color: var(--gray-500); }

/* ---- Repeater ---- */
.repeater-head,
.repeater-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}
.repeater-head {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-500);
}
.repeater-row {
  margin-bottom: 10px;
  padding: 4px;
  border-radius: var(--radius);
  transition: background var(--t-fast);
}
.repeater-row:hover { background: var(--brand-50); }
.repeater-actions { display: flex; gap: 6px; }
.btn-add { color: #fff; background: var(--brand-600); }
.btn-remove { color: #fff; background: var(--gray-400); }
.btn-add:hover { filter: brightness(1.08); }
.btn-remove:hover { filter: brightness(1.05); }
.at-add-row { margin: 4px 0 8px; }

/* ---- Live preview ---- */
.at-preview {
  margin: 14px 0;
  padding: 12px 14px;
  background: var(--brand-50);
  border: 1px dashed var(--brand-200);
  border-radius: var(--radius);
}
.at-preview-label { font-size: 12px; font-weight: 700; color: var(--brand-700); }
.at-preview-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.at-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
}
.at-chip.cat-weekdays { border-color: var(--info); color: var(--info-text); background: var(--info-bg); }
.at-chip.cat-weekend { border-color: var(--warning); color: var(--warning-text); background: var(--warning-bg); }
.at-chip.cat-custom { border-color: var(--brand-400); color: var(--brand-800); background: var(--brand-100); }

.at-form-actions { display: flex; gap: 10px; align-items: center; }
.at-form-actions .btn-full { flex: 1; }
.at-reset-btn { white-space: nowrap; }

/* ---- Notes box ---- */
.notes-box {
  margin: 16px 0;
  padding: 12px 16px;
  background: var(--warning-bg);
  border: 1px solid color-mix(in srgb, var(--warning) 35%, white);
  border-radius: var(--radius);
  font-size: 13px;
}
.notes-box p { margin: 0 0 6px; color: var(--warning-text); }
.notes-box ol { margin: 0; padding-left: 18px; color: var(--gray-600); }
.notes-box li { margin-bottom: 4px; }

/* ---- Saved periods ---- */
.period-card {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--gray-150);
  border-radius: var(--radius-md);
  background: var(--gray-50);
}
.period-card:last-child { margin-bottom: 0; }
.period-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.period-head-info h4 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.period-head-info h4 i { color: var(--brand-600); }
.period-meta { font-size: 12px; color: var(--gray-500); }
.period-head-actions { display: flex; gap: 8px; align-items: center; }
.period-head-actions form { display: inline; margin: 0; }
.period-note {
  margin: 0 0 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--gray-600);
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-150);
}

.at-slot-table tr.is-off td { opacity: 0.55; }
.cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
}
.cat-weekdays { background: var(--info-bg); color: var(--info-text); }
.cat-weekend { background: var(--warning-bg); color: var(--warning-text); }
.cat-custom { background: var(--brand-100); color: var(--brand-800); }
.btn-toggle-icon { background: var(--gray-100); color: var(--brand-600); font-size: 15px; }
.btn-toggle-icon:hover { background: var(--brand-100); color: var(--brand-700); }

@media (max-width: 640px) {
  .at-stats { grid-template-columns: 1fr; }
  .repeater-head { display: none; }
  .repeater-row { grid-template-columns: 1fr; }
  .at-form-actions { flex-direction: column; align-items: stretch; }
}
