@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  --bg-dark: #fafafa;
  --bg-grid: rgba(0, 0, 0, 0.02);
  --panel-bg: rgba(255, 255, 255, 0.8);
  --panel-border: rgba(0, 0, 0, 0.06);
  --input-bg: rgba(255, 255, 255, 0.9);
  
  --primary-gradient: linear-gradient(135deg, #FF0080 0%, #7928CA 100%);
  --secondary-gradient: linear-gradient(135deg, #00DFD8 0%, #007CF0 100%);
  --success-gradient: linear-gradient(135deg, #10b981, #047857);
  --warning-gradient: linear-gradient(135deg, #f59e0b, #d97706);
  
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  
  --cyan-glow: rgba(121, 40, 202, 0.15);
  --purple-glow: rgba(0, 124, 240, 0.15);
  --card-radius: 12px;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Dropdown Animation */
.dropdown-menu-anim {
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.25, 1, 0.5, 1), transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.25s;
  pointer-events: none;
}
.dropdown-menu-anim.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

[data-theme="dark"] {
  --bg-dark: #09090b;
  --bg-grid: rgba(255, 255, 255, 0.02);
  --panel-bg: rgba(18, 18, 20, 0.65);
  --panel-border: rgba(255, 255, 255, 0.08);
  --input-bg: rgba(255, 255, 255, 0.03);
  
  --primary-gradient: linear-gradient(135deg, #FF0080 0%, #7928CA 100%);
  --secondary-gradient: linear-gradient(135deg, #00DFD8 0%, #007CF0 100%);
  --success-gradient: linear-gradient(135deg, #00ff87 0%, #60efa0 100%);
  --warning-gradient: linear-gradient(135deg, #f12711 0%, #f5af19 100%);
  
  --text-primary: #ededed;
  --text-secondary: #a1a1aa;
  --text-muted: #52525b;
  
  --cyan-glow: rgba(255, 0, 128, 0.15);
  --purple-glow: rgba(0, 223, 216, 0.15);
}

/* --- CORE RESETS & UTILITIES --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  user-select: none;
  -webkit-user-select: none;
}

/* --- STUNNING DEVOPS BACKGROUND ELEMENTS --- */


.glowing-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.45;
  animation: float 20s infinite alternate ease-in-out;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 0, 128, 0.4) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation-duration: 25s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 223, 216, 0.4) 0%, transparent 70%);
  bottom: -15%;
  left: -10%;
  animation-duration: 30s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(121, 40, 202, 0.4) 0%, transparent 70%);
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.6;
  animation-duration: 20s;
}

[data-theme="dark"] .orb-1 { background: radial-gradient(circle, rgba(255, 0, 128, 0.3) 0%, transparent 70%); }
[data-theme="dark"] .orb-2 { background: radial-gradient(circle, rgba(121, 40, 202, 0.3) 0%, transparent 70%); }
[data-theme="dark"] .orb-3 { background: radial-gradient(circle, rgba(0, 223, 216, 0.2) 0%, transparent 70%); opacity: 0.5; }

@keyframes float {
  0% { transform: translateY(0px) scale(1) rotate(0deg); }
  50% { transform: translateY(30px) scale(1.1) rotate(15deg); }
  100% { transform: translateY(-30px) scale(0.9) rotate(-15deg); }
}

@keyframes float-lock-3d {
  0% { transform: perspective(400px) rotateX(10deg) rotateY(-15deg) translateY(0); filter: drop-shadow(0 10px 10px rgba(0, 242, 254, 0.3)); }
  100% { transform: perspective(400px) rotateX(-5deg) rotateY(15deg) translateY(-10px); filter: drop-shadow(0 20px 20px rgba(0, 242, 254, 0.7)); }
}

.lock-3d-icon {
  display: inline-block;
  animation: float-lock-3d 2s infinite alternate ease-in-out;
  transform-style: preserve-3d;
}

/* --- SCROLLBARS --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- GLASS CONTAINER LAYOUT --- */
.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1.5rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- HEADER / NAVIGATION --- */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--card-radius);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
  position: relative;
  z-index: 1000;
  transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  padding: 0.2rem 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  border: 1px solid var(--panel-border);
  color: #00f2fe;
  -webkit-text-fill-color: #00f2fe;
}

