/* ═══════════════════════════════════════════════════════════════
   ResimShare — Design System v4
   Palette: Primary #4773BF · Secondary #345186 · Accent #96A9CC
            Background #F1F4F8 · Text #1A1F28
   Brand colours come from admin settings (--brand-*) with these fallbacks.
═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); }

/* ── TOKENS ───────────────────────────────────────────────────── */
:root {
  --c-primary: var(--brand-blue, #4773BF);
  --c-secondary: var(--brand-navy, #345186);
  --c-accent: var(--brand-sky, #96A9CC);
  --c-bg: var(--brand-white, #F1F4F8);
  --c-text: #1A1F28;

  --primary: var(--c-primary);
  --primary-strong: var(--c-secondary);
  --primary-soft: color-mix(in srgb, var(--c-primary) 9%, #fff);
  --primary-soft-2: color-mix(in srgb, var(--c-primary) 17%, #fff);
  --primary-rgb: 71, 115, 191;
  --grad-primary: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  --grad-soft: linear-gradient(135deg, color-mix(in srgb, var(--c-accent) 28%, #fff), #fff);

  --bg-page: var(--c-bg);
  --bg: #FFFFFF;
  --bg-card: #FFFFFF;
  --surface: color-mix(in srgb, var(--c-accent) 16%, var(--c-bg));
  --surface-2: color-mix(in srgb, var(--c-accent) 28%, var(--c-bg));
  --border: color-mix(in srgb, var(--c-accent) 36%, #fff);
  --border-h: color-mix(in srgb, var(--c-accent) 75%, #fff);
  --text: var(--c-text);
  --text-2: #343C4B;
  --text-3: #566074;
  --text-4: #687286;
  --on-primary: #FFFFFF;

  --success: #227A4E; --success-bg: #E7F4EC; --success-b: #B9DEC8;
  --danger: #B3403C;  --danger-bg: #FBEDEC;  --danger-b: #EDC5C2;
  --warn: #8A6414;    --warn-bg: #FBF3DF;    --warn-b: #EBD8A8;

  /* Compatibility aliases used by inline styles in templates. */
  --accent: var(--primary); --accent-h: var(--primary-strong);
  --accent-l: var(--primary-soft); --accent-m: var(--primary-soft-2);
  --white: #FFFFFF; --bg-muted: var(--surface); --text-muted: var(--text-3);
  --cyan: var(--c-accent); --orange: var(--c-accent); --red: var(--danger);
  --yellow: var(--warn-bg); --green: var(--success-bg);

  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px; --r-2xl: 28px; --r-pill: 999px;
  --radius: var(--r); --radius-lg: var(--r-lg);
  --sh-xs: 0 1px 2px rgba(26, 31, 40, .05);
  --sh-sm: 0 1px 3px rgba(26, 31, 40, .06), 0 1px 2px rgba(26, 31, 40, .04);
  --sh: 0 6px 18px -6px rgba(26, 31, 40, .12), 0 2px 6px rgba(26, 31, 40, .04);
  --sh-lg: 0 18px 40px -14px rgba(52, 81, 134, .28), 0 4px 12px rgba(26, 31, 40, .05);
  --sh-xl: 0 32px 70px -24px rgba(52, 81, 134, .35), 0 8px 20px rgba(26, 31, 40, .06);
  --sh-primary: 0 10px 24px -10px rgba(var(--primary-rgb), .75);
  --shadow-lg: var(--sh-lg);
  --ring: 0 0 0 4px color-mix(in srgb, var(--c-primary) 22%, transparent);

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  --sans: var(--font);
  --nav-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --container: 1200px;
}

html.dark, body.dark {
  --c-bg: #0D1118;
  --primary: color-mix(in srgb, var(--c-primary) 72%, #fff);
  --primary-strong: color-mix(in srgb, var(--c-primary) 88%, #fff);
  --primary-soft: color-mix(in srgb, var(--c-primary) 16%, #121824);
  --primary-soft-2: color-mix(in srgb, var(--c-primary) 28%, #121824);
  --grad-primary: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
  --grad-soft: linear-gradient(135deg, #182031, #131923);
  --bg-page: #0D1118;
  --bg: #141A24;
  --bg-card: #151B26;
  --surface: #1B2230;
  --surface-2: #222B3B;
  --border: #283244;
  --border-h: #3A4760;
  --text: #EAEEF5;
  --text-2: #CDD4E0;
  --text-3: #A0ABBD;
  --text-4: #8792A6;
  --success: #72D3A1; --success-bg: #11281D; --success-b: #245239;
  --danger: #FF9C95;  --danger-bg: #2B1515;  --danger-b: #5F2D2A;
  --warn: #F0C76C;    --warn-bg: #2A2312;    --warn-b: #5C4B22;
  --sh-xs: 0 1px 2px rgba(0,0,0,.4);
  --sh-sm: 0 1px 3px rgba(0,0,0,.45);
  --sh: 0 8px 22px -8px rgba(0,0,0,.6);
  --sh-lg: 0 20px 44px -16px rgba(0,0,0,.7);
  --sh-xl: 0 34px 80px -26px rgba(0,0,0,.8);
  --white: #141A24;
}

/* ── BASE ─────────────────────────────────────────────────────── */
html.dark { color-scheme: dark; background: var(--bg-page); }
body {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg-page); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .3s ease, color .3s ease;
}
.main-content { flex: 1 0 auto; min-width: 0; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-strong); }
img, svg { display: block; max-width: 100%; }
input, textarea, select, button { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.025em; font-weight: 750; color: var(--text); }
code, kbd, .mono { font-family: var(--mono); }
::selection { background: color-mix(in srgb, var(--c-primary) 26%, transparent); color: var(--text); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
::placeholder { color: var(--text-4); opacity: 1; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.clipboard-fallback { position: fixed; top: 0; left: -9999px; }
.inline { display: inline; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 10001; padding: 12px 20px; background: var(--text); color: var(--bg); border-radius: var(--r); font-weight: 700; }
.skip-link:focus { top: 12px; color: var(--bg); }

.ti { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* ── SPINNER (SpellUI port) ───────────────────────────────────── */
.spinner { display: inline-block; flex: 0 0 auto; color: currentColor; line-height: 0; }
.spinner svg { width: 100%; height: 100%; }
.spinner-sm { width: 16px; height: 16px; }
.spinner-default { width: 20px; height: 20px; }
.spinner-md { width: 24px; height: 24px; }
.spinner-lg { width: 32px; height: 32px; }
.spinner-xl { width: 44px; height: 44px; }
.spinner-slow { animation: spin 2s linear infinite; }
.spinner-normal { animation: spin 1s linear infinite; }
.spinner-fast { animation: spin .5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SCROLL PROGRESS / TOP BUTTON ─────────────────────────────── */
.scroll-progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 2400; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--c-accent), var(--c-primary), var(--c-secondary)); transform: scaleX(0); transform-origin: left; will-change: transform; }
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 600;
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: 15px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px);
  color: var(--primary); box-shadow: var(--sh-lg);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .2s;
}
.to-top .ti { width: 20px; height: 20px; transition: transform .25s var(--ease); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.to-top:hover .ti { transform: translateY(-3px); }

/* ── ANNOUNCEMENT ─────────────────────────────────────────────── */
.ann-banner { position: relative; padding: .6rem 1.5rem; text-align: center; font-size: .86rem; font-weight: 600; display: flex; justify-content: center; align-items: center; gap: .5rem; }
.ann-info    { background: var(--grad-primary); color: #fff; }
.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); }

/* ── HEADER / NAV ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 500; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg-page) 72%, transparent);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: height .35s var(--ease), background .35s, border-color .35s, box-shadow .35s;
}
.site-header.is-scrolled {
  --nav-h: 62px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -18px rgba(26, 31, 40, .35);
}
.nav-inner { max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; gap: 2rem; }
.site-logo { display: flex; align-items: center; gap: .6rem; color: var(--text); flex-shrink: 0; }
.site-logo:hover { color: var(--text); }
/* Uploaded logo PNG carries ~20% vertical padding; crop it so the mark reads at nav size. */
.logo-img { height: 66px; width: auto; max-width: 230px; object-fit: contain; margin: -14px -4px; clip-path: inset(20% 2%); mix-blend-mode: multiply; transition: transform .4s var(--ease); }
.site-header.is-scrolled .logo-img { transform: scale(.92); }
html.dark .logo-img, body.dark .logo-img, html.dark .footer-logo, body.dark .footer-logo { filter: brightness(0) invert(1); mix-blend-mode: normal; }
.brand-symbol {
  position: relative; width: 36px; height: 36px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  background: var(--grad-primary); box-shadow: var(--sh-primary);
  transition: transform .45s var(--ease-spring);
}
.brand-symbol .ti { width: 20px; height: 20px; }
.brand-symbol::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 55%); }
.site-logo:hover .brand-symbol { transform: rotate(-8deg) scale(1.06); }
.brand-wordmark { font-size: 1.18rem; font-weight: 800; letter-spacing: -.04em; }
.brand-wordmark b { color: var(--primary); font-weight: 800; }

.nav-actions { flex: 1; display: flex; align-items: center; gap: .25rem; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: .15rem; margin-right: auto; }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  min-height: 40px; padding: .5rem .85rem; border-radius: var(--r);
  color: var(--text-2); font-size: .88rem; font-weight: 600; white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-link .ti { width: 18px; height: 18px; color: var(--text-3); transition: color .2s, transform .3s var(--ease); }
.nav-link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: 5px; height: 2px; border-radius: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav-link:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.nav-link:hover .ti { color: var(--primary); transform: translateY(-1px); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.nav-link.active { color: var(--primary); }
.nav-link.active .ti { color: var(--primary); }
.nav-tools { display: flex; align-items: center; gap: .5rem; }

/* Resim kodu ile ara (navbar + "kod bulunamadı" sayfası) */
.code-search {
  position: relative; display: inline-flex; align-items: center; height: 40px;
  border: 1px solid var(--border); border-radius: var(--r); background: var(--bg);
  transition: border-color .2s, box-shadow .2s;
}
.code-search:hover { border-color: var(--border-h); }
.code-search:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.code-search input {
  flex: 1; width: 6.6rem; min-width: 0; height: 100%; padding: 0 .75rem; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: .9rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.code-search input::placeholder { color: var(--text-4); font-family: var(--font); font-weight: 500; letter-spacing: 0; text-transform: none; }
.code-pop { position: relative; }
.code-pop.is-open .code-pop-toggle { color: var(--primary); border-color: var(--primary); }
.code-pop-panel {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 60; width: 270px;
  display: grid; gap: .55rem; padding: .85rem;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--sh-lg);
  opacity: 0; transform: translateY(-6px); pointer-events: none; visibility: hidden;
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.code-pop.is-open .code-pop-panel { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.code-pop-title { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; font-weight: 750; color: var(--text); }
.code-pop-title .ti { width: 16px; height: 16px; color: var(--primary); }
.code-pop-hint { color: var(--text-4); font-size: .74rem; }
.code-pop-panel .code-search { display: flex; width: 100%; }
.code-search-btn {
  display: inline-flex; align-items: center; gap: .3rem; height: calc(100% - 6px); margin-right: 3px; padding: 0 .65rem;
  border: 0; border-radius: calc(var(--r) - 3px); background: var(--primary); color: #fff;
  font-size: .8rem; font-weight: 700; cursor: pointer; transition: filter .2s, transform .2s var(--ease);
}
.code-search-btn .ti { width: 15px; height: 15px; }
.code-search-btn:hover { filter: brightness(1.08); }
.code-search-btn:active { transform: scale(.96); }
.code-search.code-search-lg { margin: 0 auto 1.1rem; height: 46px; padding: 0 .3rem 0 .9rem; gap: .5rem; max-width: 100%; }
.code-search.code-search-lg .input { width: 9rem; border: 0; box-shadow: none; padding: 0; background: transparent; text-transform: uppercase; letter-spacing: .1em; }
.code-search.code-search-lg .btn { height: 36px; }
.code-pill { letter-spacing: .1em; }

.icon-btn {
  position: relative; width: 40px; height: 40px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--r); background: var(--bg);
  color: var(--text-2); transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease);
  overflow: hidden;
}
.icon-btn .ti { width: 19px; height: 19px; }
.icon-btn:hover { color: var(--primary); border-color: var(--border-h); transform: translateY(-1px); }
.icon-btn:active { transform: scale(.94); }

.theme-toggle .ti { position: absolute; transition: transform .5s var(--ease-spring), opacity .3s; }
.theme-toggle .ti-sun { opacity: 0; transform: rotate(-90deg) scale(.4); }
html.dark .theme-toggle .ti-sun, body.dark .theme-toggle .ti-sun { opacity: 1; transform: none; }
html.dark .theme-toggle .ti-moon, body.dark .theme-toggle .ti-moon { opacity: 0; transform: rotate(90deg) scale(.4); }

.nav-dropdown { position: relative; }
.nav-user {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 40px;
  padding: .25rem .6rem .25rem .3rem; border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--bg); color: var(--text); font-size: .86rem; font-weight: 650;
  transition: border-color .2s, box-shadow .2s;
}
.nav-user:hover { border-color: var(--border-h); box-shadow: var(--sh-sm); }
.nav-user .chev { width: 15px; height: 15px; color: var(--text-3); transition: transform .3s var(--ease); }
.nav-dropdown.is-open .nav-user .chev { transform: rotate(180deg); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--grad-primary); color: #fff; font-size: .8rem; font-weight: 800;
}
.nav-user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 300; min-width: 230px; padding: .45rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-xl);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; pointer-events: none;
  transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.nav-dropdown.is-open .nav-dd-menu { opacity: 1; transform: none; pointer-events: auto; }
.nav-dd-head { padding: .6rem .75rem .7rem; border-bottom: 1px solid var(--border); margin-bottom: .35rem; }
.nav-dd-head strong { display: block; font-size: .9rem; }
.nav-dd-head small { color: var(--text-3); font-size: .74rem; }
.nav-dd-item {
  display: flex; align-items: center; gap: .65rem; min-height: 40px; padding: .5rem .75rem; border-radius: 9px;
  color: var(--text-2); font-size: .86rem; font-weight: 550; transition: background .15s, color .15s, padding-left .2s var(--ease);
}
.nav-dd-item .ti { width: 18px; height: 18px; color: var(--text-3); transition: color .15s; }
.nav-dd-item:hover { background: var(--surface); color: var(--text); padding-left: .95rem; }
.nav-dd-item:hover .ti { color: var(--primary); }
.nav-dd-item.danger, .nav-dd-item.danger .ti { color: var(--danger); }
.nav-dd-item.danger:hover { background: var(--danger-bg); }
.nav-dd-sep { height: 1px; background: var(--border); margin: .35rem .25rem; }

.nav-hamburger { display: none; margin-left: auto; }
.nav-hamburger .bars { position: relative; width: 18px; height: 12px; }
.nav-hamburger .bars span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s, top .35s var(--ease); }
.nav-hamburger .bars span:nth-child(1) { top: 0; }
.nav-hamburger .bars span:nth-child(2) { top: 5px; }
.nav-hamburger .bars span:nth-child(3) { top: 10px; }
.nav-hamburger[aria-expanded="true"] .bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-hamburger[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] .bars span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--bg); --btn-fg: var(--text); --btn-bd: var(--border);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .65rem 1.3rem;
  border: 1px solid var(--btn-bd); border-radius: var(--r); background: var(--btn-bg); color: var(--btn-fg);
  font-size: .9rem; font-weight: 700; line-height: 1.2; letter-spacing: -.005em; white-space: nowrap;
  cursor: pointer; user-select: none; text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:hover { color: var(--btn-fg); text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
.btn .ti { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .ti-arrow-right, .btn:hover .ti-arrow-up-right, .btn:hover .ti-arrow-narrow-right { transform: translateX(3px); }
.btn:hover .ti-arrow-up-right { transform: translate(2px, -2px); }
.btn:hover .ti-download, .btn:hover .ti-arrow-down { transform: translateY(2px); }
.btn:hover .ti-upload, .btn:hover .ti-cloud-upload, .btn:hover .ti-arrow-up { transform: translateY(-2px); }
.btn:hover .ti-plus { transform: rotate(90deg); }
.btn:hover .ti-refresh { transform: rotate(180deg); }
.btn:hover .ti-send { transform: translate(2px, -2px) rotate(8deg); }

/* Shine sweep */
.btn-primary::before, .btn-dark::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: -80%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg); transition: left .7s var(--ease);
}
.btn-primary:hover::before, .btn-dark:hover::before { left: 130%; }

.btn-primary { --btn-bg: var(--c-primary); --btn-fg: #fff; --btn-bd: transparent; background: var(--grad-primary); box-shadow: var(--sh-primary); }
.btn-primary:hover { box-shadow: 0 16px 30px -12px rgba(var(--primary-rgb), .85); }
.btn-dark { --btn-bg: var(--c-text); --btn-fg: #fff; --btn-bd: transparent; }
html.dark .btn-dark, body.dark .btn-dark { --btn-bg: #fff; --btn-fg: #1A1F28; }
.btn-secondary { --btn-bg: var(--bg); --btn-fg: var(--text-2); --btn-bd: var(--border); box-shadow: var(--sh-xs); }
.btn-secondary:hover { --btn-bd: var(--border-h); --btn-fg: var(--primary); box-shadow: var(--sh); }
.btn-soft { --btn-bg: var(--primary-soft); --btn-fg: var(--primary); --btn-bd: transparent; }
.btn-soft:hover { --btn-bg: var(--primary-soft-2); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--text-3); --btn-bd: transparent; }
.btn-ghost:hover { --btn-bg: var(--surface); --btn-fg: var(--text); transform: none; }
.btn-success { --btn-bg: var(--success-bg); --btn-fg: var(--success); --btn-bd: var(--success-b); }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-bd: transparent; }
.btn-danger:hover { box-shadow: 0 12px 26px -12px var(--danger); }
.btn-danger-ghost { --btn-bg: transparent; --btn-fg: var(--danger); --btn-bd: var(--danger-b); }
.btn-danger-ghost:hover { --btn-bg: var(--danger-bg); }
.btn-copy { --btn-bg: var(--surface); --btn-fg: var(--text-2); --btn-bd: var(--border); min-height: 38px; padding: .45rem .8rem; font-size: .8rem; }
.btn-copy:hover { --btn-fg: var(--primary); --btn-bd: var(--border-h); transform: none; }
.btn-copy.copied, .btn.is-success { --btn-bg: var(--success-bg) !important; --btn-fg: var(--success) !important; --btn-bd: var(--success-b) !important; background: var(--btn-bg) !important; box-shadow: none; }
.btn-full { width: 100%; }
.btn-lg { min-height: 54px; padding: .85rem 1.6rem; font-size: 1rem; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: .45rem .9rem; font-size: .82rem; border-radius: 10px; }
.btn-sm .ti { width: 16px; height: 16px; }
.btn-xs { min-height: 30px; padding: .3rem .6rem; font-size: .75rem; border-radius: 8px; }
.btn-pill { border-radius: var(--r-pill); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* Loading state: label fades, spinner takes its place */
.btn .btn-spinner { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .3s var(--ease-spring); pointer-events: none; }
.btn .btn-label { display: inline-flex; align-items: center; gap: inherit; transition: opacity .2s, transform .3s var(--ease); }
.btn.is-loading { pointer-events: none; cursor: progress; }
.btn.is-loading .btn-label { opacity: 0; transform: translateY(6px); }
.btn.is-loading .btn-spinner { opacity: 1; transform: none; }
.btn.is-loading:disabled { opacity: 1; }

/* Ripple */
.ripple { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .22; transform: scale(0); animation: ripple .6s var(--ease) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ── FORMS ────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: .45rem; }
.field > label, .label { font-size: .82rem; font-weight: 700; color: var(--text-2); }
.field-hint { font-size: .76rem; font-weight: 500; color: var(--text-4); }
.input, .field input, .field textarea, .field select, .form-control {
  width: 100%; min-height: 46px; padding: .7rem .95rem;
  border: 1px solid var(--border); border-radius: var(--r); background: var(--bg); color: var(--text);
  font-size: .93rem; outline: none; box-shadow: var(--sh-xs);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea, textarea.input { min-height: 110px; resize: vertical; line-height: 1.6; }
.input:hover, .field input:hover, .field textarea:hover, .field select:hover { border-color: var(--border-h); }
.input:focus, .field input:focus, .field textarea:focus, .field select:focus, .form-control:focus { border-color: var(--primary); box-shadow: var(--ring); }
.input-icon { position: relative; }
.input-icon > .ti { position: absolute; left: .9rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--text-4); pointer-events: none; transition: color .2s; }
.input-icon > .input, .input-icon > input { padding-left: 2.6rem; }
.input-icon:focus-within > .ti { color: var(--primary); }
.input-icon:has(.pw-toggle) > input { padding-right: 2.9rem; }
select.input, .field select, select.form-control {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23687286' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
/* Custom select */
.rs-select { position: relative; min-width: 0; }
.rs-native { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; opacity: 0 !important; pointer-events: none !important; }
.rs-select-trigger {
  width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: .6rem;
  padding: .6rem .8rem .6rem .95rem; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--bg); color: var(--text); font-size: .93rem; font-weight: 550; text-align: left; box-shadow: var(--sh-xs);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.rs-select-trigger:hover { border-color: var(--border-h); }
.rs-select-trigger:focus-visible, .rs-select.is-open .rs-select-trigger { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.rs-select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-select-trigger .ti { width: 17px; height: 17px; color: var(--text-4); transition: transform .35s var(--ease-spring), color .2s; }
.rs-select.is-open .rs-select-trigger .ti { transform: rotate(180deg); color: var(--primary); }
.rs-select-list {
  position: fixed; z-index: 3000; max-height: 280px; overflow-y: auto; margin: 0; padding: .35rem; list-style: none;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); box-shadow: var(--sh-xl); outline: none;
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.97); transform-origin: top center;
  transition: opacity .18s ease, transform .3s var(--ease-spring), visibility 0s .3s;
}
.rs-select-list.is-up { transform-origin: bottom center; transform: translateY(6px) scale(.97); }
.rs-select.is-open .rs-select-list { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .3s var(--ease-spring), visibility 0s; }
.rs-select-list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .55rem .7rem; border-radius: 9px; color: var(--text-2); font-size: .9rem; font-weight: 550; cursor: pointer; transition: background .15s, color .15s, padding-left .2s var(--ease); }
.rs-select-list li .ti { width: 16px; height: 16px; color: var(--primary); opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s var(--ease-spring); }
.rs-select-list li.is-active { background: var(--surface); color: var(--text); padding-left: .9rem; }
.rs-select-list li[aria-selected="true"] { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.rs-select-list li[aria-selected="true"] .ti { opacity: 1; transform: none; }
.rs-select-list li[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.quick-option .rs-select { grid-column: 2; }
.quick-option .rs-select-trigger { min-height: 40px; padding-block: .4rem; font-size: .84rem; }

input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); width: 17px; height: 17px; }
.check { display: inline-flex; align-items: center; gap: .6rem; font-size: .88rem; font-weight: 600; cursor: pointer; }
.form-stack { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
kbd { display: inline-flex; align-items: center; padding: .12rem .42rem; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; background: var(--bg); color: var(--text-2); font-size: .72rem; font-weight: 600; }

/* ── ALERTS / FLASH / TOAST ───────────────────────────────────── */
.alert { display: flex; align-items: flex-start; gap: .65rem; padding: .85rem 1rem; border: 1px solid transparent; border-radius: var(--r); font-size: .88rem; font-weight: 550; margin-bottom: 1rem; }
.alert .ti { width: 19px; height: 19px; margin-top: 1px; }
.alert ul { padding-left: 1.1rem; }
.alert-error, .alert-danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-b); }
.alert-success { background: var(--success-bg); color: var(--success); border-color: var(--success-b); }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-b); }
.alert-info { background: var(--primary-soft); color: var(--primary); border-color: var(--primary-soft-2); }
.flash-wrap { position: fixed; top: calc(var(--nav-h) + 14px); right: 18px; z-index: 900; display: flex; flex-direction: column; gap: .6rem; width: min(380px, calc(100vw - 36px)); pointer-events: none; }
.flash, .toast {
  pointer-events: auto; display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); color: var(--text);
  box-shadow: var(--sh-xl); font-size: .88rem; font-weight: 600;
  animation: toastIn .5s var(--ease-spring) both;
}
.flash .ti, .toast .ti { width: 20px; height: 20px; flex-shrink: 0; }
.flash-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; flex-shrink: 0; }
.flash-success .flash-icon, .toast-success .flash-icon { background: var(--success-bg); color: var(--success); }
.flash-error .flash-icon, .toast-error .flash-icon { background: var(--danger-bg); color: var(--danger); }
.toast-info .flash-icon { background: var(--primary-soft); color: var(--primary); }
.flash.is-leaving, .toast.is-leaving { animation: toastOut .35s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px) scale(.96); } }

