/* ============================================
   BREAK SCREEN PRANK APP — SHARED STYLES
   ============================================ */

:root {
  --bg-dark: #0a0a0f;
  --bg-card: #16161e;
  --bg-card-hover: #1e1e2a;
  --accent: #ff6b00;
  --accent-hover: #f5a93e;
  --accent-red: #e62200;
  --text-primary: #f0f0f5;
  --text-secondary: #8888a0;
  --border: #2a2a3a;
  --success: #00d68f;
  --danger: #ff6b6b;
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

html[lang="ar"] {
  font-family: var(--font-ar);
}

html[lang="ar"] body,
html[lang="ar"] .btn,
html[lang="ar"] .from-input,
html[lang="ar"] .lang-btn,
html[lang="ar"] .share-tile,
html[lang="ar"] .bait-screen,
html[lang="ar"] .overheat-title,
html[lang="ar"] .overheat-detail,
html[lang="ar"] .bsod-screen,
html[lang="ar"] .wipe-screen,
html[lang="ar"] .wipe-title,
html[lang="ar"] .reveal-screen,
html[lang="ar"] .hint-text {
  font-family: var(--font-ar);
}

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

html, body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   GENERATOR PAGE (index.html)
   ============================================ */

.generator-page {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-dark);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.generator-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
}

.generator-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.generator-card .tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.bait-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.bait-option {
  position: relative;
}

.bait-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bait-option label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-dark);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  user-select: none;
}

.bait-option label:hover {
  background: var(--bg-card-hover);
}

.bait-option input:checked + label {
  border-color: var(--accent);
  background: rgba(255, 107, 0, 0.08);
}

.bait-icon {
  font-size: 1.5rem;
  width: 36px;
  text-align: center;
  flex-shrink: 0;
}

.bait-label-text {
  text-align: start;
}

.bait-label-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.bait-label-text span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.exclusive-pill {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 221, 0, 0.16);
  color: #ffdd00;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.exclusive-help {
  margin-top: 0;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 221, 0, 0.06);
  border: 1px solid rgba(255, 221, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.exclusive-help p {
  font-size: 0.78rem;
  color: #f7e9a2;
  line-height: 1.35;
}

.exclusive-buy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a1a1a;
  background: #ffdd00;
}

.exclusive-buy-link:hover {
  background: #ffe733;
}

.lang-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.lang-btn {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-dark);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.lang-btn:hover {
  background: var(--bg-card-hover);
}

.lang-btn.active {
  border-color: var(--accent);
  color: var(--text-primary);
  background: rgba(255, 107, 0, 0.08);
}

.gen-step {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gen-step.hidden {
  display: none;
}

.gen-step.revealing {
  animation: stepReveal 0.35s ease-out forwards;
}

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

.from-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-dark);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font);
  margin-bottom: 14px;
  transition: border-color 0.2s;
  outline: none;
}

.from-input:last-of-type {
  margin-bottom: 24px;
}

.from-input:focus {
  border-color: var(--accent);
}

.from-input::placeholder {
  color: var(--text-secondary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-copy {
  background: var(--success);
  color: #000;
  width: 100%;
  margin-top: 12px;
}

.btn-copy:hover {
  background: #00e09a;
}

.result-box {
  margin-top: 24px;
  display: none;
}

.result-box.visible {
  display: block;
}

.gen-share-grid {
  grid-template-columns: repeat(2, 1fr);
}

.generator-card .share-tile {
  background: var(--bg-dark);
  border-color: var(--border);
  color: var(--text-primary);
}

.generator-card .share-tile:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
}

.generator-card .share-label {
  color: var(--text-secondary);
}

.result-url {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.82rem;
  color: var(--accent-hover);
  word-break: break-all;
  line-height: 1.5;
}

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--success);
  color: #000;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 10000;
}

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

