/* =========================================================
   ImgShare — Soft Light Theme (mobile-first, professional)
   ========================================================= */

/* ----------- Reset ----------- */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }
svg { display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }

/* ----------- Tokens ----------- */
:root {
  /* Backgrounds */
  --bg:           #f6f8fb;
  --bg-2:         #eef2f7;
  --surface:      #ffffff;
  --surface-2:    #fafbfd;

  /* Text */
  --text:         #0f172a;
  --text-2:       #1f2937;
  --text-dim:     #4b5563;
  --text-mute:    #6b7280;
  --text-soft:    #9ca3af;

  /* Borders */
  --border:       #e5e7eb;
  --border-2:     #d1d5db;
  --border-soft:  #f1f3f7;

  /* Brand (single, calm color) */
  --brand:        #4f46e5;
  --brand-2:      #6366f1;
  --brand-soft:   #eef2ff;
  --brand-soft-2: #e0e7ff;

  /* States */
  --success:      #059669;
  --success-soft: #ecfdf5;
  --danger:       #dc2626;
  --danger-soft:  #fef2f2;
  --warn:         #d97706;
  --warn-soft:    #fffbeb;

  /* Shadows */
  --shadow-xs:    0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm:    0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:    0 4px 12px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg:    0 12px 24px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);

  /* Radii */
  --radius-sm:    8px;
  --radius:       12px;
  --radius-lg:    16px;
  --radius-xl:    20px;

  color-scheme: light;
}

html, body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.01em;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
body { display: flex; flex-direction: column; min-height: 100vh; max-width: 100vw; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: -9999px; }
.skip-link:focus {
  left: 1rem; top: .5rem; z-index: 100;
  background: var(--brand); color: #fff;
  padding: .5rem 1rem; border-radius: var(--radius-sm);
}

/* Subtle bg accent (very light) */
.mesh-bg {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
  contain: strict;
}
.mesh-bg::before {
  content: ''; position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  background: radial-gradient(circle, rgba(99,102,241,.10), transparent 60%);
  top: -200px; left: -150px;
}
.mesh-bg::after {
  content: ''; position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  background: radial-gradient(circle, rgba(168,85,247,.08), transparent 60%);
  top: 30%; right: -150px;
}

main, header, footer { position: relative; z-index: 1; }
main { flex: 1; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { letter-spacing: -0.02em; margin: 0; color: var(--text); font-weight: 700; }
h1 { font-weight: 800; }
p { margin: 0; }

/* ---------- Layout primitives ---------- */
.max-w-7xl { max-width: 1200px; }
.max-w-6xl { max-width: 1100px; }
.max-w-5xl { max-width: 960px; }
.max-w-4xl { max-width: 840px; }
.max-w-3xl { max-width: 720px; }
.max-w-md  { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.min-w-0 { min-width: 0; }
.text-center { text-align: center; }
.truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.relative { position: relative; }
.hidden { display: none !important; }
.block { display: block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; } .gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; }
.p-2 { padding: .5rem; } .p-3 { padding: .75rem; } .p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-14 { padding-top: 3.5rem; padding-bottom: 3.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pb-12 { padding-bottom: 3rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; } .mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-1 { margin-bottom: .25rem; } .mb-2 { margin-bottom: .5rem; } .mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; } .mb-5 { margin-bottom: 1.25rem; } .mb-6 { margin-bottom: 1.5rem; }
.ml-2 { margin-left: .5rem; } .ml-auto { margin-left: auto; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }

.text-xs { font-size: .75rem; line-height: 1.4; }
.text-sm { font-size: .875rem; line-height: 1.5; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-7xl { font-size: 4.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.leading-relaxed { line-height: 1.6; }

.text-white { color: #fff; }
.dim { color: var(--text-dim); }
.muted { color: var(--text-mute); }
.text-slate-200, .text-slate-300 { color: var(--text-2); }
.text-slate-400, .text-slate-500 { color: var(--text-mute); }

.aspect-square { aspect-ratio: 1 / 1; }
.object-cover { object-fit: cover; }
.opacity-80 { opacity: .8; }
.rounded { border-radius: var(--radius-sm); }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: var(--radius-lg); }
.rounded-2xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.overflow-auto, .overflow-x-auto { overflow: auto; }

/* Responsive helpers */
@media (min-width: 640px) {
  .sm\:inline { display: inline; }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none !important; }
  .md\:inline-flex { display: inline-flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:ml-64 { margin-left: 16rem; }
  .md\:p-8 { padding: 2rem; }
  .md\:text-3xl { font-size: 1.875rem; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-\[2fr_1fr\] { grid-template-columns: 2fr 1fr; }
  .lg\:grid-cols-\[1fr_360px\] { grid-template-columns: 1fr 360px; }
}

/* ---------- Section ---------- */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
}

/* ---------- Header / Nav ---------- */
.app-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  width: 100%;
}
.app-header .nav-row {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
}
.brand-logo {
  width: 34px; height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(79, 70, 229, .25);
}
.brand-logo svg { width: 20px; height: 20px; color: #fff; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--text); }

.nav-link {
  padding: .5rem .85rem;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-weight: 500;
  font-size: .9rem;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text); background: var(--bg-2); }
.nav-link.active { color: var(--brand); background: var(--brand-soft); }

.user-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .3rem .75rem .3rem .3rem;
  border-radius: 999px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text);
  transition: background .15s, border-color .15s;
}
.user-chip:hover { background: var(--brand-soft); border-color: var(--brand-soft-2); }
.user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: .75rem;
  flex-shrink: 0;
}

