/* ==========================================================================
   极存云盘 · Jicun Cloud Drive
   Cloudflare Workers + R2 + D1
   ========================================================================== */

:root {
  --brand: #1d4ed8;
  --brand-strong: #143fbe;
  --brand-soft: #eaf0ff;
  --accent: #06b6d4;
  --accent-soft: #e6fbff;
  --ink: #0b1b33;
  --ink-2: #1e2f4a;
  --muted: #667892;
  --muted-2: #91a0b4;
  --line: #e5ebf3;
  --line-strong: #d7e0ec;
  --bg: #f4f7fb;
  --card: #ffffff;
  --success: #0f9f6e;
  --success-soft: #e8faf2;
  --warning: #d97706;
  --warning-soft: #fff7e6;
  --danger: #dc2626;
  --danger-soft: #fef0f0;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow-sm: 0 1px 2px rgba(15, 35, 65, .04), 0 4px 14px rgba(15, 35, 65, .04);
  --shadow: 0 12px 40px rgba(15, 35, 65, .08);
  --shadow-lg: 0 30px 80px rgba(15, 35, 65, .14);
  --font: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --header-h: 72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(29, 78, 216, .18); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #c9d5e4; border-radius: 20px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { display: inline-block; vertical-align: middle; flex: none; }

/* ------------------------------ Boot ------------------------------ */
.boot-screen {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background:
    radial-gradient(700px 500px at 50% -10%, #e4edff 0, transparent 65%),
    var(--bg);
}
.boot-name { font-size: 24px; font-weight: 800; letter-spacing: .06em; }
.boot-logo { animation: bootPulse 1.8s ease-in-out infinite; }
.boot-loader { display: flex; gap: 6px; }
.boot-loader i { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: bootDot 1s infinite ease-in-out; }
.boot-loader i:nth-child(2) { animation-delay: .15s; }
.boot-loader i:nth-child(3) { animation-delay: .3s; }
@keyframes bootPulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes bootDot { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }

/* ------------------------------ Brand ------------------------------ */
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-grid; place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--brand) 0%, #2563eb 48%, var(--accent) 120%);
  box-shadow: 0 8px 20px rgba(29, 78, 216, .28), inset 0 1px 0 rgba(255,255,255,.28);
  flex: none;
}
.brand-mark svg { width: 27px; height: 27px; }
.brand-mark-lg { width: 58px; height: 58px; border-radius: 17px; }
.brand-mark-lg svg { width: 39px; height: 39px; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; border-radius: 12px; flex: none; }
.brand-logo.brand-mark-lg { width: 58px; height: 58px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-copy strong { font-size: 18px; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.brand-copy small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.brand-copy strong + small { margin-top: 3px; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
  --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 18px;
  border: 1px solid var(--btn-line);
  border-radius: 11px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 14px; font-weight: 650; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease, color .16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(15, 35, 65, .1); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary {
  --btn-bg: linear-gradient(135deg, var(--brand), #2563eb 62%, #2f7cf6);
  --btn-fg: #fff; --btn-line: transparent;
  box-shadow: 0 8px 22px rgba(29, 78, 216, .26), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(29, 78, 216, .32); }
.btn-dark { --btn-bg: var(--ink); --btn-fg: #fff; --btn-line: var(--ink); }
.btn-ghost { --btn-bg: transparent; --btn-line: transparent; color: var(--muted); }
.btn-ghost:hover { --btn-bg: #f1f5fb; color: var(--ink); box-shadow: none; }
.btn-soft { --btn-bg: var(--brand-soft); --btn-fg: var(--brand); --btn-line: transparent; }
.btn-danger { --btn-bg: var(--danger); --btn-fg: #fff; --btn-line: var(--danger); }
.btn-danger-soft { --btn-bg: var(--danger-soft); --btn-fg: var(--danger); --btn-line: transparent; }
.btn-success-soft { --btn-bg: var(--success-soft); --btn-fg: var(--success); --btn-line: transparent; }
.btn-lg { min-height: 52px; padding: 0 26px; border-radius: 13px; font-size: 15px; }
.btn-sm { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-grid; place-items: center;
  border: 1px solid transparent; background: transparent; color: var(--muted);
  transition: background .16s, color .16s, border-color .16s;
}
.icon-btn:hover { background: #f1f5fb; color: var(--ink); }
.icon-btn.active { background: var(--brand-soft); color: var(--brand); }
.link-btn { border: 0; background: none; color: var(--brand); padding: 0; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }
.btn .spinner { width: 15px; height: 15px; border-color: rgba(255,255,255,.4); border-top-color: #fff; }

/* ------------------------------ Forms ------------------------------ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span, .field-label { font-size: 13px; font-weight: 650; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; }
.field .hint { font-size: 12px; color: var(--muted-2); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; min-height: 44px; padding: 10px 13px;
  border: 1px solid var(--line-strong); border-radius: 11px;
  background: #fff; outline: none; font-size: 14px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
.input::placeholder, .textarea::placeholder { color: #a6b4c6; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .11);
}
.input:disabled { background: #f6f8fc; color: var(--muted); }
.textarea { min-height: 100px; resize: vertical; line-height: 1.65; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23667892' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.input-group { position: relative; }
.input-group .input { padding-right: 44px; }
.input-group .input-action { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; }
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error {
  display: none; padding: 10px 12px; border-radius: 10px;
  background: var(--danger-soft); color: var(--danger); font-size: 13px;
  border: 1px solid #fbd5d5;
}
.form-error.is-visible { display: block; }
.form-note { font-size: 12px; color: var(--muted); }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.check-row input { accent-color: var(--brand); width: 16px; height: 16px; }
.switch { position: relative; width: 44px; height: 26px; display: inline-flex; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #dce4ee; border-radius: 30px; transition: .2s; }
.switch i::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: #fff; left: 3px; top: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.15); transition: .2s; }
.switch input:checked + i { background: var(--brand); }
.switch input:checked + i::after { transform: translateX(18px); }
.input-suffix { position: relative; }
.input-suffix .suffix { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 12px; }

/* ------------------------------ Landing ------------------------------ */
.landing { overflow: hidden; background: #fff; }
.landing-bg {
  position: absolute; inset: 0 0 auto; height: 880px; pointer-events: none;
  background:
    radial-gradient(900px 540px at 8% -10%, rgba(29,78,216,.14), transparent 62%),
    radial-gradient(760px 520px at 92% 4%, rgba(6,182,212,.13), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, rgba(255,255,255,0) 100%);
}
.landing-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(29,78,216,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(29,78,216,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 12%, #000 15%, transparent 72%);
}
.site-header {
  position: relative; z-index: 20; max-width: 1220px; margin: 0 auto;
  height: var(--header-h); padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { padding: 9px 14px; border-radius: 9px; color: #4a5c74; font-size: 14px; font-weight: 550; transition: .15s; }
.site-nav a:hover { color: var(--ink); background: rgba(29,78,216,.06); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-user { display: flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border-radius: 30px; border: 1px solid var(--line); background: #fff; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center;
  background: linear-gradient(135deg, #dbeafe, #cffafe); color: var(--brand);
  font-weight: 800; font-size: 14px; flex: none; border: 1px solid rgba(29,78,216,.1);
}
.avatar.lg { width: 46px; height: 46px; font-size: 18px; }

.hero { position: relative; z-index: 1; max-width: 1220px; margin: 0 auto; padding: 58px 28px 38px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 30px; background: #fff; border: 1px solid #dce7f7; box-shadow: var(--shadow-sm); color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(15,159,110,.12); }
.hero h1 { margin: 22px 0 18px; font-size: clamp(38px, 4.6vw, 62px); line-height: 1.12; letter-spacing: -.035em; font-weight: 850; color: #07162c; }
.hero h1 .grad { color: transparent; background: linear-gradient(100deg, var(--brand) 5%, #2582f3 48%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; }
.hero-sub { font-size: 16px; color: #5a6b82; max-width: 520px; line-height: 1.8; }
.hero-actions { display: flex; align-items: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-actions .btn-primary { min-width: 158px; }
.trust-row { display: flex; align-items: center; gap: 22px; margin-top: 30px; color: #73839a; font-size: 12px; flex-wrap: wrap; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row .icon { color: #16a374; }

.hero-visual { position: relative; min-height: 470px; display: flex; align-items: center; justify-content: center; }
.hero-glow { position: absolute; width: 430px; height: 430px; border-radius: 50%; background: conic-gradient(from 120deg, rgba(29,78,216,.22), rgba(6,182,212,.18), rgba(29,78,216,.08), rgba(29,78,216,.22)); filter: blur(38px); opacity: .75; }
.mock-window {
  position: relative; width: min(100%, 490px); border-radius: 22px; background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.9); box-shadow: 0 35px 90px rgba(20, 50, 100, .18), 0 1px 0 #fff inset;
  backdrop-filter: blur(12px); overflow: hidden; transform: rotate(-1.4deg);
}
.mock-top { height: 47px; display: flex; align-items: center; gap: 6px; padding: 0 16px; border-bottom: 1px solid #eef2f8; background: rgba(250,252,255,.8); }
.mock-dots { display: flex; gap: 5px; }
.mock-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d8e1ee; }
.mock-dots i:nth-child(1) { background: #ff9b9b; }
.mock-dots i:nth-child(2) { background: #ffd27a; }
.mock-dots i:nth-child(3) { background: #86dfb1; }
.mock-title { margin-left: 10px; font-size: 11px; color: #8797ac; letter-spacing: .02em; }
.mock-body { display: grid; grid-template-columns: 132px 1fr; min-height: 330px; }
.mock-side { padding: 16px 12px; border-right: 1px solid #eef2f8; background: #fbfdff; }
.mock-logo { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; margin-bottom: 18px; }
.mock-logo .brand-mark { width: 24px; height: 24px; border-radius: 7px; box-shadow: none; }
.mock-logo .brand-mark svg { width: 16px; height: 16px; }
.mock-nav { display: flex; flex-direction: column; gap: 4px; }
.mock-nav span { height: 27px; border-radius: 7px; display: flex; align-items: center; gap: 7px; padding: 0 8px; font-size: 9px; color: #8191a7; }
.mock-nav span::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: #d7e1ef; }
.mock-nav span.on { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.mock-nav span.on::before { background: var(--brand); }
.mock-main { padding: 18px; }
.mock-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mock-heading strong { font-size: 13px; }
.mock-heading span { font-size: 9px; color: #fff; background: var(--brand); padding: 5px 9px; border-radius: 6px; }
.mock-storage { padding: 11px; border-radius: 10px; background: linear-gradient(135deg,#f0f5ff,#f3fdff); margin-bottom: 12px; }
.mock-storage b { font-size: 9px; color: #4d6180; }
.mock-progress { height: 5px; border-radius: 10px; background: #dfe8f5; margin-top: 7px; overflow: hidden; }
.mock-progress i { display: block; height: 100%; width: 64%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.mock-files { display: flex; flex-direction: column; gap: 6px; }
.mock-file { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; border: 1px solid #f0f4fa; background: #fff; }
.mock-file .mini { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 9px; font-weight: 800; }
.mock-file:nth-child(1) .mini { background: #e8f0ff; color: #2563eb; }
.mock-file:nth-child(2) .mini { background: #fff1e8; color: #ea580c; }
.mock-file:nth-child(3) .mini { background: #e8fbf1; color: #059669; }
.mock-file:nth-child(4) .mini { background: #f3eaff; color: #7c3aed; }
.mock-file div { flex: 1; }
.mock-file b { display: block; font-size: 9px; color: #3b4d66; font-weight: 650; }
.mock-file small { font-size: 7px; color: #98a7ba; }
.float-card {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.96); border: 1px solid #e7eef8; border-radius: 14px;
  box-shadow: 0 18px 44px rgba(20,50,100,.14); padding: 10px 14px; backdrop-filter: blur(10px);
}
.float-card b { display: block; font-size: 12px; }
.float-card small { font-size: 10px; color: var(--muted); }
.float-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--success-soft); color: var(--success); }
.float-card.one { left: -26px; top: 70px; animation: floatY 6s ease-in-out infinite; }
.float-card.two { right: -30px; bottom: 72px; animation: floatY 7s ease-in-out infinite reverse; }
.float-card.two .float-icon { background: var(--brand-soft); color: var(--brand); }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.stat-strip { position: relative; z-index: 2; max-width: 1164px; margin: 24px auto 0; padding: 24px 30px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat-item { display: flex; align-items: center; gap: 13px; padding: 2px 8px; }
.stat-item + .stat-item { border-left: 1px solid var(--line); padding-left: 26px; }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.stat-item:nth-child(2) .stat-icon { background: var(--accent-soft); color: #0891b2; }
.stat-item:nth-child(3) .stat-icon { background: var(--success-soft); color: var(--success); }
.stat-item:nth-child(4) .stat-icon { background: #fff6e8; color: #d97706; }
.stat-item b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.stat-item small { color: var(--muted); font-size: 12px; }

.section { position: relative; max-width: 1164px; margin: 0 auto; padding: 100px 28px; }
.section-head { max-width: 670px; margin-bottom: 48px; }
.section-tag { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 12px; }
.section-tag::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.section h2 { font-size: clamp(28px, 3.3vw, 42px); letter-spacing: -.03em; line-height: 1.25; font-weight: 820; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 15px; line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.feature-card { position: relative; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: #fff; transition: .22s ease; overflow: hidden; }
.feature-card::after { content: ""; position: absolute; width: 140px; height: 140px; right: -60px; top: -60px; border-radius: 50%; background: radial-gradient(circle, rgba(29,78,216,.08), transparent 70%); opacity: 0; transition: .22s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #d6e3f5; }
.feature-card:hover::after { opacity: 1; }
.feature-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.feature-card:nth-child(2) .feature-ico { background: var(--accent-soft); color: #0891b2; }
.feature-card:nth-child(3) .feature-ico { background: var(--success-soft); color: var(--success); }
.feature-card:nth-child(4) .feature-ico { background: #fff4e5; color: #d97706; }
.feature-card:nth-child(5) .feature-ico { background: #f3ecff; color: #7c3aed; }
.feature-card:nth-child(6) .feature-ico { background: #ffeff2; color: #db2777; }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; font-weight: 750; }
.feature-card p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.feature-card .mini-tags { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.mini-tag { font-size: 10px; font-weight: 650; padding: 4px 8px; border-radius: 6px; background: #f4f7fc; color: #64748b; }

.security-section { background: #08172e; color: #fff; overflow: hidden; }
.security-section::before { content: ""; position: absolute; width: 600px; height: 600px; right: -180px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(6,182,212,.22), transparent 62%); }
.security-section::after { content: ""; position: absolute; width: 520px; height: 520px; left: -180px; bottom: -250px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,.22), transparent 62%); }
.security-inner { position: relative; z-index: 1; max-width: 1164px; margin: 0 auto; padding: 92px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.security-section .section-tag { color: #5eead4; }
.security-section .section-tag::before { background: #5eead4; }
.security-section h2 { color: #fff; }
.security-section p { color: #9fb2cc; }
.security-list { display: flex; flex-direction: column; gap: 14px; margin-top: 30px; }
.security-item { display: flex; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.035); }
.security-item .sic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(94,234,212,.11); color: #5eead4; flex: none; }
.security-item b { font-size: 14px; display: block; margin-bottom: 3px; }
.security-item span { color: #93a7c2; font-size: 12px; line-height: 1.6; }
.security-visual { position: relative; display: grid; place-items: center; }
.shield-card { width: min(100%, 400px); border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.03)); border: 1px solid rgba(255,255,255,.13); padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.32); backdrop-filter: blur(12px); }
.shield-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.shield-top b { font-size: 13px; color: #cfe1f7; }
.shield-status { font-size: 10px; color: #5eead4; background: rgba(94,234,212,.1); border: 1px solid rgba(94,234,212,.2); padding: 4px 9px; border-radius: 20px; }
.shield-icon { width: 120px; height: 120px; margin: 30px auto 22px; border-radius: 50%; display: grid; place-items: center; color: #5eead4; background: radial-gradient(circle, rgba(94,234,212,.16), rgba(94,234,212,.03) 65%, transparent 70%); border: 1px solid rgba(94,234,212,.22); box-shadow: 0 0 60px rgba(94,234,212,.12); }
.shield-icon svg { width: 56px; height: 56px; }
.shield-rows { display: flex; flex-direction: column; gap: 9px; }
.shield-row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #8fa5c1; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.035); }
.shield-row b { color: #dbe8f8; font-weight: 600; }
.shield-row .ok { color: #5eead4; }

.share-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.link-demo { position: relative; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(150deg, #f8fbff, #eef6ff); padding: 44px 24px; display: grid; place-items: center; overflow: hidden; }
.link-demo::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(6,182,212,.15), transparent 65%); top: -120px; right: -80px; }
.link-card { position: relative; z-index: 1; width: min(100%, 380px); background: #fff; border: 1px solid #e6edf7; border-radius: 18px; box-shadow: 0 20px 50px rgba(20,50,100,.12); padding: 22px; }
.link-card-head { display: flex; align-items: center; gap: 11px; padding-bottom: 16px; border-bottom: 1px dashed #e7edf6; }
.link-card-head b { font-size: 13px; display: block; }
.link-card-head small { color: var(--muted-2); font-size: 10px; }
.link-input { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 11px; border-radius: 10px; background: #f5f8fd; border: 1px solid #e7edf6; font-family: var(--mono); font-size: 10px; color: #52647d; }
.link-input span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-meta { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 20px; background: #f1f5fb; color: #5b6c84; font-size: 10px; font-weight: 600; }
.pill.green { background: var(--success-soft); color: var(--success); }
.pill.blue { background: var(--brand-soft); color: var(--brand); }
.pill.orange { background: var(--warning-soft); color: var(--warning); }
.pill.red { background: var(--danger-soft); color: var(--danger); }
.check-list { display: grid; gap: 13px; margin-top: 26px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; color: #51627a; font-size: 13px; }
.check-list .check-dot { width: 21px; height: 21px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; flex: none; margin-top: 1px; }

.cta-band { max-width: 1164px; margin: 0 auto 90px; border-radius: 26px; padding: 50px; background: linear-gradient(120deg, #0d2a5e, #1548a8 55%, #0e7490 120%); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; position: relative; }
.cta-band::after { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; right: -80px; top: -220px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.cta-band h2 { font-size: 32px; letter-spacing: -.02em; margin-bottom: 9px; }
.cta-band p { color: #b6cbe8; font-size: 14px; }
.cta-band .btn { position: relative; z-index: 1; background: #fff; color: var(--ink); border-color: #fff; min-width: 150px; }
.site-footer { background: #08172e; color: #8199b8; padding: 48px 28px 30px; }
.footer-inner { max-width: 1164px; margin: 0 auto; display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy small { color: #7f97b6; }
.footer-desc { margin-top: 15px; max-width: 330px; font-size: 12px; line-height: 1.8; }
.footer-links { display: flex; gap: 60px; }
.footer-col b { display: block; color: #dbe7f7; font-size: 12px; margin-bottom: 13px; }
.footer-col a { display: block; color: #8097b4; font-size: 12px; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1164px; margin: 34px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; font-size: 11px; color: #627b99; }

/* ------------------------------ Auth ------------------------------ */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; }
.auth-art {
  position: relative; padding: 46px; display: flex; flex-direction: column; justify-content: space-between;
  background: radial-gradient(800px 500px at 20% 0%, #1e56c8 0, transparent 55%), radial-gradient(700px 500px at 100% 100%, #0e7490 0, transparent 60%), #0a1d3d;
  color: #fff; overflow: hidden;
}
.auth-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000, transparent 75%); }
.auth-art .brand { position: relative; z-index: 1; }
.auth-art .brand-copy strong { color: #fff; }
.auth-art .brand-copy small { color: #9bb5d9; }
.auth-copy { position: relative; z-index: 1; max-width: 480px; margin: 40px 0; }
.auth-copy .eyebrow { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #b6e9ff; box-shadow: none; }
.auth-copy h1 { font-size: 42px; line-height: 1.22; letter-spacing: -.03em; margin: 22px 0 16px; }
.auth-copy p { color: #a9c0df; font-size: 14px; line-height: 1.8; }
.auth-points { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.auth-points span { display: flex; align-items: center; gap: 9px; color: #bfd2ec; font-size: 12px; }
.auth-points .ic { width: 24px; height: 24px; border-radius: 7px; background: rgba(94,234,212,.1); color: #5eead4; display: grid; place-items: center; }
.auth-art-foot { position: relative; z-index: 1; display: flex; gap: 22px; color: #809bc0; font-size: 11px; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 28px; background: linear-gradient(180deg,#fff,#fbfdff); }
.auth-box { width: min(100%, 420px); }
.auth-mobile-brand { display: none; margin-bottom: 28px; }
.auth-box h1 { font-size: 29px; letter-spacing: -.02em; margin-bottom: 8px; }
.auth-box .sub { color: var(--muted); font-size: 13px; margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 17px; }
.auth-switch { text-align: center; margin-top: 22px; color: var(--muted); font-size: 13px; }
.auth-switch a { color: var(--brand); font-weight: 650; }
.auth-foot { margin-top: 34px; display: flex; justify-content: center; gap: 18px; color: var(--muted-2); font-size: 11px; flex-wrap: wrap; }
.auth-foot a:hover { color: var(--ink); }
.auth-alert { padding: 11px 13px; border-radius: 10px; background: #f0f6ff; border: 1px solid #d9e8ff; color: #35527a; font-size: 12px; line-height: 1.6; }
.twofa-head { text-align: center; margin-bottom: 22px; }
.twofa-head .twofa-ico { width: 62px; height: 62px; margin: 0 auto 15px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.twofa-head h2 { font-size: 22px; margin-bottom: 6px; }
.twofa-head p { color: var(--muted); font-size: 13px; }
.otp-input { text-align: center; font-size: 24px; letter-spacing: .35em; font-weight: 700; font-family: var(--mono); padding-left: 18px; }

/* ------------------------------ Setup ------------------------------ */
.setup-page { min-height: 100vh; display: grid; grid-template-columns: .9fr 1.1fr; background: #fff; }
.setup-aside { position: relative; background: radial-gradient(700px 500px at 0% 0%, #1d4ed8, transparent 60%), radial-gradient(600px 500px at 100% 100%, #0e7490, transparent 60%), #08172e; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.setup-aside::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); right: -80px; bottom: 15%; box-shadow: 0 0 0 50px rgba(255,255,255,.03), 0 0 0 100px rgba(255,255,255,.02); }
.setup-aside h1 { font-size: 38px; line-height: 1.25; letter-spacing: -.03em; margin: 20px 0 14px; }
.setup-aside p { color: #a9c0df; max-width: 420px; line-height: 1.8; font-size: 14px; }
.setup-steps { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; position: relative; z-index: 1; }
.setup-step { display: flex; gap: 12px; align-items: flex-start; }
.setup-step .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(94,234,212,.13); border: 1px solid rgba(94,234,212,.26); color: #5eead4; font-size: 11px; font-weight: 700; flex: none; }
.setup-step b { font-size: 13px; display: block; }
.setup-step span { color: #8fa7c6; font-size: 11px; }
.setup-main { display: flex; align-items: center; justify-content: center; padding: 44px 28px; }
.setup-box { width: min(100%, 480px); }
.setup-box h1 { font-size: 30px; margin-bottom: 8px; }
.setup-box .sub { color: var(--muted); margin-bottom: 28px; font-size: 13px; }

/* ------------------------------ Drive shell ------------------------------ */
.drive-shell { min-height: 100vh; display: grid; grid-template-columns: 256px minmax(0,1fr); background: var(--bg); }
.sidebar-backdrop { display: none; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 22px 16px 18px;
  display: flex; flex-direction: column; gap: 20px;
  background: #fff; border-right: 1px solid var(--line); z-index: 40;
}
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.sidebar-brand .brand-copy strong { font-size: 17px; }
.sidebar .brand-copy small { max-width: 140px; }
.sidebar-close { display: none; }
.sidebar-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label { padding: 13px 12px 6px; font-size: 10px; font-weight: 750; letter-spacing: .12em; color: #a0aec0; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px;
  color: #5a6b82; font-size: 13.5px; font-weight: 560; position: relative; transition: .15s;
}
.nav-item .icon { color: #8493a8; transition: .15s; }
.nav-item:hover { background: #f5f8fd; color: var(--ink); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.nav-item.active .icon { color: var(--brand); }
.nav-item .nav-badge { margin-left: auto; font-size: 10px; background: #eef3fa; color: #73839a; padding: 2px 7px; border-radius: 20px; font-weight: 650; }
.nav-item.active .nav-badge { background: #fff; color: var(--brand); }
.nav-item .nav-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
.sidebar-storage { margin-top: auto; padding: 15px; border-radius: 14px; background: linear-gradient(150deg, #f3f7ff, #f2fdff); border: 1px solid #e0ebfa; }
.sidebar-storage .head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.sidebar-storage b { font-size: 12px; }
.sidebar-storage a { font-size: 10px; color: var(--brand); font-weight: 650; }
.storage-line { font-size: 11px; color: var(--muted); }
.storage-label { display: flex; justify-content: space-between; margin-bottom: 7px; gap: 10px; font-size: 10.5px; }
.progress { height: 6px; border-radius: 10px; background: #e2eaf5; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .4s ease; }
.sidebar-user { display: flex; align-items: center; gap: 9px; padding: 9px 8px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.sidebar-user .copy { min-width: 0; flex: 1; }
.sidebar-user b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user small { font-size: 10px; color: var(--muted-2); }
.sidebar-user .icon { color: var(--muted-2); }

.main-area { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: 76px; padding: 0 30px;
  display: flex; align-items: center; gap: 18px;
  background: rgba(244,247,251,.84); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(229,235,243,.8);
}
.topbar-menu { display: none; }
.searchbox { flex: 1; max-width: 480px; position: relative; }
.searchbox .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: #8c9caf; }
.searchbox input {
  width: 100%; height: 42px; border-radius: 11px; padding: 0 40px 0 40px;
  background: #fff; border: 1px solid var(--line); outline: none; font-size: 13px;
  transition: .16s;
}
.searchbox input:focus { border-color: #bfd4f3; box-shadow: 0 0 0 3px rgba(29,78,216,.07); }
.searchbox .kbd { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 10px; color: #9caabd; background: #f4f7fb; border: 1px solid #e5ebf3; padding: 1px 6px; border-radius: 5px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.topbar-user { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: 30px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.topbar-user .avatar { width: 31px; height: 31px; font-size: 12px; }
.topbar-user .uname { font-size: 12px; font-weight: 650; max-width: 100px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.user-dropdown { position: absolute; top: 66px; right: 24px; width: 220px; padding: 7px; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); z-index: 80; }
.user-dropdown .uhead { padding: 10px 11px 12px; border-bottom: 1px solid var(--line); margin-bottom: 5px; }
.user-dropdown .uhead b { font-size: 13px; display: block; }
.user-dropdown .uhead span { color: var(--muted-2); font-size: 11px; }
.dropdown-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; font-size: 12.5px; color: #52647d; text-align: left; }
.dropdown-item:hover { background: #f4f7fc; color: var(--ink); }
.dropdown-item.danger { color: var(--danger); }
.dropdown-sep { height: 1px; background: var(--line); margin: 5px 0; }

.content { padding: 26px 30px 44px; max-width: 1480px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-head h1 { font-size: 24px; letter-spacing: -.02em; font-weight: 800; }
.page-head p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); flex-wrap: wrap; margin-top: 5px; }
.breadcrumb button { border: 0; background: none; padding: 2px 4px; color: var(--muted); border-radius: 4px; font-size: 12px; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.breadcrumb button:hover { color: var(--brand); background: var(--brand-soft); }
.breadcrumb .sep { color: #c4cfdd; }
.breadcrumb .current { color: var(--ink); font-weight: 650; padding: 2px 4px; }

.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.chip-tabs { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 10px; background: #eaf0f7; }
.chip-tabs button { border: 0; background: transparent; padding: 6px 12px; border-radius: 7px; font-size: 12px; color: #63748b; font-weight: 600; }
.chip-tabs button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(15,35,65,.1); }
.toolbar-spacer { flex: 1; }
.view-toggle { display: flex; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 3px; }
.view-toggle button { width: 31px; height: 29px; border: 0; border-radius: 6px; background: transparent; color: #91a0b4; display: grid; place-items: center; }
.view-toggle button.active { background: var(--brand-soft); color: var(--brand); }
.sort-select { min-height: 36px; font-size: 12px; width: auto; padding: 6px 32px 6px 11px; border-radius: 9px; }

.file-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden; }
.file-table-head, .file-row { display: grid; grid-template-columns: 36px minmax(220px,1fr) 100px 120px 105px 148px; align-items: center; gap: 8px; padding: 0 16px; }
.file-table-head { height: 43px; font-size: 11px; color: #8c9caf; border-bottom: 1px solid var(--line); background: #fbfcfe; }
.file-row { min-height: 62px; border-bottom: 1px solid #f0f3f8; position: relative; transition: background .12s; cursor: default; }
.file-row:last-child { border-bottom: 0; }
.file-row:hover { background: #f8fbff; }
.file-row.selected { background: #f2f7ff; }
.file-check { display: flex; align-items: center; }
.file-check input { width: 15px; height: 15px; accent-color: var(--brand); cursor: pointer; }
.file-name-cell { display: flex; align-items: center; gap: 11px; min-width: 0; cursor: pointer; }
.file-name-main { min-width: 0; }
.file-name-main b { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-name-main b .star { color: #f59e0b; display: inline-flex; }
.file-name-main small { color: #9aa8bb; font-size: 10px; display: block; margin-top: 1px; }
.file-visual { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.file-visual svg { width: 22px; height: 22px; }
.fv-folder { background: #fff4dd; color: #f0a41b; }
.fv-image { background: #e9f0ff; color: #3b82f6; }
.fv-video { background: #f2ecff; color: #8b5cf6; }
.fv-music { background: #ffeaf3; color: #ec4899; }
.fv-archive { background: #fff4e2; color: #d97706; }
.fv-pdf { background: #ffecec; color: #ef4444; }
.fv-code { background: #e8fbf3; color: #059669; }
.fv-file { background: #edf2f9; color: #64748b; }
.file-meta { color: #75859b; font-size: 11.5px; }
.file-meta.size { font-family: var(--mono); font-size: 10.5px; }
.file-actions { display: flex; align-items: center; justify-content: flex-end; gap: 1px; white-space: nowrap; min-width: 0; }
.file-actions .icon-btn { width: 31px; height: 31px; border-radius: 8px; }
.file-actions .icon-btn.icon-text { width: auto; padding: 0 9px; font-size: 11px; gap: 4px; }
.file-actions .icon-btn:hover { background: #eef4fd; color: var(--brand); }
.row-menu-btn { opacity: .7; }
.file-row:hover .row-menu-btn { opacity: 1; }

.grid-view { display: grid; grid-template-columns: repeat(auto-fill, minmax(174px, 1fr)); gap: 14px; }
.file-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; transition: .18s; min-height: 158px; display: flex; flex-direction: column; }
.file-card:hover { border-color: #cdddf4; box-shadow: var(--shadow); transform: translateY(-2px); }
.file-card.selected { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(29,78,216,.12); }
.file-card .card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.file-card .file-visual { width: 48px; height: 48px; border-radius: 13px; }
.file-card .file-visual svg { width: 27px; height: 27px; }
.file-card .card-check { opacity: 0; transition: .15s; }
.file-card:hover .card-check, .file-card.selected .card-check { opacity: 1; }
.file-card .card-name { margin-top: auto; font-size: 12.5px; font-weight: 650; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; cursor: pointer; }
.file-card .card-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #8c9caf; font-size: 10px; margin-top: 7px; }
.file-card .card-menu { position: absolute; right: 10px; bottom: 11px; opacity: 0; }
.file-card:hover .card-menu { opacity: 1; }
.file-card .card-menu .icon-btn { width: 27px; height: 27px; }

.selection-bar { display: flex; align-items: center; gap: 9px; padding: 10px 13px; margin-bottom: 12px; border-radius: 12px; background: #0b1b33; color: #fff; box-shadow: var(--shadow); }
.selection-bar b { font-size: 12px; margin-right: 6px; }
.selection-bar .btn { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; }
.selection-bar .btn:hover { background: rgba(255,255,255,.18); }
.selection-bar .btn.danger { color: #ffb4b4; }
.selection-close { margin-left: auto; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 20px 0 4px; }
.pagination button { min-width: 33px; height: 33px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--muted); }
.pagination button.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pagination button:disabled { opacity: .4; }
.pagination .page-info { font-size: 11px; color: var(--muted-2); margin-left: 5px; }

.empty-state { padding: 60px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.empty-art { width: 82px; height: 82px; border-radius: 24px; display: grid; place-items: center; background: linear-gradient(145deg, #eef4ff, #eefbff); color: #86a3cb; margin-bottom: 17px; }
.empty-state h3 { font-size: 15px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 12px; max-width: 360px; line-height: 1.7; margin-bottom: 16px; }
.empty-state .btn { margin-top: 2px; }
.drop-overlay { position: fixed; inset: 0; z-index: 95; background: rgba(9, 28, 58, .55); backdrop-filter: blur(5px); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: .18s; }
.drop-overlay.is-visible { opacity: 1; pointer-events: auto; }
.drop-zone { width: min(90vw, 520px); border: 2px dashed rgba(255,255,255,.55); border-radius: 26px; padding: 50px; text-align: center; color: #fff; background: rgba(255,255,255,.08); }
.drop-zone .drop-ico { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px; background: rgba(255,255,255,.14); display: grid; place-items: center; }
.drop-zone h3 { font-size: 20px; margin-bottom: 8px; }
.drop-zone p { color: #c1d4ea; font-size: 13px; }

/* ------------------------------ Upload panel ------------------------------ */
.upload-panel { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: min(380px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.upload-head { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px; background: #fbfcfe; border-bottom: 1px solid var(--line); }
.upload-head b { font-size: 12.5px; }
.upload-head span { font-size: 10px; color: var(--muted-2); }
.upload-list { max-height: 280px; overflow-y: auto; padding: 6px; }
.upload-item { display: flex; gap: 9px; padding: 9px; border-radius: 9px; align-items: flex-start; }
.upload-item:hover { background: #f7fafe; }
.upload-item .u-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.upload-item .u-main { flex: 1; min-width: 0; }
.upload-item .u-name { font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-item .u-sub { display: flex; justify-content: space-between; gap: 8px; font-size: 9.5px; color: var(--muted-2); margin-top: 3px; }
.upload-item .u-bar { height: 4px; border-radius: 4px; background: #e8eef7; margin-top: 5px; overflow: hidden; }
.upload-item .u-bar i { display: block; height: 100%; background: linear-gradient(90deg,var(--brand),var(--accent)); border-radius: inherit; transition: width .2s; }
.upload-item.done .u-ico { background: var(--success-soft); color: var(--success); }
.upload-item.error .u-ico { background: var(--danger-soft); color: var(--danger); }
.upload-item .u-x { border: 0; background: none; color: #a0aec0; padding: 2px; }
.upload-item .u-x:hover { color: var(--danger); }
.upload-foot { padding: 8px 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: var(--muted-2); }

/* ------------------------------ Shares / trash / settings ------------------------------ */
.share-list { display: grid; gap: 10px; }
.share-item { display: flex; align-items: center; gap: 14px; padding: 15px 16px; border: 1px solid var(--line); background: #fff; border-radius: 13px; }
.share-item .file-visual { width: 42px; height: 42px; }
.share-item .s-main { flex: 1; min-width: 0; }
.share-item .s-name { font-size: 13px; font-weight: 650; display: flex; align-items: center; gap: 7px; }
.share-item .s-link { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 480px; margin-top: 3px; font-family: var(--mono); }
.share-item .s-meta { display: flex; gap: 13px; margin-top: 5px; color: var(--muted-2); font-size: 10px; flex-wrap: wrap; }
.share-item .s-actions { display: flex; gap: 4px; }
.share-stats { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.mini-stat { flex: 1; min-width: 130px; padding: 13px 15px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.mini-stat b { font-size: 19px; display: block; letter-spacing: -.02em; }
.mini-stat span { color: var(--muted); font-size: 11px; }
.filter-bar { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.filter-bar .input { max-width: 240px; min-height: 36px; font-size: 12px; }
.filter-bar .select { min-height: 36px; font-size: 12px; width: auto; }
.settings-grid { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 22px; align-items: start; }
.settings-nav { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; position: sticky; top: 92px; }
.settings-nav button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 12.5px; text-align: left; }
.settings-nav button:hover { background: #f5f8fd; color: var(--ink); }
.settings-nav button.active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.settings-panel { display: flex; flex-direction: column; gap: 16px; }
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.panel-head { padding: 18px 20px 0; }
.panel-head h2 { font-size: 15px; font-weight: 750; }
.panel-head p { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.panel-body { padding: 18px 20px 20px; }
.panel-body.form-stack { gap: 14px; }
.panel-divider { height: 1px; background: var(--line); margin: 2px 0; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-head .avatar { width: 54px; height: 54px; font-size: 21px; }
.profile-head b { font-size: 16px; display: block; }
.profile-head span { font-size: 11.5px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 20px; background: #eef3fa; color: #64748b; font-size: 10px; font-weight: 650; }
.badge.green { background: var(--success-soft); color: var(--success); }
.badge.blue { background: var(--brand-soft); color: var(--brand); }
.badge.orange { background: var(--warning-soft); color: var(--warning); }
.badge.red { background: var(--danger-soft); color: var(--danger); }
.badge.gray { background: #f1f4f8; color: #7b8ba0; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid #f0f3f8; }
.setting-row:last-child { border-bottom: 0; }
.setting-row b { font-size: 12.5px; display: block; }
.setting-row p { font-size: 11px; color: var(--muted); margin-top: 2px; max-width: 540px; }
.session-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f1f4f8; }
.session-item:last-child { border-bottom: 0; }
.session-item .si { width: 34px; height: 34px; border-radius: 9px; background: #f2f6fc; color: #70839d; display: grid; place-items: center; flex: none; }
.session-item .sm { flex: 1; min-width: 0; }
.session-item b { font-size: 11.5px; display: block; }
.session-item span { font-size: 10px; color: var(--muted-2); }
.security-hero { display: flex; align-items: center; gap: 15px; padding: 17px; border-radius: 13px; background: linear-gradient(135deg,#f1f6ff,#f1fdff); border: 1px solid #e0ebf9; }
.security-hero .sh { width: 48px; height: 48px; border-radius: 14px; background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.security-hero .sc { flex: 1; }
.security-hero b { font-size: 13px; display: block; }
.security-hero p { font-size: 11px; color: var(--muted); margin-top: 2px; }
.qr-wrap { display: flex; gap: 22px; align-items: center; padding: 16px; border-radius: 14px; background: #f8fbff; border: 1px solid #e8eff9; }
.qr-box { width: 180px; height: 180px; padding: 8px; border-radius: 12px; background: #fff; border: 1px solid var(--line); flex: none; }
.qr-box svg { width: 100%; height: 100%; }
.qr-copy b { font-size: 12px; display: block; margin-bottom: 5px; }
.qr-copy p { font-size: 11px; color: var(--muted); line-height: 1.7; margin-bottom: 9px; }
.secret-code { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; background: #fff; border: 1px dashed #cddcf0; border-radius: 8px; padding: 8px 10px; word-break: break-all; }
.recovery-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; margin-top: 12px; }
.recovery-code { font-family: var(--mono); font-size: 12px; padding: 7px 9px; background: #fff; border: 1px solid var(--line); border-radius: 7px; letter-spacing: .08em; }

/* ------------------------------ Public share ------------------------------ */
.public-page { min-height: 100vh; background: #f4f7fb; display: flex; flex-direction: column; }
.public-bg { position: fixed; inset: 0 0 auto; height: 460px; background: radial-gradient(900px 500px at 20% 0%, rgba(29,78,216,.16), transparent 60%), radial-gradient(700px 430px at 85% 0%, rgba(6,182,212,.14), transparent 60%), linear-gradient(180deg,#f6faff,#f4f7fb); pointer-events: none; }
.public-header { position: relative; z-index: 2; max-width: 1000px; width: 100%; margin: 0 auto; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; }
.public-header .header-actions { gap: 10px; }
.public-main { position: relative; z-index: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: 34px 24px 60px; flex: 1; }
.public-card { background: #fff; border: 1px solid rgba(224,233,245,.9); border-radius: 24px; box-shadow: 0 30px 80px rgba(20,50,100,.11); overflow: hidden; }
.share-hero { padding: 36px 38px 30px; border-bottom: 1px solid #eef3f9; background: linear-gradient(160deg,#fbfdff,#f6faff); }
.share-hero .sh-top { display: flex; align-items: flex-start; gap: 16px; }
.share-hero .file-visual { width: 64px; height: 64px; border-radius: 18px; }
.share-hero .file-visual svg { width: 34px; height: 34px; }
.share-hero h1 { font-size: 22px; letter-spacing: -.02em; line-height: 1.4; word-break: break-word; }
.share-hero .sh-sub { color: var(--muted); font-size: 12px; margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.share-hero .sh-owner { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 11px; color: var(--muted-2); }
.share-body { padding: 26px 38px 32px; }
.share-download-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px; border-radius: 16px; background: linear-gradient(135deg,#f1f6ff,#f0fdff); border: 1px solid #deebfb; }
.share-download-box .sd-info b { font-size: 13px; display: block; }
.share-download-box .sd-info span { font-size: 11px; color: var(--muted); }
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.share-file-list { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.share-file-row { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-bottom: 1px solid #f0f3f8; }
.share-file-row:last-child { border-bottom: 0; }
.share-file-row:hover { background: #fafcff; }
.share-file-row .file-visual { width: 34px; height: 34px; border-radius: 9px; }
.share-file-row .file-visual svg { width: 20px; height: 20px; }
.share-file-row .sf-main { flex: 1; min-width: 0; }
.share-file-row .sf-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-file-row .sf-path { font-size: 10px; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.share-file-row .sf-size { color: var(--muted-2); font-size: 10px; font-family: var(--mono); }
.share-note { margin-top: 18px; padding: 13px 15px; border-radius: 12px; background: #fbfcfe; border: 1px solid var(--line); font-size: 11px; color: var(--muted); display: flex; gap: 9px; line-height: 1.7; }
.share-note .icon { color: #8fa4bd; flex: none; margin-top: 1px; }
.share-locked { text-align: center; padding: 34px 24px 10px; }
.share-locked .lock-art { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 22px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.share-locked h2 { font-size: 19px; margin-bottom: 6px; }
.share-locked > p { color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.share-locked form { max-width: 330px; margin: 0 auto; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.share-error-page { text-align: center; padding: 60px 30px; }
.share-error-page .err-art { width: 82px; height: 82px; margin: 0 auto 18px; border-radius: 24px; background: #fff4e5; color: #d97706; display: grid; place-items: center; }
.share-error-page h1 { font-size: 21px; margin-bottom: 8px; }
.share-error-page p { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.public-footer { position: relative; z-index: 1; text-align: center; padding: 22px; color: #92a1b4; font-size: 11px; }
.public-footer a { color: #6a7f98; font-weight: 600; }
.public-card.small { max-width: 520px; margin: 0 auto; }

/* ------------------------------ Admin ------------------------------ */
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0,1fr); background: #f4f7fb; }
.admin-sidebar { background: #0a1a33; color: #a9bed9; padding: 22px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.admin-sidebar .brand-copy strong { color: #fff; font-size: 16px; }
.admin-sidebar .brand-copy small { color: #6f88a8; }
.admin-sidebar .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
.admin-sidebar .brand-mark svg { width: 23px; height: 23px; }
.admin-nav { display: flex; flex-direction: column; gap: 2px; }
.admin-nav-label { padding: 14px 11px 6px; font-size: 9px; color: #536b89; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px; color: #91a9c7; font-size: 12.5px; }
.admin-nav a .icon { color: #6f88a8; }
.admin-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.admin-nav a.active { background: linear-gradient(90deg,rgba(29,78,216,.45),rgba(6,182,212,.2)); color: #fff; box-shadow: inset 0 0 0 1px rgba(120,180,255,.15); }
.admin-nav a.active .icon { color: #7dd3fc; }
.admin-sidebar-foot { margin-top: auto; padding: 12px; border-radius: 11px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); font-size: 10px; color: #7b93b0; }
.admin-sidebar-foot b { color: #dbe9fb; display: block; font-size: 11px; margin-bottom: 2px; }
.admin-main { min-width: 0; }
.admin-topbar { height: 68px; background: rgba(244,247,251,.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 28px; position: sticky; top: 0; z-index: 30; }
.admin-topbar h1 { font-size: 17px; font-weight: 750; }
.admin-topbar .sub { font-size: 11px; color: var(--muted); }
.admin-topbar .spacer { flex: 1; }
.admin-content { padding: 24px 28px 50px; max-width: 1500px; }
.admin-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 18px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 17px 18px; position: relative; overflow: hidden; }
.admin-card .ac-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.admin-card .ac-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.admin-card:nth-child(2) .ac-ico { background: var(--accent-soft); color: #0891b2; }
.admin-card:nth-child(3) .ac-ico { background: var(--success-soft); color: var(--success); }
.admin-card:nth-child(4) .ac-ico { background: var(--warning-soft); color: var(--warning); }
.admin-card b { font-size: 24px; letter-spacing: -.03em; display: block; margin-top: 10px; }
.admin-card small { color: var(--muted); font-size: 11px; }
.admin-card .trend { font-size: 10px; color: var(--success); background: var(--success-soft); padding: 2px 7px; border-radius: 20px; }
.admin-grid-2 { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.admin-panel { background: #fff; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.admin-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.admin-panel-head h2 { font-size: 13.5px; font-weight: 750; }
.admin-panel-head span { color: var(--muted-2); font-size: 10px; }
.admin-panel-body { padding: 18px; }
.admin-panel-body.flush { padding: 0; }
.chart { display: flex; align-items: flex-end; gap: 9px; height: 180px; padding: 8px 2px 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.chart-bars { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.chart-bar { width: 40%; min-height: 2px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg,#3b82f6,#1d4ed8); transition: height .5s; }
.chart-bar.alt { background: linear-gradient(180deg,#67e8f9,#06b6d4); }
.chart-label { font-size: 8px; color: var(--muted-2); white-space: nowrap; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 10px; font-weight: 700; color: #8c9caf; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbfcfe; white-space: nowrap; }
.admin-table td { padding: 11px 14px; border-bottom: 1px solid #f1f4f8; font-size: 11.5px; color: #52647d; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: #fafcff; }
.admin-table .t-name { font-weight: 650; color: var(--ink); }
.admin-table .t-sub { font-size: 10px; color: var(--muted-2); }
.admin-table .t-actions { text-align: right; white-space: nowrap; }
.admin-table .t-actions .icon-btn { width: 28px; height: 28px; }
.admin-table-wrap { overflow-x: auto; }
.admin-tabs { display: flex; gap: 4px; padding: 4px; background: #eaf0f7; border-radius: 9px; }
.admin-tabs a { padding: 6px 11px; font-size: 11px; border-radius: 6px; color: #63748b; }
.admin-tabs a.active { background: #fff; color: var(--ink); font-weight: 650; box-shadow: 0 1px 3px rgba(15,35,65,.1); }
.admin-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-toolbar .input, .admin-toolbar .select { min-height: 36px; font-size: 12px; width: auto; }
.admin-toolbar .input { min-width: 220px; }
.admin-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted-2); }
.admin-pagination button { height: 28px; min-width: 28px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 11px; color: var(--muted); }
.admin-pagination button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.admin-pagination button:disabled { opacity: .4; }
.settings-section { border: 1px solid var(--line); background: #fff; border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.settings-section-head { padding: 15px 18px; border-bottom: 1px solid var(--line); }
.settings-section-head h2 { font-size: 13px; }
.settings-section-head p { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.settings-section-body { padding: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.settings-section-body .full { grid-column: 1 / -1; }
.settings-section-body .field > span { font-size: 11px; }
.brand-upload-row { display: flex; align-items: center; gap: 14px; }
.brand-preview { width: 62px; height: 62px; border-radius: 15px; border: 1px solid var(--line); background: #f8fbff; display: grid; place-items: center; overflow: hidden; }
.brand-preview img { width: 100%; height: 100%; object-fit: contain; }
.log-detail { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------ Modal / toast ------------------------------ */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(8,23,46,.48); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 22px; opacity: 0; transition: opacity .18s; }
.modal-backdrop.is-visible { opacity: 1; }
.modal { width: min(100%, 560px); max-height: calc(100vh - 44px); display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: 0 40px 100px rgba(0,0,0,.3); transform: translateY(12px) scale(.985); transition: .18s; overflow: hidden; }
.modal-backdrop.is-visible .modal { transform: none; }
.modal-sm { width: min(100%, 430px); }
.modal-lg { width: min(100%, 760px); }
.modal-xl { width: min(100%, 920px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px 14px; }
.modal-head h2 { font-size: 17px; font-weight: 750; letter-spacing: -.01em; }
.modal-head .icon-btn { width: 32px; height: 32px; }
.modal-body { padding: 4px 20px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; background: #fbfcfe; }
.confirm-text { color: #51627a; font-size: 13px; line-height: 1.75; padding: 4px 0 10px; }
.upload-modal-drop { border: 2px dashed #cbd9ec; border-radius: 16px; padding: 34px; text-align: center; background: #f8fbff; cursor: pointer; transition: .16s; }
.upload-modal-drop:hover { border-color: var(--brand); background: #f1f7ff; }
.upload-modal-drop .icon { color: var(--brand); margin-bottom: 8px; }
.upload-modal-drop b { display: block; font-size: 13px; }
.upload-modal-drop span { font-size: 11px; color: var(--muted); }
.file-share-preview { display: flex; align-items: center; gap: 12px; padding: 13px; border-radius: 12px; background: #f8fbff; border: 1px solid var(--line); margin-bottom: 17px; }
.file-share-preview b { font-size: 12px; display: block; max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-share-preview span { font-size: 10.5px; color: var(--muted); }
.share-result { text-align: center; padding: 10px 0; }
.share-result .success-art { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; }
.share-result h3 { font-size: 17px; margin-bottom: 4px; }
.share-result p { font-size: 11px; color: var(--muted); margin-bottom: 15px; }
.share-link-box { display: flex; gap: 7px; padding: 7px; border: 1px solid var(--line); background: #f8fbff; border-radius: 10px; }
.share-link-box input { flex: 1; border: 0; background: transparent; outline: none; font-size: 11px; font-family: var(--mono); color: #52647d; min-width: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-item { padding: 10px 12px; border-radius: 9px; background: #f8fbff; }
.detail-item span { font-size: 9.5px; color: var(--muted-2); display: block; text-transform: uppercase; letter-spacing: .06em; }
.detail-item b { font-size: 12px; display: block; margin-top: 2px; }
.steps-row { display: flex; gap: 10px; align-items: center; margin-bottom: 15px; }
.step-pill { flex: 1; text-align: center; font-size: 10px; color: var(--muted-2); padding: 5px; border-radius: 6px; background: #f3f6fb; }
.step-pill.active { background: var(--brand-soft); color: var(--brand); font-weight: 650; }
.preview-modal .modal-body { padding: 0; background: #0a1322; display: grid; place-items: center; min-height: 240px; max-height: 72vh; }
.preview-modal img, .preview-modal video { max-width: 100%; max-height: 72vh; display: block; }
.preview-modal iframe { width: 100%; height: 72vh; border: 0; background: #fff; }
.preview-modal audio { width: min(90%, 560px); margin: 60px 0; }
.preview-text { width: 100%; max-height: 72vh; overflow: auto; margin: 0; padding: 24px; color: #d7e4f5; font-family: var(--mono); font-size: 12px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

.row-menu { position: fixed; z-index: 110; width: 178px; padding: 5px; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(8,23,46,.18); animation: menuIn .12s ease; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.row-menu-inner { display: flex; flex-direction: column; gap: 1px; }
.row-menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 9px; border: 0; border-radius: 7px; background: transparent; color: #52647d; font-size: 12px; text-align: left; }
.row-menu-item .icon { color: #8494a9; }
.row-menu-item:hover { background: #f3f7fd; color: var(--ink); }
.row-menu-item:hover .icon { color: var(--brand); }
.row-menu-item.danger { color: var(--danger); }
.row-menu-item.danger .icon { color: var(--danger); }
.row-menu-item.danger:hover { background: var(--danger-soft); }
.row-menu-sep { height: 1px; background: var(--line); margin: 4px 3px; }

.toast-root { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; pointer-events: none; align-items: center; }
.toast { display: flex; align-items: center; gap: 9px; min-width: 220px; max-width: min(92vw, 460px); padding: 11px 15px; border-radius: 11px; background: #0b1b33; color: #fff; box-shadow: 0 15px 40px rgba(8,23,46,.28); font-size: 12.5px; opacity: 0; transform: translateY(-8px); transition: .2s; }
.toast.is-visible { opacity: 1; transform: none; }
.toast-icon { width: 18px; height: 18px; display: grid; place-items: center; flex: none; }
.toast-icon svg { width: 17px; height: 17px; }
.toast-success .toast-icon { color: #4ade80; }
.toast-error { background: #3b1114; }
.toast-error .toast-icon { color: #fca5a5; }
.toast-info .toast-icon { color: #7dd3fc; }
.toast-text { line-height: 1.5; }

.captcha-slot { min-height: 40px; }
.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-svg { width: 180px; height: 60px; border-radius: 10px; overflow: hidden; border: 1px solid #dce6f2; flex: none; }
.captcha-svg svg { width: 100%; height: 100%; }
.captcha-refresh { width: 40px; height: 60px; border-radius: 10px; border: 1px solid var(--line); background: #f8fbff; color: var(--muted); display: grid; place-items: center; }
.captcha-refresh:hover { color: var(--brand); border-color: #bcd3f4; }
.captcha-input { margin-top: 8px; text-transform: uppercase; letter-spacing: .12em; }
.turnstile-slot { min-height: 65px; }
.captcha-loading, .captcha-error, .captcha-off { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 7px; min-height: 40px; }
.captcha-error { color: var(--danger); }
.spinner { width: 17px; height: 17px; border-radius: 50%; border: 2px solid #dbe6f4; border-top-color: var(--brand); display: inline-block; animation: spin .8s linear infinite; }
.spinner.dark { width: 14px; height: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------ Utilities / responsive ------------------------------ */
.muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.mono { font-family: var(--mono); }
.nowrap { white-space: nowrap; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }
.mobile-only { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

@media (max-width: 1120px) {
  .hero { gap: 30px; }
  .float-card.one { left: -8px; }
  .float-card.two { right: -8px; }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .admin-cards { grid-template-columns: repeat(2,1fr); }
  .file-table-head, .file-row { grid-template-columns: 34px minmax(200px,1fr) 90px 110px 142px; }
  .file-table-head .col-date, .file-row .file-date { display: none; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; }
  .hero-visual { min-height: 420px; order: 2; }
  .hero-copy { max-width: 700px; }
  .stat-strip { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(3) { border-left: 0; padding-left: 8px; }
  .security-inner, .share-showcase { grid-template-columns: 1fr; gap: 40px; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .auth-mobile-brand { display: flex; }
  .setup-page { grid-template-columns: 1fr; }
  .setup-aside { display: none; }
  .drive-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 268px; transform: translateX(-102%); transition: transform .22s; box-shadow: 0 0 80px rgba(0,0,0,.2); }
  .sidebar.is-open { transform: none; }
  .sidebar-close { display: grid; }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(8,23,46,.4); backdrop-filter: blur(3px); z-index: 35; opacity: 0; pointer-events: none; transition: .2s; }
  .sidebar-backdrop.is-visible { opacity: 1; pointer-events: auto; }
  .topbar-menu { display: grid; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-nav { position: static; display: flex; overflow-x: auto; }
  .settings-nav button { white-space: nowrap; width: auto; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; left: 0; top: 0; width: 250px; transform: translateX(-102%); transition: transform .22s; z-index: 60; }
  .admin-sidebar.is-open { transform: none; }
  .admin-topbar { padding: 0 18px; }
  .admin-content { padding: 18px; }
  .admin-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .site-header { padding: 0 18px; }
  .site-nav { display: none; }
  .site-header .header-actions .btn-ghost { display: none; }
  .hero { padding: 34px 20px 26px; }
  .hero h1 { font-size: 38px; }
  .hero-sub { font-size: 14px; }
  .hero-visual { min-height: 360px; }
  .mock-body { grid-template-columns: 104px 1fr; }
  .mock-side { padding: 12px 8px; }
  .mock-main { padding: 13px; }
  .float-card { display: none; }
  .section { padding: 64px 20px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stat-strip { margin: 10px 16px 0; padding: 16px; grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-item { gap: 9px; padding: 2px; }
  .stat-item + .stat-item { padding-left: 2px; border-left: 0; }
  .stat-icon { width: 36px; height: 36px; }
  .stat-item b { font-size: 15px; }
  .stat-item small { font-size: 10px; }
  .cta-band { margin: 0 16px 60px; padding: 30px 22px; flex-direction: column; align-items: flex-start; }
  .cta-band h2 { font-size: 24px; }
  .footer-links { gap: 38px; }
  .topbar { padding: 0 16px; height: 66px; gap: 9px; }
  .searchbox .kbd { display: none; }
  .topbar-user .uname { display: none; }
  .topbar-actions .btn .btn-label { display: none; }
  .content { padding: 18px 15px 32px; }
  .page-head { flex-direction: column; gap: 12px; }
  .page-head h1 { font-size: 21px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .toolbar { gap: 7px; }
  .chip-tabs { overflow-x: auto; max-width: 100%; }
  .chip-tabs button { padding: 6px 10px; white-space: nowrap; }
  .file-table-head { display: none; }
  .file-row { grid-template-columns: 30px minmax(0,1fr) auto; padding: 9px 10px; min-height: 63px; gap: 4px; }
  .file-row .file-actions { width: auto; }
  .file-row .file-meta, .file-row .file-date { display: none; }
  .file-row .file-actions .icon-btn:not(.row-menu-btn) { display: none; }
  .file-row .file-actions .row-menu-btn { display: grid; }
  .grid-view { grid-template-columns: repeat(2,1fr); gap: 9px; }
  .file-card { min-height: 146px; padding: 13px; }
  .share-item { flex-wrap: wrap; }
  .share-item .s-actions { width: 100%; justify-content: flex-end; }
  .share-hero { padding: 24px 20px 22px; }
  .share-body { padding: 20px; }
  .share-download-box { flex-direction: column; align-items: stretch; }
  .share-download-box .share-actions .btn { flex: 1; }
  .public-main { padding: 16px 12px 40px; }
  .public-header { padding: 18px 16px; }
  .modal-backdrop { padding: 10px; }
  .modal { max-height: calc(100vh - 20px); border-radius: 16px; }
  .modal-head { padding: 15px 16px 11px; }
  .modal-body { padding: 4px 16px 16px; }
  .modal-foot { padding: 12px 16px 15px; }
  .qr-wrap { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .settings-section-body { grid-template-columns: 1fr; }
  .admin-cards { grid-template-columns: 1fr 1fr; gap: 9px; }
  .admin-card { padding: 13px; }
  .admin-card b { font-size: 20px; }
  .admin-topbar h1 { font-size: 15px; }
  .admin-topbar .sub { display: none; }
  .admin-content { padding: 14px; }
  .detail-grid, .recovery-grid { grid-template-columns: 1fr; }
  .toast-root { top: 12px; width: calc(100vw - 24px); }
  .toast { width: 100%; }
  .upload-panel { right: 10px; bottom: 10px; width: calc(100vw - 20px); }
  .selection-bar { flex-wrap: wrap; }
  .selection-bar .selection-close { margin-left: 0; }
}
@media (max-width: 430px) {
  .hero h1 { font-size: 33px; }
  .hero-actions .btn { flex: 1; min-width: 0; }
  .trust-row { gap: 12px; }
  .auth-panel { padding: 28px 18px; }
  .admin-cards { grid-template-columns: 1fr; }
  .grid-view { grid-template-columns: 1fr 1fr; }
  .file-visual { width: 34px; height: 34px; }
}
