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

/* =============================================
   ROOT VARIABLES
============================================= */
:root {
  --bg-deep:       #07071a;
  --bg-mid:        #0f0e2e;
  --card-bg:       rgba(30, 28, 80, 0.7);
  --header-bg:     linear-gradient(135deg, #1a1960 0%, #2e2b8e 50%, #1a1960 100%);
  --accent:        #fbd700;
  --accent-glow:   rgba(251, 215, 0, 0.35);
  --accent2:       #a78bfa;
  --text-primary:  #f0f0ff;
  --text-muted:    #a0a0c0;
  --border-subtle: rgba(255,255,255,0.08);
  --border-accent: rgba(251, 215, 0, 0.4);
  --glass:         rgba(255,255,255,0.05);
  --glass-border:  rgba(255,255,255,0.12);
  --shadow-card:   0 8px 32px rgba(0,0,0,0.5);
  --radius-lg:     16px;
  --radius-md:     12px;
  --radius-pill:   50px;
}

/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(99,71,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(251,215,0,0.08) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none !important; }

p {
  word-spacing: 1px;
  line-height: 1.7;
  letter-spacing: 0.3px;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* =============================================
   SCROLLBAR
============================================= */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #3d3b9e; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* =============================================
   CONTAINER
============================================= */
.container {
  background: linear-gradient(180deg, #131240 0%, #0f0e2e 100%);
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(99,71,255,0.2), 0 0 120px rgba(0,0,0,0.6);
  position: relative;
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
}

/* =============================================
   HEADER
============================================= */
.header {
  background: var(--header-bg);
  padding: 18px 15px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-accent);
  box-shadow: 0 4px 20px rgba(0,0,0,0.4), 0 0 30px var(--accent-glow);
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(251,215,0,0.06), transparent);
  animation: shimmer 3s infinite;
}

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

.header h1 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-shadow: 0 0 20px var(--accent-glow), 0 2px 4px rgba(0,0,0,0.5);
  position: relative;
}

/* =============================================
   TOPICS / SECTIONS
============================================= */
.topics {
  padding: 12px 12px 0 12px;
}

.topics h2 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: center;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.topics1 {
  padding: 8px 12px 8px 12px;
}

.topics1 h2 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-align: center;
  color: var(--text-primary);
}

.topics1 h3 {
  font-size: 0.8rem;
  margin-bottom: 10px;
  color: var(--text-muted);
}

/* =============================================
   NOTICE BOX — Glassmorphism
============================================= */
.notice-box {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
  padding: 14px 15px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13.5px;
  margin-bottom: 14px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.notice-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251,215,0,0.4), transparent);
}

.notice-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4), 0 0 12px rgba(251,215,0,0.1);
  border-left-color: #ffe44d;
}

/* =============================================
   UPPER-CASE HEADINGS
============================================= */
.upper-case {
  text-transform: uppercase;
  color: var(--accent) !important;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
}

h3.upper-case {
  font-size: 0.8rem;
  text-align: left;
}

/* =============================================
   TOPIC / SELECTION ITEMS
============================================= */
.topic {
  background: rgba(43, 42, 107, 0.7);
  border: 2px solid rgba(251,215,0,0.25);
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.topic::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent);
  border-radius: inherit;
  pointer-events: none;
}

.topic:hover {
  background: rgba(251,215,0,0.15);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.03);
  box-shadow: 0 0 16px var(--accent-glow);
}

