/* ═══════════════════════════════════════════════════
   HızlıResim — Main Stylesheet v4
   Clean · Warm · Inviting · Professional
═══════════════════════════════════════════════════ */

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

/* ── TOKENS ─────────────────────────────────────── */
:root {
  --accent:       #2563EB;
  --accent-h:     #1d4ed8;
  --accent-l:     #eff6ff;
  --accent-m:     #dbeafe;
  --bg:           #ffffff;
  --bg-page:      #f7f8fc;
  --bg-card:      #ffffff;
  --surface:      #f1f5f9;
  --border:       #e2e8f0;
  --border-h:     #cbd5e1;
  --text:         #0f172a;
  --text-2:       #1e293b;
  --text-3:       #475569;
  --text-4:       #64748b;
  --primary-rgb: 239, 68, 68;
  --success:      #16a34a;
  --success-bg:   #f0fdf4;
  --success-b:    #bbf7d0;
  --danger:       #dc2626;
  --danger-bg:    #fef2f2;
  --danger-b:     #fecaca;
  --warn:         #d97706;
  --warn-bg:      #fffbeb;
  --warn-b:       #fde68a;
  --r:            8px;
  --r-lg:         14px;
  --r-xl:         20px;
  --sh-sm:        0 1px 2px rgba(0,0,0,.05);
  --sh:           0 1px 3px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.04);
  --sh-lg:        0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --sh-xl:        0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.05);
  --font:         'DM Sans', system-ui, sans-serif;
  --mono:         'DM Mono', 'Fira Code', monospace;
  --nav-h:        76px;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
input, textarea, select, button { font-family: var(--font); }

/* ── ANNOUNCEMENT BANNER ─────────────────────── */
.ann-banner {
  padding: .6rem 1.5rem; text-align: center;
  font-size: .875rem; font-weight: 500;
}
.ann-info    { background: #eff6ff; color: #1d4ed8; border-bottom: 1px solid #bfdbfe; }
.ann-success { background: var(--success-bg); color: var(--success); border-bottom: 1px solid var(--success-b); }
.ann-warn    { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--warn-b); }
.ann-danger  { background: var(--danger-bg); color: var(--danger); border-bottom: 1px solid var(--danger-b); }

/* ── NAVBAR ─────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 1.5rem; height: 100%;
  display: flex; align-items: center; gap: 1.5rem;
}
.site-logo {
  display: flex; align-items: center; gap: .55rem;
  font-size: 1.2rem; font-weight: 700; letter-spacing: -.025em;
  color: var(--text); text-decoration: none; flex-shrink: 0;
}
.logo-img    { max-height: 120px; max-width: 400px; width: auto; object-fit: contain; }
.logo-mark   { font-size: 1.35rem; }
.logo-text   { color: var(--text); }
.nav-center  { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: .25rem; flex-shrink: 0; }

.nav-link {
  color: var(--text-2); font-size: .875rem; padding: .45rem .75rem;
  border-radius: var(--r); transition: all .15s;
  text-decoration: none; white-space: nowrap;
}
.nav-link:hover { color: var(--text); background: var(--surface); text-decoration: none; }

.nav-btn {
  font-size: .875rem; font-weight: 600; padding: .48rem 1.1rem;
  border-radius: var(--r); background: var(--accent); color: #fff;
  text-decoration: none; transition: background .15s;
  white-space: nowrap;
}
.nav-btn:hover { background: var(--accent-h); text-decoration: none; color: #fff; }
.nav-btn.outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.nav-btn.outline:hover { background: var(--accent-l); }

/* ── NAV DROPDOWN ───────────────────────────────── */
.nav-dropdown { position: relative; }
.nav-link-btn {
  background: none; border: none; cursor: pointer; font-family: var(--font);
  font-size: .875rem; color: var(--text-3); padding: .45rem .75rem;
  border-radius: var(--r); transition: all .15s; display: flex; align-items: center; gap: .3rem;
}
.nav-link-btn:hover { color: var(--text); background: var(--surface); }
.nav-dd-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); min-width: 190px;
  box-shadow: var(--sh-xl); z-index: 200; overflow: hidden;
  animation: ddOpen .15s ease;
}
@keyframes ddOpen { from{opacity:0;transform:translateY(-4px)} to{opacity:1;transform:none} }
.nav-dropdown:hover .nav-dd-menu,
.nav-dropdown:focus-within .nav-dd-menu { display: block; }
.nav-dd-item {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem; font-size: .875rem; color: var(--text-2);
  text-decoration: none; transition: background .1s;
}
.nav-dd-item:hover { background: var(--surface); text-decoration: none; color: var(--text); }
.nav-dd-item.danger { color: var(--danger); }
.nav-dd-sep { height: 1px; background: var(--border); margin: .3rem 0; }
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ── FLASH ──────────────────────────────────────── */
.flash-wrap { padding: .5rem 1.5rem; }
.flash {
  max-width: 1200px; margin: .35rem auto;
  padding: .7rem 1.1rem; border-radius: var(--r);
  font-size: .875rem; font-weight: 500;
  display: flex; align-items: center; gap: .5rem;
}
.flash-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-b); }
.flash-error   { background: var(--danger-bg);  color: var(--danger);  border: 1px solid var(--danger-b); }

