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

:root, [data-theme="dark"] {
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --accent: #10b981;
  --accent-dark: #059669;
  --danger: #f43f5e;
  --warning: #f59e0b;
  --bg-dark: #070913;
  --bg-card: rgba(13, 18, 33, 0.96);
  --bg-card2: rgba(18, 26, 46, 0.92);
  --border: rgba(99, 102, 241, 0.18);
  --border-glow: rgba(59, 130, 246, 0.45);
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --header-bg: rgba(7, 9, 19, 0.92);
  --input-bg: rgba(10, 14, 26, 0.75);
  --glow: 0 0 28px rgba(59, 130, 246, 0.28);
  --glow-green: 0 0 28px rgba(16, 185, 129, 0.28);
  --card-shadow: 0 24px 50px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(59, 130, 246, 0.08);
  --canvas-opacity: 0.35;
  --bg-image-opacity: 1;
}

[data-theme="light"] {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #1d4ed8;
  --accent: #059669;
  --accent-dark: #047857;
  --danger: #e11d48;
  --warning: #d97706;
  --bg-dark: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card2: rgba(241, 245, 249, 0.95);
  --border: rgba(59, 130, 246, 0.22);
  --border-glow: rgba(59, 130, 246, 0.45);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
  --header-bg: rgba(255, 255, 255, 0.88);
  --input-bg: rgba(255, 255, 255, 0.95);
  --glow: 0 0 25px rgba(37, 99, 235, 0.18);
  --glow-green: 0 0 25px rgba(5, 150, 105, 0.2);
  --card-shadow: 0 20px 45px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.05);
  --canvas-opacity: 0.35;
  --bg-image-opacity: 0.15;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.2s ease;
}

body {
  font-family: 'Outfit', 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background: Sleek Ambient Mesh on Dark Mode, Soft Glow on Light Mode */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% -10%, rgba(59, 130, 246, 0.16) 0%, transparent 60%),
    radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 10% 70%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    var(--bg-dark);
  z-index: -2;
  pointer-events: none;
}

[data-theme="light"] body::before {
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.08) 0%, transparent 70%),
              radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 60%),
              var(--bg-dark);
}

/* ONLY 404 Page has the background image where 404 signboard belongs */
body.error-page::before {
  background: 
    linear-gradient(rgba(11, 15, 25, 0.75), rgba(11, 15, 25, 0.85)),
    url('/images/custom_bg.webp') no-repeat center center / cover !important;
  opacity: 1 !important;
}

#cyber-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: var(--canvas-opacity);
}

