/* Design Tokens & Theme Variables */
:root {
  --bg: #070709;
  --panel-light: #131217;
  --panel-dark: #0a090c;
  --line: rgba(255, 255, 255, 0.08);
  
  --accent-red: #d9182a;
  --accent-gold: #e59622;
  
  --text: #e1e1e8;
  --text-muted: #8d8c97;
  --text-dark: #c1c1cb;
  
  --shadow-red: rgba(217, 24, 42, 0.22);
  --shadow-gold: rgba(229, 150, 34, 0.15);
  
  --headline: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Alert Bar */
.alert-bar {
  background: var(--accent-red);
  color: #fff;
  padding: 10px 15px;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  width: 100%;
}

.alert-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.pulse-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
  animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255,255,255,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}

/* Navigation Header */
.main-header {
  background: #000;
  border-bottom: 1px solid var(--line);
  padding: 15px 20px;
}

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

.logo {
  font-family: var(--headline);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.logo-accent {
  color: var(--accent-red);
}

.live-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-counter i {
  color: var(--accent-red);
}

/* Content Layout Grid */
.content-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 15px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 900px) {
  .content-container {
    grid-template-columns: 1fr 320px;
  }
}

/* Article Styling */
.article-wrapper {
  background: var(--panel-dark);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.3);
}

@media (min-width: 760px) {
  .article-wrapper {
    padding: 40px;
  }
}

