/* ============================================================
   Private Note — main.css
   Dark Premium Design with Glassmorphism
   ============================================================ */

/* --- TOKENS --- */
:root {
  --clr-bg:       #080812;
  --clr-surface:  #0f0f1e;
  --clr-card:     #13132a;
  --clr-border:   rgba(255,255,255,.07);
  --clr-border2:  rgba(255,255,255,.12);

  --clr-primary:  #7c3aed;
  --clr-primary2: #6d28d9;
  --clr-accent:   #2563eb;
  --clr-success:  #10b981;
  --clr-warning:  #f59e0b;
  --clr-danger:   #ef4444;

  --clr-text:     #e2e8f0;
  --clr-muted:    #94a3b8;
  --clr-subtle:   #475569;

  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    18px;
  --radius-xl:    24px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.4);
  --shadow-md:  0 8px 32px rgba(0,0,0,.5);
  --shadow-glow: 0 0 40px rgba(124,58,237,.2);

  --font: 'Inter', system-ui, sans-serif;
  --transition: 200ms cubic-bezier(.4,0,.2,1);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--clr-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ============================================================
   ANIMATED BACKGROUND
   ============================================================ */
.bg-animated {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  animation: orb-float 12s ease-in-out infinite alternate;
}
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #7c3aed, transparent); top: -200px; left: -150px; animation-delay: 0s; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #2563eb, transparent); bottom: -150px; right: -100px; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, #7c3aed55, transparent); top: 40%; right: 20%; animation-delay: -8s; }
@keyframes orb-float {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.05); }
}

/* ============================================================
   GLASS
   ============================================================ */
.glass {
  background: rgba(19,19,42,.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--clr-border2);
  box-shadow: var(--shadow-md), var(--shadow-glow);
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing {
  position: relative; z-index: 1;
  display: flex; flex-direction: column;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.landing-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  padding: 16px 40px;
  background: rgba(8,8,18,.7);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--clr-border);
  display: flex; align-items: center;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 1.6rem; }
.site-title { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; color: var(--clr-text); }
.site-logo  { height: 50px; object-fit: contain; }

.hero {
  text-align: center;
  max-width: 680px;
  padding-top: 80px;
  animation: fade-up .6s ease both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.4);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .8rem; font-weight: 600;
  color: #a78bfa;
  margin-bottom: 24px;
  animation: fade-up .5s ease .1s both;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #a78bfa;
  box-shadow: 0 0 8px #a78bfa;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1}50%{opacity:.3} }

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  margin-bottom: 20px;
  animation: fade-up .5s ease .2s both;
}
.gradient-text {
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 1.1rem; color: var(--clr-muted);
  max-width: 500px; margin: 0 auto 32px;
  animation: fade-up .5s ease .3s both;
}

