/* =========================================================================
   SecureCloud - full stylesheet (dark + light, ProtonDrive-inspired)
   ========================================================================= */
/* The hidden attribute must ALWAYS win - even over the display:flex rules
   below (modal-root, selbar). Without this, JS element.hidden = true has no
   visual effect and an empty modal + backdrop stays stuck on screen. */
[hidden] { display: none !important; }

:root {
  --accent: #6d4aff;
  --accent-2: #00b8d9;
  --accent-grad: linear-gradient(135deg, #6d4aff, #00b8d9);
  --danger: #ff5470;
  --ok: #2bd576;
  --warn: #ffb020;
  --radius: 14px;
  --radius-sm: 9px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}
[data-theme="dark"] {
  --bg: #131419;
  --bg-2: #191b22;
  --surface: #1e2028;
  --surface-2: #262933;
  --surface-3: #2e313d;
  --border: #2c2f3a;
  --text: #eef0f6;
  --text-2: #a6abbd;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --hero-glow: radial-gradient(1000px 500px at 70% -10%, rgba(109, 74, 255, .25), transparent 60%),
               radial-gradient(700px 400px at 10% 10%, rgba(0, 184, 217, .18), transparent 60%);
}
[data-theme="light"] {
  --bg: #f5f6fb;
  --bg-2: #eef0f8;
  --surface: #ffffff;
  --surface-2: #f2f3fa;
  --surface-3: #e7e9f4;
  --border: #e2e5f0;
  --text: #191c27;
  --text-2: #5d6478;
  --shadow: 0 10px 28px rgba(30, 34, 90, .10);
  --hero-glow: radial-gradient(1000px 500px at 70% -10%, rgba(109, 74, 255, .14), transparent 60%),
               radial-gradient(700px 400px at 10% 10%, rgba(0, 184, 217, .12), transparent 60%);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }
.mt { margin-top: 14px; }
.err { color: var(--danger); }
code { font-family: var(--mono); background: var(--surface-3); padding: 2px 6px; border-radius: 6px; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text);
  padding: 9px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
  cursor: pointer; transition: .15s transform, .15s background, .15s border-color, .15s box-shadow;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-3); text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent-grad); border: none; color: #fff; box-shadow: 0 6px 18px rgba(109, 74, 255, .35); }
