/* Omfi — corporate theme: white / black / #ccff00 */

:root {
  --lime: #ccff00;
  --lime-dark: #a8d400;
  --black: #0a0a0a;
  --ink: #111111;
  --white: #ffffff;
  --grey-50: #f6f6f4;
  --grey-100: #ededea;
  --grey-300: #cfcfca;
  --grey-500: #8a8a84;
  --grey-700: #4a4a46;
  --danger: #ff4d4d;
  --success: #2f7d00;
  --radius-card: 20px;
  --radius-ctl: 12px;
  --shadow-card: 0 30px 80px rgba(0, 0, 0, 0.45);
  --sidebar-width: 92px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  padding-left: var(--sidebar-width);
  font-family: var(--font);
  color: var(--ink);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
a { color: inherit; }
button { font-family: inherit; }
[hidden] { display: none !important; }

/* ---------- Stage: full-screen background, card on the left ---------- */
.stage {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 460px) 1fr;
  gap: 32px;
  padding: 104px 40px 56px;
  overflow: hidden;
  isolation: isolate;
}
.stage::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(rgba(204, 255, 0, 0.06) 1px, transparent 1px) 0 0 / 100% 72px,
    linear-gradient(90deg, rgba(204, 255, 0, 0.06) 1px, transparent 1px) 0 0 / 72px 100%,
    var(--black);
}
.stage::after {
  content: "";
  position: absolute; z-index: -1;
  right: -12vw; top: 10vh;
  width: 58vw; height: 58vw; max-width: 900px; max-height: 900px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(204, 255, 0, 0.22), rgba(204, 255, 0, 0.05) 60%, transparent 72%);
  pointer-events: none;
}
.stage.branded::before, .stage.branded::after,
.stage.promo::before, .stage.promo::after { display: none; }

/* ---------- Sidebar (fixed, left) ---------- */
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-width); z-index: 30;
  background: var(--white); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; padding: 22px 0 18px;
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.06);
}
.sidebar-logo { display: grid; place-items: center; margin-bottom: 30px; border-radius: 11px; }
.sidebar-logo img { display: block; width: 40px; height: 40px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 6px; width: 100%; padding: 0 8px; }
.sidebar-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 0; background: none; cursor: pointer; text-decoration: none; color: var(--grey-700);
  font: inherit; font-size: 12px; font-weight: 600; padding: 10px 4px; border-radius: 14px;
  transition: background 0.15s, color 0.15s;
}
.sidebar-item .icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; transition: background 0.15s, transform 0.15s; }
.sidebar-item svg { width: 22px; height: 22px; }
.sidebar-item:hover { color: var(--ink); }
.sidebar-item:hover .icon { background: var(--grey-50); }
.sidebar-item[aria-pressed="true"], .sidebar-item[aria-current="page"] { color: var(--black); }
.sidebar-item[aria-pressed="true"] .icon, .sidebar-item[aria-current="page"] .icon { background: var(--lime); transform: scale(1.02); }
.sidebar-footer { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 4px; }
.sidebar-profile {
  width: 44px; height: 44px; border-radius: 12px; border: 0; padding: 0; cursor: pointer;
  background: var(--grey-50); color: var(--grey-700); display: grid; place-items: center;
  transition: background 0.15s, transform 0.15s;
}
.sidebar-profile:hover { background: var(--grey-100); transform: scale(1.04); }
.sidebar-profile svg { width: 22px; height: 22px; }
.sidebar-profile .avatar { width: 44px; height: 44px; border-radius: 12px; font-size: 14px; }

/* ---------- Top bar (right) ---------- */
.topbar { position: absolute; top: 18px; right: 24px; display: flex; gap: 10px; align-items: center; z-index: 6; }
.pill-bar {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--white); color: var(--ink);
  border-radius: 14px; padding: 6px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  font-size: 14px; font-weight: 500;
}
.pill-bar a, .pill-bar button {
  border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-decoration: none;
  padding: 8px 12px; border-radius: 10px; white-space: nowrap;
}
.pill-bar a:hover, .pill-bar button:hover { background: var(--grey-50); }
.pill-bar .divider { width: 1px; align-self: stretch; background: var(--grey-100); margin: 4px 6px; }
.pill-bar .upgrade { color: #6b21a8; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.pill-bar .upgrade svg { width: 14px; height: 14px; fill: #a855f7; }
.pill-bar .who { display: flex; align-items: center; gap: 10px; text-align: left; padding: 4px 6px 4px 10px; }
.pill-bar .who span { display: block; line-height: 1.2; }
.pill-bar .who small { display: block; color: var(--grey-500); font-size: 12px; }
.pill-bar .primary { background: var(--black); color: var(--white); }
.pill-bar .primary:hover { background: var(--lime); color: var(--black); }
.lang-switch {
  border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: 0.04em;
  width: 44px; height: 44px; border-radius: 14px; background: var(--white); color: var(--ink);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}
.lang-switch:hover { background: var(--lime); }
.avatar {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--lime); color: var(--black); display: grid; place-items: center;
  font-weight: 700; font-size: 13px; letter-spacing: 0.02em;
}

/* ---------- Product name + card ---------- */
.card-area { display: flex; flex-direction: column; gap: 18px; align-self: center; width: 100%; }
/* Aligned with the sidebar logo (22px from the top, 40px tall) */
.product-name {
  position: absolute; top: 22px; left: 40px; height: 40px; z-index: 4;
  display: flex; align-items: center;
  color: var(--white); font-weight: 800; font-size: 28px; letter-spacing: -0.04em;
}
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 28px;
  display: flex; flex-direction: column;
  min-height: 560px;
  align-self: stretch; width: 100%;
  position: relative;
}
.card.dragover { outline: 3px solid var(--lime); outline-offset: 4px; }
.view { display: none; flex-direction: column; flex: 1; }
.view.active { display: flex; }
.card.mode-request .view:not(#view-request) { display: none !important; }
.card:not(.mode-request) #view-request { display: none !important; }

/* ---------- Hero (right side message) ---------- */
.hero { align-self: center; color: var(--white); padding-left: 6vw; max-width: 760px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 20px;
}
.hero .eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--lime); }
.hero h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: 0.98; letter-spacing: -0.04em; font-weight: 800; margin: 0 0 24px; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p { font-size: 18px; color: rgba(255, 255, 255, 0.72); max-width: 520px; margin: 0 0 32px; }
.hero .facts { display: flex; gap: 40px; flex-wrap: wrap; }
.hero .fact strong { display: block; font-size: 28px; letter-spacing: -0.03em; }
.hero .fact span { font-size: 13px; color: rgba(255, 255, 255, 0.6); }
.hero-message { max-width: 520px; background: rgba(255, 255, 255, 0.08) !important; color: #fff; }

/* ---------- Upload card ---------- */
.add-zone { display: flex; align-items: center; gap: 18px; padding: 8px 4px 20px; border-bottom: 1px solid var(--grey-100); cursor: pointer; }
.add-zone:hover .plus { transform: scale(1.05); }
.plus {
  width: 64px; height: 64px; flex: none; border-radius: 50%;
  background: var(--lime); color: var(--black);
  display: grid; place-items: center; transition: transform 0.15s ease;
}
.plus svg { width: 28px; height: 28px; }
.add-zone .labels strong { display: block; font-size: 18px; letter-spacing: -0.02em; }
.add-zone .labels button { background: none; border: 0; padding: 0; margin-top: 2px; color: var(--grey-500); font-size: 14px; cursor: pointer; text-decoration: underline; }

.file-list { list-style: none; margin: 0; padding: 0; max-height: 180px; overflow: auto; }
.file-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--grey-100); font-size: 14px; }
.file-list .name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; }
.file-list .size { color: var(--grey-500); font-variant-numeric: tabular-nums; }
.file-list .remove { border: 0; background: none; color: var(--grey-500); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 2px; }
.file-list .remove:hover { color: var(--black); }
.file-list .bar { grid-column: 1 / -1; height: 3px; background: var(--grey-100); border-radius: 2px; overflow: hidden; }
.file-list .bar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width 0.3s; }

.field { margin-top: 16px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--grey-700); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--grey-300); border-radius: var(--radius-ctl);
  padding: 12px 14px; font: inherit; font-size: 15px; background: var(--white);
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field textarea:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.5); }
.field textarea { resize: vertical; min-height: 84px; }
.field-help { font-size: 12px; color: var(--grey-500); margin-top: 6px; }

