@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&family=Outfit:wght@100..900&display=swap');

:root {
  --bg-primary: #08060c;
  --bg-secondary: #120e1a;
  --color-pink: #ff4b72;
  --color-pink-glow: rgba(255, 75, 114, 0.35);
  --color-violet: #8e44ad;
  --color-violet-glow: rgba(142, 68, 173, 0.35);
  --color-cyan: #00f2fe;
  --color-cyan-glow: rgba(0, 242, 254, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #c2b5d4;
  --text-muted: #7d6b94;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  --font-title: 'Fredoka', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Background Gradients */
.bg-glow-1 {
  position: fixed;
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--color-pink-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
  animation: pulse-glow-1 12s infinite alternate;
}

.bg-glow-2 {
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--color-cyan-glow) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
  animation: pulse-glow-2 15s infinite alternate;
}

@keyframes pulse-glow-1 {
  0% { transform: scale(1) translate(0, 0); opacity: 0.7; }
  100% { transform: scale(1.2) translate(10%, 10%); opacity: 0.9; }
}

@keyframes pulse-glow-2 {
  0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
  100% { transform: scale(1.1) translate(-10%, -5%); opacity: 0.8; }
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 900px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  margin-bottom: 3.5rem;
  animation: fadeIn 1.2s ease-out;
}

.hero-logo {
  font-size: 3rem;
  font-family: var(--font-title);
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-pink), var(--color-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  font-weight: 300;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Glassmorphic Tabs Menu */
.tabs-nav {
  display: flex;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 0.4rem;
  border-radius: 30px;
  margin-bottom: 2.5rem;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(15px);
  position: relative;
  z-index: 2;
  gap: 0.25rem;
  width: 100%;
  max-width: 720px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-size: 0.95rem;
  padding: 0.8rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 500;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--color-pink), var(--color-pink-glow));
  color: var(--text-primary);
  box-shadow: 0 4px 15px var(--color-pink-glow);
}

/* Tab Panels */
.tab-content {
  width: 100%;
  position: relative;
}

.tab-panel {
  display: none;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-panel.active {
  display: block;
}

/* Glass Card Component */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(15px);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

/* Card Header */
.card-header {
  margin-bottom: 2rem;
  text-align: center;
}

.card-header h2 {
  font-family: var(--font-title);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.card-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 300;
}

/* Tab 1: Memory Game Styles */
.game-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-family: var(--font-title);
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding: 0 0.5rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.memory-card {
  aspect-ratio: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), border var(--transition-smooth);
}

.memory-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.memory-card.flipped {
  transform: rotateY(180deg);
}

.memory-card.matched {
  animation: matchPulse 0.5s ease-out forwards;
  pointer-events: none;
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  text-align: center;
}

.card-front {
  background: linear-gradient(135deg, rgba(255, 75, 114, 0.1), rgba(142, 68, 173, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-front i {
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--color-pink), var(--color-violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: floatIcon 3s infinite ease-in-out;
}

.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform: rotateY(180deg);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-back.type-a {
  border-color: rgba(255, 75, 114, 0.4);
  box-shadow: inset 0 0 10px rgba(255, 75, 114, 0.1);
}

.card-back.type-b {
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.1);
}

/* Reset Button */
.btn-reset {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--color-violet), var(--color-pink));
  color: var(--text-primary);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(142, 68, 173, 0.3);
  transition: var(--transition-smooth);
}

.btn-reset:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(142, 68, 173, 0.5);
  filter: brightness(1.1);
}

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

/* Success Pop-up inside Card */
.game-success-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 6, 12, 0.95);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(10px);
}

.game-success-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  font-size: 4rem;
  color: var(--color-cyan);
  margin-bottom: 1.5rem;
  animation: bounceSuccess 1s infinite alternate;
}

.success-title {
  font-family: var(--font-title);
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.success-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 2rem;
}

/* Tab 2: Translator Styles */
.translator-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.term-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}

.term-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 1rem;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.term-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.term-btn.active {
  background: rgba(0, 242, 254, 0.06);
  border-color: var(--color-cyan);
  color: var(--text-primary);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
}

.term-btn i {
  font-size: 1rem;
  opacity: 0.5;
  transition: var(--transition-smooth);
}

.term-btn.active i {
  color: var(--color-cyan);
  opacity: 1;
  transform: rotate(45deg);
}

