/* ──────────────────────────────────────────────────────────
   Atalink — Main Stylesheet
   Premium dark theme, DM Sans
────────────────────────────────────────────────────────── */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg:         #0c0d0f;
  --bg-2:       #111316;
  --bg-3:       #16191e;
  --surface:    #1a1d24;
  --surface-2:  #20242d;
  --border:     rgba(255,255,255,.07);
  --border-2:   rgba(255,255,255,.12);

  --accent:     #4f8ef7;
  --accent-dim: rgba(79,142,247,.15);
  --accent-glow:rgba(79,142,247,.3);

  --green:      #2ec27e;
  --green-dim:  rgba(46,194,126,.15);
  --red:        #e5534b;
  --red-dim:    rgba(229,83,75,.15);
  --amber:      #e5a50a;
  --amber-dim:  rgba(229,165,10,.15);

  --text:       #e8eaed;
  --text-2:     #9aa0ac;
  --text-3:     #5c6370;

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

  --shadow:     0 4px 24px rgba(0,0,0,.4);
  --shadow-lg:  0 8px 48px rgba(0,0,0,.6);

  --font:       'DM Sans', sans-serif;
  --mono:       'DM Mono', monospace;

  --trans:      all .2s cubic-bezier(.4,0,.2,1);
  --trans-slow: all .4s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; border: none; }
input, textarea { font-family: var(--font); }

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Card ───────────────────────────────────────────────── */
.card-glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px;
  height: 60px;
  display: flex; align-items: center;
  background: rgba(12,13,15,.8);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
  transition: var(--trans);
}

