/* ============================================================
   TRUIO ANALYZER — FINAL CSS (CLEAN + UNIFIED LOGIN GATE)
   All UI/UX preserved — 500px layout locked
   ============================================================ */


/* ------------------------------------------------------------
   1) GLOBAL VARIABLES & RESET
   ------------------------------------------------------------ */
:root {
  --color-primary-start: #20BFD8;
  --color-primary-end: #0072ff;
  --text-accent: #20BFD8;
  --text-secondary: #9ca3af;

  --bg-main: #000000;
  --bg-card: #0e0e0e;
  --bg-input: #151515;

  --border-color: #123b4f;
  --glow-color: rgba(32,191,216,0.55);

  --max-width: 500px;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg-main);
  font-family: "Inter", sans-serif;
  color: white;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

* {
  -webkit-tap-highlight-color: rgba(66,194,183,0);
  border-collapse: separate;
}


/* ------------------------------------------------------------
   2) APP WRAPPER (500px max width)
   ------------------------------------------------------------ */
#truioApp {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  text-align: initial !important;
}


/* ------------------------------------------------------------
   3) MAIN CARD (No UI changes)
   ------------------------------------------------------------ */
#mainContainer {
  width: 100%;
  max-width: var(--max-width);
  box-sizing: border-box;

  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 20px;

  padding: 16px;
  margin-top: 24px;

  box-shadow: inset 0 0 10px rgba(32,191,216,0.28);
  animation: pulseGlow 3.4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%   { box-shadow: inset 0 0 5px rgba(32,191,216,0.18); }
  50%  { box-shadow: inset 0 0 18px rgba(32,191,216,0.55); }
  100% { box-shadow: inset 0 0 5px rgba(32,191,216,0.18); }
}


/* ------------------------------------------------------------
   4) HEADER
   ------------------------------------------------------------ */
#headerBlock { text-align: center; margin-bottom: 6px; }
#mainLogo { width: 220px; margin: 0 auto 4px auto; display: block; }

#headerTitle {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  margin: 2px 0 4px 0;
  color: #d9f8ff;
  text-shadow: 0 0 6px rgba(32,191,216,0.45);
}


/* ------------------------------------------------------------
   5) TEXT INPUT
   ------------------------------------------------------------ */
#userInput {
  width: 100%;
  background: var(--bg-input);
  color: white;

  border: 1px solid var(--border-color);
  border-radius: 12px;

  padding: 12px;
  margin: 8px 0 10px 0;

  resize: none;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
}

#userInput:focus {
  border-color: var(--color-primary-end);
  box-shadow: 0 0 6px var(--color-primary-end);
}


/* ------------------------------------------------------------
   6) IMAGE INPUT
   ------------------------------------------------------------ */
#imageInputArea { margin-bottom: 10px; }

#imageInputTrigger {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
}

#thumbnailContainer { color: var(--text-secondary); }

.defaultThumb svg {
  width: 40px;
  height: 40px;
  stroke: var(--text-secondary);
}

.defaultThumb p { font-size: 13px; margin-top: 8px; }
#noImageText { font-weight: 700; color: var(--text-accent); }



#uploadPictures,
#uploadDocuments {
  display: none;
}


/* ------------------------------------------------------------
   7) DROPDOWN MENUS
   ------------------------------------------------------------ */
.menuModal {
  width: 100%;
  background: var(--bg-card);

  border: 1px solid var(--border-color);
  border-radius: 14px;

  padding: 10px;
  margin-top: 10px;
  display: none;

  box-sizing: border-box;
  text-align: center;
  z-index: 30;
}

.menuModal button {
  width: 100%;
  padding: 12px;
  margin-bottom: 10px;

  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: #141414;

  font-size: 18px;
  color: var(--text-accent);
  cursor: pointer;
}

.menuModal button:last-child { margin-bottom: 0; }

.menuTitle {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-accent);
}


/* ------------------------------------------------------------
   8) ACTION ROW
   ------------------------------------------------------------ */
#actionRow {
  width: 100%;
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

#actionRow button {
  flex: 1;
  height: 48px;

  border: none;
  border-radius: 12px;

  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
}

