/* ============================
   SANRAD INTERNSHIP PORTAL
   Glassmorphic / Mac-iOS Style
   ============================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #5B9BD5;
  --blue-dark: #3a7cbf;
  --blue-light: #8ab8e0;
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-hover: rgba(255, 255, 255, 0.13);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-border-strong: rgba(255, 255, 255, 0.3);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --glass-shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --header-h: 64px;
  --footer-h: 50px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --success: #34d399;
  --error: #f87171;
  --warning: #fbbf24;
  --info: #60a5fa;
}

html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  /* Fixed background — never scrolls */
  background-color: #0a1628;
  background-image:
    /* Abstract mesh: overlapping radial blobs at fixed positions */
    radial-gradient(ellipse 80% 60% at 10% 20%,  rgba(91,155,213,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 10%,  rgba(58, 90, 140, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 90%,  rgba(30, 60, 110, 0.30) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 80% 70%,  rgba(91,155,213,0.10) 0%, transparent 50%),
    radial-gradient(ellipse 90% 40% at 20% 60%,  rgba(15, 35, 75, 0.40)  0%, transparent 70%),
    /* Fine dot grid */
    radial-gradient(circle, rgba(91,155,213,0.12) 1px, transparent 1px),
    /* Base gradient */
    linear-gradient(160deg, #0d1b2a 0%, #1a2a4a 40%, #0f2040 70%, #0a1628 100%);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    28px 28px,
    100% 100%;
  background-attachment: fixed;
}

/* Animated soft-glow orbs — fixed so they don't scroll */
body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.10;
  animation: blobFloat 22s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
body::before {
  width: 550px; height: 550px;
  background: radial-gradient(circle, #5B9BD5, transparent 70%);
  top: -120px; left: -100px;
  animation-delay: 0s;
}
body::after {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #2a4a8c, transparent 70%);
  bottom: -80px; right: -80px;
  animation-delay: -11s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(25px, -25px) scale(1.04); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ========================
   LAYOUT
   ======================== */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(13, 27, 42, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  padding: 0 2rem;
}

.site-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--footer-h);
  z-index: 1000;
  background: rgba(13, 27, 42, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.main-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: calc(var(--footer-h) + 2rem);
  overflow-y: auto;
}

/* ========================
   HEADER / BRAND
   ======================== */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  user-select: none;
}

.brand-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(91, 155, 213, 0.35));
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 4px;
  line-height: 1;
}

.brand-sanrad {
  font-family: "Arial Black", Arial, sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  color: #5B9BD5;
  letter-spacing: -0.01em;
}

.brand-infotech {
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #a0a0a8;
  letter-spacing: 0;
}

.brand-tagline {
  display: none;
}

@media (min-width: 600px) {
  .brand-tagline {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
    padding-left: 0.5rem;
    border-left: 1px solid var(--glass-border);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.nav-link.active {
  background: rgba(91, 155, 213, 0.15);
  color: var(--blue-light);
}

.nav-btn {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(91, 155, 213, 0.35);
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(91, 155, 213, 0.5);
}

/* ========================
   GLASS CARDS
   ======================== */

.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow-lg);
}

/* ========================
   TYPOGRAPHY
   ======================== */

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p { line-height: 1.7; }

.text-blue { color: var(--blue); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }
.text-warning { color: var(--warning); }

/* ========================
   FORMS
   ======================== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

label {
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  background: rgba(91, 155, 213, 0.08);
  box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

select option {
  background: #1a2a4a;
  color: var(--text-primary);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

input[type="file"] {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--text-secondary);
}

input[type="file"]::-webkit-file-upload-button {
  background: rgba(91, 155, 213, 0.2);
  border: 1px solid var(--blue);
  border-radius: 6px;
  color: var(--blue-light);
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  transition: var(--transition);
}

input[type="file"]::-webkit-file-upload-button:hover {
  background: rgba(91, 155, 213, 0.35);
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .input-row { grid-template-columns: 1fr; }
}

/* Checkbox / Toggle */
.toggle-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}

.toggle-switch input { display: none; }

.toggle-track {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 13px;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
}

.toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + .toggle-track {
  background: var(--blue);
  border-color: var(--blue);
}

.toggle-switch input:checked ~ .toggle-thumb {
  transform: translateX(18px);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}

/* ========================
   BUTTONS
   ======================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(91, 155, 213, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(91, 155, 213, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--glass-bg-hover);
  color: var(--text-primary);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

.btn-full { width: 100%; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue-light);
}

.btn-outline:hover:not(:disabled) {
  background: rgba(91, 155, 213, 0.1);
}

.btn-loading {
  pointer-events: none;
}

.btn-loading::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 0.5rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========================
   ALERTS / MESSAGES
   ======================== */

.alert {
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.alert-error {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6ee7b7;
}

.alert-info {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #93c5fd;
}

.alert-warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fde68a;
}

/* ========================
   STATUS BADGES
   ======================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-submitted    { background: rgba(96, 165, 250, 0.15); color: #93c5fd; border: 1px solid rgba(96, 165, 250, 0.3); }
.badge-under_review { background: rgba(251, 191, 36, 0.15); color: #fde68a; border: 1px solid rgba(251, 191, 36, 0.3); }
.badge-interview_scheduled { background: rgba(167, 139, 250, 0.15); color: #c4b5fd; border: 1px solid rgba(167, 139, 250, 0.3); }
.badge-accepted     { background: rgba(52, 211, 153, 0.15); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.3); }
.badge-rejected     { background: rgba(248, 113, 113, 0.15); color: #fca5a5; border: 1px solid rgba(248, 113, 113, 0.3); }
.badge-draft        { background: rgba(156, 163, 175, 0.1); color: #9ca3af; border: 1px solid rgba(156, 163, 175, 0.2); }
.badge-professional { background: rgba(91, 155, 213, 0.15); color: var(--blue-light); border: 1px solid rgba(91, 155, 213, 0.3); }
.badge-academic     { background: rgba(52, 211, 153, 0.1); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, 0.2); }

/* ========================
   STATUS TRACKER
   ======================== */