.translation-box {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.translation-placeholder {
  color: var(--text-muted);
  text-align: center;
  font-size: 0.95rem;
}

.translation-result {
  animation: fadeIn 0.4s ease-out;
}

.tr-label {
  font-family: var(--font-title);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-pink);
  margin-bottom: 0.5rem;
  display: block;
}

.tr-original {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tr-arrow {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tr-translated {
  font-size: 1.25rem;
  font-family: var(--font-title);
  color: var(--color-cyan);
  line-height: 1.5;
  font-weight: 500;
  position: relative;
}

.tr-bubble {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 2rem;
  opacity: 0.15;
}

/* Tab 3: Emoji Room Styles */
.emoji-selector-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  margin-top: 1rem;
}

.emoji-trigger {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  font-size: 3rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glass-shadow);
}

.emoji-trigger:hover {
  transform: scale(1.15) rotate(8deg);
  border-color: rgba(255, 75, 114, 0.3);
  background: rgba(255, 75, 114, 0.05);
  box-shadow: 0 0 25px rgba(255, 75, 114, 0.15);
}

.emoji-trigger:nth-child(2):hover {
  border-color: rgba(0, 242, 254, 0.3);
  background: rgba(0, 242, 254, 0.05);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.15);
}

.emoji-trigger:active {
  transform: scale(0.95);
}

.emoji-tip {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Floating chats container */
#chat-rain-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100;
  overflow: hidden;
}

.floating-chat-bubble {
  position: absolute;
  background: rgba(18, 14, 26, 0.9);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  padding: 0.8rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  max-width: 250px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  animation: floatUpRain 6s linear forwards;
  opacity: 0;
  z-index: 99;
}

.floating-chat-bubble.s-message {
  border-left: 3px solid var(--color-pink);
  border-bottom-left-radius: 4px;
}

.floating-chat-bubble.beyza-message {
  border-right: 3px solid var(--color-cyan);
  border-bottom-right-radius: 4px;
}

.bubble-sender {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  display: block;
}

.s-message .bubble-sender {
  color: var(--color-pink);
}

.beyza-message .bubble-sender {
  color: var(--color-cyan);
}

@keyframes floatUpRain {
  0% {
    transform: translateY(110vh) scale(0.85) rotate(-3deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-20vh) scale(1.05) rotate(3deg);
    opacity: 0;
  }
}

/* Call to Action panel at the bottom */
.cta-panel {
  margin-top: 3.5rem;
  width: 100%;
}

.btn-action {
  width: 100%;
  padding: 1.2rem;
  font-size: 1.1rem;
  font-family: var(--font-title);
  background: linear-gradient(135deg, var(--color-pink), var(--color-cyan));
  color: var(--bg-primary);
  font-weight: 700;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  box-shadow: 0 8px 30px rgba(0, 242, 254, 0.2);
  transition: var(--transition-smooth);
}

.btn-action:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 242, 254, 0.4);
  filter: brightness(1.1);
}

.btn-action i {
  transition: transform 0.3s ease;
}

.btn-action:hover i {
  transform: translateX(4px);
}

/* Audio & Music Controls */
.audio-controls-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  gap: 0.8rem;
}

.audio-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--glass-shadow);
  transition: var(--transition-smooth);
}

.audio-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
  transform: scale(1.1);
}

#music-toggle.playing i {
  animation: spinVinyl 2s linear infinite;
  color: var(--color-cyan);
  text-shadow: 0 0 8px var(--color-cyan-glow);
}

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


/* Toast Message */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 14, 26, 0.95);
  border: 1px solid var(--color-cyan);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
  color: var(--text-primary);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 0.95rem;
  font-family: var(--font-title);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  opacity: 0;
  z-index: 200;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer styling */
footer {
  margin-top: 4rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* CSS Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes matchPulse {
  0% {
    transform: scale(1) rotateY(180deg);
  }
  50% {
    transform: scale(1.08) rotateY(180deg);
    border-color: var(--color-cyan);
    box-shadow: 0 0 20px var(--color-cyan-glow);
  }
  100% {
    transform: scale(1) rotateY(180deg);
    border-color: var(--color-cyan);
    box-shadow: 0 0 10px var(--color-cyan-glow);
  }
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.05); }
}