#analyzeButton {
  background: linear-gradient(90deg, var(--color-primary-start), var(--color-primary-end));
  color: #fff;
  box-shadow: 0 0 14px rgba(0,114,255,0.35);
}
#analyzeButton:hover {
  background: linear-gradient(90deg, var(--color-primary-end), var(--color-primary-start));
  transform: translateY(-1px);
}

#forensicButton {
  background: var(--bg-input);
  border: 2px solid var(--color-primary-end);
  color: var(--text-accent);
  position: relative;
  overflow: hidden;
}

#forensicButton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(32,191,216,0.45), transparent);
  transform: skewX(-20deg);
  animation: sweep 2.8s linear infinite;
}

@keyframes sweep {
  from { left: -80%; }
  to   { left: 140%; }
}


/* ------------------------------------------------------------
   9) RESULTS
   ------------------------------------------------------------ */
#resultContainer {
  display: none;
  margin-top: 12px;
}

#safeScoreCard {
  display: flex;
  justify-content: center;
  align-items: center;

  gap: 18px;
  padding: 12px;
  margin-bottom: 20px;

  background: var(--bg-input);
  border: 2px solid var(--text-accent);
  border-radius: 14px;
}

#safeScoreCard .label {
  color: var(--text-secondary);
  font-size: 14px;
  white-space: nowrap;
}

#scoreValue { font-size: 34px; font-weight: 700; }
#scoreTier  { font-size: 16px; font-weight: 600; }


#scamConcernsCard {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 14px;
}

#scamConcernsCard h3 {
  margin: 0 0 8px 0;
  color: var(--text-accent);
}


/* ------------------------------------------------------------
   10) UPDATE NOTICE
   ------------------------------------------------------------ */
#updateNotice {
  margin-top: 6px;
  color: #aaa;
  font-size: 13px;
  text-align: center;
}

#reloadBtn {
  background: none;
  color: var(--text-accent);
  border: none;
  cursor: pointer;
}


/* ------------------------------------------------------------
   11) ANALYSIS HEADER
   ------------------------------------------------------------ */
#analysisHeader {
  display: none;
  margin-top: 18px;
  text-align: center;
  opacity: 0;
  animation: analysisPulse 2.8s ease-in-out infinite;
}

@keyframes analysisPulse {
  0%   { opacity: 0.45; }
  50%  { opacity: 1; }
  100% { opacity: 0.45; }
}


/* ------------------------------------------------------------
   12) SCAN VIDEO OVERLAY
   ------------------------------------------------------------ */
#scanOverlay {
  display: none;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
}

#scanVideo {
  width: 100%;
  max-width: 500px;
  margin-top: 10px;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}


/* ------------------------------------------------------------
   13) SECONDARY ICON ROW
   ------------------------------------------------------------ */
#secondaryRow {
  width: 100%;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

#secondaryRow a {
  display: flex;
  justify-content: center;
  align-items: center;

  height: 86px;
  border-radius: 14px;

  background: none;
  text-decoration: none;
  
  /* Prevent the entire container from being clickable */
  pointer-events: none;
}

#secondaryRow a img {
  max-width: 90%;
  max-height: 80%;
  
  /* Make only the image clickable */
  pointer-events: auto;
  cursor: pointer;
}


/* ------------------------------------------------------------
   14) AD SECTION
   ------------------------------------------------------------ */
#adContainer {
  width: 100%;
  max-width: 500px;
  margin: 16px auto 0 auto;
  text-align: center;
  box-sizing: border-box;
}

#adContainer .adLabel {
  margin: 6px 0;
  color: #aaa;
}

#adVideoFrame {
  width: 100%;
  max-width: 500px;
  height: 260px;
  min-height: 260px;

  margin: 0 auto;
  overflow: hidden;

  border-radius: 14px;
  background: #000;
}

#adVideoPlayer {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #000 !important;
}


/* ------------------------------------------------------------
   15) IDLE MODE
   ------------------------------------------------------------ */
body.idle-mode #mainContainer { transform: none; }
body.idle-mode #userInput { margin-top: 6px !important; margin-bottom: 6px !important; }
body.idle-mode #adContainer { margin-top: 4px !important; }