/* ---------- Buttons (premium) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  padding: .65rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: -0.01em;
  transition: all .18s cubic-bezier(.4, 0, .2, 1);
  border: 1px solid transparent;
  white-space: nowrap;
  text-align: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .35);
}
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

.btn-primary {
  background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    inset 0 -1px 0 rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(79, 70, 229, .2),
    0 4px 14px rgba(79, 70, 229, .25);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 2px 4px rgba(79, 70, 229, .25),
    0 10px 20px rgba(79, 70, 229, .3);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .15);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--bg);
  border-color: var(--border-2);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(15, 23, 42, .06);
}
.btn-ghost:active:not(:disabled) { transform: translateY(0); }

.btn-soft {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-soft-2);
}
.btn-soft:hover:not(:disabled) {
  background: var(--brand-soft-2);
  border-color: var(--brand);
}

.btn-danger {
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 1px 2px rgba(220, 38, 38, .2),
    0 4px 12px rgba(220, 38, 38, .22);
}
.btn-danger:hover:not(:disabled) {
  background: linear-gradient(180deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
}
.btn-danger:active:not(:disabled) { transform: translateY(0); }

.btn-sm { padding: .42rem .85rem; font-size: .8rem; gap: .4rem; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; border-radius: var(--radius); }
.btn-xl { padding: 1rem 1.85rem; font-size: 1.05rem; border-radius: var(--radius); font-weight: 700; }
.btn-icon { padding: .5rem; }
.w-4 { width: 1rem; } .h-4 { height: 1rem; }
.w-5 { width: 1.25rem; } .h-5 { height: 1.25rem; }

/* ---------- Inputs ---------- */
input[type=text], input[type=email], input[type=password], input[type=number],
input[type=url], input[type=search], textarea, select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: .65rem .85rem;
  width: 100%;
  outline: none;
  font-size: .92rem;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--text-soft); }
input:hover, textarea:hover, select:hover { border-color: var(--border-2); }
input:focus, textarea:focus, select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}
label { display: block; }
label > span {
  display: block;
  font-size: .82rem;
  color: var(--text-dim);
  margin-bottom: .35rem;
  font-weight: 500;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 4rem 1rem 1.5rem;
  text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--text);
}
.hero .lead {
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---------- Upload Hub (premium corporate look) ---------- */
.upload-hub {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 0;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, .04),
    0 12px 28px rgba(15, 23, 42, .06);
  overflow: hidden;
  position: relative;
}
.upload-hub::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #4f46e5, #6366f1, #8b5cf6);
}