.hero-features {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-bottom: 40px;
  animation: fade-up .5s ease .4s both;
}
.feature-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--clr-border2);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .82rem; font-weight: 500;
  transition: all var(--transition);
}
.feature-chip:hover { background: rgba(124,58,237,.15); border-color: rgba(124,58,237,.4); }
.chip-icon { width: 16px; height: 16px; flex-shrink: 0; color: #a78bfa; }

.landing-footer {
  margin-top: 80px; padding: 24px;
  color: var(--clr-subtle); font-size: .8rem;
  text-align: center;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.7);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; transition: opacity var(--transition);
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.visible { opacity: 1; }
.modal-box {
  width: 100%; max-width: 420px;
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  position: relative;
  animation: modal-in .3s ease;
}
@keyframes modal-in {
  from { transform: scale(.95) translateY(16px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none;
  font-size: 1.6rem; color: var(--clr-muted);
  line-height: 1; transition: color var(--transition);
}
.modal-close:hover { color: var(--clr-text); }
.modal-header { text-align: center; margin-bottom: 28px; }
.modal-icon { font-size: 2.5rem; }
.modal-logo { height: 48px; margin-bottom: 8px; }
.modal-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; margin-top: 8px; }
.modal-subtitle { color: var(--clr-muted); font-size: .88rem; margin-top: 4px; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--clr-muted); margin-bottom: 6px; letter-spacing: .02em; text-transform: uppercase;
}
.form-input, .form-select {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--clr-border2);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-family: var(--font);
  font-size: .95rem;
  padding: 11px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: auto;
}
.form-input::placeholder { color: var(--clr-subtle); }
.form-input:focus, .form-select:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,.2);
}
.form-select { cursor: pointer; }
.form-error {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.4);
  border-radius: var(--radius-sm);
  color: #fca5a5;
  font-size: .85rem;
  padding: 10px 14px;
  margin-bottom: 14px;
}
.input-eye-wrap { position: relative; }
.input-eye-wrap .form-input { padding-right: 44px; }
.eye-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--clr-muted);
  display: flex; align-items: center;
  transition: color var(--transition);
}
.eye-btn:hover { color: var(--clr-text); }
.eye-btn svg { width: 18px; height: 18px; }
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; }
.hint-text { font-size: .78rem; color: var(--clr-subtle); margin-top: 6px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  border: none; border-radius: var(--radius-md);
  font-family: var(--font); font-weight: 600; font-size: .95rem;
  padding: 12px 24px;
  cursor: pointer; transition: all var(--transition);
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,.06); }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-accent));
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,.4);
}
.btn-primary:hover { box-shadow: 0 6px 28px rgba(124,58,237,.6); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--clr-border2);
  color: var(--clr-text);
}
.btn-outline:hover { border-color: var(--clr-primary); color: #a78bfa; }

.btn-lg { padding: 14px 32px; font-size: 1.02rem; border-radius: var(--radius-lg); }
.btn-full { width: 100%; margin-top: 8px; }
.btn-share { width: 100%; margin-top: 24px; }
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-sm { padding: 8px 16px; font-size: .85rem; border-radius: var(--radius-sm); }

.btn-copy {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--clr-border2);
  border-radius: var(--radius-sm);
  color: var(--clr-muted);
  padding: 9px 12px;
  display: flex; align-items: center;
  transition: all var(--transition);
}
.btn-copy:hover { background: rgba(124,58,237,.2); color: #a78bfa; }
.btn-copy svg { width: 16px; height: 16px; }

.btn-logout {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-muted);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.btn-logout:hover { background: rgba(239,68,68,.15); color: #fca5a5; border-color: rgba(239,68,68,.4); }
.btn-logout svg { width: 16px; height: 16px; }

.btn-icon-sm {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  color: var(--clr-muted);
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.btn-icon-sm:hover { background: rgba(255,255,255,.1); color: var(--clr-text); }
.btn-icon-sm svg { width: 14px; height: 14px; }
.btn-icon-sm.btn-danger:hover { background: rgba(239,68,68,.15); color: #fca5a5; border-color: rgba(239,68,68,.4); }

/* Loader */
.btn-loader {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
.btn-loader-inline {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   APP LAYOUT
   ============================================================ */
.app-layout {
  display: flex; min-height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
  width: 240px; flex-shrink: 0;
  background: rgba(10,10,24,.9);
  border-right: 1px solid var(--clr-border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 20;
  padding: 0;
}
.sidebar-logo {
  display: flex; align-items: center; gap: 10px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--clr-border);
}
.site-logo-sm { height: 50px; object-fit: contain; }
.logo-icon-sm { font-size: 1.4rem; }
.sidebar-title { font-weight: 700; font-size: .95rem; letter-spacing: -.02em; }

.sidebar-nav { flex: 1; padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--clr-muted);
  font-size: .88rem; font-weight: 500;
  text-decoration: none;
  transition: all var(--transition);
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,.06); color: var(--clr-text); text-decoration: none; }
.nav-item.active { background: rgba(124,58,237,.18); color: #a78bfa; }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--clr-border);
  display: flex; align-items: center; gap: 10px;
}
.user-chip { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; color: #fff; flex-shrink: 0;
}
.user-info { min-width: 0; }
.user-name { font-weight: 600; font-size: .82rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-role { font-size: .72rem; color: var(--clr-subtle); display: block; }

.main-content {
  flex: 1; margin-left: 240px;
  padding: 40px;
  position: relative; z-index: 1;
  max-width: calc(100vw - 240px);
}

.page-header { margin-bottom: 32px; }
.page-title { font-size: 1.8rem; font-weight: 800; letter-spacing: -.03em; }
.page-subtitle { color: var(--clr-muted); margin-top: 6px; }

/* ============================================================
   TYPE TABS
   ============================================================ */
.type-tabs {
  display: flex; gap: 8px; margin-bottom: 24px;
}
.type-tab {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  color: var(--clr-muted);
  font-weight: 600; font-size: .9rem;
  transition: all var(--transition);
}
.type-tab svg { width: 18px; }
.type-tab:hover { background: rgba(255,255,255,.08); color: var(--clr-text); }
.type-tab.active {
  background: rgba(124,58,237,.2);
  border-color: rgba(124,58,237,.5);
  color: #a78bfa;
}

/* ============================================================
   DROP ZONE
   ============================================================ */
.share-panel { margin-bottom: 8px; }
.drop-zone {
  border: 2px dashed rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 56px 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(255,255,255,.02);
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--clr-primary);
  background: rgba(124,58,237,.06);
}
.drop-icon { display: flex; justify-content: center; margin-bottom: 16px; }
.drop-icon svg { width: 48px; height: 48px; color: var(--clr-primary); opacity: .7; }
.drop-text { font-size: .95rem; color: var(--clr-muted); }
.drop-link { color: #a78bfa; text-decoration: underline; }
.drop-hint { font-size: .78rem; color: var(--clr-subtle); margin-top: 8px; }
.file-hidden { display: none; }

.file-preview {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--clr-border2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.file-info { display: flex; align-items: center; gap: 16px; }
.file-icon-wrap svg { width: 32px; height: 32px; color: #a78bfa; }
.file-name { font-weight: 600; font-size: .9rem; }
.file-size { font-size: .78rem; color: var(--clr-muted); margin-top: 2px; }
.btn-remove-file {
  background: none; border: none; color: var(--clr-subtle);
  display: flex; transition: color var(--transition);
}
.btn-remove-file:hover { color: var(--clr-danger); }
.btn-remove-file svg { width: 20px; }

.progress-wrap {
  display: flex; align-items: center; gap: 12px; margin-top: 12px;
}
.progress-bar {
  flex: 1; height: 8px;
  background: rgba(255,255,255,.08);
  border-radius: 999px; overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-accent));
  border-radius: 999px;
  transition: width .2s ease;
}
.progress-pct { font-size: .8rem; font-weight: 600; color: #a78bfa; min-width: 36px; text-align: right; }

/* ============================================================
   TEXT EDITOR
   ============================================================ */
.text-editor {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--clr-border2);
  border-radius: var(--radius-md);
  color: var(--clr-text);
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: .9rem;
  padding: 16px;
  resize: vertical;
  outline: none;
  line-height: 1.6;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.text-editor::placeholder { color: var(--clr-subtle); }
.text-editor:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(124,58,237,.2);
}
.text-counter { font-size: .75rem; color: var(--clr-subtle); text-align: right; margin-top: 6px; }

/* ============================================================
   SHARE OPTIONS
   ============================================================ */
.share-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
  margin-top: 24px;
}
@media (max-width: 600px) { .share-options { grid-template-columns: 1fr; } }

/* ============================================================
   RESULT CARD
   ============================================================ */
.result-card {
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 40px;
  animation: fade-up .4s ease both;
}
.result-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.result-icon { width: 40px; height: 40px; color: var(--clr-success); flex-shrink: 0; }
.result-title { font-size: 1.2rem; font-weight: 700; }
.result-sub { font-size: .82rem; color: var(--clr-muted); margin-top: 4px; }

.result-url-box { display: flex; gap: 10px; margin-bottom: 16px; }
.result-url-input {
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--clr-border2);
  border-radius: var(--radius-sm);
  color: var(--clr-text);
  font-family: 'Consolas', monospace;
  font-size: .85rem;
  padding: 11px 14px;
  outline: none;
}
.email-notice {
  display: flex; align-items: center; gap: 8px;
  font-size: .83rem; color: var(--clr-success);
  margin-bottom: 20px;
}

/* ============================================================
   SHARE HISTORY
   ============================================================ */
.history-section { margin-top: 48px; }
.section-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 16px; }

.shares-table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--clr-border); }
.shares-table {
  width: 100%; border-collapse: collapse;
  font-size: .85rem;
}
.shares-table th {
  background: rgba(255,255,255,.04);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--clr-muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--clr-border);
}
.shares-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.shares-table tr:last-child td { border-bottom: none; }
.shares-table tr:hover td { background: rgba(255,255,255,.02); }
.td-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-date { color: var(--clr-muted); font-size: .8rem; white-space: nowrap; }
.td-actions { display: flex; gap: 6px; }