@keyframes bounceSuccess {
  0% { transform: translateY(0); }
  100% { transform: translateY(-10px); }
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .app-container {
    padding: 1.2rem 0.8rem;
  }
  
  .hero-logo {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }
  
  .tabs-nav {
    border-radius: 20px;
    padding: 0.4rem;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    margin-bottom: 2rem;
  }
  
  .tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.2rem;
    font-size: 0.72rem;
    border-radius: 12px;
    gap: 0.25rem;
    text-align: center;
    line-height: 1.25;
  }
  
  .tab-btn i {
    font-size: 1.05rem;
  }
  
  .glass-card {
    padding: 1.2rem 0.8rem;
    border-radius: 20px;
  }
  
  .card-header h2 {
    font-size: 1.4rem;
  }
  
  .card-header p {
    font-size: 0.85rem;
  }

  .game-stats {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }
  
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .card-front i {
    font-size: 1.4rem;
  }

  .card-back {
    font-size: 0.72rem;
    padding: 0.25rem;
    line-height: 1.25;
  }
  
  .term-selector {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .term-btn {
    padding: 0.8rem;
    font-size: 0.85rem;
  }
  
  .emoji-selector-grid {
    gap: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .emoji-trigger {
    width: 70px;
    height: 70px;
    font-size: 2.2rem;
  }
  
  .tr-translated {
    font-size: 1.05rem;
  }

  .floating-chat-bubble {
    max-width: 180px;
    font-size: 0.8rem;
    padding: 0.6rem 0.9rem;
  }

  .audio-controls-container {
    bottom: 1rem;
    right: 1rem;
    gap: 0.6rem;
  }
  
  .audio-btn {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   TAB 4: VALORANT ROOM STYLES
   ========================================================================= */
.valorant-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.v-subcard {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.v-subcard h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.subcard-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

/* Crosshair Preview Styling */
.crosshair-preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #060a0f;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  height: 180px;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Simulated grid background for crosshair box */
.crosshair-preview-container::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 15px 15px;
  background-position: center;
}

.crosshair-preview-box {
  width: 120px;
  height: 120px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ch-line {
  position: absolute;
  background-color: var(--color-cyan);
  border-radius: 1px;
  transition: width 0.15s ease, height 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 0 4px rgba(0, 242, 254, 0.6);
}

.ch-top {
  width: 2px;
  height: 10px;
  bottom: calc(50% + 4px); /* 50% + gap */
  left: calc(50% - 1px);
  transform-origin: bottom center;
}

.ch-bottom {
  width: 2px;
  height: 10px;
  top: calc(50% + 4px); /* 50% + gap */
  left: calc(50% - 1px);
  transform-origin: top center;
}

.ch-left {
  width: 10px;
  height: 2px;
  right: calc(50% + 4px); /* 50% + gap */
  top: calc(50% - 1px);
  transform-origin: center right;
}

.ch-right {
  width: 10px;
  height: 2px;
  left: calc(50% + 4px); /* 50% + gap */
  top: calc(50% - 1px);
  transform-origin: center left;
}

.ch-heart {
  position: absolute;
  font-size: 1.5rem;
  color: var(--color-pink);
  text-shadow: 0 0 10px var(--color-pink-glow);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

.ch-heart.active {
  opacity: 1;
  transform: scale(1.3);
  animation: pulseHeart 1.2s infinite alternate ease-in-out;
}

@keyframes pulseHeart {
  0% { transform: scale(1.2); filter: drop-shadow(0 0 3px var(--color-pink)); }
  100% { transform: scale(1.4); filter: drop-shadow(0 0 12px var(--color-pink)); }
}

.crosshair-controls {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.control-row input[type="range"] {
  width: 60%;
  accent-color: var(--color-cyan);
  background: rgba(255,255,255,0.05);
  height: 5px;
  border-radius: 5px;
  outline: none;
}

.crosshair-love-note {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--color-pink);
  text-align: center;
  margin-top: 0.8rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.crosshair-love-note.show {
  opacity: 1;
  transform: translateY(0);
}

/* Vanguard Terminal Styling */
.vanguard-terminal {
  display: flex;
  flex-direction: column;
  background: #07090e;
  border: 1px solid rgba(255, 75, 114, 0.15);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.8);
  position: relative;
  min-height: 280px;
}

.terminal-header {
  background: rgba(255, 75, 114, 0.05);
  padding: 0.6rem;
  border-bottom: 1px solid rgba(255, 75, 114, 0.15);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.terminal-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-header .dot.red { background: #ff5f56; }
.terminal-header .dot.yellow { background: #ffbd2e; }
.terminal-header .dot.green { background: #27c93f; }

.terminal-title {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-left: 0.4rem;
}

.terminal-body {
  padding: 0.8rem;
  font-family: monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  height: 100px;
  overflow-y: auto;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.log-entry {
  margin-bottom: 0.2rem;
}

.log-entry.sys { color: #8e9297; }
.log-entry.warn { color: #ffbd2e; }
.log-entry.info { color: var(--color-cyan); }
.log-entry.danger { color: var(--color-pink); font-weight: bold; }

.vanguard-radar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  height: 100px;
  position: relative;
}

.radar-circle {
  width: 70px;
  height: 70px;
  border: 1px solid rgba(255, 75, 114, 0.2);
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.radar-sweep {
  position: absolute;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, rgba(255, 75, 114, 0.15) 0deg, transparent 90deg);
  border-radius: 50%;
  transform-origin: center;
  animation: sweep 2.5s linear infinite;
  display: none; /* active only when scanning */
}

.radar-ping {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--color-pink);
  border-radius: 50%;
  top: 30%;
  left: 65%;
  box-shadow: 0 0 8px var(--color-pink);
  display: none;
}

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

.btn-report {
  background: rgba(255, 75, 114, 0.08);
  border: 1px solid rgba(255, 75, 114, 0.3);
  color: var(--color-pink);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem;
  margin: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-report:hover {
  background: var(--color-pink);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 75, 114, 0.4);
  transform: translateY(-1px);
}

/* Vanguard Success Overlay/Banner */
.vanguard-success-banner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 9, 15, 0.96);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  border: 1px solid var(--color-pink);
  box-shadow: inset 0 0 30px rgba(255, 75, 114, 0.2);
}

.vanguard-success-banner.show {
  opacity: 1;
  pointer-events: auto;
}

.v-success-icon {
  font-size: 3rem;
  color: var(--color-pink);
  margin-bottom: 0.8rem;
  animation: pulseBan 1s infinite alternate;
}

@keyframes pulseBan {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--color-pink)); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 10px var(--color-pink)); }
}

.vanguard-success-banner h4 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  color: var(--color-pink);
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.vanguard-success-banner p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  max-width: 320px;
}

/* ==========================================================================
   TAB 5: B12 DIARY (POLAROID CARDS)
   ========================================================================== */
.diary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
}

.polaroid-wrapper {
  perspective: 1000px;
  aspect-ratio: 3/4;
}

.polaroid-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.polaroid-wrapper:not(.locked) .polaroid-card:hover {
  transform: translateY(-8px) rotate(2deg);
}

.polaroid-wrapper.flipped .polaroid-card {
  transform: rotateY(180deg);
}

.polaroid-front, .polaroid-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 12px;
  background: #fbf8f3;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0,0,0,0.05);
}

.polaroid-front {
  justify-content: space-between;
}

.polaroid-image {
  flex-grow: 1;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

.polaroid-image i {
  font-size: 2.5rem;
}

.img-1 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); color: #fff; }
.img-2 { background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%); color: #fff; }
.img-3 { background: linear-gradient(135deg, #cfd9df 0%, #e2ebf0 100%); color: #8e9297; }

.polaroid-caption {
  font-family: var(--font-title);
  color: #4a3e56;
  font-size: 0.95rem;
  text-align: center;
  font-weight: 600;
  padding: 0.5rem 0 0.2rem 0;
  border-top: 1px dashed rgba(0,0,0,0.1);
  letter-spacing: 0.5px;
}

.polaroid-back {
  transform: rotateY(180deg);
  background: #fdfbf7;
  color: #3b3045;
  justify-content: space-between;
  padding: 1.2rem 1rem;
}

.polaroid-back h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: #ff4b72;
  border-bottom: 1.5px solid rgba(255, 75, 114, 0.15);
  padding-bottom: 0.4rem;
  margin-bottom: 0.6rem;
  text-align: center;
}

.polaroid-chat {
  font-size: 0.78rem;
  line-height: 1.4;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 0.2rem;
  color: #4f425b;
}

.polaroid-chat p {
  margin: 0;
  border-bottom: 1px dashed rgba(0,0,0,0.03);
  padding-bottom: 0.2rem;
}

.polaroid-chat strong {
  color: #ff4b72;
}

.polaroid-chat p:nth-child(even) strong {
  color: #00b4d8;
}

.polaroid-footer-note {
  font-size: 0.72rem;
  font-style: italic;
  text-align: center;
  color: #7d6e8a;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 0.4rem;
  margin-top: 0.4rem;
}

/* Locked Polaroid Card Style */
.polaroid-wrapper.locked {
  cursor: not-allowed;
}

.polaroid-wrapper.locked .polaroid-card {
  filter: grayscale(0.8) contrast(0.9);
  opacity: 0.75;
}

.polaroid-locked-text {
  font-size: 0.8rem;
  line-height: 1.5;
  text-align: center;
  color: #7d6e8a;
  margin: auto 0;
  padding: 0 0.5rem;
}

/* Mobile Media Queries updates for new tabs */
@media (max-width: 768px) {
  .valorant-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .diary-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   TAB 6: AGENT ROOM (PROFILE DETECTIVE) STYLES
   ========================================================================= */
.agent-container {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-top: 1rem;
}

.agent-step-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.agent-step-card h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  position: relative;
  z-index: 1;
}

.step-num {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  font-family: var(--font-title);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.02);
  user-select: none;
  pointer-events: none;
  line-height: 1;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  max-width: 80%;
  position: relative;
  z-index: 1;
}

/* Color Options Grid */
.color-options-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
}