/* ── FOOTER ─────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 1.5rem; margin-top: 4rem; background: var(--bg); }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .875rem; color: var(--text-3); }
.footer-logo  { max-height: 24px; max-width: 100px; width: auto; object-fit: contain; }
.logo-mark-sm { font-size: .95rem; }
.footer-copy  { font-size: .8rem; color: var(--text-4); }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-weight: 600; font-size: .875rem; border-radius: var(--r);
  padding: .6rem 1.35rem; border: 1.5px solid transparent; cursor: pointer;
  transition: all .15s; text-decoration: none; white-space: nowrap; line-height: 1.3;
  font-family: var(--font);
}
.btn:hover { transform: translateY(-3px); text-decoration: none; box-shadow: 0 0 25px rgba(220, 38, 38, 0.45); }
.btn:active { transform: translateY(-1px); }
.btn-primary   { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-h); border-color: var(--accent-h); color: #fff; box-shadow: 0 0 35px rgba(220, 38, 38, 0.6); }
.btn-secondary { background: var(--bg); color: var(--text-2); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface); border-color: var(--border-h); color: var(--text); }
.btn-danger    { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--danger); border-color: var(--danger-b); }
.btn-danger-ghost:hover { background: var(--danger-bg); }
.btn-success   { background: var(--success); color: #fff; border-color: var(--success); }
.btn-ghost     { background: transparent; color: var(--text-3); border-color: transparent; }
.btn-ghost:hover { background: var(--surface); color: var(--text); }
.btn-copy      { background: var(--surface); color: var(--text-3); border-color: var(--border); padding: .42rem .85rem; font-size: .8rem; }
.btn-copy:hover { border-color: var(--accent); color: var(--accent); }
.btn-copy.copied { background: var(--success-bg); color: var(--success); border-color: var(--success-b); }
.btn-full { width: 100%; }
.btn-sm  { padding: .4rem .95rem; font-size: .82rem; }
.btn-xs  { padding: .25rem .55rem; font-size: .75rem; }

/* ── FORMS ───────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--text-3); }
.field input, .field textarea, .field select {
  padding: .6rem .9rem; border: 1.5px solid var(--border);
  border-radius: var(--r); font-size: .9rem; color: var(--text);
  background: var(--bg); outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.field-hint { font-size: .77rem; color: var(--text-4); }

/* ── PAGE LAYOUT ─────────────────────────────────── */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ═══════════════════════════════════════════════
   HOMEPAGE