.header {
  background: var(--header-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
  min-height: 64px;
  gap: 16px;
}

.header-controls {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, var(--text), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

[data-theme="light"] .logo-text {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-badge {
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary-light);
  border: 1px solid var(--border);
  padding: 0 16px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--glow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
  line-height: 1;
}

/* Theme Switcher Button */
.theme-toggle-btn {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.25s ease;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
  line-height: 1;
}

.theme-toggle-btn:hover {
  border-color: var(--border-glow);
  transform: translateY(-1px);
  box-shadow: var(--glow);
}

/* Translation Button & Modal Styles */
.lang-btn {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.25s ease;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
  line-height: 1;
}

.lang-btn:hover {
  border-color: var(--border-glow);
  transform: translateY(-1px);
  box-shadow: var(--glow);
}

/* Admin Logout Button */
.btn-logout {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 0 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.25s ease;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
  height: 38px;
  min-height: 38px;
  box-sizing: border-box;
  line-height: 1;
}

.btn-logout:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .header {
    padding: 10px 16px;
    min-height: 58px;
    gap: 10px;
  }
  .header-controls {
    gap: 8px;
  }
  .lang-btn, .theme-toggle-btn, .header-badge, .btn-logout {
    padding: 0 12px;
    font-size: 12px;
    height: 36px;
    min-height: 36px;
    gap: 6px;
  }
}

@media (max-width: 520px) {
  .logo-text {
    font-size: 15px;
  }
  .header-controls {
    gap: 6px;
  }
  .header-badge {
    display: none !important;
  }
  .lang-btn, .theme-toggle-btn, .btn-logout {
    padding: 0 10px;
    font-size: 11px;
    height: 34px;
    min-height: 34px;
  }
}

@media (max-width: 380px) {
  .lang-btn span, .theme-toggle-btn span, .btn-logout span {
    display: none !important;
  }
  .lang-btn, .theme-toggle-btn, .btn-logout {
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    justify-content: center;
  }
}

.translate-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(10px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.translate-modal {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 30px;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--card-shadow), 0 0 50px rgba(59, 130, 246, 0.2);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.translate-guide-box {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 16px 0 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

.translate-guide-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.translate-guide-step:last-child {
  margin-bottom: 0;
}

.translate-step-num {
  background: var(--primary);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.lang-option-btn {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.lang-option-btn:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.lang-option-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-light);
}

.translate-helper-hint {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin: 14px 0 22px;
  padding: 12px 18px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.text-link-btn {
  background: none;
  border: none;
  color: var(--primary-light);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
}

.text-link-btn:hover {
  opacity: 0.8;
}

/* Eye-catching Native Banner Guide System */
.native-ad-wrapper {
  margin: 16px 0 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 18px;
  padding: 16px 14px 20px;
  text-align: center;
  position: relative;
  transition: all 0.35s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.native-ad-wrapper.highlight-pulse {
  border: 2px solid var(--accent) !important;
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.45), inset 0 0 15px rgba(16, 185, 129, 0.1) !important;
  animation: nativePulse 2s infinite ease-in-out;
}

@keyframes nativePulse {
  0%, 100% { border-color: #10b981; box-shadow: 0 0 25px rgba(16, 185, 129, 0.4); }
  50% { border-color: #3b82f6; box-shadow: 0 0 35px rgba(59, 130, 246, 0.5); }
}

.native-guide-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(59, 130, 246, 0.25));
  border: 1.5px solid var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  animation: bounceMini 1.8s infinite;
}

[data-theme="light"] .native-guide-badge {
  color: #065f46;
  background: #ecfdf5;
  border-color: #10b981;
}

@keyframes bounceMini {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Hide Google Translate top banner bar completely */
.skiptranslate,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
iframe.skiptranslate,
div.skiptranslate,
body > .skiptranslate,
.goog-te-ftab-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
iframe[src*="translate.googleapis.com"],
iframe[id*=":1.container"],
iframe[id*=":2.container"],
#goog-gt-tt,
.goog-tooltip,
.goog-tooltip:hover {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0px !important;
  width: 0px !important;
  max-height: 0px !important;
  pointer-events: none !important;
  z-index: -999999 !important;
}

body, html {
  top: 0px !important;
  position: static !important;
  margin-top: 0px !important;
  padding-top: 0px !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}


.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  position: relative;
  z-index: 1;
}

/* Real-time Progress Bar Container (Direct % display, no 15 step label) */
.progress-container {
  margin-bottom: 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 18px 24px;
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(15px);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.progress-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.progress-title i {
  color: var(--primary);
  animation: spinSlow 6s linear infinite;
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.progress-percent-badge {
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.progress-bar {
  height: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .progress-bar {
  background: rgba(0, 0, 0, 0.08);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 12px;
  transition: width 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.progress-status-sub {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Card Styling */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
}

.card-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.step-icon {
  width: 76px;
  height: 76px;
  background: radial-gradient(circle at 35% 35%, rgba(59, 130, 246, 0.22), rgba(59, 130, 246, 0.08));
  border: 1.5px solid var(--border-glow);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--primary-light);
  margin: 0 auto 24px;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.25), inset 0 0 15px rgba(59, 130, 246, 0.15);
  position: relative;
  animation: stepIconPulse 3.5s ease-in-out infinite alternate;
}

@keyframes stepIconPulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), inset 0 0 10px rgba(59, 130, 246, 0.1);
  }
  50% {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.45), inset 0 0 20px rgba(59, 130, 246, 0.25);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), inset 0 0 10px rgba(59, 130, 246, 0.1);
  }
}

.step-icon i {
  display: inline-block;
  animation: stepIconFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(59, 130, 246, 0.4));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes stepIconFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-2px) rotate(-3deg);
  }
  75% {
    transform: translateY(2px) rotate(3deg);
  }
}

.step-icon:hover i {
  transform: scale(1.15) rotate(8deg);
}

.step-icon::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 27px;
  background: conic-gradient(from 0deg, transparent, var(--primary), transparent, var(--accent), transparent);
  z-index: -1;
  animation: iconSpinBorder 7s linear infinite;
  opacity: 0.65;
}

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

.card h2 {
  font-size: 24px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 14px;
  color: var(--text);
  letter-spacing: -0.5px;
}