.upload-hub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(99,102,241,.025), transparent);
}
.upload-hub-title {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.upload-hub-title .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--brand-soft);
  display: grid; place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--brand-soft-2);
}
.upload-hub-title .ico svg { width: 18px; height: 18px; color: var(--brand); }
.upload-hub-title h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.upload-hub-title p {
  font-size: .8rem;
  color: var(--text-mute);
  margin: .15rem 0 0;
}
.upload-hub-tabs {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.upload-hub-tabs button {
  padding: .4rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  border-radius: 999px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: all .15s;
}
.upload-hub-tabs button.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}
.upload-hub-tabs svg { width: 14px; height: 14px; }

.upload-hub-body { padding: 1.5rem; }

/* Premium dropzone */
.dropzone {
  position: relative;
  border: 2px dashed var(--border-2);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
}
.dropzone:hover, .dropzone.is-dragover {
  border-color: var(--brand);
  background: linear-gradient(180deg, var(--brand-soft) 0%, #ffffff 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, .08);
}
.dropzone.is-dragover .dz-icon {
  transform: scale(1.08);
  background: var(--brand);
}
.dropzone.is-dragover .dz-icon svg { color: #fff !important; }

.dz-icon {
  width: 72px; height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--brand-soft);
  display: grid; place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--brand-soft-2);
  transition: all .25s;
  position: relative;
}
.dz-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 22px;
  border: 2px solid var(--brand-soft-2);
  opacity: 0;
  transition: opacity .25s;
}
.dropzone:hover .dz-icon::after { opacity: 1; }
.dz-icon svg { width: 30px !important; height: 30px !important; color: var(--brand); display: block; transition: color .25s; }

.dz-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .35rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.dz-hint { color: var(--text-dim); font-size: .9rem; }

/* Format chips */
.format-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  margin: 1rem auto 0;
  max-width: 30rem;
}
.format-chip {
  display: inline-flex;
  align-items: center;
  padding: .25rem .6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .7rem;
  color: var(--text-mute);
  font-weight: 600;
  letter-spacing: .03em;
}

/* Upload meta strip below dropzone */
.upload-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: .65rem;
  margin-top: 1rem;
  padding: .75rem;
  background: var(--bg-2);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.upload-meta-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .25rem .35rem;
}
.upload-meta-item .um-ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--brand);
}
.upload-meta-item .um-ico svg { width: 14px; height: 14px; }
.upload-meta-item strong { font-size: .82rem; color: var(--text); display: block; line-height: 1.2; }
.upload-meta-item span { font-size: .7rem; color: var(--text-mute); display: block; line-height: 1.2; }

/* Upload actions row */
.upload-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
}
.upload-actions-info {
  font-size: .8rem;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: .4rem;
}
.upload-actions-info svg { width: 14px; height: 14px; color: var(--success); }
.upload-actions-buttons { display: flex; gap: .5rem; }

/* URL upload tab */
.url-uploader {
  display: none;
  padding: 2rem 1.5rem;
  border: 2px dashed var(--border-2);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
  text-align: center;
}
.url-uploader.active { display: block; }
.url-uploader form { max-width: 28rem; margin: 0 auto; }
.url-uploader .url-row { display: flex; gap: .5rem; margin-top: .85rem; }
.url-uploader input[type=url] { flex: 1; }

