:root {
  --bg-deep: #050a14;
  --cyan: #00d4ff;
  --cyan-dim: #5eb8e5;
  --cyan-glow: rgba(0, 212, 255, 0.3);
  --text-primary: #f4f8ff;
  --text-muted: #8aa4c4;
  --card-bg: rgba(8, 20, 44, 0.78);
  --card-border: rgba(0, 190, 255, 0.22);
  --blue: #1D9BF0;
  --amber: #F5A623;
  --yellow: #FFD800;
  --green: #34AD00;
  --white: #FFFFFF;
  --closeBtn: #F50000;
  --black: #000000;
  --grey: #71767b;
  --mentions: #1D9BF0;
  --darkGrey: #101010;
  --btnActive: #00BA7C;
  --ig-blue: #0095F6;
  --fb-blue: #1877F2;
  --tiktok-red: #FE2C55;
  --tiktok-cyan: #25F4EE;
  --snap-yellow: #FFFC00;
  --snap-bg: #000000;
  --npc-purple: #7c3aed;
  --npc-card: #120e1c;
  --npc-card-border: rgba(139, 92, 246, 0.35);
  --npc-like: #e056a0;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', var(--font);
  min-height: 100vh;
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse at 12% -5%, rgba(0, 110, 210, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse at 88% 105%, rgba(0, 180, 255, 0.07) 0%, transparent 45%);
  color: var(--text-primary);
  overflow-x: hidden;
}

.version-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.4px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(0, 212, 255, 0.35); background: rgba(0, 212, 255, 0.08);
  color: var(--cyan); cursor: pointer; transition: 0.2s ease; white-space: nowrap;
}
.version-pill:hover { background: rgba(0, 212, 255, 0.16); box-shadow: 0 0 16px var(--cyan-glow); }

.changelog-box { max-width: 560px; max-height: 85vh; overflow-y: auto; }
.changelog-list { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.changelog-entry {
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--card-border); background: rgba(4, 12, 28, 0.5);
}
.changelog-entry.current { border-color: rgba(0, 212, 255, 0.45); background: rgba(0, 212, 255, 0.06); }
.changelog-ver { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ver-tag {
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700;
  padding: 2px 10px; border-radius: 6px; background: var(--cyan); color: #041018;
}
.changelog-entry:not(.current) .ver-tag { background: rgba(255,255,255,0.12); color: var(--text-primary); }
.ver-date { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.changelog-entry h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.changelog-entry ul { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.changelog-entry li { margin-bottom: 4px; }
.changelog-entry li strong { color: var(--text-primary); font-weight: 600; }


.grid-overlay {
  position: fixed; inset: 0;
  background:
    linear-gradient(rgba(0, 150, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 150, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  z-index: 0; pointer-events: none;
}
.glow-overlay {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.5) 100%);
  z-index: 1; pointer-events: none;
}

.app { position: relative; z-index: 2; width: min(96%, 1200px); margin: 0 auto; padding: 20px 20px 40px; }

.top-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 22px;
}
.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.logo-section { display: flex; align-items: center; gap: 14px; }
.logo-section img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; border: 1px solid var(--card-border); }
.logo-section h1 { font-family: 'Rajdhani', sans-serif; font-size: 28px; font-weight: 700; line-height: 1.1; }
.logo-section p { font-size: 12px; color: var(--text-muted); letter-spacing: 0.4px; }
.logo-section p strong { color: var(--cyan); font-weight: 600; }

.readme-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.4px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(0, 186, 124, 0.35); background: rgba(0, 186, 124, 0.08);
  color: var(--btnActive); cursor: pointer; transition: 0.2s ease; white-space: nowrap;
}
.readme-pill:hover {
  background: rgba(0, 186, 124, 0.16);
  box-shadow: 0 0 16px rgba(0, 186, 124, 0.35);
}

body.is-exporting * { animation-play-state: paused !important; }
body.is-exporting .snap-chat-messages { overflow: visible !important; max-height: none !important; }

