/* Premium UI/UX Styles Matching User screenshots (Light / Dark Theme Support) */

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

:root {
  --font-family: 'Outfit', sans-serif;
  --bg-color: #f4f6f8;
  --panel-bg: #ffffff;
  --panel-border: rgba(0, 0, 0, 0.05);
  --primary-color: #10b981; /* Green accent as in screenshots */
  --primary-hover: #059669;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --bg-active-q: #10b981;
  --border-unanswered: #ef4444; /* Red outline in screenshots */
  --text-unanswered: #ef4444;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  
  /* Telegram frame headers */
  --tg-header-bg: #1e293b;
  --tg-header-text: #ffffff;
  --tg-header-hint: #94a3b8;
}

/* Dark theme overrides */
body.dark-theme {
  --bg-color: #0b0f19;
  --panel-bg: rgba(17, 24, 39, 0.8);
  --panel-border: rgba(255, 255, 255, 0.08);
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --tg-header-bg: #0f172a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-tap-highlight-color: transparent;
}

body {
  background: #000; /* Outer simulator page is dark */
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  padding: 20px;
}

/* Simulator Container */
.simulator-container {
  display: flex;
  gap: 30px;
  max-width: 1100px;
  width: 100%;
  justify-content: center;
  align-items: stretch;
}

/* Mock Phone Frame */
.phone-mockup {
  width: 390px;
  height: 800px;
  background: #000;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7),
              0 0 0 4px #27272a,
              0 0 40px 10px rgba(16, 185, 129, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Inner frame representing Telegram */
.telegram-frame {
  flex: 1;
  background: var(--bg-color);
  border-radius: 36px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Telegram Header */
.tg-header {
  height: 54px;
  background: var(--tg-header-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  user-select: none;
  z-index: 10;
  color: var(--tg-header-text);
}

.tg-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--primary-color), #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}

.tg-title-group {
  display: flex;
  flex-direction: column;
}

.tg-app-title {
  font-size: 13px;
  font-weight: 600;
}

.tg-app-subtitle {
  font-size: 11px;
  color: var(--tg-header-hint);
}

.tg-header-actions {
  display: flex;
  gap: 15px;
  color: var(--tg-header-hint);
  cursor: pointer;
  font-size: 16px;
}

/* Viewport Area */
.app-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 80px; /* Space for navbar */
}

/* Header Logo and Actions */
.app-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px 10px;
  border-bottom: 1px solid var(--panel-border);
}

.app-logo {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-header-icons {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--text-main);
  font-size: 18px;
  cursor: pointer;
}

/* Tab content */
.tab-content {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.tab-content.active {
  display: flex;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Cards and Panels */
.glass-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, border-color 0.2s;
}

.glass-card:hover {
  transform: translateY(-1px);
}

/* Diagonal Trial Exam Promo Banner */
.promo-banner {
  border-radius: 16px;
  background: linear-gradient(135deg, #10b981, #047857);
  padding: 20px;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promo-banner h3 {
  font-size: 16px;
  font-weight: 700;
  z-index: 2;
}

.promo-banner p {
  font-size: 11px;
  opacity: 0.9;
  line-height: 1.4;
  z-index: 2;
}

/* Category cards list */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.section-title {
  font-size: 18px;
  font-weight: 800;
}

.section-count {
  font-size: 12px;
  color: var(--text-muted);
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 14px;
  margin-bottom: 24px;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  position: relative;
}

.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.cat-icon-box {
  width: 44px;
  height: 44px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-color);
}

.badge-status {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--primary-color);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.cat-body h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cat-body p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.cat-footer-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--panel-border);
  padding-top: 12px;
  align-items: center;
  justify-content: space-between;
}

.start-btn-link {
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Exam Active screen layout */
.quiz-screen {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-color);
  z-index: 100;
  display: none;
  flex-direction: column;
  border-radius: 36px;
}

.quiz-screen.active {
  display: flex;
  animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.quiz-viewport {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Warning alert box */
.warning-alert {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #ef4444;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.warning-alert i {
  font-size: 14px;
}

/* Question Grid */
.question-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.grid-q-item {
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border-unanswered);
  color: var(--text-unanswered);
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.grid-q-item.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.grid-q-item.correct {
  background: #10b981 !important;
  color: #fff !important;
  border-color: #10b981 !important;
}

.grid-q-item.incorrect {
  background: #ef4444 !important;
  color: #fff !important;
  border-color: #ef4444 !important;
}

.grid-q-item.current {
  border-width: 2px;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

/* Radio buttons list */
.exam-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  font-weight: 500;
}

.radio-option:hover {
  border-color: var(--primary-color);
}

.radio-option:has(input:checked) {
  border-color: var(--primary-color);
  background: rgba(16, 185, 129, 0.06);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.15);
}

.radio-option input[type="radio"] {
  accent-color: var(--primary-color);
  width: 18px;
  height: 18px;
}

/* Back / Next buttons */
.exam-navigation-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

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

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.02);
}