.color-opt-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--text-secondary);
  text-align: center;
  gap: 0.6rem;
}

.color-opt-btn:hover {
  border-color: var(--opt-color);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 15px var(--opt-glow);
  transform: translateY(-2px);
  color: var(--text-primary);
}

.color-opt-btn.active {
  border-color: var(--opt-color) !important;
  background: var(--opt-glow) !important;
  color: var(--text-primary);
  box-shadow: 0 0 22px var(--opt-glow);
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--opt-color);
  box-shadow: 0 0 10px var(--opt-color);
  transition: transform 0.3s ease;
}

.color-opt-btn:hover .color-dot {
  transform: scale(1.2);
}

.color-name {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-title);
  line-height: 1.25;
}

.step-feedback {
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--color-cyan);
  min-height: 22px;
  font-style: italic;
  text-align: center;
  font-weight: 500;
  transition: var(--transition-smooth);
}

/* Number Picker Styling */
.number-picker-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin: 0.5rem 0;
}

.number-display {
  font-size: 3.2rem;
  font-weight: 700;
  font-family: var(--font-title);
  color: var(--color-cyan);
  text-shadow: 0 0 15px var(--color-cyan-glow);
  line-height: 1;
}

.number-picker-container input[type="range"] {
  width: 90%;
  max-width: 450px;
  accent-color: var(--color-cyan);
  background: rgba(255, 255, 255, 0.05);
  height: 6px;
  border-radius: 5px;
  outline: none;
}

