* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  position: relative;
  padding-bottom: 70px;
  font-size: 14px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

@media print {
  body { display: none !important; }
}

:root {
  --primary: #FFD700;
  --primary-light: #FFF9C4;
  --primary-dark: #FBC02D;
  --accent-red: #dc2626;
  --accent-blue: #2962ff;
  --accent-green: #16a34a;
  --bg: #f2f4f8;
  --card: #ffffff;
  --text-dark: #1a202c;
  --text-light: #4b5563;
  --border-light: #e2e8f0;
  --success: #2e7d32;
  --danger: #e53935;
  --warn: #ff9800;
  --muted: #6b7280;
}

.small-text { font-size: 12px; }
.base-text { font-size: 14px; }
.large-text { font-size: 16px; }

.math-tex {
  font-size: 1.2rem;
  line-height: 1.6;
  margin: 15px 0;
}
.test-question p, .q-text, .explanation-text, .test-option {
  font-family: 'Segoe UI', 'Poppins', 'Latin Modern Math', serif;
}
.test-question svg, .q-text svg, .test-question .math-tex svg,
.test-option svg, .q-option svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  margin: 5px 0;
}

.svg-content {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
}

.q-text, .test-question p {
  word-break: break-word;
  line-height: 1.5;
}

.test-question svg, .q-text svg, .test-option svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 990;
}

.drawer {
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 2px 0 15px rgba(0,0,0,0.2);
  transition: 0.3s ease;
  overflow-y: auto;
}

.drawer.active { left: 0; }

.drawer-header {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  padding: 24px 16px;
  text-align: center;
  border-bottom: 3px solid #FFD700;
}

.drawer-header h3 {
  margin: 0 0 5px;
  font-size: 24px;
  font-weight: 800;
  color: #FFD700;
}

.drawer-header p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
}

.drawer-user-info {
  background: rgba(255,255,255,0.15);
  margin-top: 15px;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  text-align: left;
  border: 1px solid rgba(255,215,0,0.3);
}

.drawer-user-name {
  font-weight: 600;
  margin-bottom: 5px;
  color: #FFD700;
}

.drawer-user-mobile {
  font-size: 12px;
  opacity: 0.8;
}

.drawer-menu { padding: 8px 0; }

.drawer-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 18px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: 0.2s;
  font-size: 14px;
  color: var(--text-dark);
  text-decoration: none;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
}

.drawer-item:hover {
  background: #f5f5f5;
  padding-left: 22px;
  color: #1e3c72;
}

.drawer-item i {
  width: 22px;
  font-size: 18px;
  color: #1e3c72;
}

.drawer-item .badge {
  margin-left: auto;
  background: #FFD700;
  color: #1e3c72;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.drawer-divider {
  height: 1px;
  background: #e0e0e0;
  margin: 10px 16px;
}

.drawer-social {
  padding: 20px 16px;
  border-top: 1px solid #e0e0e0;
  margin-top: 10px;
  display: flex;
  justify-content: space-around;
  gap: 15px;
}

.drawer-social-item {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1e3c72;
  color: #FFD700;
  font-size: 20px;
  transition: 0.3s;
  cursor: pointer;
  border: 2px solid #FFD700;
}

.drawer-social-item:hover {
  transform: translateY(-3px);
  background: #FFD700;
  color: #1e3c72;
}

.header {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-icon {
  font-size: 26px;
  cursor: pointer;
  color: #FFD700;
  font-weight: 800;
}

.header-title {
  font-size: 22px;
  font-weight: 800;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  letter-spacing: 1px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-icon {
  font-size: 22px;
  cursor: pointer;
  color: #FFD700;
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--accent-red);
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 12px;
  border: 2px solid #FFD700;
}

.notification-full-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 2000;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.notification-full-header {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 3px solid #FFD700;
}

.notification-full-header i {
  font-size: 24px;
  color: #FFD700;
  cursor: pointer;
}

.notification-full-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: #FFD700;
  margin: 0;
}

.notification-full-content { padding: 20px; flex: 1; }

.notification-full-item {
  background: white;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-left: 5px solid var(--primary);
  transition: 0.3s;
}

.notification-full-item:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.notification-full-item.notification-test { border-left-color: var(--success); }
.notification-full-item.notification-important { border-left-color: var(--warn); }
.notification-full-item.notification-urgent { border-left-color: var(--danger); animation: pulse 1.5s infinite; }

.notification-full-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e3c72;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-full-title i { font-size: 20px; }

.notification-full-date {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.notification-full-body {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.6;
}

.notification-full-close-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1e3c72;
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 50px;
  padding: 12px 24px;
  font-weight: 700;
  cursor: pointer;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: 0.3s;
}

.notification-full-close-btn:hover {
  background: #FFD700;
  color: #1e3c72;
  transform: translateY(-2px);
}

.empty-notifications {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 20px;
  margin-top: 20px;
}

.empty-notifications i {
  font-size: 60px;
  color: var(--muted);
  margin-bottom: 15px;
}

.empty-notifications p {
  font-size: 18px;
  color: var(--muted);
}