/* ── LAYOUT PRIMITIVES ────────────────────────────────────────── */
.container { width: min(var(--container), calc(100% - 3rem)); margin-inline: auto; }
.page { width: min(var(--container), calc(100% - 3rem)); margin: 0 auto; padding: 2.5rem 0 4rem; }
.page-narrow { width: min(760px, calc(100% - 3rem)); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 2rem; }
.page-head h1, .page-title { font-size: clamp(1.7rem, 3vw, 2.25rem); letter-spacing: -.04em; }
.page-sub { margin-top: .35rem; color: var(--text-3); font-size: .95rem; }
.page-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: .45rem; color: var(--primary); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow .ti, .section-kicker .ti { width: 15px; height: 15px; }

.card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--sh-sm); }
.card-pad { padding: 1.6rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.15rem 1.5rem; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: .6rem; font-size: 1rem; }
.card-head h2 .ti, .card-head h3 .ti { width: 20px; height: 20px; color: var(--primary); }
.card-body { padding: 1.5rem; }
.card-hover { transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.card-hover:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--border-h); }
.icon-tile {
  width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0; border-radius: 14px;
  background: var(--primary-soft); color: var(--primary); transition: transform .45s var(--ease-spring), background .3s, color .3s;
}
.icon-tile .ti { width: 22px; height: 22px; }
.icon-tile.solid { background: var(--grad-primary); color: #fff; box-shadow: var(--sh-primary); }
.card-hover:hover .icon-tile { transform: rotate(-8deg) scale(1.08); }

.chip, .meta-chip {
  display: inline-flex; align-items: center; gap: .38rem; padding: .3rem .7rem;
  border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg);
  color: var(--text-3); font-size: .76rem; font-weight: 600; white-space: nowrap;
}
.chip .ti, .meta-chip .ti { width: 14px; height: 14px; }
.chip a, .meta-chip a { color: inherit; }
a.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip-primary { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.chip-warn { background: var(--warn-bg); border-color: var(--warn-b); color: var(--warn); }
.chip-success { background: var(--success-bg); border-color: var(--success-b); color: var(--success); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: var(--r-pill); font-size: .7rem; font-weight: 750; background: var(--surface); color: var(--text-2); justify-self: start; width: max-content; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-accent { background: var(--primary-soft); color: var(--primary); }

.divider { height: 1px; background: var(--border); margin: 1.25rem 0; }

/* ── HERO / HOMEPAGE ──────────────────────────────────────────── */
.home { overflow: clip; }
.hero { position: relative; isolation: isolate; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(2.5rem, 5vw, 4rem); text-align: center; }
.hero-bg { position: absolute; inset: -120px 0 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: blobFloat 16s ease-in-out infinite alternate; }
.hero-bg .blob-1 { width: 520px; height: 520px; left: -8%; top: 0; background: color-mix(in srgb, var(--c-accent) 70%, transparent); }
.hero-bg .blob-2 { width: 460px; height: 460px; right: -6%; top: 60px; background: color-mix(in srgb, var(--c-primary) 45%, transparent); animation-delay: -5s; }
.hero-bg .blob-3 { width: 360px; height: 360px; left: 40%; top: 260px; background: color-mix(in srgb, var(--c-secondary) 28%, transparent); animation-delay: -9s; }
.hero-bg .grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--c-accent) 22%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--c-accent) 22%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, #000 20%, transparent 75%);
}
html.dark .hero-bg .blob, body.dark .hero-bg .blob { opacity: .28; }
@keyframes blobFloat { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.08); } 100% { transform: translate(-30px,25px) scale(.95); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem; padding: .4rem .55rem .4rem .45rem;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(10px);
  color: var(--text-2); font-size: .8rem; font-weight: 650; box-shadow: var(--sh-sm);
}
.hero-badge .pill { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: var(--r-pill); background: var(--grad-primary); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .04em; }
.hero-badge .pill .ti { width: 13px; height: 13px; }
.hero h1 { max-width: 960px; margin: 1.4rem auto 1.2rem; font-size: clamp(2.6rem, 6.6vw, 5.2rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.hero h1 .grad { background: linear-gradient(120deg, var(--c-primary), var(--c-secondary) 55%, var(--c-primary)); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 6s ease-in-out infinite alternate; }
html.dark .hero h1 .grad, body.dark .hero h1 .grad { background-image: linear-gradient(120deg, var(--c-accent), var(--primary) 55%, #fff); }
@keyframes gradShift { to { background-position: 100% center; } }
.hero-lead { max-width: 620px; margin: 0 auto; color: var(--text-3); font-size: clamp(1rem, 1.5vw, 1.17rem); line-height: 1.7; }
.hero-cta { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }
.hero-trust { display: flex; justify-content: center; gap: .6rem 1.6rem; flex-wrap: wrap; margin-top: 1.8rem; color: var(--text-3); font-size: .83rem; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust .ti { width: 17px; height: 17px; color: var(--primary); }

/* Upload workspace */
.upload-workspace {
  position: relative; scroll-margin-top: calc(var(--nav-h) + 24px);
  max-width: 980px; margin: 0 auto; border: 1px solid var(--border); border-radius: var(--r-2xl);
  background: var(--bg-card); box-shadow: var(--sh-xl); overflow: hidden;
}
.upload-workspace::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--c-accent), var(--c-primary), var(--c-secondary)); }
.upload-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.5rem; border-bottom: 1px solid var(--border); }
.upload-head-title { display: flex; align-items: center; gap: .85rem; }
.upload-head-title small { display: block; color: var(--primary); font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.upload-head-title h2 { font-size: 1.05rem; }
.upload-limit { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .7rem; border-radius: var(--r-pill); background: var(--surface); color: var(--text-3); font-size: .74rem; font-weight: 700; }
.upload-limit .ti { width: 15px; height: 15px; }

.drop-area {
  position: relative; margin: 1.4rem; min-height: 340px; display: grid; place-items: center;
  border-radius: var(--r-xl); cursor: pointer; text-align: center;
  background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--c-accent) 26%, transparent), transparent 65%), var(--grad-soft);
  transition: background .3s, transform .3s var(--ease);
}
.drop-area::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--border-h) 0 12px, transparent 12px 22px) top / 100% 2px no-repeat,
              repeating-linear-gradient(90deg, var(--border-h) 0 12px, transparent 12px 22px) bottom / 100% 2px no-repeat,
              repeating-linear-gradient(0deg, var(--border-h) 0 12px, transparent 12px 22px) left / 2px 100% no-repeat,
              repeating-linear-gradient(0deg, var(--border-h) 0 12px, transparent 12px 22px) right / 2px 100% no-repeat;
  transition: opacity .3s;
}
.drop-area:hover::before, .drop-area.drag-over::before { animation: marching 1s linear infinite; }
.drop-area:hover::before, .drop-area.drag-over::before {
  background: repeating-linear-gradient(90deg, var(--primary) 0 12px, transparent 12px 22px) top / 100% 2px no-repeat,
              repeating-linear-gradient(90deg, var(--primary) 0 12px, transparent 12px 22px) bottom / 100% 2px no-repeat,
              repeating-linear-gradient(0deg, var(--primary) 0 12px, transparent 12px 22px) left / 2px 100% no-repeat,
              repeating-linear-gradient(0deg, var(--primary) 0 12px, transparent 12px 22px) right / 2px 100% no-repeat;
}
@keyframes marching { to { background-position: 22px 0, -22px 100%, 0 -22px, 100% 22px; } }
.drop-area.drag-over { transform: scale(.992); background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--c-primary) 22%, transparent), transparent 70%), var(--grad-soft); }
.drop-body { padding: 2.5rem 1.5rem; display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.drop-visual { position: relative; width: 124px; height: 100px; margin-bottom: 1rem; }
.drop-visual .card-a, .drop-visual .card-b, .drop-visual .card-c {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 78px; margin: -39px 0 0 -32px;
  border-radius: 14px; display: grid; place-items: center; box-shadow: var(--sh-lg);
  transition: transform .55s var(--ease-spring);
}
.drop-visual .card-a { background: var(--bg); border: 1px solid var(--border); transform: translateX(-34px) rotate(-14deg); color: var(--c-accent); }
.drop-visual .card-b { background: var(--surface-2); border: 1px solid var(--border); transform: translateX(34px) rotate(14deg); color: var(--primary); }
.drop-visual .card-c { background: var(--grad-primary); color: #fff; z-index: 2; }
.drop-visual .ti { width: 28px; height: 28px; }
.drop-visual .card-c .ti { animation: nudgeUp 2.4s var(--ease) infinite; }
.drop-area:hover .card-a, .drop-area.drag-over .card-a { transform: translateX(-46px) rotate(-20deg) translateY(-4px); }
.drop-area:hover .card-b, .drop-area.drag-over .card-b { transform: translateX(46px) rotate(20deg) translateY(-4px); }
.drop-area:hover .card-c, .drop-area.drag-over .card-c { transform: translateY(-8px) scale(1.05); }
@keyframes nudgeUp { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-4px); } }
.drop-title { font-size: clamp(1.3rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -.035em; }
.drop-or { color: var(--text-3); font-size: .92rem; margin-bottom: 1rem; }
.drop-formats { margin-top: .9rem; color: var(--text-4); font-family: var(--mono); font-size: .7rem; font-weight: 600; letter-spacing: .08em; }

.quick-options { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--border); }
.quick-options .quick-option:nth-child(2n) { border-right: 0; }
.quick-options .quick-option:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
.quick-options-warn {
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  margin: 0; padding: .55rem 1rem;
  color: var(--danger); font-size: .74rem; font-weight: 600;
}
.quick-options-warn .ti { width: 14px; height: 14px; flex-shrink: 0; }
.quick-option { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: .6rem .8rem; padding: 1.2rem 1.4rem; border-right: 1px solid var(--border); transition: background .2s; }
.quick-option:last-child { border-right: 0; }
.quick-option:focus-within { background: color-mix(in srgb, var(--primary-soft) 60%, transparent); }
.quick-option .icon-tile { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 12px; }
.quick-option .icon-tile .ti { width: 19px; height: 19px; }
.quick-option label { display: grid; gap: .1rem; min-width: 0; }
.quick-option label span { font-size: .84rem; font-weight: 750; }
.quick-option label small { color: var(--text-4); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-option .input { grid-column: 2; min-height: 40px; padding-block: .45rem; font-size: .84rem; }
.quick-option select.input { padding-right: 2.2rem; }

.upload-assurance { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .6rem 1.8rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border); background: var(--surface); color: var(--text-3); font-size: .78rem; font-weight: 600; }
.upload-assurance span { display: inline-flex; align-items: center; gap: .4rem; }
.upload-assurance .ti { width: 16px; height: 16px; color: var(--success); }