/* Valorant Questions styling */
.v-questions-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.v-question-block h4 {
  font-size: 0.95rem;
  font-family: var(--font-title);
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-left: 3px solid var(--color-pink);
  padding-left: 0.6rem;
}

.v-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.6rem;
}

.v-opt-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.8rem 0.5rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.v-opt-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.v-opt-btn.active {
  background: rgba(255, 75, 114, 0.08) !important;
  border-color: var(--color-pink) !important;
  color: var(--text-primary);
  box-shadow: 0 0 15px var(--color-pink-glow);
}

/* This or That Styling */
.this-that-container {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin: 0.5rem 0;
}

.this-that-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
}

.tt-btn {
  flex: 1;
  max-width: 190px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-title);
  font-size: 1rem;
  padding: 1rem;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: var(--glass-shadow);
}

.tt-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.tt-btn.active {
  background: rgba(0, 242, 254, 0.06) !important;
  border-color: var(--color-cyan) !important;
  color: var(--text-primary);
  box-shadow: 0 0 18px rgba(0, 242, 254, 0.15);
}

.tt-vs {
  font-family: var(--font-title);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
  opacity: 0.5;
  user-select: none;
}

/* Submit Block */
.agent-submit-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--glass-border);
}

.btn-decrypt-agent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 330px;
  padding: 1.2rem;
  border-radius: 18px;
  border: none;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: linear-gradient(135deg, var(--color-pink), var(--color-violet));
  color: #fff;
  box-shadow: 0 5px 20px rgba(255, 75, 114, 0.35);
}

.btn-decrypt-agent:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 75, 114, 0.55);
}