@media (max-width: 640px) {
  .upload-hub-head { padding: 1rem 1.15rem; }
  .upload-hub-body { padding: 1.15rem; }
  .dropzone { padding: 2.25rem 1rem; }
  .dz-icon { width: 60px; height: 60px; }
  .dz-icon svg { width: 26px !important; height: 26px !important; }
  .dz-title { font-size: 1.05rem; }
  .upload-actions { flex-direction: column; align-items: stretch; gap: .65rem; }
  .upload-actions-buttons { justify-content: flex-end; }
  .upload-hub-tabs button { padding: .35rem .65rem; font-size: .72rem; }
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: .85rem;
  margin-top: 1.5rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--shadow-xs);
  transition: border-color .15s, box-shadow .15s;
}
.stat:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.stat .label {
  color: var(--text-mute);
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
.stat .num {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text);
  margin-top: .25rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.stat .sub { color: var(--text-mute); font-size: .8rem; margin-top: .15rem; }

/* ---------- Section helpers ---------- */
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.eyebrow {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand);
  font-weight: 700;
}
.section-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: .25rem 0 0;
  color: var(--text);
}
.section-head .link {
  font-size: .88rem;
  color: var(--brand);
  font-weight: 500;
}
.section-head .link:hover { color: #4338ca; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.gallery .item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: block;
}
.gallery .item:hover {
  transform: translateY(-2px);
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}
.gallery .item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .35s ease;
}
.gallery .item:hover img { transform: scale(1.04); }
.gallery .item .meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: .8rem .8rem .65rem;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .8));
  color: #fff; font-size: .78rem;
  opacity: 0; transform: translateY(8px);
  transition: opacity .2s, transform .2s;
}
.gallery .item:hover .meta { opacity: 1; transform: translateY(0); }
.gallery .item .badge-corner {
  position: absolute; top: .5rem; right: .5rem;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(8px);
  font-size: .68rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  border: 1px solid var(--border);
}

/* ---------- Upload queue ---------- */
.upload-queue { display: grid; gap: .55rem; margin-top: 1rem; }
.upload-row {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: .85rem; align-items: center;
  padding: .65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.upload-row .thumb {
  width: 52px; height: 52px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}
.upload-row .progress {
  height: 4px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
  margin-top: .4rem;
}
.upload-row .progress > div {
  height: 100%; width: 0;
  background: var(--brand);
  transition: width .25s;
}
.upload-row.is-done .progress > div { background: var(--success); }
.upload-row.is-error { border-color: rgba(220, 38, 38, .35); background: var(--danger-soft); }

/* ---------- Copy input ---------- */
.copy-row { margin-bottom: .8rem; }
.copy-row > label {
  font-size: .72rem;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .3rem;
  font-weight: 600;
  display: block;
}
.copy-input {
  display: flex; gap: .4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
}
.copy-input input {
  border: none !important;
  background: transparent !important;
  padding: .4rem .6rem !important;
  font-family: 'JetBrains Mono', ui-monospace, monospace !important;
  font-size: .8rem !important;
  box-shadow: none !important;
  color: var(--text) !important;
}
.copy-input button {
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid var(--brand-soft-2);
  padding: .4rem .8rem;
  border-radius: 6px;
  font-size: .78rem;
  font-weight: 600;
  transition: all .15s;
  white-space: nowrap;
}
.copy-input button:hover { background: var(--brand-soft-2); }

/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: all .15s;
}
.chip:hover { color: var(--text); border-color: var(--border-2); }
.chip.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* ---------- Tables ---------- */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  text-align: left;
  padding: .75rem 1rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mute);
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.tbl td {
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border-soft);
  font-size: .9rem;
  vertical-align: middle;
  color: var(--text);
}
.tbl tr:hover td { background: var(--bg-2); }
.tbl-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: auto;
  box-shadow: var(--shadow-xs);
}

/* ---------- Pills ---------- */
.pill {
  display: inline-block;
  padding: .15rem .55rem;
  font-size: .7rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: .02em;
  border: 1px solid transparent;
}
.pill-success { background: var(--success-soft); color: var(--success); border-color: rgba(5,150,105,.2); }
.pill-danger  { background: var(--danger-soft);  color: var(--danger);  border-color: rgba(220,38,38,.2); }
.pill-warn    { background: var(--warn-soft);    color: var(--warn);    border-color: rgba(217,119,6,.2); }
.pill-info    { background: var(--brand-soft);   color: var(--brand);   border-color: var(--brand-soft-2); }
.pill-mute    { background: var(--bg-2);         color: var(--text-mute); border-color: var(--border); }