.header-inner {
  width: 100%; max-width: 1080px;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.logo-link {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 600; letter-spacing: -.3px;
  color: var(--text);
  transition: opacity .2s;
}
.logo-link:hover { opacity: .8; }
.logo-mark { display: flex; align-items: center; }
.logo-img { height: 32px; width: auto; }

.header-nav { display: flex; gap: 4px; }
.nav-link {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px; font-weight: 500;
  transition: var(--trans);
}
.nav-link:hover { color: var(--text); background: var(--surface); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 140px 0 60px;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(79,142,247,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px; font-weight: 500; letter-spacing: .3px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; } 50% { opacity: .4; }
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.title-accent {
  font-weight: 600;
  color: var(--accent);
}

.hero-sub {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.7;
  max-width: 420px; margin: 0 auto 48px;
}

/* ── Upload Section ─────────────────────────────────────── */
.upload-section {
  padding-bottom: 80px;
}

.upload-card {
  max-width: 640px; margin: 0 auto;
  padding: 0;
  overflow: hidden;
}

/* Drop Zone */
.drop-zone {
  position: relative;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--trans);
  min-height: 220px;
  display: flex; align-items: center; justify-content: center;
}
.drop-zone:hover { background: rgba(79,142,247,.04); }
.drop-zone.drag-over {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.file-input {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer;
  width: 100%; height: 100%;
}

.drop-inner {
  text-align: center; padding: 40px 24px;
  pointer-events: none;
}
.drop-icon {
  width: 64px; height: 64px;
  border-radius: var(--radius);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
  transition: var(--trans);
}
.drop-zone:hover .drop-icon {
  background: var(--accent-dim);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.drop-title {
  font-size: 15px; font-weight: 500;
  margin-bottom: 4px;
}
.drop-sub { color: var(--text-2); font-size: 14px; }
.drop-link { color: var(--accent); }
.drop-limit {
  margin-top: 10px;
  color: var(--text-3); font-size: 12px;
  font-family: var(--mono);
}

/* Preview */
.drop-preview {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; padding: 24px;
  position: relative;
}
.preview-img {
  max-height: 200px; max-width: 100%;
  border-radius: var(--radius-sm);
  object-fit: contain;
}
.preview-remove {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
  cursor: pointer; z-index: 2;
}
.preview-remove:hover { background: var(--red-dim); color: var(--red); border-color: var(--red); }

.preview-info {
  margin-top: 10px;
  display: flex; gap: 10px; align-items: center;
}
.preview-name { font-size: 13px; font-weight: 500; color: var(--text-2); }
.preview-size {
  font-size: 11px; color: var(--text-3);
  font-family: var(--mono);
  background: var(--bg-3);
  padding: 2px 8px; border-radius: 99px;
}

/* Options */
.upload-options { padding: 28px; display: flex; flex-direction: column; gap: 24px; }

.option-label {
  display: block;
  font-size: 12px; font-weight: 500;
  letter-spacing: .5px; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

/* Days slider */
.days-slider-wrap { position: relative; }
.days-range {
  width: 100%; appearance: none;
  height: 4px; border-radius: 99px;
  background: var(--surface-2);
  outline: none; cursor: pointer;
}
.days-range::-webkit-slider-thumb {
  appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px var(--accent-dim);
  cursor: pointer;
  transition: var(--trans);
}
.days-range::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 5px var(--accent-dim);
}
.days-ticks {
  display: flex; justify-content: space-between;
  margin-top: 8px;
}
.days-ticks span {
  font-size: 11px; color: var(--text-3);
  font-family: var(--mono);
  width: 20px; text-align: center;
}
.days-display {
  margin-top: 6px;
  font-size: 13px; color: var(--text-2);
  text-align: right;
}
.days-display span { color: var(--accent); font-weight: 600; font-size: 15px; }

/* Toggle cards */
.option-toggles { display: flex; flex-direction: column; gap: 10px; }

.toggle-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-3);
  cursor: pointer;
  transition: var(--trans);
  user-select: none;
}
.toggle-card:hover { border-color: var(--border-2); background: var(--surface); }
.toggle-card.active { border-color: var(--accent); background: var(--accent-dim); }

.toggle-info { display: flex; align-items: center; gap: 12px; }
.toggle-icon {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: var(--trans);
}
.toggle-card.active .toggle-icon { background: var(--accent-dim); color: var(--accent); }

.toggle-title { font-size: 14px; font-weight: 500; }
.toggle-desc { font-size: 12px; color: var(--text-2); margin-top: 1px; }

.toggle-switch {
  width: 44px; height: 24px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  position: relative;
  transition: var(--trans);
  flex-shrink: 0;
}
.toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--text-3);
  transition: var(--trans);
}
.toggle-switch.on {
  background: var(--accent);
  border-color: var(--accent);
}
.toggle-switch.on::after {
  left: calc(100% - 19px);
  background: #fff;
}

.hidden-check { display: none; }

/* Password field */
.password-field { animation: slideDown .25s ease; }
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Form fields ─────────────────────────────────────────── */
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; font-weight: 500; color: var(--text-3); letter-spacing: .3px; text-transform: uppercase; }
.field-with-icon {
  position: relative; display: flex; align-items: center;
}
.field-with-icon > svg {
  position: absolute; left: 12px;
  color: var(--text-3); pointer-events: none;
}
.field-input {
  width: 100%; padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  transition: var(--trans);
  outline: none;
}
.field-with-icon .field-input {
  padding-left: 36px;
  padding-right: 40px;
}
.field-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field-input::placeholder { color: var(--text-3); }