.footer {
  margin-top: 32px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ============================================
   PRANK PAGE — BAIT STATES
   ============================================ */

.bait-screen {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.bait-screen.active {
  display: flex;
}

/* Zoom Bait — Dark Mode */
.bait-zoom {
  background: #1a1a1a;
  color: #fff;
}

.bait-zoom .bait-logo {
  font-size: 3rem;
  margin-bottom: 24px;
}

.bait-zoom .bait-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.bait-zoom .bait-detail {
  font-size: 0.85rem;
  opacity: 0.6;
  margin-bottom: 32px;
}

.bait-zoom .bait-cta {
  background: #2d8cff;
  color: #fff;
  font-size: 1.1rem;
  padding: 16px 48px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.1s;
}

.bait-zoom .bait-cta:active {
  transform: scale(0.95);
}

/* Google Drive Bait — Dark Mode */
.bait-drive {
  background: #1f1f1f;
  color: #e3e3e3;
}

.bait-drive .bait-logo {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.bait-drive .bait-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.bait-drive .bait-detail {
  font-size: 0.85rem;
  color: #9aa0a6;
  margin-bottom: 28px;
}

.bait-drive .file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #2d2d2d;
  border: 1px solid #3c4043;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 28px;
  max-width: 320px;
  width: 100%;
}

.bait-drive .file-icon {
  font-size: 2rem;
}

.bait-drive .file-meta strong {
  display: block;
  font-size: 0.95rem;
  color: #e3e3e3;
}

.bait-drive .file-meta span {
  font-size: 0.8rem;
  color: #9aa0a6;
}

.bait-drive .bait-cta {
  background: #8ab4f8;
  color: #1f1f1f;
  font-size: 1rem;
  padding: 14px 40px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, transform 0.1s;
}

.bait-drive .bait-cta:hover {
  background: #aecbfa;
}

.bait-drive .bait-cta:active {
  transform: scale(0.95);
}

/* System Update Bait — Dark Mode */
.bait-update {
  background: #1a1a1a;
  color: #e0e0e0;
}

.bait-update .update-icon {
  width: 80px;
  height: 80px;
  border: 3px solid #4fc3f7;
  border-top-color: transparent;
  border-radius: 50%;
  margin-bottom: 28px;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.bait-update .bait-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.bait-update .bait-detail {
  font-size: 0.85rem;
  color: #8888a0;
  margin-bottom: 32px;
  text-align: center;
  max-width: 300px;
  line-height: 1.5;
}

.bait-update .bait-cta {
  background: #4fc3f7;
  color: #0a0a1a;
  font-size: 1rem;
  padding: 14px 40px;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s, transform 0.1s;
}

.bait-update .bait-cta:active {
  transform: scale(0.95);
}

/* ============================================
   BLACKOUT SCREEN
   ============================================ */

.blackout {
  position: fixed;
  inset: 0;
  z-index: 999997;
  background: #000;
  display: none;
}

.blackout.active {
  display: block;
}

/* ============================================
   OVERHEAT WARNING
   ============================================ */

.overheat-warning {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: overheatPulse 1.5s ease-in-out infinite;
}

.overheat-warning.active {
  display: flex;
}

@keyframes overheatPulse {
  0%, 100% { background: rgba(0, 0, 0, 0.92); }
  50% { background: rgba(40, 0, 0, 0.95); }
}

.overheat-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.overheat-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #ff4444;
  margin-bottom: 20px;
  font-family: var(--font);
  text-align: center;
}

.overheat-temp {
  font-size: 1rem;
  color: #ff8800;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  margin-bottom: 16px;
  transition: color 0.3s;
}

.overheat-temp.critical {
  color: #ff2222;
}

.overheat-bar-track {
  width: 260px;
  max-width: 80%;
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.overheat-bar-fill {
  height: 100%;
  width: 55%;
  background: linear-gradient(90deg, #ff8800, #ff4444);
  border-radius: 4px;
  transition: width 0.3s ease-out;
}

.overheat-detail {
  font-size: 0.8rem;
  color: #888;
  font-family: var(--font);
  text-align: center;
  max-width: 300px;
  line-height: 1.5;
}

/* ============================================
   PRANK OVERLAY
   ============================================ */

.prank-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: transparent;
  display: none;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  overscroll-behavior: none;
  overflow: hidden;
}

.prank-overlay.active {
  display: block;
  pointer-events: auto;
}

.prank-overlay img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 1;
}

.white-flash {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 1000000;
  opacity: 0;
  pointer-events: none;
}

.hint-text {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-family: var(--font);
  z-index: 1000001;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8), 0 0 8px rgba(0,0,0,0.5);
}

.hint-text.visible {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/* ============================================
   BSOD ENDING
   ============================================ */

.bsod-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #0078d7;
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 10vw;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
}

.bsod-screen.active {
  display: flex;
}

.bsod-sad {
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 200;
  margin-bottom: 24px;
  line-height: 1;
}

.bsod-title {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 700px;
}

.bsod-percent {
  font-size: clamp(1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  margin-bottom: 48px;
}

.bsod-details {
  font-size: clamp(0.7rem, 1.2vw, 0.85rem);
  line-height: 1.6;
  opacity: 0.85;
}

.bsod-qr-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 12px;
}

.bsod-qr-placeholder {
  font-size: 0.5rem;
  line-height: 1;
  letter-spacing: 2px;
  opacity: 0.7;
  flex-shrink: 0;
}

.bsod-stop {
  font-size: clamp(0.65rem, 1vw, 0.8rem);
  line-height: 1.6;
}

/* ============================================
   DATA WIPE ENDING
   ============================================ */

.wipe-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #0a0a0a;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #ff3333;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  cursor: none;
  user-select: none;
  -webkit-user-select: none;
}