.up-progress { margin: 0 1.4rem 1.4rem; padding: 1rem 1.15rem; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.up-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .65rem; font-size: .84rem; font-weight: 650; color: var(--text-2); }
.up-progress-top > span:first-child { display: inline-flex; align-items: center; gap: .6rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-progress-top .spinner { color: var(--primary); }
#progressPct { font-family: var(--mono); color: var(--primary); }
.up-track { position: relative; height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.up-fill { position: relative; height: 100%; width: 0; border-radius: inherit; background: var(--grad-primary); transition: width .3s var(--ease); overflow: hidden; }
.up-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.results-wrap { display: flex; flex-direction: column; gap: .6rem; margin: 0 1.4rem 1.4rem; max-height: 440px; overflow-y: auto; }
.result-item { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); animation: resultIn .5s var(--ease-spring) both; }
.result-item:not(.result-error) { border-left: 3px solid var(--success); }
.result-item.result-error { border-color: var(--danger-b); background: var(--danger-bg); }
@keyframes resultIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.result-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 11px; border: 1px solid var(--border); flex-shrink: 0; }
.result-icon-err { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: var(--bg); color: var(--danger); flex-shrink: 0; }
.result-info { flex: 1; min-width: 120px; }
.result-name { font-size: .88rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; color: var(--text-3); font-size: .75rem; }
.result-meta .tag { display: inline-flex; align-items: center; gap: .25rem; padding: .05rem .45rem; border-radius: 6px; background: var(--surface); }
.result-meta .tag .ti { width: 12px; height: 12px; }
.result-btns { display: flex; gap: .4rem; margin-left: auto; }
.upload-signin { display: grid; justify-items: center; gap: .75rem; padding: 3.5rem 1.5rem; text-align: center; }
.upload-signin p { color: var(--text-3); }

/* Stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 980px; margin: 1.25rem auto 0; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg-card); overflow: hidden; }
.stats-strip > div { display: flex; align-items: center; gap: .8rem; padding: 1.05rem 1.2rem; border-right: 1px solid var(--border); }
.stats-strip > div:last-child { border-right: 0; }
.stats-strip .icon-tile { width: 38px; height: 38px; border-radius: 11px; }
.stats-strip .icon-tile .ti { width: 18px; height: 18px; }
.stats-strip strong { display: block; font-size: .88rem; }
.stats-strip small { color: var(--text-3); font-size: .74rem; }

/* Sections */
.section { padding: clamp(5rem, 9vw, 8rem) 0; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: .8rem 0 1rem; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.section-head p { color: var(--text-3); font-size: 1.02rem; line-height: 1.7; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; position: relative; }
.step-card { position: relative; padding: 1.8rem; overflow: hidden; }
.step-card .step-no { position: absolute; right: 1.2rem; top: .6rem; font-size: 4.5rem; font-weight: 800; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--border-h); line-height: 1; transition: -webkit-text-stroke-color .3s, transform .5s var(--ease); }
.step-card:hover .step-no { -webkit-text-stroke-color: var(--primary); transform: translateY(-4px); }
.step-card h3 { margin: 2.4rem 0 .6rem; font-size: 1.25rem; }
.step-card p { color: var(--text-3); font-size: .9rem; line-height: 1.65; }