.btn-decrypt-agent:disabled {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

.submit-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ==========================================================================
   AGENT ID CARD STYLES & SCAN ANIMATIONS
   ========================================================================= */
.agent-id-card-wrapper {
  position: relative;
  margin-top: 2.5rem;
  display: none; /* revealed via script */
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.agent-id-card-wrapper.show {
  display: flex;
}

.agent-id-card {
  background: linear-gradient(135deg, #09070f 0%, #150f22 100%);
  border: 2px solid var(--color-pink);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(255, 75, 114, 0.25), inset 0 0 20px rgba(255, 75, 114, 0.05);
  width: 100%;
  max-width: 440px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.scan-laser {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--color-pink);
  box-shadow: 0 0 12px var(--color-pink);
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

.agent-id-card-wrapper.scanning .scan-laser {
  opacity: 0.9;
  animation: scanAnim 2.5s infinite linear;
}

.id-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px dashed rgba(255, 75, 114, 0.25);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
}

.id-badge {
  font-family: monospace;
  font-size: 0.7rem;
  background: var(--color-pink);
  color: #fff;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-weight: bold;
  letter-spacing: 1px;
}

.id-title {
  font-family: var(--font-title);
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 1px;
  font-weight: 600;
}

.id-card-body {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.id-photo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
}

.id-avatar-placeholder {
  width: 90px;
  height: 100px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 75, 114, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: var(--color-pink);
  margin-bottom: 0.6rem;
  position: relative;
  box-shadow: inset 0 0 12px rgba(255, 75, 114, 0.1);
  overflow: hidden;
}

/* Glow sweep on avatar placeholder */
.id-avatar-placeholder::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,75,114,0.15), transparent);
  transform: skewX(-25deg);
  animation: shineSweep 4s infinite linear;
}

.id-agent-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1;
}

.id-status {
  font-size: 0.68rem;
  color: var(--color-cyan);
  font-weight: bold;
  margin-top: 0.2rem;
  letter-spacing: 0.5px;
}

.id-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.detail-row {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.3rem;
}

.detail-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.detail-value {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.id-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 1.4rem;
  padding-top: 0.8rem;
}

.barcode {
  width: 120px;
  height: 25px;
  background: linear-gradient(90deg, 
    #fff 0px, #fff 2px, 
    transparent 2px, transparent 4px, 
    #fff 4px, #fff 5px, 
    transparent 5px, transparent 8px, 
    #fff 8px, #fff 11px, 
    transparent 11px, transparent 13px, 
    #fff 13px, #fff 14px, 
    transparent 14px, transparent 18px, 
    #fff 18px, #fff 22px, 
    transparent 22px, transparent 24px, 
    #fff 24px, #fff 25px
  );
  background-size: 20px 100%;
  opacity: 0.5;
}

.id-security-hash {
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.discord-sent-toast {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid #5865f2;
  color: #8c97ff;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 600;
  width: 100%;
  max-width: 440px;
  animation: pulseDiscord 2s infinite alternate;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.15);
}

/* Animations */
@keyframes scanAnim {
  0% { transform: translateY(0); }
  50% { transform: translateY(220px); }
  100% { transform: translateY(0); }
}

@keyframes shineSweep {
  0% { left: -100%; }
  25% { left: 150%; }
  100% { left: 150%; }
}

@keyframes pulseDiscord {
  0% { box-shadow: 0 0 5px rgba(88, 101, 242, 0.1); border-color: rgba(88, 101, 242, 0.7); }
  100% { box-shadow: 0 0 18px rgba(88, 101, 242, 0.3); border-color: #5865f2; }
}

/* ==========================================================================
   AGENT ROOM RESPONSIVE UPDATES
   ========================================================================= */
@media (max-width: 600px) {
  .color-options-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .color-opt-btn {
    padding: 0.8rem 0.4rem;
    gap: 0.4rem;
  }
  .color-name {
    font-size: 0.7rem;
  }
  .v-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tt-btn {
    padding: 0.8rem;
    font-size: 0.9rem;
  }
  .agent-step-card {
    padding: 1.2rem;
    border-radius: 16px;
  }
  .agent-id-card {
    padding: 1.2rem;
  }
  .id-card-body {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  .id-photo-area {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  .id-details {
    width: 100%;
  }
}

/* ==========================================================================
   B12 DUAL GRID & LUCKY WHEEL STYLES
   ========================================================================= */
.b12-dual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  align-items: start;
  width: 100%;
}

.wheel-outer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  margin: 1.2rem 0;
}

.wheel-arrow {
  font-size: 2.2rem;
  color: var(--color-pink);
  line-height: 1;
  z-index: 10;
  margin-bottom: -10px;
  filter: drop-shadow(0 0 5px var(--color-pink-glow));
  animation: bounceArrow 0.8s infinite alternate ease-in-out;
}

@keyframes bounceArrow {
  0% { transform: translateY(0); }
  100% { transform: translateY(5px); }
}

.wheel-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(0,0,0,0.6), 0 0 0 4px var(--glass-border);
  overflow: hidden;
}