/* ------------------------------------------------------------
   16) ANALYSIS MODE
   ------------------------------------------------------------ */
body.analysis-mode #mainContainer { display: none !important; }
body.analysis-mode #analysisHeader,
body.analysis-mode #scanOverlay { display: block !important; }


/* ------------------------------------------------------------
   17) UNIFIED LOGIN GATE (FIXED - lighter overlay, less top padding)
   ------------------------------------------------------------ */

/* Full-screen dark overlay - LIGHTER for Google popup visibility */
#loginGate {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 30px;
  z-index: 99999;
}

/* 500px centered card */
#loginGateInner {
  width: 100%;
  max-width: 500px;
  background: #0e0e0e;
  border-radius: 18px;
  padding: 24px;
  border: 1px solid rgba(32,191,216,0.35);
  box-shadow: 0 0 22px rgba(32,191,216,0.25);
  box-sizing: border-box;
  text-align: center;
  animation: gateSlide 0.35s ease;
}

@keyframes gateSlide {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

#loginGateLogo {
  width: 200px;
  margin: 0 auto 6px auto;
}

#loginGateTitle {
  margin: 6px 0 2px 0;
  font-size: 24px;
  font-weight: 800;
  color: #d9f8ff;
}

#loginGateMsg {
  margin-top: 6px;
  margin-bottom: 20px;
  color: #9ca3af;
  font-size: 15px;
  line-height: 21px;
}


/* Buttons */
.loginGateButton {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.2s ease;
}

.loginGateButton.google {
  background: #111;
  border: 1px solid rgba(32,191,216,0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.loginGateButton.google:hover {
  border-color: #20BFD8;
  box-shadow: 0 0 12px rgba(32,191,216,0.4);
}

.loginGateGoogleIcon { width: 22px; height: 22px; }

.loginGateButton.magic {
  background: linear-gradient(90deg, var(--color-primary-start), var(--color-primary-end));
  border: none;
  color: #fff;
}
.loginGateButton.magic:hover { opacity: 0.9; }

.loginGateButton.continue {
  background: none;
  border: none;
  color: #9ca3af;
  margin-top: 4px;
}


/* Blur effect applied only to the 500px card when gate is open */
body.gate-blur #mainContainer {
  filter: blur(8px);
  opacity: 0.2;
  pointer-events: none;
}


/* ------------------------------------------------------------
   18) DESKTOP & MOBILE RULES
   ------------------------------------------------------------ */

/* Desktop */
@media (min-width: 769px) {
  html, body {
    height: 100%;
    overflow-y: hidden;
  }

  #adVideoFrame {
    height: min(260px, calc(100vh - 460px));
  }
}

/* Mobile */
@media (max-width: 768px) {
  html, body {
    overflow-y: auto !important;
    height: auto !important;
  }

  #adVideoFrame {
    height: min(260px, calc(100vh - 430px));
  }
}

/* PWA Standalone */
@supports(display-mode: standalone) {
  html, body {
    height: 100%;
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #truioApp {
    padding: 0 !important;
    margin: 0 auto !important;
  }

  #mainContainer {
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
  }

  #adVideoFrame {
    height: min(260px, calc(100vh - 430px));
    border-radius: 0 !important;
  }
}


/* ------------------------------------------------------------
   19) MAX WIDTH ENFORCEMENT
   ------------------------------------------------------------ */
#mainContainer,
#adContainer,
#adVideoFrame,
#scanVideo,
#truioApp {
  max-width: 500px !important;
  width: 100% !important;
}

/* Fix analysis logo oversize issue */
#analysisHeaderLogo {
  width: 220px !important;
  max-width: 220px !important;
  height: auto !important;
  margin: 0 auto 4px auto !important;
  display: block !important;
}

/* Hide scrollbar but allow scrolling */
html, body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
}

/* Fix Google Login Popup z-index and brightness */
#credential_picker_container,
#credential_picker_container iframe,
div[role="presentation"] {
  z-index: 999999999 !important;
  pointer-events: auto !important;
  position: absolute !important;
}

/* Prevent loginGate from blocking GSI interaction */
#loginGate {
  pointer-events: none;
}