/* ---------- Toasts ---------- */
.toast-wrap {
  position: fixed; bottom: 1rem; right: 1rem;
  display: flex; flex-direction: column; gap: .5rem;
  z-index: 1000; max-width: 360px;
}
.toast {
  padding: .8rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: .88rem;
  color: var(--text);
  display: flex; align-items: center; gap: .65rem;
  animation: toastIn .25s ease;
}
.toast.success { border-color: rgba(5,150,105,.35); }
.toast.error   { border-color: rgba(220,38,38,.35); }
.toast .ico { font-size: 1.05rem; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }

/* ---------- Spinner ---------- */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(0,0,0,.1);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .25rem; justify-content: center; margin-top: 2rem; }
.pager a {
  min-width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  color: var(--text);
  padding: 0 .65rem;
  transition: all .15s;
  font-weight: 500;
}
.pager a:hover { border-color: var(--border-2); }
.pager a.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 35;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column; gap: .5rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}
.mobile-menu a {
  padding: .9rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-2);
  font-weight: 500;
  color: var(--text);
  font-size: 1rem;
}

/* ---------- Image viewer ---------- */
.viewer {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: .75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.viewer img {
  max-width: 100%; height: auto;
  border-radius: var(--radius);
  margin: 0 auto;
}

/* ---------- Auth (Premium split layout) ---------- */
.auth-page {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
}
.auth-card-pro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  max-width: 1080px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 1px 3px rgba(15, 23, 42, .04),
    0 24px 60px -16px rgba(15, 23, 42, .15);
}

/* LEFT: brand side */
.auth-side {
  position: relative;
  background: #0f172a;
  color: #fff;
  overflow: hidden;
  min-height: 580px;
}
.auth-side-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 400px at 0% 0%, rgba(99,102,241,.55), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(168,85,247,.4), transparent 60%),
    linear-gradient(135deg, #4338ca 0%, #6366f1 50%, #8b5cf6 100%);
}
.auth-side-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .35;
}
.auth-side-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 2.5rem 2.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 580px;
}
.auth-side-top { margin-bottom: 2rem; }
.auth-side-main { flex: 1; }
.auth-side-main h2 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: .9rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.auth-side-main p {
  color: rgba(255,255,255,.85);
  font-size: .98rem;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.auth-features { display: flex; flex-direction: column; gap: .85rem; }
.auth-features li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
}
.auth-feature-ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.18);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.auth-feature-ico svg { width: 16px; height: 16px; }
.auth-features li > div { display: flex; flex-direction: column; gap: 2px; }
.auth-features li strong { font-size: .92rem; color: #fff; font-weight: 600; }
.auth-features li span { font-size: .8rem; color: rgba(255,255,255,.7); }

.auth-side-bottom { margin-top: 2rem; }
.auth-side-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 14px;
  backdrop-filter: blur(8px);
}
.auth-side-stats > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.auth-side-stats strong {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.auth-side-stats span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
  margin-top: 2px;
  font-weight: 500;
}

/* RIGHT: form side */
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2.5rem;
}
.auth-form-inner {
  width: 100%;
  max-width: 380px;
}
.auth-mobile-brand { display: none; margin-bottom: 1.5rem; }
.auth-form-head { margin-bottom: 1.75rem; }
.auth-form-head h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: .35rem;
  letter-spacing: -0.02em;
}
.auth-form-head p {
  font-size: .9rem;
  color: var(--text-mute);
  line-height: 1.5;
}