.capacity, .storage-meter { font-size: 13px; color: var(--grey-500); }
.capacity { margin-top: auto; padding-top: 20px; }
.capacity .row, .storage-meter .row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.capacity .row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.capacity .track, .storage-meter .track { height: 6px; background: var(--grey-100); border-radius: 3px; overflow: hidden; }
.capacity .track i, .storage-meter .track i { display: block; height: 100%; width: 0; background: var(--lime); transition: width 0.3s; }
.capacity.over .track i, .storage-meter.over .track i { background: var(--danger); }
.capacity.over .row b { color: var(--danger); }
.storage-meter { margin: -6px 0 18px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 16px 24px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform 0.1s, background 0.15s, color 0.15s;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--black); color: var(--white); width: 100%; margin-top: 16px; }
.btn-primary:hover { background: var(--lime); color: var(--black); }
.btn-primary:disabled { background: var(--grey-100); color: var(--grey-500); cursor: not-allowed; }
.btn-lime { background: var(--lime); color: var(--black); }
.btn-lime:hover { background: var(--lime-dark); }
.btn-ghost { background: var(--grey-50); color: var(--ink); }
.btn-ghost:hover { background: var(--grey-100); }
.btn-outline-dark { background: transparent; color: var(--ink); border: 1px solid var(--grey-300); }
.btn:disabled { cursor: not-allowed; opacity: 0.7; }
.btn-block { width: 100%; }

/* ---------- Progress ring ---------- */
.ring-wrap { display: grid; place-items: center; padding: 18px 0 8px; position: relative; }
.ring { width: 180px; height: 180px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring .track { stroke: var(--grey-100); }
.ring .fill { stroke: var(--lime); stroke-dasharray: 502.65; stroke-dashoffset: 502.65; transition: stroke-dashoffset 0.4s ease; }
.ring-label { position: absolute; text-align: center; }
.ring-label .pct { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.ring-label .sub { font-size: 12px; color: var(--grey-500); margin-top: 6px; font-weight: 500; }
.ring-wrap.done .pct, .ring-wrap.done .sub { display: none; }

.status-title { text-align: center; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 4px; }
.status-sub { text-align: center; font-size: 14px; color: var(--grey-500); margin: 0 0 18px; min-height: 20px; }

.linkbox { margin-top: 8px; }
.linkbox label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey-700); margin-bottom: 8px; }
.linkbox label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(204, 255, 0, 0.3); }
.linkbox .row { display: flex; gap: 8px; }
.linkbox input { flex: 1; min-width: 0; border: 1px solid var(--grey-300); border-radius: var(--radius-ctl); padding: 12px 14px; font: inherit; font-size: 14px; background: var(--grey-50); color: var(--ink); }
.linkbox button { border: 0; border-radius: var(--radius-ctl); background: var(--black); color: var(--white); padding: 0 18px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.linkbox button:hover { background: var(--lime); color: var(--black); }
.linkbox .hint { font-size: 12px; color: var(--grey-500); margin-top: 8px; }

.meta-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--grey-500); margin-top: 14px; }
.meta-row b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

.text-link { background: none; border: 0; color: var(--grey-500); text-decoration: underline; cursor: pointer; font-size: 14px; margin-top: 16px; align-self: center; }
.text-link:hover { color: var(--danger); }

.msgbox { background: var(--grey-50); border-radius: var(--radius-ctl); padding: 14px 16px; font-size: 14px; white-space: pre-wrap; margin-top: 12px; }
.msgbox .from { font-size: 12px; color: var(--grey-500); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }

.dl-list { list-style: none; margin: 14px 0 0; padding: 0; max-height: 220px; overflow: auto; border-top: 1px solid var(--grey-100); }
.dl-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--grey-100); font-size: 14px; }
.dl-list .name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dl-list a.dl { color: var(--black); text-decoration: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--grey-50); }
.dl-list a.dl:hover { background: var(--lime); }
.dl-list a.dl.disabled { pointer-events: none; opacity: 0.35; }
.dl-list .bar { grid-column: 1 / -1; height: 3px; background: var(--grey-100); border-radius: 2px; overflow: hidden; }
.dl-list .bar i { display: block; height: 100%; width: 0; background: var(--lime); transition: width 0.4s; }

.error-state { text-align: center; padding: 60px 10px; }
.error-state .big { font-size: 56px; margin-bottom: 8px; }
.error-state h2 { margin: 0 0 8px; letter-spacing: -0.02em; }
.error-state p { color: var(--grey-500); margin: 0 0 24px; }

/* ---------- File request view ---------- */
.request-title { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 4px 0; }
.request-intro { color: var(--grey-500); font-size: 14px; margin: 0 0 4px; }
.info-box { background: var(--grey-50); border-radius: var(--radius-ctl); padding: 18px; font-size: 14px; color: var(--grey-700); margin-top: 16px; }
.button-row { display: flex; gap: 10px; margin-top: 16px; }
.button-row .btn { flex: 1; margin-top: 0; padding: 14px 18px; font-size: 15px; }
.error-text { color: var(--danger); font-size: 13px; min-height: 18px; margin-top: 8px; }
.success-text { color: var(--success); font-size: 13px; min-height: 18px; margin-top: 8px; }
.request-card-info { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--grey-100); }
.request-card-info .requester { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 4px; }
.request-card-info h2 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.request-card-info p { margin: 6px 0 0; font-size: 14px; color: var(--grey-700); white-space: pre-wrap; }

/* ---------- Sender (inside the card) ---------- */
.sender { display: flex; align-items: center; gap: 12px; margin: -4px 0 16px; padding-bottom: 14px; border-bottom: 1px solid var(--grey-100); }
.sender-logo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--grey-50); flex: none; }
.sender-text { min-width: 0; line-height: 1.25; }
.sender-text strong { font-size: 15px; letter-spacing: -0.01em; }
.sender-username { font-size: 13px; color: var(--grey-500); font-weight: 500; }
.sender-text small { display: block; font-size: 12px; color: var(--grey-500); margin-top: 2px; }
.sender-inline { margin: 0 0 10px; padding-bottom: 0; border-bottom: 0; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; display: none; place-items: center; background: rgba(0, 0, 0, 0.65); z-index: 50; padding: 20px; }
.modal.open { display: grid; }
.modal .box { background: var(--white); border-radius: var(--radius-card); max-width: 460px; width: 100%; padding: 32px; position: relative; }
.modal .tag { display: inline-block; background: var(--lime); color: var(--black); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; }
.modal h2 { margin: 14px 0 8px; font-size: 26px; letter-spacing: -0.03em; }
.modal p { color: var(--grey-700); margin: 0 0 20px; font-size: 15px; }
.modal .plan { border: 1px solid var(--grey-100); border-radius: var(--radius-ctl); padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; background: var(--grey-50); }
.modal .plan strong { display: block; font-size: 16px; }
.modal .plan span { font-size: 13px; color: var(--grey-500); }
.modal .plan .price { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.modal .plan .price small { font-size: 12px; font-weight: 500; color: var(--grey-500); }
.modal .actions { display: flex; gap: 10px; }
.modal .actions .btn { flex: 1; }
.modal .close { position: absolute; top: 14px; right: 16px; border: 0; background: none; font-size: 24px; cursor: pointer; color: var(--grey-500); }

/* ---------- Footer ---------- */
.footer {
  position: absolute; left: calc(var(--sidebar-width) + 40px); right: 40px; bottom: 20px;
  display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255, 255, 255, 0.45);
}
.footer a, .footer-lang { color: inherit; text-decoration: none; margin-left: 18px; }
.footer-lang { border: 0; background: none; font: inherit; cursor: pointer; padding: 0; }
.footer a:hover, .footer-lang:hover { color: var(--lime); }
.footer-static { position: static; padding: 20px 40px; }
.stage.customer-page ~ .footer { display: none; }