.card p {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

/* Verification Box (Cloudflare / Recaptcha Style) */
.verify-box {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.verify-box:hover {
  border-color: var(--border-glow);
  background: rgba(59, 130, 246, 0.08);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.verify-box.verified {
  border-color: var(--accent);
  background: rgba(16, 185, 129, 0.08);
}

.verify-checkbox {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  background: var(--bg-dark);
}

[data-theme="light"] .verify-checkbox {
  border-color: #cbd5e1;
  background: #ffffff;
}

.verify-box:hover .verify-checkbox {
  border-color: var(--primary);
}

.verify-box.verified .verify-checkbox {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--glow-green);
}

.verify-checkbox-icon {
  font-size: 14px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.verify-box.verified .verify-checkbox-icon {
  opacity: 1;
  transform: scale(1);
  color: #fff;
}

.verify-text {
  flex: 1;
}

.verify-text strong {
  display: block;
  font-size: 15px;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
}

.verify-text span {
  font-size: 12px;
  color: var(--text-dim);
}

.verify-logo {
  font-size: 26px;
  color: var(--text-dim);
  opacity: 0.8;
  transition: all 0.3s;
}

.verify-box:hover .verify-logo {
  color: var(--primary);
}

.verify-loading {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-card);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  z-index: 5;
}

.verify-loading.show {
  display: flex;
}

.verify-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid rgba(59, 130, 246, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Timer and Countdown */
.timer-container {
  text-align: center;
  margin: 28px 0;
}

.timer-ring {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.timer-ring svg {
  transform: rotate(-90deg);
}

.timer-ring circle {
  fill: none;
  stroke-width: 6;
}

.timer-ring .bg-circle {
  stroke: rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .timer-ring .bg-circle {
  stroke: rgba(0, 0, 0, 0.08);
}

.timer-ring .progress-circle {
  stroke: url(#timerGradient);
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.timer-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.timer-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}

/* Action Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 18px 28px;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 10px 35px rgba(59, 130, 246, 0.55);
}

.btn-primary:disabled {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

[data-theme="light"] .btn-primary:disabled {
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #94a3b8;
}

.btn-secondary {
  background: var(--bg-card2);
  color: var(--primary-light);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--border-glow);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 17px;
}

.btn-success:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(16, 185, 129, 0.5);
}

.btn-success:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-pulse {
  animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.6); }
  70% { box-shadow: 0 0 0 14px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Info Box */
.info-box {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.info-box-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary);
}

/* Ad Containers */
.ad-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  margin: 24px 0;
  position: relative;
  backdrop-filter: blur(10px);
}

[data-theme="light"] .ad-container {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(59, 130, 246, 0.25);
}

.ad-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 14px;
  border-radius: 20px;
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* Footer */
.footer {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-dim);
  font-size: 13px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--primary-light);
  text-decoration: none;
}

/* Admin Dashboard Specific Styles */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
  margin-top: 10px;
}

.links-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}

.links-table td, .links-table th {
  border: 1px solid var(--border);
  padding: 12px;
  text-align: left;
}

.links-table th {
  background: var(--bg-card2);
  color: var(--text);
}

.links-table tr:hover {
  background: rgba(59, 130, 246, 0.05);
}

.action-btn-red {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-btn-red:hover {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}

.action-btn-copy {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.action-btn-copy:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* Modern Toggle Switch for Admin Ad Settings */
.ad-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.ad-toggle-item {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ad-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ad-toggle-label strong {
  font-size: 14px;
  color: var(--text);
}

.ad-toggle-label span {
  font-size: 12px;
  color: var(--text-dim);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s;
  border-radius: 28px;
  border: 1px solid var(--border);
}

[data-theme="light"] .slider {
  background-color: #cbd5e1;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: var(--accent);
  border-color: var(--accent);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* Social Bar (Mobile Devices Only) & Skyscrapers (Completely Removed) */
.skyscraper-container {
  display: none !important;
}

.social-bar-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: none !important;
}

@media (max-width: 768px) {
  .social-bar-wrapper {
    display: block !important;
  }
}

/* Smooth Sticky/Floating Top Ad (Pure Vertical, Zero Horizontal Drift) */
.top-ad-sticky-wrapper {
  width: 100%;
  position: relative;
  display: block;
}

#top-banner-container {
  will-change: top, position;
  margin: 16px auto;
  max-width: 720px;
  width: calc(100% - 32px);
  transition: none !important;
}

#top-banner-container.is-sticky {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  margin: 0 !important;
  width: calc(100% - 32px) !important;
  max-width: 720px !important;
  z-index: 950 !important;
  background: var(--bg-card) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--border-glow) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5) !important;
  border-radius: 16px !important;
  transition: none !important;
}

[data-theme="light"] #top-banner-container.is-sticky {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.16) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
}

@media (max-width: 600px) {
  .container {
    padding: 24px 16px;
  }
  .card {
    padding: 24px 20px;
  }
  .card h2 {
    font-size: 19px;
  }
  .timer-ring {
    width: 100px;
    height: 100px;
  }
  .header {
    padding: 14px 20px;
  }
}