/* Re-enable clicks inside the gate itself */
#loginGateInner,
#loginGateInner * {
  pointer-events: auto;
}
#safeScoreCard {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 12px;
  margin-bottom: 20px;
  background: var(--bg-input);
  border: 2px solid var(--text-accent);
  border-radius: 14px;
}

#safeScoreCard.safe {
  border-color: #00ff88;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

#safeScoreCard.caution {
  border-color: #ffaa00;
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.4);
}

#safeScoreCard.warning {
  border-color: #ff6600;
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.4);
}

#safeScoreCard.danger {
  border-color: #ff0000;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

#safeScoreCard .label {
  color: var(--text-secondary);
  font-size: 14px;
  white-space: nowrap;
}

#scoreValue { font-size: 34px; font-weight: 700; }
#scoreTier  { font-size: 16px; font-weight: 600; }

#safeScoreCard.safe #scoreValue { color: #00ff88; }
#safeScoreCard.caution #scoreValue { color: #ffaa00; }
#safeScoreCard.warning #scoreValue { color: #ff6600; }
#safeScoreCard.danger #scoreValue { color: #ff0000; }

#scoreTier.safe { color: #00ff88; }
#scoreTier.caution { color: #ffaa00; }
#scoreTier.warning { color: #ff6600; }
#scoreTier.danger { color: #ff0000; }
/* User Disagree Feature */
#feedbackSection {
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 12px;
}

#feedbackTrigger {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  user-select: none;
}

#feedbackCheckbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--text-accent);
}

#feedbackTrigger:hover {
  color: var(--text-accent);
}

.feedback-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.feedback-popup-content {
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 0 30px rgba(32, 191, 216, 0.3);
}

.feedback-popup-content h4 {
  margin: 0 0 16px 0;
  color: var(--text-accent);
  font-size: 18px;
  font-weight: 600;
}

.feedback-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.feedback-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.feedback-options label:hover {
  background: var(--bg-input);
  color: white;
}

.feedback-options input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--text-accent);
}

#disputeText {
  width: 100%;
  padding: 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: white;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  resize: vertical;
  margin-bottom: 16px;
  box-sizing: border-box;
}

#disputeText::placeholder {
  color: var(--text-secondary);
}

#disputeText:focus {
  outline: none;
  border-color: var(--text-accent);
  box-shadow: 0 0 8px rgba(32, 191, 216, 0.3);
}

.feedback-buttons {
  display: flex;
  gap: 12px;
}

.feedback-buttons button {
  flex: 1;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

#submitDisputeBtn {
  background: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
  color: white;
}

#submitDisputeBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(32, 191, 216, 0.4);
}

#cancelDisputeBtn {
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

#cancelDisputeBtn:hover {
  background: var(--bg-card);
  color: white;
}

/* ===============================
   ALPHA POPUP
================================ */

.alpha-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.alpha-popup.hidden {
  display: none;
}

.alpha-card {
  width: 92%;
  max-width: 420px;
  background: #0b0b0b;
  border: 1px solid #00ffe0;
  box-shadow: 0 0 25px rgba(0,255,224,0.35);
  padding: 20px;
  color: #fff;
  position: relative;
  border-radius: 12px;
  text-align: center;
}

.alpha-card h2 {
  margin-top: 0;
  color: #00ffe0;
}

.alpha-card p {
  font-size: 14px;
  line-height: 1.5;
  color: #ddd;
}

.alpha-note {
  margin-top: 12px;
  font-size: 13px;
  color: #aaa;
}

.alpha-card img {
  max-width: 100%;
  margin: 12px 0;
  border-radius: 6px;
}

.alpha-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 22px;
  color: #888;
  cursor: pointer;
}

.alpha-close:hover {
  color: #fff;
}

.alpha-ok {
  margin-top: 14px;
  padding: 10px 18px;
  background: #00ffe0;
  color: #000;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

/* ============================================================
   TRUIO INSTALL OVERLAYS
   Add these styles to the END of your existing truio.css file
   ============================================================ */

/* ============================================================
   iOS INSTALL OVERLAY (GIF VERSION)
   ============================================================ */
.ios-install-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.ios-install-overlay-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    box-sizing: border-box;
}