.user-nav-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.username-display {
  font-weight: 500;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  border: 1px solid var(--panel-border);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.btn:active {
  transform: scale(0.98) !important;
}

.btn-primary {
  background: var(--primary-gradient);
  background-size: 200% auto;
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px var(--cyan-glow);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.btn-primary:hover {
  background-position: right center;
  transform: scale(1.02);
  box-shadow: 0 8px 25px var(--cyan-glow);
}

.btn-secondary {
  background: var(--secondary-gradient);
  color: #fff;
  box-shadow: 0 4px 15px var(--purple-glow);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 0, 224, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--panel-border);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.2);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(17, 153, 142, 0.15);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 135, 0.3);
}

/* --- FORMS & INPUTS --- */
.input-group {
  margin-bottom: 1.25rem;
  width: 100%;
}

.input-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.input-field {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--input-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
  user-select: auto;
  -webkit-user-select: auto;
}
.input-field:focus {
  border-color: #0072ff;
  box-shadow: 0 0 10px rgba(0, 114, 255, 0.2);
}

/* --- GLASS PANEL CARD --- */
.glass-panel {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--card-radius);
  padding: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
  transition: background 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease, color 0.4s ease;
}
.glass-panel:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.2);
}

/* --- VIEW MANAGER --- */
.view-section {
  display: block;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   VIEW 1: LOGIN & SIGNUP PORTAL
   ========================================================================== */
.login-wrapper {
  max-width: 440px;
  margin: auto;
  width: 100%;
  position: relative;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.login-tabs {
  display: flex;
  margin-bottom: 1.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
}

.login-tab {
  flex: 1;
  text-align: center;
  padding: 0.6rem;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.login-tab.active {
  background: var(--primary-gradient);
  color: #020617;
  box-shadow: 0 2px 10px rgba(0, 242, 254, 0.2);
}

.form-toggle-section {
  transition: var(--transition-smooth);
}

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

/* ==========================================================================
   VIEW 2: STUDENTS DASHBOARD
   ========================================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr 340px;
  }
}

.dash-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 12px;
  border: 1px solid var(--panel-border);
}

.stat-val {
  font-size: 2rem;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-lbl {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
}

.topics-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.topics-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.search-wrapper {
  position: relative;
  max-width: 300px;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--panel-border);
  color: #fff;
  outline: none;
}
.search-input:focus {
  border-color: #00f2fe;
}

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

.topic-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--card-radius);
  padding: 1.2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.27);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  background: var(--card-bg, rgba(20, 20, 24, 0.95));
}

.topic-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
}

.topic-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 0 5px 15px var(--cyan-glow);
  z-index: 2;
}

.topic-card:hover::after {
  opacity: 1;
}

.topic-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.topic-icon {
  font-size: 1.8rem;
  padding: 0.3rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
}

.topic-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(127, 0, 255, 0.15);
  color: #e100ff;
  border: 1px solid rgba(127, 0, 255, 0.2);
}

.topic-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.topic-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topic-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.topic-best-score {
  font-weight: 700;
  color: #00ff87;
}

/* --- SIDEBAR: RECENT PERFORMANCE HISTORY --- */
.sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.history-card {
  padding: 1.5rem;
}

.history-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.history-item {
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}
.history-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.hist-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
}

.hist-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hist-score {
  font-weight: 700;
  font-size: 1.1rem;
}

.score-high { color: #00ff87; }
.score-mid { color: #ff9900; }
.score-low { color: #ef4444; }

.history-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem 0;
  font-size: 0.9rem;
}

/* ==========================================================================
   VIEW 3: INTERACTIVE MOCK INTERVIEW PORTAL
   ========================================================================== */
.interview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .interview-grid {
    grid-template-columns: 1fr 1.6fr;
  }
}

.interview-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.question-nav-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.timer-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 30px;
  background: rgba(241, 39, 17, 0.1);
  border: 1px solid rgba(241, 39, 17, 0.3);
  color: #ff5e62;
}

.timer-pulse {
  animation: pulse 1s infinite alternate;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.interview-card-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.question-prompt-card {
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid var(--panel-border);
}

.q-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.badge-direct {
  background: rgba(0, 242, 254, 0.15);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.badge-scenario {
  background: rgba(245, 175, 25, 0.15);
  color: #f5af19;
  border: 1px solid rgba(245, 175, 25, 0.3);
}

.question-text {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-primary);
}

.hint-section {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid #7f00ff;
  border-radius: 0 8px 8px 0;
}

.hint-section p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hint-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: #e100ff;
  margin-bottom: 0.25rem;
}

/* --- INTERVIEW CARD RIGHT (ANSWER INPUT PANEL) --- */
.interview-card-right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.answer-area-wrapper {
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.answer-input {
  width: 100%;
  min-height: 250px;
  flex-grow: 1;
  padding: 1.25rem;
  background: var(--input-bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: var(--transition-smooth);
  user-select: auto;
  -webkit-user-select: auto;
}
.answer-input:focus {
  border-color: #7f00ff;
  box-shadow: 0 0 15px rgba(127, 0, 255, 0.2);
}

.voice-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
}

.voice-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.recording-dot {
  width: 10px;
  height: 10px;
  background-color: #ef4444;
  border-radius: 50%;
  display: none;
}

.recording-dot.active {
  display: block;
  animation: pulse-red 1s infinite alternate;
}

@keyframes pulse-red {
  0% { transform: scale(0.8); opacity: 0.5; }
  100% { transform: scale(1.3); opacity: 1; }
}

.audio-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
}

.audio-btn-idle {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--panel-border);
}
.audio-btn-idle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.audio-btn-listening {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.navigation-buttons-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

/* --- PROGRESS TRACKER --- */
.progress-container {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
}

.progress-node {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  transition: var(--transition-smooth);
}

.progress-node.active {
  background: #00f2fe;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

.progress-node.completed {
  background: #7f00ff;
}

/* ==========================================================================
   VIEW 4: RESULTS & DETAILED FEEDBACK ANALYTICS
   ========================================================================== */
.results-card {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.results-header-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.circular-score-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 1.5rem;
}

.circular-chart {
  width: 100%;
  height: 100%;
}

.circular-chart path {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
}

.circular-chart .circle-bg {
  stroke: rgba(255, 255, 255, 0.05);
}

.circular-chart .circle {
  stroke: url(#cyan-purple-grad);
  transition: stroke-dasharray 1s ease-in-out;
}

.score-percentage-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}

.results-meta-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.results-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px solid var(--panel-border);
}

.results-meta-item .val {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.results-meta-item .lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* --- FEEDBACK BREAKDOWN ACCORDIONS --- */
.feedback-breakdown-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.question-feedback-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.q-feedback-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.q-feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.q-feedback-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.q-feedback-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.score-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.badge-high { background: rgba(0, 255, 135, 0.15); color: #00ff87; border: 1px solid rgba(0, 255, 135, 0.3); }
.badge-mid { background: rgba(245, 175, 25, 0.15); color: #f5af19; border: 1px solid rgba(245, 175, 25, 0.3); }
.badge-low { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

.q-feedback-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

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

@media (min-width: 768px) {
  .comparison-box {
    grid-template-columns: 1fr 1fr;
  }
}

.student-answer-panel, .model-answer-panel {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.answer-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.student-answer-panel .answer-label { color: #00f2fe; }
.model-answer-panel .answer-label { color: #a855f7; }

.answer-content-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  white-space: pre-wrap;
  min-height: 120px;
}

.empty-answer {
  color: var(--text-muted);
  font-style: italic;
}

.grading-analysis {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 1rem;
}

.grading-sub-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.keywords-checked {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.keyword-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.kw-found {
  background: rgba(0, 255, 135, 0.12);
  color: #60efa0;
  border: 1px solid rgba(0, 255, 135, 0.2);
}

.kw-missing {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: line-through;
}

.concept-matching-percentage {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.concept-matching-percentage span {
  font-weight: 700;
  color: #00f2fe;
}

.self-assessment-rating {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.05);
}

.stars-rating-container {
  display: flex;
  gap: 6px;
  margin-top: 0.4rem;
}

.star-btn {
  font-size: 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.star-btn.active, .star-btn:hover {
  color: #f5af19;
  transform: scale(1.15);
}

.results-footer-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ==========================================================================
   CERTIFICATE MODAL / DOWNLOADABLE TRANSCRIPT
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
  visibility: visible;
}

.modal-content {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--card-radius);
  max-width: 650px;
  width: 90%;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease, background 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-close:hover {
  color: #fff;
}

.certificate-border {
  border: 3px double #d4af37;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  background: radial-gradient(circle, #191c2c 0%, #0d0f19 100%);
  position: relative;
  overflow: hidden;
}

.certificate-border::before {
  content: "★";
  position: absolute;
  top: 10px;
  left: 10px;
  color: #d4af37;
  font-size: 1.2rem;
}
.certificate-border::after {
  content: "★";
  position: absolute;
  top: 10px;
  right: 10px;
  color: #d4af37;
  font-size: 1.2rem;
}

.cert-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #d4af37;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cert-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.cert-recipient {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
  display: inline-block;
  padding: 0 2rem 0.2rem;
  margin-bottom: 1.5rem;
}

.cert-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.cert-text strong {
  color: #00f2fe;
}

.cert-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.cert-date {
  text-align: left;
}

.cert-signature {
  text-align: right;
  font-style: italic;
  color: #d4af37;
  font-weight: 600;
}

/* --- TABLE STYLINGS (ADMIN REGISTRY) --- */
#admin-student-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin-top: 1rem;
}

#admin-student-table th {
  padding: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--panel-border);
}

#admin-student-table td {
  padding: 1rem;
  color: var(--text-primary);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

#admin-student-table tbody tr:last-child td {
  border-bottom: none;
}

/* --- ADMIN LAYOUTS & SIDEBARS --- */
.admin-layout-wrapper {
  display: flex;
  width: 100%;
  align-items: flex-start;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 270px;
  height: 100vh;
  z-index: 990;
  background: var(--panel-bg);
  border-right: 1px solid var(--panel-border);
  box-shadow: 15px 0 40px rgba(0, 0, 0, 0.65);
  border-top: none;
  border-bottom: none;
  border-left: none;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  padding: 24px 1.5rem 2.5rem 1.5rem;
  box-sizing: border-box;
  transform: translateX(-120%);
  visibility: hidden;
  transition: var(--transition-smooth), background 0.4s ease, border-color 0.4s ease, transform 0.3s ease, visibility 0.4s;
}

.admin-sidebar.active {
  transform: translateX(0);
  visibility: visible;
}

.admin-workspace {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

/* --- SIDEBAR DRAWER OVERLAY --- */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 9, 19, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 985;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* --- ADMIN GRID FOR REGISTRIES --- */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .admin-grid {
    grid-template-columns: 300px 1fr;
  }
}

.active-tab-btn {
  background: var(--primary-gradient) !important;
  color: #020617 !important;
  box-shadow: 0 4px 15px var(--cyan-glow) !important;
  border-color: transparent !important;
  font-weight: 700;
}

#admin-mentor-table, #mentor-student-marks-table, #admin-batches-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin-top: 1rem;
}

#admin-mentor-table th, #mentor-student-marks-table th, #admin-batches-table th {
  padding: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--panel-border);
}

#admin-mentor-table td, #mentor-student-marks-table td, #admin-batches-table td {
  padding: 1rem;
  color: var(--text-primary);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

#admin-questions-table {
  border-collapse: collapse;
  width: 100%;
}