.btn-primary:hover { filter: brightness(1.08); background: var(--accent-grad); }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 84, 112, .12); }
.btn-unlock { background: linear-gradient(135deg, #2b1a6e, #123a52); border: 1px solid rgba(138, 116, 255, .5); color: #cdbcff; width: 100%; }
.btn-unlock:hover { background: linear-gradient(135deg, #37228c, #16506f); }
.btn-lg { padding: 13px 22px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; }
.btn-google { width: 100%; background: #fff; color: #1f2430; border: 1px solid #dadce0; font-weight: 600; }
.btn-google:hover { background: #f6f8fc; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; border: none;
  background: transparent; color: var(--text-2); cursor: pointer; transition: .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }

/* theme toggle */
.theme-icon-sun { display: none; }
[data-theme="light"] .theme-icon-sun { display: inline; }
[data-theme="light"] .theme-icon-moon { display: none; }

/* ---------------- brand ---------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; color: var(--text); text-decoration: none; font-weight: 500; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--accent); font-weight: 800; }
.brand-logo {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent-grad);
  color: #fff; font-size: 15px; box-shadow: 0 4px 14px rgba(109, 74, 255, .4);
}
.brand-lock { position: absolute; right: -5px; bottom: -5px; font-size: 10px; background: var(--bg); border-radius: 50%; padding: 2.5px; color: var(--ok); }

/* ---------------- nav / landing ---------------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.landing { background: var(--bg); }
.hero { position: relative; overflow: hidden; padding: 60px 0 90px; }
.hero-bg { position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero-badge { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 13px; margin-bottom: 18px; }
.hero h1 { font-size: 52px; line-height: 1.06; margin: 0 0 18px; font-weight: 800; letter-spacing: -1.5px; }
.grad-text { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--text-2); font-size: 17px; max-width: 520px; }
.hero-cta { display: flex; gap: 12px; margin: 26px 0 34px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 34px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 22px; }
.hero-stats span { color: var(--text-2); font-size: 12.5px; }

/* mock window */
.hero-art { position: relative; }
.mock-window { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.mock-titlebar { display: flex; gap: 7px; padding: 12px 14px; background: var(--surface-2); }
.mock-titlebar span { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-3); }
.mock-titlebar span:first-child { background: #ff5f57; }
.mock-titlebar span:nth-child(2) { background: #febc2e; }
.mock-titlebar span:nth-child(3) { background: #28c840; }
.mock-body { padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--surface-2); border-radius: 9px; font-size: 13.5px; }
.mock-row i { color: var(--accent); width: 18px; }
.mock-row em { margin-left: auto; color: var(--text-2); font-style: normal; font-size: 12px; }
.mock-progress { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 12.5px; }
.bar { height: 7px; background: var(--surface-3); border-radius: 99px; overflow: hidden; flex: 1; }
.bar.slim { height: 5px; }
.bar-fill { height: 100%; background: var(--accent-grad); border-radius: 99px; transition: width .3s; }
.mock-chip { font-size: 11.5px; color: var(--ok); background: rgba(43, 213, 118, .1); padding: 7px 10px; border-radius: 8px; }
.float-chip { position: absolute; background: var(--surface); border: 1px solid var(--border); padding: 9px 14px; border-radius: 11px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow); animation: floaty 5s ease-in-out infinite; }
.float-chip i { color: var(--accent-2); margin-right: 6px; }
.chip-a { top: -18px; right: 8px; }
.chip-b { bottom: 62px; left: -26px; animation-delay: 1.2s; }
.chip-c { bottom: -18px; right: 60px; animation-delay: 2.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* sections */
.section { padding: 70px 22px; }
.section-title { font-size: 32px; text-align: center; margin: 0 0 8px; font-weight: 800; letter-spacing: -.5px; }
.section-sub { text-align: center; color: var(--text-2); margin: 0 0 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent); }
.feature-card i { font-size: 22px; color: var(--accent); background: rgba(109, 74, 255, .12); padding: 12px; border-radius: 12px; }
.feature-card h3 { margin: 14px 0 6px; font-size: 16.5px; }
.feature-card p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; }
.step-num { position: absolute; top: -16px; left: 22px; background: var(--accent-grad); color: #fff; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 800; }
.step h3 { font-size: 16px; margin: 8px 0 6px; }
.step p { color: var(--text-2); font-size: 13.5px; margin: 0; }
.security-band { padding: 40px 22px 90px; }
.security-inner { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 36px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; box-shadow: var(--shadow); }
.security-inner h2 { margin: 0 0 10px; font-size: 24px; }
.security-inner p { color: var(--text-2); margin: 0; }
.crypto-cards { display: grid; gap: 10px; }
.crypto-cards div { background: var(--surface-2); border: 1px solid var(--border); padding: 13px 16px; border-radius: 11px; display: flex; flex-direction: column; }
.crypto-cards b { font-family: var(--mono); font-size: 14px; }
.crypto-cards span { color: var(--text-2); font-size: 12px; }
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 34px 0; }
.footer-inner { display: flex; flex-direction: column; gap: 8px; align-items: center; color: var(--text-2); font-size: 14px; }
.footer-links a { margin: 0 4px; }

/* ---------------- auth pages ---------------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px 18px; background: var(--bg); position: relative; overflow: hidden; }
.auth-wrap::before { content: ""; position: absolute; inset: 0; background: var(--hero-glow); pointer-events: none; }
.auth-card { position: relative; width: 100%; max-width: 430px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 34px; box-shadow: var(--shadow); }
.auth-brand { margin-bottom: 18px; }
.auth-card h1 { margin: 0 0 4px; font-size: 26px; }
.auth-sub { color: var(--text-2); margin: 0 0 20px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 12.5px; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-alt { margin: 18px 0 0; text-align: center; color: var(--text-2); }
.auth-note { margin: 14px 0 0; text-align: center; color: var(--text-2); font-size: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input, .field select, input[type="text"], input[type="password"], input[type="email"],
input[type="url"], input[type="search"], select {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 11px 13px; border-radius: var(--radius-sm); font-size: 14.5px; font-family: var(--font);
  outline: none; transition: border-color .15s, box-shadow .15s; width: 100%;
}
.field input:focus, input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109, 74, 255, .18); }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.pw-meter { height: 5px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.pw-meter div { height: 100%; width: 0; transition: .25s; border-radius: 99px; }
.pw-meter div[data-strength="weak"] { background: var(--danger); width: 25% !important; }
.pw-meter div[data-strength="mid"] { background: var(--warn); width: 55% !important; }
.pw-meter div[data-strength="strong"] { background: var(--ok); width: 100% !important; }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 14px; }
.alert-error { background: rgba(255, 84, 112, .12); color: var(--danger); border: 1px solid rgba(255, 84, 112, .35); }
.alert-ok { background: rgba(43, 213, 118, .1); color: var(--ok); border: 1px solid rgba(43, 213, 118, .3); }

/* ---------------- app shell ---------------- */
.app { display: grid; grid-template-columns: 262px 1fr; min-height: 100vh; }
.sidebar { background: var(--bg-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 20px 14px; gap: 18px; position: sticky; top: 0; height: 100vh; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-item { display: flex; align-items: center; gap: 12px; padding: 10px 13px; border-radius: var(--radius-sm); background: transparent; border: none; color: var(--text-2); font-size: 14.5px; font-weight: 600; cursor: pointer; text-align: left; transition: .15s; }
.side-item:hover { background: var(--surface-2); color: var(--text); }
.side-item.active { background: rgba(109, 74, 255, .14); color: var(--accent); }
.side-item i { width: 18px; text-align: center; }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.unlock-banner { display: flex; align-items: center; gap: 10px; background: linear-gradient(135deg, rgba(109, 74, 255, .2), rgba(0, 184, 217, .16)); border: 1px solid rgba(109, 74, 255, .45); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; }
.unlock-banner i { color: var(--accent-2); }
.unlock-banner b { display: block; font-size: 13px; }
.unlock-banner span { font-size: 12px; color: var(--text-2); font-family: var(--mono); }
.storage-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.storage-row { display: flex; gap: 10px; align-items: center; }
.storage-row > i { color: var(--accent-2); }
.storage-info { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.storage-info b { font-size: 13.5px; }
.storage-note { text-align: center; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.user-chip:hover { background: var(--surface-2); text-decoration: none; }
.user-chip-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.user-chip-txt b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip-txt span { font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar-initials { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent-grad); color: #fff; font-weight: 700; flex-shrink: 0; }
.avatar-img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 20; }
.search-wrap { flex: 1; max-width: 520px; position: relative; }
.search-wrap i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-2); font-size: 13px; }
.search-wrap input { padding-left: 36px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-tp { font-size: 13px; margin-left: 2px; }
.seg { display: flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.seg-btn { border: none; background: transparent; color: var(--text-2); padding: 8px 12px; cursor: pointer; }
.seg-btn.active { background: var(--accent); color: #fff; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: 46px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow); min-width: 180px; display: flex; flex-direction: column; padding: 5px; z-index: 60; }
.dropdown-menu button { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: transparent; border: none; color: var(--text); padding: 9px 11px; border-radius: 7px; cursor: pointer; font-size: 13.5px; }
.dropdown-menu button:hover { background: var(--surface-2); }
.sort-check { visibility: hidden; color: var(--accent); }
.crumbs { display: flex; align-items: center; gap: 6px; padding: 12px 22px 0; flex-wrap: wrap; }
.crumb { background: transparent; border: none; color: var(--text-2); font-size: 13.5px; cursor: pointer; padding: 4px 8px; border-radius: 7px; font-weight: 600; }
.crumb:hover { background: var(--surface-2); color: var(--text); }
.crumb.active { color: var(--text); }
.crumb-sep { font-size: 10px; color: var(--text-2); }
.content { flex: 1; padding: 18px 22px 90px; }

/* grid + list views */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }
.card-item { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; cursor: pointer; transition: .15s; display: flex; flex-direction: column; gap: 6px; }
.card-item:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.card-item.selected { border-color: var(--accent); background: rgba(109, 74, 255, .08); }
.card-thumb { height: 84px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 30px; color: var(--accent-2); }
.card-thumb.img { background-size: cover; background-position: center; }
.card-thumb.img i { display: none; }
.card-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { margin-top: -4px; }
.card-deadline { font-size: 11px; color: var(--warn); }
.star-badge { position: absolute; top: 10px; right: 10px; color: var(--warn); font-size: 12px; }
.shared-badge { position: absolute; top: 10px; right: 30px; color: var(--accent-2); font-size: 12px; }
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.list-head, .list-row { display: grid; grid-template-columns: 44px 1fr 110px 150px 44px; align-items: center; gap: 8px; padding: 10px 14px; }
.list-head { color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.list-row { cursor: pointer; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: var(--surface-2); }
.list-row.selected { background: rgba(109, 74, 255, .09); }
.li-ic { color: var(--accent-2); font-size: 17px; }
.li-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.star-inline { color: var(--warn); font-size: 11px; }
.shared-inline { color: var(--accent-2); font-size: 11px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; color: var(--text-2); text-align: center; gap: 6px; }
.empty-state i { font-size: 44px; color: var(--accent); opacity: .7; margin-bottom: 8px; }
.empty-state h3 { margin: 0; color: var(--text); }
.empty-state p { margin: 0 0 14px; }

/* upload dock */
.upload-dock { position: fixed; right: 22px; bottom: 22px; width: 380px; max-width: calc(100vw - 44px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 70; overflow: hidden; }
.dock-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.dock-head b { flex: 1; font-size: 14px; }
.dock-speed { font-family: var(--mono); font-size: 12.5px; color: var(--accent-2); }
.dock-body { max-height: 300px; overflow-y: auto; padding: 10px 14px; display: flex; flex-direction: column; gap: 12px; }
.dock-item-head { display: flex; align-items: center; gap: 9px; }
.dock-item-name { flex: 1; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-item-size { font-size: 12px; }
.dock-item-actions { display: flex; gap: 2px; }
.dock-item-actions .icon-btn { width: 28px; height: 28px; font-size: 12px; }
.dock-item-meta { display: flex; gap: 8px; font-size: 11.5px; }
.st-done { color: var(--ok); }
.st-error { color: var(--danger); }
.st-paused { color: var(--warn); }

/* selection bar */
.selbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 22px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); padding: 9px 12px; border-radius: 14px; z-index: 65; flex-wrap: wrap; max-width: calc(100vw - 40px); }

/* drop overlay */
.drop-overlay { position: fixed; inset: 0; background: rgba(109, 74, 255, .16); backdrop-filter: blur(3px); z-index: 90; display: none; align-items: center; justify-content: center; }
.drop-overlay.show { display: flex; }
.drop-overlay > div { background: var(--surface); border: 2px dashed var(--accent); border-radius: 20px; padding: 46px 70px; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.drop-overlay i { font-size: 52px; color: var(--accent); }
.drop-overlay b { font-size: 20px; }
.drop-overlay span { color: var(--text-2); }

/* modals */
.modal-root { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 9, 14, .66); backdrop-filter: blur(2px); }
.modal { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; width: min(560px, calc(100vw - 36px)); max-height: 86vh; overflow-y: auto; box-shadow: var(--shadow); }
.m-title { margin: 0 0 14px; font-size: 19px; display: flex; align-items: center; gap: 10px; }
.m-title i { color: var(--accent); }
.m-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.det { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 13px; display: flex; flex-direction: column; gap: 2px; }
.det span { font-size: 11.5px; color: var(--text-2); text-transform: uppercase; letter-spacing: .4px; }
.det b { font-size: 13.5px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: var(--surface-3); border-radius: 999px; padding: 4px 10px; font-weight: 600; }
.tag-ok { color: var(--ok); }

/* gallery */
.gallery { display: flex; align-items: center; gap: 10px; width: 100%; }
.gal-body { flex: 1; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.gal-body img { max-width: min(78vw, 720px); max-height: 62vh; border-radius: 12px; cursor: zoom-in; transition: .2s; background: var(--surface-2); }
.gal-body img.zoom { max-width: 96vw; max-height: 82vh; cursor: zoom-out; }
.gal-meta { display: flex; gap: 12px; align-items: baseline; }
.gal-nav { width: 44px; height: 44px; background: var(--surface-2); border: 1px solid var(--border); }
.gal-close { position: absolute; top: 12px; right: 12px; background: var(--surface-2); border: 1px solid var(--border); }

/* zip browser */
.zipb h3 { margin: 0 0 12px; display: flex; gap: 10px; align-items: center; }
.zipb h3 i { color: var(--accent-2); }
.zip-list { max-height: 56vh; overflow-y: auto; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; }
.zip-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; }
.zip-row:last-child { border-bottom: none; }
.zip-row:hover { background: var(--surface-2); }
.zip-row i { color: var(--accent-2); width: 16px; }
.zip-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* share modal bits */
.share-row { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; font-size: 13px; }
.share-row i { color: var(--accent); }
.share-row > div { flex: 1; display: flex; flex-direction: column; }
.key-band { display: flex; gap: 12px; align-items: flex-start; background: rgba(0, 184, 217, .08); border: 1px solid rgba(0, 184, 217, .35); padding: 13px 15px; border-radius: 12px; margin: 12px 0; }
.key-band > i { color: var(--accent-2); font-size: 18px; margin-top: 2px; }
.key-band > div { flex: 1; }
.key-band b { display: block; margin-bottom: 4px; }
.key-value { font-family: var(--mono); font-size: 12.5px; word-break: break-all; background: var(--surface-2); padding: 7px 10px; border-radius: 8px; }
.qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 12px; }
.qr-wrap img { width: 160px; height: 160px; background: #fff; padding: 8px; border-radius: 12px; }
.share-list { margin-bottom: 14px; }
.move-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.move-row { display: flex; gap: 10px; padding: 11px 14px; cursor: pointer; border-bottom: 1px solid var(--border); font-size: 14px; align-items: center; }
.move-row:last-child { border-bottom: none; }
.move-row:hover { background: var(--surface-2); }
.move-row i { color: var(--accent-2); }

/* context menu */
.ctx-menu { position: fixed; z-index: 120; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); min-width: 200px; padding: 5px; display: flex; flex-direction: column; }
.ctx-menu button { display: flex; gap: 10px; align-items: center; background: transparent; border: none; color: var(--text); padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 13.5px; text-align: left; }
.ctx-menu button:hover { background: var(--surface-2); }
.ctx-menu i { width: 15px; color: var(--text-2); }

/* toasts */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 9px; }
.toast { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); padding: 12px 16px; border-radius: 11px; box-shadow: var(--shadow); font-size: 13.5px; max-width: 380px; opacity: 0; transform: translateX(20px); transition: .25s; }
.toast.show { opacity: 1; transform: translateX(0); }
.toast-ok { border-left-color: var(--ok); } .toast-ok i { color: var(--ok); }
.toast-err { border-left-color: var(--danger); } .toast-err i { color: var(--danger); }
.toast-info i { color: var(--accent-2); }
.welcome-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 150; display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--ok); padding: 14px 20px; border-radius: 13px; box-shadow: var(--shadow); transition: .4s; }
.welcome-toast i { font-size: 22px; color: var(--ok); }
.welcome-toast b { display: block; }
.welcome-toast span { color: var(--text-2); font-size: 13px; }
.welcome-toast.gone { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(16px); }

/* spinner */
.spinner-lg { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- share page ---------------- */
.share-page { min-height: 100vh; position: relative; overflow-x: hidden; }
.share-bg { position: fixed; inset: 0; background: var(--hero-glow); pointer-events: none; }
.share-main { position: relative; padding: 40px 22px 80px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.share-card { width: 100%; max-width: 620px; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); }
.card-error { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.card-error i { font-size: 46px; color: var(--danger); }
.share-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.share-icon { width: 78px; height: 78px; border-radius: 18px; background: rgba(109, 74, 255, .12); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 32px; flex-shrink: 0; }
.share-name { margin: 0 0 6px; font-size: 21px; word-break: break-all; }
.share-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; }
.share-meta i { color: var(--accent-2); margin-right: 4px; }
.verify-band, .limit-band { display: flex; gap: 13px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--border); padding: 15px 17px; border-radius: 13px; margin: 18px 0; }
.verify-band i { color: var(--accent); font-size: 20px; margin-top: 2px; }
.verify-band p, .limit-band p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
.limit-band i { color: var(--accent-2); font-size: 18px; margin-top: 3px; }
.bypass-details { margin-top: 16px; }
.bypass-details summary { cursor: pointer; font-size: 13.5px; color: var(--text-2); }
.bypass-details .row { display: flex; gap: 8px; margin-top: 8px; }
.row { display: flex; gap: 10px; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.dl-progress { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.share-footer-badges { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; color: var(--text-2); font-size: 12.5px; }
.share-footer-badges i { color: var(--ok); margin-right: 5px; }

/* ---------------- profile ---------------- */
.profile-main { padding: 30px 22px 80px; }
.profile-grid { display: grid; grid-template-columns: 1.4fr .9fr; gap: 20px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.profile-head { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 22px; text-align: center; }
.avatar-actions { display: flex; gap: 8px; margin-top: 10px; }
.profile-head h1 { margin: 8px 0 0; font-size: 24px; }
.profile-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px; }
.stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 13px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.stat i { color: var(--accent); }
.stat b { font-size: 17px; }
.stat span { font-size: 11.5px; color: var(--text-2); }
.profile-form { margin-top: 24px; }
.profile-form h3 { margin: 0 0 10px; font-size: 15.5px; display: flex; gap: 8px; align-items: center; }
.profile-form h3 i { color: var(--accent-2); }
.profile-actions { margin-top: 24px; }
.profile-actions h3 { margin: 0 0 10px; font-size: 15.5px; display: flex; gap: 8px; align-items: center; }
.shortcut-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: var(--text-2); }
.shortcut-list.big { font-size: 14.5px; color: var(--text); }
kbd { background: var(--surface-3); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; padding: 2px 7px; font-family: var(--mono); font-size: 12px; color: var(--text); }

/* ---------------- decrypt page ---------------- */
.decrypt-main { max-width: 640px; padding: 50px 22px 90px; display: flex; flex-direction: column; }
.decrypt-card h1 { display: flex; gap: 10px; align-items: center; margin: 0 0 8px; font-size: 22px; }
.decrypt-card h1 i { color: var(--accent-2); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed var(--border); border-radius: 14px; padding: 34px; margin: 18px 0; cursor: pointer; transition: .15s; color: var(--text-2); }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: rgba(109, 74, 255, .06); }
.dropzone i { font-size: 34px; color: var(--accent); }
.dropzone input { display: none; }
.decrypt-card .field { margin: 12px 0; }
.decrypt-card .btn-block { margin-top: 8px; }

/* ---------------- responsive ---------------- */
.only-mobile { display: none; }
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .steps { grid-template-columns: 1fr; }
  .security-inner { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 80; left: -280px; width: 262px; transition: .25s; height: 100vh; }
  .sidebar.open { left: 0; box-shadow: var(--shadow); }
  .only-mobile { display: inline-flex; }
  .btn-tp { display: none; }
  .hero h1 { font-size: 36px; }
  .list-head, .list-row { grid-template-columns: 34px 1fr 80px 40px; }
  .list-head span:nth-child(4), .list-row span:nth-child(4) { display: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .float-chip { display: none; }
}

/* =========================================================================
   Plans, checkout, billing, legal pages (added with the billing feature)
   ========================================================================= */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page-main { flex: 1; padding: 34px 0 60px; }
.page-main.narrow { max-width: 980px; }
.page-title { font-size: 30px; display: flex; align-items: center; gap: 12px; margin: 6px 0 8px; }
.page-title i { color: var(--accent); font-size: 24px; }
.page-sub { color: var(--muted); max-width: 640px; margin: 0 0 28px; }

/* plan cards ------------------------------------------------------------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-bottom: 26px; }
.plan-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.plan-featured { border: 1px solid rgba(109, 74, 255, .65); box-shadow: 0 12px 40px rgba(109, 74, 255, .18); }
.plan-flag { position: absolute; top: -12px; right: 18px; background: var(--accent-grad); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan-name { font-size: 19px; margin: 0; }
.plan-price b { font-size: 34px; }
.plan-price span { color: var(--muted); margin-left: 4px; }
.plan-quota { font-weight: 700; color: var(--accent-2); }
.plan-tagline { margin: 0; font-size: 13.5px; }
.plan-perks { list-style: none; margin: 10px 0 16px; padding: 0; display: grid; gap: 8px; font-size: 13.5px; flex: 1; }
.plan-perks i { color: var(--ok); margin-right: 4px; }
.promo-hint { display: flex; gap: 12px; align-items: flex-start; }
.promo-hint > i { color: var(--warn); font-size: 20px; margin-top: 2px; }

/* checkout ---------------------------------------------------------------- */
.checkout-summary { margin-bottom: 18px; padding: 18px 22px; }
.cs-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.cs-row b { font-size: 17px; display: block; }
.cs-price { font-size: 30px; font-weight: 800; color: var(--accent); }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-card { display: flex; flex-direction: column; gap: 14px; }
.pay-head { display: flex; gap: 12px; align-items: center; }
.pay-head > i { font-size: 22px; color: var(--accent); width: 34px; height: 34px; display: grid; place-items: center; background: rgba(109, 74, 255, .12); border-radius: 10px; }
.pay-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; color: var(--muted); flex: 1; }
.pay-steps > li { display: flex; gap: 10px; align-items: flex-start; }
.pay-steps > li > i { font-style: normal; font-weight: 800; font-size: 12px; width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-3); color: var(--text); margin-top: 1px; }
.pay-note { margin: 0; }
.claim-done { text-align: center; padding: 40px 26px; display: grid; gap: 12px; justify-items: center; }
.claim-done > i { font-size: 40px; color: var(--warn); }

/* billing ------------------------------------------------------------------ */
.bill-card { margin-bottom: 18px; }
.bill-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.bill-head h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; flex-wrap: wrap; }
.bill-card p { margin: 0; }
.upg-grid { margin-top: 16px; display: grid; gap: 10px; }
.upg-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); }
.warn-text { color: var(--warn); }
.archive-card { border: 1px solid rgba(255, 176, 32, .45); margin-bottom: 18px; }
.archive-card h3 { display: flex; gap: 10px; align-items: center; margin-top: 0; }
.archive-card .center { margin-top: 12px; }
.promo-card { margin-bottom: 18px; }
.promo-card h3 { margin-top: 0; display: flex; gap: 10px; align-items: center; }
.promo-card .row { display: flex; gap: 10px; margin: 14px 0 10px; }
.promo-card input[type="text"] { flex: 1; font-family: var(--mono); letter-spacing: 1px; }
.bill-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.bill-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.bill-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
.bill-table tr:last-child td { border-bottom: 0; }
.tag-plan { color: #cdbcff; background: rgba(109, 74, 255, .14); }
.tag-warn { color: var(--warn); }
.tag-danger { color: var(--danger); }
.admin-actions { display: flex; gap: 8px; }
.inline { display: inline; }
.auth-admin h3 { margin-top: 0; }
.card h3 { margin-top: 0; }

/* malware flag warning ------------------------------------------------------ */
.alert-flag { background: rgba(255, 84, 112, .1); color: var(--danger); border: 1px solid rgba(255, 84, 112, .4); margin: 0 0 14px; }
.alert-flag b { color: var(--danger); }
.alert-flag p { margin: 4px 0 0; }
.alert-warn { background: rgba(255, 176, 32, .1); color: var(--warn); border: 1px solid rgba(255, 176, 32, .4); }
.alert-warn a { color: inherit; font-weight: 700; }
.plan-alert { margin: 14px auto 0; max-width: 1200px; width: calc(100% - 36px); position: relative; z-index: 130; }
.flagged-badge, .flagged-inline { color: var(--danger); }
.flagged-badge { position: absolute; top: 10px; left: 10px; font-size: 13px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }

/* register TOS checkbox ------------------------------------------------------ */
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin: 4px 0 14px; cursor: pointer; }
.check-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check-row a { color: var(--accent-2); }