.topic.selected {
  background: var(--accent);
  color: #000;
  font-weight: 700;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* =============================================
   LETTER BOX (Server buttons)
============================================= */
.letter-box {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, #2a2870 0%, #3f3daa 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid rgba(251,215,0,0.2);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  text-align: center;
  padding: 8px;
}

.letter-box:hover {
  background: linear-gradient(135deg, var(--accent) 0%, #ffaa00 100%);
  color: #000;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 25px var(--accent-glow), 0 0 0 3px rgba(251,215,0,0.2);
  border-color: var(--accent);
}

.topic-image.selected .letter-box {
  background: linear-gradient(135deg, var(--accent) 0%, #ffaa00 100%);
  color: #000;
  box-shadow: 0 6px 20px var(--accent-glow);
  border-color: var(--accent);
}

@media (max-width: 500px) {
  .letter-box {
    width: 85px !important;
    height: 85px !important;
    font-size: 11px !important;
  }
}

/* =============================================
   CONTINUE / ACTION BUTTONS
============================================= */
.continue-btn, .action-btn.continue-btn {
  background: linear-gradient(135deg, var(--accent) 0%, #ffaa00 100%);
  color: #000;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  animation: pulseBounce 1.8s ease-in-out infinite;
  box-shadow: 0 0 25px var(--accent-glow), 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
  letter-spacing: 0.5px;
}

.continue-btn:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 0 40px var(--accent-glow), 0 6px 20px rgba(0,0,0,0.4);
}

@keyframes pulseBounce {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px var(--accent-glow); }
  50%       { transform: scale(1.06); box-shadow: 0 0 35px var(--accent-glow); }
}

/* =============================================
   SUBMIT BUTTON
============================================= */
.submit-btn {
  width: 100%;
  padding: 13px;
  background: rgba(60, 59, 139, 0.6);
  color: #888;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: not-allowed;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.submit-btn.active {
  background: linear-gradient(135deg, var(--accent) 0%, #ffaa00 100%);
  color: #000;
  cursor: pointer;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* =============================================
   GENDER SELECT
============================================= */
.gender-select {
  padding: 12px 20px;
  border: 2px solid rgba(70,69,183,0.5);
  margin: 10px;
  border-radius: var(--radius-pill);
  text-align: center;
  background: linear-gradient(135deg, #2e2d80 0%, #3f3eab 100%);
  font-size: 22px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.gender-select:hover {
  background: linear-gradient(135deg, #3d3bab 0%, #5553cc 100%);
  border-color: rgba(251,215,0,0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.gender-select.selected {
  background: linear-gradient(135deg, var(--accent) 0%, #ffaa00 100%);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* =============================================
   MODEL IMAGES
============================================= */
.model {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 16px var(--accent-glow);
}

.model:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.model img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 600px) {
  .model { width: 88px; height: 88px; }
}

/* =============================================
   BLINK ANIMATION
============================================= */
.blink {
  animation: blinkText 1.2s ease-in-out infinite;
  color: #ff4d4d;
  font-weight: 700;
}

@keyframes blinkText {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* =============================================
   FOOTER BAR
============================================= */
.footer-bar {
  background: linear-gradient(180deg, #1a1960 0%, #131250 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 0;
  z-index: 1000;
  border-top: 1px solid var(--border-accent);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.footer-icon {
  color: var(--text-muted);
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s, transform 0.3s;
}

.footer-icon.active { color: #7c79ff; }

.footer-icon:hover {
  color: var(--accent);
  transform: translateY(-2px);
}

/* =============================================
   AD WRAP — Natural in-content
============================================= */
.gpt-ad-wrap {
  width: 100%;
  text-align: center;
  margin: 16px 0;
  overflow: hidden;
  background: transparent;
  position: relative;
}

.gpt-ad-wrap::before {
  content: 'Advertisement';
  display: block;
  font-size: 10px;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 5px;
  font-family: 'Inter', sans-serif;
}

/* =============================================
   POPUP OVERLAY (robot.html)
============================================= */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  height: 100vh; width: 100vw;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-box {
  background: linear-gradient(135deg, #1e1d5c 0%, #2a2870 100%);
  border: 1px solid var(--border-accent);
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  max-width: 340px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 40px rgba(251,215,0,0.1);
}

.popup-box h3 {
  margin: 0;
  font-size: 14px;
  color: var(--accent);
  line-height: 1.5;
}

.close-popup {
  position: absolute;
  top: 4px; right: 10px;
  font-size: 26px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.close-popup:hover {
  color: #fff;
  transform: scale(1.2);
}

/* =============================================
   VERIFY BUTTON
============================================= */
.verify-btn {
  padding: 11px 22px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59,130,246,0.4);
}

.verify-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59,130,246,0.5);
}

.verify-btn:disabled {
  background: #555;
  cursor: not-allowed;
  box-shadow: none;
}

/* =============================================
   LOCATION / STRENGTHS LABELS
============================================= */
.location, .strengths {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent2);
  margin: 4px 0;
}

.description {
  margin-top: 8px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   CARD BOX (index video card)
============================================= */
.card-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-accent);
  transition: box-shadow 0.3s ease;
}

.card-box:hover {
  box-shadow: 0 0 20px var(--accent-glow);
}

/* =============================================
   BG WHITE (Bootstrap override)
============================================= */
.bg-white {
  --bs-bg-opacity: 1;
  background: rgba(30, 28, 80, 0.6) !important;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* =============================================
   CHECKBOX ROW
============================================= */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 500;
  margin: 30px 0 10px 0;
  flex-direction: row;
  justify-content: center;
  color: var(--text-primary);
}

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

/* =============================================
   STRT (center layout)
============================================= */
.strt {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

/* =============================================
   TOPIC IMAGE
============================================= */
.topic-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  margin: 5px;
}

.topic-image:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.topic-image.selected {
  box-shadow: 0 0 0 3px var(--accent), 0 8px 20px var(--accent-glow);
  transform: scale(1.05);
}

.topic-image[style*="pointer-events: none"] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* =============================================
   TOPIC GRID
============================================= */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 500px) {
  .topic-grid {
    grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  }
}

/* =============================================
   FADE IN ANIMATION (page load)
============================================= */
.container > * {
  animation: fadeInUp 0.4s ease forwards;
}

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

/* =============================================
   VIDEO BTN
============================================= */
.video-btn {
  animation: pulseBounce 1.8s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--accent), #ffaa00);
  color: #000;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 0 20px var(--accent-glow);
}

.video-btn i { margin-right: 6px; }