#admin-questions-table th {
  padding: 1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--panel-border);
}

#admin-questions-table td {
  padding: 1rem;
  color: var(--text-primary);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}

@media (max-width: 900px) {
  .admin-layout-wrapper {
    flex-direction: column;
  }
  .admin-workspace {
    width: 100%;
  }
}

/* --- TOAST NOTIFICATIONS --- */
.toast-notification {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 8px;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  pointer-events: auto;
  min-width: 300px;
  transform: translateX(120%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  opacity: 0;
}

.toast-notification.active {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.3rem;
}

.toast-success {
  border-left: 4px solid #00ff87;
  box-shadow: 0 5px 20px rgba(0, 255, 135, 0.15);
}

.toast-error {
  border-left: 4px solid #ef4444;
  box-shadow: 0 5px 20px rgba(239, 68, 68, 0.15);
}

.toast-info {
  border-left: 4px solid #00f2fe;
  box-shadow: 0 5px 20px rgba(0, 242, 254, 0.15);
}

/* ==========================================================================
   QUESTION BANK CARD AND COMPANY BADGE STYLES
   ========================================================================== */
.question-bank-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.question-bank-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: scale(1.01);
}

.q-bank-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.company-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: rgba(0, 242, 254, 0.1);
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.company-badge.none {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--panel-border);
}