.article-meta-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.category-badge {
  background: rgba(217, 24, 42, 0.12);
  color: var(--accent-red);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.article-title {
  font-family: var(--headline);
  font-weight: 900;
  font-size: clamp(1.45rem, 4.5vw, 2.6rem);
  line-height: 1.2;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: none;
}

.highlight-red {
  color: var(--accent-red);
  font-weight: 900;
}

.article-subtitle {
  color: var(--text-muted);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.45;
  margin: 0 0 24px;
  font-weight: 400;
}

/* Author block */
.author-block {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.24), rgba(20, 20, 20, 0.95));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.badge-trusted {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-gold);
  border: 1px solid rgba(229, 150, 34, 0.28);
  padding: 4px 10px;
  background: rgba(229, 150, 34, 0.05);
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Quota ticker box */
.quota-ticker-box {
  background: rgba(229, 150, 34, 0.06);
  border: 1px dashed var(--accent-gold);
  padding: 14px 18px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Story body */
.article-body {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #c1c1cb;
  margin-bottom: 34px;
}

.article-body p {
  margin: 0 0 20px;
}

.quote-box {
  border-left: 4px solid var(--accent-red);
  background: var(--panel-light);
  padding: 20px;
  margin: 28px 0;
  font-style: italic;
  color: #fff;
  font-size: 1.1rem;
}

.article-image-wrapper {
  margin: 28px 0;
  border: 2px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.article-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Interactive Bypass Widget */
.interactive-section {
  background: var(--panel-light);
  border: 2px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  margin: 34px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}

.widget-title {
  font-family: var(--headline);
  font-weight: 900;
  font-size: 1.35rem;
  margin: 0 0 10px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -0.01em;
}

.widget-instruction {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.option-group {
  margin-bottom: 20px;
}

.option-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.toggle-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 500px) {
  .toggle-group {
    grid-template-columns: 1fr 1fr;
  }
}

.btn-toggle {
  background: #0b0b0e;
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.btn-toggle:hover {
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.btn-toggle.active {
  border-color: var(--accent-red);
  background: rgba(217, 24, 42, 0.05);
  color: #fff;
  box-shadow: 0 0 12px var(--shadow-red);
}

.btn-scan {
  width: 100%;
  background: var(--accent-red);
  border: none;
  color: #fff;
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 900;
  font-family: var(--headline);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--shadow-red);
  transition: all 0.2s ease;
  margin-top: 10px;
  letter-spacing: 0.02em;
}

.btn-scan:hover {
  background: #f02034;
  transform: translateY(-1px);
}

.scanner-progress-box {
  display: none;
  margin-top: 24px;
  background: #0b0b0e;
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 4px;
}

.scanner-status-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scanner-progress-track {
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}

.scanner-progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
  border-radius: 4px;
}

.audio-mute-banner {
  margin-top: 15px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* Incoming Video Call Container */
.incoming-call-box {
  background: var(--panel-light);
  border: 2px solid var(--accent-red);
  border-radius: 6px;
  padding: 16px;
  margin: 34px 0;
  box-shadow: 0 15px 45px var(--shadow-red);
}

.incoming-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.incoming-title {
  font-family: var(--headline);
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--accent-red);
}

.live-flash-badge {
  background: rgba(217, 24, 42, 0.12);
  color: var(--accent-red);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  animation: flash-animation 1s infinite alternate;
}

@keyframes flash-animation {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

.incoming-body {
  display: flex;
  flex-direction: column-reverse; /* Put picture below chat on mobile */
  gap: 16px;
}

@media (min-width: 600px) {
  .incoming-body {
    display: grid;
    grid-template-columns: 180px 1fr;
    flex-direction: row;
  }
}

.video-preview-container {
  width: 140px;
  height: 187px;
  margin: 0 auto;
  aspect-ratio: 3/4;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

@media (min-width: 600px) {
  .video-preview-container {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    max-height: none;
    margin: 0;
  }
}

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

.video-static-overlay {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, Red, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  opacity: 0.4;
}

.incoming-chat-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
}

.model-meta-info h4 {
  font-family: var(--headline);
  font-weight: 900;
  font-size: 1.2rem;
  margin: 0 0 2px;
  color: #fff;
}

.model-meta-info .model-location {
  margin: 0;
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.simulated-chat-box {
  background: #0b0b0e;
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 6px;
  min-height: 80px;
  display: flex;
  align-items: center;
}

.chat-bubble {
  color: #e1e1e8;
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 500;
}

.typing-bubble {
  display: flex;
  align-items: center;
  gap: 4px;
}

.typing-bubble .dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typing-animation 1s infinite alternate;
}

.typing-bubble .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-bubble .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-animation {
  from { opacity: 0.2; transform: translateY(0); }
  to { opacity: 1; transform: translateY(-4px); }
}

/* Glowing CTA elements inside caller container */
.timer-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

.timer-box {
  background: rgba(217, 24, 42, 0.08);
  border: 1px solid rgba(217, 24, 42, 0.25);
  color: var(--accent-red);
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.glow-cta-button {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--accent-red), #e01b2f);
  color: #fff;
  text-decoration: none;
  font-family: var(--headline);
  font-weight: 900;
  font-size: 1.05rem;
  text-align: center;
  padding: 16px 24px;
  border-radius: 4px;
  box-shadow: 0 0 20px var(--shadow-red);
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.glow-cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(217, 24, 42, 0.45);
}

.secure-badges {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Comments Section */
.comments-section {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.comments-section h3 {
  font-family: var(--headline);
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
}

.comment-card {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-family: var(--headline);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.28);
}

.comment-avatar-red {
  background: linear-gradient(135deg, #d9142d 0%, #54000c 100%);
}

.comment-avatar-gold {
  background: linear-gradient(135deg, #d99216 0%, #5c3100 100%);
}

.comment-avatar-steel {
  background: linear-gradient(135deg, #687180 0%, #161b22 100%);
}

.comment-avatar-charcoal {
  background: linear-gradient(135deg, #2a2d35 0%, #050608 100%);
}

.comment-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-author-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-author-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

.comment-location {
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.comment-text {
  font-size: 0.92rem;
  color: #c1c1cb;
  line-height: 1.5;
}

.comment-actions {
  display: flex;
  gap: 10px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 600;
}

.like-btn, .reply-btn {
  cursor: pointer;
}

.like-btn:hover, .reply-btn:hover {
  color: #fff;
}

/* Sidebar Styling */
.sidebar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar-widget {
  background: var(--panel-dark);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.sidebar-widget h4 {
  font-family: var(--headline);
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 18px;
  border-left: 3px solid var(--accent-red);
  padding-left: 10px;
}

.trending-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 0.88rem;
  line-height: 1.4;
}

.trending-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.trend-num {
  font-family: var(--headline);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--accent-red);
  line-height: 1;
}

.trending-item p {
  margin: 0;
  color: #c1c1cb;
}

.status-widget .status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-dot.green {
  background: #00ff00;
  box-shadow: 0 0 8px #00ff00;
}

.status-widget p {
  margin: 0;
  font-size: 0.88rem;
}

.status-desc {
  color: var(--text-muted);
  margin-top: 8px;
}

/* Global Footer */
.global-footer {
  background: #000;
  border-top: 1px solid var(--line);
  padding: 30px 20px;
  margin-top: 40px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.global-footer p {
  margin: 0 auto 10px;
  max-width: 600px;
}

/* Mobile Viewport Screen Height Optimizations */
@media (max-width: 600px) {
  .main-header {
    padding: 8px 24px;
  }
  .header-container {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100%;
  }
  .logo {
    font-size: 1.05rem;
    white-space: nowrap;
  }
  .live-counter {
    font-size: 0.78rem;
    white-space: nowrap;
  }
  .counter-text {
    font-size: 0;
  }
  .counter-text::after {
    content: "active";
    font-size: 0.78rem;
  }
  .incoming-call-box {
    padding: 12px;
    margin: 15px 0;
  }
  .incoming-header {
    padding-bottom: 8px;
    margin-bottom: 10px;
  }
  .incoming-body {
    gap: 10px;
  }
  .simulated-chat-box {
    padding: 10px;
    min-height: auto;
  }
  .chat-bubble {
    font-size: 0.88rem;
    padding: 8px 12px;
  }
  .glow-cta-button {
    padding: 14px 20px;
    font-size: 0.95rem;
  }
  .secure-badges {
    font-size: 0.72rem !important;
    gap: 10px !important;
  }
}