.wipe-screen.active {
  display: flex;
}

.wipe-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 28px;
  text-align: center;
  font-family: var(--font);
}

.wipe-progress-track {
  width: 320px;
  max-width: 80%;
  height: 12px;
  background: #222;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid #333;
}

.wipe-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff3333, #ff0000);
  border-radius: 6px;
  transition: width 0.15s linear;
}

.wipe-percent {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.wipe-files {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 8px;
  max-width: 350px;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wipe-count {
  font-size: 0.85rem;
  color: #ff6666;
  margin-bottom: 32px;
}

.wipe-warning {
  font-size: 0.8rem;
  color: #ff8800;
  animation: wipeWarnBlink 1s step-end infinite;
}

@keyframes wipeWarnBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ============================================
   REVEAL PAGE
   ============================================ */

.reveal-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
  color: #1a1a2e;
  display: none;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  padding: 48px 24px;
}

.reveal-screen.active {
  display: flex;
}

.reveal-content {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.reveal-logo {
  width: 180px;
  max-width: 60%;
  height: auto;
  margin-bottom: 20px;
}

.reveal-hashtag {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.reveal-tagline {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 24px;
}

.reveal-headline {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: #1a1a2e;
}

.reveal-subhead {
  font-size: 1rem;
  color: #666;
  margin-bottom: 36px;
  line-height: 1.5;
}

.btn-coffee {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffdd00;
  color: #1a1a1a;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  margin-bottom: 16px;
  transition: transform 0.1s, background 0.2s;
  width: 100%;
  max-width: 320px;
}

.btn-coffee:hover {
  background: #ffe733;
}

.btn-coffee:active {
  transform: scale(0.97);
}

.btn-prank-again {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  text-decoration: none;
  margin-bottom: 32px;
  transition: transform 0.1s;
  width: 100%;
  max-width: 320px;
}

.btn-prank-again:active {
  transform: scale(0.97);
}

.share-section {
  margin-bottom: 28px;
}

.share-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  margin-bottom: 14px;
}

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

.share-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  background: #f5f5f7;
  border: 2px solid #e8e8ec;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  color: #333;
  font-family: var(--font);
  transition: border-color 0.2s, background 0.2s, transform 0.1s;
}

.share-tile:hover {
  border-color: var(--accent);
  background: #fff5eb;
}

.share-tile:active {
  transform: scale(0.95);
}

.share-tile-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.share-tile-text {
  font-size: 0.7rem;
  font-weight: 600;
  text-align: center;
}

/* ============================================
   BODY LOCKDOWN (applied during prank)
   ============================================ */

.lockdown {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
  -webkit-overflow-scrolling: auto !important;
}