/* legal pages ----------------------------------------------------------------- */
.legal h2 { font-size: 18px; margin: 26px 0 8px; }
.legal p, .legal li { line-height: 1.65; color: var(--text-soft, var(--text)); font-size: 14.5px; }
.legal ul { padding-left: 22px; }
.legal code { background: var(--surface-3); padding: 1px 6px; border-radius: 6px; font-family: var(--mono); font-size: 12.5px; }
.legal-updated { margin-top: -4px; }
.legal-nav { display: flex; gap: 22px; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--border); }
.legal-nav a { color: var(--accent-2); font-weight: 600; }

.mono { font-family: var(--mono); }
.center { text-align: center; }

/* ============================ ADMIN & MODERATION (added last) ============== */

/* held / banned alerts ------------------------------------------------------ */
.alert-hold { border-color: #a3872c; background: rgba(163,135,44,.12); color: #ffd66b; }
.alert-ban  { border-color: #a83a3a; background: rgba(168,58,58,.14); color: #ffb3b3; }
.vault-status { margin: 14px auto 0; max-width: 1200px; width: calc(100% - 36px); position: relative; z-index: 130; }
.share-mod-band { margin: 14px 0 4px; }
[data-theme="light"] .alert-hold { background: #fdf3d7; color: #7a5c00; }
[data-theme="light"] .alert-ban  { background: #fde3e3; color: #8c1d1d; }
.side-admin span { color: #ffd66b; }

/* report button + box on share pages ---------------------------------------- */
.report-band { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 0 0 14px; }
.report-box { max-width: 560px; margin: 0 auto 18px; text-align: left; }
.report-box h3 { margin: 0 0 10px; }

/* admin shell ---------------------------------------------------------------- */
.admin-page { min-height: 100vh; }
.admin-main { padding: 22px 18px 60px; }
.admin-gate { max-width: 520px; margin: 40px auto; text-align: center; padding: 30px 26px; }
.admin-gate h1 { font-size: 22px; margin: 0 0 6px; }
.admin-login { display: grid; gap: 12px; margin-top: 14px; text-align: left; }
.admin-head { margin-bottom: 16px; }
.admin-head-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.admin-head h1 { font-size: 20px; margin: 0; }
.admin-head-actions { display: flex; gap: 10px; align-items: center; }
.admin-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.stat-chip { font-size: 12.5px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-soft, var(--text)); }
.stat-chip b { color: var(--text); margin-right: 4px; }
.stat-chip.warn { border-color: #a3872c; color: #ffd66b; }
.stat-chip b.ok-ic { color: #57d97a; }
.ok-ic { color: #57d97a; }

.admin-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.admin-tabs .tab { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft, var(--text));
  padding: 8px 16px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; display: flex; gap: 8px; align-items: center; }
.admin-tabs .tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.badge { background: #e03131; color: #fff; font-size: 11px; min-width: 20px; height: 20px; border-radius: 99px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

.admin-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.admin-toolbar input[type="search"], .admin-toolbar input[type="text"], .admin-toolbar select {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text); padding: 8px 12px; border-radius: 9px; font-size: 13.5px; }
.admin-toolbar .sep { width: 1px; height: 24px; background: var(--border); }
.admin-list { display: grid; gap: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.admin-table th { text-align: left; padding: 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-soft, var(--text)); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.block { display: block; }

.status-pill { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 99px; border: 1px solid; white-space: nowrap; }
.st-active  { color: #57d97a; border-color: #2e7d43; background: rgba(87,217,122,.1); }
.st-hold    { color: #ffd66b; border-color: #a3872c; background: rgba(163,135,44,.12); }
.st-banned  { color: #ff7a7a; border-color: #a83a3a; background: rgba(168,58,58,.14); }
.st-open    { color: #ff9f43; border-color: #b26a1f; background: rgba(255,159,67,.1); }
.st-claimed { color: #6db3ff; border-color: #2a6db3; background: rgba(109,179,255,.1); }
.st-resolved, .st-done, .st-accepted, .st-dismissed, .st-denied, .st-pending { color: var(--text-soft, var(--text)); border-color: var(--border); background: var(--surface-3); }
.st-pending { color: #ffd66b; border-color: #a3872c; }
.st-accepted { color: #57d97a; border-color: #2e7d43; }
.st-denied, .st-dismissed { color: #ff9f9f; }
.tag-role { border-color: #6d4aff; color: #b8a6ff; }

.report-row, .appeal-row { padding: 14px 16px; }
.report-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.report-name { font-size: 14.5px; }
.reason-pill { font-size: 12px; padding: 2px 10px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--border); }
.report-details { background: var(--surface-3); border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: 8px; font-size: 13.5px; margin: 8px 0; overflow-wrap: anywhere; }
.report-details.ok { border-color: #2e7d43; }
.report-details.warn { border-color: #a3872c; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
/* hold/ban/unban buttons inside a users-table cell: no extra margin */
.admin-table .row-actions { margin-top: 0; gap: 6px; align-items: center; }
.btn-warn { border-color: #a3872c; color: #ffd66b; }
.btn-warn:hover { background: rgba(163,135,44,.15); }

.user-detail h3 { margin: 18px 0 8px; font-size: 14.5px; }
.file-mini-list { display: grid; gap: 6px; }
.file-mini { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); font-size: 13.5px; }
.file-mini .fm-name { flex: 1; overflow-wrap: anywhere; }
.btn-xs { padding: 3px 10px; font-size: 12px; border-radius: 7px; }

.appeal-mini { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.appeal-form, .staff-form { display: grid; gap: 14px; text-align: left; }
.qa-list { display: grid; gap: 10px; }
.qa { border-left: 3px solid var(--border); padding-left: 10px; }
.qa p { margin: 3px 0 0; color: var(--text-soft, var(--text)); font-size: 13.5px; }

/* audit terminal ------------------------------------------------------------- */
.term { background: #0a0e14; border: 1px solid #1d2633; border-radius: 12px; overflow: hidden; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.term-head { padding: 8px 14px; background: #111823; color: #7ee787; font-size: 12.5px; border-bottom: 1px solid #1d2633; }
.term-body { height: 420px; overflow-y: auto; padding: 12px 14px; font-size: 12.8px; line-height: 1.7; color: #c9d1d9; }
.tl { white-space: pre-wrap; overflow-wrap: anywhere; }
.t-ts { color: #586f88; }
.t-actor { color: #79c0ff; font-weight: 700; }
.t-act { color: #7ee787; font-weight: 700; }
.t-target { color: #e6edf3; }
.t-reason { color: #ffab70; }
.t-ban .t-act { color: #ff7b72; }
.t-hold .t-act { color: #e3b341; }
.t-report .t-act { color: #ff9f43; }
.t-staff .t-act { color: #d2a8ff; }
.t-user .t-act { color: #7ee787; }
.t-user .t-actor { color: #7ee787; }
.t-muted { color: #586f88; }

/* 2FA / promo popup ----------------------------------------------------------- */
.qr-center { display: grid; place-items: center; gap: 10px; margin: 14px 0; text-align: center; }
.qr-center img { border-radius: 10px; background: #fff; padding: 8px; }
.totp-secret { background: var(--surface-3); padding: 4px 10px; border-radius: 8px; font-family: var(--mono); font-size: 12.5px; letter-spacing: 1px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.promo-pop { text-align: center; padding: 8px 6px; }
.promo-star { font-size: 40px; color: #ffd66b; margin-bottom: 8px; }
.promo-pop h2 { margin: 0 0 8px; font-size: 22px; }
.promo-id { font-family: var(--mono); font-size: 22px; font-weight: 800; letter-spacing: 3px;
  background: var(--surface-3); border: 1px dashed var(--accent); color: var(--accent-2, #6db3ff);
  padding: 12px 18px; border-radius: 12px; margin: 10px 0 14px; }
#promoModalRoot { z-index: 200; }

@media (max-width: 760px) {
  .admin-stats { gap: 6px; }
  .term-body { height: 320px; }
  .admin-table { display: block; overflow-x: auto; }
}

/* music + video previews (vault + share page) --------------------------------- */
.media-preview { min-height: 120px; display: flex; align-items: center; justify-content: center;
  background: rgba(127, 127, 127, .14); border-radius: var(--radius); padding: 12px; margin: 8px 0; }
.media-preview:empty, .media-preview[hidden] { display: none; }
.share-mp { margin: 10px 0; }
.audio-card { display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); }
.audio-card i { font-size: 34px; color: var(--accent); flex-shrink: 0; }
.audio-card audio { flex: 1; min-width: 0; }

/* sidebar links that leave the dashboard (Vault sharing) ---------------------- */
a.side-item { text-decoration: none; color: var(--text-2); }
a.side-item:hover { color: var(--text); }

/* vault sharing page ----------------------------------------------------------- */
.vault-row { display: flex; align-items: center; gap: 10px; padding: 10px 6px;
  border-bottom: 1px solid var(--border); }
.vault-row:last-child { border-bottom: none; }
.vault-row .fm-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vault-row i.li-ic { color: var(--accent-2); width: 20px; text-align: center; }
.vb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.vb-owner { display: flex; align-items: center; gap: 10px; padding: 11px 8px;
  border-bottom: 1px solid var(--border); cursor: pointer; border-radius: var(--radius-sm); transition: .15s; }
.vb-owner:hover { background: var(--surface-2); }
.vb-owner:last-child { border-bottom: none; }
.vb-owner .fm-name { flex: 1; min-width: 0; }
.danger-zone { border: 1px solid rgba(255, 84, 112, .45); border-radius: var(--radius);
  padding: 14px 16px; margin-top: 14px; background: rgba(255, 84, 112, .06); }
.danger-zone h3 { color: var(--danger); margin-top: 0; }