.auth-form { display: flex; flex-direction: column; gap: .9rem; }
.auth-form .field { display: flex; flex-direction: column; gap: .35rem; }
.auth-form .field > span {
  font-size: .82rem;
  color: var(--text);
  font-weight: 600;
  margin: 0;
}
.field-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.field-ico {
  position: absolute;
  left: .85rem; top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.field-ico svg { width: 16px; height: 16px; }
.field-wrap input {
  padding-left: 2.5rem !important;
  padding-right: .9rem !important;
  height: 44px;
  font-size: .92rem;
}
.field-wrap input:focus + .field-ico,
.field-wrap input:not(:placeholder-shown) ~ .field-ico { color: var(--brand); }
.field-toggle {
  position: absolute;
  right: .25rem; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 8px;
  color: var(--text-soft);
  transition: all .15s;
}
.field-toggle:hover { background: var(--bg-2); color: var(--text); }
.field-toggle svg { width: 18px; height: 18px; }
.field-wrap input[type=password] { padding-right: 2.75rem !important; }

.field-hint {
  font-size: .76rem;
  color: var(--text-mute);
  margin-top: 2px;
}
.field-hint code {
  background: var(--bg-2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: .76rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--brand);
}

/* Password strength meter */
.pwd-meter {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: .45rem;
}
.pwd-meter-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
}
.pwd-meter-bar > div {
  height: 100%;
  width: 0;
  background: #ef4444;
  transition: width .25s, background .25s;
  border-radius: 999px;
}
.pwd-meter-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--text-mute);
  min-width: 64px;
}

/* Checkbox & extras */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .85rem;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox input[type=checkbox] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--brand);
}
.checkbox a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.checkbox a:hover { color: #4338ca; }

.auth-row-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: -.25rem 0 .15rem;
}
.link-muted {
  font-size: .82rem;
  color: var(--text-mute);
  font-weight: 500;
  transition: color .15s;
}
.link-muted:hover { color: var(--brand); }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin: 1.35rem 0;
  color: var(--text-soft);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-foot {
  font-size: .75rem;
  color: var(--text-mute);
  text-align: center;
  margin-top: 1.25rem;
  line-height: 1.5;
}
.auth-foot a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.auth-foot a:hover { color: var(--brand); }

/* Mobile */
@media (max-width: 900px) {
  .auth-page { padding: 1rem .75rem; min-height: calc(100vh - 64px); }
  .auth-card-pro { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-mobile-brand { display: inline-flex; }
  .auth-form-side { padding: 2rem 1.5rem; }
  .auth-form-inner { max-width: 100%; }
}
@media (max-width: 480px) {
  .auth-form-side { padding: 1.5rem 1.15rem; }
  .auth-form-head h1 { font-size: 1.35rem; }
  .auth-form-head p { font-size: .85rem; }
}

/* ---------- Alerts ---------- */
.alert {
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  display: flex; gap: .5rem; align-items: flex-start;
  border: 1px solid;
  margin-bottom: 1rem;
}
.alert-success { background: var(--success-soft); color: var(--success); border-color: rgba(5,150,105,.25); }
.alert-error   { background: var(--danger-soft);  color: var(--danger);  border-color: rgba(220,38,38,.25); }
.alert-info    { background: var(--brand-soft);   color: var(--brand);   border-color: var(--brand-soft-2); }
.alert-warn    { background: var(--warn-soft);    color: var(--warn);    border-color: rgba(217,119,6,.25); }

/* ---------- Admin sidebar ---------- */
.admin-sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 16rem; z-index: 30;
  display: none; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
}
@media (min-width: 768px) { .admin-sidebar { display: flex; } }
.admin-sidebar .top {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--border);
}
.admin-sidebar nav {
  padding: .75rem; flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: .15rem;
}
.admin-sidebar nav a {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .75rem;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-weight: 500;
  font-size: .9rem;
  transition: background .15s, color .15s;
}
.admin-sidebar nav a:hover { background: var(--bg-2); color: var(--text); }
.admin-sidebar nav a.active {
  background: var(--brand-soft);
  color: var(--brand);
}
.admin-sidebar nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.admin-sidebar .bottom {
  padding: .75rem;
  border-top: 1px solid var(--border);
}
.admin-main {
  margin-left: 0;
  min-height: 100vh;
  padding: 1rem;
}
@media (min-width: 768px) {
  .admin-main { margin-left: 16rem; padding: 2rem; max-width: calc(100% - 16rem); }
}
.admin-mobile-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1rem;
  margin: -1rem -1rem 1rem;
}
@media (min-width: 768px) { .admin-mobile-bar { display: none; } }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}
.lang-switch button {
  padding: .3rem .7rem;
  font-size: .76rem;
  font-weight: 600;
  border-radius: 999px;
  color: var(--text-dim);
  letter-spacing: .02em;
  transition: all .15s;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active {
  background: var(--brand);
  color: #fff;
}
.lang-switch-footer button { padding: .35rem .85rem; font-size: .82rem; }

/* ---------- Ad label ---------- */
.ad-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-soft);
  text-align: center;
  margin-bottom: .35rem;
  font-weight: 600;
}