═══════════════════════════════════════════════ */
.home { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ── HERO ──────────────────────────────────────── */
.hero {
  padding: 5rem 0 2.5rem;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 500px;
  background: radial-gradient(ellipse 60% 50% at 50% 0%,
    color-mix(in srgb, var(--accent) 8%, transparent),
    transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; max-width: 600px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-m);
  padding: .3rem .95rem; border-radius: 100px; margin-bottom: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
}
.eyebrow-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 2s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero-h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700;
  line-height: 1.12; letter-spacing: -.03em; color: var(--text); margin-bottom: 1rem;
}
.hero-gradient {
  background: linear-gradient(135deg, var(--accent), #7c3aed 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-desc { font-size: 1.05rem; color: var(--text-3); margin-bottom: 2.2rem; max-width: 460px; margin-left: auto; margin-right: auto; }

.hero-stats {
  display: inline-flex; align-items: center; gap: 2rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 100px; padding: .75rem 2.2rem; box-shadow: var(--sh);
}
.hc-item { display: flex; flex-direction: column; align-items: center; gap: .05rem; }
.hc-num  { font-size: 1.05rem; font-weight: 700; font-family: var(--mono); color: var(--text); line-height: 1.2; }
.hc-lbl  { font-size: .67rem; color: var(--text-4); text-transform: uppercase; letter-spacing: .07em; }
.hc-sep  { width: 1px; height: 28px; background: var(--border); }

/* ── UPLOAD SECTION ─────────────────────────────── */
.upload-zone-section { max-width: 660px; margin: 2rem auto 1rem; }

.upload-card {
  background: var(--bg-card); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--sh-xl); overflow: hidden;
}

/* Drop area */
.drop-area { cursor: pointer; transition: background .18s; }
.drop-area.drag-over { background: var(--accent-l); }
.drop-area.drag-over .drop-ring { border-color: var(--accent); background: var(--accent-m); transform: scale(1.05); }
.drop-area.drag-over .drop-arrow { stroke: var(--accent); }

.drop-body {
  padding: 3rem 2rem 2.5rem;
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
}
.drop-ring {
  width: 82px; height: 82px; border-radius: 50%;
  border: 2px dashed var(--border-h); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: .5rem; transition: all .25s;
}
.drop-area:hover .drop-ring { border-color: var(--accent); background: var(--accent-l); }
.drop-arrow { width: 30px; height: 30px; stroke: var(--text-3); transition: stroke .2s; }
.drop-area:hover .drop-arrow { stroke: var(--accent); }
.drop-title { font-size: 1.1rem; font-weight: 600; color: var(--text); }
.drop-or    { font-size: .85rem; color: var(--text-4); }
.drop-btn   { margin-top: .15rem; }
.drop-formats { font-size: .72rem; color: var(--text-4); text-align: center; line-height: 1.7; font-family: var(--mono); }

/* Advanced options */
.upload-opts { border-top: 1px solid var(--border); }
.upload-opts[open] { }
.upload-opts-toggle {
  list-style: none; display: flex; align-items: center; gap: .5rem;
  padding: .85rem 1.25rem; cursor: pointer; user-select: none;
  font-size: .84rem; font-weight: 500; color: var(--text-3);
  transition: background .13s; border-bottom: 1px solid transparent;
}
.upload-opts[open] .upload-opts-toggle { border-bottom-color: var(--border); background: var(--surface); }
.upload-opts-toggle:hover { background: var(--surface); color: var(--text-2); }
.upload-opts-toggle svg { width: 14px; height: 14px; flex-shrink: 0; }
.opts-chevron { margin-left: auto; transition: transform .2s; }
.upload-opts[open] .opts-chevron { transform: rotate(180deg); }
.upload-opts summary::-webkit-details-marker { display: none; }

.opts-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: .75rem; padding: 1.1rem 1.25rem; background: var(--bg-page);
}
@media (max-width:600px) { .opts-grid { grid-template-columns: 1fr; } }
.opt-field { display: flex; flex-direction: column; gap: .35rem; }
.opt-field label { font-size: .78rem; font-weight: 600; color: var(--text-3); }
.opt-hint { font-weight: 400; color: var(--text-4); }
.opt-field select, .opt-field input {
  padding: .5rem .75rem; border: 1.5px solid var(--border);
  border-radius: var(--r); font-size: .84rem; color: var(--text);
  background: var(--bg); outline: none; transition: border-color .15s;
}
.opt-field select:focus, .opt-field input:focus { border-color: var(--accent); }

/* Progress */
.up-progress { padding: 1.1rem 1.5rem; border-top: 1px solid var(--border); background: var(--surface); }
.up-progress-top { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-3); margin-bottom: .45rem; }
.up-track { height: 4px; background: var(--border); border-radius: 100px; overflow: hidden; }
.up-fill  { height: 100%; width: 0; background: var(--accent); border-radius: 100px; transition: width .22s ease; }