.platform-tabs {
  display: none; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 28px; padding: 6px;
  background: rgba(4, 12, 28, 0.7); border: 1px solid var(--card-border);
  border-radius: 14px;
}
.platform-tabs.visible { display: flex; }
.tab-btn {
  font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  background: transparent; color: var(--text-muted); cursor: pointer;
  transition: all 0.2s ease;
}
.tab-btn:hover { color: var(--cyan); border-color: rgba(0, 212, 255, 0.3); background: rgba(0, 212, 255, 0.06); }
.tab-btn.active {
  color: #041018; background: var(--cyan); border-color: var(--cyan);
  box-shadow: 0 0 20px var(--cyan-glow);
}
.tab-btn[data-platform="tweet"].active { background: linear-gradient(135deg, var(--blue), #161616); border-color: var(--blue); box-shadow: 0 0 20px rgba(29,155,240,0.35); color: #fff; }
.tab-btn[data-platform="gram"].active { background: linear-gradient(45deg, #f09433, #dc2743, #bc1888); border-color: transparent; color: #fff; box-shadow: 0 0 20px rgba(220,39,67,0.35); }
.tab-btn[data-platform="book"].active { background: var(--fb-blue); border-color: var(--fb-blue); box-shadow: 0 0 20px rgba(24,119,242,0.35); color: #fff; }
.tab-btn[data-platform="discord"].active { background: #5865f2; border-color: #5865f2; box-shadow: 0 0 20px rgba(88,101,242,0.45); color: #fff; }
.tab-btn[data-platform="tok"].active { background: linear-gradient(135deg, var(--tiktok-cyan), var(--tiktok-red)); border-color: transparent; color: #fff; box-shadow: 0 0 20px rgba(254,44,85,0.35); }
.tab-btn[data-platform="chat"].active { background: var(--snap-yellow); border-color: var(--snap-yellow); color: #000; box-shadow: 0 0 20px rgba(255,252,0,0.35); }
.tab-btn[data-platform="lock"].active { background: linear-gradient(135deg, #6366f1, #d55cf6); border-color: transparent; color: #fff; box-shadow: 0 0 20px rgba(99,102,241,0.4); }
.tab-btn[data-platform="gallery"].active { background: linear-gradient(135deg, #e43aed, #1d6595); border-color: #7c3aed; color: #fff; box-shadow: 0 0 20px rgba(124,58,237,0.4); }
.tab-btn[data-platform="news"].active { background: linear-gradient(135deg, #bb1919, #8b0000); border-color: #bb1919; color: #fff; box-shadow: 0 0 20px rgba(187,25,25,0.45); }

.global-device-row {
  display: none; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  width: 100%; padding: 0 0 14px;
}
.global-device-row.visible { display: flex; }
.global-device-row .device-label {
  font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-muted);
  margin-right: 4px;
}
.device-pill {
  font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.4px; text-transform: uppercase;
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--card-border);
  background: rgba(4, 12, 28, 0.85); color: var(--text-muted); cursor: pointer; transition: 0.2s;
}
.device-pill:hover { color: var(--text-primary); border-color: rgba(0,212,255,0.3); }
.device-pill.active {
  background: rgba(0,212,255,0.12); border-color: var(--cyan); color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,212,255,0.15);
}
.ios-notch-row {
  display: none; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  width: 100%; padding: 0 0 14px; margin-top: -6px;
}
.ios-notch-row.visible { display: flex; }

/* ===== DEVICE FRAME (iPhone / Android) — full-screen phone mockups only ===== */
.device-frame {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, sans-serif;
}
.device-statusbar {
  z-index: 6; height: 50px; pointer-events: none; flex-shrink: 0;
}
.device-frame:not(.flex-frame) .device-statusbar {
  position: absolute; top: 0; left: 0; right: 0;
}
.device-statusbar.light { color: #000; background: #fff; }
.device-statusbar:not(.light) { color: #fff; }
.status-ios, .status-android {
  display: flex; width: 100%; height: 100%;
  align-items: flex-end; justify-content: space-between;
  position: relative;
  padding: 0 24px 9px;
  color: inherit;
}
.status-ios {
  font-size: 16px; font-weight: 600; letter-spacing: -0.4px;
}
.status-android {
  font-size: 14px; font-weight: 500; letter-spacing: -0.2px;
  font-family: Roboto, "Segoe UI", sans-serif;
}
.status-ios-left, .status-android-left {
  display: flex; align-items: center; gap: 5px; min-width: 54px;
}
.status-dynamic-island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 118px; height: 33px; background: #000; border-radius: 18px;
  pointer-events: none; z-index: 2;
}
.status-dynamic-island::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle, rgba(70,70,140,0.55) 0%, transparent 72%);
}
.device-statusbar.light .status-dynamic-island { background: #000; }
.status-ios-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 168px; height: 33px; background: #000;
  border-radius: 0 0 20px 20px;
  pointer-events: none; z-index: 2;
}
.status-notch-speaker {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 5px; background: #141414; border-radius: 4px;
}
.status-notch-cam {
  position: absolute; top: 9px; right: 22px;
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1e1e3a, #080810 70%);
}
.status-ios.ios-layout-notch {
  align-items: center; padding: 0 26px;
}
.status-ios.ios-layout-island {
  align-items: flex-end; padding: 0 24px 10px;
}
.status-android-camera {
  position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #1a1a2e, #050508 70%);
  box-shadow: inset 0 0 1px rgba(255,255,255,0.12);
  pointer-events: none; z-index: 2;
}
.status-none {
  display: none;
}
.status-android { display: none !important; }
.device-frame.no-device .device-statusbar,
.device-frame.no-device .device-bottom-chrome {
  display: none !important;
}
.device-frame.no-device .story-progress-wrap,
.device-frame.no-device .snap-story-progress {
  top: 10px;
}
.device-frame.no-device .story-header-row,
.device-frame.no-device .snap-top {
  top: 22px;
}
.device-frame.android .status-none { display: none !important; }
.device-frame.android .status-ios { display: none !important; }
.device-frame.android .status-android { display: flex !important; }
.device-frame:not(.android) .status-android { display: none !important; }
.device-frame.android .device-home-indicator { display: none; }
.device-frame.android .device-nav-bar { display: block; }
.status-time { min-width: 0; line-height: 1; pointer-events: auto; }
.status-icons { display: flex; align-items: center; gap: 4px; }
.status-icons svg { display: block; flex-shrink: 0; }

.status-wifi-samsung { flex-shrink: 0; }
.status-sig-bars { flex-shrink: 0; }
.status-battery-pct {
  font-size: 12px; font-weight: 400; letter-spacing: -0.1px; line-height: 1;
  font-family: Roboto, "Segoe UI", sans-serif;
}
.status-batt-android { margin-left: 1px; flex-shrink: 0; }
.lock-android-sys-icons {
  display: flex; align-items: center; gap: 4px;
}
.lock-batt-wrap { display: flex; align-items: center; flex-shrink: 0; }
.lock-batt-wrap svg { display: block; }
#snapChat.dark-theme .device-statusbar { background: #0e0e0e; color: #fff; }
.device-bottom-chrome {
  flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
  padding: 4px 0 8px; z-index: 5;
}
.device-frame:not(.flex-frame) .device-bottom-chrome {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding-bottom: 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 100%);
}
.device-frame.flex-frame .device-bottom-chrome { background: #fff; padding-bottom: 4px; }
.device-frame.flex-frame.android .device-bottom-chrome { background: #fff; }
.device-home-indicator {
  width: 134px; height: 5px; background: #fff; border-radius: 3px; opacity: 0.92;
}
.device-frame.flex-frame .device-home-indicator { background: #000; opacity: 0.22; }
.device-nav-bar {
  display: none; width: 120px; height: 4px; background: rgba(255,255,255,0.55);
  border-radius: 2px;
}
.device-frame.flex-frame .device-nav-bar { background: rgba(0,0,0,0.35); }

.gram-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: min(390px, 95%); margin-bottom: 8px;
}
.gram-toolbar-row { width: min(390px, 95%); margin-bottom: 8px; }
.gram-mode-toggle {
  display: flex; gap: 4px; padding: 4px;
  background: rgba(4, 12, 28, 0.85); border: 1px solid var(--card-border); border-radius: 10px;
}
.mode-pill {
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 8px 16px; border-radius: 8px; border: none;
  background: transparent; color: var(--text-muted); cursor: pointer; transition: 0.2s;
}
.mode-pill:hover { color: var(--text-primary); }
.mode-pill.active {
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
  color: #fff; box-shadow: 0 2px 12px rgba(220,39,67,0.35);
}
#snapPillStory.active, #snapPillChat.active {
  background: var(--snap-yellow); color: #000;
  box-shadow: 0 2px 12px rgba(255,252,0,0.35);
}
#newsPillBbcLive.active, #newsPillBbcLower.active {
  background: linear-gradient(135deg, #bb1919, #8b0000);
  color: #fff; box-shadow: 0 2px 12px rgba(187,25,25,0.35);
}
.gram-toolbar .menuWrapper { position: relative; right: auto; top: auto; }
.gram-toolbar .iconBtn {
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--card-border); background: rgba(4, 12, 28, 0.85); color: var(--text-muted);
}
.gram-toolbar .iconBtn:hover { color: var(--cyan); border-color: var(--cyan); }
.gram-toolbar .dropdownMenu { top: 44px; right: 0; background: rgba(14, 10, 24, 0.98); color: var(--text-primary); border: 1px solid var(--card-border); }
.gram-toolbar .dropdownMenu button:hover { background: rgba(124,58,237,0.18); }

.workspace {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.platform-panel { display: none; width: 100%; flex-direction: column; align-items: center; }
.platform-panel.active { display: flex; }

/* ===== HOME LANDING ===== */
#panel-home { align-items: stretch; max-width: 1100px; margin: 0 auto; width: 100%; }
.home-hero { text-align: center; margin-bottom: 28px; padding: 0 8px; }
.home-title {
  font-family: 'Rajdhani', sans-serif; font-size: 28px; font-weight: 700;
  letter-spacing: 0.5px; margin-bottom: 12px;
}
.home-lead {
  font-size: 16px; line-height: 1.55; color: rgba(232, 244, 255, 0.92);
  max-width: 720px; margin: 0 auto 10px;
}
.home-sub {
  font-size: 13px; line-height: 1.6; color: var(--text-muted); max-width: 640px; margin: 0 auto;
}
.home-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px; width: 100%;
}
.home-card {
  display: flex; flex-direction: column;
  background: rgba(4, 12, 28, 0.82); border: 1px solid var(--card-border);
  border-radius: 16px; overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.home-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(0, 212, 255, 0.06);
  transform: translateY(-2px);
}
.home-card-img {
  position: relative; overflow: hidden; background: #060d18;
  display: flex; align-items: center; justify-content: center;
}
.home-card-img--wide { aspect-ratio: 16 / 10; }
.home-card-img--tall { aspect-ratio: 390 / 520; }
.home-card-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.home-card-img--news { background: linear-gradient(145deg, #1a1a2e 0%, #0a0a12 100%); }
.home-preview-news {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  width: 88%; height: 82%; padding: 12px; gap: 8px;
}
.home-preview-news-live {
  background: #bb1919; color: #fff; font-size: 10px; font-weight: 800;
  padding: 3px 8px; letter-spacing: 0.5px;
}
.home-preview-news-head {
  background: #fff; color: #bb1919; font-size: 11px; font-weight: 800;
  padding: 6px 10px; letter-spacing: 0.3px;
}
.home-card-body {
  padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; gap: 8px;
}
.home-card-body h3 {
  font-family: 'Rajdhani', sans-serif; font-size: 20px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
}
.home-card-body p { font-size: 13px; line-height: 1.5; color: var(--text-muted); flex: 1; }
.home-card-btn {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 0.8px; text-transform: uppercase;
  padding: 10px 16px; border-radius: 10px; border: 1px solid var(--cyan);
  background: rgba(0, 212, 255, 0.1); color: var(--cyan); cursor: pointer;
  transition: 0.2s; margin-top: 4px; width: 100%;
}
.home-card-btn:hover { background: var(--cyan); color: #041018; box-shadow: 0 0 18px var(--cyan-glow); }
.home-card-btn--gram { border-color: #dc2743; color: #f7779b; background: rgba(220,39,67,0.1); }
.home-card-btn--gram:hover { background: linear-gradient(45deg, #f09433, #dc2743); color: #fff; border-color: transparent; }
.home-card-btn--book { border-color: var(--fb-blue); color: #6eb3ff; background: rgba(24,119,242,0.1); }
.home-card-btn--book:hover { background: var(--fb-blue); color: #fff; }
.home-card-btn--discord { border-color: #5865f2; color: #a5b4fc; background: rgba(88,101,242,0.12); }
.home-card-btn--discord:hover { background: #5865f2; color: #fff; border-color: transparent; box-shadow: 0 0 18px rgba(88,101,242,0.4); }
.home-card-btn--tok { border-color: var(--tiktok-cyan); color: var(--tiktok-cyan); background: rgba(37,244,238,0.08); }
.home-card-btn--tok:hover { background: linear-gradient(135deg, var(--tiktok-cyan), var(--tiktok-red)); color: #fff; border-color: transparent; }
.home-card-btn--chat { border-color: var(--snap-yellow); color: var(--snap-yellow); background: rgba(255,252,0,0.08); }
.home-card-btn--chat:hover { background: var(--snap-yellow); color: #000; }
.home-card-btn--lock { border-color: #8b5cf6; color: #a78bfa; background: rgba(99,102,241,0.1); }
.home-card-btn--lock:hover { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; border-color: transparent; }
.home-card-btn--gallery { border-color: #7c3aed; color: #c4b5fd; background: rgba(124,58,237,0.1); }
.home-card-btn--gallery:hover { background: linear-gradient(135deg, #7c3aed, #4c1d95); color: #fff; border-color: transparent; }
.home-card-btn--news { border-color: #bb1919; color: #fca5a5; background: rgba(187,25,25,0.12); }
.home-card-btn--news:hover { background: linear-gradient(135deg, #bb1919, #7f1d1d); color: #fff; border-color: transparent; }
.home-card-btn--exports { border-color: #22d3ee; color: #67e8f9; background: rgba(34,211,238,0.1); }
.home-card-btn--exports:hover { background: linear-gradient(135deg, #06b6d4, #0891b2); color: #fff; border-color: transparent; }

.home-card-visibility {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2px;
  background: rgba(0, 0, 0, 0.72); color: #e7e9ea;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(6px); pointer-events: none;
}
.home-card-visibility svg { opacity: 0.85; flex-shrink: 0; }
.home-card-visibility--popular { color: #1d9bf0; background: rgba(0, 0, 0, 0.78); border-color: rgba(29,155,240,0.35); }
.home-card-visibility--popular svg { color: #1d9bf0; }

.home-card-img--exports {
  background: linear-gradient(145deg, #0c1929 0%, #061018 50%, #0a1628 100%);
}
.home-exports-preview {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: rgba(103,232,249,0.85);
}
.home-exports-preview i { font-size: 42px; opacity: 0.7; animation: exportsIconFloat 3s ease-in-out infinite; }
.home-exports-preview-tag {
  font-family: 'Rajdhani', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: #67e8f9;
  padding: 4px 12px; border: 1px solid rgba(34,211,238,0.35); border-radius: 999px;
  background: rgba(34,211,238,0.08);
}
@keyframes exportsIconFloat {
  0%, 100% { transform: translateY(0); opacity: 0.65; }
  50% { transform: translateY(-6px); opacity: 0.9; }
}

.panel-hint {
  text-align: center; font-size: 13px; color: var(--text-muted); max-width: 560px; line-height: 1.5; margin-bottom: 8px;
}
.panel-hint kbd {
  background: rgba(0,212,255,0.12); border: 1px solid var(--card-border);
  padding: 2px 6px; border-radius: 4px; font-size: 11px; color: var(--cyan);
}

/* ===== SHARED POST CARD ===== */
.post-card {
  position: relative;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
}
.post-card.dark-theme { background: var(--darkGrey); color: var(--white); }

.clickableImg { cursor: pointer; transition: 0.2s ease; }
.clickableImg:hover { opacity: 0.88; transform: scale(1.005); }
.mention { color: var(--mentions); font-weight: 500; }
.post-card.dark-theme .mention { color: var(--blue); }
.bold { font-weight: 700; }
.italic { font-style: italic; }

.editable { outline: none; cursor: text; word-break: break-word; }
.editable:focus { outline: none; }

.menuWrapper { position: absolute; right: 8px; top: 8px; z-index: 10; }
.iconBtn {
  background: none; border: none; cursor: pointer; padding: 8px;
  border-radius: 50%; transition: 0.15s; color: var(--grey);
}
.iconBtn:hover { background: rgba(0,0,0,0.06); }
.dropdownMenu {
  position: absolute; top: 40px; right: 0;
  background: var(--white); border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  display: none; flex-direction: column; min-width: 220px; padding: 6px 0; z-index: 1000;
}
.post-card.dark-theme .dropdownMenu { background: #1a1a1a; color: var(--white); }
.dropdownMenu button {
  padding: 12px 16px; font-size: 14px; border: none; background: none;
  text-align: left; cursor: pointer; width: 100%; color: inherit;
}
.dropdownMenu button:hover { background: rgba(0,0,0,0.06); }
.dropdownMenu button.active { color: var(--btnActive); font-weight: bold; }

.exportBtnWrap { display: flex; justify-content: center; margin-top: 4px; }
.exportBtn {
  font-family: 'Rajdhani', sans-serif; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; font-size: 14px;
  padding: 12px 28px; border-radius: 12px; border: 1px solid var(--cyan);
  background: rgba(0, 212, 255, 0.12); color: var(--cyan); cursor: pointer;
  transition: all 0.2s;
}
.exportBtn:hover { background: var(--cyan); color: #041018; box-shadow: 0 0 24px var(--cyan-glow); }

/* ===== CRIPTWEET ===== */
#tweet {
  width: 600px; max-width: 95%; border-radius: 16px; padding: 16px;
}
#reposted {
  display: flex; align-items: center; gap: 6px; font-size: 15px;
  color: var(--grey); margin-bottom: 6px; margin-left: 58px;
}
.repostIcon { display: flex; align-items: center; }
#repostName { font-weight: 600; }
.tweet-header { display: flex; align-items: center; }
#profilePic {
  width: 50px; height: 50px; border-radius: 10%; margin-right: 10px;
}
.tweet-name { font-weight: bold; font-size: 18px; }
.tweet-handle { color: var(--grey); margin-left: -2px; }
#verified { display: inline; margin-left: 2px; vertical-align: middle; }
#tweetText { margin-top: 20px; font-size: 15px; line-height: 1.5; min-height: 40px; }
#tweetImage { width: 100%; display: block; margin: 0; border-radius: 0; }
.tweet-image-wrap {
  margin-top: 12px; border-radius: 16px; overflow: hidden;
  position: relative; width: 100%; aspect-ratio: 16 / 10; max-height: 480px;
  background: #0a0a0a;
}
.tweet-image-wrap #tweetImage {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.tweet-meta { margin-top: 10px; color: var(--grey); font-size: 14px; }
.tweet-stats {
  display: flex; justify-content: space-around; align-items: center;
  margin-top: 12px; color: var(--grey);
  border-top: 1px solid var(--grey); border-bottom: 1px solid var(--grey); padding: 4px 0;
}
.tweet-stats span { cursor: text; display: flex; align-items: center; gap: 4px; }
.tweet-stats span.react-stat { cursor: pointer; user-select: none; }
.tweet-stats span.react-stat:hover { opacity: 0.75; }
.tweet-stats span.react-stat.active { color: var(--closeBtn); }
.tweet-stats span.react-stat.active svg { color: var(--closeBtn); }
.tweet-stats svg { vertical-align: middle; }
#likeIcon { cursor: pointer; }
.post-card.dark-theme .tweet-stats { border-color: #333; }

/* ===== CRIPGRAM ===== */
.gram-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
#gramPost, #gramStory { border-radius: 4px; overflow: hidden; }

#gramPost {
  width: 470px; max-width: 95%; border: 1px solid #dbdbdb;
}
.post-card.dark-theme#gramPost { border-color: #363636; }
#gramPost .mention, #gramStory .mention { color: var(--ig-blue); }
#fbPost .mention { color: var(--fb-blue); }
#tiktokPost .mention { color: var(--tiktok-cyan); }

.gram-header {
  display: flex; align-items: center; padding: 14px 16px; gap: 12px;
}
.gram-avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
}
.gram-userline { flex: 1; min-width: 0; }
.gram-username { font-weight: 600; font-size: 14px; }
.gram-location { font-size: 12px; color: var(--grey); }
.gram-header .menuWrapper { display: none; }

#gramImage { width: 100%; aspect-ratio: 1; display: block; background: #fafafa; object-fit: cover; }
.gram-image-wrap { width: 100%; aspect-ratio: 1; overflow: hidden; position: relative; background: #fafafa; }
.gram-image-wrap #gramImage { width: 100%; height: 100%; aspect-ratio: unset; object-fit: cover; display: block; }
.gram-media-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: 1;
}
.gram-muted-badge {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.gram-muted-badge[hidden] { display: none !important; }
.gram-muted-badge svg { width: 13px; height: 13px; display: block; }
.post-card.dark-theme .gram-image-wrap { background: #1a1a1a; }
.post-card.dark-theme #gramImage { background: #1a1a1a; }

.gram-actions {
  display: flex; align-items: center; padding: 8px 16px 0; gap: 14px;
}
.gram-actions svg { cursor: pointer; transition: 0.15s; }
.gram-actions svg.react-icon:hover { opacity: 0.6; }
.gram-actions svg:hover { opacity: 0.6; }
.gram-actions .spacer { flex: 1; }
.gram-likes { padding: 6px 16px; font-weight: 600; font-size: 14px; }
.gram-caption { padding: 0 16px 8px; font-size: 14px; line-height: 1.45; }
.gram-caption .cap-user { font-weight: 600; margin-right: 4px; }
.gram-time { padding: 0 16px 14px; font-size: 10px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.3px; }

#gramStory {
  width: 390px; max-width: 95%; height: 844px;
  background: #000; border-radius: 28px;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 24px 64px rgba(0,0,0,0.5);
}
.story-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.story-media-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}

.story-progress-wrap {
  position: absolute; top: 50px; left: 8px; right: 8px; z-index: 4;
}
.story-progress { display: flex; gap: 4px; }
.story-progress span { flex: 1; height: 2px; background: rgba(255,255,255,0.35); border-radius: 2px; }
.story-progress span.active { background: #fff; }

.story-header-row {
  position: absolute; top: 62px; left: 0; right: 0; z-index: 4;
  padding: 8px 12px; display: flex; align-items: center; gap: 10px;
}
.story-avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 1px solid rgba(255,255,255,0.3); flex-shrink: 0;
}
.story-user-block { flex: 1; min-width: 0; }
.story-username {
  color: #fff; font-size: 13px; font-weight: 700;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5); line-height: 1.2;
}
.story-sponsored {
  color: rgba(255,255,255,0.85); font-size: 11px; font-weight: 400;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5); margin-top: 1px;
}
.story-sponsored.hidden { display: none; }
.story-top-icons {
  display: flex; align-items: center; gap: 16px;
  color: #fff; font-size: 20px; font-weight: 300; flex-shrink: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.story-bubble {
  position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%);
  z-index: 4; width: 78%; max-width: 300px;
  background: #fff; border-radius: 22px; padding: 16px 20px;
  color: #000; font-size: 16px; font-weight: 700; line-height: 1.35;
  text-align: center; box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.story-bubble.hidden { display: none; }

.story-bottom-area {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 4;
  padding: 0 16px 0; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 100%);
}
.story-cta {
  width: 100%; max-width: 340px; background: #fff; color: #000;
  font-size: 15px; font-weight: 600; text-align: center;
  padding: 14px 20px; border-radius: 999px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.story-cta.hidden { display: none; }

.story-send-bar {
  width: 100%; max-width: 340px;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: text; min-height: 44px;
}
.story-send-bar.hidden { display: none; }
.story-send-input {
  flex: 1; min-width: 0; color: #fff; font-size: 16px; font-weight: 400;
  letter-spacing: -0.2px; outline: none; line-height: 1.3;
  white-space: nowrap; overflow: hidden;
}
.story-send-input:empty::before {
  content: attr(data-placeholder);
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
}
.story-send-icon {
  flex-shrink: 0; color: #fff; display: flex; align-items: center;
  pointer-events: none;
}
.story-send-icon svg { display: block; }

#gramStory .device-bottom-chrome {
  position: relative; background: none; padding: 0 0 10px; width: 100%;
}
/* ===== CRIPBOOK ===== */
#fbPost {
  width: 500px; max-width: 95%; border-radius: 8px; padding: 12px 16px 0;
}
.fb-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
#fbProfilePic { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; }
.fb-meta { flex: 1; min-width: 0; }
.fb-name { font-weight: 600; font-size: 15px; color: #050505; }
.post-card.dark-theme .fb-name { color: var(--white); }
.fb-subline { font-size: 13px; color: #65676B; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.fb-subline i { font-size: 11px; }
#fbText { font-size: 15px; line-height: 1.45; margin-bottom: 12px; min-height: 24px; }
.fb-images {
  width: calc(100% + 32px); margin-left: -16px;
  display: grid; gap: 2px; background: #ced0d4; overflow: hidden;
}
.fb-images-1 { grid-template-columns: 1fr; }
.fb-images-1 .fb-img-cell { aspect-ratio: 16 / 10; max-height: 500px; }
.fb-images-2 { grid-template-columns: 1fr 1fr; }
.fb-images-2 .fb-img-cell { aspect-ratio: 1; }
.fb-images-3 { grid-template-columns: 1fr 1fr; }
.fb-images-3 .fb-img-cell:first-child { grid-row: span 2; aspect-ratio: 1 / 2; }
.fb-images-3 .fb-img-cell:not(:first-child) { aspect-ratio: 1; }
.fb-images-4 { grid-template-columns: 1fr 1fr; }
.fb-images-4 .fb-img-cell { aspect-ratio: 1; }
.fb-img-cell {
  position: relative;
  overflow: hidden;
  background: #e4e6eb;
  cursor: pointer;
  width: 100%;
  min-height: 120px;
}
.fb-img-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.fb-img-cell .fb-img-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #65676b; font-size: 13px; pointer-events: none;
}
.fb-reactions-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; margin-top: 10px; border-top: 1px solid #CED0D4;
  font-size: 13px; color: #65676B;
}
.post-card.dark-theme .fb-reactions-bar { border-color: #3e4042; color: #b0b3b8; }
.fb-react-icons { display: flex; align-items: center; gap: 0; }
.fb-react-emoji {
  width: 18px; height: 18px; border-radius: 50%; gap: 5px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 13px;
  margin-right: -4px; border: 2px solid var(--white);
  cursor: pointer; transition: transform 0.15s, opacity 0.15s;
  user-select: none;
}
.fb-react-emoji:hover { transform: scale(1.12); }
.fb-react-emoji.hidden { display: none !important; }
.post-card.dark-theme .fb-react-emoji { border-color: var(--darkGrey); }
.fb-react-count {
  margin-left: 8px; font-size: 13px; color: inherit;
  white-space: nowrap; display: inline-block; line-height: 1.2;
  outline: none; min-width: 1ch;
}

.fb-action-row {
  display: flex; border-top: 1px solid #CED0D4; padding: 4px 0 8px;
}
.post-card.dark-theme .fb-action-row { border-color: #3e4042; }
.fb-action {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 10px; font-size: 15px; font-weight: 600;
  color: #65676B; cursor: pointer; user-select: none;
  transition: color 0.15s, background 0.15s; border-radius: 6px;
}
.fb-action:hover { background: rgba(0,0,0,0.04); }
.fb-action.like-action.active { color: var(--fb-blue); }
.fb-action.like-action.active i { color: var(--fb-blue); }
.post-card.dark-theme .fb-action:hover { background: rgba(255,255,255,0.06); }
.post-card.dark-theme .fb-action { color: #b0b3b8; }
.fb-action i { font-size: 18px; }
.fb-action.like-action i { color: var(--fb-blue); }

/* ===== CRIPCORD (Discord desktop) ===== */
#discordPost.discord-app {
  display: grid;
  grid-template-columns: 72px 240px minmax(0, 1fr) 252px;
  width: min(1100px, 98%);
  height: 580px;
  margin: 0 auto;
  background: #313338;
  color: #dbdee1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #1e1f22;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  position: relative;
  font-family: "gg sans", "Segoe UI", system-ui, sans-serif;
  font-size: 14px;
}
#discordPost.discord-app.discord-light {
  background: #fff; color: #2e3338; border-color: #e3e5e8;
}

/* Server rail */
.discord-rail {
  background: #1e1f22;
  display: flex; flex-direction: column; align-items: center;
  padding: 12px 0; gap: 8px;
  border-right: 1px solid #1a1b1e;
}
.discord-rail-pill {
  width: 48px; height: 48px; border-radius: 50%;
  background: #313338; transition: border-radius 0.15s;
  flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: #23a559; font-size: 22px; font-weight: 300;
}
.discord-rail-pill--active {
  border-radius: 16px; background: #5865f2;
}
.discord-rail-icon { width: 100%; height: 100%; object-fit: cover; }
.discord-rail-icon.clickableImg { cursor: pointer; }
.discord-rail-pill--add { color: #23a559; font-size: 26px; cursor: default; }

/* Channel sidebar */
.discord-sidebar {
  background: #2b2d31;
  display: flex; flex-direction: column;
  min-width: 0; border-right: 1px solid #1e1f22;
}
.discord-light .discord-sidebar { background: #f2f3f5; border-color: #e3e5e8; }
.discord-server-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; font-weight: 600; font-size: 15px; color: #f2f3f5;
  border-bottom: 1px solid #1e1f22; box-shadow: 0 1px 0 rgba(0,0,0,0.12);
  flex-shrink: 0; min-height: 48px;
}
.discord-server-head .discord-server-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discord-light .discord-server-head { color: #060607; border-color: #e3e5e8; box-shadow: none; }
.discord-boost-bar {
  padding: 6px 12px 8px; display: flex; flex-direction: column; gap: 5px;
  flex-shrink: 0;
}
.discord-boost-track {
  height: 3px; background: #1e1f22; border-radius: 2px; overflow: hidden;
}
.discord-boost-fill { width: 8.1%; height: 100%; background: #5865f2; border-radius: 2px; }
.discord-boost-label { font-size: 11px; font-weight: 500; color: #949ba4; line-height: 1.2; }
.discord-nav { padding: 4px 8px 6px; flex-shrink: 0; }
.discord-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px; margin-bottom: 2px; border-radius: 4px;
  color: #949ba4; font-size: 14px; font-weight: 500; cursor: default;
}
.discord-nav-icon {
  flex-shrink: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  color: #949ba4;
}
.discord-nav-item .editable { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discord-nav-item--active {
  background: #404249; color: #fff;
}
.discord-nav-item--active .discord-nav-icon { color: #fff; }
.discord-nav-item:not(.discord-nav-item--active):hover { background: rgba(79,84,92,0.2); color: #dbdee1; }
.discord-nav-item:not(.discord-nav-item--active):hover .discord-nav-icon { color: #dbdee1; }
.discord-channel-group {
  flex: 1; overflow-x: hidden; overflow-y: auto;
  padding: 4px 8px 8px; min-height: 0;
}
.discord-channel-cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; color: #949ba4; padding: 10px 4px 4px;
}
.discord-channel {
  display: flex; align-items: center; gap: 2px;
  padding: 6px 8px; margin-bottom: 1px; border-radius: 4px;
  color: #949ba4; font-size: 15px; font-weight: 500; cursor: default;
}
.discord-channel .editable { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.discord-channel--active {
  background: #404249; color: #f2f3f5;
}
.discord-light .discord-channel--active { background: rgba(79,84,92,0.16); color: #060607; }
.discord-channel-hash {
  font-size: 20px; font-weight: 400; line-height: 1; color: inherit;
  opacity: 0.55; width: 18px; flex-shrink: 0; text-align: center;
}
.discord-channel-box {
  font-size: 10px; font-weight: bolder; line-height: 1; color: white;
  width: auto; flex-shrink: 0; text-align: center;
  background: #016dfb81; border-radius: 2px; display: inline-block; padding: 4px 4px;
}
.discord-channel--active .discord-channel-hash { opacity: 0.7; }
.discord-channel:not(.discord-channel--active):hover { background: rgba(79,84,92,0.24); color: #dbdee1; }

/* User area (activity + profile — Discord-style) */
.discord-user-area { flex-shrink: 0; background: #232428; }
.discord-light .discord-user-area { background: #ebedef; }
.discord-activity-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; background: #232428; min-height: 36px;
  border-radius: 8px 8px 0 0;
}
.discord-light .discord-activity-bar { background: #e3e5e8; }
.discord-activity-bar.hidden { display: none; }
.discord-activity-app {
  width: 16px; height: 16px; flex-shrink: 0; display: block;
  border-radius: 3px; object-fit: contain;
}
.discord-activity-app.clickableImg { cursor: pointer; }
.discord-activity-name {
  flex: 1; min-width: 0; font-size: 12px; font-weight: 600; color: #f2f3f5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.2;
}
.discord-light .discord-activity-name { color: #060607; }
.discord-activity-stream {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: #949ba4; width: 18px; height: 18px;
}
.discord-light .discord-activity-stream { color: #5c5e66; }
.discord-user-panel {
  position: relative; overflow: hidden; background: #232428;
}
.discord-light .discord-user-panel { background: #ebedef; }
.discord-user-banner {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #1a3a5c 0%, #2d1b4e 55%, #4a1942 100%);
  opacity: 0.92;
}
.discord-light .discord-user-banner {
  background: linear-gradient(90deg, #c7d2fe 0%, #ddd6fe 55%, #fbcfe8 100%);
  opacity: 0.55;
}
.discord-user-row {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
}
.discord-user-meta { flex: 1; min-width: 0; line-height: 1.25; }
.discord-user-name {
  display: block; font-size: 13px; font-weight: 600; color: #f2f3f5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.discord-light .discord-user-name { color: #060607; }
.discord-user-activity {
  display: block; font-size: 11px; color: #b5bac1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.discord-light .discord-user-activity { color: #5c5e66; }
.discord-user-controls {
  display: flex; align-items: center; gap: 2px; flex-shrink: 0;
}
.discord-ctrl-btn {
  width: 28px; height: 28px; border: none; border-radius: 4px;
  background: transparent; color: #b5bac1; font-size: 14px;
  cursor: default; display: flex; align-items: center; justify-content: center;
}
.discord-light .discord-ctrl-btn { color: #5c5e66; }

/* Avatar + presence status */
.discord-avatar-wrap { position: relative; display: inline-flex; flex-shrink: 0; }
.discord-avatar-wrap--panel { width: 32px; height: 32px; }
.discord-avatar-wrap--member { width: 32px; height: 32px; }
.discord-user-avatar,
.discord-member-avatar {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
}
.discord-user-avatar.clickableImg,
.discord-member-avatar.clickableImg { cursor: pointer; }
.discord-status {
  position: absolute; right: -2px; bottom: -2px;
  width: 14px; height: 14px; padding: 0; border: none;
  border-radius: 50%; box-sizing: border-box;
  border: 3px solid #232428; cursor: pointer;
  background: #23a559; z-index: 2;
}
.discord-avatar-wrap--member .discord-status { border-color: #2b2d31; }
.discord-light .discord-status { border-color: #ebedef; }
.discord-light .discord-avatar-wrap--member .discord-status { border-color: #f2f3f5; }
.discord-status--online { background: #23a559; }
.discord-status--idle {
  width: 10px; height: 10px;
  right: -1px; bottom: -1px;
  background-color: transparent;
  background-image: url("https://cdn3.emoji.gg/emojis/3929_idle.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: none;
  border-radius: 0;
}
.discord-avatar-wrap--panel .discord-status--idle {
  background-image: url("https://cdn3.emoji.gg/emojis/3929_idle.png");
  width: 10px; height: 10px;
  right: -1px; bottom: -1px;
}
.discord-light .discord-status--idle {
  background-image: url("https://cdn3.emoji.gg/emojis/3929_idle.png");
  width: 10px; height: 10px;
  right: -1px; bottom: -1px;
}
.discord-status--dnd { background: #f23f43; }
.discord-status--offline { background: #80848e; }
.discord-status--dnd::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 2px; background: #313338; border-radius: 1px;
  transform: translate(-50%, -50%);
}

/* CripCord theme — coloured profile rings (toggle in ⋯ menu) */
#discordPost.discord-smurf-theme .discord-status { display: none !important; }
#discordPost.discord-smurf-theme .discord-avatar-wrap--panel,
#discordPost.discord-smurf-theme .discord-avatar-wrap--member {
  border-radius: 50%;
  box-sizing: content-box;
}
#discordPost.discord-smurf-theme .discord-avatar-wrap[data-discord-ring="online"] {
  box-shadow: 0 0 0 2.5px #23a559;
}
#discordPost.discord-smurf-theme .discord-avatar-wrap[data-discord-ring="idle"] {
  box-shadow: 0 0 0 2.5px #f0b232;
}
#discordPost.discord-smurf-theme .discord-avatar-wrap[data-discord-ring="dnd"] {
  box-shadow: 0 0 0 2.5px #f23f43;
}
#discordPost.discord-smurf-theme .discord-avatar-wrap[data-discord-ring="offline"] {
  box-shadow: 0 0 0 2.5px #80848e;
}
#discordPost.discord-smurf-theme.discord-light .discord-avatar-wrap[data-discord-ring="offline"] {
  box-shadow: 0 0 0 2.5px #949ba4;
}

/* Main chat */
.discord-main {
  display: flex; flex-direction: column; min-width: 0; background: #313338;
  position: relative;
}
.discord-light .discord-main { background: #fff; }
.discord-menu { position: absolute; top: 8px; right: 8px; z-index: 5; }
.discord-channel-bar {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 10px 48px 10px 16px;
  background: #313338; border-bottom: 1px solid #26272b;
  font-weight: 600; font-size: 15px; color: #f2f3f5;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1);
}
.discord-light .discord-channel-bar {
  background: #fff; border-color: #e3e5e8; color: #060607;
}
.discord-channel-name { font-weight: 600; flex-shrink: 0; }
.discord-channel-topic {
  font-size: 12px; font-weight: 400; color: #949ba4;
  margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 1; min-width: 0;
}
.discord-messages {
  flex: 1; overflow-y: auto; padding: 16px 0 8px;
}
.discord-message {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 4px 16px 8px; position: relative;
}
.discord-message:hover { background: rgba(0,0,0,0.06); }
.discord-light .discord-message:hover { background: rgba(0,0,0,0.03); }
.discord-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0; margin-top: 2px; cursor: pointer;
}
.discord-message-body { flex: 1; min-width: 0; }
.discord-message-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-bottom: 4px; line-height: 1.2;
}
.discord-username { font-weight: 600; font-size: 15px; color: #f2f3f5; }
.discord-light .discord-username { color: #060607; }
.discord-bot-badge {
  display: inline-flex; align-items: center;
  padding: 1px 4px; border-radius: 3px;
  background: #5865f2; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
}
.discord-bot-badge--sm { font-size: 9px; padding: 0 3px; vertical-align: middle; }
.discord-bot-badge.hidden { display: none !important; }
.discord-timestamp { font-size: 11px; font-weight: 500; color: #949ba4; }
.discord-text {
  font-size: 15px; line-height: 1.375; color: #dbdee1;
  white-space: pre-wrap; word-break: break-word;
}
.discord-light .discord-text { color: #2e3338; }
.discord-text strong { font-weight: 700; color: #00a8fc; }
.discord-light .discord-text strong { color: #006ce7; }
.discord-attachment { margin-top: 8px; max-width: 400px; }
.discord-attachment-wrap {
  position: relative; display: inline-block; max-width: 100%;
}
.discord-attach-img {
  display: block; max-width: 100%; border-radius: 8px;
  max-height: 220px; object-fit: cover; cursor: pointer;
  border: 1px solid rgba(0,0,0,0.25);
}
.discord-attach-hover {
  position: absolute; top: 8px; right: 8px; z-index: 4;
  display: flex; align-items: center; gap: 2px;
  padding: 3px 4px;
  background: #111214; border: 1px solid #1e1f22; border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}
.discord-attachment-wrap:hover .discord-attach-hover {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.discord-light .discord-attach-hover {
  background: #fff; border-color: #e3e5e8;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.discord-attach-hover-emoji {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: none; border-radius: 4px;
  background: transparent; font-size: 18px; line-height: 1; cursor: default;
}
.discord-attach-hover-emoji:hover { background: #35373c; }
.discord-light .discord-attach-hover-emoji:hover { background: #e3e5e8; }
.discord-attach-hover-divider {
  width: 1px; height: 20px; margin: 0 2px;
  background: #3f4147; flex-shrink: 0;
}
.discord-light .discord-attach-hover-divider { background: #d4d7dc; }
.discord-attach-hover-action {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; padding: 0; border: none; border-radius: 4px;
  background: transparent; color: #b5bac1; cursor: default;
}
.discord-attach-hover-action:hover { background: #35373c; color: #dbdee1; }
.discord-light .discord-attach-hover-action { color: #5c5e66; }
.discord-light .discord-attach-hover-action:hover { background: #e3e5e8; color: #2e3338; }

.discord-reactions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px; margin-top: 8px;
}
.discord-reaction {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 8px; border-radius: 8px;
  background: #2b2d31; border: 1px solid transparent;
  font-size: 14px; line-height: 1; color: #b5bac1; cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
}
.discord-reaction:hover:not(.discord-reaction-add) {
  background: #35373c; border-color: #3f4147;
}
.discord-light .discord-reaction { background: #f2f3f5; color: #4e5058; }
.discord-light .discord-reaction:hover:not(.discord-reaction-add) {
  background: #e3e5e8; border-color: #d4d7dc;
}
.discord-reaction.discord-reaction-active {
  background: rgba(79, 84, 124, 0.55); border-color: #5865f2;
}
.discord-light .discord-reaction.discord-reaction-active {
  background: rgba(88, 101, 242, 0.15); border-color: #5865f2;
}
.discord-reaction-count {
  font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums;
  color: #dbdee1; cursor: text;
}
.discord-light .discord-reaction-count { color: #2e3338; }
.discord-reaction-active .discord-reaction-count { color: #dee0fc; }
.discord-light .discord-reaction-active .discord-reaction-count { color: #4752c4; }
.discord-reaction-add {
  width: 26px; height: 26px; padding: 0; justify-content: center;
  color: #949ba4; border: 1px solid transparent;
}
.discord-reaction-add:hover { background: #35373c; color: #b5bac1; }
.discord-light .discord-reaction-add:hover { background: #e3e5e8; color: #5c5e66; }
.discord-reaction-emoji { cursor: text; line-height: 1; font-size: 15px; }
.discord-member-app { cursor: pointer; }
#discordPost .editable:focus {
  outline: 1px dashed rgba(88, 101, 242, 0.55);
  outline-offset: 2px; border-radius: 3px;
}
#discordPost .discord-members-search.editable:empty::before {
  content: "Search"; color: #949ba4; pointer-events: none;
}
.discord-light #discordPost .discord-members-search.editable:empty::before { color: #5c5e66; }
.discord-compose {
  display: flex; align-items: center; gap: 8px;
  margin: 0 16px 16px; padding: 0 12px;
  min-height: 44px; background: #383a40; border-radius: 8px;
  flex-shrink: 0; color: #949ba4; font-size: 14px;
}
.discord-light .discord-compose { background: #ebedef; color: #5c5e66; }
.discord-compose-plus {
  flex-shrink: 0; width: 32px; height: 32px; padding: 0; border: none;
  background: transparent; color: #b5bac1; cursor: default;
  display: flex; align-items: center; justify-content: center;
}
.discord-light .discord-compose-plus { color: #5c5e66; }
.discord-compose-input {
  flex: 1; min-width: 0; display: flex; align-items: center;
  flex-wrap: nowrap; overflow: hidden; line-height: 1.3;
}
.discord-compose-prefix {
  color: #949ba4; font-size: 14px; flex-shrink: 0;
}
.discord-light .discord-compose-prefix { color: #5c5e66; }
.discord-compose-channel-tag {
  display: inline-flex; align-items: center; gap: 3px;
  color: #949ba4; flex-shrink: 0; margin-right: 4px;
}
.discord-compose-hash { font-size: 15px; font-weight: 500; opacity: 0.85; }
.discord-compose-channel-icon { flex-shrink: 0; opacity: 0.9; }
.discord-compose-pipe { opacity: 0.55; font-size: 13px; margin: 0 1px; }
.discord-compose-channel {
  color: #949ba4; font-size: 14px; font-weight: 400;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  min-width: 2ch;
}
.discord-light .discord-compose-channel { color: #5c5e66; }
.discord-compose-tools {
  display: flex; align-items: center; gap: 2px; flex-shrink: 0;
}
.discord-compose-tool {
  width: 32px; height: 32px; padding: 0; border: none;
  background: transparent; color: #b5bac1; cursor: default;
  display: flex; align-items: center; justify-content: center;
}
.discord-light .discord-compose-tool { color: #5c5e66; }
.discord-compose-gif {
  width: auto; min-width: 32px; padding: 0 6px;
}
.discord-compose-gif span {
  font-size: 10px; font-weight: 800; letter-spacing: 0.02em;
  padding: 3px 5px; border-radius: 4px;
  border: 1.5px solid currentColor; line-height: 1;
}
.discord-light .discord-compose-channel-icon path:first-child { fill: #5c5e66; }
.discord-light .discord-compose-channel-icon path:last-child { stroke: #ebedef; }

/* Member list */
.discord-members {
  background: #2b2d31; border-left: 1px solid #1e1f22;
  padding: 12px 8px; overflow-x: hidden; overflow-y: auto;
}
.discord-light .discord-members { background: #f2f3f5; border-color: #e3e5e8; }
.discord-members-search {
  font-size: 12px; color: #949ba4; padding: 6px 8px; margin-bottom: 8px;
  background: #1e1f22; border-radius: 4px;
}
.discord-light .discord-members-search { background: #e3e5e8; color: #5c5e66; }
.discord-member-group { margin-bottom: 12px; }
.discord-member-cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.02em; color: #949ba4; padding: 4px 8px 6px;
}
.discord-member {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 8px; border-radius: 4px; font-size: 14px; color: #dbdee1;
}
.discord-light .discord-member { color: #2e3338; }
.discord-member-body { flex: 1; min-width: 0; padding-top: 1px; }
.discord-member-row {
  display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; min-width: 0;
}
.discord-member-row .discord-member-name {
  flex: 1; min-width: 0; max-width: none;
}
.discord-member-name {
  font-size: 14px; font-weight: 500; line-height: 1.2;
  font-family: "gg sans", "Segoe UI", system-ui, sans-serif;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 100%; color: #dbdee1;
}
.discord-light .discord-member-name { color: #2e3338; }
.discord-member-name--founder,
.discord-member-name[data-role="founder"] { color: #feed00; font-weight: 600; }
.discord-member-name--role-blue,
.discord-member-name[data-role="blue"] { color: #71b8ff; font-weight: 500; }
.discord-member-name--role-amber,
.discord-member-name[data-role="amber"] { color: #f5a623; }
.discord-member-name[data-role="green"] { color: #57f287; }
.discord-member-name[data-role="red"] { color: #ed4245; }
.discord-member-name[data-role="purple"] { color: #c084fc; }
.discord-member-status {
  display: block; margin-top: 2px;
  font-size: 11px; font-weight: 400; line-height: 1.25; color: #949ba4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.discord-light .discord-member-status { color: #5c5e66; }
.discord-member-row .discord-bot-badge { flex-shrink: 0; margin-top: 1px; }
.discord-member-row .discord-member-tag { flex-shrink: 0; }
.discord-member-tag {
  display: inline-flex; align-items: center; gap: 4px;
  height: 16px; padding: 0 6px 0 5px; border-radius: 4px;
  background: #232428; cursor: pointer;
}
.discord-light .discord-member-tag { background: #e3e5e8; }
.discord-member-tag--dm { padding: 0 7px 0 5px; }
.discord-member-tag-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.03em;
  color: #fff; line-height: 1; text-transform: uppercase;
}
.discord-light .discord-member-tag-label { color: #2e3338; }
.discord-member-tag--nitro {
  width: 16px; height: 16px; padding: 0; justify-content: center;
  background: transparent; margin-left: -1px;
}
.discord-member-tag--nitro img {
  display: block; width: 12px; height: 12px; flex-shrink: 0;
}
.discord-member-status--custom { color: #949ba4; }
.discord-member-status--rich {
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap; overflow: hidden;
}
.discord-member-status-icon {
  display: flex; align-items: center; flex-shrink: 0; line-height: 0;
}
.discord-member-status-sep {
  flex-shrink: 0; color: #72767d; font-size: 12px; line-height: 1;
}
.discord-member-status-emoji {
  flex-shrink: 0; font-size: 12px; line-height: 1; cursor: text;
}
.discord-member-status-text {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis;
  cursor: text;
}
.discord-member--off { opacity: 0.45; }
.discord-member--off .discord-member-avatar { filter: grayscale(0.35); }
.discord-member--off .discord-member-name { color: #949ba4; }
.discord-member--off .discord-member-name[data-role="founder"] { color: rgba(254, 237, 0, 0.55); }
.discord-member--off .discord-member-name[data-role="blue"] { color: rgba(113, 184, 255, 0.55); }
.discord-member--off .discord-member-name[data-role="amber"] { color: rgba(245, 166, 35, 0.55); }
.discord-member--off .discord-member-status { color: #72767d; }

@media (max-width: 900px) {
  #discordPost.discord-app {
    grid-template-columns: 56px 180px minmax(0, 1fr);
    height: auto; min-height: 480px;
  }
  .discord-members { display: none; }
}


/* ===== CRIPTOK ===== */
#tiktokPost {
  width: 390px; max-width: 95%; height: 844px;
  border-radius: 28px; overflow: hidden;
  background: #000; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 24px 64px rgba(0,0,0,0.55);
}
#tiktokPost::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 130px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
  z-index: 2; pointer-events: none;
}
#tiktokPost::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 35%, rgba(0,0,0,0.12) 65%, transparent 100%);
  z-index: 2; pointer-events: none;
}
.tok-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tok-video-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: rgba(255,255,255,0.5); font-size: 13px; cursor: pointer;
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f0f 100%);
}
.tok-video-placeholder i { font-size: 42px; opacity: 0.4; }
.tok-top-bar {
  position: absolute; top: 50px; left: 0; right: 0; padding: 8px 16px;
  display: flex; justify-content: center; gap: 20px; z-index: 3;
  background: none;
}
.tok-tab { color: rgba(255,255,255,0.55); font-size: 16px; font-weight: 600; }
.tok-tab.active { color: #fff; border-bottom: 2px solid #fff; padding-bottom: 2px; }
.tok-sidebar {
  position: absolute; right: 8px; bottom: 120px; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.tok-side-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tok-side-avatar {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff;
  object-fit: cover; margin-bottom: 4px;
}
.tok-side-item svg, .tok-side-item i { color: #fff; font-size: 28px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.tok-side-count { color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.7); }
.tok-bottom {
  position: absolute; bottom: 34px; left: 0; right: 62px;
  padding: 0 14px 6px; z-index: 3; background: none;
}
.device-frame.no-device #tiktokPost .tok-bottom { bottom: 18px; }
#tiktokPost .device-bottom-chrome {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: none; padding-bottom: 6px; z-index: 4;
}
.device-frame.no-device #tiktokPost .device-bottom-chrome { display: none; }
.tok-username { color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 8px; text-shadow: 0 1px 3px rgba(0,0,0,0.9); }
#tokCaption {
  color: #fff; font-size: 15px; line-height: 1.4;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9); margin-bottom: 12px;
  max-height: 4.2em; overflow: hidden;
}
.tok-music {
  display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
}
.tok-music i { animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tok-disc {
  position: absolute; bottom: 36px; right: 8px; width: 48px; height: 48px;
  border-radius: 50%; background: #222; border: 8px solid #111;
  overflow: hidden; z-index: 3; animation: spin 4s linear infinite;
  cursor: pointer; transition: transform 0.15s, opacity 0.15s;
}
.tok-disc:hover { opacity: 0.9; transform: scale(1.06); }
body.is-exporting .tok-disc { animation: none; }
.tok-disc img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

/* ===== CRIPCHAT (SNAPCHAT) ===== */
.chat-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
#snapStory, #snapChat {
  width: 390px; max-width: 95%; height: 844px;
  border-radius: 28px; overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 24px 64px rgba(0,0,0,0.55);
}

/* --- Story viewer --- */
#snapStory { background: #000; }
.snap-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.snap-story-media-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.snap-story-progress {
  position: absolute; top: 50px; left: 8px; right: 8px; z-index: 4;
  display: flex; gap: 4px;
}
.snap-story-progress span {
  flex: 1; height: 2.5px; border-radius: 2px;
  background: rgba(255,255,255,0.35);
}
.snap-story-progress span.done { background: #fff; }
.snap-story-progress span.active {
  background: linear-gradient(90deg, #fff 65%, rgba(255,255,255,0.35) 65%);
}
.snap-top {
  position: absolute; top: 62px; left: 0; right: 0; padding: 8px 12px;
  display: flex; align-items: center; gap: 8px; z-index: 4;
}
.snap-back { color: #fff; font-size: 22px; font-weight: 300; line-height: 1; padding: 4px 6px; }
.snap-story-avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; flex-shrink: 0;
}
.snap-top-user {
  flex: 1; color: #fff; font-weight: 600; font-size: 14px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.snap-story-time { font-weight: 400; opacity: 0.85; font-size: 13px; }
.snap-top-actions { display: flex; gap: 16px; color: #fff; font-size: 18px; }
.snap-story-footer {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 14px 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.4) 55%, transparent 100%);
  pointer-events: none;
}
.snap-story-footer > * { pointer-events: auto; }
.snap-caption-bar {
  color: #fff; font-size: 15px; line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.85);
  max-height: 100px; overflow: hidden; word-break: break-word;
}
.snap-bottom-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 0 0 8px;
}
#snapStory .device-bottom-chrome {
  position: relative; bottom: auto; left: auto; right: auto;
  background: none; padding: 0 0 6px;
}
.device-frame.no-device .snap-story-footer {
  padding-bottom: 14px;
}
.device-frame.no-device #snapStory .device-bottom-chrome {
  display: none;
}
.snap-reply {
  flex: 1; border: 1.5px solid rgba(255,255,255,0.55); border-radius: 24px;
  padding: 11px 18px; color: rgba(255,255,255,0.85); font-size: 15px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.snap-send-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--snap-yellow);
  display: flex; align-items: center; justify-content: center;
  color: #000; font-size: 15px; flex-shrink: 0;
}

/* --- Chat thread --- */
#snapChat {
  background: #fff; color: #000;
  display: flex; flex-direction: column;
  height: 844px; min-height: 844px;
}
#snapChat .device-statusbar { position: relative; pointer-events: none; }
.snap-chat-header {
  flex-shrink: 0; height: 52px; padding: 0 14px 0 6px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: #fff; z-index: 3;
}
.snap-chat-back {
  color: #000; font-size: 28px; font-weight: 300; line-height: 1;
  padding: 2px 6px 2px 2px; flex-shrink: 0;
}
.snap-chat-avatar-wrap { position: relative; flex-shrink: 0; }
.snap-chat-avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover; display: block;
}
.snap-online-dot {
  position: absolute; bottom: 0; right: 0; width: 10px; height: 10px;
  background: #00c853; border: 2px solid #fff; border-radius: 50%;
}
.snap-chat-title-block { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.snap-chat-name {
  font-weight: 600; font-size: 16px; letter-spacing: -0.2px; line-height: 1.2;
}
.snap-chat-sub { font-size: 12px; color: #8e8e93; font-weight: 400; line-height: 1.2; }
.snap-chat-actions {
  display: flex; align-items: center; gap: 20px; flex-shrink: 0;
  color: #000; font-size: 20px;
}
.snap-chat-actions svg { display: block; }
.snap-chat-body {
  flex: 1 1 auto; padding: 10px 14px 8px; overflow: hidden;
  background: #f7f7f8; display: flex; flex-direction: column; gap: 0; min-height: 0;
}
.snap-chat-footer {
  flex-shrink: 0; margin-top: auto; width: 100%;
}
.snap-chat-input {
  flex-shrink: 0; height: 56px; padding: 8px 12px 10px;
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid rgba(0,0,0,0.06); background: #fff;
}
#snapChat .device-bottom-chrome {
  position: relative; bottom: auto; left: auto; right: auto;
  background: #fff; padding: 0 0 6px;
}
.device-frame.no-device #snapChat .device-bottom-chrome {
  display: none;
}
.device-frame.no-device .snap-chat-input {
  padding-bottom: 14px;
}
.snap-chat-messages {
  flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 6px;
  padding-top: 4px; min-height: 0;
}
.snap-chat-date {
  align-self: center; font-size: 12px; color: #8e8e93; font-weight: 500;
  margin: 4px 0 8px; letter-spacing: -0.1px; flex-shrink: 0;
}
.snap-msg-row { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.snap-msg-row.snap-msg-sent { align-items: flex-end; }
.snap-msg-received { margin-bottom: 4px; }
.snap-text-bubble {
  max-width: 78%; padding: 10px 14px; background: #e9e9eb;
  border-radius: 18px; font-size: 15px; line-height: 1.35; color: #000;
  letter-spacing: -0.1px; word-break: break-word;
}
.snap-text-bubble.snap-sent {
  background: #0096ff; color: #fff;
}
.snap-text-bubble:focus { outline: 2px solid rgba(0,150,255,0.35); outline-offset: 1px; }
.snap-msg-status { font-size: 11px; color: #8e8e93; margin-left: 4px; margin-top: 2px; }
.snap-bubble {
  width: 220px; border-radius: 14px; overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  align-self: flex-start;
}
.snap-bubble-media {
  position: relative; width: 220px; height: 280px;
  background: #1a1a1a; overflow: hidden;
}
.snap-unopened {
  width: 100%; height: 100%; display: none;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
}
.snap-unopened.visible { display: flex; }
.snap-unopened.photo { background: #ff0039; }
.snap-unopened.video { background: #af007f; }
.snap-unopened-label {
  color: rgba(255,255,255,0.95); font-size: 14px; font-weight: 600;
  letter-spacing: -0.2px;
}
.snap-preview-wrap {
  position: absolute; inset: 0; display: none;
}
.snap-preview-wrap.visible { display: block; background: linear-gradient(145deg, #4a5568 0%, #1a202c 100%); }
.snap-preview-wrap.visible img[src]:not([src=""]) { background: none; }
.snap-preview-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.snap-preview-hint {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  background: rgba(0,0,0,0.25); color: #fff;
  font-size: 13px; font-weight: 500; opacity: 0;
  transition: opacity 0.15s; pointer-events: none;
}
.snap-preview-wrap:hover .snap-preview-hint { opacity: 1; pointer-events: auto; cursor: pointer; }
.snap-bubble-bar {
  height: 34px; padding: 0 10px; background: #000;
  display: flex; align-items: center; gap: 7px;
}
.snap-replay-icon {
  width: 20px; height: 20px; flex-shrink: 0;
}
.snap-bubble-label {
  color: #fff; font-size: 12px; font-weight: 500; letter-spacing: -0.1px;
}
.snap-cam-btn {
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%;
  background: var(--snap-yellow, #FFFC00);
  display: flex; align-items: center; justify-content: center;
  color: #000; font-size: 15px;
}
.snap-input-field {
  flex: 1; height: 38px; background: #f2f2f7;
  border-radius: 19px; padding: 0 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; min-width: 0;
}
.snap-input-text {
  flex: 1; min-width: 0; font-size: 15px; line-height: 38px; color: #000;
  outline: none; white-space: nowrap; overflow: hidden;
}
.snap-input-text:empty::before {
  content: attr(data-placeholder);
  color: #8e8e93; pointer-events: none;
}
.snap-input-icons { display: flex; align-items: center; gap: 12px; color: #8e8e93; font-size: 17px; flex-shrink: 0; }
#snapChat .mention { color: #000; font-weight: 600; }

/* Snapchat dark theme */
#snapStory.dark-theme .snap-reply { border-color: rgba(255,255,255,0.35); color: rgba(255,255,255,0.65); }
#snapChat.dark-theme {
  background: #0e0e0e; color: #fff;
}
#snapChat.dark-theme .device-statusbar {
  background: #0e0e0e; color: #fff;
}
#snapChat.dark-theme .snap-chat-header {
  background: #0e0e0e; border-bottom-color: rgba(255,255,255,0.08);
}
#snapChat.dark-theme .snap-chat-back,
#snapChat.dark-theme .snap-chat-name,
#snapChat.dark-theme .snap-chat-actions { color: #fff; }
#snapChat.dark-theme .snap-chat-actions svg {
  stroke: #fff;
  color: #fff;
}
#snapChat.dark-theme .snap-chat-sub { color: #8e8e93; }
#snapChat.dark-theme .snap-online-dot { border-color: #0e0e0e; }
#snapChat.dark-theme .snap-chat-body { background: #000; }
#snapChat.dark-theme .snap-text-bubble { background: #3a3a3c; color: #fff; }
#snapChat.dark-theme .snap-text-bubble.snap-sent { background: #0096ff; color: #fff; }
#snapChat.dark-theme .snap-msg-status { color: #8e8e93; }
#snapChat.dark-theme .snap-chat-input {
  background: #0e0e0e; border-top-color: rgba(255,255,255,0.08);
}
#snapChat.dark-theme .snap-chat-footer .device-bottom-chrome { background: #0e0e0e; }
#snapChat.dark-theme .snap-input-field { background: #2c2c2e; }
#snapChat.dark-theme .snap-input-text { color: #fff; }
#snapChat.dark-theme .snap-input-text:empty::before { color: #8e8e93; }
#snapChat.dark-theme .snap-input-icons { color: #8e8e93; }
#snapChat.dark-theme .device-bottom-chrome { background: #0e0e0e; }
#snapChat.dark-theme .device-home-indicator { background: #fff; opacity: 0.35; }
#snapChat.dark-theme .mention { color: #fff; }

/* ===== CRIPNEWS ===== */
.news-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.news-toolbar { width: min(960px, 100%); }
.news-frame {
  position: relative; width: 960px; max-width: 100%; aspect-ratio: 16 / 9;
  background: #111; overflow: hidden; flex-shrink: 0;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
  font-family: Arial, Helvetica, "Helvetica Neue", sans-serif;
}
.news-media { position: absolute; inset: 0; z-index: 0; }
.news-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.news-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: rgba(255,255,255,0.45); font-size: 14px; cursor: pointer;
  background: linear-gradient(145deg, #1c1c28 0%, #0a0a10 100%);
}
.news-placeholder i { font-size: 36px; opacity: 0.35; }
.news-ui {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.news-ui .editable { pointer-events: auto; outline: none; cursor: text; }
.news-ui .editable:focus { outline: 1px dashed rgba(255,255,255,0.35); outline-offset: 2px; }

/* --- shared pieces --- */
.news-top-cluster {
  position: absolute; top: 28px; left: 24px; display: flex; align-items: flex-start; gap: 0;
}
.news-live-badge {
  background: #bb1919; color: #fff; font-weight: 800; font-size: 15px;
  padding: 6px 12px; letter-spacing: 0.5px; line-height: 1.2; text-transform: uppercase;
}
.news-meta-lines { display: flex; flex-direction: column; }
.news-location {
  background: rgba(0,0,0,0.72); color: #fff; font-weight: 700; font-size: 14px;
  padding: 6px 14px; letter-spacing: 0.4px; text-transform: uppercase;
}
.news-time-line {
  background: rgba(40,40,40,0.78); color: #fff; font-weight: 700; font-size: 13px;
  padding: 5px 14px; letter-spacing: 0.35px; text-transform: uppercase;
  align-self: flex-start;
}
.news-break-block { position: relative; z-index: 3; }
.news-break-label {
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px;
}
.news-headline { font-weight: 700; text-transform: uppercase; line-height: 1.12; }
.news-subline { font-weight: 600; text-transform: uppercase; line-height: 1.25; }
.news-bottom-bar {
  position: relative; z-index: 4; display: flex; align-items: center;
  width: 100%; min-height: 36px; overflow: hidden;
}
.news-brand { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.bbc-sq {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; background: #fff; color: #000;
  font-weight: 900; font-size: 13px; line-height: 1;
}
.bbc-world { color: #fff; font-weight: 800; font-size: 13px; letter-spacing: 0.3px; margin-left: 4px; }

.news-ticker-label {
  background: #fff; color: #000; font-weight: 800; font-size: 11px;
  padding: 4px 10px; letter-spacing: 0.4px; flex-shrink: 0; margin-left: 8px;
}
.news-ticker-scroll { flex: 1; overflow: hidden; white-space: nowrap; }
.news-ticker-text {
  display: inline-block; color: #fff; font-weight: 700; font-size: 13px;
  letter-spacing: 0.35px; text-transform: uppercase; padding: 0 12px;
  animation: news-ticker-marquee 18s linear infinite;
}
@keyframes news-ticker-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.news-lower-world { display: none; }
.news-lower-extra { display: none; }

/* --- BBC Live --- */
.news-mode-bbc-live .news-break-block {
  align-self: flex-start; margin: 0 0 52px 24px; max-width: 58%;
  background: #fff; padding: 10px 16px 14px;
}
.news-mode-bbc-live .news-break-label { color: #bb1919; font-size: 15px; margin-bottom: 6px; }
.news-mode-bbc-live .news-headline { color: #000; font-size: 26px; margin-bottom: 8px; }
.news-mode-bbc-live .news-subline { color: #111; font-size: 13px; }
.news-mode-bbc-live .news-bottom-bar {
  background: #8b0000; padding: 0 0 0 8px;
}
.news-mode-bbc-live .news-brand-bbc { display: flex; padding: 6px 4px; }

/* --- BBC Lower third --- */
.news-mode-bbc-lower .news-top-cluster { display: none; }
.news-mode-bbc-lower .news-ui {
  flex-direction: column; justify-content: flex-end;
}
.news-mode-bbc-lower .news-lower-world {
  display: flex; align-items: center; gap: 8px;
  position: relative; left: auto; right: auto; bottom: auto;
  background: #bb1919; padding: 8px 16px 0; z-index: 3;
}
.news-mode-bbc-lower .news-world-letters { display: flex; gap: 3px; }
.news-mode-bbc-lower .news-world-letters span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; background: rgba(0,0,0,0.35); color: #fff;
  font-weight: 800; font-size: 12px;
}
.news-mode-bbc-lower .news-world-word { color: #fff; font-weight: 800; font-size: 14px; }
.news-mode-bbc-lower .news-breaking-pill {
  background: #fff; color: #bb1919; font-weight: 800; font-size: 12px;
  padding: 3px 10px; margin-left: 8px; text-transform: uppercase;
}
.news-mode-bbc-lower .news-break-block {
  position: relative; left: auto; right: auto; bottom: auto;
  background: #bb1919; padding: 4px 20px 14px; z-index: 3;
}
.news-mode-bbc-lower .news-break-label { display: none; }
.news-mode-bbc-lower .news-headline {
  color: #fff; font-family: "Newsreader", Georgia, "Times New Roman", serif;
  font-size: 28px; font-weight: 700; text-transform: none; margin-bottom: 4px;
}
.news-mode-bbc-lower .news-subline {
  color: #fff; font-size: 15px; text-transform: none; font-weight: 500;
}
.news-mode-bbc-lower .news-bottom-bar {
  background: #fff; padding: 0; min-height: 36px;
}
.news-mode-bbc-lower .news-brand-bbc,
.news-mode-bbc-lower .news-ticker-label,
.news-mode-bbc-lower .news-ticker-scroll { display: none; }
.news-mode-bbc-lower .news-lower-extra {
  display: flex; align-items: center; width: 100%; padding: 0 12px; gap: 8px;
}
.news-mode-bbc-lower .news-lower-dot {
  width: 10px; height: 10px; background: #bb1919; flex-shrink: 0;
}
.news-mode-bbc-lower .news-secondary {
  flex: 1; color: #333; font-size: 14px; font-weight: 600;
}
.news-mode-bbc-lower .news-date-wrap { display: flex; flex-shrink: 0; margin-left: auto; }
.news-mode-bbc-lower .news-date-tag {
  background: #bb1919; color: #fff; font-weight: 800; font-size: 12px;
  padding: 8px 10px;
}
.news-mode-bbc-lower .news-date-val {
  background: #fff; color: #bb1919; font-weight: 700; font-size: 13px;
  padding: 8px 12px; border: 1px solid #ddd;
}

/* hide LIVE cluster when toggled off */
.news-frame.news-live-hidden .news-live-badge { display: none; }
.news-frame.news-live-hidden .news-meta-lines { margin-left: 0; }

body.is-exporting .news-ticker-text { animation: none; }

/* ===== NPC GALLERY (NumberPlateCreator) ===== */
.npc-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
#npcGalleryCard {
  width: 340px; max-width: 95%;
  background: linear-gradient(165deg, #1a1428 0%, var(--npc-card) 55%, #0c0814 100%);
  border: 1px solid var(--npc-card-border);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 0 32px rgba(124,58,237,0.12);
  font-family: var(--font); color: #fff; position: relative;
}
.npc-img-wrap {
  position: relative; width: 100%; aspect-ratio: 4/3;
  background: #0a0610; overflow: hidden;
}
#npcGalleryImg {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.npc-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-size: 10px; font-weight: 800; letter-spacing: 0.6px;
  padding: 4px 10px; border-radius: 6px;
  background: var(--cyan); color: #041018;
  box-shadow: 0 2px 8px rgba(0,212,255,0.35);
}
.npc-expand {
  position: absolute; bottom: 10px; right: 10px; z-index: 2;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.85); font-size: 13px;
}
.npc-body { padding: 16px 16px 14px; }
.npc-title {
  font-size: 17px; font-weight: 700; line-height: 1.25;
  margin-bottom: 4px; color: #fff;
}
.npc-credit {
  font-size: 12px; color: #9b8ab8; margin-bottom: 14px; line-height: 1.4;
}
.npc-socials {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.npc-socials.hidden { display: none; }
.npc-social {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(20, 14, 32, 0.8);
  display: flex; align-items: center; justify-content: center;
  color: #b8a4d4; font-size: 15px;
}
.npc-like-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--npc-like);
  background: rgba(20, 14, 32, 0.6);
  width: fit-content; min-width: 72px;
}
.npc-like-bar svg { color: var(--npc-like); flex-shrink: 0; cursor: pointer; }
.npc-like-count { font-size: 14px; font-weight: 600; color: #f0e6ff; min-width: 12px; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92);
  display: none; justify-content: center; align-items: flex-start;
  z-index: 9999; overflow-y: auto; padding: 40px 16px;
}
.modal-overlay.flex { display: flex; }

/* Release refresh modal */
.release-modal { align-items: center; z-index: 10050; }
body.release-modal-open { overflow: hidden; }
.release-modal-box {
  width: min(480px, 94%); max-height: none; padding: 0;
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75), 0 0 48px rgba(0, 212, 255, 0.12);
}
.release-modal-header {
  padding: 24px 26px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(187, 25, 25, 0.22), rgba(0, 80, 160, 0.2));
}
.release-modal-ver {
  display: inline-block; font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 6px;
  background: rgba(0, 212, 255, 0.15); color: var(--cyan); margin-bottom: 10px;
}
.release-modal-header h2 {
  font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700; line-height: 1.25;
}
.release-modal-body { padding: 20px 26px; }
.release-modal-body p {
  font-size: 14px; line-height: 1.6; color: rgba(232, 244, 255, 0.9);
  white-space: pre-line; margin-bottom: 16px;
}
.release-modal-clears {
  list-style: none; font-size: 13px; color: var(--text-muted);
  display: flex; flex-direction: column; gap: 6px;
  padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
}
.release-modal-clears li::before { content: "• "; color: var(--cyan); }
.release-modal-actions {
  padding: 0 26px 24px; display: flex; justify-content: stretch;
}
.release-modal-ok {
  width: 100%; font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 14px 20px; border-radius: 10px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), #0099cc); color: #041018;
  box-shadow: 0 0 24px var(--cyan-glow); transition: 0.2s;
}
.release-modal-ok:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.release-modal-ok:disabled { opacity: 0.7; cursor: wait; }

.modal-box {
  background: linear-gradient(165deg, rgba(6, 22, 48, 0.97) 0%, rgba(5, 10, 20, 0.99) 100%);
  border: 1px solid var(--card-border);
  color: #fff; width: 680px; max-width: 95%; max-height: 88vh;
  overflow-y: auto; padding: 0; border-radius: 16px;
  position: relative; animation: pop 0.2s ease;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 212, 255, 0.08);
}
.help-header {
  padding: 28px 28px 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(135deg, rgba(0, 80, 160, 0.25), transparent);
}
.help-header h2 { font-family: 'Rajdhani', sans-serif; font-size: 26px; margin-bottom: 6px; }
.help-header p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.help-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; padding: 14px 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.help-tab {
  font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 8px 14px; border-radius: 8px 8px 0 0; border: none;
  background: transparent; color: var(--text-muted); cursor: pointer; transition: 0.2s;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.help-tab:hover { color: var(--text-primary); }
.help-tab.active { color: var(--cyan); border-bottom-color: var(--cyan); background: rgba(0,212,255,0.06); }
.help-body { padding: 20px 24px 28px; }
.help-panel { display: none; }
.help-panel.active { display: block; }
.help-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
@media (max-width: 560px) { .help-grid { grid-template-columns: 1fr; } }
.shortcut-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
  font-size: 13px; color: rgba(255,255,255,0.85);
}
.shortcut-row kbd {
  background: rgba(0,212,255,0.15); border: 1px solid rgba(0,212,255,0.3);
  padding: 3px 8px; border-radius: 5px; font-size: 11px; color: var(--cyan);
  font-family: inherit; white-space: nowrap;
}
.instruction-item { padding: 14px 16px; margin: 8px 0; border-radius: 10px; }
.instruction-item h3 { margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.instruction-item p { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.82); margin: 0; }
.green { border-left: 3px solid var(--green); background: rgba(52,173,0,0.1); }
.blue { border-left: 3px solid var(--cyan); background: rgba(0,212,255,0.07); }
.yellow { border-left: 3px solid var(--yellow); background: rgba(255,216,0,0.08); }
.amber { border-left: 3px solid var(--amber); background: rgba(245,166,35,0.08); }
.purple { border-left: 3px solid #bc1888; background: rgba(188,24,136,0.08); }
.closeModal {
  position: absolute; top: 18px; right: 22px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06); font-size: 16px;
  cursor: pointer; color: rgba(255,255,255,0.7); z-index: 2;
}
.closeModal:hover { color: #fff; background: rgba(245,0,0,0.25); border-color: var(--closeBtn); }

#exportModal { backdrop-filter: blur(8px); align-items: center; }
.exportBox {
  background: linear-gradient(240deg, rgba(0,100,180,0.95), rgba(5,10,20,0.98));
  border: 1px solid var(--card-border);
  padding: 24px; border-radius: 14px; width: 520px; max-width: 92%;
  max-height: 90vh; overflow-y: auto; text-align: center; animation: pop 0.2s ease;
}
.exportBox h3 { font-family: 'Rajdhani', sans-serif; font-size: 22px; margin-bottom: 12px; color: #fff; }
.exportBox img { width: 100%; border-radius: 10px; margin: 12px 0; }
.exportActions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.exportActions button {
  flex: 1; padding: 12px; border-radius: 10px; border: none; cursor: pointer;
  font-weight: 600; font-size: 14px; transition: 0.2s; min-width: 120px;
}
.exportActions button.export-gif-btn {
  background: linear-gradient(135deg, var(--tiktok-cyan), var(--tiktok-red));
  border-color: transparent; color: #fff;
}
.exportActions button.export-gif-btn:hover { filter: brightness(1.08); }
.exportActions button.export-gif-btn:disabled { opacity: 0.55; cursor: wait; }
.exportActions button.export-video-btn {
  background: linear-gradient(135deg, #25f4ee, #fe2c55);
  border-color: transparent; color: #fff;
}
.exportActions button.export-video-btn:hover { filter: brightness(1.08); }
.exportActions button.export-video-btn:disabled { opacity: 0.55; cursor: wait; }
#confirmExport { background: var(--cyan); color: #041018; }
#confirmExport:hover { box-shadow: 0 0 20px var(--cyan-glow); }
#cancelExport { background: rgba(255,255,255,0.12); color: #fff; }
#cancelExport:hover { background: rgba(255,255,255,0.2); }

/* ===== GIF export progress + status bar ===== */
.gif-export-overlay { backdrop-filter: blur(10px); align-items: center; z-index: 10050; }
.gif-export-modal {
  width: min(440px, 92vw); text-align: center; padding: 28px 24px;
}
.gif-export-modal h2 {
  font-family: 'Rajdhani', sans-serif; font-size: 24px; margin-bottom: 8px; color: #fff;
}
.gif-export-status { font-size: 15px; color: rgba(255,255,255,0.88); margin-bottom: 14px; }
.gif-export-detail { font-size: 12px; color: var(--text-muted); min-height: 18px; margin-bottom: 16px; }
.gif-export-progress-track {
  height: 8px; border-radius: 999px; background: rgba(255,255,255,0.1);
  overflow: hidden; margin-bottom: 8px;
}
.gif-export-progress-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--tiktok-cyan), var(--cyan));
  transition: width 0.25s ease;
}
.gif-export-progress-fill.is-indeterminate {
  width: 40% !important;
  animation: gif-progress-indeterminate 1.2s ease-in-out infinite;
}
@keyframes gif-progress-indeterminate {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}
.gif-export-continue {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08); color: #fff; font-weight: 600; cursor: pointer;
}
.gif-export-continue:hover { background: rgba(255,255,255,0.14); }
.gif-export-hint { font-size: 12px; color: var(--text-muted); margin-top: 10px; line-height: 1.45; }
.gif-export-done { margin-top: 8px; }
.gif-export-ready { color: var(--cyan); font-weight: 600; margin-bottom: 12px; }
.gif-save-library-label {
  display: flex; align-items: flex-start; gap: 10px; text-align: left;
  font-size: 14px; margin-bottom: 8px; cursor: pointer;
}
.gif-export-privacy { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.45; }
.gif-export-download {
  width: 100%; padding: 13px; border: none; border-radius: 10px; cursor: pointer;
  font-weight: 700; font-size: 15px;
  background: linear-gradient(135deg, var(--tiktok-cyan), var(--tiktok-red)); color: #fff;
}
.gif-export-download:hover { filter: brightness(1.08); }

.gif-export-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10060;
  background: linear-gradient(180deg, rgba(8,16,32,0.96), rgba(5,10,20,0.99));
  border-top: 1px solid rgba(0,212,255,0.45);
  box-shadow: 0 -8px 32px rgba(0,0,0,0.55), 0 0 24px rgba(0,212,255,0.12);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
}
.gif-export-bar:not([hidden]) { display: block; }
.gif-export-bar--working { animation: gif-bar-pulse 2s ease-in-out infinite; }
@keyframes gif-bar-pulse {
  0%, 100% { border-top-color: rgba(0,212,255,0.45); box-shadow: 0 -8px 32px rgba(0,0,0,0.55), 0 0 24px rgba(0,212,255,0.12); }
  50% { border-top-color: rgba(0,212,255,0.85); box-shadow: 0 -8px 32px rgba(0,0,0,0.55), 0 0 32px rgba(0,212,255,0.28); }
}
body.gif-bar-visible { padding-bottom: 60px; }
.gif-export-bar-inner {
  max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 10px;
}
.gif-bar-label { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34vw; }
.gif-export-bar-track {
  flex: 1; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.12); overflow: hidden; min-width: 80px;
}
.gif-export-bar-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, var(--tiktok-cyan), var(--cyan));
  transition: width 0.25s ease;
}
.gif-export-bar-fill.is-indeterminate {
  width: 35% !important;
  animation: gif-progress-indeterminate 1.2s ease-in-out infinite;
}
.gif-bar-pct { font-size: 12px; color: var(--cyan); font-weight: 700; min-width: 36px; text-align: right; }
.gif-bar-btn {
  padding: 7px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; flex-shrink: 0;
}
.gif-bar-save { background: var(--cyan); color: #041018; border-color: transparent; }
.gif-bar-dismiss { padding: 7px 10px; }

.footer {
  margin-top: 32px; text-align: center; font-size: 13px; color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.footer-social {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
}
.footer-social-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 12px; text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 0.3px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  animation: footerIconPulse 4s ease-in-out infinite;
}
.footer-social-link i { font-size: 18px; transition: transform 0.25s ease; }
.footer-social-link span { color: rgba(255,255,255,0.85); }
.footer-social-link:hover {
  transform: translateY(-3px) scale(1.04);
  animation: none;
}
.footer-social-link:hover i { transform: scale(1.15); }
.footer-social-link--discord {
  border-color: rgba(88,101,242,0.45); color: #5865f2;
  box-shadow: 0 0 20px rgba(88,101,242,0.12);
  animation-delay: 0s;
}
.footer-social-link--discord:hover {
  background: rgba(88,101,242,0.18); box-shadow: 0 6px 28px rgba(88,101,242,0.35);
  border-color: rgba(88,101,242,0.7);
  text-decoration: none;
}
.footer-social-link--email {
  border-color: rgba(0,212,255,0.4); color: var(--cyan);
  box-shadow: 0 0 20px rgba(0,212,255,0.1);
  animation-delay: 0.6s;
}
.footer-social-link--email:hover {
  background: rgba(0,212,255,0.12); box-shadow: 0 6px 28px rgba(0,212,255,0.3);
  border-color: rgba(0,212,255,0.65);
  text-decoration: none;
}
.footer-social-link--web {
  border-color: rgba(167,139,250,0.4); color: #a78bfa;
  box-shadow: 0 0 20px rgba(167,139,250,0.1);
  animation-delay: 1.2s;
}
.footer-social-link--web:hover {
  background: rgba(167,139,250,0.14); box-shadow: 0 6px 28px rgba(167,139,250,0.32);
  border-color: rgba(167,139,250,0.65);
  text-decoration: none;
}
@keyframes footerIconPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(255,255,255,0.04); }
  50% { box-shadow: 0 0 24px rgba(255,255,255,0.08); }
}
.footer-copy { margin: 0; }
.footer a { color: var(--cyan); text-decoration: none; }
.footer a:hover { text-decoration: none; }
.footer-social-link:hover span { text-decoration: none; }

body::-webkit-scrollbar, .modal-box::-webkit-scrollbar, .exportBox::-webkit-scrollbar { width: 6px; }
body::-webkit-scrollbar-thumb, .modal-box::-webkit-scrollbar-thumb, .exportBox::-webkit-scrollbar-thumb {
  background: linear-gradient(240deg, var(--cyan), rgba(0,0,0,0.5)); border-radius: 10px;
}

@keyframes pop { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ===== CRIPLOCK — iPhone 14 & Samsung A54 lock screens ===== */
.lock-wrap {
  display: flex; flex-direction: column; align-items: center; width: 100%;
}
.lock-toolbar {
  width: min(390px, 95%); justify-content: space-between; align-items: center;
  margin-bottom: 12px; flex-wrap: wrap; gap: 10px;
}
.lock-wrap--windows .lock-toolbar {
  width: min(960px, 95%);
}
.lock-os-toggle {
  display: inline-flex; align-items: center; gap: 3px; flex-wrap: wrap;
  padding: 5px; border-radius: 14px;
  background: rgba(4, 10, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.lock-os-toggle .lock-pill {
  font-family: 'Rajdhani', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.55px; text-transform: uppercase;
  padding: 9px 16px; border-radius: 10px; border: none;
  background: transparent; color: rgba(255, 255, 255, 0.45);
  cursor: pointer; transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
}
.lock-os-toggle .lock-pill:hover {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
}
.lock-os-toggle .lock-pill.active {
  color: #fff; transform: translateY(-1px);
}
#lockPillPro.active {
  background: linear-gradient(135deg, #6366f1 0%, #00d4ff 100%);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.28);
}
#lockPillIos.active {
  background: linear-gradient(135deg, #6366f1 0%, #d55cf6 100%);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
#lockPillAndroid.active {
  background: linear-gradient(135deg, #3ddc84 0%, #1a8f4a 100%);
  box-shadow: 0 4px 20px rgba(61, 220, 132, 0.28);
}
#lockPillWindows.active {
  background: linear-gradient(135deg, #0078d4 0%, #5c2d91 100%);
  box-shadow: 0 4px 20px rgba(0, 120, 212, 0.3);
}
#lockScreen {
  width: 390px; max-width: 95%; height: 844px;
  border-radius: 36px; overflow: hidden; position: relative;
  background: #0a0818; color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.06), 0 24px 48px rgba(0,0,0,0.45);
  display: flex; flex-direction: column;
}
#lockScreen.lock-frame.windows {
  width: min(960px, 95%);
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: none;
  border-radius: 4px;
  display: block;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.12),
    0 0 0 10px #141416,
    0 28px 64px rgba(0,0,0,0.55);
}
.lock-wrap--windows {
  width: 100%;
  max-width: min(960px, 95%);
}
.lock-wrap--windows::after {
  content: "";
  display: block;
  width: 38%;
  height: 10px;
  margin: 0 auto;
  background: linear-gradient(to bottom, #2a2a2e, #121214);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}
.lock-wallpaper-wrap {
  position: absolute; inset: 0; z-index: 1; cursor: pointer;
  background: linear-gradient(145deg, #1e3a5f 0%, #2d1b4e 35%, #4a1942 65%, #1a1a2e 100%);
}
.lock-wallpaper-wrap.lock-bg-ios {
  background: linear-gradient(145deg, #1e3a5f 0%, #2d1b4e 35%, #4a1942 65%, #1a1a2e 100%);
}
.lock-wallpaper-wrap.lock-bg-android {
  background: linear-gradient(160deg, #0d1b2a 0%, #1b263b 38%, #415a77 72%, #1a1a2e 100%);
}
.lock-wallpaper-wrap.lock-bg-windows {
  background: #0c1929;
}
.lock-wallpaper-wrap.lock-bg-windows::before,
.lock-wallpaper-wrap.lock-bg-windows::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.lock-wallpaper-wrap.lock-bg-windows::before {
  width: 120%; height: 55%; top: -8%; right: -35%;
  background: radial-gradient(circle, rgba(0,120,212,0.55) 0%, transparent 68%);
}
.lock-wallpaper-wrap.lock-bg-windows::after {
  width: 90%; height: 50%; bottom: 5%; left: -30%;
  background: radial-gradient(circle, rgba(138,43,226,0.38) 0%, transparent 70%);
}
.lock-wallpaper-wrap.lock-bg-pro {
  background: #050a14;
}
.lock-wallpaper-wrap.lock-bg-pro::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,212,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.045) 1px, transparent 1px);
  background-size: 24px 24px;
}
.lock-wallpaper-wrap.lock-bg-pro::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 50% 22%, rgba(0,212,255,0.2) 0%, transparent 52%),
    radial-gradient(circle at 82% 78%, rgba(167,139,250,0.24) 0%, transparent 48%);
}
.lock-os-toggle.hidden { display: none !important; }
#lockFingerprintToggle.hidden { display: none !important; }
.lock-frame:not(.lock-pro) .lock-pro-only { display: none !important; }
.lock-frame.lock-pro .lock-ios-only,
.lock-frame.lock-pro .lock-android-only,
.lock-frame.lock-pro .lock-win-only,
.lock-frame.lock-pro .lock-bottom,
.lock-frame.lock-pro .lock-mobile-chrome,
.lock-frame.lock-pro .lock-fingerprint { display: none !important; }
.lock-frame.lock-pro {
  border-radius: 28px;
  box-shadow:
    0 0 0 1px rgba(0,212,255,0.22),
    0 24px 56px rgba(0,0,0,0.5),
    0 0 72px rgba(0,212,255,0.07);
}
.lock-frame.lock-pro .lock-content {
  align-items: center; justify-content: center;
  padding: 0 28px 96px; text-align: center;
}
.lock-pro-brand {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; margin-bottom: 28px;
}
.lock-pro-logo {
  width: 76px; height: 76px; border-radius: 18px;
  object-fit: cover; border: 1px solid rgba(0,212,255,0.35);
  box-shadow: 0 8px 32px rgba(0,212,255,0.18);
}
.lock-pro-name {
  font-family: 'Rajdhani', sans-serif; font-size: 26px; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase; line-height: 1.1;
}
.lock-pro-badge {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  font-family: 'Rajdhani', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 1.4px; color: #041018; background: var(--cyan);
  box-shadow: 0 0 20px rgba(0,212,255,0.35);
}
.lock-frame.lock-pro .lock-date.lock-pro-only {
  display: block; font-size: 16px; font-weight: 500; margin-bottom: 8px; opacity: 0.9;
}
.lock-frame.lock-pro .lock-clock {
  font-size: 96px; font-weight: 700; letter-spacing: -4px;
  font-family: 'Rajdhani', sans-serif;
}
.lock-pro-tagline {
  margin-top: 18px; max-width: 280px;
  font-size: 14px; font-weight: 500; line-height: 1.45;
  color: rgba(255,255,255,0.82);
}
.lock-pro-hint {
  position: absolute; left: 50%; bottom: 36px;
  transform: translateX(-50%); z-index: 4;
  font-size: 13px; font-weight: 500; opacity: 0.78;
  letter-spacing: 0.2px; pointer-events: auto;
}
.lock-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.lock-frame > .device-statusbar,
.lock-frame > .lock-android-top,
.lock-frame > .lock-content,
.lock-frame > .lock-bottom,
.lock-frame > .lock-android-camera,
.lock-frame > .lock-swipe-hint {
  pointer-events: none;
}
.lock-frame .editable,
.lock-frame .device-clock {
  pointer-events: auto;
}
.lock-frame .device-statusbar,
.lock-frame .lock-android-top,
.lock-frame .lock-content,
.lock-frame .lock-bottom,
.lock-frame .lock-android-camera {
  position: relative; z-index: 2;
}
.lock-frame .lock-swipe-hint {
  position: absolute; z-index: 4;
}
.lock-frame.android .lock-ios-only,
.lock-frame.android .lock-ios-bar,
.lock-frame.windows .lock-ios-only,
.lock-frame.windows .lock-ios-bar { display: none !important; }
.lock-frame:not(.android) .lock-android-only,
.lock-frame:not(.windows) .lock-win-only { display: none !important; }
.lock-frame.windows .lock-android-only { display: none !important; }
.lock-frame.android .lock-android-top { display: flex; }
.lock-frame.android .lock-android-camera { display: block; }
.lock-frame.android .lock-date.lock-android-only { display: block; }
.lock-frame.android .lock-notif-row { display: flex; }
.lock-frame.android .lock-shortcut.lock-android-only { display: flex; }
.lock-frame.android .lock-swipe-hint { display: block; }
.lock-frame:not(.android):not(.windows) .lock-shortcut.lock-ios-only { display: flex; }
.lock-frame.windows .lock-bottom,
.lock-frame.windows .lock-shortcut { display: none !important; }
.lock-frame.windows .lock-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: flex-end;
  padding: 0 0 68px 48px; text-align: left;
  flex: none; min-height: 0; padding-top: 0;
}
.lock-frame.windows .lock-date.lock-win-only {
  display: block; order: -1;
  font-size: 18px; font-weight: 400; margin-bottom: 6px; opacity: 0.95;
  font-family: "Segoe UI", sans-serif;
}
.lock-frame.windows .lock-clock {
  font-size: clamp(72px, 11vw, 118px); font-weight: 300;
  letter-spacing: -3px; line-height: 0.92;
  font-family: "Segoe UI", "Segoe UI Light", sans-serif;
}
.lock-frame.windows .lock-mobile-chrome { display: none !important; }
.lock-win-status {
  display: none; position: absolute; top: 16px; right: 24px; z-index: 4;
  align-items: center; gap: 10px; pointer-events: none;
}
.lock-frame.windows .lock-win-status { display: flex; }
.lock-win-desktop-edge {
  display: none; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 80px rgba(0,0,0,0.22);
}
.lock-frame.windows .lock-win-desktop-edge { display: block; }
.lock-win-hint {
  display: none; position: absolute; left: 50%; bottom: 28px;
  transform: translateX(-50%); z-index: 4;
  font-size: 14px; font-weight: 400; opacity: 0.9;
  font-family: "Segoe UI", sans-serif;
  text-shadow: 0 1px 10px rgba(0,0,0,0.5);
  pointer-events: auto;
}
.lock-frame.windows .lock-win-hint { display: block; }
.lock-fingerprint {
  position: absolute; left: 50%; bottom: 118px; transform: translateX(-50%);
  z-index: 3; display: flex; align-items: center; justify-content: center;
  opacity: 0.72; color: #fff; pointer-events: none;
}
.lock-fingerprint.hidden { display: none !important; }
.lock-android-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px 0; font-size: 12px; font-weight: 400;
  font-family: Roboto, "Segoe UI", sans-serif; letter-spacing: -0.1px;
  pointer-events: none;
}
.lock-carrier, .lock-battery-pct { pointer-events: auto; }
.lock-android-top-icons {
  display: flex; align-items: center; gap: 5px;
}
.lock-android-top-icons svg { display: block; flex-shrink: 0; }
.lock-android-camera {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 11px; height: 11px; border-radius: 50%; z-index: 4;
  background: radial-gradient(circle at 35% 35%, #1a1a2e, #050508 70%);
  box-shadow: inset 0 0 1px rgba(255,255,255,0.12);
  pointer-events: none;
}
.lock-content {
  display: flex; flex-direction: column; align-items: center;
  flex: 1 1 auto; min-height: 0;
  padding-top: 72px; text-align: center;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.lock-frame.android .lock-content { padding-top: 88px; }
.lock-date {
  font-size: 20px; font-weight: 500; letter-spacing: -0.3px;
  margin-bottom: 6px; opacity: 0.95;
}
.lock-frame.android .lock-date { font-size: 18px; font-weight: 400; margin-bottom: 4px; }
.lock-clock {
  font-size: 96px; font-weight: 700; line-height: 1;
  letter-spacing: -4px; font-variant-numeric: tabular-nums;
}
.lock-frame:not(.android) .lock-clock {
  font-size: 102px; font-weight: 700; letter-spacing: -5px;
}
.lock-frame.android .lock-clock {
  font-size: 96px; font-weight: 200; letter-spacing: -4px;
  font-family: Roboto, "Segoe UI", sans-serif;
}
.lock-notif-row {
  display: none; align-items: center; gap: 14px;
  margin-top: 28px; opacity: 0.92;
}
.lock-notif-icon {
  font-size: 15px; opacity: 0.9;
}
.lock-notif-more {
  font-size: 12px; font-weight: 500; padding: 4px 10px;
  border-radius: 12px; background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.lock-bottom {
  position: absolute; left: 0; right: 0; bottom: 32px;
  flex-shrink: 0; width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; z-index: 2;
}
.lock-frame.android .lock-bottom { bottom: 46px; }
.lock-shortcut {
  width: 50px; height: 50px; border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  background: rgba(120,120,128,0.36); backdrop-filter: blur(20px);
  color: #fff; font-size: 20px;
  box-shadow: inset 0 0 0 0.5px rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.lock-shortcut.lock-shortcut-right { display: flex; }
.lock-frame:not(.android) .lock-shortcut.lock-shortcut-right { display: flex; }
.lock-frame.android .lock-shortcut.lock-shortcut-right { display: flex; }
.lock-frame.android .lock-shortcut {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(0,0,0,0.28); backdrop-filter: blur(12px);
  font-size: 18px;
}
.lock-shortcut svg { display: block; }
.lock-swipe-hint {
  display: none; position: absolute; left: 50%; bottom: 22px;
  transform: translateX(-50%); z-index: 4;
  font-size: 13px; font-weight: 400; opacity: 0.85;
  font-family: Roboto, "Segoe UI", sans-serif;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  pointer-events: auto;
}
.lock-frame .device-bottom-chrome {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  background: linear-gradient(to top, rgba(0,0,0,0.2) 0%, transparent 100%);
  pointer-events: none;
}
.lock-frame.no-device .lock-bottom { bottom: 20px; }
.lock-frame.no-device .lock-swipe-hint { bottom: 8px; }
.lock-frame.no-device .device-bottom-chrome { display: none !important; }

@media (max-width: 600px) {
  .logo-section h1 { font-size: 22px; }
  .tab-btn { padding: 8px 12px; font-size: 13px; }
}