/* --- COMPANY SELECTION GRID --- */
.company-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: linear-gradient(135deg, rgba(20, 24, 43, 0.75) 0%, rgba(10, 11, 20, 0.75) 100%);
  border: 1px solid var(--panel-border);
  border-radius: var(--card-radius);
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.company-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--secondary-gradient);
  opacity: 0;
  transition: var(--transition-smooth);
}

.company-card:hover {
  transform: scale(1.01);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.company-card:hover::after {
  opacity: 1;
}

.company-logo-placeholder {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--secondary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.6rem;
  box-shadow: 0 4px 15px rgba(127, 0, 255, 0.25);
  transition: var(--transition-smooth);
}

.company-card:hover .company-logo-placeholder {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(225, 0, 255, 0.45);
}

.company-card h3 {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.company-card span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.overview-card {
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}
.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.12);
  filter: brightness(1.15);
}
.overview-card:active {
  transform: translateY(-1px);
}

/* ==========================================================================
   PRINT / PDF MEDIA STYLES
   ========================================================================== */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  .container {
    padding: 0;
  }
  header, .orb, .glowing-orbs, .results-footer-actions, .navigation-buttons-row, .voice-controls-row, .timer-box {
    display: none !important;
  }
  .glass-panel {
    background: #fff;
    border: none;
    box-shadow: none;
    color: #000;
  }
  .q-feedback-item {
    background: #fff;
    border: 1px solid #ddd;
    color: #000;
    page-break-inside: avoid;
  }
  .answer-content-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #000;
  }
  .star-btn {
    color: #ccc !important;
  }
  .star-btn.active {
    color: #000 !important;
  }
  .score-badge {
    border: 1px solid #000 !important;
    color: #000 !important;
    background: none !important;
  }
}