/* Results */
.results-wrap { padding: .75rem; display: flex; flex-direction: column; gap: .5rem; max-height: 400px; overflow-y: auto; border-top: 1px solid var(--border); }
.result-item {
  display: flex; align-items: flex-start; gap: .85rem;
  background: var(--bg-page); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: .85rem 1rem;
  animation: slideUp .2s ease;
}
@keyframes slideUp { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:none} }
.result-item.result-error { border-color: var(--danger-b); background: var(--danger-bg); }
.result-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: var(--r); flex-shrink: 0; border: 1px solid var(--border); }
.result-info  { flex: 1; min-width: 0; }
.result-name  { font-size: .86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-meta  { font-size: .73rem; color: var(--text-3); font-family: var(--mono); margin-top: .1rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.result-meta .tag { background: var(--surface); border: 1px solid var(--border); padding: .1rem .4rem; border-radius: 4px; }
.result-btns  { display: flex; gap: .35rem; flex-shrink: 0; margin-top: .1rem; }

.upload-cta-text { text-align: center; color: var(--text-3); font-size: .85rem; margin-top: 1rem; }

/* ── FEATURES ───────────────────────────────────── */
.section-title { text-align: center; margin-bottom: 4rem; }
.section-title h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: .8rem; letter-spacing: -.02em; }
.section-title p { color: var(--text-3); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.features-band { padding: 4rem 0 6rem; }
.features-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
@media(max-width:1024px) { .features-inner { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:520px)  { .features-inner { grid-template-columns: 1fr; } }

.feat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 1.25rem; padding: 2rem 1.5rem; border-radius: var(--r-xl);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}
.feat:hover {
  background: var(--bg); border-color: var(--border);
  box-shadow: var(--sh-xl); transform: translateY(-6px);
}
.feat-ico {
  font-size: 1.75rem; width: 64px; height: 64px; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s ease;
}
.feat:hover .feat-ico {
  background: var(--accent-m); border-color: var(--accent);
  transform: scale(1.1) rotate(5deg);
}
.feat h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; color: var(--text); }
.feat p  { font-size: .88rem; color: var(--text-3); line-height: 1.6; }

/* ── RECENT MOSAIC ──────────────────────────────── */
.recent-section { padding-bottom: 4rem; }
.recent-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.recent-header h2 { font-size: 1.1rem; font-weight: 700; }
.see-all { font-size: .84rem; color: var(--accent); }
.see-all:hover { text-decoration: underline; }
.recent-mosaic {
  display: grid; grid-template-columns: repeat(6,1fr); gap: 6px;
}
@media(max-width:840px) { .recent-mosaic { grid-template-columns: repeat(4,1fr); } }
@media(max-width:520px)  { .recent-mosaic { grid-template-columns: repeat(3,1fr); } }
.mosaic-item {
  position: relative; aspect-ratio: 1; overflow: hidden;
  border-radius: var(--r-lg); background: var(--surface);
  display: block; border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.mosaic-item:hover { transform: scale(1.04); box-shadow: var(--sh-lg); z-index: 2; }
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.mosaic-item:hover img { transform: scale(1.06); }
.mosaic-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 55%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: .45rem .5rem; opacity: 0; transition: opacity .2s;
}
.mosaic-item:hover .mosaic-overlay { opacity: 1; }
.mosaic-name  { font-size: .67rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mosaic-views { font-size: .62rem; color: rgba(255,255,255,.7); }

/* ── AUTH ─────────────────────────────────────────  */
.auth-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.5rem; background: var(--bg-page);
}
.auth-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 2.5rem 2rem;
  width: 100%; max-width: 420px; box-shadow: var(--sh-xl);
}
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo-img { max-height: 48px; margin: 0 auto; }
.logo-mark.xl { font-size: 2.5rem; }
.auth-title { font-size: 1.45rem; font-weight: 700; text-align: center; margin-bottom: .3rem; }
.auth-sub   { color: var(--text-3); font-size: .9rem; text-align: center; margin-bottom: 1.75rem; }
.auth-form  { display: flex; flex-direction: column; gap: 1.1rem; }
.auth-switch { text-align: center; color: var(--text-3); font-size: .875rem; margin-top: 1.25rem; }

/* ── ALERTS ──────────────────────────────────────── */
.alert { padding: .8rem 1rem; border-radius: var(--r); font-size: .875rem; margin-bottom: 1rem; }
.alert ul { padding-left: 1.2rem; }
.alert-error   { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-b); }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-b); }
.alert-warn    { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-b); }