/* ---------- Pricing ---------- */
.pricing { min-height: 100vh; padding: 140px 40px 80px; position: relative; color: var(--white); isolation: isolate; }
.pricing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(rgba(204, 255, 0, 0.06) 1px, transparent 1px) 0 0 / 100% 72px,
    linear-gradient(90deg, rgba(204, 255, 0, 0.06) 1px, transparent 1px) 0 0 / 72px 100%,
    var(--black);
}
.pricing .head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.pricing .head h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.04em; margin: 0 0 16px; line-height: 1; }
.pricing .head h1 em { font-style: normal; color: var(--lime); }
.pricing .head p { color: rgba(255, 255, 255, 0.7); font-size: 18px; margin: 0; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; max-width: 1280px; margin: 0 auto; }
.plan-card { background: var(--white); color: var(--ink); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; position: relative; }
.plan-card.featured { background: var(--lime); }
.plan-card .badge { position: absolute; top: 20px; right: 20px; background: var(--black); color: var(--lime); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 10px; border-radius: 6px; }
.plan-card h3 { margin: 0 0 6px; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey-700); }
.plan-card.featured h3 { color: rgba(0, 0, 0, 0.6); }
.plan-card .price { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 4px; }
.plan-card .price small { font-size: 14px; font-weight: 500; color: var(--grey-500); letter-spacing: 0; }
.plan-card.featured .price small { color: rgba(0, 0, 0, 0.6); }
.plan-card .desc { color: var(--grey-500); font-size: 14px; margin: 0 0 24px; }
.plan-card.featured .desc { color: rgba(0, 0, 0, 0.7); }
.plan-card ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; font-size: 15px; }
.plan-card li { display: flex; gap: 10px; align-items: flex-start; }
.plan-card li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 2px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan-card.featured li::before { background-color: var(--black); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ccff00' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.plan-card .btn { margin-top: auto; }
.pricing .faq { max-width: 760px; margin: 72px auto 0; display: grid; gap: 14px; }
.pricing .faq details { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius-ctl); padding: 16px 20px; }
.pricing .faq summary { cursor: pointer; font-weight: 600; }
.pricing .faq p { color: rgba(255, 255, 255, 0.7); margin: 10px 0 0; font-size: 15px; }

/* ---------- Side panel ---------- */
.panel-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.45); opacity: 0; pointer-events: none; transition: opacity 0.32s ease; z-index: 40; }
.panel-backdrop.open { opacity: 1; pointer-events: auto; }
/* Slides in and out the same way: visibility switches only after the closing slide ends. */
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(540px, 100vw);
  background: var(--white); color: var(--ink); z-index: 41;
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.24, 1), visibility 0s linear 0.32s;
  display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
}
.panel.open { transform: none; visibility: visible; transition: transform 0.32s cubic-bezier(0.22, 0.8, 0.24, 1), visibility 0s; }
.panel-header { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; border-bottom: 1px solid var(--grey-100); }
.panel-header h2 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.panel-close { border: 0; background: var(--grey-50); width: 36px; height: 36px; border-radius: 10px; font-size: 20px; cursor: pointer; color: var(--grey-700); }
.panel-close:hover { background: var(--grey-100); }
.panel-body { flex: 1; overflow: auto; padding: 24px 28px 32px; }
.panel [data-section] { display: none; }
.panel [data-section].active { display: block; }
.panel .field:first-child { margin-top: 0; }
.panel .btn-primary { margin-top: 20px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-top: 14px; color: var(--grey-700); }
.switch-link { margin-top: 18px; font-size: 14px; color: var(--grey-500); text-align: center; }
.switch-link button { border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

.profile-card { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.profile-card .avatar { width: 44px; height: 44px; font-size: 15px; border-radius: 12px; }
.profile-card strong { display: block; }
.profile-card small { color: var(--grey-500); }
.tabs { display: flex; gap: 4px; background: var(--grey-50); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.tabs button { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 600; color: var(--grey-500); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.record-list { list-style: none; margin: 0; padding: 0; }
.record-list > li { border: 1px solid var(--grey-100); border-radius: var(--radius-ctl); padding: 14px; margin-bottom: 10px; }
.record-list > li.empty-list { border: 0; }
.record-list .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-list .meta { font-size: 12px; color: var(--grey-500); margin-top: 2px; }
.record-list .actions-row { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.record-list .actions-row a, .record-list .actions-row button {
  border: 1px solid var(--grey-100); background: var(--white); border-radius: 999px; padding: 6px 12px;
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; color: var(--ink);
}
.record-list .actions-row a:hover, .record-list .actions-row button:hover { border-color: var(--black); }
.record-list .actions-row .danger:hover { border-color: var(--danger); color: var(--danger); }
.badge-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--grey-100); color: var(--grey-700); margin-left: 6px; vertical-align: 1px; }
.badge-pill.positive { background: var(--lime); color: var(--black); }
.sub-list { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--grey-100); font-size: 13px; }
.sub-list li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; }
.sub-list a { color: var(--ink); }
.empty-list { color: var(--grey-500); font-size: 14px; text-align: center; padding: 28px 0; }

/* ---------- Branding settings ---------- */
.section-intro { margin: 0 0 14px; font-size: 13px; color: var(--grey-500); }
.settings-section { border-top: 1px solid var(--grey-100); margin-top: 20px; padding-top: 18px; }
.settings-section h3 { margin: 0 0 4px; font-size: 15px; }
.settings-section p { margin: 0 0 12px; font-size: 13px; color: var(--grey-500); }
.brand-preview {
  height: 150px; border-radius: var(--radius-ctl); background: var(--black) center / cover no-repeat;
  position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 12px;
}
.brand-preview .mini-card { position: relative; z-index: 1; background: var(--white); border-radius: 10px; padding: 8px 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; max-width: 100%; }
.brand-preview img { width: 28px; height: 28px; object-fit: cover; border-radius: 7px; }
.logo-box {
  width: 72px; height: 72px; border: 1px dashed var(--grey-300); border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; text-align: center; line-height: 1.2; padding: 4px;
  background: var(--grey-50); font-size: 12px; color: var(--grey-500);
}
.logo-box:has(img) { padding: 0; border-style: solid; border-color: var(--grey-100); }
.logo-box img { width: 100%; height: 100%; object-fit: cover; }
.row-inline { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.text-input { flex: 1; min-width: 160px; border: 1px solid var(--grey-300); border-radius: 12px; padding: 10px 12px; font: inherit; }
.small-button { border: 1px solid var(--grey-300); background: var(--white); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.small-button:hover { border-color: var(--black); }
.small-button.danger:hover { border-color: var(--danger); color: var(--danger); }
.small-button.disabled { opacity: 0.45; pointer-events: none; }

.bg-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.bg-empty { grid-column: 1 / -1; border: 1px dashed var(--grey-300); border-radius: var(--radius-ctl); padding: 18px; text-align: center; font-size: 13px; color: var(--grey-500); background: var(--grey-50); }
.bg-item { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--black); box-shadow: 0 0 0 1px var(--grey-100); transition: box-shadow 0.15s; }
.bg-item.selected { box-shadow: 0 0 0 3px var(--lime), 0 0 0 4px var(--black); }
.bg-item img, .bg-item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bg-tag { position: absolute; left: 6px; top: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; background: rgba(0, 0, 0, 0.6); color: #fff; padding: 2px 6px; border-radius: 5px; }
.bg-number { position: absolute; left: 6px; bottom: 6px; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: var(--white); color: var(--black); font-size: 12px; font-weight: 700; padding: 0 6px; }
.bg-pick { position: absolute; inset: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: flex-end; padding: 6px; }
.bg-pick span { font: inherit; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, 0.92); color: var(--black); border-radius: 999px; padding: 3px 8px; opacity: 0; transform: translateY(4px); transition: opacity 0.15s, transform 0.15s; }
.bg-item:hover .bg-pick span, .bg-pick:focus-visible span, .bg-item.selected .bg-pick span { opacity: 1; transform: none; }
.bg-item.selected .bg-pick span { background: var(--lime); }
.bg-tools { position: absolute; right: 5px; top: 5px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.bg-item:hover .bg-tools, .bg-item:focus-within .bg-tools { opacity: 1; }
.bg-tools button { width: 24px; height: 24px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, 0.92); color: var(--black); font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.bg-tools button:disabled { opacity: 0.35; cursor: default; }
.bg-tools button.danger:hover { background: var(--danger); color: #fff; }
@media (hover: none) { .bg-tools, .bg-pick span { opacity: 1; transform: none; } }
.bg-count { font-size: 12px; color: var(--grey-500); font-variant-numeric: tabular-nums; }
.bg-mode { margin-top: 16px; }
.segment { display: flex; gap: 4px; background: var(--grey-50); border-radius: 12px; padding: 4px; }
.segment button { flex: 1; border: 0; background: none; padding: 8px 6px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 600; color: var(--grey-500); cursor: pointer; transition: background 0.15s, color 0.15s; }
.segment button:hover { color: var(--ink); }
.segment button[aria-checked="true"] { background: var(--white); color: var(--black); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.settings-section .bg-mode-help { margin: 8px 2px 0; font-size: 12px; }
.bg-duration { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--grey-700); }
.bg-duration input { width: 64px; border: 1px solid var(--grey-300); border-radius: 10px; padding: 7px 8px; font: inherit; text-align: center; }

/* ---------- Logo crop dialog ---------- */
.crop-modal { z-index: 60; }
.crop-modal .box { max-width: 420px; }
.crop-modal h2 { margin-top: 0; }
.crop-area {
  width: min(320px, 100%); aspect-ratio: 1; margin: 0 auto 16px; border-radius: 16px; overflow: hidden; position: relative;
  background: conic-gradient(#e9e9e5 25%, #fff 0 50%, #e9e9e5 0 75%, #fff 0) 0 0 / 20px 20px;
  box-shadow: 0 0 0 1px var(--grey-100);
}
.crop-area canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.crop-area canvas:active { cursor: grabbing; }
.crop-area::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 16px;
  background:
    linear-gradient(to right, transparent calc(33.33% - 0.5px), rgba(255,255,255,0.55) calc(33.33% - 0.5px), rgba(255,255,255,0.55) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255,255,255,0.55) calc(66.66% - 0.5px), rgba(255,255,255,0.55) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
    linear-gradient(to bottom, transparent calc(33.33% - 0.5px), rgba(255,255,255,0.55) calc(33.33% - 0.5px), rgba(255,255,255,0.55) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255,255,255,0.55) calc(66.66% - 0.5px), rgba(255,255,255,0.55) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px));
  box-shadow: inset 0 0 0 2px rgba(10, 10, 10, 0.85);
}
.crop-zoom { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.crop-zoom svg { width: 18px; height: 18px; fill: none; stroke: var(--grey-500); stroke-width: 2; stroke-linecap: round; flex: none; }
.crop-zoom input { flex: 1; accent-color: var(--black); }

/* ---------- Backgrounds: brand and promo ---------- */
.brand-backdrop { position: absolute; inset: 0; z-index: -1; background: #050505 center / cover no-repeat; overflow: hidden; }
.brand-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15)); }
.bg-layer { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1); }
.bg-layer.visible { opacity: 1; }
.bg-layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-preview .bg-layer { z-index: 0; }
.promo-backdrop { position: absolute; inset: 0; z-index: -1; background: #050505 center / cover no-repeat; opacity: 0; transition: opacity 0.6s ease; }
.promo-backdrop.ready { opacity: 1; }
/* Bright nature photos: keep the white headline readable */
.promo-backdrop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.08) 35%, rgba(0,0,0,0.42) 70%, rgba(0,0,0,0.5) 100%); }
.stage.promo .hero h1, .stage.promo .hero p, .stage.promo .hero .fact,
.stage.branded .hero h1, .stage.branded .hero p, .stage.branded .hero .fact { text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); }
.stage.promo .hero h1 em, .stage.promo .hero .eyebrow,
.stage.branded .hero h1 em, .stage.branded .hero .eyebrow { color: var(--lime); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55); }