.status-tracker {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 1.5rem 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 90px;
  position: relative;
}

.status-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--glass-border);
  z-index: 0;
}

.status-step.completed:not(:last-child)::after,
.status-step.current:not(:last-child)::after {
  background: linear-gradient(90deg, var(--blue), var(--glass-border));
}

.status-step.completed:not(:last-child)::after {
  background: var(--blue);
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.status-step.completed .step-dot {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.status-step.current .step-dot {
  background: rgba(91, 155, 213, 0.2);
  border-color: var(--blue);
  color: var(--blue-light);
  box-shadow: 0 0 0 4px rgba(91, 155, 213, 0.15);
  animation: pulse 2s ease-in-out infinite;
}

.status-step.rejected .step-dot {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #f87171;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(91, 155, 213, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(91, 155, 213, 0.05); }
}

.step-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 500;
  line-height: 1.3;
  max-width: 80px;
}

.status-step.completed .step-label,
.status-step.current .step-label {
  color: var(--text-secondary);
}

/* ========================
   LOCKED MODULE
   ======================== */

.locked-module {
  position: relative;
  overflow: hidden;
  cursor: not-allowed;
}

.locked-module .lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  z-index: 2;
  gap: 0.5rem;
}

.lock-icon {
  font-size: 1.75rem;
  opacity: 0.7;
}

.lock-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ========================
   DATA TABLE
   ======================== */

.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.data-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--glass-border);
  white-space: nowrap;
}

.data-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
  vertical-align: middle;
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td {
  background: var(--glass-bg);
}

/* ========================
   MODAL
   ======================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: rgba(15, 30, 55, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow-lg);
  width: 100%;
  max-width: 480px;
  padding: 2rem;
  transform: translateY(20px);
  transition: transform 0.2s;
}

.modal-backdrop.open .modal {
  transform: translateY(0);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--glass-border);
}

.modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

/* ========================
   STEP FORM
   ======================== */

.step-indicator {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  align-items: center;
}

.step-pill {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--glass-border);
  transition: var(--transition);
}

.step-pill.active {
  background: var(--blue);
}

.step-pill.done {
  background: rgba(91, 155, 213, 0.5);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(91, 155, 213, 0.15);
  border: 1px solid rgba(91, 155, 213, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-light);
  flex-shrink: 0;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.step-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* OTP row */
.otp-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}

.otp-row input {
  flex: 1;
}

.otp-status {
  font-size: 0.75rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

/* Repeater */
.repeater-item {
  padding: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  position: relative;
}

.repeater-remove {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.repeater-remove:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* ========================
   PERMISSIONS GRID
   ======================== */

.perm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.perm-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: var(--transition);
}

.perm-item:hover {
  background: rgba(91, 155, 213, 0.06);
  border-color: rgba(91, 155, 213, 0.2);
}

.perm-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  margin-top: 2px;
  flex-shrink: 0;
}

.perm-label { font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); }
.perm-desc  { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.15rem; }

/* ========================
   INFO ROWS
   ======================== */

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.info-value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 1.5rem 0;
}

/* ========================
   PAGE CONTAINERS
   ======================== */

.page-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  padding: 2rem;
}

.card-auth {
  width: 100%;
  max-width: 420px;
  padding: 2.5rem;
}

.card-wide {
  width: 100%;
  max-width: 720px;
  padding: 2.5rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .perm-grid { grid-template-columns: 1fr; }
  .site-header { padding: 0 1rem; }
  .card-auth, .card-wide { padding: 1.75rem 1.25rem; }
}

/* ========================
   HERO SECTION
   ======================== */

.hero {
  text-align: center;
  padding: 4rem 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(91, 155, 213, 0.1);
  border: 1px solid rgba(91, 155, 213, 0.25);
  font-size: 0.78rem;
  color: var(--blue-light);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero h1 {
  background: linear-gradient(135deg, #fff 0%, #c8def0 60%, #5B9BD5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 700px;
  margin: 3rem auto 0;
}

@media (max-width: 600px) {
  .hero-cards { grid-template-columns: 1fr; }
}

.track-card {
  padding: 1.75rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.track-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.track-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.track-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.track-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ========================
   TOASTS
   ======================== */

#toast-container {
  position: fixed;
  bottom: calc(var(--footer-h) + 1rem);
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}

.toast {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  max-width: 320px;
  animation: toastIn 0.3s ease forwards;
  color: var(--text-primary);
}

.toast-success { background: rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.4); }
.toast-error   { background: rgba(239, 68, 68, 0.2);  border-color: rgba(239, 68, 68, 0.4);  }
.toast-info    { background: rgba(91, 155, 213, 0.2);  border-color: rgba(91, 155, 213, 0.4);  }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ========================
   MISC UTILITIES
   ======================== */

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; gap: 0.5rem; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 1px;
  background: var(--glass-border);
}
.divider span {
  position: relative;
  background: transparent;
  padding: 0 0.75rem;
  background: rgba(13, 27, 42, 0.9);
}