/* ==========================================================================
   LOCKED TOPICS VISUAL SYSTEM
   ========================================================================== */
.locked-module {
  opacity: 0.6;
  background: linear-gradient(135deg, rgba(20, 24, 43, 0.45) 0%, rgba(10, 11, 20, 0.45) 100%) !important;
  border-color: rgba(255, 255, 255, 0.03) !important;
  box-shadow: none !important;
}
.locked-module:hover {
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.03) !important;
  box-shadow: none !important;
}
.locked-module::after {
  display: none !important;
}
.locked-module .topic-icon {
  background: rgba(255, 255, 255, 0.01);
  filter: grayscale(1);
  opacity: 0.7;
}
.locked-module h3 {
  color: var(--text-secondary);
}
.locked-module p {
  color: var(--text-muted);
}

.badge-easy {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-hard {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --- PROCTOR CAMERA WIDGET --- */
.proctor-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 200px;
  height: 200px;
  background: rgba(10, 11, 24, 0.85);
  border: 2px solid #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.3), inset 0 0 10px rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: pulse-red-border 2s infinite alternate ease-in-out;
}

@keyframes pulse-red-border {
  0% { border-color: rgba(239, 68, 68, 0.6); box-shadow: 0 0 15px rgba(239, 68, 68, 0.2); }
  100% { border-color: rgba(239, 68, 68, 1); box-shadow: 0 0 30px rgba(239, 68, 68, 0.6); }
}

.proctor-widget.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
}

.proctor-widget.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.proctor-widget.minimized {
  height: auto;
}

.proctor-widget.minimized #proctor-video {
  display: none;
}

.proctor-widget-header {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  padding: 6px 10px;
  border-bottom: 1px solid rgba(239, 68, 68, 0.3);
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #ef4444;
}

.proctor-status-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  0% { opacity: 0.2; }
  100% { opacity: 1; }
}

.proctor-status-text {
  animation: pulse-text 1.5s infinite alternate ease-in-out;
}

@keyframes pulse-text {
  0% { opacity: 0.8; }
  100% { opacity: 1; }
}

#proctor-video {
  width: 100%;
  height: calc(100% - 27px);
  object-fit: cover;
  background: #000;
  transform: scaleX(-1);
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }





input[placeholder*="Search"],
input[placeholder*="search"] {
  outline: 2px solid rgba(0, 242, 254, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px;
  background-color: rgba(0,0,0,0.1) !important;
}
input[placeholder*="Search"]:focus,
input[placeholder*="search"]:focus {
  outline: 2px solid #00f2fe !important;
  background-color: rgba(0,0,0,0.2) !important;
}


/* --- RESPONSIVE UTILITIES --- */
/* #btn-hamburger always visible */

.desktop-shift {
  margin-left: 1rem;
}

@media (min-width: 900px) {
  .desktop-shift {
    margin-left: 4rem;
  }
}

@media (max-width: 900px) {
  #btn-hamburger {
    display: block;
  }
  .container {
    padding: 1rem 1.5rem !important;
  }
}

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

@media (min-width: 900px) {
  .login-activity-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.search-field {
  background: #e5e7eb !important;
  border: 2px solid #00f2fe !important;
  color: #0f172a !important;
  border-radius: 12px !important;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.15);
}
.search-field::placeholder {
  color: #64748b !important;
}
.search-field:focus {
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4) !important;
}







#view-auth .login-wrapper {
  margin-top: 0 !important; /* overrides previous margins */
}


/* Split Layout Config */
.split-layout {
  display: flex;
  height: 100vh; /* Fixed height */
  overflow: hidden; /* No scrolling */
  width: 100vw;
  background-color: #03050c;
}

.split-left {
  flex: 1.2;
  padding: 4rem 2rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  /* overflow: hidden; removed so graphic can span right */
}

.split-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(circle at right, rgba(99, 102, 241, 0.05), transparent 60%);
  position: relative;
  z-index: 10;
}

.marketing-content {
  max-width: 600px;
  z-index: 10;
}

.marketing-logo {
  margin-bottom: 0.5rem;
}

.marketing-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 0.5rem;
}

.marketing-title .highlight {
  background: linear-gradient(135deg, #a855f7, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.marketing-subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 90%;
}

.tech-icons-row {
  display: inline-flex;
  gap: 1.5rem;
  padding: 1.25rem 2rem;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.tech-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.tech-icon img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.1));
}

.tech-icon span {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
}

.isometric-graphic-container {
  margin-top: -3rem; /* Moved graphic up */
  width: 135%; /* Break out to the right */
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 0;
}

.isometric-graphic {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  object-position: left top;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
}

.stats-row {
  display: flex;
  gap: 2.5rem;
  margin-top: 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-icon {
  font-size: 1.5rem;
}

.stat-value {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
}

.stat-label {
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Tall Glass Panel */
.tall-panel {
  width: 100%;
  max-width: 420px;
  background: rgba(10, 15, 30, 0.4) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(99, 102, 241, 0.2) !important;
  box-shadow: 0 0 40px rgba(99, 102, 241, 0.1), inset 0 0 20px rgba(99, 102, 241, 0.05) !important;
  border-radius: 24px !important;
  padding: 3rem 2.5rem !important;
}

.tall-panel .login-logo {
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  padding: 8px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.tall-panel #auth-title {
  color: #fff !important;
  font-size: 2rem !important;
  text-align: center;
  margin-bottom: 0.5rem !important;
  background: none;
  -webkit-text-fill-color: initial;
}

.tall-panel #auth-subtitle {
  text-align: center;
  color: #94a3b8 !important;
  margin-bottom: 2rem !important;
}

.login-role-switcher {
  display: flex;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.5);
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.05);
}

.role-btn {
  flex: 1;
  padding: 0.6rem;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}

.role-btn.active {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.btn-exam {
  background: linear-gradient(135deg, #a855f7, #3b82f6) !important;
  border: none !important;
  padding: 0.8rem !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  border-radius: 12px !important;
  color: #fff !important;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4) !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-exam:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.6) !important;
}

@media (max-width: 1024px) {
  .split-layout {
    flex-direction: column;
  }
  .split-left, .split-right {
    width: 100%;
    padding: 2rem;
  }
  .isometric-graphic-container {
    width: 100%;
    margin-left: 0;
  }
  .stats-row {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
}

.hover-primary {
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.hover-primary:hover {
  background: linear-gradient(to right, #0072ff, #00c6ff, #0072ff) !important;
  background-size: 200% auto !important;
  color: #fff !important;
  border-color: transparent !important;
  background-position: right center !important;
  transform: scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.6) !important;
}