.showcase {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center;
  padding: clamp(3rem, 6vw, 5rem); border-radius: 32px; background: var(--grad-primary); color: #fff;
}
.showcase::before { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; right: -220px; top: -260px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 0 0 80px rgba(255,255,255,.035), 0 0 0 160px rgba(255,255,255,.025); }
.showcase::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(circle at 10% 110%, color-mix(in srgb, var(--c-accent) 55%, transparent), transparent 45%); }
.showcase .section-kicker { color: color-mix(in srgb, var(--c-accent) 60%, #fff); }
.showcase h2 { margin: .9rem 0 1.1rem; color: #fff; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.showcase-copy > p { max-width: 500px; color: rgba(255,255,255,.78); line-height: 1.75; }
.check-list { display: grid; gap: 1.1rem; margin-top: 2rem; list-style: none; }
.check-list li { display: flex; gap: .85rem; align-items: flex-start; }
.check-list li > span { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,.16); color: #fff; }
.check-list li > span .ti { width: 17px; height: 17px; }
.check-list strong { display: block; font-size: .95rem; }
.check-list small { color: rgba(255,255,255,.68); font-size: .83rem; line-height: 1.5; }
.preview { position: relative; padding: 1.5rem 0 2.5rem; }
.preview-window { position: relative; border-radius: 20px; background: var(--bg); color: var(--text); box-shadow: 0 40px 90px -20px rgba(0,0,0,.45); overflow: hidden; transform: rotate(1.5deg); transition: transform .6s var(--ease); }
.showcase:hover .preview-window { transform: rotate(0) translateY(-6px); }
.preview-toolbar { height: 46px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--bg-card); }
.preview-toolbar i { width: 9px; height: 9px; border-radius: 50%; background: var(--c-accent); }
.preview-toolbar i:nth-child(2) { background: var(--c-primary); } .preview-toolbar i:nth-child(3) { background: var(--c-secondary); }
.preview-toolbar span { flex: 1; margin-left: 8px; padding: .35rem .7rem; border-radius: 8px; background: var(--surface); color: var(--text-3); font: 600 .68rem var(--mono); display: flex; align-items: center; gap: .35rem; }
.preview-toolbar span .ti { width: 12px; height: 12px; color: var(--success); }
.preview-photo { aspect-ratio: 720/400; overflow: hidden; }
.preview-photo svg { width: 100%; height: 100%; }
.preview-link-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; }
.preview-link-row div { display: grid; gap: .15rem; min-width: 0; }
.preview-link-row small { color: var(--text-4); font-size: .66rem; font-weight: 800; letter-spacing: .1em; }
.preview-link-row strong { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.floating-feature { position: absolute; display: flex; align-items: center; gap: .65rem; padding: .7rem .9rem; border: 1px solid rgba(255,255,255,.22); border-radius: 15px; background: rgba(26,31,40,.72); backdrop-filter: blur(14px); color: #fff; box-shadow: 0 18px 40px rgba(0,0,0,.3); animation: floaty 5s ease-in-out infinite; }
.floating-feature > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--c-accent); color: #1A1F28; }
.floating-feature > span .ti { width: 18px; height: 18px; }
.floating-feature strong { display: block; font-size: .8rem; }
.floating-feature small { color: rgba(255,255,255,.65); font-size: .68rem; }
.floating-lock { left: -26px; bottom: 6px; }
.floating-time { right: -14px; top: 0; animation-delay: -2.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.feature-card { display: flex; flex-direction: column; padding: 1.6rem; min-height: 250px; }
.feature-card h3 { margin: 1.6rem 0 .55rem; font-size: 1.08rem; }
.feature-card p { color: var(--text-3); font-size: .87rem; line-height: 1.65; }
.feature-card small { margin-top: auto; padding-top: 1.1rem; color: var(--primary); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }

.faq { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.faq-intro { position: sticky; top: calc(var(--nav-h) + 30px); }
.faq-intro h2 { margin: .8rem 0 1rem; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.faq-intro p { color: var(--text-3); }
.faq-list { display: grid; gap: .7rem; }
.faq-list details {
  position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-card);
  transition: border-color .3s, box-shadow .35s var(--ease), transform .35s var(--ease), background .3s;
}
.faq-list details::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad-primary); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease); }
.faq-list details:hover { border-color: var(--border-h); transform: translateY(-2px); box-shadow: var(--sh); }
.faq-list details[open]:not([data-state="closed"]) { border-color: color-mix(in srgb, var(--c-primary) 45%, var(--border)); box-shadow: var(--sh-lg); background: linear-gradient(135deg, color-mix(in srgb, var(--primary-soft) 70%, var(--bg-card)), var(--bg-card) 60%); }
.faq-list details[open]:not([data-state="closed"])::before { transform: scaleY(1); }
.faq-list summary { position: relative; display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem; font-weight: 700; cursor: pointer; list-style: none; transition: color .2s; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline-offset: -3px; }
.faq-list summary .num { min-width: 30px; height: 26px; display: inline-grid; place-items: center; border-radius: 8px; background: var(--surface); color: var(--primary); font: 700 .72rem var(--mono); transition: background .3s, color .3s, transform .45s var(--ease-spring); }
.faq-list details:hover summary .num { transform: scale(1.08) rotate(-4deg); }
.faq-list details[open]:not([data-state="closed"]) summary .num { background: var(--grad-primary); color: #fff; }
.faq-list summary .ti { margin-left: auto; flex-shrink: 0; width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: var(--surface); color: var(--text-3); transition: transform .5s var(--ease-spring), background .3s, color .3s, box-shadow .3s; }
.faq-list details:hover summary .ti { color: var(--primary); background: var(--primary-soft); }
.faq-list details[open]:not([data-state="closed"]) summary .ti { transform: rotate(135deg); background: var(--grad-primary); color: #fff; box-shadow: var(--sh-primary); }
.faq-list summary:active .ti { transform: scale(.85); }
.faq-list details[open]:not([data-state="closed"]) summary:active .ti { transform: rotate(135deg) scale(.85); }
.faq-list details p { padding: 0 1.3rem 1.25rem 4.15rem; color: var(--text-3); font-size: .9rem; line-height: 1.7; }
.faq-list details.is-opening p { animation: faqIn .45s .08s var(--ease) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.cta-band { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: clamp(2.2rem, 5vw, 3.8rem); border-radius: 30px; background: var(--c-text); color: #fff; margin-bottom: 4rem; }
html.dark .cta-band, body.dark .cta-band { background: var(--surface-2); }
.cta-band::before { content: ""; position: absolute; z-index: -1; width: 480px; height: 480px; right: -140px; top: -200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c-primary) 70%, transparent), transparent 70%); filter: blur(10px); animation: blobFloat 12s ease-in-out infinite alternate; }
.cta-band .section-kicker { color: var(--c-accent); }
.cta-band h2 { margin: .6rem 0 .5rem; color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.035em; line-height: 1.05; }
.cta-band p { color: rgba(255,255,255,.7); max-width: 560px; }
.cta-band .btn-secondary { --btn-bg: #fff; --btn-fg: #1A1F28; --btn-bd: transparent; }

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer { flex-shrink: 0; margin-top: 3rem; border-top: 1px solid var(--border); background: var(--bg); }
.footer-inner { width: min(var(--container), calc(100% - 3rem)); margin: 0 auto; padding: 3rem 0 2rem; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); }
.footer-brand:hover { color: var(--text); }
.footer-logo { height: 58px; width: auto; max-width: 200px; object-fit: contain; margin: -12px -3px; clip-path: inset(20% 2%); mix-blend-mode: multiply; }
.footer-tagline { margin-top: .9rem; max-width: 280px; color: var(--text-3); font-size: .87rem; }
.footer-col h4 { margin-bottom: .9rem; color: var(--text); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.footer-col a { display: flex; align-items: center; gap: .45rem; padding: .28rem 0; color: var(--text-3); font-size: .88rem; transition: color .2s, transform .25s var(--ease); }
.footer-col a .ti { width: 16px; height: 16px; }
.footer-col a:hover { color: var(--primary); transform: translateX(3px); }
.footer-bottom { width: min(var(--container), calc(100% - 3rem)); margin: 0 auto; padding: 1.2rem 0 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--border); color: var(--text-4); font-size: .8rem; }

/* ── ACCOUNT NAV ──────────────────────────────────────────────── */
.account-nav { display: flex; gap: .3rem; width: min(var(--container), calc(100% - 3rem)); margin: 1.6rem auto 0; padding: .35rem; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg); overflow-x: auto; scrollbar-width: none; box-shadow: var(--sh-xs); }
.account-nav a { position: relative; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 10px; color: var(--text-3); font-size: .86rem; font-weight: 650; white-space: nowrap; transition: color .2s, background .2s; }
.account-nav a .ti { width: 18px; height: 18px; }
.account-nav a:hover { color: var(--text); background: var(--surface); }
.account-nav a[aria-current] { background: var(--grad-primary); color: #fff; box-shadow: var(--sh-primary); }

/* ── RESIMSHARE PLUS ──────────────────────────────────────────── */
:root { --plus-grad: linear-gradient(120deg, #F2C14E 0%, #E8905A 35%, var(--c-primary) 70%, var(--c-secondary) 100%); --plus-gold: #D99A2B; }
.plus-badge {
  display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .55rem .2rem .45rem; border-radius: var(--r-pill);
  background: var(--plus-grad); background-size: 220% 100%; color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .1em; line-height: 1.4;
  box-shadow: 0 4px 14px -4px rgba(217, 154, 43, .6); animation: plusShift 6s ease-in-out infinite alternate; white-space: nowrap; vertical-align: middle;
}
.plus-badge .ti { width: 13px; height: 13px; }
.plus-badge.sm { font-size: .58rem; padding: .1rem .45rem .1rem .35rem; }
.plus-badge.sm .ti { width: 11px; height: 11px; }
.plus-badge.lg { font-size: .78rem; padding: .32rem .8rem .32rem .6rem; }
.plus-badge.lg .ti { width: 16px; height: 16px; }
@keyframes plusShift { to { background-position: 100% 0; } }
.brand-plus { margin-left: -.1rem; }
.brand-symbol.is-plus { background: var(--plus-grad); background-size: 220% 100%; animation: plusShift 6s ease-in-out infinite alternate; }
.avatar.is-plus, .avatar-xl.is-plus { position: relative; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--plus-gold); }
.avatar-xl.is-plus::after { content: ""; position: absolute; inset: -9px; border-radius: 32px; border: 2px dashed color-mix(in srgb, var(--plus-gold) 60%, transparent); animation: spin 18s linear infinite; }
.nav-link.nav-plus { color: var(--plus-gold); }
.nav-link.nav-plus .ti { color: var(--plus-gold); animation: crownBob 2.4s ease-in-out infinite; }
.nav-link.nav-plus::after { background: var(--plus-grad); }
@keyframes crownBob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(-8deg); } }
.plus-cta { background: var(--plus-grad) !important; background-size: 220% 100% !important; animation: plusShift 5s ease-in-out infinite alternate; box-shadow: 0 14px 30px -12px rgba(217, 154, 43, .75) !important; }

.plus-hero { position: relative; isolation: isolate; padding: clamp(4rem, 9vw, 7rem) 0 clamp(2rem, 4vw, 3rem); text-align: center; }
.plus-hero h1 { max-width: 900px; margin: 1.3rem auto 1rem; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.03; letter-spacing: -.04em; font-weight: 800; }
.plus-grad { background: var(--plus-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: plusShift 6s ease-in-out infinite alternate; }
.plus-crown { width: 86px; height: 86px; margin: 0 auto 1.4rem; display: grid; place-items: center; border-radius: 28px; background: var(--plus-grad); background-size: 220% 100%; color: #fff; box-shadow: 0 24px 50px -16px rgba(217, 154, 43, .7); animation: plusShift 6s ease-in-out infinite alternate, floaty 4s ease-in-out infinite; }
.plus-crown .ti { width: 44px; height: 44px; }
.plus-crown.sm { width: 56px; height: 56px; margin: 0; border-radius: 18px; flex-shrink: 0; }
.plus-crown.sm .ti { width: 28px; height: 28px; }

.plus-pricing { max-width: 640px; margin: 0 auto; }
.price-card { position: relative; overflow: hidden; padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: var(--r-2xl); background: var(--bg-card); box-shadow: var(--sh-xl); isolation: isolate; }
.price-card::before { content: ""; position: absolute; inset: 0; z-index: -1; padding: 2px; border-radius: inherit; background: var(--plus-grad); background-size: 220% 100%; animation: plusShift 6s ease-in-out infinite alternate;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.price-card-glow { position: absolute; z-index: -1; width: 360px; height: 360px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 193, 78, .28), transparent 70%); }
.price-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding-bottom: 1.4rem; border-bottom: 1px dashed var(--border); }
.price-head h2 { margin: .7rem 0 .2rem; font-size: 1.6rem; }
.price-head p { color: var(--text-3); }
.price-tag { display: flex; align-items: flex-start; gap: .3rem; }
.price-tag strong { font-size: clamp(3rem, 7vw, 4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.price-tag span { display: grid; margin-top: .45rem; font-size: 1.1rem; font-weight: 800; color: var(--text-2); }
.price-tag small { font-size: .78rem; font-weight: 600; color: var(--text-4); }
.price-features { display: grid; gap: .2rem; margin: 1.2rem 0 1.6rem; list-style: none; }
.price-features li { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: .8rem; padding: .6rem .4rem; border-radius: var(--r); transition: background .2s, transform .25s var(--ease); }
.price-features li:hover { background: var(--surface); transform: translateX(4px); }
.price-features .ti { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.price-features b { font-weight: 800; }
.price-features small { color: var(--text-4); font-size: .76rem; text-align: right; }
.price-note { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .9rem; color: var(--text-3); font-size: .82rem; text-align: center; }
.price-note .ti { width: 16px; height: 16px; color: var(--success); }

.compare-table { overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-items: center; gap: 1rem; padding: .85rem 1.4rem; border-bottom: 1px solid var(--border); font-size: .9rem; transition: background .2s; }
.compare-row:last-child { border-bottom: 0; }
.compare-row:not(.compare-head):hover { background: var(--surface); }
.compare-row > span:not(:first-child) { text-align: center; color: var(--text-2); }
.compare-head { background: var(--surface); color: var(--text-3); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.compare-row .is-plus-col { background: linear-gradient(180deg, rgba(242, 193, 78, .08), rgba(242, 193, 78, .08)); margin: -.85rem 0; padding: .85rem 0; }
.compare-row .ti.ok { width: 21px; height: 21px; color: var(--success); margin: 0 auto; }
.compare-row .ti.no { width: 19px; height: 19px; color: var(--text-4); margin: 0 auto; }

.checkout-steps { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.checkout-steps span { display: inline-flex; align-items: center; gap: .35rem; color: var(--text-4); font-size: .8rem; font-weight: 700; }
.checkout-steps span .ti { width: 18px; height: 18px; padding: 4px; box-sizing: content-box; border-radius: 50%; background: var(--surface); }
.checkout-steps span.is-done { color: var(--success); }
.checkout-steps span.is-done .ti { background: var(--success-bg); }
.checkout-steps span.is-active { color: var(--primary); }
.checkout-steps span.is-active .ti { background: var(--grad-primary); color: #fff; box-shadow: var(--sh-primary); }
.checkout-steps i { width: 28px; height: 2px; border-radius: 2px; background: var(--border); }
.checkout-card { padding: clamp(1.5rem, 4vw, 2.2rem); display: grid; gap: 1.3rem; }
.checkout-head h1 { margin: .7rem 0 .2rem; font-size: 1.65rem; }
.order-lines { display: grid; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.order-line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
.order-line:last-child { border-bottom: 0; }
.order-line.muted { color: var(--text-3); font-size: .84rem; }
.order-line.total { background: var(--surface); font-size: 1rem; }
.order-line.total strong { font-size: 1.25rem; letter-spacing: -.02em; }
.method-tile { display: flex; align-items: center; gap: .9rem; padding: 1rem; border: 2px solid var(--primary); border-radius: var(--r-lg); background: var(--primary-soft); }
.method-tile div { flex: 1; display: grid; gap: .1rem; }
.method-tile small { color: var(--text-3); }
.method-tile .method-check { width: 24px; height: 24px; color: var(--primary); }
.pay-code { padding: 1.1rem 1.2rem; border: 2px dashed color-mix(in srgb, var(--plus-gold) 55%, var(--border)); border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(242, 193, 78, .1), transparent); }
.pay-code small { color: var(--text-3); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pay-code-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .3rem; }
.pay-code-row strong { font: 800 clamp(1.5rem, 5vw, 2rem) var(--mono); letter-spacing: .08em; }
.iban-row { display: inline-flex; align-items: center; gap: .5rem; }
.iban-row code { font-size: .82rem; }
.iban-row .icon-btn { width: 32px; height: 32px; }
.pay-waiting { display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--text-3); font-size: .84rem; }
.pay-waiting .spinner { color: var(--plus-gold); }
.pay-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--text-3); font-size: .78rem; font-weight: 650; }
.pay-trust span { display: inline-flex; align-items: center; gap: .35rem; }
.pay-trust .ti { width: 16px; height: 16px; color: var(--success); }
.shopier-go { min-height: 58px; font-size: 1.02rem; }
/* Payment method picker (checkout) */
.pay-methods { display: grid; gap: .65rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.pay-methods legend { margin-bottom: .55rem; padding: 0; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.pay-method { position: relative; display: flex; align-items: center; gap: .9rem; padding: .95rem 1rem; border: 2px solid var(--border); border-radius: var(--r-lg); background: var(--bg-card); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .25s, transform .25s var(--ease); }
.pay-method:hover { border-color: var(--border-h); transform: translateY(-1px); }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 10px 24px -16px var(--primary); }
.pay-method:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--primary) 40%, transparent); outline-offset: 2px; }
.pay-method.is-disabled { cursor: not-allowed; opacity: .6; transform: none; }
.pay-method-logo { flex: 0 0 auto; display: grid; place-items: center; width: 84px; height: 46px; border: 1px solid var(--border); border-radius: var(--r); background: #fff; color: var(--primary); }
.pay-method-logo .ti { width: 26px; height: 26px; }
.pay-method-logo.is-shopier { color: #6700FF; }
.shopier-logo { display: block; width: 66px; height: auto; }
.pay-method-text { flex: 1; display: grid; gap: .15rem; min-width: 0; }
.pay-method-text strong { font-size: .98rem; }
.pay-method-text small { color: var(--text-3); line-height: 1.4; }
.pay-cards { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; color: var(--text-3); }
.pay-cards .ti { width: 26px; height: 26px; }
.pay-cards em { padding: .05rem .4rem; border: 1px solid var(--border); border-radius: 6px; font-size: .68rem; font-style: normal; font-weight: 800; letter-spacing: .02em; }
.pay-method-check { flex: 0 0 auto; width: 24px; height: 24px; color: var(--border); transition: color .2s, transform .3s var(--ease); }
.pay-method:has(input:checked) .pay-method-check { color: var(--primary); transform: scale(1.1); }
html.dark .pay-method-logo, body.dark .pay-method-logo { background: #fff; }
@media (max-width: 560px) {
  .pay-method { align-items: flex-start; flex-wrap: wrap; }
  .pay-method-logo { width: 72px; height: 40px; }
  .pay-method-check { position: absolute; top: .8rem; right: .8rem; }
}
/* Discount display */
.price-box { display: grid; justify-items: end; gap: .25rem; }
.price-was { display: flex; align-items: center; gap: .5rem; color: var(--text-4); font-weight: 700; }
.price-was s { text-decoration-thickness: 2px; }
.price-off { padding: .15rem .55rem; border-radius: 999px; background: var(--success-bg); color: var(--success); font-size: .74rem; font-weight: 800; }
.order-was { margin-right: .5rem; color: var(--text-4); font-weight: 600; font-size: .86em; }
.order-save { color: var(--success); font-weight: 700; }
@media (max-width: 560px) { .price-box { justify-items: start; } }
.shopier-go .ti-external-link { width: 16px; height: 16px; opacity: .8; }
.pay-steps { display: grid; gap: .55rem; margin: 0; padding: 1rem 1.1rem 1rem 2.4rem; border: 1px dashed var(--border-h); border-radius: var(--r-lg); color: var(--text-3); font-size: .86rem; }
.pay-steps b { color: var(--text); }
.pay-steps li::marker { color: var(--primary); font-weight: 800; }
.pay-status { display: grid; justify-items: center; gap: .7rem; padding: 1rem 0; text-align: center; }
.pay-status h1 { font-size: 1.5rem; }
.pay-status p { color: var(--text-3); }

.plus-welcome { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.5rem; padding: 1.3rem 1.5rem; border-radius: var(--r-xl); background: linear-gradient(120deg, rgba(242, 193, 78, .16), var(--primary-soft)); border: 1px solid color-mix(in srgb, var(--plus-gold) 40%, var(--border)); }
.plus-welcome h2 { font-size: 1.2rem; }
.plus-welcome p { color: var(--text-3); }
.plan-card { display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem; padding: 1.6rem; overflow: hidden; }
.plan-card.is-plus { background: linear-gradient(150deg, rgba(242, 193, 78, .14), var(--bg-card) 55%); border-color: color-mix(in srgb, var(--plus-gold) 40%, var(--border)); }
.plan-card h2 { margin: .7rem 0 .3rem; font-size: 1.7rem; }
.plan-card p { color: var(--text-3); }
.plan-progress { height: 8px; margin-top: 1rem; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.plan-progress span { display: block; height: 100%; border-radius: inherit; background: var(--plus-grad); animation: growBar 1.2s var(--ease) both; transform-origin: left; }
@keyframes growBar { from { transform: scaleX(0); } }
.usage-top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; font-size: .88rem; }
.usage-top span { color: var(--text-3); }
.usage-bar { height: 10px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.usage-bar span { display: block; height: 100%; min-width: 4px; border-radius: inherit; background: var(--grad-primary); animation: growBar 1.2s var(--ease) both; transform-origin: left; }
.usage-bar.is-warn span { background: linear-gradient(90deg, #E0A63A, var(--danger)); }
.pay-history { display: grid; }
.pay-row { display: grid; grid-template-columns: 1.3fr 1fr .6fr .8fr auto; align-items: center; gap: 1rem; padding: .85rem 1.5rem; border-top: 1px solid var(--border); font-size: .88rem; }
.pay-ref { display: grid; }
.pay-ref small { color: var(--text-4); font-size: .72rem; }
@media (max-width: 700px) {
  .pay-row { grid-template-columns: 1fr auto; }
  .pay-row > span:nth-child(2) { display: none; }
  .compare-row { grid-template-columns: 1.2fr .9fr .9fr; padding-inline: .9rem; font-size: .82rem; }
  .price-features li { grid-template-columns: 34px 1fr; }
  .price-features small { grid-column: 2; text-align: left; }
}

/* ── IN-PAGE NAVIGATION ───────────────────────────────────────── */
body.is-navigating { cursor: progress; }
body.is-nav-slow::after {
  content: ""; position: fixed; top: 0; left: 0; z-index: 2500; height: 3px; width: 40%;
  background: linear-gradient(90deg, transparent, var(--c-primary), var(--c-accent), transparent);
  animation: navBar 1s ease-in-out infinite;
}
@keyframes navBar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ── SLIDING TAB INDICATOR ────────────────────────────────────── */
.has-slide { position: relative; isolation: isolate; }
.slide-pill {
  position: absolute; left: 0; top: 0; z-index: -1; pointer-events: none; border-radius: 10px;
  transition: transform .5s var(--ease-spring), width .45s var(--ease), height .45s var(--ease);
  will-change: transform, width;
}
.account-nav .slide-pill, .settings-tabs .slide-pill { background: var(--grad-primary); box-shadow: var(--sh-primary); }
.seg .slide-pill { background: var(--bg); box-shadow: var(--sh-sm); border-radius: 9px; }
.has-slide > a, .has-slide > button { transition: color .3s ease; }
.has-slide > [aria-current], .has-slide > .active { background: transparent !important; box-shadow: none !important; }
.account-nav.has-slide > a[aria-current], .account-nav.has-slide > a.is-target,
.settings-tabs.has-slide > .active, .settings-tabs.has-slide > .is-target { color: #fff; }
.seg.has-slide > .is-target { color: var(--primary); }
.has-slide:has(.is-target) > [aria-current]:not(.is-target), .has-slide:has(.is-target) > .active:not(.is-target) { color: var(--text-3); }
.account-nav.has-slide > a:not([aria-current]):hover { background: transparent; color: var(--primary); }

/* ── STAT CARDS ───────────────────────────────────────────────── */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat { display: flex; align-items: center; gap: 1rem; padding: 1.3rem; }
.stat-num { font-size: 1.65rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; }
.stat-label { color: var(--text-3); font-size: .8rem; font-weight: 600; }

/* ── TABS / SEGMENTED ─────────────────────────────────────────── */
.seg { display: inline-flex; gap: .25rem; padding: .3rem; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.seg a, .seg button { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border: 0; border-radius: 9px; background: transparent; color: var(--text-3); font-size: .83rem; font-weight: 700; transition: color .2s, background .25s, box-shadow .25s; }
.seg a:hover, .seg button:hover { color: var(--text); }
.seg .active, .seg [aria-current] { background: var(--bg); color: var(--primary); box-shadow: var(--sh-sm); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.toolbar-meta { color: var(--text-3); font-size: .85rem; font-weight: 600; }

/* ── GALLERY ──────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 1.1rem; }
.gallery-item { position: relative; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-card); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.gallery-item:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--border-h); }
.gallery-thumb-link { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--surface); }
.gallery-thumb-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,31,40,.55), transparent 55%); opacity: 0; transition: opacity .35s; }
.gallery-item:hover .gallery-thumb-link::after { opacity: 1; }
.gallery-thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery-item:hover .gallery-thumb { transform: scale(1.07); }
.gallery-info { display: grid; gap: .15rem; padding: .8rem .9rem .9rem; }
.gal-name { font-size: .84rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; color: var(--text-4); font-size: .74rem; font-weight: 600; }
.gal-meta span { display: inline-flex; align-items: center; gap: .2rem; }
.gal-meta .ti { width: 13px; height: 13px; }
.gal-deleted { height: 100%; display: grid; place-items: center; align-content: center; gap: .3rem; color: var(--text-4); font-size: .82rem; font-weight: 600; }
.gal-deleted .ti { width: 26px; height: 26px; }
.gallery-overlay { position: absolute; top: .6rem; right: .6rem; left: .6rem; display: flex; justify-content: flex-end; gap: .35rem; opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease); }
.gallery-item:hover .gallery-overlay, .gallery-item:focus-within .gallery-overlay { opacity: 1; transform: none; }
.gal-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 10px; background: rgba(255,255,255,.94); color: #1A1F28; box-shadow: var(--sh); backdrop-filter: blur(8px); transition: transform .2s var(--ease-spring), background .2s, color .2s; }
.gal-btn .ti { width: 18px; height: 18px; }
.gal-btn:hover { transform: scale(1.1); color: var(--c-primary); }
.gal-btn.danger:hover { background: var(--danger); color: #fff; }

/* ── EMPTY STATE ──────────────────────────────────────────────── */
.empty-state { display: grid; justify-items: center; gap: .5rem; padding: 4rem 1.5rem; border: 1.5px dashed var(--border-h); border-radius: var(--r-xl); background: color-mix(in srgb, var(--bg) 60%, transparent); text-align: center; color: var(--text-3); }
.empty-icon { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: .6rem; border-radius: 22px; background: var(--primary-soft); color: var(--primary); animation: floaty 4s ease-in-out infinite; }
.empty-icon .ti { width: 34px; height: 34px; }
.empty-state h3 { color: var(--text); font-size: 1.15rem; }
.empty-state .btn { margin-top: .8rem; }

/* ── PAGINATION ───────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: 2.5rem 0 .5rem; }
.page-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg); color: var(--text-2); font-size: .85rem; font-weight: 650; transition: border-color .2s, color .2s, transform .2s var(--ease); }
.page-btn .ti { width: 16px; height: 16px; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); }
.page-info { padding: .45rem .8rem; border-radius: var(--r-pill); background: var(--surface); color: var(--text-3); font-size: .82rem; font-weight: 700; font-family: var(--mono); }

/* ── IMAGE VIEW ───────────────────────────────────────────────── */
.image-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.75rem; align-items: start; }
.img-frame { position: relative; display: grid; place-items: center; min-height: 320px; padding: 1rem; border: 1px solid var(--border); border-radius: var(--r-2xl); overflow: hidden;
  background: repeating-conic-gradient(var(--surface) 0 25%, var(--bg) 0 50%) 50% / 22px 22px; }
.img-display { max-height: 76vh; width: auto; object-fit: contain; border-radius: 12px; cursor: zoom-in; box-shadow: var(--sh-lg); transition: transform .5s var(--ease); }
.img-display:hover { transform: scale(1.015); }
.img-zoom-hint { position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .65rem; border-radius: var(--r-pill); background: rgba(26,31,40,.72); color: #fff; font-size: .72rem; font-weight: 700; backdrop-filter: blur(8px); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .3s var(--ease); pointer-events: none; }
.img-zoom-hint .ti { width: 14px; height: 14px; }
.img-frame:hover .img-zoom-hint { opacity: 1; transform: none; }
.img-meta-bar { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.img-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.img-tag { display: inline-flex; align-items: center; gap: .25rem; padding: .3rem .7rem; border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary); font-size: .78rem; font-weight: 700; transition: background .2s, transform .2s var(--ease); }
.img-tag .ti { width: 13px; height: 13px; }
.img-tag:hover { background: var(--primary-soft-2); transform: translateY(-1px); }

.img-info-panel { position: sticky; top: calc(var(--nav-h) + 1.2rem); padding: 1.5rem; }
.img-panel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: 1.1rem; }
.img-title { font-size: 1.1rem; line-height: 1.35; word-break: break-word; }
.fav-btn { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--bg); color: var(--text-3); transition: color .2s, border-color .2s, background .2s, transform .3s var(--ease-spring); }
.fav-btn .ti { width: 20px; height: 20px; }
.fav-btn:hover { color: #E0525E; border-color: #F2B8BD; transform: scale(1.08); }
.fav-btn.active { color: #E0525E; background: #FDECEE; border-color: #F2B8BD; }
html.dark .fav-btn.active, body.dark .fav-btn.active { background: #3A1A1E; border-color: #6B2E35; }
.fav-btn.pop { animation: pop .45s var(--ease-spring); }
@keyframes pop { 40% { transform: scale(1.3); } }
.img-props { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1.25rem; }
.prop { padding: .7rem .75rem; border-radius: var(--r); background: var(--surface); }
.prop small { display: block; color: var(--text-4); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.prop strong { display: block; margin-top: .1rem; font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prop strong.mono { font-size: .78rem; color: var(--primary); }

.link-tabs { display: flex; flex-wrap: wrap; gap: .2rem; padding: .25rem; margin-bottom: .6rem; border-radius: var(--r); background: var(--surface); }
.link-tabs button { flex: 1 1 auto; min-width: 0; padding: .42rem .4rem; border: 0; border-radius: 8px; background: transparent; color: var(--text-3); font-size: .74rem; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.link-tabs button:hover { color: var(--text); }
.link-tabs button.active { background: var(--bg); color: var(--primary); box-shadow: var(--sh-sm); }
.link-group { display: none; }
.link-group.active { display: block; animation: faqIn .3s var(--ease); }
.link-group-stack { margin-bottom: 1.2rem; }
.link-label { display: block; margin-bottom: .35rem; color: var(--text-4); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.copy-row { display: flex; gap: .4rem; }
.copy-input { flex: 1; min-width: 0; min-height: 40px; padding: .5rem .75rem; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); color: var(--text-2); font: .76rem var(--mono); outline: none; overflow: hidden; text-overflow: ellipsis; }
.copy-input:focus { border-color: var(--primary); }
.img-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.img-extra-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.panel-section { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--border); }
.panel-label { display: flex; align-items: center; gap: .4rem; margin-bottom: .5rem; color: var(--text-2); font-size: .78rem; font-weight: 800; }
.panel-label .ti { width: 16px; height: 16px; color: var(--primary); }
.owner-tool-row { display: flex; gap: .4rem; }
.owner-tool-row .input { min-height: 38px; padding-block: .45rem; font-size: .84rem; }
.owner-tool-hint { margin-top: .3rem; color: var(--text-4); font-size: .72rem; }
.coll-panel { margin-top: .5rem; padding: .5rem; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); max-height: 220px; overflow-y: auto; display: grid; gap: .35rem; }
.coll-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.report-link { display: inline-flex; align-items: center; gap: .35rem; border: 0; background: none; color: var(--text-4); font-size: .78rem; font-weight: 600; transition: color .2s; }
.report-link .ti { width: 15px; height: 15px; }
.report-link:hover { color: var(--danger); }

.note-section { margin-top: 1.25rem; overflow: hidden; }
.note-section:focus-within { border-color: var(--primary); box-shadow: var(--ring); }
.note-section-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.1rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.note-section-title { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.note-section-title .ti { width: 17px; height: 17px; color: var(--primary); }
.note-text { padding: 1.1rem; color: var(--text-2); font-size: .92rem; line-height: 1.75; white-space: pre-wrap; word-break: break-word; }
.note-placeholder { display: grid; justify-items: center; gap: .45rem; padding: 1.6rem 1rem; color: var(--text-4); font-size: .87rem; text-align: center; }
.note-placeholder .ti { width: 26px; height: 26px; }
.note-textarea { display: block; width: 100%; min-height: 150px; padding: 1rem 1.1rem; border: 0; outline: none; resize: vertical; background: var(--bg); color: var(--text); font-size: .92rem; line-height: 1.7; }
.note-editor-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; padding: .7rem 1.1rem; border-top: 1px solid var(--border); background: var(--surface); }
.note-char-wrap { display: flex; align-items: center; gap: .5rem; color: var(--text-4); font: .74rem var(--mono); }
.note-char-bar-bg { width: 90px; height: 5px; border-radius: var(--r-pill); background: var(--border); overflow: hidden; }
.note-char-bar { height: 100%; border-radius: inherit; background: var(--primary); transition: width .25s var(--ease), background .25s; }
.note-editor-btns { display: flex; gap: .4rem; flex-wrap: wrap; }

.lightbox { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 2rem; background: rgba(13, 17, 24, .88); backdrop-filter: blur(10px); cursor: zoom-out; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: scale(.94); transition: transform .45s var(--ease-spring); }
.lightbox.open img { transform: none; }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.2rem; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; }

/* ── COLLECTIONS ──────────────────────────────────────────────── */
.colls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.1rem; }
.coll-card { display: block; overflow: hidden; color: var(--text); }
.coll-card:hover { color: var(--text); }
.coll-cover { position: relative; height: 150px; display: grid; place-items: center; background: var(--grad-soft); overflow: hidden; }
.coll-cover .ti { width: 44px; height: 44px; color: var(--primary); transition: transform .5s var(--ease-spring); }
.coll-card:hover .coll-cover .ti { transform: scale(1.15) rotate(-6deg); }
.coll-cover::after { content: ""; position: absolute; width: 180px; height: 180px; right: -60px; bottom: -80px; border-radius: 50%; background: color-mix(in srgb, var(--c-primary) 18%, transparent); }
.coll-info { padding: 1.1rem 1.2rem 1.25rem; }
.coll-title { font-size: 1rem; font-weight: 750; margin-bottom: .35rem; }
.coll-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; color: var(--text-3); font-size: .8rem; }
.coll-desc { margin-top: .45rem; color: var(--text-3); font-size: .83rem; }
.coll-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border: 1px solid var(--border); border-radius: var(--r-pill); color: var(--text-2); font-size: .78rem; font-weight: 650; }
.coll-chip .ti { width: 14px; height: 14px; }
.coll-chip:hover { border-color: var(--primary); color: var(--primary); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 1.5rem; background: rgba(13, 17, 24, .55); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card { width: min(100%, 460px); padding: 1.8rem; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg); box-shadow: var(--sh-xl); transform: translateY(16px) scale(.97); transition: transform .4s var(--ease-spring); }
.modal.open .modal-card { transform: none; }
.modal-card h2 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.3rem; font-size: 1.2rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .4rem; }

/* Confirm dialog */
.confirm-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 1.25rem; background: rgba(13, 17, 24, .5); backdrop-filter: blur(0); opacity: 0; pointer-events: none; transition: opacity .25s ease, backdrop-filter .35s ease; }
.confirm-modal.open { opacity: 1; pointer-events: auto; backdrop-filter: blur(8px); }
.confirm-card { width: min(100%, 420px); display: grid; justify-items: center; gap: .55rem; padding: 2rem 1.8rem 1.6rem; border: 1px solid var(--border); border-radius: var(--r-2xl); background: var(--bg); box-shadow: var(--sh-xl); text-align: center; transform: translateY(24px) scale(.9); opacity: 0; transition: transform .5s var(--ease-spring), opacity .25s ease; }
.confirm-modal.open .confirm-card { transform: none; opacity: 1; }
.confirm-icon { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: .4rem; border-radius: 20px; background: var(--primary-soft); color: var(--primary); }
.confirm-icon.is-danger { background: var(--danger-bg); color: var(--danger); }
.confirm-icon .ti { width: 30px; height: 30px; }
.confirm-modal.open .confirm-icon { animation: confirmWobble .6s .15s var(--ease) both; }
@keyframes confirmWobble { 0% { transform: scale(.5) rotate(-12deg); } 50% { transform: scale(1.1) rotate(6deg); } 75% { transform: rotate(-4deg); } 100% { transform: none; } }
.confirm-card h2 { font-size: 1.25rem; }
.confirm-card p { color: var(--text-3); font-size: .92rem; line-height: 1.6; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; width: 100%; margin-top: 1rem; }

/* ── PROFILE / SEARCH / TAG ───────────────────────────────────── */
.profile-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 1.4rem; padding: 2rem; margin-bottom: 2rem; }
.profile-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 90px; background: var(--grad-primary); opacity: .9; }
.profile-hero > * { position: relative; }
.avatar-xl { width: 92px; height: 92px; border-radius: 28px; display: grid; place-items: center; margin-top: 1.5rem; border: 4px solid var(--bg-card); background: var(--grad-primary); color: #fff; font-size: 2.2rem; font-weight: 800; box-shadow: var(--sh-lg); }
.profile-hero h1 { margin-top: 2.5rem; font-size: 1.8rem; }
.profile-stats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.search-box { display: flex; gap: .6rem; max-width: 620px; }
.search-box .input-icon { flex: 1; }
.search-section-title { display: flex; align-items: center; gap: .45rem; margin: 2rem 0 .9rem; color: var(--text-3); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.search-section-title .ti { width: 16px; height: 16px; }
.user-result-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.user-result-chip { display: inline-flex; align-items: center; gap: .6rem; padding: .35rem .95rem .35rem .4rem; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--bg); color: var(--text-2); font-size: .88rem; font-weight: 650; transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.user-result-chip:hover { border-color: var(--primary); color: var(--text); transform: translateY(-2px); box-shadow: var(--sh); }
.user-result-chip small { color: var(--text-4); font-size: .76rem; }
.tag-hero { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.tag-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .55rem 1.1rem; border-radius: var(--r-lg); background: var(--grad-primary); color: #fff; font-size: 1.4rem; font-weight: 800; box-shadow: var(--sh-primary); }
.tag-badge .ti { width: 24px; height: 24px; }

/* ── AUTH ─────────────────────────────────────────────────────── */
.auth-page { display: grid; place-items: center; padding: clamp(2rem, 6vw, 4.5rem) 1.25rem; }
.auth-shell { width: 100%; max-width: 1040px; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.auth-story { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: 3rem; background: var(--grad-primary); color: #fff; }
.auth-story::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -160px; bottom: -160px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 0 0 60px rgba(255,255,255,.04), 0 0 0 120px rgba(255,255,255,.03); }
.auth-story .section-kicker { color: color-mix(in srgb, var(--c-accent) 55%, #fff); }
.auth-story h2 { margin: .8rem 0 1rem; color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -.035em; }
.auth-story p { color: rgba(255,255,255,.78); max-width: 340px; }
.auth-story .brand-symbol { background: rgba(255,255,255,.18); box-shadow: none; }
.auth-perks { display: grid; gap: .75rem; }
.auth-perks span { display: flex; align-items: center; gap: .6rem; color: rgba(255,255,255,.88); font-size: .88rem; font-weight: 600; }
.auth-perks .ti { width: 20px; height: 20px; padding: 3px; border-radius: 7px; background: rgba(255,255,255,.16); }
.auth-card { padding: clamp(2rem, 4.5vw, 3.2rem); }
.auth-title { font-size: 1.85rem; letter-spacing: -.04em; }
.auth-sub { margin: .35rem 0 1.8rem; color: var(--text-3); }
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.auth-form .btn { margin-top: .4rem; }
.auth-switch { margin-top: 1.4rem; color: var(--text-3); font-size: .88rem; text-align: center; }
.auth-switch a { font-weight: 700; }
.pw-toggle { position: absolute; right: .45rem; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--text-4); }
.pw-toggle:hover { color: var(--primary); background: var(--surface); }
.pw-toggle .ti { width: 18px; height: 18px; }
.pw-strength { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .35rem; }
.pw-strength i { height: 4px; border-radius: 4px; background: var(--border); transition: background .3s; }
.pw-strength[data-level="1"] i:nth-child(-n+1) { background: var(--danger); }
.pw-strength[data-level="2"] i:nth-child(-n+2) { background: #D98A2B; }
.pw-strength[data-level="3"] i:nth-child(-n+3) { background: var(--c-primary); }
.pw-strength[data-level="4"] i { background: var(--success); }

/* ── CENTERED STATUS PAGES ────────────────────────────────────── */
.center-page { min-height: calc(100vh - var(--nav-h) - 220px); display: grid; place-items: center; padding: 3rem 1.25rem; }
.result-card { width: min(100%, 460px); display: grid; justify-items: center; gap: .7rem; padding: 2.8rem 2.2rem; text-align: center; }
.result-card h2, .result-card h1 { font-size: 1.55rem; }
.result-card p { color: var(--text-3); }
.result-card .btn { margin-top: 1rem; }
.status-icon { width: 76px; height: 76px; display: grid; place-items: center; margin-bottom: .4rem; border-radius: 24px; background: var(--primary-soft); color: var(--primary); animation: statusIn .7s var(--ease-spring) both; }
.status-icon .ti { width: 36px; height: 36px; }
.status-icon.success { background: var(--success-bg); color: var(--success); }
.status-icon.danger { background: var(--danger-bg); color: var(--danger); }
.status-icon.warn { background: var(--warn-bg); color: var(--warn); }
@keyframes statusIn { from { opacity: 0; transform: scale(.5) rotate(-12deg); } to { opacity: 1; transform: none; } }
.result-code { font-size: clamp(4.5rem, 12vw, 6.5rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.verify-code { width: 100%; min-height: 64px; text-align: center; font: 700 1.9rem var(--mono); letter-spacing: .35em; }
.verify-resend button { border: 0; background: none; color: var(--text-3); font-size: .86rem; margin-top: .6rem; }
.verify-resend button strong { color: var(--primary); }

/* ── ACCOUNT SETTINGS ─────────────────────────────────────────── */
.settings-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.settings-layout .span-2 { grid-column: 1 / -1; }
.kv { display: grid; gap: .1rem; }
.kv-row { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.kv-row:last-child { border-bottom: 0; }
.kv-row span { color: var(--text-3); }
.danger-zone { border-color: var(--danger-b); }

/* ── ABOUT ────────────────────────────────────────────────────── */
.about-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.about-hero h1 { margin: .9rem 0 1.4rem; font-size: clamp(2.8rem, 6.2vw, 5.4rem); line-height: .98; letter-spacing: -.04em; font-weight: 800; }
.about-hero p { max-width: 560px; color: var(--text-3); font-size: 1.1rem; line-height: 1.75; }
.about-brand-card { position: relative; overflow: hidden; isolation: isolate; min-height: 460px; display: flex; flex-direction: column; justify-content: space-between; padding: 1.8rem; border-radius: 30px; background: var(--grad-primary); color: #fff; box-shadow: var(--sh-xl); }
.about-brand-card::before { content: ""; position: absolute; z-index: -1; width: 380px; height: 380px; left: -120px; bottom: -150px; border-radius: 50%; background: color-mix(in srgb, var(--c-accent) 55%, transparent); filter: blur(30px); }
.about-card-label { font: 700 .72rem var(--mono); letter-spacing: .12em; opacity: .75; }
.about-logo-stage { display: grid; place-items: center; min-height: 240px; border: 1px solid rgba(255,255,255,.2); border-radius: 20px; background: rgba(255,255,255,.08); backdrop-filter: blur(10px); }
.about-logo-stage img { max-width: 80%; max-height: 140px; }
.about-logo-stage strong { font-size: 2.2rem; letter-spacing: -.04em; }
.about-mission { padding: clamp(4rem, 8vw, 6.5rem) clamp(1.5rem, 6vw, 5rem); border-radius: 32px; text-align: center; background: var(--c-text); color: #fff; }
html.dark .about-mission, body.dark .about-mission { background: var(--surface-2); }
.about-mission .section-kicker { color: var(--c-accent); }
.about-mission blockquote { max-width: 920px; margin: 1.3rem auto 0; font-size: clamp(1.7rem, 3.8vw, 3.3rem); font-weight: 750; line-height: 1.15; letter-spacing: -.04em; }
.palette-track { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: .9rem; overflow-x: auto; padding-bottom: .6rem; scroll-snap-type: x mandatory; }
.palette-card { min-height: 300px; display: flex; flex-direction: column; padding: 1.4rem; border-radius: 22px; background: var(--swatch); color: #1A1F28; scroll-snap-align: start; box-shadow: inset 0 0 0 1px rgba(26,31,40,.08); transition: transform .45s var(--ease), box-shadow .45s; }
.palette-card:hover { transform: translateY(-10px); box-shadow: var(--sh-xl); }
.palette-card.palette-dark { color: #fff; }
.palette-card span { font: 700 .72rem var(--mono); opacity: .7; }
.palette-card h3 { margin-top: .5rem; color: inherit; font-size: 1.35rem; }
.palette-card code { margin-top: auto; font-size: .9rem; font-weight: 700; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.values-grid article { padding: 2rem; }
.values-grid h3 { margin: 1.3rem 0 .5rem; font-size: 1.3rem; }
.values-grid p { color: var(--text-3); }

/* ── CONTACT ──────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem; align-items: start; }
.contact-aside { padding: 2.2rem; background: var(--grad-primary); color: #fff; border: 0; overflow: hidden; }
.contact-aside h1 { margin: .8rem 0 1rem; color: #fff; font-size: clamp(2rem, 3.4vw, 2.8rem); letter-spacing: -.045em; }
.contact-aside p { color: rgba(255,255,255,.78); }
.contact-aside .section-kicker { color: color-mix(in srgb, var(--c-accent) 55%, #fff); }
.contact-points { display: grid; gap: .9rem; margin-top: 2rem; }
.contact-points div { display: flex; gap: .8rem; align-items: center; }
.contact-points .ti { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: rgba(255,255,255,.16); }
.contact-points strong { display: block; font-size: .9rem; }
.contact-points small { color: rgba(255,255,255,.7); }
.bot-check { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.bot-quest { font: 800 1.15rem var(--mono); color: var(--primary); }
.bot-check .input { max-width: 110px; text-align: center; font-family: var(--mono); font-weight: 700; }

/* ── STANDALONE PAGES (maintenance / banned) ──────────────────── */
.solo-page { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: var(--bg-page); position: relative; overflow: hidden; }

/* ── QUICK NAV / ADS ──────────────────────────────────────────── */
/* ── Reklamlar (src/ads.js + templates/_ads.html) ───────────────────────── */
@property --ad-angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.ad-zone { display: flex; justify-content: center; width: 100%; max-width: 1200px; margin: 1.25rem auto; padding: 0 16px; }
.ad-zone-home_inline { margin: clamp(2rem, 5vw, 3.5rem) auto 0; padding: 0; }
.ad-zone-image_below { margin: 1.25rem 0 0; padding: 0; justify-content: flex-start; }
.ad-zone-bottom_banner { margin-bottom: 2.5rem; }
.ad-slot { position: relative; max-width: 100%; }
.ad-frame {
  position: relative; isolation: isolate; box-sizing: border-box; overflow: hidden;
  width: var(--ad-w, auto); max-width: 100%; padding: var(--ad-p, 0px);
  border: var(--ad-bw, 1px) solid var(--ad-c1); border-radius: var(--ad-r, 16px);
  background: var(--ad-bg, var(--bg-card));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ad-img { display: block; width: 100%; height: auto; max-height: var(--ad-h, none); object-fit: cover; }
.ad-link { display: block; }
.ad-link:hover .ad-img { filter: brightness(1.04); }
.ad-slot:hover .ad-frame { transform: translateY(-2px); }

/* Gölgeler (stil kurallarından önce: glow/neon kendi gölgesini ekler) */
.ad-shadow-none { box-shadow: none; }
.ad-shadow-sm { box-shadow: var(--sh-sm); }
.ad-shadow-md { box-shadow: 0 10px 28px -12px rgba(26, 31, 40, .25); }
.ad-shadow-lg { box-shadow: var(--sh-xl); }

/* Çerçeve stilleri */
.ad-frame.ad-style-none { border-color: transparent; border-width: 0; background: var(--ad-bg, transparent); }
.ad-frame.ad-style-dashed { border-style: dashed; }
.ad-frame.ad-style-double { border-style: double; border-width: max(4px, var(--ad-bw, 4px)); }
.ad-frame.ad-style-gradient, .ad-frame.ad-anim-spin {
  border-color: transparent; border-width: max(1px, var(--ad-bw, 2px));
  background: linear-gradient(var(--ad-bg, var(--bg-card)), var(--ad-bg, var(--bg-card))) padding-box,
              linear-gradient(135deg, var(--ad-c1), var(--ad-c2)) border-box;
}
.ad-frame.ad-style-glow { box-shadow: 0 0 0 4px color-mix(in srgb, var(--ad-c1) 16%, transparent), 0 14px 44px -10px color-mix(in srgb, var(--ad-c1) 60%, transparent); }
.ad-frame.ad-style-neon {
  box-shadow: 0 0 4px var(--ad-c1), 0 0 16px color-mix(in srgb, var(--ad-c1) 75%, transparent),
              0 0 36px color-mix(in srgb, var(--ad-c2) 45%, transparent), inset 0 0 12px color-mix(in srgb, var(--ad-c1) 40%, transparent);
}
.ad-frame.ad-style-glass {
  border-color: color-mix(in srgb, #fff 60%, transparent);
  background: color-mix(in srgb, var(--ad-bg, var(--bg-card)) 55%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
}

/* Animasyonlar */
.ad-anim-pulse { animation: adPulse 2.6s ease-in-out infinite; }
.ad-anim-float { animation: adFloat 4.2s ease-in-out infinite; }
.ad-anim-shine::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .5) 48%, transparent 66%);
  transform: translateX(-120%); animation: adShine 3.4s ease-in-out infinite;
}
.ad-frame.ad-anim-spin {
  border-width: max(2px, var(--ad-bw, 2px));
  background: linear-gradient(var(--ad-bg, var(--bg-card)), var(--ad-bg, var(--bg-card))) padding-box,
              conic-gradient(from var(--ad-angle), var(--ad-c1), var(--ad-c2), var(--ad-c1)) border-box;
  animation: adSpin 4s linear infinite;
}
@keyframes adPulse { 50% { transform: scale(1.018); } }
@keyframes adFloat { 50% { transform: translateY(-7px); } }
@keyframes adShine { 55%, 100% { transform: translateX(120%); } }
@keyframes adSpin { to { --ad-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .ad-frame, .ad-frame::after { animation: none !important; } }

/* Etiket ve kapatma düğmesi */
.ad-badge {
  position: absolute; z-index: 3; padding: .14rem .5rem; border-radius: 6px; pointer-events: none;
  background: rgba(15, 20, 30, .62); color: #fff; font: 800 .6rem/1.4 var(--font, inherit); letter-spacing: .1em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ad-badge-top-left { top: calc(var(--ad-p, 0px) + 8px); left: calc(var(--ad-p, 0px) + 8px); }
.ad-badge-top-right { top: calc(var(--ad-p, 0px) + 8px); right: calc(var(--ad-p, 0px) + 8px); }
.ad-badge-bottom-left { bottom: calc(var(--ad-p, 0px) + 8px); left: calc(var(--ad-p, 0px) + 8px); }
.ad-badge-bottom-right { bottom: calc(var(--ad-p, 0px) + 8px); right: calc(var(--ad-p, 0px) + 8px); }
.ad-close {
  position: absolute; top: 6px; right: 6px; z-index: 4; display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: 50%; background: rgba(15, 20, 30, .66); color: #fff; cursor: pointer; transition: transform .2s var(--ease), background .2s;
}
.ad-close:hover { transform: scale(1.1); background: rgba(15, 20, 30, .85); }
.ad-close .ti { width: 15px; height: 15px; }
.ad-badge-top-right ~ .ad-close { top: auto; bottom: 6px; }
.ad-slot.is-closing { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .25s, transform .25s; }

/* Metin reklamı */
.ad-frame.ad-kind-text { width: var(--ad-w, 760px); container-type: inline-size; }
.ad-frame.ad-on-dark { --text: #F1F4F8; --text-3: rgba(241, 244, 248, .74); color: #F1F4F8; }
@container (max-width: 520px) { .ad-text { flex-wrap: wrap; } .ad-text-body { flex-basis: calc(100% - 80px); } .ad-cta { width: 100%; justify-content: center; } }
.ad-text { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; color: var(--text); text-decoration: none; }
.ad-kind-text .ad-badge ~ .ad-text, .ad-kind-text .ad-badge + .ad-text { padding-top: 1.7rem; }
.ad-text-img { flex: none; width: 58px; height: 58px; border-radius: 12px; object-fit: cover; }
.ad-text-body { flex: 1; display: grid; gap: .2rem; min-width: 0; }
.ad-text-body strong { font-size: 1.02rem; line-height: 1.3; }
.ad-text-body span { color: var(--text-3); font-size: .88rem; line-height: 1.45; }
.ad-cta {
  flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .6rem 1rem; border-radius: 999px;
  background: var(--ad-c1); color: #fff; font-weight: 800; font-size: .85rem; white-space: nowrap; transition: transform .25s var(--ease), filter .2s;
}
.ad-cta .ti { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.ad-text:hover .ad-cta { filter: brightness(1.08); }
.ad-text:hover .ad-cta .ti { transform: translateX(3px); }
@media (max-width: 560px) { .ad-text { flex-wrap: wrap; } .ad-cta { width: 100%; justify-content: center; } }

/* Kod reklamı */
.ad-iframe { display: block; max-width: 100%; border: 0; }
.ad-html { display: block; max-width: 100%; overflow: hidden; }
.ad-code-placeholder { display: grid; place-items: center; gap: .4rem; width: var(--ad-w, 300px); max-width: 100%; height: var(--ad-h, 250px); color: var(--text-3); font-size: .82rem; font-weight: 700; background: repeating-linear-gradient(45deg, transparent 0 10px, color-mix(in srgb, var(--ad-c1) 8%, transparent) 10px 20px); }
.ad-code-placeholder .ti { width: 28px; height: 28px; }

/* Yerleşimler */
.ad-place-rail_left, .ad-place-rail_right { position: fixed; top: 50%; z-index: 80; display: none; width: var(--ad-w, 160px); transform: translateY(-50%); }
.ad-place-rail_left { left: 12px; } .ad-place-rail_right { right: 12px; }
.ad-place-rail_left .ad-frame, .ad-place-rail_right .ad-frame { width: 100%; }
.ad-zone-rail_left, .ad-zone-rail_right { display: contents; }
@media (min-width: 1580px) { .ad-place-rail_left, .ad-place-rail_right { display: block; } }
.ad-place-sticky_bottom { position: fixed; left: 50%; bottom: 12px; z-index: 90; width: max-content; max-width: calc(100vw - 24px); transform: translateX(-50%); animation: adRise .5s var(--ease) both; }
.ad-zone-sticky_bottom, .ad-zone-popup { display: contents; }
@keyframes adRise { from { opacity: 0; transform: translate(-50%, 24px); } }
.ad-place-popup { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(10, 14, 22, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.ad-place-popup[hidden] { display: none; }
.ad-place-popup.is-open { opacity: 1; }
.ad-place-popup .ad-frame { width: min(var(--ad-w, 420px), 100%); transform: scale(.94); transition: transform .35s var(--ease); }
.ad-place-popup.is-open .ad-frame { transform: none; }
@media (max-width: 767px) { .ad-dev-desktop { display: none !important; } }
@media (min-width: 768px) { .ad-dev-mobile { display: none !important; } }

/* ── REVEAL ON SCROLL ─────────────────────────────────────────── */
html.motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.motion [data-reveal="zoom"] { transform: scale(.94); }
html.motion [data-reveal="left"] { transform: translateX(-40px); }
html.motion [data-reveal="right"] { transform: translateX(40px); }
html.motion [data-reveal].is-visible { opacity: 1; transform: none; }
[data-parallax] { will-change: transform; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .image-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}
@media (max-width: 900px) {
  .nav-hamburger { display: inline-grid; }
  .nav-actions {
    position: absolute; top: calc(var(--nav-h) + 8px); left: 1rem; right: 1rem;
    flex-direction: column; align-items: stretch; gap: .3rem; padding: .7rem;
    border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg); box-shadow: var(--sh-xl);
    opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
    max-height: calc(100dvh - var(--nav-h) - 30px); overflow-y: auto;
  }
  .nav-actions.mobile-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links { flex-direction: column; align-items: stretch; margin: 0; }
  .nav-link::after { display: none; }
  .nav-tools { flex-wrap: wrap; padding-top: .5rem; border-top: 1px solid var(--border); }
  .nav-tools .btn { flex: 1; }
  .nav-tools .code-pop { flex: 1 1 100%; order: -1; }
  .nav-tools .code-pop-toggle, .nav-tools .code-pop-title { display: none; }
  .nav-tools .code-pop-panel { position: static; width: auto; padding: 0; border: 0; box-shadow: none; background: none; opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  .nav-dropdown { width: 100%; }
  .nav-user { width: 100%; border-radius: var(--r); }
  .nav-dd-menu { position: static; margin-top: .4rem; box-shadow: none; display: none; opacity: 1; transform: none; }
  .nav-dropdown.is-open .nav-dd-menu { display: block; }
  .quick-options { grid-template-columns: 1fr; }
  .quick-option { border-right: 0; border-bottom: 1px solid var(--border); }
  .quick-option:last-child { border-bottom: 0; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-strip > div:nth-child(2) { border-right: 0; }
  .stats-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .steps-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .image-layout { grid-template-columns: 1fr; }
  .img-info-panel { position: static; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { padding: 2rem; }
  .about-hero { grid-template-columns: 1fr; }
  .about-brand-card { min-height: 380px; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  body { font-size: 14.5px; }
  .container, .page, .account-nav, .footer-inner, .footer-bottom { width: calc(100% - 2rem); }
  .page { padding-top: 1.75rem; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .drop-area { margin: .9rem; min-height: 300px; }
  .upload-head { padding: 1rem; }
  .upload-limit { display: none; }
  .up-progress, .results-wrap { margin-inline: .9rem; }
  .stats-strip { grid-template-columns: 1fr; }
  .stats-strip > div { border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .stats-strip > div:last-child { border-bottom: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .floating-lock { left: 0; } .floating-time { right: 0; }
  .footer-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stat { padding: 1rem; flex-direction: column; align-items: flex-start; gap: .6rem; }
  .stat-num { font-size: 1.35rem; }
  .img-props { grid-template-columns: 1fr 1fr; }
  .profile-hero { flex-direction: column; align-items: flex-start; }
  .profile-hero h1 { margin-top: 0; }
  input, select, textarea { font-size: 16px !important; }
  .to-top { right: 14px; bottom: 14px; }
}
@media (hover: none) {
  .gallery-overlay { opacity: 1; transform: none; }
}

/* ── MOTION PREFERENCE / PRINT ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.motion [data-reveal] { opacity: 1; transform: none; }
  .spinner { animation-duration: 1.4s !important; animation-iteration-count: infinite !important; }
}
@media print {
  html.motion [data-reveal] { opacity: 1 !important; transform: none !important; }
  .site-header, .site-footer, .to-top, .scroll-progress { display: none !important; }
}
.pay-by { color: var(--text-4); }
.pay-by-logo { display: inline-flex; color: #6700FF; }
.pay-by-logo .shopier-logo { width: 54px; }
html.dark .pay-by-logo, body.dark .pay-by-logo { color: #B38CFF; }

/* SEO: ana sayfa içerik bölümü ve anahtar kelime sayfaları */
.seo-copy { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; padding-top: 0; }
.seo-copy-text h2 { margin: .6rem 0 1rem; font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -.03em; line-height: 1.12; }
.seo-copy-text p { margin: 0 0 1rem; color: var(--text-3); line-height: 1.75; }
.seo-copy-text strong { color: var(--text); font-weight: 700; }
.seo-links { display: grid; gap: .35rem; padding: 1.3rem; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--bg-card); box-shadow: var(--sh-sm); }
.seo-links h3 { margin: 0 0 .4rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-4); }
.seo-links a { display: flex; align-items: center; gap: .5rem; padding: .5rem .6rem; border-radius: var(--r); color: var(--text-2); font-weight: 650; text-decoration: none; transition: background .2s, color .2s, transform .2s var(--ease); }
.seo-links a .ti { width: 16px; height: 16px; color: var(--primary); transition: transform .2s var(--ease); }
.seo-links a:hover { background: var(--primary-soft); color: var(--primary); }
.seo-links a:hover .ti { transform: translateX(3px); }
.landing-hero { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.landing-hero h1 { max-width: 900px; margin-left: auto; margin-right: auto; }
.crumbs { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1.2rem; padding: .35rem .8rem; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--bg-card) 80%, transparent); color: var(--text-3); font-size: .8rem; font-weight: 650; }
.crumbs a { display: inline-flex; align-items: center; gap: .3rem; color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs .ti { width: 14px; height: 14px; }
.landing-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; margin-bottom: clamp(4rem, 8vw, 6rem); }
.landing-block { padding: 1.6rem; }
.landing-block h2 { margin: 0 0 .6rem; font-size: 1.12rem; letter-spacing: -.01em; }
.landing-block p { margin: 0; color: var(--text-3); line-height: 1.7; font-size: .94rem; }
.related-tools h2 { margin: 0 0 1.2rem; font-size: 1.4rem; }
.related-tools { padding-top: clamp(3rem, 6vw, 5rem); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.related-card { position: relative; display: grid; gap: .25rem; padding: 1.1rem 2.6rem 1.1rem 1.2rem; color: var(--text); text-decoration: none; }
.related-card span { color: var(--text-3); font-size: .86rem; }
.related-card .ti { position: absolute; right: 1rem; top: 50%; width: 18px; height: 18px; color: var(--primary); transform: translateY(-50%); transition: transform .25s var(--ease); }
.related-card:hover .ti { transform: translate(4px, -50%); }
.footer-seo { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.1rem; padding: 1rem 16px 0; font-size: .8rem; }
.footer-seo a { color: var(--text-3); text-decoration: none; }
.footer-seo a:hover { color: var(--primary); }
@media (max-width: 900px) {
  .seo-copy, .landing-sections, .related-grid { grid-template-columns: 1fr; }
}
