/* ==========================================================================
   FF PROXY PORTAL — DARK GAMING STYLESHEET
   ========================================================================== */

/* CSS RESET & VARIABLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark: #070913;
  --bg-card: rgba(13, 18, 32, 0.85);
  --bg-card-border: rgba(56, 189, 248, 0.15);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-sub: #64748b;
  
  --accent-cyan: #38bdf8;
  --accent-blue: #2563eb;
  --accent-purple: #8b5cf6;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;

  --btn-gradient: linear-gradient(135deg, #00c6ff 0%, #0072ff 45%, #923cb5 100%);
  --btn-glow: rgba(0, 198, 255, 0.5);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    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: 40px 40px;
  background-position: center center;
  color: var(--text-main);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   HEADER NAVIGATION
   -------------------------------------------------------------------------- */
.top-nav {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 10px 20px;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.logo-dots {
  display: flex;
  gap: 4px;
}

.logo-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.logo-dots .yellow { background: #facc15; }
.logo-dots .orange { background: #f97316; }
.logo-dots .cyan   { background: #06b6d4; }

.live-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f87171;
  letter-spacing: 0.5px;
}

.live-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulse-red 1.5s infinite;
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* --------------------------------------------------------------------------
   MARQUEE TICKER
   -------------------------------------------------------------------------- */
.marquee-wrapper {
  background: rgba(239, 68, 68, 0.05);
  border-bottom: 1px solid rgba(239, 68, 68, 0.15);
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.marquee-content {
  display: inline-block;
  animation: marquee 25s linear infinite;
}

.marquee-content span {
  margin: 0 10px;
}

.marquee-content .highlight {
  color: #ef4444;
  font-weight: 700;
}

.marquee-content .sep {
  color: rgba(255, 255, 255, 0.15);
}

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

/* --------------------------------------------------------------------------
   MAIN LAYOUT & GRID
   -------------------------------------------------------------------------- */
.main-layout {
  max-width: 1100px;
  width: 100%;
  margin: 25px auto;
  padding: 0 20px;
  flex: 1;
}

.grid-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.step-indicator {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.step-indicator .dash {
  opacity: 0.4;
  margin: 0 4px;
}

/* --------------------------------------------------------------------------
   LEFT COLUMN: VIDEO PLAYER
   -------------------------------------------------------------------------- */
.video-section {
  display: flex;
  flex-direction: column;
}

.video-player-wrapper {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.1);
  aspect-ratio: 16 / 9;
}

.video-player-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-overlay-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.video-overlay-play.hidden {
  opacity: 0;
  pointer-events: none;
}

.play-btn-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--btn-gradient);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 30px var(--btn-glow);
  transition: transform 0.2s ease;
}

.play-btn-circle:hover {
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   RIGHT COLUMN: ACTION & APP CARD
   -------------------------------------------------------------------------- */
.action-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cta-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 22px 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.cta-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

/* INSTALL BUTTON */
.install-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  background: var(--btn-gradient);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 25px var(--btn-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
  animation: btn-pulse 2s infinite ease-in-out;
}

.install-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 35px rgba(0, 198, 255, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.install-btn:active {
  transform: translateY(1px) scale(0.99);
}

@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 198, 255, 0.4); }
  50% { box-shadow: 0 0 35px rgba(0, 198, 255, 0.8), 0 0 15px rgba(146, 60, 181, 0.6); }
}

/* APP CARD */
.step-02-wrapper {
  margin-top: 5px;
}

.app-info-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.app-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5), 0 0 12px rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badges-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 10px;
  letter-spacing: 0.5px;
}

.badge-trending {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-premium {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.app-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

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

.rating-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 18px;
}

.stars {
  color: #fbbf24;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.rating-score {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat-box {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.stat-lbl {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-sub);
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   SUB TABS & COMMENTS SECTION
   -------------------------------------------------------------------------- */
.comments-container-wrapper {
  margin-top: 35px;
}

.sub-tabs-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.sub-tab {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.sub-tab:hover {
  background: rgba(30, 41, 59, 0.8);
  color: #ffffff;
}

.sub-tab.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
}

.tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-sub);
}

.tab-dot.blue {
  background: var(--accent-cyan);
}

.comments-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.comments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.red-live-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-red);
}

.comments-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.header-right {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.header-right #watchingCount {
  font-weight: 700;
  color: #ffffff;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 6px;
}

/* Custom Scrollbar for comments */
.comments-list::-webkit-scrollbar {
  width: 5px;
}
.comments-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.comments-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.comment-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: fadeIn 0.4s ease;
}

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

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #ffffff;
  flex-shrink: 0;
}

.bg-green   { background: #10b981; }
.bg-amber   { background: #f59e0b; }
.bg-cyan    { background: #06b6d4; }
.bg-emerald { background: #059669; }
.bg-teal    { background: #0d9488; }
.bg-yellow { background: #d97706; }
.bg-purple { background: #8b5cf6; }
.bg-rose   { background: #f43f5e; }

.comment-body {
  flex: 1;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.username {
  font-weight: 700;
  font-size: 0.85rem;
  color: #ffffff;
}

.time {
  font-size: 0.72rem;
  color: var(--text-sub);
}

.comment-text {
  font-size: 0.85rem;
  color: #cbd5e1;
  word-break: break-word;
}

/* COMMENT INPUT */
.comment-input-bar {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.comment-input-bar input {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.comment-input-bar input:focus {
  border-color: var(--accent-cyan);
}

.comment-input-bar button {
  background: var(--accent-cyan);
  color: #090d16;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.comment-input-bar button:hover {
  opacity: 0.9;
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 0.75rem;
  color: var(--text-sub);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  margin-top: 30px;
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   -------------------------------------------------------------------------- */
@media (max-width: 868px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .main-layout {
    margin: 15px auto;
    padding: 0 14px;
  }

  .cta-title {
    font-size: 1.2rem;
  }

  .install-btn {
    font-size: 1rem;
    padding: 14px 18px;
  }
}

@media (max-width: 480px) {
  .brand-logo {
    font-size: 1rem;
  }
  
  .live-counter-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
  }

  .stats-grid {
    gap: 6px;
  }

  .stat-val {
    font-size: 0.85rem;
  }
}