.empty-state { text-align: center; padding: 48px; color: var(--clr-subtle); }
.empty-icon { font-size: 3rem; margin-bottom: 12px; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .72rem; font-weight: 600;
}
.badge-active  { background: rgba(16,185,129,.15); color: #6ee7b7; }
.badge-opened  { background: rgba(37,99,235,.15);  color: #93c5fd; }
.badge-expired { background: rgba(245,158,11,.15); color: #fcd34d; }
.badge-deleted { background: rgba(239,68,68,.15);  color: #fca5a5; }
.badge-file { background: rgba(124,58,237,.15); color: #c4b5fd; }
.badge-text { background: rgba(37,99,235,.15); color: #93c5fd; }
.user-badge {
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: .78rem; font-weight: 600;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.admin-tab {
  padding: 9px 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  color: var(--clr-muted);
  font-size: .85rem; font-weight: 600;
  transition: all var(--transition);
}
.admin-tab:hover { background: rgba(255,255,255,.08); color: var(--clr-text); }
.admin-tab.active { background: rgba(124,58,237,.2); border-color: rgba(124,58,237,.5); color: #a78bfa; }

.settings-card {
  border-radius: var(--radius-xl);
  padding: 28px 32px;
}
.settings-title { font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-actions {
  margin-top: 24px;
  display: flex; gap: 12px; flex-wrap: wrap;
}

.logo-upload-area { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.current-logo-preview { height: 60px; object-fit: contain; border-radius: var(--radius-sm); }
.logo-placeholder { font-size: 3rem; }

.test-box {
  margin-top: 24px;
  border-top: 1px solid var(--clr-border);
  padding-top: 24px;
}
.test-box h4 { font-size: .9rem; font-weight: 600; margin-bottom: 16px; color: var(--clr-muted); }
.test-result {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 500;
}
.test-ok { background: rgba(16,185,129,.12); color: #6ee7b7; border: 1px solid rgba(16,185,129,.3); }
.test-fail { background: rgba(239,68,68,.1); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }

/* ============================================================
   DOWNLOAD PAGE
   ============================================================ */
.download-page {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; padding: 40px 24px;
}
.download-card {
  width: 100%; max-width: 520px;
  border-radius: var(--radius-xl);
  padding: 40px 40px 32px;
  animation: fade-up .5s ease both;
}
.download-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 32px;
}
.dl-status { text-align: center; }
.dl-status-icon { font-size: 3.5rem; margin-bottom: 20px; }
.dl-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; margin-bottom: 10px; }
.dl-desc { color: var(--clr-muted); font-size: .95rem; }
.dl-error .dl-title { color: #fca5a5; }
.dl-ready .dl-title { color: #6ee7b7; }

.dl-meta { margin: 20px 0 16px; display: flex; flex-direction: column; gap: 8px; }
.dl-meta-item {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: .85rem;
}
.dl-meta-item svg { width: 16px; flex-shrink: 0; color: var(--clr-primary); }

.dl-warning {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .83rem; color: #fcd34d;
  margin-bottom: 24px; text-align: left;
}
.dl-footer { margin-top: 28px; text-align: center; }
.dl-back-link { font-size: .85rem; color: var(--clr-muted); }
.dl-back-link:hover { color: var(--clr-text); }

.text-reveal-box {
  animation: fade-up .4s ease both;
}
.text-reveal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.text-reveal-header h3 { font-size: .95rem; font-weight: 700; }
.text-content-view {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--clr-border2);
  border-radius: var(--radius-md);
  padding: 20px;
  font-family: 'Consolas', monospace;
  font-size: .85rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--clr-text);
  max-height: 400px;
  overflow-y: auto;
}

/* ============================================================
   TOAST
   ============================================================ */
#toast-container {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  min-width: 280px; max-width: 380px;
  background: rgba(19,19,42,.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--clr-border2);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: .88rem; font-weight: 500;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 12px;
  animation: toast-in .3s ease;
  transition: opacity .3s ease, transform .3s ease;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
.toast.success { border-left: 3px solid var(--clr-success); }
.toast.error   { border-left: 3px solid var(--clr-danger); }
.toast.info    { border-left: 3px solid var(--clr-accent); }
.toast-icon { font-size: 1.1rem; }
.toast-msg { flex: 1; }
.toast-close { background: none; border: none; color: var(--clr-subtle); font-size: 1.1rem; cursor: pointer; }
.toast-close:hover { color: var(--clr-text); }

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.22); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; max-width: 100vw; padding: 24px 16px; }
  .download-card { padding: 28px 20px; }
  .settings-card { padding: 20px; }
}