/* A branded page belongs to the customer: no Omfi text over their background. */
.stage.customer-page .hero > * { display: none !important; }
.stage.customer-page .product-name { display: none; }

/* Branded backgrounds: frosted, semi-transparent card; text and icons stay readable. */
.stage.branded .card {
  --grey-500: #66665f;
  --grey-100: rgba(10, 10, 10, 0.09);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.stage.branded .card :is(.msgbox, .info-box, .btn-ghost, .dl-list a.dl, .linkbox input, .field input, .field textarea) { background-color: rgba(255, 255, 255, 0.5); }
.stage.branded .card .btn-ghost:hover { background-color: rgba(255, 255, 255, 0.85); }
.stage.branded .card .sender-logo { background: rgba(255, 255, 255, 0.7); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .stage.branded .card { background: rgba(255, 255, 255, 0.94); }
}

/* ---------- Animation: upload complete ---------- */
.done-anim { display: none; width: 120px; height: 120px; overflow: visible; }
.ring-wrap.done .done-anim { display: block; }
.done-anim .da-check { fill: none; stroke: var(--black); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; }
.ring-wrap.done .done-anim .da-check { animation: da-draw 0.45s 0.15s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
.done-anim .da-rays { stroke: var(--lime-dark); stroke-width: 5; stroke-linecap: round; opacity: 0; transform-origin: 60px 60px; }
.ring-wrap.done .done-anim .da-rays { animation: da-burst 0.7s 0.45s ease-out forwards; }
.done-anim .da-dots { fill: var(--lime); opacity: 0; transform-origin: 60px 60px; }
.ring-wrap.done .done-anim .da-dots { animation: da-burst 0.8s 0.5s ease-out forwards; }
.ring-wrap.done .ring { animation: da-pulse 0.6s 0.1s ease-out; }
@keyframes da-draw { to { stroke-dashoffset: 0; } }
@keyframes da-burst { 0% { opacity: 0; transform: scale(0.6); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes da-pulse { 0% { transform: rotate(-90deg) scale(1); } 40% { transform: rotate(-90deg) scale(1.06); } 100% { transform: rotate(-90deg) scale(1); } }

/* ---------- Animation: download started ---------- */
.download-toast {
  position: absolute; left: 50%; top: calc(100% + 14px); transform: translate(-50%, 16px);
  display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 12px;
  background: var(--black); color: var(--white); border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 5; white-space: nowrap;
}
.download-toast.show { opacity: 1; transform: translate(-50%, 0); }
.download-toast svg { width: 34px; height: 34px; overflow: visible; }
.download-toast .dt-arrow { fill: none; stroke: var(--lime); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.download-toast .dt-tray { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.download-toast.show .dt-arrow { animation: dt-drop 0.9s ease-in-out 2; }
.download-toast.show .dt-tray { animation: dt-bounce 0.9s ease-in-out 2; }
@keyframes dt-drop { 0% { transform: translateY(-9px); opacity: 0; } 30% { opacity: 1; } 70% { transform: translateY(3px); opacity: 1; } 100% { transform: translateY(3px); opacity: 0; } }
@keyframes dt-bounce { 0%, 60% { transform: translateY(0); } 75% { transform: translateY(2px); } 100% { transform: translateY(0); } }

/* ---------- Animation: not found / deleted ---------- */
.empty-anim { width: 132px; height: 112px; margin: 0 auto 10px; display: block; overflow: visible; }
.empty-anim .ea-box { fill: var(--grey-50); stroke: var(--black); stroke-width: 3; stroke-linejoin: round; }
.empty-anim .ea-lid { fill: var(--white); stroke: var(--black); stroke-width: 3; stroke-linejoin: round; transform-origin: 18px 52px; animation: ea-lid 3.2s ease-in-out infinite; }
.empty-anim .ea-doc { fill: var(--white); stroke: var(--grey-500); stroke-width: 2.5; stroke-dasharray: 5 4; animation: ea-fly 3.2s ease-in-out infinite; }
.empty-anim .ea-star { fill: var(--lime-dark); animation: ea-twinkle 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
.empty-anim .ea-face { fill: none; stroke: var(--black); stroke-width: 2.5; stroke-linecap: round; }
@keyframes ea-lid { 0%, 15%, 85%, 100% { transform: rotate(0deg); } 35%, 65% { transform: rotate(-24deg); } }
@keyframes ea-fly { 0%, 20% { transform: translate(0, 18px); opacity: 0; } 45% { transform: translate(6px, -6px); opacity: 1; } 75% { transform: translate(14px, -26px); opacity: 0; } 100% { opacity: 0; } }
@keyframes ea-twinkle { 0%, 40%, 100% { transform: scale(0.4); opacity: 0; } 55% { transform: scale(1); opacity: 1; } 70% { transform: scale(0.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .done-anim *, .download-toast *, .empty-anim *, .ring { animation: none !important; }
  .done-anim .da-check { stroke-dashoffset: 0; }
  /* Soft fades (backgrounds, backdrop) stay: they do not move anything. Only the sliding panel is shortened. */
  .panel { transition-duration: 0.15s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  :root { --sidebar-width: 0px; }
  body { padding-bottom: 70px; }
  .stage { grid-template-columns: 1fr; padding: 88px 16px 80px; gap: 28px; }
  .hero { order: -1; padding-left: 0; }
  .hero h1 { font-size: clamp(34px, 9vw, 56px); }
  .hero .facts { gap: 24px; }
  .card { min-height: 0; max-width: 520px; margin: 0 auto; }
  .card-area { max-width: 520px; margin: 0 auto; }
  .product-name { top: 14px; left: 16px; font-size: 24px; }
  .sidebar { top: auto; bottom: 0; right: 0; width: auto; height: 66px; flex-direction: row; padding: 0 12px; box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.08); }
  .sidebar-logo { margin: 0 14px 0 4px; }
  .sidebar-logo img { width: 34px; height: 34px; }
  .sidebar-nav { flex-direction: row; padding: 0; gap: 4px; width: auto; }
  .sidebar-item { flex-direction: row; padding: 6px 10px; }
  .sidebar-item .icon { width: 34px; height: 34px; }
  .sidebar-footer { margin: 0 0 0 auto; padding: 0; }
  .sidebar-profile, .sidebar-profile .avatar { width: 38px; height: 38px; }
  .topbar { right: 12px; top: 12px; }
  .pill-bar .hide-narrow { display: none; }
  .lang-switch { width: 40px; height: 40px; }
  .footer { left: 16px; right: 16px; bottom: 80px; flex-direction: column; gap: 6px; align-items: flex-start; }
  .footer a, .footer-lang { margin: 0 14px 0 0; }
  .footer-static { padding: 20px 16px 90px; }
  .plans { grid-template-columns: 1fr; }
  .pricing { padding: 110px 16px 60px; }
}

/* ---------- Site notices (announcement / maintenance from the supervisor panel) ---------- */
.site-notices { position: relative; z-index: 35; transform: translateY(-100%); opacity: 0; transition: transform 0.35s ease, opacity 0.35s ease; }
.site-notices.visible { transform: none; opacity: 1; }
.site-notice { padding: 10px 24px; font-size: 14px; font-weight: 500; text-align: center; color: var(--black); background: var(--lime); }
.site-notice.warning { background: #ffcf4d; }

/* ---------- Profile photo (logo) as avatar ---------- */
.avatar-image { object-fit: cover; padding: 0; background: var(--grey-50); }
.sidebar-profile img.avatar { width: 44px; height: 44px; border-radius: 12px; }

/* ---------- Skeleton and toast ---------- */
.skeleton { display: block; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.16), rgba(255,255,255,0.06)); background-size: 200% 100%; animation: skeleton 1.2s ease-in-out infinite; }
.skeleton-title { height: 40px; width: 55%; margin-bottom: 24px; }
.skeleton-line { height: 14px; width: 100%; margin-bottom: 12px; }
.skeleton-line.short { width: 60%; }
.skeleton-name { display: inline-block; height: 34px; width: 220px; vertical-align: middle; }
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 70;
  background: var(--black); color: var(--white); border: 1px solid rgba(255,255,255,0.12);
  padding: 12px 18px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

/* ---------- Pricing: grid follows the number of active plans ---------- */
.plans { grid-template-columns: repeat(var(--plan-count, 4), minmax(0, 1fr)); }

/* ---------- Content pages (privacy, terms) ---------- */
.content-page { min-height: 100vh; padding: 130px 40px 80px; color: var(--white); position: relative; isolation: isolate; }
.content-page::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(rgba(204,255,0,0.05) 1px, transparent 1px) 0 0 / 100% 72px, linear-gradient(90deg, rgba(204,255,0,0.05) 1px, transparent 1px) 0 0 / 72px 100%, var(--black);
}
.content-article { max-width: 760px; margin: 0 auto; }
.content-article.ready { animation: fade-up 0.4s ease both; }
.content-article h1 { font-size: clamp(34px, 4.5vw, 56px); letter-spacing: -0.04em; line-height: 1.02; margin: 0 0 10px; }
.content-article h2 { font-size: 20px; letter-spacing: -0.02em; margin: 34px 0 10px; color: var(--lime); }
.content-article p, .content-article li { color: rgba(255,255,255,0.78); font-size: 16px; line-height: 1.7; }
.content-article ul { padding-left: 20px; }
.content-updated { font-size: 13px !important; color: rgba(255,255,255,0.45) !important; margin-bottom: 28px; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Portfolio ---------- */
.portfolio-page { min-height: 100vh; padding: 96px 40px 80px; color: var(--white); position: relative; isolation: isolate; max-width: 1180px; margin: 0 auto; }
.pf-hero { margin-bottom: 34px; }
.pf-cover { position: relative; aspect-ratio: 3 / 1; border-radius: 24px; overflow: hidden;
  background: radial-gradient(120% 140% at 85% 10%, rgba(204,255,0,0.35), transparent 55%), linear-gradient(135deg, #1b1b1b, #0d0d0d); }
.pf-cover-image { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 0.5s ease; }
.pf-cover.has-image .pf-cover-image { opacity: 1; }
.pf-cover.saving .pf-cover-image, .pf-avatar.saving img { filter: saturate(0.6) brightness(0.85); }
.pf-cover-tools { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 8px; opacity: 0; transform: translateY(6px); transition: opacity 0.2s, transform 0.2s; }
.pf-cover:hover .pf-cover-tools, .pf-cover:focus-within .pf-cover-tools { opacity: 1; transform: none; }
@media (hover: none) { .pf-cover-tools { opacity: 1; transform: none; } }
.pf-chip { border: 0; cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.92); color: var(--black); backdrop-filter: blur(8px); transition: background 0.15s, transform 0.1s; white-space: nowrap; }
.pf-chip:hover { background: var(--lime); }
.pf-chip:active { transform: translateY(1px); }
.pf-chip.dark { background: var(--black); color: var(--white); }
.pf-chip.dark:hover { background: var(--lime); color: var(--black); }
.pf-identity { display: flex; align-items: flex-end; gap: 20px; margin: -56px 28px 0; position: relative; }
.pf-avatar { position: relative; width: 120px; height: 120px; flex: none; border-radius: 28px; overflow: hidden; background: var(--lime); color: var(--black);
  display: grid; place-items: center; box-shadow: 0 0 0 6px var(--black), 0 20px 40px rgba(0,0,0,0.4); }
.pf-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter 0.2s; }
.pf-avatar-initials { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.pf-avatar-edit { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,0.45); color: #fff; cursor: pointer; opacity: 0; transition: opacity 0.2s; }
.pf-avatar-edit svg { width: 30px; height: 30px; }
.pf-avatar:hover .pf-avatar-edit, .pf-avatar:focus-within .pf-avatar-edit { opacity: 1; }
@media (hover: none) { .pf-avatar-edit { opacity: 0.8; background: rgba(0,0,0,0.25); } }
.pf-names { flex: 1; min-width: 0; padding-bottom: 6px; }
.pf-names h1 { margin: 0; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.04em; line-height: 1.05; overflow-wrap: anywhere; }
.pf-username-row { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-height: 36px; }
.pf-username { color: rgba(255,255,255,0.62); font-size: 16px; font-weight: 500; }
.pf-icon-button { border: 0; background: rgba(255,255,255,0.08); color: #fff; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; transition: background 0.15s; }
.pf-icon-button:hover { background: rgba(255,255,255,0.18); }
.pf-icon-button svg { width: 16px; height: 16px; }
.pf-username-form { display: flex; align-items: center; gap: 6px; animation: fade-up 0.2s ease both; }
.pf-username-form span { color: rgba(255,255,255,0.6); }
.pf-username-form input { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 10px; padding: 7px 10px; font: inherit; width: 200px; outline: none; }
.pf-username-form input:focus { border-color: var(--lime); }
.pf-error { color: #ff8a8a; font-size: 13px; min-height: 18px; }
.pf-share { align-self: center; margin-bottom: 10px; }
.pf-owner-hint { margin: 18px 28px 0; font-size: 13px; color: rgba(255,255,255,0.5); }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.pf-item { position: relative; border-radius: 18px; overflow: hidden; background: #151515; border: 1px solid rgba(255,255,255,0.08);
  animation: fade-up 0.35s ease both; animation-delay: calc(var(--i, 0) * 40ms); transition: transform 0.18s, border-color 0.18s, opacity 0.18s; }
.pf-item:hover { transform: translateY(-3px); border-color: rgba(204,255,0,0.4); }
.pf-item.leaving { opacity: 0; transform: scale(0.96); }
.pf-item-link { display: block; text-decoration: none; color: inherit; }
.pf-thumb { aspect-ratio: 4 / 3; background: #0f0f0f center / cover no-repeat; }
.pf-thumb-icon { display: grid; place-items: center; align-content: center; gap: 6px; color: rgba(255,255,255,0.4); background: linear-gradient(135deg, #1d1d1d, #111); }
.pf-thumb-icon svg { width: 46px; height: 46px; }
.pf-thumb-icon span { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--lime); }
.pf-item-body { padding: 14px 16px 16px; }
.pf-item-body h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-item-body p { margin: 0; font-size: 13px; color: rgba(255,255,255,0.6); }
.pf-item-body small { font-size: 12px; color: rgba(255,255,255,0.4); }
.pf-item-tools { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.pf-item:hover .pf-item-tools, .pf-item:focus-within .pf-item-tools { opacity: 1; }
@media (hover: none) { .pf-item-tools { opacity: 1; } }
.pf-item-tools button { width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255,255,255,0.92); color: var(--black); font-size: 16px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0; }
.pf-item-tools button:disabled { opacity: 0.35; cursor: default; }
.pf-item-tools button.danger:hover { background: var(--danger); color: #fff; }
.pf-empty { grid-column: 1 / -1; border: 1px dashed rgba(255,255,255,0.18); border-radius: 18px; padding: 40px 20px; text-align: center; color: rgba(255,255,255,0.55); }
.pf-picker { margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); animation: fade-up 0.3s ease both; }
.pf-picker h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.02em; }
.pf-picker > p { margin: 0 0 16px; color: rgba(255,255,255,0.55); font-size: 14px; }
.pf-picker-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pf-picker-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #141414; border: 1px solid rgba(255,255,255,0.07); transition: border-color 0.15s; }
.pf-picker-list li.on { border-color: rgba(204,255,0,0.45); }
.pf-picker-list strong { display: block; font-size: 14px; }
.pf-picker-list small { font-size: 12px; color: rgba(255,255,255,0.5); }
.pf-picker-empty { justify-content: center !important; color: rgba(255,255,255,0.5); }
.pf-missing { text-align: center; padding: 80px 20px; }
.pf-missing .empty-anim .ea-box { fill: #1a1a1a; stroke: #fff; }
.pf-missing .empty-anim .ea-lid { fill: #111; stroke: #fff; }
.pf-missing .empty-anim circle { fill: #fff; }
.pf-missing .empty-anim .ea-face { stroke: #fff; }
.pf-missing p { color: rgba(255,255,255,0.6); margin: 0 0 24px; }

@media (max-width: 960px) {
  .content-page { padding: 100px 18px 60px; }
  .portfolio-page { padding: 80px 14px 100px; }
  .pf-cover { border-radius: 18px; aspect-ratio: 2 / 1; }
  .pf-identity { flex-wrap: wrap; margin: -44px 12px 0; gap: 14px; }
  .pf-avatar { width: 92px; height: 92px; border-radius: 22px; }
  .pf-share { margin: 0; }
}

/* Announcement banner pushes the floating top elements down */
.has-notices .topbar { top: calc(18px + var(--notice-h, 0px)); }
.has-notices .product-name { top: calc(22px + var(--notice-h, 0px)); }
@media (max-width: 960px) {
  .has-notices .topbar { top: calc(12px + var(--notice-h, 0px)); }
  .has-notices .product-name { top: calc(14px + var(--notice-h, 0px)); }
}

/* Only the photo overlaps the cover; name and actions sit below it */
.pf-identity { align-items: flex-start; }
.pf-names { padding-top: 64px; }
.pf-share { align-self: flex-start; margin: 70px 0 0; }
@media (max-width: 960px) { .pf-names { padding-top: 0; flex-basis: 100%; } .pf-share { margin: 0; } }

/* Cover tools: top-right and always visible for the owner (the identity row overlaps the bottom edge of the cover) */
.pf-cover-tools { top: 16px; bottom: auto; right: 16px; opacity: 1; transform: none; z-index: 3; }
.pf-cover-tools .pf-chip { box-shadow: 0 6px 20px rgba(0,0,0,0.25); }

/* =====================================================================
   Footer in the normal flow (never overlaps content), and the mobile layout
   ===================================================================== */
.footer { position: static; left: auto; right: auto; bottom: auto; padding: 18px 40px 22px; }
.stage { min-height: calc(100vh - 58px); }

@media (max-width: 960px) {
  /* ---- bottom navigation: equal tabs with icon and label ---- */
  body { padding-left: 0; padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .sidebar {
    top: auto; bottom: 0; left: 0; right: 0; width: auto; height: auto;
    flex-direction: row; align-items: stretch; justify-content: space-around; gap: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(14px);
    box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.08), 0 -8px 24px rgba(0, 0, 0, 0.12);
  }
  .sidebar-logo { display: none; }
  .sidebar-nav, .sidebar-footer { display: contents; }
  .sidebar-item, .sidebar-profile {
    flex: 1 1 0; min-width: 0; height: 54px; margin: 0; padding: 4px 2px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    border-radius: 14px; background: none; font-size: 11px; font-weight: 600; line-height: 1.1; white-space: nowrap;
  }
  .sidebar-item .icon { width: 32px; height: 28px; border-radius: 10px; }
  .sidebar-item svg { width: 20px; height: 20px; }
  .sidebar-item[aria-pressed="true"] .icon, .sidebar-item[aria-current="page"] .icon { transform: none; }
  .sidebar-profile { transform: none !important; color: var(--grey-700); }
  .sidebar-profile:hover { background: none; }
  .sidebar-profile svg { width: 22px; height: 22px; padding: 3px; box-sizing: content-box; border-radius: 10px; background: var(--grey-50); }
  .sidebar-profile .avatar, .sidebar-profile img.avatar { width: 30px; height: 30px; border-radius: 9px; font-size: 11px; }

  /* ---- top bar ---- */
  .topbar { top: 10px; right: 10px; gap: 6px; }
  .pill-bar { padding: 4px; border-radius: 12px; font-size: 13px; }
  .pill-bar a, .pill-bar button { padding: 7px 10px; border-radius: 9px; }
  .pill-bar .who { padding: 3px 6px; max-width: 46vw; }
  .pill-bar .who span span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lang-switch { width: 38px; height: 38px; border-radius: 12px; font-size: 12px; }
  .product-name { top: 12px; left: 16px; height: 38px; font-size: 24px; }

  /* ---- stage: the card comes first, the message follows in a compact form ---- */
  .stage { grid-template-columns: 1fr; gap: 22px; padding: 70px 14px 28px; min-height: 0; }
  .card-area { order: 0; max-width: 560px; margin: 0 auto; }
  .card { padding: 20px; min-height: 0; border-radius: 18px; }
  .hero { order: 1; padding: 0 4px; max-width: 560px; margin: 0 auto; width: 100%; }
  .hero .eyebrow { font-size: 11px; margin-bottom: 12px; }
  .hero h1 { font-size: clamp(30px, 8.5vw, 42px); margin-bottom: 12px; }
  .hero p { font-size: 15px; margin-bottom: 18px; }
  .hero .facts { gap: 12px 22px; }
  .hero .fact strong { font-size: 20px; }
  .hero .fact span { font-size: 12px; }
  .add-zone { gap: 14px; padding: 4px 2px 16px; }
  .plus { width: 54px; height: 54px; }
  .field input, .field textarea { font-size: 16px; } /* 16px stops iOS from zooming into inputs */
  .linkbox input { font-size: 16px; }
  .btn { padding: 15px 20px; }
  .download-toast { top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); position: fixed; }

  /* ---- side panel and dialogs ---- */
  .panel { width: 100vw; }
  .panel-header { padding: 16px 18px; }
  .panel-body { padding: 18px 18px calc(28px + env(safe-area-inset-bottom)); }
  .tabs button { font-size: 12px; padding: 9px 2px; }
  .modal { padding: 12px; align-items: end; }
  .modal .box { padding: 22px; border-radius: 20px; }
  .modal .actions { flex-direction: column-reverse; }
  .crop-modal { align-items: center; }

  /* ---- footer ---- */
  .footer { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 16px 22px; }
  .footer > span:last-child { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; }
  .footer a, .footer-lang { margin: 0; }
  .footer-static { padding: 18px 16px 22px; }

  /* ---- other pages ---- */
  .pricing { padding: 84px 14px 40px; }
  .pricing .head { margin-bottom: 32px; }
  .pricing .head p { font-size: 15px; }
  .plan-card { padding: 22px; }
  .content-page { padding: 84px 18px 40px; }
  .portfolio-page { padding: 70px 12px 32px; }
  .pf-cover-tools { top: 10px; right: 10px; gap: 6px; }
  .pf-cover-tools .pf-chip { padding: 7px 11px; font-size: 12px; }
  .site-notice { padding: 9px 14px; font-size: 13px; }
}

@media (max-width: 380px) {
  .pill-bar a, .pill-bar button { padding: 7px 8px; }
  .sidebar-item, .sidebar-profile { font-size: 10px; }
}

/* Account tab label: only in the mobile bottom bar */
.sidebar-profile .sidebar-label { display: none; }
@media (max-width: 960px) { .sidebar-profile .sidebar-label { display: block; } }
.field input.locked { background: var(--grey-50); color: var(--grey-500); cursor: not-allowed; }

/* Language switch at the bottom of the sidebar, directly above the profile (which always stays last) */
.sidebar-footer { width: 100%; padding: 0 8px; gap: 8px; }
.sidebar-lang { width: 100%; }
.sidebar-lang .icon svg { width: 20px; height: 20px; }
.sidebar-profile { flex: none; }
@media (max-width: 960px) { .sidebar-footer { width: auto; padding: 0; } .sidebar-lang { width: auto; } .sidebar-profile { flex: 1 1 0; } }

/* =====================================================================
   v1.0.3
   ===================================================================== */

/* ---- Hero on the right: the promo photos darken towards the right edge ---- */
.hero { justify-self: center; text-align: center; padding: 0 2vw; }
.hero .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--lime); }
.hero p { margin-left: auto; margin-right: auto; }
.hero .facts { justify-content: center; }

/* ---- Footer on top of the background (home, transfer and request pages) ---- */
.stage { min-height: 100vh; padding-bottom: 64px; }
.footer.footer-overlay {
  position: absolute; left: 40px; right: 40px; bottom: 18px; z-index: 3; padding: 0; background: none;
  color: rgba(255, 255, 255, 0.72); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}
.footer-overlay a { margin-left: 18px; }
.stage.customer-page .footer-overlay { display: none; }

/* ---- Wider account panel ---- */
.panel { width: min(100vw, clamp(720px, 54vw, 1040px)); }

/* ---- Sidebar: "coming soon" item (Canvas) ---- */
.sidebar-soon { color: var(--grey-500); }
.sidebar-soon .icon { position: relative; }
.soon-badge {
  position: absolute; top: -2px; right: -3px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--black); color: var(--lime); display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--white); transition: transform 0.2s ease;
}
.soon-badge svg { width: 9px !important; height: 9px !important; }
.sidebar-soon:hover .soon-badge { transform: rotate(180deg); }
.soon-bubble {
  position: fixed; z-index: 80; display: grid; gap: 2px; padding: 10px 14px; border-radius: 14px; min-width: 180px;
  background: var(--black); color: var(--white); font-size: 13px; box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  opacity: 0; transform: translate(-6px, -50%) scale(0.96); pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.22, 0.8, 0.24, 1);
}
.soon-bubble strong { color: var(--lime); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.soon-bubble.show { opacity: 1; transform: translate(0, -50%) scale(1); }
.soon-bubble.mobile { transform: translateY(6px) scale(0.96); }
.soon-bubble.mobile.show { transform: none; }

/* ---- Selects with the site's look (no system arrows) ---- */
select.select, .field select {
  width: 100%; appearance: none; -webkit-appearance: none; border: 1px solid var(--grey-300); border-radius: var(--radius-ctl);
  padding: 12px 38px 12px 14px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; outline: none;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select.select:focus, .field select:focus { border-color: var(--black); box-shadow: 0 0 0 3px rgba(204, 255, 0, 0.5); }

/* ---- Upload options: expands smoothly ---- */
.options { margin-top: 16px; border: 1px solid var(--grey-100); border-radius: var(--radius-ctl); background: var(--grey-50); transition: background 0.2s, border-color 0.2s; }
.options.open { background: var(--white); border-color: var(--grey-300); }
.options-toggle {
  width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer;
  padding: 12px 14px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); text-align: left;
}
.options-toggle svg { width: 18px; height: 18px; flex: none; }
.options-summary { flex: 1; text-align: right; font-weight: 500; color: var(--grey-500); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.options-toggle .chevron { transition: transform 0.3s ease; color: var(--grey-500); }
.options.open .options-toggle .chevron { transform: rotate(180deg); }
.options-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.34s cubic-bezier(0.22, 0.8, 0.24, 1); }
.options.open .options-panel { grid-template-rows: 1fr; }
.options-inner { overflow: hidden; min-height: 0; }
.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: 0 14px 14px; opacity: 0; transform: translateY(-4px); transition: opacity 0.25s ease, transform 0.25s ease; }
.options.open .options-grid { opacity: 1; transform: none; transition-delay: 0.06s; }
.options-grid .field { margin-top: 10px; }
.options-grid .field.full { grid-column: 1 / -1; }
.password-row { position: relative; }
.password-row input { padding-right: 46px; }
.password-row .reveal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--grey-500); cursor: pointer; display: grid; place-items: center; }
.password-row .reveal:hover, .password-row .reveal.on { color: var(--ink); background: var(--grey-50); }
.password-row .reveal svg { width: 18px; height: 18px; }

.file-list .folder { color: var(--grey-500); font-weight: 400; }

/* ---- Resume card ---- */
.resume-card {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; margin: -4px 0 16px; padding: 14px;
  border-radius: var(--radius-ctl); background: linear-gradient(135deg, rgba(204, 255, 0, 0.28), rgba(204, 255, 0, 0.1)); border: 1px solid rgba(168, 212, 0, 0.5);
  opacity: 0; transform: translateY(-6px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.resume-card.visible { opacity: 1; transform: none; }
.resume-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--black); color: var(--lime); display: grid; place-items: center; }
.resume-icon svg { width: 20px; height: 20px; }
.resume-text strong { display: block; font-size: 14px; }
.resume-text span { font-size: 13px; color: var(--grey-700); }
.resume-actions { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.small-button.dark { background: var(--black); color: var(--white); border-color: var(--black); }
.small-button.dark:hover { background: var(--lime); color: var(--black); border-color: var(--lime); }
.small-button.danger-solid { background: var(--danger); color: #fff; border-color: var(--danger); margin-top: 12px; }
.small-button.danger-solid:disabled { opacity: 0.4; cursor: not-allowed; }
a.small-button { display: inline-block; text-decoration: none; color: var(--ink); }
#view-error .btn + .btn { margin-top: 10px; }
#view-error .btn { min-width: 220px; }

/* ---- Recipient page: stalled upload, password, limits, folders, report ---- */
.stall-note {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 0 0 12px; border-radius: var(--radius-ctl);
  background: #fff6db; color: #6b4e00; border: 1px solid #ffe08a; opacity: 0; transform: translateY(-4px); transition: opacity 0.3s ease, transform 0.3s ease;
}
.stall-note.visible { opacity: 1; transform: none; }
.stall-note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.stall-note strong { display: block; font-size: 14px; }
.stall-note span { font-size: 13px; }
.lock-form { display: flex; flex-direction: column; justify-content: center; flex: 1; text-align: center; padding: 30px 6px; }
.lock-form .field { text-align: left; }
.lock-form h2 { margin: 14px 0 6px; letter-spacing: -0.02em; }
.lock-form p { margin: 0 0 6px; color: var(--grey-500); font-size: 14px; }
.lock-icon, .state-icon { width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; background: var(--lime); color: var(--black); display: grid; place-items: center; }
.state-icon { background: var(--grey-50); color: var(--grey-700); margin-bottom: 14px; }
.lock-icon svg, .state-icon svg { width: 30px; height: 30px; }
.lock-form.shake { animation: shake 0.4s ease; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.dl-list .folder-row { display: flex; align-items: center; gap: 8px; grid-template-columns: none; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--grey-700); background: var(--grey-50); padding: 7px 8px; }
.dl-list .folder-row svg { width: 15px; height: 15px; }
.dl-list li.in-folder .name { padding-left: 14px; }
.report-link { align-self: center; margin-top: 14px; border: 0; background: none; color: var(--grey-500); font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.report-link:hover:not(:disabled) { color: var(--danger); }
.report-link:disabled { text-decoration: none; cursor: default; color: var(--success); }
.modal .field select, .modal .field textarea { width: 100%; }
.modal .box { max-height: calc(100vh - 40px); overflow: auto; }

/* ---- Account: security tab ---- */
.settings-section.first { border-top: 0; margin-top: 0; padding-top: 0; }
.settings-section h3 { margin: 0 0 4px; font-size: 15px; }
.settings-section > p { margin: 0 0 12px; font-size: 13px; color: var(--grey-500); }
.session-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.session-list li { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--grey-100); border-radius: var(--radius-ctl); transition: opacity 0.25s, transform 0.25s; }
.session-list li.current { border-color: rgba(168, 212, 0, 0.7); background: rgba(204, 255, 0, 0.08); }
.session-list li.leaving { opacity: 0; transform: translateX(12px); }
.session-list li > div { flex: 1; min-width: 0; }
.session-list strong { display: block; font-size: 14px; }
.session-list small { font-size: 12px; color: var(--grey-500); }
.session-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--grey-50); display: grid; place-items: center; flex: none; }
.session-icon svg { width: 20px; height: 20px; }
/* Danger zone: closed by default, a calm warm tone rather than alarm red */
.danger-zone { margin-top: 18px; border: 1px solid #f1ddd6; border-radius: var(--radius-ctl); background: #fdf8f6; transition: background 0.2s, border-color 0.2s; }
.danger-zone.open { background: #fff; border-color: #e8c9bf; }
.danger-toggle { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: none; cursor: pointer; padding: 13px 14px; font: inherit; text-align: left; color: #8a4b3a; }
.danger-toggle > svg:first-child { width: 18px; height: 18px; flex: none; }
.danger-toggle span { flex: 1; display: grid; }
.danger-toggle strong { font-size: 14px; }
.danger-toggle small { font-size: 12px; color: #a87d70; }
.danger-toggle .chevron { width: 18px; height: 18px; transition: transform 0.3s ease; }
.danger-zone.open .danger-toggle .chevron { transform: rotate(180deg); }
.danger-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.34s cubic-bezier(0.22, 0.8, 0.24, 1); }
.danger-zone.open .danger-panel { grid-template-rows: 1fr; }
.danger-inner { overflow: hidden; min-height: 0; padding: 0 14px; opacity: 0; transition: opacity 0.25s ease, padding 0.34s ease; }
.danger-zone.open .danger-inner { opacity: 1; padding-bottom: 14px; transition-delay: 0.05s; }
.danger-inner h3 { margin: 4px 0 4px; font-size: 14px; color: #8a4b3a; }
.danger-inner > p { margin: 0 0 6px; font-size: 13px; color: var(--grey-500); }
.danger-inner .small-button.danger-solid { background: #c6533b; border-color: #c6533b; }
.badge-pill.icon { background: none; padding: 0 2px; }

/* ---- Branding: backgrounds uploading (card appears at once, with the percentage) ---- */
.bg-pending { animation: fade-up 0.3s ease both; }
.bg-pending img, .bg-pending video { filter: brightness(0.55) saturate(0.8); transition: filter 0.4s ease; }
.bg-progress { position: absolute; inset: 0; display: grid; place-items: center; }
.bg-progress svg { width: 54px; height: 54px; transform: rotate(-90deg); }
.bg-progress circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.bg-progress .track { stroke: rgba(255, 255, 255, 0.25); }
.bg-progress .fill { stroke: var(--lime); stroke-dasharray: 119.38; transition: stroke-dashoffset 0.3s ease; }
.bg-progress-label { position: absolute; color: #fff; font-size: 12px; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); font-variant-numeric: tabular-nums; }

/* ---- Banners ---- */
.site-notice.view-as { background: var(--black); color: var(--white); }
.notice-action { margin-left: 10px; border: 0; border-radius: 999px; padding: 4px 12px; background: var(--lime); color: var(--black); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }

/* ---- Portfolio: bio, links, statistics ---- */
.pf-about { margin: 18px 28px 0; max-width: 760px; display: grid; gap: 12px; justify-items: start; animation: fade-up 0.3s ease both; }
.pf-about.empty .pf-bio, .pf-about.empty .pf-links { display: none; }
.pf-bio { margin: 0; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.82); white-space: pre-line; }
.pf-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-links:empty { display: none; }
.pf-link {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 999px; text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 13px; font-weight: 500; max-width: 280px;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.pf-link:hover { background: rgba(204, 255, 0, 0.14); border-color: rgba(204, 255, 0, 0.5); transform: translateY(-1px); }
.pf-link svg { width: 17px; height: 17px; flex: none; color: var(--lime); }
.pf-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-profile-form { margin: 18px 28px 0; max-width: 760px; padding: 18px; border-radius: 18px; background: #141414; border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0; transform: translateY(-6px); transition: opacity 0.25s ease, transform 0.25s ease; }
.pf-profile-form.visible { opacity: 1; transform: none; }
.pf-profile-form .field { margin-top: 0; margin-bottom: 14px; }
.pf-profile-form label { color: rgba(255, 255, 255, 0.6); }
.pf-profile-form textarea, .pf-profile-form input, .pf-profile-form select.select {
  background-color: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #fff;
}
.pf-profile-form select.select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.pf-profile-form select option { color: #111; }
.pf-profile-form .field-help { color: rgba(255, 255, 255, 0.45); text-align: right; }
.pf-link-rows { display: grid; gap: 8px; margin-bottom: 10px; }
.pf-link-row { display: grid; grid-template-columns: 150px 1fr 34px; gap: 8px; align-items: center; animation: fade-up 0.2s ease both; }
.pf-link-row input { width: 100%; border: 1px solid; border-radius: var(--radius-ctl); padding: 11px 12px; font: inherit; font-size: 14px; outline: none; }
.pf-link-row input:focus, .pf-profile-form textarea:focus { border-color: var(--lime); box-shadow: none; }
.pf-form-actions { display: flex; gap: 8px; }
.pf-stats { margin-top: 44px; padding: 22px; border-radius: 22px; background: #121212; border: 1px solid rgba(255, 255, 255, 0.08); animation: fade-up 0.35s ease both; }
.pf-stats header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pf-stats h2 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.pf-segment { display: inline-flex; gap: 3px; padding: 3px; border-radius: 11px; background: rgba(255, 255, 255, 0.06); }
.pf-segment button { border: 0; background: none; color: rgba(255, 255, 255, 0.6); font: inherit; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 8px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.pf-segment button[aria-pressed="true"] { background: var(--lime); color: var(--black); }
.pf-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.pf-kpis div { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.pf-kpis strong { display: block; font-size: 26px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pf-kpis span { font-size: 12px; color: rgba(255, 255, 255, 0.5); }
.pf-chart { width: 100%; min-height: 140px; }
.pf-chart svg { display: block; }
.pf-chart .area { fill: rgba(204, 255, 0, 0.12); }
.pf-chart .line { fill: none; stroke: var(--lime); stroke-width: 2; stroke-linejoin: round; }
.pf-chart .line.alt { stroke: rgba(255, 255, 255, 0.45); stroke-dasharray: 4 4; }
.pf-chart text { fill: rgba(255, 255, 255, 0.4); font-size: 11px; font-family: var(--font); }
.pf-chart .hit { fill: transparent; }
.pf-chart .hit:hover { fill: rgba(204, 255, 0, 0.35); }
.pf-stat-lists { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 12px; }
.pf-stat-lists h3 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.5); }
.pf-stat-lists ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.pf-stat-lists li { display: flex; justify-content: space-between; gap: 8px; }
.pf-stat-lists li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, 0.8); }
.pf-stat-lists li.muted { color: rgba(255, 255, 255, 0.4); }


@media (max-width: 960px) {
  .hero { justify-self: stretch; text-align: left; padding: 0 4px; }
  .hero .eyebrow::after { display: none; }
  .hero p { margin-left: 0; }
  .hero .facts { justify-content: flex-start; }
  .stage { min-height: 0; padding-bottom: 86px; }
  .footer.footer-overlay { left: 16px; right: 16px; bottom: 18px; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
  .footer-overlay > span:last-child { display: flex; gap: 16px; }
  .footer-overlay a { margin: 0; }
  .options-grid { grid-template-columns: 1fr; }
  .pf-about, .pf-profile-form { margin-left: 12px; margin-right: 12px; }
  .pf-link-row { grid-template-columns: 1fr 34px; }
  .pf-link-row select { grid-column: 1 / -1; }
  .pf-stats { padding: 16px; }
  .pf-kpis strong { font-size: 20px; }
  .pf-stat-lists { grid-template-columns: 1fr 1fr; }
  .soon-badge { top: -4px; right: -1px; }
}