.greeting {
  padding: 16px 20px;
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(135deg, #f5f7fa, #e4e8f0);
  border-bottom: 2px solid #FFD700;
}

.greeting span {
  color: #1e3c72;
  font-weight: 800;
}

.slider-container {
  padding: 20px 16px;
  background: #fff;
  position: relative;
  z-index: 80;
  width: 100%;
  border-bottom: 1px solid var(--border-light);
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.slider {
  height: 100%;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  position: relative;
}

.slides {
  display: flex;
  transition: 0.6s ease;
  width: 100%;
  height: 100%;
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
  padding: 0 4px;
  position: relative;
  height: 100%;
}

.clickable-slide-card {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.clickable-slide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.slide .subject-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  margin: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid #f0f0f0;
}

.slide .card-header {
  background: linear-gradient(135deg, #4b1973, #6d2fa6);
  padding: 20px;
  color: #fff;
  position: relative;
  min-height: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide .discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #22c55e;
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slide .subject-title {
  font-size: 26px;
  font-weight: 800;
  margin-top: 20px;
  line-height: 1.2;
  margin-bottom: 5px;
  word-break: break-word;
}

.slide .test-count {
  font-size: 15px;
  opacity: 0.9;
  font-weight: 500;
  margin-bottom: 10px;
}

.slide .price-overlay {
  position: absolute;
  bottom: 15px;
  right: 20px;
  background: rgba(255,255,255,0.95);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.slide .price-overlay .old {
  text-decoration: line-through;
  color: #777;
  font-size: 13px;
}

.slide .price-overlay .new {
  color: #111;
  font-size: 16px;
}

.slide .price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  font-weight: 700;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  flex-shrink: 0;
}

.slide .price-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.slide .price-left .new {
  color: #111;
  font-size: 16px;
}

.slide .price-left .old {
  text-decoration: line-through;
  color: #7c7c7c;
  font-size: 14px;
}

.slide .price-right {
  font-size: 14px;
  color: #22c55e;
  font-weight: 700;
  background: #e8f5e8;
  padding: 4px 10px;
  border-radius: 20px;
}

.container {
  padding: 5px 15px 20px 15px;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  position: relative;
  z-index: 70;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.card {
  background: #fff;
  border-radius: 20px;
  padding: 18px 8px 18px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
  border-color: #FFD700;
}

.card-icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 10px;
  border-radius: 15px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #FFD700;
  box-shadow: 0 8px 15px rgba(30,60,114,0.4);
  border: 2px solid #FFD700;
}

.card-icon.orange { background: linear-gradient(135deg, #ff9800, #ffb300); }
.card-icon.green { background: linear-gradient(135deg, #16a34a, #22c55e); }
.card-icon.purple { background: linear-gradient(135deg, #9333ea, #a855f7); }
.card-icon.red { background: linear-gradient(135deg, #dc2626, #ef4444); }
.card-icon.teal { background: linear-gradient(135deg, #14b8a6, #2dd4bf); }
.card-icon.gold { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.card-icon.live { background: linear-gradient(135deg, #dc2626, #ef4444); animation: pulse 2s infinite; }

.card span {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1e3c72;
  line-height: 1.3;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 15px;
}

.section-title h3 {
  font-size: 20px;
  font-weight: 800;
  color: #1e3c72;
  border-left: 5px solid #FFD700;
  padding-left: 12px;
}

.view-all {
  color: #1e3c72;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  background: #FFD700;
  padding: 5px 12px;
  border-radius: 25px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.live-tests-section {
  margin-top: 16px;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.live-tests-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.live-tests-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.live-tests-count {
  background: var(--success);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.live-tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.live-test-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  border: 2px solid var(--success);
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: all 0.3s;
  position: relative;
  margin-bottom: 12px;
}

.live-test-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.live-test-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--success);
}

.live-indicator {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--success);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  animation: pulse 2s infinite;
}

.live-test-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.live-test-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.live-test-info-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.live-test-time {
  background: #e8f5e8;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  color: var(--success);
  border: 1px solid var(--success);
  font-family: monospace;
  font-size: 0.95rem;
}

.live-test-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-red);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.countdown-timer {
  font-family: monospace;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  text-align: center;
  margin: 8px 0;
  border: 2px solid var(--primary);
}

.countdown-soon {
  background: #fff8e1;
  color: #b26a00;
  border-color: var(--warn);
  animation: pulse 1.5s infinite;
}

.countdown-live {
  background: #e8f5e8;
  color: var(--success);
  border-color: var(--success);
}

.countdown-ended {
  background: #ffebee;
  color: var(--danger);
  border-color: var(--danger);
}

.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 15px 0;
}

.subject-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  border: 2px solid transparent;
  transition: 0.3s;
}

.subject-card:hover {
  transform: translateY(-5px);
  border-color: #FFD700;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.card-header {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  padding: 20px;
  color: #fff;
  position: relative;
  min-height: 140px;
}

.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #FFD700;
  color: #1e3c72;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.subject-title {
  font-size: 26px;
  font-weight: 800;
  margin-top: 20px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.test-count {
  font-size: 16px;
  opacity: 0.95;
  margin-top: 8px;
  font-weight: 600;
}

.price-overlay {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: rgba(255,255,255,0.95);
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #1e3c72;
  border: 2px solid #FFD700;
}

.price-overlay .old {
  text-decoration: line-through;
  color: #777;
  margin-right: 8px;
  font-size: 12px;
}

.price-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-weight: 700;
  border-bottom: 1px solid #e5e7eb;
}

.price-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-left .new {
  color: #1e3c72;
  font-size: 18px;
  font-weight: 800;
}

.price-left .old {
  text-decoration: line-through;
  color: #7c7c7c;
  font-size: 14px;
}

.price-right {
  font-size: 14px;
  color: #22c55e;
  font-weight: 800;
  background: #e8f5e8;
  padding: 4px 10px;
  border-radius: 20px;
}

.view-btn {
  display: block;
  margin: 0 20px 20px;
  padding: 15px;
  text-align: center;
  background: linear-gradient(90deg, #1e3c72, #2a5298);
  color: #FFD700;
  font-weight: 800;
  border-radius: 12px;
  border: 2px solid #FFD700;
  cursor: pointer;
  width: calc(100% - 40px);
  align-self: flex-end;
  font-size: 16px;
  transition: 0.3s;
}

.view-btn:hover {
  background: linear-gradient(90deg, #2a5298, #1e3c72);
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.test-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  position: relative;
  border-left: 5px solid #FFD700;
}

.test-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-right: 70px;
  color: #1e3c72;
  word-break: break-word;
}

.test-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #1e3c72;
  color: #FFD700;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.test-status-badge.live {
  background: var(--success);
  color: white;
  animation: pulse 2s infinite;
}

.test-status-badge.upcoming {
  background: var(--warn);
  color: white;
}

.progress {
  height: 8px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-bar {
  height: 100%;
  background: #1e3c72;
}

.info {
  display: flex;
  justify-content: space-between;
  text-align: center;
  margin-bottom: 15px;
  gap: 8px;
  flex-wrap: wrap;
}

.info div {
  font-size: 14px;
  color: #333;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.info .icon {
  display: inline-block;
  font-size: 18px;
  color: #1e3c72;
  margin-right: 4px;
  width: auto;
  height: auto;
  background: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.test-actions {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  flex-wrap: wrap;
}

.test-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.3s;
}

.test-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.test-btn-blue {
  background: #1e3c72;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.test-btn-green {
  background: #28b487;
  color: #fff;
}

.test-btn-yellow {
  background: #FFD700;
  color: #1e3c72;
}

.test-btn-red {
  background: #dc2626;
  color: white;
  border: 2px solid #FFD700;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #1e3c72;
  display: flex;
  justify-content: space-around;
  padding: 10px 0 12px;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
  z-index: 99;
  border-top: 3px solid #FFD700;
}

.footer .item {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
}

.footer .item.active {
  color: #FFD700;
  transform: translateY(-3px);
}

.footer .item span {
  display: block;
  font-size: 22px;
  margin-bottom: 5px;
}

.hidden { display: none !important; }

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@media (max-width: 480px) {
  .grid { gap: 10px; }
  .card { padding: 15px 5px 15px; }
  .card-icon { width: 45px; height: 45px; font-size: 24px; }
  .card span { font-size: 12px; }
  .subjects-grid { grid-template-columns: 1fr; }
  .test-actions { flex-direction: column; }
  .slider-container { height: 180px; padding: 15px 12px; }
  .slide .subject-title { font-size: 22px; }
  .slide .price-overlay { padding: 6px 10px; }
  .slide .price-overlay .new { font-size: 14px; }
  .slide .price-overlay .old { font-size: 12px; }
  .slide .card-header { padding: 15px; }
}

.page-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: #1e3c72;
  border-bottom: 3px solid #FFD700;
  position: sticky;
  top: 0;
  z-index: 90;
}

.page-header h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  color: #FFD700;
}

.page-header i {
  font-size: 24px;
  color: #FFD700;
  cursor: pointer;
}

.page-container {
  min-height: calc(100vh - 120px);
  background: var(--bg);
  padding: 20px;
}

.my-courses-page {
  padding: 20px;
  background: var(--bg);
  min-height: calc(100vh - 120px);
}

.course-card {
  background: white;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-left: 5px solid #FFD700;
  transition: 0.3s;
  animation: slideIn 0.5s ease;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.course-card.expired {
  border-left-color: var(--danger);
  opacity: 0.8;
}

.course-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.course-name {
  font-size: 20px;
  font-weight: 800;
  color: #1e3c72;
}

.course-status {
  padding: 5px 12px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
}

.status-active {
  background: #e8f5e8;
  color: var(--success);
}

.status-expired {
  background: #ffebee;
  color: var(--danger);
}

.course-details {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
}

.course-details i {
  margin-right: 5px;
  color: #1e3c72;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.course-tests {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.test-badge {
  background: #e3f2fd;
  color: #1e3c72;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.paid-courses-page {
  padding: 20px;
  background: var(--bg);
  min-height: calc(100vh - 120px);
}

.paid-course-card {
  background: white;
  border-radius: 22px;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border: 2px solid transparent;
  transition: 0.3s;
}

.paid-course-card:hover {
  border-color: #FFD700;
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.paid-course-image {
  height: 150px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  position: relative;
  padding: 25px;
  color: white;
}

.paid-course-image h3 {
  font-size: 28px;
  font-weight: 800;
  margin: 10px 0 5px;
  color: #FFD700;
}

.paid-course-image p {
  font-size: 14px;
  opacity: 0.95;
  font-weight: 600;
}

.paid-course-price-tag {
  position: absolute;
  bottom: 15px;
  right: 20px;
  background: rgba(255,215,0,0.95);
  padding: 10px 15px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid white;
}

.paid-course-price-tag .old {
  text-decoration: line-through;
  color: #555;
  font-size: 14px;
  font-weight: 600;
}

.paid-course-price-tag .new {
  color: #1e3c72;
  font-size: 20px;
  font-weight: 800;
}

.paid-course-content {
  padding: 20px;
}

.paid-course-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.paid-course-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.paid-course-feature i {
  color: #1e3c72;
  font-size: 18px;
}

.paid-course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #eee;
  padding-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.paid-course-discount {
  background: #FFD700;
  color: #1e3c72;
  padding: 5px 15px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 800;
}

.free-courses-page {
  padding: 20px;
  background: var(--bg);
  min-height: calc(100vh - 120px);
}

.test-series-page {
  padding: 20px;
  background: var(--bg);
  min-height: calc(100vh - 120px);
}

.attempted-tests-page {
  padding: 20px;
  background: var(--bg);
  min-height: calc(100vh - 120px);
}

.payment-history-page {
  padding: 20px;
  background: var(--bg);
  min-height: calc(100vh - 120px);
}

.tests-page {
  padding: 20px;
  background: var(--bg);
  min-height: calc(100vh - 120px);
}

.instructions-page {
  padding: 20px;
  background: var(--bg);
  min-height: calc(100vh - 120px);
}

.result-page {
  padding: 20px;
  background: var(--bg);
  min-height: calc(100vh - 120px);
}

.result-card {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-radius: 30px;
  padding: 25px 20px;
  margin-bottom: 25px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border: 3px solid #FFD700;
  position: relative;
  overflow: hidden;
}

.result-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255,215,0,0.1);
  border-radius: 50%;
}

.result-header {
  text-align: center;
  margin-bottom: 30px;
}

.result-badge {
  display: inline-block;
  padding: 8px 25px;
  background: #1e3c72;
  color: #FFD700;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  border: 2px solid #FFD700;
}

.result-title {
  font-size: 28px;
  font-weight: 800;
  color: #1e3c72;
  margin-bottom: 10px;
  word-break: break-word;
}

.result-subtitle {
  font-size: 16px;
  color: var(--muted);
  font-weight: 600;
}

.score-circle-container {
  display: flex;
  justify-content: center;
  margin: 20px 0 30px;
}

.score-circle {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: conic-gradient(#FFD700 0deg, #1e3c72 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  border: 5px solid white;
}

.score-circle-inner {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 5px 10px rgba(0,0,0,0.1);
}

.score-number {
  font-size: 42px;
  font-weight: 900;
  color: #1e3c72;
  line-height: 1;
}

.score-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 25px 0;
}

.stat-box {
  background: white;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  border: 2px solid #e5e7eb;
}

.stat-box.correct { border-color: var(--success); }
.stat-box.wrong { border-color: var(--danger); }
.stat-box.attempted { border-color: var(--accent-blue); }
.stat-box.skipped { border-color: var(--warn); }

.stat-value {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.correct .stat-value { color: var(--success); }
.wrong .stat-value { color: var(--danger); }
.attempted .stat-value { color: var(--accent-blue); }
.skipped .stat-value { color: var(--warn); }

.score-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1e3c72;
  color: white;
  padding: 18px 20px;
  border-radius: 50px;
  margin: 20px 0;
  border: 2px solid #FFD700;
  flex-wrap: wrap;
  gap: 10px;
}

.score-detail-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.score-detail-icon {
  width: 45px;
  height: 45px;
  background: #FFD700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e3c72;
  font-size: 22px;
}

.score-detail-text {
  font-size: 16px;
  font-weight: 600;
}

.score-detail-amount {
  font-size: 24px;
  font-weight: 800;
  color: #FFD700;
}

.percentage-bar {
  background: #e5e7eb;
  height: 12px;
  border-radius: 10px;
  margin: 15px 0;
  overflow: hidden;
}

.percentage-fill {
  height: 100%;
  background: linear-gradient(90deg, #FFD700, #1e3c72);
  border-radius: 10px;
  transition: width 1s ease;
}

.percentage-text {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1e3c72;
}

.questions-review {
  margin: 30px 0;
}

.review-title {
  font-size: 22px;
  font-weight: 800;
  color: #1e3c72;
  margin-bottom: 20px;
  border-left: 5px solid #FFD700;
  padding-left: 15px;
}

.question-review-card {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  border: 2px solid #e5e7eb;
  transition: 0.3s;
}

.question-review-card.correct { border-left: 8px solid var(--success); }
.question-review-card.wrong { border-left: 8px solid var(--danger); }
.question-review-card.skipped { border-left: 8px solid var(--warn); }

.q-number {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.q-text {
  font-size: 16px;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 15px;
  line-height: 1.5;
  word-break: break-word;
}
.q-text svg {
  max-width: 100%;
  height: auto;
  margin: 10px 0;
  display: inline-block;
  vertical-align: middle;
}
.q-options {
  display: grid;
  gap: 12px;
  margin-bottom: 15px;
}

.q-option {
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 14px;
  border: 2px solid #e5e7eb;
  position: relative;
  word-break: break-word;
}
.q-option svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

.q-option.correct-answer {
  background: #e8f5e8;
  border-color: var(--success);
  color: var(--success);
  font-weight: 600;
}

.q-option.user-answer-correct {
  background: #e8f5e8;
  border-color: var(--success);
  color: var(--success);
  font-weight: 600;
}

.q-option.user-answer-wrong {
  background: #ffebee;
  border-color: var(--danger);
  color: var(--danger);
  font-weight: 600;
}

.q-option .check-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

.explanation-box {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
  border: 2px solid #FFD700;
  display: none;
}
.explanation-box.active { display: block; }
.explanation-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e3c72;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.explanation-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  word-break: break-word;
}
.view-solution-btn {
  margin-top: 10px;
  padding: 8px 15px;
  background: #1e3c72;
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.view-solution-btn:hover {
  background: #FFD700;
  color: #1e3c72;
  transform: translateY(-2px);
}

.result-actions {
  display: flex;
  gap: 15px;
  margin: 30px 0 20px;
  flex-wrap: wrap;
}

.result-action-btn {
  flex: 1;
  min-width: 140px;
  padding: 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s;
  border: 2px solid transparent;
}

.result-action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-review {
  background: #1e3c72;
  color: #FFD700;
  border-color: #FFD700;
}

.btn-home {
  background: #FFD700;
  color: #1e3c72;
  border-color: #1e3c72;
}

.btn-share {
  background: #28b487;
  color: white;
  border-color: white;
}

.simple-subject-detail-container {
  max-width: 430px;
  width: 100%;
  background: #fff;
  margin: 0 auto;
  border-radius: 0;
  overflow-y: auto;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.subject-card-detail {
  background: #fff;
  width: 100%;
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  position: relative;
  margin-bottom: 0;
}

.card-header-detail{
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  padding: 25px;
  padding-top: 35px;
  min-height: 150px;
  color: #fff;
  position: relative;
}

.portal-detail{
  position: absolute;
  top: 12px;
  left: 15px;
  background: rgba(255,215,0,0.2);
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #FFD700;
  border: 1px solid #FFD700;
}

.discount-badge-detail{
  position: absolute;
  top: 12px;
  right: 15px;
  background: #FFD700;
  color: #1e3c72;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.gpsc-title-detail{
  font-size: 36px;
  font-weight: 800;
  margin-top: 20px;
  line-height: 1;
  letter-spacing: 1px;
  color: #FFD700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.sub-title-detail{
  font-size: 20px;
  font-weight: 700;
  margin-top: 8px;
  opacity: 0.95;
}

.price-in-card-detail{
  position: absolute;
  bottom: 15px;
  right: 20px;
  background: #ffffff;
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #1e3c72;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #FFD700;
}

.price-in-card-detail .old-price{
  text-decoration: line-through;
  color: #777;
  font-size: 14px;
}

.price-in-card-detail .new-price{
  color: #1e3c72;
  font-size: 18px;
}

.subject-content-below-card {
  padding: 25px;
  background: #fff;
  flex: 1;
  overflow-y: auto;
}

.subject-validity-info {
  background: #f8f9fa;
  padding: 18px 25px;
  border-bottom: 2px solid #FFD700;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subject-name-main {
  font-size: 24px;
  font-weight: 800;
  color: #1e3c72;
  margin: 0;
  word-break: break-word;
}

.validity-info-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  font-size: 16px;
  font-weight: 600;
  flex-wrap: wrap;
}

.validity-info-detail i {
  color: #1e3c72;
}

.section-title-detail {
  font-size: 20px;
  font-weight: 800;
  color: #1e3c72;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 3px solid #FFD700;
}

.subject-description-detail {
  color: #4b5563;
  line-height: 1.7;
  font-size: 16px;
  background: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  border-left: 5px solid #FFD700;
  margin-bottom: 25px;
  word-break: break-word;
}

.topics-list-detail {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 25px;
}

.topic-item-detail {
  padding: 15px;
  border-radius: 12px;
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  color: #1e3c72;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: 0.3s;
  word-break: break-word;
}

.topic-item-detail:hover {
  background: #e3f2fd;
  transform: translateX(5px);
  border-color: #FFD700;
}

.topic-item-detail i {
  font-size: 18px;
  color: #FFD700;
  flex-shrink: 0;
}

.fixed-buy-button-bottom {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 20px;
  border-top: 3px solid #FFD700;
  box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
  z-index: 1001;
}

.price-line-bottom-only {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.price-left-bottom-only {
  display: flex;
  align-items: center;
  gap: 12px;
}

.price-left-bottom-only .new-bottom-only {
  color: #1e3c72;
  font-size: 24px;
  font-weight: 800;
}

.price-left-bottom-only .old-bottom-only {
  text-decoration: line-through;
  color: #7c7c7c;
  font-size: 18px;
}

.price-right-bottom-only {
  font-size: 18px;
  color: #22c55e;
  font-weight: 800;
}

.buy-now-btn-bottom-only {
  display: block;
  width: 100%;
  text-align: center;
  background: linear-gradient(90deg, #1e3c72, #2a5298);
  padding: 18px;
  color: #FFD700;
  border-radius: 15px;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid #FFD700;
  cursor: pointer;
  transition: all 0.3s;
}

.buy-now-btn-bottom-only:hover {
  background: linear-gradient(90deg, #2a5298, #1e3c72);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.close-detail-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0,0,0,0.7);
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1002;
  font-size: 20px;
  transition: 0.3s;
}

.close-detail-btn:hover {
  background: #FFD700;
  color: #1e3c72;
  transform: rotate(90deg);
}

.simple-subject-bottom-sheet {
  position: fixed;
  left: 0; 
  right: 0;
  bottom: -100%;
  background: #fff;
  border-radius: 25px 25px 0 0;
  max-width: 430px;
  margin: auto;
  padding: 25px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.3);
  transition: 0.4s ease;
  z-index: 1100;
  border-top: 3px solid #FFD700;
}

.simple-subject-bottom-sheet.active { bottom: 0; }

.simple-subject-sheet-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 15px;
  padding-right: 30px;
  color: #1e3c72;
  word-break: break-word;
}

.simple-subject-row {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  font-size: 16px;
  color: #4b5563;
  font-weight: 600;
}

.simple-subject-apply-link {
  color: #1e3c72;
  font-weight: 700;
  margin-top: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid #FFD700;
  font-size: 14px;
}

.simple-subject-apply-link i { color: #FFD700; }

.simple-subject-coupon-box {
  width: 100%;
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  margin: 15px 0;
  display: none;
  transition: 0.3s ease;
  border: 1px solid #FFD700;
}

.simple-subject-coupon-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.simple-subject-coupon-input {
  flex: 1;
  padding: 12px;
  border: 2px solid #cfd3d8;
  border-radius: 10px;
  font-size: 14px;
}

.simple-subject-coupon-input:focus {
  border-color: #FFD700;
  outline: none;
}

.simple-subject-coupon-apply-btn {
  background: #1e3c72;
  padding: 12px 20px;
  border-radius: 10px;
  color: #FFD700;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  border: 2px solid #FFD700;
  cursor: pointer;
  transition: 0.3s;
  font-size: 14px;
}

.simple-subject-coupon-apply-btn:hover {
  background: #FFD700;
  color: #1e3c72;
}

.coupon-discount-calculation {
  background: #e8f5e8;
  border: 2px solid #FFD700;
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
  display: none;
  animation: fadeIn 0.3s ease;
}

.coupon-discount-calculation.active { display: block; }

.coupon-discount-row {
  display: flex;
  justify-content: space-between;
  margin: 6px 0;
  font-size: 14px;
  font-weight: 600;
}

.coupon-discount-row.total {
  font-weight: 800;
  font-size: 16px;
  border-top: 2px solid #FFD700;
  padding-top: 8px;
  margin-top: 8px;
  color: #1e3c72;
}

.coupon-discount-amount { color: var(--success); font-weight: 700; }

.simple-subject-pay-btn {
  margin-top: 20px;
  width: 100%;
  padding: 18px;
  background: linear-gradient(90deg, #1e3c72, #2a5298);
  text-align: center;
  border-radius: 15px;
  font-weight: 800;
  font-size: 18px;
  color: #FFD700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border: 2px solid #FFD700;
  cursor: pointer;
  transition: 0.3s;
}

.simple-subject-pay-btn:hover {
  background: #FFD700;
  color: #1e3c72;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.simple-subject-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #1e3c72;
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 10;
  transition: 0.3s;
}

.simple-subject-close:hover {
  background: #FFD700;
  color: #1e3c72;
  transform: rotate(90deg);
}

.test-app-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  z-index: 5000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.test-app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Poppins', sans-serif;
}

:root{
  --title: clamp(12px, 2vw, 16px);
  --qno: clamp(12px, 2vw, 16px);
  --mark: clamp(12px, 2vw, 16px);
  --timer: clamp(14px, 2.4vw, 18px);
  --question: clamp(13px, 2vw, 16px);
  --option: clamp(12px, 1.8vw, 15px);
}

.test-titlebar {
  padding: 8px 12px;
  text-align: center;
  font-size: var(--title);
  font-weight: 700;
  border-bottom: 2px solid #FFD700;
  background: #fff;
  color: #1e3c72;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.test-titlebar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.test-palette-btn {
  background: #1e3c72;
  color: #FFD700;
  border: 2px solid #FFD700;
  border-radius: 25px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.test-palette-btn:hover {
  background: #FFD700;
  color: #1e3c72;
  transform: scale(1.05);
}

.test-palette-btn i { font-size: 12px; }

.test-titlebar-right {
  font-size: var(--title);
  font-weight: 700;
  color: #1e3c72;
}

.test-topbar {
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(90deg, #1e3c72, #2a5298);
  flex-wrap: wrap;
  gap: 8px;
}

.test-left {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.test-qno {
  background: #FFD700;
  color: #1e3c72;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--qno);
  font-weight: 700;
  border: 2px solid white;
  cursor: pointer;
  transition: 0.3s;
}

.test-qno:hover {
  background: #fff;
  transform: scale(1.05);
}

.test-plus {
  background: #e8f7ef;
  color: #1e8449;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--mark);
  font-weight: 700;
  display: flex;
  gap: 4px;
  align-items: center;
  border: 2px solid white;
}

.test-minus {
  background: #fdecea;
  color: #c0392b;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: var(--mark);
  font-weight: 700;
  display: flex;
  gap: 4px;
  align-items: center;
  border: 2px solid white;
}

.test-timer {
  background: #FFD700;
  color: #1e3c72;
  padding: 6px 16px;
  border-radius: 25px;
  font-size: var(--timer);
  font-weight: 800;
  border: 2px solid white;
}

.test-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f8f9fa;
}

.test-question {
  margin: 10px 12px;
  padding: 12px 15px;
  background: #fff;
  border-radius: 12px;
  border-left: 5px solid #FFD700;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.test-question svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
  margin: 10px auto;
}
.test-question h3 {
  margin: 0 0 6px;
  font-size: calc(var(--question) + 2px);
  color: #1e3c72;
  font-weight: 700;
}

.test-question p {
  margin: 0;
  font-size: var(--question);
  color: #333;
  line-height: 1.5;
  word-break: break-word;
}

.test-options {
  flex: 1;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 8px;
  padding: 0 12px 10px;
}

.test-option {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: #fff;
  border-radius: 12px;
  font-size: var(--option);
  font-weight: 600;
  border: 2px solid transparent;
  cursor: pointer;
  color: #1e3c72;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: 0.3s;
  word-break: break-word;
}
.test-option svg {
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.test-option:hover {
  transform: translateX(3px);
  border-color: #FFD700;
}

.test-option.active {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #FFD700;
  border-color: #FFD700;
  transform: scale(1.01);
}

.test-bottom {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  background: #fff;
  box-shadow: 0 -3px 15px rgba(0,0,0,0.1);
  border-top: 2px solid #FFD700;
  flex-wrap: wrap;
  gap: 8px;
}

.test-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 12px;
  font-size: calc(var(--option) - 1px);
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid transparent;
}

.test-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.test-prev, .test-skip {
  background: #FFD700;
  color: #1e3c72;
  border-color: white;
}

.test-next {
  background: #1e3c72;
  color: #FFD700;
  border-color: white;
}

.test-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--danger);
  color: white;
  border: 2px solid #FFD700;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  z-index: 5001;
  transition: 0.3s;
}

.test-close-btn:hover {
  background: #FFD700;
  color: var(--danger);
  transform: rotate(90deg);
}

.question-palette {
  position: fixed;
  top: 0;
  left: -300px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 5010;
  box-shadow: 2px 0 20px rgba(0,0,0,0.3);
  transition: 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.question-palette.active { left: 0; }

.palette-header {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  padding: 20px;
  text-align: center;
  border-bottom: 3px solid #FFD700;
  position: sticky;
  top: 0;
  z-index: 10;
}

.palette-header h3 {
  margin: 0 0 5px;
  font-size: 20px;
  font-weight: 800;
  color: #FFD700;
}

.palette-header p {
  margin: 0;
  font-size: 12px;
  opacity: 0.9;
}

.palette-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255,255,255,0.2);
  border: 2px solid #FFD700;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #FFD700;
  font-size: 16px;
  transition: 0.3s;
}

.palette-close:hover {
  background: #FFD700;
  color: #1e3c72;
  transform: rotate(90deg);
}

.palette-stats {
  display: flex;
  justify-content: space-around;
  padding: 12px;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e7eb;
}

.palette-stat {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.palette-stat span {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #1e3c72;
}

.palette-stat.attempted span { color: var(--success); }
.palette-stat.not-visited span { color: var(--warn); }
.palette-stat.skipped span { color: var(--danger); }

.palette-questions {
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  flex: 1;
}

.palette-question {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  border: 2px solid #e5e7eb;
  background: #fff;
  color: #1e3c72;
}

.palette-question.attempted {
  background: var(--success);
  color: white;
  border-color: var(--success);
}

.palette-question.skipped {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

.palette-question.not-visited {
  background: var(--warn);
  color: white;
  border-color: var(--warn);
}

.palette-question.current {
  border: 3px solid #FFD700;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.palette-question:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.palette-footer {
  padding: 15px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  background: #fff;
}

.palette-footer .test-btn {
  width: 100%;
  padding: 12px;
  font-size: 14px;
}

.payment-status-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30,60,114,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.payment-status-content {
  background: white;
  border-radius: 25px;
  max-width: 450px;
  width: 90%;
  padding: 40px 25px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  border: 4px solid #FFD700;
}

.payment-status-icon {
  font-size: 80px;
  margin-bottom: 25px;
}

.payment-status-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #1e3c72;
}

.payment-status-message {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 25px;
  line-height: 1.7;
}

.login-page-modern {
  min-height: 100vh;
  background: radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.08) 90%),
              linear-gradient(135deg, #f6f9fc 0%, #eef2f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
}

.login-page-modern::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(#764ba2 0.8px, transparent 0.8px);
  background-size: 28px 28px;
  opacity: 0.25;
  pointer-events: none;
}

.auth-container-modern {
  width: 100%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(0px);
  border-radius: 48px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
  position: relative;
  animation: floatIn 0.6s cubic-bezier(0.2, 0.9, 0.4, 1.1) forwards;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.premium-accent-modern {
  height: 6px;
  background: linear-gradient(90deg, #8B0000, #DC143C, #FFB347, #667eea, #764ba2);
  background-size: 200% 100%;
  animation: shimmer 3s infinite linear;
}

@keyframes shimmer {
  0% { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

.card-inner-modern {
  padding: 2rem 1.8rem 2.2rem;
}

.brand-center-modern {
  text-align: center;
  margin-bottom: 1.8rem;
}

.luxury-logo-modern {
  width: 85px;
  height: 85px;
  background: linear-gradient(145deg, #8B0000, #B22234);
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 20px -8px rgba(139, 0, 0, 0.4), 0 0 0 4px rgba(255, 215, 0, 0.3);
}

.luxury-logo-modern span {
  font-size: 26px;
  font-weight: 800;
  color: #FFD966;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}

.library-name-modern {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #1e2a3e, #2c3e50);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.3px;
}

.library-sub-modern {
  font-size: 0.85rem;
  color: #5a6874;
  margin-top: 5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.toggle-buttons-modern {
  display: flex;
  background: #f0f2f8;
  border-radius: 60px;
  padding: 5px;
  margin: 20px 0 20px;
  border: 1px solid rgba(0,0,0,0.05);
}

.toggle-buttons-modern button {
  flex: 1;
  border: none;
  padding: 12px 0;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  color: #4a5568;
}

.toggle-buttons-modern button i { margin-right: 8px; }

.toggle-buttons-modern .active-toggle-modern {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #764ba2;
}

.input-group-modern {
  margin-bottom: 1.3rem;
  position: relative;
}

.input-group-modern label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4b5b6c;
  margin-bottom: 6px;
}

.input-icon-modern {
  position: relative;
}

.input-icon-modern i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  font-size: 1rem;
  pointer-events: none;
}

.premium-input-modern {
  width: 100%;
  padding: 14px 16px 14px 44px;
  font-size: 0.95rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 34px;
  background: #ffffff;
  transition: all 0.2s;
  font-family: 'Inter', monospace;
  font-weight: 500;
  outline: none;
}

.premium-input-modern:focus {
  border-color: #764ba2;
  box-shadow: 0 0 0 4px rgba(118, 75, 162, 0.15);
}

.btn-premium-modern {
  width: 100%;
  background: linear-gradient(105deg, #667eea 0%, #764ba2 100%);
  border: none;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 44px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 6px;
  box-shadow: 0 8px 20px -6px rgba(118, 75, 162, 0.4);
}

.btn-premium-modern:hover {
  transform: scale(1.01);
  background: linear-gradient(105deg, #5a6fe0, #6a3d92);
}

.btn-outline-otp-modern {
  background: transparent;
  border: 1.5px solid #764ba2;
  color: #764ba2;
  box-shadow: none;
  margin-top: 10px;
}

.btn-outline-otp-modern:hover {
  background: #764ba2;
  color: white;
}

.message-area-modern {
  margin-top: 18px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  background: #f8fafd;
  padding: 10px;
  border-radius: 60px;
  transition: all 0.2s;
}

.footer-links-modern {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  font-size: 0.7rem;
}

.footer-links-modern span {
  color: #5b6e8c;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

.footer-links-modern span:hover {
  color: #764ba2;
  text-decoration: underline;
}

.registration-fields-modern {
  transition: all 0.3s ease;
}

.divider-modern {
  text-align: center;
  margin: 15px 0;
  font-size: 0.7rem;
  color: #94a3b8;
  position: relative;
}
.divider-modern::before, .divider-modern::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: #e2e8f0;
}
.divider-modern::before { left: 0; }
.divider-modern::after { right: 0; }

.inline-flex-modern {
  display: flex;
  gap: 12px;
  align-items: center;
}
.small-note-modern {
  font-size: 0.7rem;
  color: #64748b;
  text-align: center;
  margin-top: 10px;
}

.profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30,60,114,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.profile-content {
  background: white;
  border-radius: 25px;
  max-width: 550px;
  width: 95%;
  padding: 40px 25px;
  position: relative;
  border: 4px solid #FFD700;
  max-height: 80vh;
  overflow-y: auto;
}

.profile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  background: #1e3c72;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD700;
  border: 2px solid #FFD700;
  transition: 0.3s;
}

.profile-close:hover {
  background: #FFD700;
  color: #1e3c72;
  transform: rotate(90deg);
}

.profile-title {
  text-align: center;
  margin-bottom: 25px;
  color: #1e3c72;
  font-size: 28px;
  font-weight: 800;
}

.profile-info {
  margin-bottom: 25px;
}

.profile-field {
  margin-bottom: 18px;
  border-bottom: 2px solid #eee;
  padding-bottom: 12px;
}

.profile-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
  font-weight: 600;
}

.profile-value {
  font-size: 18px;
  font-weight: 700;
  color: #1e3c72;
  word-break: break-word;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 25px 0;
}

.stat-card {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  padding: 20px 10px;
  border-radius: 16px;
  text-align: center;
  border: 2px solid #FFD700;
}

.stat-number {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #FFD700;
}

.stat-label {
  font-size: 12px;
  opacity: 0.95;
  font-weight: 600;
}

.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30,60,114,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.settings-content {
  background: white;
  border-radius: 25px;
  max-width: 550px;
  width: 95%;
  padding: 40px 25px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
  border: 4px solid #FFD700;
}

.settings-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  background: #1e3c72;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD700;
  border: 2px solid #FFD700;
  transition: 0.3s;
}

.settings-close:hover {
  background: #FFD700;
  color: #1e3c72;
  transform: rotate(90deg);
}

.settings-title {
  text-align: center;
  margin-bottom: 25px;
  color: #1e3c72;
  font-size: 28px;
  font-weight: 800;
}

.settings-section {
  margin-bottom: 30px;
}

.settings-section-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1e3c72;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 8px;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  gap: 10px;
}

.setting-label {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.switch {
  position: relative;
  display: inline-block;
  width: 55px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 28px;
}

.switch .slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

.switch input:checked + .slider {
  background-color: #1e3c72;
}

.switch input:checked + .slider:before {
  transform: translateX(26px);
}

.color-picker {
  width: 60px;
  height: 35px;
  border: 2px solid #FFD700;
  border-radius: 8px;
  cursor: pointer;
}

.share-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 6000;
}

.share-content {
  background: white;
  border-radius: 25px;
  max-width: 350px;
  width: 90%;
  padding: 25px;
  text-align: center;
  border: 4px solid #FFD700;
  animation: slideIn 0.3s ease;
}

.share-header {
  font-size: 24px;
  font-weight: 800;
  color: #1e3c72;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.share-header i { color: #FFD700; }

.share-preview {
  margin: 15px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 15px;
  border: 2px solid #FFD700;
}

.share-preview-image {
  width: 100%;
  height: 150px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
}

.share-preview-image::before {
  content: '🏆';
  font-size: 40px;
  margin-bottom: 5px;
}

.share-preview-title {
  font-size: 20px;
  font-weight: 800;
  color: #FFD700;
  margin-bottom: 5px;
  word-break: break-word;
}

.share-preview-score {
  font-size: 18px;
  font-weight: 600;
}

.share-preview-message {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 10px;
  word-break: break-word;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.share-option {
  padding: 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid transparent;
}

.share-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.share-option i {
  font-size: 30px;
  margin-bottom: 5px;
}

.share-option span {
  font-size: 14px;
  font-weight: 600;
}

.share-whatsapp {
  background: #25D366;
  color: white;
}

.share-telegram {
  background: #0088cc;
  color: white;
}

.share-instagram {
  background: linear-gradient(45deg, #f09433, #d62976, #962fbf, #4f5bd5);
  color: white;
}

.share-copy {
  background: #1e3c72;
  color: #FFD700;
}

.share-close-btn {
  margin-top: 15px;
  padding: 12px 25px;
  background: #FFD700;
  color: #1e3c72;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.share-close-btn:hover {
  background: #1e3c72;
  color: #FFD700;
  transform: translateY(-2px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.live-test-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--success);
  color: white;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 4000;
  animation: slideInRight 0.5s ease-out;
  max-width: 300px;
}

.live-test-notification h4 {
  margin: 0 0 8px 0;
  font-size: 1.1rem;
}

.live-test-notification .countdown {
  font-family: monospace;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 8px 0;
}

.live-test-notification .btn {
  width: 100%;
  margin-top: 8px;
  justify-content: center;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background: #FFD700;
  color: #1e3c72;
  font-weight: 700;
  cursor: pointer;
}

.test-details-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30,60,114,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.test-details-content {
  background: white;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  padding: 24px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border: 2px solid var(--accent-red);
  max-height: 80vh;
  overflow-y: auto;
}

.test-details-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  cursor: pointer;
  color: #900;
  background: none;
  border: none;
}

.test-details-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin: 12px 0;
}

.test-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.test-details-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.test-details-label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

.test-details-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  word-break: break-word;
}

.test-details-description {
  margin: 16px 0;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  word-break: break-word;
}

.scrollable-popup-content {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.scrollable-popup-content::-webkit-scrollbar {
    width: 6px;
}

.scrollable-popup-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.scrollable-popup-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.scrollable-popup-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.icon{
  position:relative;
  width:60px;
  height:60px;
  border-radius:50%;
  background:#000;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  overflow:visible;
  transition:transform .3s;
}

.icon i{
  font-size:24px;
  color:var(--clr);
  transition:color .3s;
  z-index:2;
}

.icon::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  border:2px solid red;
  opacity:0.2;
  animation:borderPulse 2s infinite ease-in-out;
}

@keyframes borderPulse{
  0%,100% {opacity:0.2;}
  50% {opacity:1;}
}

.icon::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%) scale(0.4);
  width:120px;
  height:120px;
  border-radius:50%;
  opacity:0;
  filter:blur(20px);
  background:radial-gradient(circle,var(--clr) 0%,transparent 70%);
  transition:opacity .3s, transform .3s;
  z-index:0;
}

.icon.active::before{
  opacity:1;
  transform:translate(-50%,-50%) scale(1);
}

.icon.active i{
  color:white;
}

.icon:hover{
  transform:translateY(-5px);
}

.instagram{--clr:#e1306c;}
.whatsapp{--clr:#25d366;}
.telegram{--clr:#0088cc;}
.notification{--clr:#ff9800;}
.offer{--clr:#9c27b0;}
.popup{--clr:#4caf50;}

.notification-system {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 5000;
    max-width: 400px;
}

.notification-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border-left: 4px solid var(--primary);
    animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.notification-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--muted);
}

.notification-body {
    font-size: 0.9rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.notification-test {
    background: #e8f5e8;
    border-left-color: var(--success);
}

.notification-important {
    background: #fff8e1;
    border-left-color: var(--warn);
}

.notification-urgent {
    background: #ffebee;
    border-left-color: var(--danger);
    animation: pulse 1.5s infinite;
}

.live-result-page {
  padding: 20px;
  background: var(--bg);
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-result-card {
  background: linear-gradient(135deg, #fff, #f8f9fa);
  border-radius: 30px;
  padding: 40px 25px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border: 3px solid #FFD700;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.live-result-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255,215,0,0.1);
  border-radius: 50%;
}

.live-result-icon {
  font-size: 80px;
  color: var(--success);
  margin-bottom: 25px;
}

.live-result-title {
  font-size: 28px;
  font-weight: 800;
  color: #1e3c72;
  margin-bottom: 15px;
}

.live-result-message {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 25px;
  line-height: 1.6;
}

.live-result-whatsapp-box {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 16px;
  margin: 25px 0;
  border-left: 5px solid #25D366;
}

.live-result-whatsapp-box p {
  margin: 0 0 15px 0;
  font-weight: 600;
  color: #1e3c72;
}

.live-result-whatsapp-btn {
  background: #25D366;
  color: white;
  padding: 16px 25px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s;
  border: 2px solid transparent;
  width: 100%;
}

.live-result-whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.live-result-home-btn {
  background: #1e3c72;
  color: #FFD700;
  padding: 16px 25px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid #FFD700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s;
  width: 100%;
}

.live-result-home-btn:hover {
  background: #FFD700;
  color: #1e3c72;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4000;
}

.modal-content {
  background: white;
  border-radius: 16px;
  max-width: 500px;
  width: 95%;
  padding: 20px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  border: 4px solid #FFD700;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #FFD700;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
  color: #1e3c72;
  font-weight: 800;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  width: 35px;
  height: 35px;
  background: #1e3c72;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFD700;
  border: 2px solid #FFD700;
  transition: 0.3s;
}

.modal-close:hover {
  background: #FFD700;
  color: #1e3c72;
  transform: rotate(90deg);
}

.modal-body { padding: 10px 0; }
.modal-footer { margin-top: 20px; text-align: center; }

.admin-panel-page {
  padding: 20px;
  background: var(--bg);
  min-height: calc(100vh - 120px);
}

.admin-card {
  background: white;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-left: 5px solid #FFD700;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1e3c72;
  margin: 0;
  word-break: break-word;
}

.admin-badge {
  background: #1e3c72;
  color: #FFD700;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.admin-test-list { margin-bottom: 20px; }

.admin-test-item {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  transition: 0.3s;
}

.admin-test-item:hover {
  border-color: #FFD700;
  transform: translateX(3px);
}

.admin-test-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-test-title {
  font-weight: 700;
  color: #1e3c72;
  word-break: break-word;
}

.admin-test-count {
  background: #FFD700;
  color: #1e3c72;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.admin-test-details {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--muted);
  flex-wrap: wrap;
}

.admin-test-details span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-test-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.admin-btn {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.admin-btn-view {
  background: #1e3c72;
  color: #FFD700;
}

.admin-btn-pdf {
  background: #28b487;
  color: white;
}

.admin-btn-rank {
  background: #FFD700;
  color: #1e3c72;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  overflow-x: auto;
  display: block;
}

.results-table th {
  background: #1e3c72;
  color: #FFD700;
  padding: 10px;
  font-size: 13px;
  text-align: left;
  font-weight: 600;
}

.results-table td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 13px;
}

.results-table tr:hover { background: #f8f9fa; }

.rank-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.rank-1 {
  background: #FFD700;
  color: #1e3c72;
}

.rank-2 {
  background: #c0c0c0;
  color: #1e3c72;
}

.rank-3 {
  background: #cd7f32;
  color: white;
}