/* Anti Adblock & Disclaimers */
.adblock-wall {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(10, 10, 20, 0.96);
  backdrop-filter: blur(25px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.adblock-card {
  background: var(--bg-card);
  border: 2px solid rgba(239, 68, 68, 0.4);
  border-radius: 24px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 0 50px rgba(239, 68, 68, 0.25);
  position: relative;
}

.adblock-icon {
  width: 80px;
  height: 80px;
  background: rgba(239, 68, 68, 0.15);
  border: 2px solid var(--danger);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  color: var(--danger);
  margin: 0 auto 24px;
}

.adblock-btn {
  background: linear-gradient(135deg, var(--danger), #f59e0b);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
  width: 100%;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 15px;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-card2);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  gap: 12px;
  transition: all 0.3s ease;
}

.social-item:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: var(--glow);
}

.img-logo {
  object-fit: contain;
  width: 48px !important;
  height: 48px !important;
  border-radius: 10px;
}

.social-logo {
  width: 48px;
  height: 48px;
  font-size: 32px;
}

.disclaimer-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(11, 15, 25, 0.95);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(15px);
}

.disclaimer-card {
  background: var(--bg-card);
  border: 2px solid var(--warning);
  border-radius: 20px;
  padding: 30px;
  max-width: 500px;
  text-align: center;
  box-shadow: 0 0 40px rgba(245, 158, 11, 0.2);
}

.disclaimer-card h2 {
  color: var(--warning);
  margin-bottom: 15px;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.disclaimer-card p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 25px;
}

.disclaimer-btn {
  background: var(--warning);
  color: #000;
  border: none;
  padding: 14px 35px;
  font-size: 16px;
  font-weight: 800;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

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

.particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0, transparent 70%);
  pointer-events: none;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { opacity: 0.1; }
  100% { transform: translateY(-80px) scale(0.8); opacity: 0; }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* Homepage Professional Showcase */
.stat-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
  width: 100%;
}

.stat-badge {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  min-width: 0;
  overflow: hidden;
}

.stat-badge .stat-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary-light);
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.stat-badge .stat-lbl {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 28px 0;
  width: 100%;
}

.home-feature-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.home-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.home-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary-light);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.home-feature-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
  word-break: break-word;
}

.home-feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
  text-align: left;
  word-break: break-word;
}

.how-step-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 12px;
  text-align: left;
  min-width: 0;
}

.how-step-num {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.how-step-content {
  flex: 1;
  min-width: 0;
}

.how-step-content h5 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.35;
  word-break: break-word;
}

.how-step-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
  text-align: left;
  word-break: break-word;
}

.home-cta-wrap {
  text-align: center;
  margin-top: 28px;
  width: 100%;
}

.home-cta-btn {
  display: inline-flex;
  width: auto;
  min-width: 220px;
  max-width: 100%;
  text-decoration: none;
  justify-content: center;
  margin: 0 auto;
}

/* ==========================================================================
   HOMEPAGE CARD & GRID RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Tablet & Medium Screen (<= 768px) */
@media (max-width: 768px) {
  .stat-badge-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
  }
  .stat-badge {
    padding: 14px 10px;
  }
  .stat-badge .stat-num {
    font-size: 22px;
  }
}

/* Mobile Devices (<= 600px) */
@media (max-width: 600px) {
  .home-features-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 22px 0;
  }
  .home-feature-card {
    padding: 18px 16px;
    border-radius: 16px;
  }
  .home-feature-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin-bottom: 10px;
  }
  .how-step-box {
    padding: 14px 12px;
    gap: 12px;
    border-radius: 14px;
  }
  .how-step-num {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .how-step-content h5 {
    font-size: 14px;
  }
  .how-step-content p {
    font-size: 12.5px;
  }
  .home-cta-btn {
    width: 100%;
    max-width: 320px;
  }
}

/* Small Mobile Devices (<= 420px) */
@media (max-width: 420px) {
  .container {
    padding: 16px 10px 30px;
  }
  .card {
    padding: 20px 14px;
    border-radius: 18px;
  }
  .card h2 {
    font-size: 18px;
  }
  .card p {
    font-size: 13px;
    margin-bottom: 18px;
  }
  .stat-badge-grid {
    gap: 8px;
  }
  .stat-badge {
    padding: 12px 6px;
    border-radius: 12px;
  }
  .stat-badge .stat-num {
    font-size: 19px;
  }
  .stat-badge .stat-lbl {
    font-size: 10px;
    letter-spacing: 0.3px;
  }
  .home-feature-card {
    padding: 15px 12px;
  }
  .home-feature-card h4 {
    font-size: 15px;
  }
  .home-feature-card p {
    font-size: 12px;
  }
  .how-step-box {
    padding: 12px 10px;
    gap: 10px;
  }
  .translate-helper-hint {
    padding: 10px 12px;
    font-size: 12px;
    margin: 10px 0 18px;
  }
  .ad-container {
    padding: 12px 4px;
    max-width: 100%;
    overflow: hidden;
  }
}

/* Extra Small Mobile Devices (<= 340px) */
@media (max-width: 340px) {
  .container {
    padding: 12px 6px 20px;
  }
  .card {
    padding: 16px 10px;
  }
  .stat-badge-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .stat-badge .stat-num {
    font-size: 20px;
  }
}