.ios-install-overlay h2 {
    color: #20BFD8;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 30px 0;
    text-transform: uppercase;
}

.install-dismiss-top {
    color: #00ff88;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
    display: block;
    margin-bottom: 20px;
}

.install-dismiss-top:hover,
.install-dismiss-top:active {
    color: #00dd77;
    text-decoration: underline;
}

.install-overlay-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px auto;
    border-radius: 20px;
    display: block;
    border: 2px solid #20BFD8;
    box-shadow: 0 0 20px rgba(32, 191, 216, 0.3);
}

.install-step {
    background: rgba(32, 191, 216, 0.05);
    border: 1px solid rgba(32, 191, 216, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin: 0 auto 16px auto;
    max-width: 400px;
    box-sizing: border-box;
}

.install-step-number {
    color: #20BFD8;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
}

.install-step-text {
    color: #ddd;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.install-steps-brief {
    text-align: left;
    margin: 20px auto;
    padding: 0 20px;
    max-width: 400px;
    box-sizing: border-box;
}

.install-steps-brief p {
    color: #ddd;
    font-size: 15px;
    line-height: 1.8;
    margin: 8px 0;
    word-wrap: break-word;
}

.install-shortcut-link {
    display: inline-block;
    background: #20BFD8;
    color: #000;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    margin: 20px 0;
    transition: all 0.2s;
}

.install-shortcut-link:hover,
.install-shortcut-link:active {
    background: #1a9fb5;
    transform: scale(0.98);
}

.install-dismiss {
    color: #20BFD8;
    text-decoration: underline;
    cursor: pointer;
    font-size: 16px;
    margin-top: 30px;
    display: inline-block;
}

.install-dismiss:hover,
.install-dismiss:active {
    color: #1a9fb5;
}

/* ============================================================
   ANDROID INSTALL OVERLAY
   ============================================================ */
.android-install-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.install-overlay-content {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.android-install-overlay h2 {
    color: #20BFD8;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 30px 0;
    text-transform: uppercase;
}

.install-overlay-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px auto;
    border-radius: 20px;
    display: block;
    border: 2px solid #20BFD8;
    box-shadow: 0 0 20px rgba(32, 191, 216, 0.3);
}

.install-steps {
    text-align: left;
    margin: 30px 0;
}

.install-step {
    background: rgba(32, 191, 216, 0.05);
    border: 1px solid rgba(32, 191, 216, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

.install-step-number {
    color: #20BFD8;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    display: block;
}

.install-step-text {
    color: #ddd;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.install-dismiss {
    color: #20BFD8;
    text-decoration: underline;
    cursor: pointer;
    font-size: 16px;
    margin-top: 30px;
    display: inline-block;
}

.install-dismiss:hover,
.install-dismiss:active {
    color: #1a9fb5;
}

/* ============================================================
   iOS STANDALONE WARNING
   ============================================================ */
.ios-standalone-warning {
    display: none;
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ============================================================
   iOS HOW-TO POPUP
   ============================================================ */
.howto-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99998;
    align-items: center;
    justify-content: center;
}

.howto-popup-content {
    background: #0e0e0e;
    border: 1px solid rgba(32, 191, 216, 0.35);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 0 20px rgba(32, 191, 216, 0.3);
    position: relative;
}

.howto-popup h3 {
    color: #20BFD8;
    margin: 0 0 20px 0;
    font-size: 20px;
}

.howto-popup-button {
    display: block;
    width: 100%;
    padding: 14px;
    margin-bottom: 12px;
    background: rgba(32, 191, 216, 0.1);
    border: 1px solid rgba(32, 191, 216, 0.3);
    border-radius: 10px;
    color: #20BFD8;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.howto-popup-button:hover,
.howto-popup-button:active {
    background: rgba(32, 191, 216, 0.2);
    border-color: rgba(32, 191, 216, 0.5);
}

.howto-popup-button.primary {
    background: #20BFD8;
    color: #000;
    border-color: #20BFD8;
}

.howto-popup-button.primary:hover,
.howto-popup-button.primary:active {
    background: #1a9fb5;
}

.howto-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #666;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
}

.howto-popup-close:hover {
    color: #20BFD8;
}