body.dark-theme .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Profile header styling */
.profile-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

body.dark-theme .profile-avatar {
  background: #334155;
  color: #cbd5e1;
}

.profile-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

.profile-id {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.profile-rating-badge {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #3b82f6;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-sub-badge {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-sub-badge.free {
  background: rgba(100, 116, 139, 0.08);
  border: 1px solid rgba(100, 116, 139, 0.2);
  color: #64748b;
}

/* Stats Row Grid */
.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.stat-grid-item {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-grid-value {
  font-size: 16px;
  font-weight: 800;
}

.stat-grid-label {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Sub-tabs inside profile */
.sub-tabs-row {
  display: flex;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 10px;
  padding: 4px;
  margin-top: 10px;
}

body.dark-theme .sub-tabs-row {
  background: rgba(255, 255, 255, 0.03);
}

.sub-tab-item {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
}

.sub-tab-item.active {
  background: var(--panel-bg);
  color: var(--text-main);
  box-shadow: var(--card-shadow);
}

/* Exam Trial History item */
.history-exam-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 4px solid var(--primary-color);
}

.history-exam-card.paused {
  border-left-color: var(--warning-color);
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.badge-paused {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--warning-color);
}

/* Bottom Navigation Bar */
.tg-nav {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 64px;
  background: var(--panel-bg);
  border-top: 1px solid var(--panel-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 10;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.02);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  padding: 8px 10px;
  flex: 1;
  text-align: center;
}

.nav-item i {
  font-size: 16px;
}

.nav-item.active {
  color: var(--primary-color);
}

.nav-item.exit {
  color: var(--border-unanswered);
}

/* Info items */
.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.info-row:last-child {
  margin-bottom: 0;
}

/* Modals */
.modal-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: flex-end;
  border-radius: 36px;
  backdrop-filter: blur(2px);
}

.modal-overlay.active {
  display: flex;
}

.modal-sheet {
  background: var(--panel-bg);
  border-top: 1px solid var(--panel-border);
  width: 100%;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: slideSheetUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 80%;
  overflow-y: auto;
}

@keyframes slideSheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.form-group label {
  font-size: 12px;
  color: var(--text-muted);
}

.form-input {
  background: var(--bg-color);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  width: 100%;
}

.form-input:focus {
  border-color: var(--primary-color);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.plan-card {
  border-radius: 16px;
  padding: 14px;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.plan-card:hover {
  border-color: var(--primary-color);
}

.plan-card .price {
  font-size: 16px;
  font-weight: 800;
}

/* Control Simulator Widget */
.simulator-controls {
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  height: fit-content;
  color: #f3f4f6;
}

.control-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.control-title {
  font-weight: 700;
}

/* Results box */
.result-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 10px;
}

.result-emoji { font-size: 54px; }
.result-score {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary-color);
}

/* Payment styles */
.payment-gateways {
  display: flex;
  gap: 14px;
  width: 100%;
}

.gateway-option {
  flex: 1;
  border: 1px solid var(--panel-border);
  background: var(--bg-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.gateway-option:hover {
  border-color: var(--primary-color);
}

.click-logo { color: #0093e9; font-weight:800; }
.payme-logo { color: #00d2fc; font-weight:800; }

@media (max-width: 768px) {
  body {
    padding: 0;
    align-items: flex-start;
  }
  .simulator-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 10px;
  }
  .simulator-controls {
    width: 390px;
  }
}

/* Telegram Native Fullscreen Mode Overrides */
body.tg-mode {
  padding: 0 !important;
  margin: 0 !important;
  background: var(--bg-color) !important;
  min-height: 100vh !important;
  display: block !important;
}

body.tg-mode .simulator-controls {
  display: none !important;
}

body.tg-mode .simulator-container {
  display: block !important;
  max-width: 100% !important;
  width: 100% !important;
  height: 100vh !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.tg-mode .phone-mockup {
  width: 100% !important;
  height: 100vh !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  margin: 0 !important;
}

body.tg-mode .telegram-frame {
  border-radius: 0 !important;
  border: none !important;
  height: 100vh !important;
}

body.tg-mode .tg-header {
  display: none !important; /* Hide mock Telegram header inside real Telegram app */
}

body.tg-mode .app-nav-header {
  padding-top: 24px !important; /* Clears mobile status bar / notch */
  padding-left: 16px !important;
  padding-right: 16px !important;
}

body.tg-mode .tg-nav {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  height: 74px !important;
  padding-bottom: 12px !important; /* Spaces home indicator bar on iOS/Android */
  position: fixed !important;
}

body.tg-mode .app-content {
  padding-bottom: 90px !important; /* Prevents text from being hidden behind tg-nav */
}

/* Banner Slider styles */
.promo-banner-slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  width: 100%;
}

.promo-banner-slider {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 100%;
}

.promo-banner-slide {
  min-width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  background: linear-gradient(135deg, #10b981, #047857);
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.promo-banner-slide h3 {
  font-size: 15px;
  font-weight: 700;
  z-index: 2;
  margin: 0;
  line-height: 1.3;
}

.promo-banner-slide p {
  font-size: 11px;
  opacity: 0.9;
  line-height: 1.4;
  z-index: 2;
  margin: 0;
}

.slider-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 5;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
}

.slider-dot.active {
  background: #fff;
  width: 14px;
  border-radius: 3px;
}

/* Lock Screen Overlay styles */
.lock-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
  z-index: 999999;
  /* Default: HIDDEN. JS shows it only when NOT in Telegram */
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
  box-sizing: border-box;
}
/* JS adds this class to show the lock screen */
.lock-overlay.visible {
  display: flex;
}

.lock-card {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  padding: 40px 30px;
  width: 100%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 
              inset 0 1px 1px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: lockFloatCard 6s ease-in-out infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

@keyframes lockFloatCard {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.3deg); }
}

.lock-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0088cc 0%, #00a2ed 100%);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 42px;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 136, 204, 0.35), 
              0 0 0 6px rgba(0, 136, 204, 0.15);
  animation: lockPulseIcon 2s infinite;
}

@keyframes lockPulseIcon {
  0% { box-shadow: 0 8px 24px rgba(0, 136, 204, 0.35), 0 0 0 0 rgba(0, 136, 204, 0.2); }
  70% { box-shadow: 0 8px 24px rgba(0, 136, 204, 0.35), 0 0 0 12px rgba(0, 136, 204, 0); }
  100% { box-shadow: 0 8px 24px rgba(0, 136, 204, 0.35), 0 0 0 0 rgba(0, 136, 204, 0); }
}

.lock-card h2 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.5px;
}

.lock-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

.lock-btn {
  width: 100%;
  background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%);
  color: #ffffff !important;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.25);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.lock-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 136, 204, 0.35);
  background: linear-gradient(135deg, #0099e6 0%, #0088cc 100%);
}

.lock-btn:active {
  transform: translateY(0);
}

/* Loading Overlay (while syncing user from MySQL) */
.app-loading-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-color);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  transition: opacity 0.3s ease;
}
.app-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}
.app-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(16, 185, 129, 0.15);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.app-loading-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Timer animations and states */
@keyframes timerSubtleShake {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-1px, 1px) rotate(-1deg); }
  50% { transform: translate(1px, -1px) rotate(1deg); }
  75% { transform: translate(-1px, -1px) rotate(0deg); }
  100% { transform: translate(1px, 1px) rotate(1deg); }
}

@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.timer-critical {
  animation: timerSubtleShake 0.15s infinite alternate, timerPulse 1s infinite;
  display: inline-block;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.timer-warning {
  display: inline-block;
  text-shadow: 0 0 6px rgba(245, 158, 11, 0.3);
}

.timer-safe {
  display: inline-block;
}