/* ---------- Footer (Premium) ---------- */
.app-footer {
  margin-top: 5rem;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  border-top: 1px solid var(--border);
  position: relative;
}
.app-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand) 50%, transparent);
  opacity: .35;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem 3rem;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  margin-bottom: 2.5rem;
}

.footer-brand {
  max-width: 22rem;
}
.footer-brand .brand { margin-bottom: 1rem; }

.footer-tagline {
  color: var(--text-dim);
  font-size: .92rem;
  line-height: 1.65;
  margin-bottom: 1.35rem;
}

/* Newsletter / contact card */
.footer-stats {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}
.footer-stat {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .35rem .7rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: .76rem;
  color: var(--text-dim);
  font-weight: 500;
}
.footer-stat .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, .15);
}

.footer-lang {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}
.footer-lang-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-mute);
  font-weight: 600;
}

.footer-col h4 {
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 1.1rem;
  position: relative;
  padding-bottom: .6rem;
}
.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 24px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
  opacity: .85;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.footer-col a {
  color: var(--text-dim);
  font-size: .9rem;
  transition: color .15s, transform .15s;
  display: inline-block;
}
.footer-col a:hover {
  color: var(--brand);
  transform: translateX(2px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-mute);
  font-size: .82rem;
}
.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}
.footer-divider {
  width: 1px; height: 14px;
  background: var(--border-2);
}
.footer-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .72rem;
  opacity: .85;
  letter-spacing: .02em;
}
.footer-socials {
  display: flex;
  gap: .35rem;
  align-items: center;
}
.footer-social {
  width: 34px; height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all .15s;
}
.footer-social:hover {
  color: var(--brand);
  border-color: var(--brand-soft-2);
  background: var(--brand-soft);
  transform: translateY(-1px);
}
.footer-social svg { width: 16px; height: 16px; }

/* Mobile: stack everything cleanly */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }
}
@media (max-width: 640px) {
  .app-footer { margin-top: 3rem; }
  .footer-inner { padding: 2.5rem 1.15rem 1.5rem; }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.25rem;
    margin-bottom: 2rem;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-tagline { font-size: .88rem; }
  .footer-col h4 {
    font-size: .72rem;
    margin-bottom: .85rem;
    padding-bottom: .5rem;
  }
  .footer-col a { font-size: .87rem; }
  .footer-col ul { gap: .55rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1.25rem;
    text-align: left;
  }
  .footer-bottom-left { width: 100%; }
  .footer-divider { display: none; }
  .footer-socials { width: 100%; justify-content: flex-start; }
}
@media (max-width: 380px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Hide Google Translate banner */
.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }
font[style] { background: transparent !important; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.2); }

/* ---------- Mobile tweaks ---------- */
@media (max-width: 640px) {
  .hero { padding: 2.5rem 1rem 1rem; }
  .card { padding: 1.15rem; border-radius: var(--radius); }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .55rem; }
  .text-2xl { font-size: 1.3rem; }
  .text-3xl { font-size: 1.55rem; }
  .text-5xl { font-size: 2.25rem; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-card { padding: 1.85rem 1.4rem; }
  .footer-inner { padding: 2.25rem 1.15rem 1.25rem; }
  .nav-row { padding: 0 .75rem !important; gap: .65rem !important; }
  .brand-name { font-size: .98rem; }
  .btn-sm { padding: .35rem .65rem; font-size: .78rem; }
  .upload-row { grid-template-columns: 44px 1fr auto; }
  .upload-row .thumb { width: 44px; height: 44px; }
  .copy-input input { font-size: .72rem !important; padding: .35rem .5rem !important; }
}