/* ── IMAGE VIEW ──────────────────────────────────── */
.image-page { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.image-layout { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; align-items: start; }
@media(max-width:820px) { .image-layout { grid-template-columns: 1fr; } }

.img-frame {
  background: var(--surface); border: 2px solid var(--danger);
  border-radius: var(--r-xl); overflow: hidden;
  display: flex; align-items: center; justify-content: center; min-height: 280px;
}
.img-display { max-width: 100%; max-height: 75vh; object-fit: contain; cursor: zoom-in; transition: transform 0.2s; }
.img-display:hover { transform: scale(1.02); }

/* ── LIGHTBOX ────────────────────────────────────── */
.lightbox {
  display: none; position: fixed; z-index: 9999; left: 0; top: 0;
  width: 100%; height: 100%; background-color: rgba(0,0,0,0.85);
  align-items: center; justify-content: center; cursor: zoom-out;
  backdrop-filter: blur(4px);
}
.lightbox img {
  max-width: 95vw; max-height: 95vh; object-fit: contain;
  box-shadow: 0 0 40px rgba(0,0,0,0.5); border-radius: 8px;
}
.img-meta-bar { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.meta-chip {
  font-size: .75rem; color: var(--text-3); background: var(--bg);
  border: 1px solid var(--border); padding: .22rem .65rem; border-radius: 100px;
}
.meta-chip a { color: var(--text-3); }

.img-info-panel {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.5rem; box-shadow: var(--sh);
  position: sticky; top: calc(var(--nav-h) + 1rem);
}
.img-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; word-break: break-all; }
.img-props { margin-bottom: 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.prop-row  { display: flex; justify-content: space-between; align-items: center; font-size: .875rem; }
.prop-k    { color: var(--text-3); }
.prop-v.mono   { font-family: var(--mono); font-size: .82rem; }
.prop-v.accent { color: var(--accent); }

.link-group-stack { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 1.5rem; }
.link-group label.link-label { font-size: .72rem; font-weight: 600; color: var(--text-4); text-transform: uppercase; letter-spacing: .05em; display: block; margin-bottom: .3rem; }
.copy-row { display: flex; gap: .4rem; }
.copy-input {
  flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-3); font-family: var(--mono); font-size: .73rem;
  padding: .44rem .7rem; border-radius: var(--r); outline: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.img-actions { display: flex; gap: .6rem; margin-bottom: .75rem; }
.img-actions .btn { flex: 1; }

/* ── GALLERY ─────────────────────────────────────── */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr)); gap: .75rem;
}
.gallery-item {
  position: relative; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.gallery-item:hover { box-shadow: var(--sh-lg); transform: translateY(-2px); }
.gallery-thumb-link { display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.gallery-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-item:hover .gallery-thumb { transform: scale(1.04); }
.gallery-info { padding: .5rem .6rem; }
.gal-name { display: block; font-size: .77rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal-meta { display: block; font-size: .69rem; color: var(--text-4); font-family: var(--mono); }
.gal-deleted { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 100px; font-size: .8rem; color: var(--text-4); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.48);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  opacity: 0; transition: opacity .2s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gal-btn {
  background: rgba(255,255,255,.92); color: var(--text); font-size: .77rem; font-weight: 600;
  padding: .3rem .8rem; border-radius: 5px; border: none; cursor: pointer; font-family: var(--font);
  transition: background .12s; text-decoration: none;
}
.gal-btn:hover { background: #fff; text-decoration: none; color: var(--text); }
.gal-btn.danger { background: rgba(220,38,38,.9); color: #fff; }
.inline { display: inline; }

/* ── DASHBOARD ───────────────────────────────────── */
.dash-page { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.dash-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 2rem; gap: 1rem; flex-wrap: wrap; }
.dash-header h1 { font-size: 1.6rem; font-weight: 700; }
.dash-sub { color: var(--text-3); font-size: .88rem; margin-top: .25rem; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fill,minmax(165px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.dash-stat-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.25rem; box-shadow: var(--sh-sm); }
.dsc-num   { font-size: 1.75rem; font-weight: 700; color: var(--accent); font-family: var(--mono); }
.dsc-label { font-size: .75rem; color: var(--text-3); margin-top: .2rem; text-transform: uppercase; letter-spacing: .04em; }

/* ── PROFILE ──────────────────────────────────────── */
.profile-page { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.profile-header { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2.5rem; }
.avatar-circle {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 1.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.profile-info h1 { font-size: 1.4rem; font-weight: 700; }
.profile-meta { font-size: .84rem; color: var(--text-3); margin-top: .25rem; }

/* ── COLLECTIONS ─────────────────────────────────── */
.colls-page { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.colls-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.colls-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 1rem; }
.coll-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; text-decoration: none; color: var(--text); transition: box-shadow .2s, transform .2s; display: block; }
.coll-card:hover { box-shadow: var(--sh-lg); transform: translateY(-2px); text-decoration: none; color: var(--text); }
.coll-cover { height: 140px; background: var(--surface); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.coll-cover img { width: 100%; height: 100%; object-fit: cover; }
.coll-cover-ph { font-size: 2.5rem; opacity: .25; }
.coll-info { padding: 1rem; }
.coll-title { font-size: .95rem; font-weight: 600; margin-bottom: .2rem; }
.coll-meta  { font-size: .78rem; color: var(--text-3); }

/* ── EXPLORE ──────────────────────────────────────── */
.explore-page { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.explore-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.explore-header h1 { font-size: 1.5rem; font-weight: 700; flex: 1; }

/* ── RESULT / ERROR PAGES ────────────────────────── */
.center-page {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 2rem; background: var(--bg-page);
}
.result-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 3rem 2.5rem;
  text-align: center; max-width: 400px; width: 100%; box-shadow: var(--sh-xl);
  display: flex; flex-direction: column; align-items: center; gap: .75rem;
}
.result-icon { width: 56px; height: 56px; border-radius: 50%; font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.result-icon.success { background: var(--success-bg); color: var(--success); }
.result-icon.danger  { background: var(--danger-bg);  color: var(--danger); }
.result-code { font-size: 5rem; font-weight: 700; font-family: var(--mono); color: var(--accent); line-height: 1; }
.result-card h2 { font-size: 1.4rem; font-weight: 700; }
.result-card p  { color: var(--text-3); font-size: .92rem; }

/* ── PASSWORD PROMPT ─────────────────────────────── */
.pw-page { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--bg-page); }
.pw-card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 2.5rem 2rem; width: 100%; max-width: 380px; text-align: center; box-shadow: var(--sh-xl); }
.pw-card .lock-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.pw-card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: .4rem; }
.pw-card p  { color: var(--text-3); font-size: .9rem; margin-bottom: 1.5rem; }
.pw-form    { display: flex; flex-direction: column; gap: .75rem; }

/* ── PAGINATION ───────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 2rem 0; }
.page-btn { color: var(--text-3); font-size: .875rem; padding: .5rem 1.1rem; border: 1px solid var(--border); border-radius: var(--r); transition: all .15s; text-decoration: none; }
.page-btn:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.page-info { font-size: .84rem; color: var(--text-3); }

/* ── MAINTENANCE / BANNED ─────────────────────────── */
.maintenance-page, .banned-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-page); padding: 2rem; }

/* ── ACCOUNT / API SETTINGS ──────────────────────── */
.account-page, .api-page, .stats-page, .bulk-page, .colls-page { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.account-section { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 1.5rem; margin-bottom: 1.25rem; }
.account-section h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); }

/* ── API KEY ──────────────────────────────────────── */
.api-key-new { background: var(--success-bg); border: 1.5px solid var(--success-b); border-radius: var(--r-xl); padding: 1.25rem 1.5rem; margin-bottom: 1.5rem; }
.api-key-new h3 { color: var(--success); font-size: .95rem; margin-bottom: .5rem; }
.api-key-value { font-family: var(--mono); font-size: .85rem; background: var(--bg); border: 1px solid var(--border); padding: .6rem 1rem; border-radius: var(--r); word-break: break-all; }

/* ── EMBED ────────────────────────────────────────── */
.embed-page { margin: 0; padding: 0; background: #000; display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.embed-page img { max-width: 100%; max-height: 100vh; object-fit: contain; }

/* ── IMAGE STATS ──────────────────────────────────── */
.stats-kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 2rem; }
@media(max-width:640px) { .stats-kpis { grid-template-columns: 1fr 1fr; } }

/* ── REPORTS BADGE ────────────────────────────────── */
.reports-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--danger); color: #fff;
  font-size: .65rem; font-weight: 700; margin-left: auto;
}

/* ── EMPTY STATE ──────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text-3); }
.empty-icon  { font-size: 3rem; margin-bottom: 1rem; opacity: .4; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; color: var(--text); }

/* ── UTILS ────────────────────────────────────────── */
.mono { font-family: var(--mono); }
.hidden { display: none !important; }

/* ── RESPONSIVE ───────────────────────────────────── */
@media(max-width:640px) {
  .hero-stats { flex-wrap: wrap; gap: 1rem; justify-content: center; padding: .75rem 1.5rem; }
  .hc-sep { width: 40px; height: 1px; }
  .nav-actions .nav-link:not(.nav-btn) { display: none; }
  .nav-hamburger { display: flex; }
  .features-inner { grid-template-columns: 1fr; }
  .auth-card { padding: 1.75rem 1.25rem; }
}

/* ═══════════════════════════════════════════════
   DARK MODE
═══════════════════════════════════════════════ */
body.dark {
  --bg:       #0f172a;
  --bg-page:  #080e1a;
  --bg-card:  #1e293b;
  --surface:  #1e293b;
  --border:   #334155;
  --border-h: #475569;
  --text:     #f1f5f9;
  --text-2:   #f1f5f9;
  --text-3:   #cbd5e1;
  --text-4:   #94a3b8;
  --success-bg: #14532d;
  --danger-bg:  #450a0a;
  --warn-bg:    #451a03;
  --accent-l:   #1e3a5f;
  --accent-m:   #1e3a5f;
}
body.dark .site-header { background: rgba(15,23,42,.95); }
body.dark .upload-card { box-shadow: 0 12px 40px rgba(0,0,0,.4); }
body.dark .nav-dd-menu { background: #1e293b; border-color: #334155; }
body.dark .auth-card,
body.dark .img-info-panel,
body.dark .feature-card,
body.dark .coll-card { background: #1e293b; border-color: #334155; }
body.dark .opts-grid { background: #0f172a; }
body.dark input, body.dark select, body.dark textarea { background: #1e293b; color: #f1f5f9; border-color: #334155; }

/* ── THEME TOGGLE BUTTON ──────────────────────── */
.theme-toggle {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; padding: .4rem; border-radius: var(--r);
  color: var(--text-3); transition: background .15s;
  display: flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { background: var(--surface); }

/* ── SEARCH BAR ───────────────────────────────── */
.search-bar-wrap {
  flex: 1; max-width: 340px;
}
.search-bar {
  display: flex; align-items: center;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 100px; padding: .35rem .35rem .35rem .9rem;
  transition: border-color .15s;
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar input {
  flex: 1; background: none; border: none; outline: none;
  font-size: .84rem; color: var(--text); font-family: var(--font);
}
.search-bar input::placeholder { color: var(--text-4); }
.search-bar button {
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  width: 28px; height: 28px; border-radius: 100px; display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .15s;
}
.search-bar button:hover { background: var(--accent-h); }

/* ── SEARCH RESULTS ───────────────────────────── */
.search-page { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.search-section-title { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-4); margin-bottom: .75rem; }
.user-result-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.user-result-chip {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 100px; padding: .3rem .9rem .3rem .5rem;
  text-decoration: none; color: var(--text-2); transition: border-color .15s;
  font-size: .85rem;
}
.user-result-chip:hover { border-color: var(--accent); text-decoration: none; }
.user-avatar-xs { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ── FAVORITES PAGE ───────────────────────────── */
.favorites-page { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }

/* ── TAG PAGE ─────────────────────────────────── */
.tag-page { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }
.tag-hero { display: flex; align-items: center; gap: .75rem; margin-bottom: 2rem; }
.tag-badge { font-size: 1.5rem; font-weight: 700; background: var(--accent-m); color: var(--accent); border-radius: var(--r-lg); padding: .3rem 1rem; }

/* ── FEATURES (8 items) ────────────────────────── */
.features-inner { grid-template-columns: repeat(4, 1fr); }
@media(max-width:1000px) { .features-inner { grid-template-columns: repeat(2,1fr); } }
@media(max-width:560px)  { .features-inner { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════
   IMAGE PAGE — Notes, Tags, Panel elements
═══════════════════════════════════════════════ */

/* ── NOTE BLOCK ───────────────────────────────── */
.note-block {
  margin-top: 1.5rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.note-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1.1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.note-title {
  display: flex; align-items: center; gap: .4rem;
  font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-3);
}
.note-title svg { stroke: var(--accent); }
.note-edit-btn {
  background: none; border: 1px solid var(--border);
  color: var(--accent); font-size: .78rem; font-weight: 600;
  padding: .22rem .75rem; border-radius: 100px; cursor: pointer;
  font-family: var(--font); transition: all .15s;
}
.note-edit-btn:hover { background: var(--accent-l); border-color: var(--accent); }

.note-content {
  padding: 1rem 1.1rem;
  font-size: .9rem; color: var(--text-2); line-height: 1.7;
  white-space: pre-wrap; word-break: break-word;
}
.note-empty {
  padding: 1rem 1.1rem;
  font-size: .875rem; color: var(--text-4);
  font-style: italic;
}

.note-textarea {
  display: block; width: 100%;
  padding: 1rem 1.1rem;
  border: none; border-top: 1px solid var(--border);
  border-radius: 0; outline: none; resize: vertical;
  font-family: var(--font); font-size: .9rem;
  color: var(--text); background: var(--bg);
  line-height: 1.7; min-height: 120px;
  transition: background .15s;
}
.note-textarea:focus { background: color-mix(in srgb, var(--accent) 3%, var(--bg)); }

.note-edit-actions {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1.1rem;
  background: var(--surface); border-top: 1px solid var(--border);
  gap: .5rem; flex-wrap: wrap;
}
.note-char-count { font-size: .75rem; color: var(--text-4); font-family: var(--mono); }

/* ── IMAGE PANEL EXTRAS ───────────────────────── */
.img-panel-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: .5rem; margin-bottom: 1rem;
}
.fav-btn {
  background: none; border: 1.5px solid var(--border);
  border-radius: 50%; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; flex-shrink: 0;
  transition: all .15s; padding: 0;
}
.fav-btn:hover, .fav-btn.active { border-color: #f43f5e; background: #fff1f2; }

.img-extra-actions {
  display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .6rem;
  padding-top: .6rem; border-top: 1px solid var(--border);
}

.img-tags {
  display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem;
}
.img-tag {
  font-size: .73rem; background: var(--surface);
  border: 1px solid var(--border); padding: .18rem .55rem;
  border-radius: 100px; color: var(--text-3); text-decoration: none;
  transition: border-color .15s, color .15s;
}
.img-tag:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ── OWNER TOOLS ──────────────────────────────── */
.owner-tools {
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .75rem;
}
.owner-tool-label {
  display: block; font-size: .75rem; font-weight: 600;
  color: var(--text-4); text-transform: uppercase;
  letter-spacing: .05em; margin-bottom: .35rem;
}
.owner-tool-row { display: flex; gap: .4rem; }
.owner-tool-input {
  flex: 1; padding: .46rem .75rem;
  border: 1.5px solid var(--border); border-radius: var(--r);
  font-size: .82rem; color: var(--text); background: var(--bg);
  outline: none; font-family: var(--font); transition: border-color .15s;
}
.owner-tool-input:focus { border-color: var(--accent); }
.owner-tool-hint { font-size: .72rem; color: var(--text-4); margin-top: .2rem; }
.owner-tool-section { }

.coll-panel {
  margin-top: .5rem; background: var(--bg-page);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: .75rem; max-height: 200px; overflow-y: auto;
}

.img-colls { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.coll-chip {
  font-size: .77rem; background: var(--surface); border: 1px solid var(--border);
  padding: .2rem .65rem; border-radius: 100px; color: var(--text-3);
  text-decoration: none; display: inline-block;
  transition: border-color .15s, color .15s;
}
.coll-chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.report-section {
  margin-top: 1rem; padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.report-link {
  background: none; border: none; cursor: pointer;
  font-size: .75rem; color: var(--text-4); padding: 0;
  font-family: var(--font); transition: color .15s;
}
.report-link:hover { color: var(--danger); }

/* ── DARK MODE extras ─────────────────────────── */
body.dark .note-block { background: var(--bg-card); border-color: var(--border); }
body.dark .note-textarea { background: var(--bg-card); color: var(--text); }
body.dark .note-header, body.dark .note-edit-actions { background: var(--surface); }

/* ═══════════════════════════════════════════════
   IMPROVED NOTE SECTION
═══════════════════════════════════════════════ */
.note-section {
  margin-top: 1.5rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg);
  transition: border-color .2s;
}
.note-section:focus-within { border-color: var(--accent); }

.note-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 1.1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.note-section-title {
  display: flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-3);
}
.note-section-title svg { stroke: var(--accent); }
.note-header-actions { display: flex; gap: .4rem; }
.note-edit-trigger { font-size: .78rem !important; }

/* Read view */
.note-read-view { min-height: 60px; }
.note-text {
  padding: 1.1rem 1.1rem;
  font-size: .9rem; color: var(--text-2);
  line-height: 1.75; white-space: pre-wrap; word-break: break-word;
}
.note-empty-state .note-placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: .5rem;
  padding: 1.5rem 1rem; text-align: center;
  color: var(--text-4); font-size: .85rem;
}
.note-placeholder-icon { font-size: 1.5rem; opacity: .5; }
.note-add-btn {
  background: none; border: 1.5px dashed var(--border-h);
  color: var(--accent); font-size: .8rem; font-weight: 600;
  padding: .3rem 1rem; border-radius: 100px; cursor: pointer;
  font-family: var(--font); margin-top: .25rem; transition: all .15s;
}
.note-add-btn:hover { border-color: var(--accent); background: var(--accent-l); }

/* Edit view */
.note-edit-view { }
.note-editor-wrap { }
.note-textarea {
  display: block; width: 100%; min-height: 140px;
  padding: 1rem 1.1rem; border: none; outline: none; resize: vertical;
  font-family: var(--font); font-size: .9rem; color: var(--text);
  background: var(--bg); line-height: 1.75;
  border-top: 1px solid var(--border);
}
.note-textarea:focus { background: color-mix(in srgb, var(--accent) 2%, var(--bg)); }
.note-textarea::placeholder { color: var(--text-4); }

.note-editor-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 1.1rem; background: var(--surface);
  border-top: 1px solid var(--border); gap: .75rem; flex-wrap: wrap;
}
.note-char-wrap {
  display: flex; align-items: center; gap: .5rem;
  font-size: .75rem; color: var(--text-4); font-family: var(--mono);
}
.note-char-bar-bg {
  width: 80px; height: 4px; background: var(--border);
  border-radius: 100px; overflow: hidden;
}
.note-char-bar {
  height: 100%; border-radius: 100px;
  background: var(--accent); transition: width .2s, background .2s;
}
.note-char-max { color: var(--text-4); }
.note-editor-btns { display: flex; gap: .4rem; flex-wrap: wrap; }

body.dark .note-section { background: var(--bg-card); }
body.dark .note-section-header,
body.dark .note-editor-footer { background: var(--surface); }
body.dark .note-textarea { background: var(--bg-card); color: var(--text); }