.field-eye {
  position: absolute; right: 10px;
  background: none; color: var(--text-3);
  display: flex; align-items: center;
  padding: 4px;
  transition: var(--trans);
}
.field-eye:hover { color: var(--text-2); }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  transition: var(--trans);
  cursor: pointer; border: none; outline: none;
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background .15s;
}
.btn:hover::after { background: rgba(255,255,255,.05); }
.btn:active::after { background: rgba(255,255,255,.1); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(79,142,247,.3);
}
.btn-primary:hover {
  box-shadow: 0 4px 20px rgba(79,142,247,.45);
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled {
  opacity: .35; cursor: not-allowed;
  transform: none; box-shadow: none;
}

.btn-ghost {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.btn-ghost:hover { border-color: var(--border-2); color: var(--text); }

.btn-full { width: 100%; }

.btn-upload {
  padding: 13px 24px;
  font-size: 15px;
  border-radius: var(--radius);
}

.btn-copy {
  flex-shrink: 0;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.btn-copy:hover { background: #3d7be8; }

/* Loading */
.spinner {
  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;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Success Card ────────────────────────────────────────── */
.success-card {
  max-width: 640px; margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
}

.success-icon-wrap { display: flex; justify-content: center; margin-bottom: 24px; }
.success-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--green-dim);
  display: flex; align-items: center; justify-content: center;
}
.check-svg { width: 52px; height: 52px; }
.check-circle {
  stroke: var(--green); stroke-width: 2;
  stroke-dasharray: 166; stroke-dashoffset: 166;
  animation: stroke-dash .6s ease forwards .2s;
}
.check-mark {
  stroke: var(--green); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 50; stroke-dashoffset: 50;
  animation: stroke-dash .4s ease forwards .7s;
}
@keyframes stroke-dash { to { stroke-dashoffset: 0; } }

.success-title { font-size: 26px; font-weight: 600; margin-bottom: 8px; }
.success-sub { color: var(--text-2); font-size: 14px; margin-bottom: 28px; }

.link-display {
  display: flex; gap: 8px; align-items: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  margin-bottom: 16px;
}
.link-input {
  flex: 1;
  background: none; border: none; outline: none;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  padding: 4px 8px;
  min-width: 0;
}

.success-meta {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.meta-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px;
  border-radius: 99px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px; color: var(--text-2);
  font-family: var(--mono);
}

/* ── Features ────────────────────────────────────────────── */
.features-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.feature-card {
  padding: 28px;
  transition: var(--trans);
}
.feature-card:hover {
  border-color: var(--border-2);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* ── How it works ────────────────────────────────────────── */
.how-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.section-header { margin-bottom: 48px; }
.section-title { font-size: 28px; font-weight: 600; letter-spacing: -.5px; margin-bottom: 8px; }
.section-sub { color: var(--text-2); font-size: 15px; }

.steps-wrap {
  display: flex; gap: 0; align-items: flex-start;
  flex-wrap: wrap;
}
.step {
  flex: 1; min-width: 180px;
  display: flex; gap: 20px; align-items: flex-start;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin: 4px;
  transition: var(--trans);
}
.step:hover { border-color: var(--border-2); transform: translateY(-2px); }
.step-num {
  font-family: var(--mono);
  font-size: 24px; font-weight: 500;
  color: var(--accent);
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}
.step-title { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.step-desc { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.step-arrow {
  align-self: center;
  color: var(--text-3); font-size: 20px;
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  margin-top: 40px;
}

.site-footer-min {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  font-size: 13px; color: var(--text-3);
}

/* ── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 600; letter-spacing: .3px;
  text-transform: uppercase;
}
.badge-active  { background: var(--green-dim); color: var(--green); }
.badge-expired { background: var(--red-dim); color: var(--red); }
.badge-used    { background: var(--amber-dim); color: var(--amber); }
.badge-warning { background: var(--amber-dim); color: var(--amber); }

/* ── Alerts ─────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
}
.alert-error {
  background: var(--red-dim);
  border: 1px solid rgba(229,83,75,.3);
  color: #f47c75;
}

/* ── Toast ───────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 8px;
  z-index: 999;
}
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  box-shadow: var(--shadow-lg);
  font-size: 14px; min-width: 240px; max-width: 340px;
  animation: toastIn .3s ease;
}
.toast.out { animation: toastOut .3s ease forwards; }
.toast-success { border-color: rgba(46,194,126,.3); }
.toast-error   { border-color: rgba(229,83,75,.3); }
.toast-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.toast-success .toast-dot { background: var(--green); }
.toast-error   .toast-dot { background: var(--red); }

@keyframes toastIn  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(20px); } }

/* ── View page ───────────────────────────────────────────── */
.viewer-wrap { padding: 100px 0 60px; }
.viewer-container {
  display: grid; grid-template-columns: 1fr 280px;
  gap: 20px; max-width: 960px; margin: 0 auto; padding: 0 24px;
}
@media (max-width: 720px) {
  .viewer-container { grid-template-columns: 1fr; }
}
.viewer-image-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  min-height: 300px;
}
.viewer-image { max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: var(--radius-sm); }
.viewer-meta { padding: 24px; display: flex; flex-direction: column; gap: 0; }
.meta-row {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.meta-row:first-child { padding-top: 0; }
.meta-row:last-child  { border-bottom: none; }
.meta-label { font-size: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--text-3); }
.meta-value { font-size: 13px; color: var(--text); word-break: break-all; }
.time-badge { color: var(--accent); font-family: var(--mono); font-size: 12px; }

/* ── Auth page ───────────────────────────────────────────── */
.auth-wrap { min-height: calc(100vh - 60px); display: flex; align-items: center; justify-content: center; padding: 80px 24px; }
.auth-card { max-width: 380px; width: 100%; padding: 40px; text-align: center; }
.auth-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--accent-dim);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.auth-title { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.auth-desc  { color: var(--text-2); font-size: 14px; margin-bottom: 24px; }
.auth-form  { text-align: left; display: flex; flex-direction: column; gap: 16px; }

/* ── Error page ──────────────────────────────────────────── */
.error-page { display: flex; flex-direction: column; }
.error-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 80px 24px; }
.error-card { max-width: 400px; width: 100%; padding: 48px 40px; text-align: center; }
.error-icon { color: var(--red); margin-bottom: 20px; display: flex; justify-content: center; }
.error-title { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.error-desc  { color: var(--text-2); font-size: 14px; margin-bottom: 28px; }

/* ── Animations (Reveal) ─────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ── Utilities ───────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .site-header { padding: 0 16px; }
  .hero { padding: 100px 0 40px; }
  .hero-title { font-size: 32px; }
  .steps-wrap { flex-direction: column; }
  .step-arrow { display: none; }
  .upload-options { padding: 20px 16px; }
  .success-card { padding: 28px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .header-nav { display: none; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ── Lang Trigger ────────────────────────────────────────── */
.lang-trigger {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 13px; font-weight: 500; font-family: var(--font);
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
}
.lang-trigger:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--accent-dim);
}

/* ── Lang Modal ──────────────────────────────────────────── */
.lang-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}
.lang-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.lang-modal {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 80px rgba(0,0,0,.7);
  width: 100%; max-width: 460px;
  padding: 24px;
  transform: translateY(16px) scale(.96);
  transition: transform .25s cubic-bezier(.34,1.4,.64,1);
}
.lang-modal-overlay.open .lang-modal {
  transform: translateY(0) scale(1);
}
.lang-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.lang-modal-title {
  font-size: 15px; font-weight: 600; color: var(--text);
}
.lang-modal-close {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-3);
  cursor: pointer;
  transition: var(--trans);
}
.lang-modal-close:hover { color: var(--text); border-color: var(--border-2); }
.lang-modal-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.lang-card {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 14px 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--trans);
  font-family: var(--font);
}
.lang-card:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.lang-card.active {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.lang-flag { font-size: 24px; line-height: 1; }
.lang-name {
  font-size: 11px; font-weight: 500;
  color: var(--text-2);
  text-align: center;
}
.lang-card.active .lang-name,
.lang-card:hover .lang-name { color: var(--accent); }

@media (max-width: 480px) {
  .lang-modal-grid { grid-template-columns: repeat(4, 1fr); }
  .lang-flag { font-size: 20px; }
}