#wheel-canvas {
  border-radius: 50%;
  transform: rotate(0deg);
  transition: transform 4s cubic-bezier(0.1, 0.8, 0.25, 1);
  display: block;
}

.btn-spin {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #110e1b;
  border: 3px solid var(--color-cyan);
  color: var(--color-cyan);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 0 15px var(--color-cyan-glow), inset 0 0 8px rgba(0,242,254,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.btn-spin:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 0 22px var(--color-cyan);
  border-color: #fff;
  color: #fff;
}

.btn-spin:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.wheel-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed var(--glass-border);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.9rem;
  font-family: var(--font-title);
  color: var(--text-secondary);
  min-height: 56px;
  text-align: center;
  line-height: 1.4;
}

.wheel-result i {
  color: var(--color-cyan);
  font-size: 1.2rem;
}

/* ==========================================================================
   VALORANT LOBY PING MONITOR STYLES
   ========================================================================= */
.ping-monitor-box {
  background: #05080c;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.2rem;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
}

.ping-chart-container {
  height: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: flex-end;
  padding-bottom: 0.3rem;
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.ping-graph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 2px;
}

.p-bar {
  flex: 1;
  background: linear-gradient(to top, var(--color-cyan-glow), var(--color-cyan));
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  opacity: 0.6;
  transition: height 0.4s ease, background 0.4s ease;
  height: 30%;
}

.p-bar.zero {
  background: linear-gradient(to top, var(--color-pink-glow), var(--color-pink)) !important;
  opacity: 0.9;
  height: 5% !important;
}

.ping-stats-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.p-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: rgba(255,255,255,0.01);
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.02);
}

.p-stat-lbl {
  font-size: 0.62rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.p-stat-val {
  font-family: var(--font-title);
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 600;
}

.btn-lobby-connect {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--color-cyan);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.btn-lobby-connect:hover {
  background: var(--color-cyan);
  color: #000;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.ping-success-msg {
  font-size: 0.85rem;
  color: var(--color-pink);
  text-align: center;
  margin-top: 0.8rem;
  font-style: italic;
  line-height: 1.4;
  display: none;
  animation: fadeIn 0.4s ease;
}

.ping-success-msg.show {
  display: block;
}

.text-glow-cyan {
  color: var(--color-cyan) !important;
  text-shadow: 0 0 5px var(--color-cyan-glow);
}

/* ==========================================================================
   SIBER TERMINAL MESAJ BOX STYLES
   ========================================================================= */
.agent-msg-box {
  margin-top: 1.5rem;
  border-top: 1px dashed rgba(255, 75, 114, 0.2);
  padding-top: 1.5rem;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-align: left;
}

.agent-msg-box h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--color-pink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agent-msg-box p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.terminal-input-wrapper {
  display: flex;
  background: #050308;
  border: 1px solid rgba(255, 75, 114, 0.25);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  gap: 0.6rem;
  align-items: flex-start;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}

.terminal-prompt {
  font-family: monospace;
  font-size: 1rem;
  color: var(--color-pink);
  font-weight: bold;
  user-select: none;
  margin-top: 2px;
}

#agent-msg-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #4ade80;
  font-family: monospace;
  font-size: 0.88rem;
  height: 60px;
  resize: none;
  outline: none;
}

#agent-msg-input::placeholder {
  color: rgba(74, 222, 128, 0.3);
}

.btn-send-msg {
  background: rgba(255, 75, 114, 0.08);
  border: 1px solid rgba(255, 75, 114, 0.3);
  color: var(--color-pink);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.btn-send-msg:hover:not(:disabled) {
  background: var(--color-pink);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 75, 114, 0.4);
}

.btn-send-msg:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.msg-status-log {
  font-family: monospace;
  font-size: 0.72rem;
  color: #4ade80;
  min-height: 16px;
  line-height: 1.4;
}

/* Responsive updates */
@media (max-width: 768px) {
  .b12-dual-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}




