/* ============================================================
   Filora
   Design: Glassmorphism ✕ Neumorphism Hybrid
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  /* Base surface */
  --base:       #0d0f1e;
  --surface:    #12152a;
  --surface-2:  #181c32;

  /* Neo-Glass card */
  --glass-bg:   rgba(18, 22, 46, 0.55);
  --glass-b:    rgba(255,255,255,0.08);
  --glass-shine:rgba(255,255,255,0.04);

  /* Neumorphic shadows (dark) */
  --neu-out:    -6px -6px 14px rgba(255,255,255,0.035),
                 6px  6px 14px rgba(0,0,0,0.7);
  --neu-in:     inset -3px -3px 8px rgba(255,255,255,0.03),
                inset  3px  3px 8px rgba(0,0,0,0.5);
  --neu-btn:    -4px -4px 10px rgba(255,255,255,0.04),
                 4px  4px 10px rgba(0,0,0,0.55);

  /* Accent palette */
  --a1:   #7b6fff;   /* primary violet */
  --a2:   #b06bff;   /* purple */
  --a3:   #4fd8eb;   /* cyan */
  --ag1:  rgba(123,111,255,0.30);
  --ag2:  rgba(79,216,235,0.20);

  /* Text */
  --ink:    #dce8ff;
  --ink-2:  #9aaac8;
  --ink-3:  #5a6a88;

  /* Status */
  --ok:    #34d399;
  --ok-g:  rgba(52,211,153,0.25);
  --err:   #f87171;
  --err-g: rgba(248,113,113,0.22);

  /* Misc */
  --line:    rgba(255,255,255,0.07);
  --blur:    blur(22px) saturate(180%);
  --blur-sm: blur(12px) saturate(140%);
  --r:    22px;
  --r-sm: 13px;
  --r-xs: 9px;
  --ease: cubic-bezier(.4,0,.2,1);
  --t:    0.24s;
}

/* ── Reset ───────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
img, a.brand, a.sidebar-brand, .sidebar-logo, .brand-logo, .sidebar-brand-text, .brand-text {
  -webkit-user-drag: none !important;
  user-drag: none !important;
}
/* ── Media Players (Audio / Video) Download Disabling ── */
video::-internal-media-controls-download-button,
audio::-internal-media-controls-download-button {
  display: none !important;
}
video::-webkit-media-controls-download-button,
audio::-webkit-media-controls-download-button {
  display: none !important;
}
/* ── Global Soft Glowing Scrollbars ── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 12, 28, 0.45);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(123, 111, 255, 0.45) 0%, rgba(79, 216, 235, 0.45) 100%);
  border-radius: 99px;
  border: 2px solid rgba(12, 14, 30, 0.7);
  transition: all .25s ease;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(123, 111, 255, 0.85) 0%, rgba(79, 216, 235, 0.85) 100%);
  box-shadow: 0 0 12px rgba(123, 111, 255, 0.6);
}
body{
  font-family:'Manrope',system-ui,-apple-system,sans-serif;
  font-size:15px;line-height:1.65;
  color:var(--ink);
  background:var(--base);
  min-height:100vh;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;
  gap:20px;padding:24px 16px;
  position:relative;overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

/* ── Background ──────────────────────────────────────────── */
body::before {
  content:'';
  position:fixed;inset:0;z-index:0;
  background:
    url('/bg.jpg') center/cover no-repeat fixed;
  opacity:.75;
  pointer-events:none;
}
/* dark overlay so content stays readable */
body::after {
  content:'';
  position:fixed;inset:0;z-index:0;
  background:linear-gradient(
    135deg,
    rgba(5,6,18,0.72) 0%,
    rgba(10,8,28,0.60) 50%,
    rgba(6,4,20,0.75) 100%
  );
  pointer-events:none;
}

/* Animated CSS aurora blobs on top of the image */
.aurora-wrap {
  position:fixed;inset:0;z-index:0;
  overflow:hidden;pointer-events:none;
}
.aurora-wrap span {
  position:absolute;border-radius:50%;filter:blur(90px);
  animation:drift 18s ease-in-out infinite alternate;
  mix-blend-mode:screen;
}
.aurora-wrap span:nth-child(1){
  width:520px;height:520px;
  background:radial-gradient(circle,rgba(80,60,255,.22),transparent 70%);
  top:-100px;left:-80px;animation-delay:0s;
}
.aurora-wrap span:nth-child(2){
  width:420px;height:420px;
  background:radial-gradient(circle,rgba(160,80,255,.18),transparent 70%);
  bottom:-60px;right:-60px;animation-delay:-7s;
  animation-direction:alternate-reverse;
}
.aurora-wrap span:nth-child(3){
  width:300px;height:300px;
  background:radial-gradient(circle,rgba(30,200,230,.14),transparent 70%);
  top:40%;right:10%;animation-delay:-4s;
}
@keyframes drift {
  0%  {transform:translate(0,0)   scale(1)}
  50% {transform:translate(35px,25px) scale(1.1)}
  100%{transform:translate(-20px,45px) scale(.93)}
}

/* ── Main content z-index ────────────────────────────────── */
main,footer,.card{position:relative;z-index:1}

/* ── Neo-Glass Card ──────────────────────────────────────── */
.card {
  background: var(--glass-bg);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--glass-b);
  border-radius: var(--r);
  padding: 38px 34px;
  width: 100%;
  max-width: 500px;

  /* Neumorphic outer shadow + glass highlight */
  box-shadow:
    var(--neu-out),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 30px 60px rgba(0,0,0,0.5);

  /* Top-left glass shine */
  position: relative;
  overflow: hidden;

  animation: cardIn .5s var(--ease) both;
  transition: box-shadow var(--t) var(--ease);
}
.card::before {
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,0.15),transparent);
  pointer-events:none;
}
.card::after {
  content:'';
  position:absolute;
  top:0;left:0;
  width:50%;height:50%;
  background:radial-gradient(ellipse at top left,rgba(255,255,255,0.05),transparent 70%);
  pointer-events:none;
  border-radius:inherit;
}
@keyframes cardIn {
  from{opacity:0;transform:translateY(22px) scale(.97)}
  to  {opacity:1;transform:translateY(0)    scale(1)}
}
.narrow{text-align:center}
.wide  {max-width:760px}
.xl    {max-width:1040px}
.card.wide,
.card.xl {
  overflow: visible !important;
}

/* ── Brand ───────────────────────────────────────────────── */
.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 24px;
  color: #c4b5fd;
  filter: drop-shadow(0 0 10px rgba(123,111,255,.5));
  transition: filter var(--t), transform var(--t);
}
.brand-logo {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(123, 111, 255, 0.5));
  transition: transform var(--t), filter var(--t);
  user-select: none;
  pointer-events: none;
}
.brand:hover .brand-logo {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 4px 18px rgba(123, 111, 255, 0.85));
}
.brand-text {
  display: inline-block;
  font-weight: 900;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #c4b5fd;
}
@supports (-webkit-background-clip:text) or (background-clip:text) {
  .brand-text,
  .brand:not(:has(.brand-logo)) {
    background: linear-gradient(135deg, var(--a3), var(--a1), var(--a2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
}
.brand:hover { filter: drop-shadow(0 0 20px rgba(123,111,255,.8)); }
.narrow .brand,
.card:not(.wide):not(.xl) .brand {
  justify-content: center;
  margin-bottom: 28px;
}
.wide .brand {
  align-items: center;
  justify-content: flex-start;
}

/* ── Typography ──────────────────────────────────────────── */
h1{
  font-size:1.7rem;font-weight:800;
  line-height:1.2;letter-spacing:-.03em;
  background:linear-gradient(135deg,#e8f0ff 0%,#a8beee 100%);
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
  margin:0 0 5px;
}
h2{
  font-size:1.05rem;font-weight:700;
  color:var(--ink-2);margin:26px 0 10px;
  letter-spacing:.01em;
}
.fname{overflow-wrap:anywhere}
.muted{color:var(--ink-2);margin:4px 0 18px;font-size:.93rem}
.small{font-size:.87rem}
.small a{color:var(--a1)}

/* ── Tabs (Neo-Glass pill + gliding indicator) ──────────── */
.tabs {
  position: relative;
  display: flex;
  margin: 18px 0 20px;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 4px;
  box-shadow: var(--neu-in);
  overflow: hidden;
  user-select: none;
}
.tab-glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: linear-gradient(135deg, var(--a1), var(--a2));
  border-radius: 12px;
  box-shadow:
    0 4px 18px rgba(123,111,255,.5),
    0 1px 0 rgba(255,255,255,0.3) inset;
  transition: transform .38s cubic-bezier(.34, 1.35, .64, 1);
  pointer-events: none;
  z-index: 1;
}
.tabs[data-tab="register"] .tab-glider {
  transform: translateX(100%);
}
.tab {
  flex: 1;
  position: relative;
  z-index: 2;
  background: transparent !important;
  border: none;
  color: var(--ink-3);
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: color .25s ease, transform .15s ease;
  box-shadow: none !important;
}
.tab:active { transform: scale(.96); }
.tab[aria-selected=true] {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.tab:hover:not([aria-selected=true]) {
  color: var(--ink);
}

/* ── Fields ──────────────────────────────────────────────── */
.field{display:block;text-align:left;margin:0 0 14px}
.field>span{
  display:block;font-size:.83rem;font-weight:700;
  color:var(--ink-3);margin-bottom:6px;
  letter-spacing:.04em;text-transform:uppercase;
}

/* Neumorphic input */
.field input,
.field select {
  width:100%;
  padding:11px 14px;
  border:1px solid rgba(255,255,255,0.06);
  border-radius:var(--r-sm);
  background:rgba(8,10,24,0.6);
  backdrop-filter:var(--blur-sm);
  -webkit-backdrop-filter:var(--blur-sm);
  color:var(--ink);
  font:inherit;font-size:.94rem;
  outline:none;
  -webkit-appearance:none;
  appearance:none;
  box-shadow:var(--neu-in);
  transition:all var(--t) var(--ease);
}
.field input::placeholder{color:var(--ink-3)}
.field input:focus,
.field select:focus{
  border-color:rgba(123,111,255,.5);
  background:rgba(20,16,50,0.65);
  box-shadow:
    var(--neu-in),
    0 0 0 3px rgba(123,111,255,.18),
    0 0 18px rgba(123,111,255,.12);
}
.field select{
  cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235a6a88' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 12px center;
  padding-right:36px;
}

/* Input icon wrapper */
.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.input-icon-wrap input {
  flex: 1;
  padding-left: 48px !important;
  padding-right: 48px !important;
}

/* ── Neumorphic Input Icon Badge ─────────────────────────── */
.input-icon {
  position: absolute;
  left: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(28, 33, 64, 0.95), rgba(12, 14, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    2px 2px 6px rgba(0, 0, 0, 0.55),
    -1px -1px 3px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-size: .88rem;
  line-height: 1;
  pointer-events: none;
  transition: all .25s cubic-bezier(.34, 1.25, .64, 1);
  z-index: 2;
  user-select: none;
  color: #c4b5fd;
}
.input-icon svg,
.eye-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  display: block;
  transition: stroke .2s ease, filter .2s ease, transform .2s ease;
}
.field:focus-within .input-icon {
  border-color: rgba(123, 111, 255, 0.5);
  box-shadow:
    0 0 14px rgba(123, 111, 255, 0.4),
    2px 2px 6px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.08);
  color: #a78bfa;
}
.field:focus-within .input-icon svg {
  filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.8));
}

/* ── Neumorphic Eye Toggle Button ────────────────────────── */
.eye-btn {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(28, 33, 64, 0.9), rgba(12, 14, 28, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    2px 2px 6px rgba(0, 0, 0, 0.5),
    -1px -1px 3px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  line-height: 1;
  color: var(--ink-2);
  transition: all .2s cubic-bezier(.34, 1.35, .64, 1);
  padding: 0;
  z-index: 2;
}
.eye-btn:hover {
  background: linear-gradient(135deg, rgba(42, 49, 95, 0.95), rgba(18, 22, 45, 0.98));
  color: #38bdf8;
  border-color: rgba(123, 111, 255, 0.45);
  box-shadow:
    3px 3px 10px rgba(0, 0, 0, 0.6),
    -1px -1px 4px rgba(255, 255, 255, 0.08),
    0 0 14px rgba(123, 111, 255, 0.35);
  transform: translateY(-50%) scale(1.1);
}
.eye-btn:hover svg {
  filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.8));
}
.eye-btn:active {
  transform: translateY(-50%) scale(0.94);
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.7),
    inset -1px -1px 3px rgba(255, 255, 255, 0.05);
}

/* Password strength bar */
.pw-strength-bar{
  height:3px;
  background:rgba(255,255,255,0.06);
  border-radius:99px;overflow:hidden;
  margin:7px 0 3px;
  box-shadow:inset 0 1px 3px rgba(0,0,0,0.4);
}
.pw-strength-bar i{
  display:block;height:100%;width:0;
  transition:width .35s var(--ease),background .35s;
  border-radius:99px;
}
.field-hint{
  display:block;color:var(--ink-3);
  font-size:.79rem;margin-top:3px;
  transition:color var(--t);
}

/* ── Buttons (Ultra-Premium Neumorphic Glow) ─────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 50%, #0ea5e9 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 99px;
  padding: 13px 28px;
  font: inherit;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 24px -3px rgba(79, 70, 229, 0.6),
    0 2px 8px rgba(0, 0, 0, 0.4),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.5),
    inset 0 -2px 5px rgba(0, 0, 0, 0.3);
  transition: all .25s cubic-bezier(.34, 1.56, .64, 1);
}
.btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #38bdf8 100%);
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow:
    0 12px 32px -2px rgba(99, 102, 241, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.5),
    inset 0 2px 2px rgba(255, 255, 255, 0.65),
    inset 0 -2px 6px rgba(0, 0, 0, 0.3);
}
.btn:active {
  transform: translateY(0) scale(0.96);
  box-shadow:
    0 4px 14px rgba(99, 102, 241, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.4);
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(25deg);
  pointer-events: none;
  transition: none;
}
.btn:hover {
  transform: translateY(-2px) scale(1.01);
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 50%, #3b82f6 100%);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow:
    0 12px 32px -2px rgba(99, 102, 241, 0.75),
    0 4px 12px rgba(0, 0, 0, 0.5),
    inset 0 1px 1px rgba(255, 255, 255, 0.5);
}
.btn:hover::after {
  left: 125%;
  transition: left .65s ease-in-out;
}
.btn:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 4px 12px rgba(79, 70, 229, 0.4),
    inset 0 2px 5px rgba(0, 0, 0, 0.5);
}
.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Ghost btn — neumorphic raised */
.btn.ghost{
  background:rgba(18,22,46,0.5);
  color:var(--ink-2);border:1px solid var(--glass-b);
  box-shadow:var(--neu-btn);
  backdrop-filter:var(--blur-sm);
  -webkit-backdrop-filter:var(--blur-sm);
}
.btn.ghost::before{display:none}
.btn.ghost:hover{
  background:rgba(255,255,255,0.06);
  color:var(--ink);
  border-color:rgba(255,255,255,.14);
  box-shadow:var(--neu-btn),0 4px 16px rgba(0,0,0,.3);
}

/* Danger btn — red gradient with glow */
.btn.danger,
button.danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%) !important;
  color: #fff !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  box-shadow:
    var(--neu-btn),
    0 4px 16px rgba(239, 68, 68, 0.4),
    0 1px 0 rgba(255, 255, 255, 0.25) inset !important;
}
.btn.danger:hover,
button.danger:hover {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%) !important;
  box-shadow:
    var(--neu-btn),
    0 8px 24px rgba(239, 68, 68, 0.6),
    0 1px 0 rgba(255, 255, 255, 0.3) inset !important;
}

/* ── Link buttons ────────────────────────────────────────── */
.link{
  background:none;border:none;color:var(--a1);
  font:inherit;font-size:.88rem;font-weight:600;
  cursor:pointer;padding:6px 10px;
  border-radius:var(--r-xs);text-decoration:none;
  transition:all var(--t);
}
.link:hover{background:rgba(123,111,255,.12);color:#c3b8ff}
a.link{text-decoration:none}
.toplinks{display:flex;gap:4px;align-items:center}

/* ── Drop Zone ───────────────────────────────────────────── */
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed rgba(255,255,255,0.09);
  border-radius: var(--r);
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  margin: 20px 0;
  background: rgba(6,8,22,0.4);
  backdrop-filter: var(--blur-sm);
  -webkit-backdrop-filter: var(--blur-sm);
  box-shadow: var(--neu-in);
  transition: all var(--t) var(--ease);
  position: relative;
  overflow: hidden;
}
.drop-icon-neu {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  background: linear-gradient(135deg, rgba(32, 38, 72, 0.9), rgba(12, 14, 32, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    3px 3px 10px rgba(0, 0, 0, 0.6),
    -2px -2px 6px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 20px rgba(123, 111, 255, 0.2);
  transition: all .3s cubic-bezier(.34, 1.35, .64, 1);
  user-select: none;
}
.drop:hover .drop-icon-neu,
.drop.over .drop-icon-neu {
  transform: translateY(-4px) scale(1.1);
  box-shadow:
    5px 5px 16px rgba(0, 0, 0, 0.7),
    -2px -2px 8px rgba(255, 255, 255, 0.08),
    0 0 26px rgba(123, 111, 255, 0.45);
  border-color: rgba(123, 111, 255, 0.5);
}
.drop::after{
  content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse at 50% 50%,rgba(123,111,255,0.05),transparent 70%);
  opacity:0;transition:opacity var(--t);pointer-events:none;
}
.drop:hover::after,.drop.over::after{opacity:1}
.drop:hover,.drop.over{
  border-color:var(--a1);
  background:rgba(20,16,60,0.5);
  box-shadow:var(--neu-in),0 0 0 1px rgba(123,111,255,.2) inset;
}
.drop.over{border-style:solid}
.drop strong{display:block;font-size:.98rem;font-weight:700;color:var(--ink-3)}
.drop:hover strong,.drop.over strong{color:var(--ink)}
.drop input{display:none}

/* ── Progress bars ───────────────────────────────────────── */
.bar{
  height:8px;
  background:rgba(255,255,255,0.05);
  border-radius:99px;overflow:hidden;
  margin:14px 0;display:none;
  box-shadow:var(--neu-in);
}
.bar i{
  display:block;height:100%;width:0;
  background:linear-gradient(90deg,var(--a3),var(--a1),var(--a2));
  background-size:200% 100%;
  animation:gradShift 2.5s linear infinite;
  transition:width .15s;border-radius:99px;
  box-shadow:0 0 12px rgba(123,111,255,.5);
}
@keyframes gradShift{
  0%  {background-position:200% 0}
  100%{background-position:-200% 0}
}
.meter{
  height:5px;
  background:rgba(255,255,255,0.05);
  border-radius:99px;overflow:hidden;
  margin:3px 0 8px;
  box-shadow:var(--neu-in);
}
.meter i{
  display:block;height:100%;width:0;
  background:linear-gradient(90deg,var(--a3),var(--a1));
  border-radius:99px;
}

/* ── Live upload UI ──────────────────────────────────────── */
.live{margin:8px 0 4px}
.livetop{
  display:flex;justify-content:space-between;align-items:baseline;
  gap:10px;font-variant-numeric:tabular-nums;
}
.livetop b{
  font-size:1.65rem;font-weight:800;letter-spacing:-.02em;
  background:linear-gradient(135deg,var(--a3),var(--a1));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.livetop span{font-weight:700;color:var(--a1)}
.live .bar{height:10px;margin:9px 0}
.live .small{margin:0;font-variant-numeric:tabular-nums;color:var(--ink-3)}

/* ── Messages ────────────────────────────────────────────── */
.msg{min-height:1.4em;margin:10px 0;font-size:.9rem;font-weight:600}
.err{color:var(--err);text-shadow:0 0 14px var(--err-g)}
.ok {color:var(--ok); text-shadow:0 0 14px var(--ok-g)}

/* ── Top Navigation Action Bar (Ultra-Premium Glass Capsule) ── */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.top h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.toplinks {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 17, 36, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  padding: 4px 6px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.top-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 99px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: all .24s cubic-bezier(0.34, 1.25, 0.64, 1);
  user-select: none;
  position: relative;
  overflow: hidden;
}
.top-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease, stroke .2s ease;
  flex-shrink: 0;
}
.top-btn:hover {
  background: rgba(123, 111, 255, 0.16);
  border-color: rgba(123, 111, 255, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(123, 111, 255, 0.25), 0 0 12px rgba(123, 111, 255, 0.35);
}
.top-btn:hover svg {
  transform: rotate(20deg) scale(1.1);
  stroke: var(--a3);
}

/* Distinctive highlights for specific actions */
.top-btn.admin-pill {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.28);
}
.top-btn.admin-pill:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.3), 0 0 14px rgba(56, 189, 248, 0.4);
}
.top-btn.admin-pill:hover svg {
  transform: scale(1.15);
  stroke: #38bdf8;
}

.top-btn.danger-pill {
  color: #f87171;
  background: rgba(239, 68, 68, 0.06);
  border-color: rgba(239, 68, 68, 0.2);
}
.top-btn.danger-pill:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.55);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35), 0 0 14px rgba(239, 68, 68, 0.4);
}
.top-btn.danger-pill:hover svg {
  transform: translateX(2px) scale(1.1);
  stroke: #fca5a5;
}

/* ── File list ───────────────────────────────────────────── */
.flist{list-style:none;margin:18px 0 0;padding:0;border-top:1px solid var(--line)}
.flist li{
  display:flex;gap:12px;align-items:center;
  justify-content:space-between;
  padding:13px 0;border-bottom:1px solid var(--line);
  transition:all var(--t);
}
.flist li:hover{padding-left:4px}
.finfo{display:flex;align-items:center;gap:12px;min-width:0;text-align:left}
.fmeta{min-width:0}
.fmeta b{display:block;overflow-wrap:anywhere;font-weight:600;color:var(--ink);font-size:.93rem}
.fmeta small{color:var(--ink-3);font-size:.81rem}
.finfo b{display:block;overflow-wrap:anywhere;font-weight:600;color:var(--ink);font-size:.93rem}
.finfo small{color:var(--ink-3);font-size:.81rem}

/* ── Neumorphic File & Folder Icon Badges ────────────────── */
.ficon-neu {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(28, 33, 64, 0.92), rgba(12, 14, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    2px 2px 6px rgba(0, 0, 0, 0.5),
    -1px -1px 3px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  font-size: 1.15rem;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.flist li:hover .ficon-neu,
.frow:hover .ficon-neu {
  transform: scale(1.08);
  box-shadow:
    3px 3px 10px rgba(0, 0, 0, 0.6),
    -1px -1px 4px rgba(255, 255, 255, 0.08),
    0 0 12px rgba(123, 111, 255, 0.25);
}
.folder-icon-neu {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(34, 40, 78, 0.9), rgba(14, 17, 36, 0.95));
  border: 1px solid rgba(123, 111, 255, 0.25);
  box-shadow:
    2px 2px 6px rgba(0, 0, 0, 0.5),
    -1px -1px 3px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  font-size: .95rem;
  line-height: 1;
  margin-right: 8px;
  user-select: none;
}
.ficon-neu svg,
.folder-icon-neu svg,
.drop-icon-neu svg,
.verify-icon svg {
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
.ficon-neu svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}
.folder-icon-neu svg {
  width: 17px;
  height: 17px;
  stroke: #fbbf24;
}
.drop-icon-neu svg {
  width: 28px;
  height: 28px;
  stroke: #c4b5fd;
  filter: drop-shadow(0 0 10px rgba(123, 111, 255, 0.5));
}
.verify-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fde047;
  filter: drop-shadow(0 0 8px rgba(234, 179, 8, 0.6));
}

/* ── Action buttons (file row) ───────────────────────────── */
.acts{display:flex;gap:6px;flex-shrink:0;flex-wrap:wrap;align-items:center}
.acts button,.acts a{
  border:1px solid rgba(255,255,255,0.07);
  background:rgba(12,14,30,0.5);
  backdrop-filter:var(--blur-sm);
  -webkit-backdrop-filter:var(--blur-sm);
  color:var(--ink-2);
  border-radius:var(--r-xs);
  padding:6px 11px;
  font:inherit;font-size:.82rem;font-weight:600;
  cursor:pointer;text-decoration:none;
  box-shadow:var(--neu-btn);
  transition:all var(--t) var(--ease);
}
.acts button:hover,.acts a:hover{
  background:rgba(255,255,255,0.07);
  border-color:rgba(255,255,255,0.14);
  color:var(--ink);
  transform:translateY(-1px);
  box-shadow:var(--neu-btn),0 4px 14px rgba(0,0,0,.3);
}
.acts .danger{color:var(--err);border-color:rgba(248,113,113,.18)}
.acts .danger:hover{background:rgba(248,113,113,.08);border-color:rgba(248,113,113,.3)}

/* ── Folders ─────────────────────────────────────────────── */
details.folder{
  border:1px solid rgba(255,255,255,0.07);
  border-radius:var(--r-sm);
  margin:10px 0;padding:0 16px;
  text-align:left;
  background:rgba(10,12,28,0.45);
  backdrop-filter:var(--blur-sm);
  -webkit-backdrop-filter:var(--blur-sm);
  box-shadow:var(--neu-out);
  transition:all var(--t);
}
details.folder:hover{background:rgba(18,20,40,0.55)}
details.folder>summary{
  cursor:pointer;padding:14px 0;
  font-weight:700;color:var(--ink);
  list-style:none;display:flex;align-items:center;gap:8px;
}
details.folder>summary::-webkit-details-marker{display:none}
details.folder>summary small{
  color:var(--ink-3);font-weight:400;margin-left:auto;font-size:.82rem
}
.topacts{flex-wrap:wrap;margin:0 0 10px;padding:8px 0;border-bottom:1px solid var(--line)}
.topacts a,.topacts button{
  border:1px solid rgba(255,255,255,0.07);
  background:rgba(12,14,30,0.5);
  backdrop-filter:var(--blur-sm);-webkit-backdrop-filter:var(--blur-sm);
  color:var(--ink-2);border-radius:var(--r-xs);
  padding:6px 11px;font:inherit;font-size:.82rem;font-weight:600;
  cursor:pointer;text-decoration:none;
  box-shadow:var(--neu-btn);
  transition:all var(--t) var(--ease);
}
.topacts a:hover,.topacts button:hover{
  background:rgba(255,255,255,0.07);
  color:var(--ink);transform:translateY(-1px);
}
.topacts .danger{color:var(--err);border-color:rgba(248,113,113,.18)}
.topacts .danger:hover{background:rgba(248,113,113,.08)}

/* ── Upload row / Target ─────────────────────────────────── */
.target{margin-top:12px}
.uprow{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}

/* ── Change password section ─────────────────────────────── */
.pw{
  margin-top:26px;text-align:left;
  border:1px solid rgba(255,255,255,.06);
  border-radius:var(--r-sm);padding:0 16px;
  background:rgba(8,10,24,0.4);
  box-shadow:var(--neu-in);
}
.pw summary{
  cursor:pointer;font-weight:700;
  padding:14px 0;color:var(--ink-3);
  font-size:.91rem;list-style:none;
  transition:color var(--t);
  display:flex;align-items:center;gap:8px;
}
.pw summary::before {
  content: '';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c4b5fd' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='7.5' cy='15.5' r='4.5'/%3E%3Cpath d='m21 3-9.5 9.5'/%3E%3Cpath d='m15.5 7.5 3 3'/%3E%3C/svg%3E") no-repeat center / 15px 15px,
    linear-gradient(135deg, rgba(28, 33, 64, 0.9), rgba(12, 14, 28, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    2px 2px 5px rgba(0, 0, 0, 0.5),
    -1px -1px 3px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.pw summary::-webkit-details-marker{display:none}
.pw[open] summary{
  color:var(--ink);
  border-bottom:1px solid var(--line);
  padding-bottom:12px;margin-bottom:14px;
}
.pw summary:hover{color:var(--ink)}

/* ── Admin stats ─────────────────────────────────────────── */
.stats{display:flex;gap:10px;flex-wrap:wrap;margin:6px 0 22px}
.stat{
  border:1px solid rgba(255,255,255,0.07);
  background:rgba(10,12,28,0.5);
  backdrop-filter:var(--blur-sm);-webkit-backdrop-filter:var(--blur-sm);
  border-radius:var(--r-sm);padding:14px 20px;min-width:120px;
  box-shadow:var(--neu-out);
  transition:all var(--t) var(--ease);
  position:relative;overflow:hidden;
}
.stat::before{
  content:'';position:absolute;inset:0;
  background:radial-gradient(ellipse at top left,rgba(255,255,255,0.03),transparent 60%);
}
.stat:hover{background:rgba(18,20,45,.6);transform:translateY(-3px);
  box-shadow:var(--neu-out),0 12px 30px rgba(0,0,0,.4)}
.stat b{
  display:block;font-size:1.55rem;font-weight:800;
  background:linear-gradient(135deg,var(--a3),var(--a1));
  -webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;
}
.stat span{color:var(--ink-3);font-size:.82rem}

/* ── Table & List Containers (Horizontal & Vertical Scroll) ── */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 26px 0 10px;
  gap: 10px;
}
.section-title-row h2 {
  margin: 0;
}
.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  user-select: none;
}
.scroll-hint svg {
  width: 13px;
  height: 13px;
  stroke: var(--a3);
  fill: none;
  stroke-width: 2.2;
}

.tblwrap,
.admin-folders-wrap {
  overflow: auto !important;
  max-height: 480px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(8, 10, 24, 0.55);
  box-shadow: var(--neu-in);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 111, 255, 0.6) rgba(10, 12, 28, 0.5);
}

.admin-folders-wrap {
  padding: 8px 12px;
}

/* Custom Scrollbars for scrollable tables and boxes */
.tblwrap::-webkit-scrollbar,
.fm-table-wrap::-webkit-scrollbar,
.admin-folders-wrap::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
.tblwrap::-webkit-scrollbar-track,
.fm-table-wrap::-webkit-scrollbar-track,
.admin-folders-wrap::-webkit-scrollbar-track {
  background: rgba(8, 10, 24, 0.75);
  border-radius: 99px;
  margin: 3px;
}
.tblwrap::-webkit-scrollbar-thumb,
.fm-table-wrap::-webkit-scrollbar-thumb,
.admin-folders-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(123, 111, 255, 0.65), rgba(79, 216, 235, 0.65));
  border-radius: 99px;
  border: 2px solid rgba(12, 14, 30, 0.85);
  transition: all .2s ease;
}
.tblwrap::-webkit-scrollbar-thumb:hover,
.fm-table-wrap::-webkit-scrollbar-thumb:hover,
.admin-folders-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7b6fff, #4fd8eb);
  box-shadow: 0 0 12px rgba(123, 111, 255, 0.7);
}
.tblwrap::-webkit-scrollbar-corner,
.fm-table-wrap::-webkit-scrollbar-corner,
.admin-folders-wrap::-webkit-scrollbar-corner {
  background: rgba(8, 10, 24, 0.75);
}

.tblwrap table,
.fm-table-wrap table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  text-align: left;
}
.tblwrap thead th,
.fm-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px 14px;
  background: #12152f !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink-2);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: .88rem;
  vertical-align: middle;
}
th {
  color: var(--ink-3);
  font-weight: 700;
  background: rgba(0,0,0,0.25);
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
tr:hover td { background: rgba(123, 111, 255, 0.05); }
tr:last-child td { border-bottom: none; }

/* ── Footer ──────────────────────────────────────────────── */
.foot{
  position:relative;z-index:1;
  color:var(--ink-3);font-size:.79rem;
  text-align:center;letter-spacing:.03em;
}

/* ── Misc ────────────────────────────────────────────────── */
[hidden]{display:none!important}
.result{display:none;margin-top:18px}
.row{display:flex;gap:8px}
.row input{flex:1;min-width:0}
#qinfo{margin:0 0 6px;font-weight:600;overflow-wrap:anywhere;color:var(--a3)}
#folders{margin-top:6px}
.flist.inner{margin-top:4px;border-top:1px solid var(--line)}
.card.wide .flist{margin-top:16px}
.card.wide h1,.card.wide>.muted{text-align:left}

/* ── Focus ───────────────────────────────────────────────── */
:focus-visible{outline:2px solid rgba(123,111,255,.7);outline-offset:3px;border-radius:4px}

/* ── Responsive ──────────────────────────────────────────── */
@media(max-width:520px){
  .card{padding:24px 18px}
  .flist li{flex-direction:column;align-items:flex-start}
  .acts{flex-wrap:wrap}
  h1{font-size:1.4rem}
}
@media(max-width:360px){
  .card{padding:18px 14px}
}

/* ════════════════════════════════════════════════════════════
   SOFT ANIMATION SYSTEM
   ════════════════════════════════════════════════════════════ */

/* ── 1. Card entrance ────────────────────────────────────── */
@keyframes cardIn {
  from { opacity:0; transform:translateY(28px) scale(.96); filter:blur(4px); }
  to   { opacity:1; transform:translateY(0)    scale(1);   filter:blur(0); }
}
.card { animation: cardIn .55s cubic-bezier(.22,.68,0,1.2) both; }

/* ── 2. Forms Viewport (Permanent Rock-Solid Centered System) ── */
.forms-slider-viewport {
  position: relative;
  width: 100%;
  margin-bottom: 6px;
}
.forms-slider-track {
  display: block;
  width: 100%;
  position: relative;
  transform: none !important;
}
.form-slide {
  display: none;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0 auto;
  opacity: 0;
}
.form-slide.active {
  display: block !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  pointer-events: auto !important;
  animation: formSlideFadeIn .22s cubic-bezier(.16, 1, .3, 1) both;
}
.form-slide .field:last-child {
  margin-bottom: 4px;
}
@keyframes formSlideFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Staggered scrolling field animation on slide switch */
.form-slide.active .field:nth-child(1) { animation: fieldSlideIn .35s cubic-bezier(.2,.8,.3,1) .03s both; }
.form-slide.active .field:nth-child(2) { animation: fieldSlideIn .35s cubic-bezier(.2,.8,.3,1) .08s both; }
.form-slide.active .field:nth-child(3) { animation: fieldSlideIn .35s cubic-bezier(.2,.8,.3,1) .13s both; }
.form-slide.active .field:nth-child(4) { animation: fieldSlideIn .35s cubic-bezier(.2,.8,.3,1) .18s both; }

@keyframes fieldSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Smooth rolling text for title & button */
.roll-text {
  display: inline-block;
  transition: opacity .18s ease, transform .2s cubic-bezier(.4, 0, .2, 1);
}
.roll-text.rolling {
  opacity: 0;
  transform: translateY(-8px);
}

/* ── 4. Input field micro-animations ────────────────────── */
.field input, .field select {
  transition:
    border-color .22s ease,
    background   .22s ease,
    box-shadow   .28s cubic-bezier(.4,0,.2,1),
    transform    .15s ease;
}
.field input:focus { transform: translateY(-1px); }

/* floating label lift */
.field > span {
  transition: color .22s ease, letter-spacing .22s ease;
}
.field:focus-within > span {
  color: rgba(123,111,255,.85);
  letter-spacing: .06em;
}

/* ── 5. Shake animation (error state) ───────────────────── */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  15%     { transform: translateX(-7px); }
  30%     { transform: translateX(6px); }
  45%     { transform: translateX(-5px); }
  60%     { transform: translateX(4px); }
  75%     { transform: translateX(-3px); }
  90%     { transform: translateX(2px); }
}
.shake { animation: shake .5s cubic-bezier(.36,.07,.19,.97) both; }

/* ── 6. Success pulse ───────────────────────────────────── */
@keyframes successPulse {
  0%   { box-shadow: 0 0 0 0   rgba(52,211,153,.45); }
  70%  { box-shadow: 0 0 0 12px rgba(52,211,153,0); }
  100% { box-shadow: 0 0 0 0   rgba(52,211,153,0); }
}
.pulse-ok { animation: successPulse .7s ease; }

/* ── 7. Message fade-in ─────────────────────────────────── */
.msg { transition: color .2s ease; }
@keyframes msgIn {
  from { opacity:0; transform:translateY(-6px); }
  to   { opacity:1; transform:translateY(0); }
}
.msg:not(:empty) { animation: msgIn .25s ease both; margin: 10px 0; }
.msg:empty { display: none !important; margin: 0 !important; padding: 0 !important; }

/* ── 8. Button press + ripple ───────────────────────────── */
.btn {
  transition:
    transform   .18s cubic-bezier(.4,0,.2,1),
    box-shadow  .22s cubic-bezier(.4,0,.2,1),
    opacity     .15s ease,
    filter      .2s ease;
}
.btn:hover  { filter: brightness(1.08); }
.btn:active { transform: scale(.96) translateY(0) !important; }

/* ripple containers: MUST be relative & overflow hidden so animation stays exactly inside */
.btn,
.tab,
.top-btn,
.fm-btn,
.fm-pill,
.fm-crumb,
.modal-pill,
.modal-close,
.acts button,
.acts a,
.topacts button,
.topacts a {
  position: relative !important;
  overflow: hidden !important;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.45) 0%, rgba(167, 139, 250, 0.3) 45%, rgba(123, 111, 255, 0) 72%);
  transform: scale(0);
  animation: rippleOut .52s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  pointer-events: none;
  z-index: 20;
}
@keyframes rippleOut {
  0% {
    transform: scale(0);
    opacity: 0.85;
  }
  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* ── 9. Loading spinner (inside btn) ───────────────────── */
.btn .spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .65s linear infinite;
  display: none;
}
.btn.loading .spinner   { display: inline-block; }
.btn.loading .btn-label { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 10. File list — stagger entrance ───────────────────── */
@keyframes listItemIn {
  from { opacity:0; transform:translateX(-12px); }
  to   { opacity:1; transform:translateX(0); }
}
.flist li {
  animation: listItemIn .3s cubic-bezier(.4,0,.2,1) both;
}
.flist li:nth-child(1)  { animation-delay:.04s }
.flist li:nth-child(2)  { animation-delay:.08s }
.flist li:nth-child(3)  { animation-delay:.12s }
.flist li:nth-child(4)  { animation-delay:.16s }
.flist li:nth-child(5)  { animation-delay:.20s }
.flist li:nth-child(6)  { animation-delay:.24s }
.flist li:nth-child(7)  { animation-delay:.28s }
.flist li:nth-child(8)  { animation-delay:.32s }
.flist li:nth-child(n+9){ animation-delay:.35s }

/* ── 11. Folder details open animation ──────────────────── */
details.folder > summary {
  transition: color .2s ease, padding .25s ease;
}
details.folder[open] { animation: folderOpen .3s cubic-bezier(.4,0,.2,1); }
@keyframes folderOpen {
  from { opacity:.7; }
  to   { opacity:1; }
}

/* ── 12. Action buttons hover lift ─────────────────────── */
.acts button, .acts a,
.topacts button, .topacts a {
  transition:
    background  .18s ease,
    border-color .18s ease,
    color        .18s ease,
    transform    .18s cubic-bezier(.4,0,.2,1),
    box-shadow   .22s ease;
}

/* ── 13. Stat card hover float ──────────────────────────── */
.stat {
  transition:
    background  .22s ease,
    transform   .25s cubic-bezier(.4,0,.2,1),
    box-shadow  .25s ease;
}

/* ── 14. Drop zone bounce ───────────────────────────────── */
.drop { transition: border-color .22s ease, background .22s ease, box-shadow .22s ease; }
.drop.over { animation: dropBounce .35s cubic-bezier(.36,.07,.19,.97); }
@keyframes dropBounce {
  0%,100% { transform: scale(1); }
  40%     { transform: scale(1.02); }
  70%     { transform: scale(.99); }
}

/* ── 15. Brand name glow pulse (idle) ───────────────────── */
@keyframes brandGlow {
  0%,100% { filter: drop-shadow(0 0 8px  rgba(123,111,255,.4)); }
  50%     { filter: drop-shadow(0 0 18px rgba(123,111,255,.7)); }
}
.brand { animation: brandGlow 3.5s ease-in-out infinite; }
.brand:hover { animation: none; filter: drop-shadow(0 0 22px rgba(123,111,255,.9)); }

/* ── 16. Page section swap (auth ↔ dashboard) ────────────── */
@keyframes sectionIn {
  from { opacity:0; transform:scale(.97) translateY(12px); }
  to   { opacity:1; transform:scale(1)   translateY(0); }
}
#auth[style*="display"]:not([hidden]),
#dash:not([hidden]) {
  animation: sectionIn .4s cubic-bezier(.4,0,.2,1) both;
}

/* ── 17. Strength bar animated fill ─────────────────────── */
.pw-strength-bar i {
  transition: width .4s cubic-bezier(.4,0,.2,1), background .4s ease;
}

/* ── 18. Eye button pop ─────────────────────────────────── */
.eye-btn { transition: color .18s ease, background .18s ease, transform .15s ease; }
.eye-btn:active { transform: scale(.88); }

/* ── 19. Toast / alert slide ───────────────────────────── */
@keyframes toastIn {
  from { opacity:0; transform:translateY(8px) scale(.97); }
  to   { opacity:1; transform:translateY(0)   scale(1); }
}
.msg.err:not(:empty),
.msg.ok:not(:empty) {
  animation: toastIn .28s cubic-bezier(.4,0,.2,1) both;
}

/* ── 20. Smooth [hidden] swap via JS helper ─────────────── */
.fade-in  { animation: fadeIn  .3s ease both; }
.fade-out { animation: fadeOut .2s ease both; }
@keyframes fadeIn  { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeOut { from{opacity:1;transform:translateY(0)} to{opacity:0;transform:translateY(-6px)} }

/* ── Reduced motion: kill all animations ────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── Email Verification Banner ──────────────────────────── */
.verify-banner {
  display: flex;
  gap: 14px;
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 16px 0 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  align-items: flex-start;
  animation: bannerIn .4s ease both;
}
@keyframes bannerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.verify-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(46, 38, 16, 0.9), rgba(20, 17, 8, 0.95));
  border: 1px solid rgba(234, 179, 8, 0.4);
  box-shadow:
    3px 3px 8px rgba(0, 0, 0, 0.5),
    -1px -1px 4px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 18px rgba(234, 179, 8, 0.25);
  font-size: 1.3rem;
  line-height: 1;
  user-select: none;
}
.verify-content {
  flex: 1;
  text-align: left;
}
.verify-content b {
  color: #fde047;
  font-size: .95rem;
  display: block;
  margin-bottom: 4px;
}
.verify-content p {
  color: var(--ink-2);
  font-size: .85rem;
  margin: 0 0 10px;
  line-height: 1.45;
}
.verify-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.verify-row input {
  max-width: 170px;
  padding: 8px 12px;
  font-size: .95rem;
  letter-spacing: 3px;
  text-align: center;
  font-weight: 700;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}
.small-btn {
  padding: 8px 16px !important;
  font-size: .85rem !important;
}

/* ── SMTP Configuration (Admin Panel) ───────────────────── */
.smtp-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  text-align: left;
}
.smtp-card > summary {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  outline: none;
  list-style: none;
}
.smtp-card > summary::-webkit-details-marker { display: none; }
.smtp-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px 18px;
  margin-top: 14px;
}
.smtp-toggle-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.smtp-status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
  transition: all .25s ease;
}
.smtp-status-dot.active {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.7);
}
.smtp-status-dot.disabled {
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
}
.switch-ui {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}
.switch-ui input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-ui .slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: all .28s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}
.switch-ui .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #cbd5e1;
  transition: all .28s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
.switch-ui input:checked + .slider {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}
.switch-ui input:checked + .slider:before {
  transform: translateX(24px);
  background-color: #ffffff;
}
.smtp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.badge.ok {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.badge.warn {
  background: rgba(234, 179, 8, 0.15);
  color: #fde047;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.badge.err {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── Default Quota Card ─────────────────────────────────── */
.default-quota-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  margin: 22px 0 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.default-quota-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.default-quota-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(123, 111, 255, 0.12);
  border: 1px solid rgba(123, 111, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--a1);
  flex-shrink: 0;
}
.default-quota-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Admin Edit Modals ──────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 15, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100010 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  padding: 24px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#fmShareModal.modal-backdrop {
  z-index: 100010 !important;
}
#fmShareSettingsModal.modal-backdrop {
  z-index: 100020 !important;
}
#fmConfirmModal.modal-backdrop {
  z-index: 100030 !important;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.modal-window {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  margin: auto;
  background: linear-gradient(165deg, #13172e 0%, #0d1021 100%);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: 26px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(99, 102, 241, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  padding: 28px;
  transform: scale(0.93) translateY(14px);
  transition: transform .28s cubic-bezier(.34, 1.35, .64, 1), opacity .25s ease;
  position: relative;
  text-align: left;
}
.modal-window::-webkit-scrollbar {
  width: 6px;
}
.modal-window::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
}
.modal-backdrop.open .modal-window {
  transform: scale(1) translateY(0);
}
/* ── Settings Slider Track States ────────────────────────────── */
.forms-slider-track[data-active="username"] {
  transform: translateX(0%);
}
.forms-slider-track[data-active="password"] {
  transform: translateX(-100%);
}

/* ── Modern Account Settings Window ────────────────────────────── */
.modal-window.settings-window {
  max-width: 500px !important;
  width: 95%;
  background: linear-gradient(165deg, #13172e 0%, #0d1021 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.35) !important;
  border-radius: 26px !important;
  padding: 26px 28px !important;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.9), 0 0 50px rgba(99, 102, 241, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

/* Settings Tabs Glider */
.settings-tabs-glider {
  position: relative;
  display: flex;
  background: rgba(8, 11, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 4px;
  margin: 0 0 16px 0;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.settings-tabs-glider .tab-glider {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: transform 0.32s cubic-bezier(0.34, 1.35, 0.64, 1);
  pointer-events: none;
  z-index: 1;
}

.settings-tabs-glider[data-tab="password"] .tab-glider {
  transform: translateX(100%);
}

.settings-tabs-glider .tab {
  flex: 1;
  position: relative;
  z-index: 2;
  background: transparent !important;
  border: none;
  color: #94a3b8;
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: color 0.2s ease, transform 0.15s ease;
  box-shadow: none !important;
}

.settings-tabs-glider .tab:hover:not([aria-selected="true"]) {
  color: #e2e8f0;
}

.settings-tabs-glider .tab[aria-selected="true"] {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Settings Email Summary Bar */
.settings-email-bar {
  background: rgba(14, 18, 34, 0.7);
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 16px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.settings-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38bdf8;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.45);
}

.settings-email-info {
  flex: 1;
  min-width: 0;
}

.settings-email-sub {
  display: block;
  font-size: 0.72rem;
  color: #818cf8;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.settings-email-val {
  font-weight: 700;
  color: #ffffff;
  font-size: 0.92rem;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.38);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
}

.settings-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
}

/* Slider Viewport & Slides */
.settings-slider-viewport {
  margin-bottom: 0 !important;
  overflow: hidden;
  width: 100%;
}

.settings-slide-pane {
  padding: 4px 2px 2px 2px;
  box-sizing: border-box;
}

.settings-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.settings-sub-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-sub-title svg {
  width: 16px;
  height: 16px;
  stroke: #818cf8;
  fill: none;
  stroke-width: 2.4;
}

.settings-current-tag {
  font-size: 0.8rem;
  color: #94a3b8;
}

.settings-current-tag b {
  color: #38bdf8;
  font-weight: 700;
}

.settings-field-hint {
  display: block;
  font-size: 0.76rem;
  color: #94a3b8;
  margin-top: 6px;
}

/* Eye button in modal input wrap */
.modal-input-wrap .eye-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
  margin-left: 6px;
}

.modal-input-wrap .eye-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.modal-input-wrap .eye-btn svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Rounded Squircle Icon Badge in Modal Title */
.modal-title-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(30, 27, 75, 0.65);
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.2);
}
.modal-title-badge svg {
  width: 22px;
  height: 22px;
}

.modal-close {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 14px rgba(255, 255, 255, 0.2);
}
.modal-close:active {
  transform: scale(0.92);
}

/* Modal Input Label (Purple/Lavender uppercase) */
.modal-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: #818cf8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

/* Glowing Neon Input Container (Exact Screenshot Match) */
.modal-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #090c1a;
  border: 1.5px solid #4f46e5;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 0 18px rgba(79, 70, 229, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}
.modal-input-wrap:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.45), inset 0 2px 4px rgba(0, 0, 0, 0.4);
}
.modal-input-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #818cf8;
  flex-shrink: 0;
}
.modal-input-icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}
.modal-input-field {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  font-family: inherit;
  padding: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
.modal-input-field::placeholder {
  color: #4b5563;
}

.modal-eye-btn {
  position: static !important;
  transform: none !important;
  background: transparent !important;
  border: none !important;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.15s ease;
  padding: 0 !important;
  margin: 0 !important;
  flex-shrink: 0;
  outline: none;
  box-shadow: none !important;
}
.modal-eye-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08) !important;
}
.modal-eye-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  display: block;
}

/* Modal Item Preview Info Bar */
.modal-item-preview-bar {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.item-preview-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.item-preview-meta-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #818cf8;
  text-transform: uppercase;
}
.item-preview-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.item-preview-folder-icon {
  width: 16px;
  height: 16px;
  stroke: #eab308;
  fill: none;
  stroke-width: 2.2;
  flex-shrink: 0;
}
.item-preview-name {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
}
.item-status-pill.is-protected {
  background: rgba(234, 179, 8, 0.16);
  border-color: rgba(234, 179, 8, 0.45);
  color: #fde047;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.25);
}

/* Quick Presets Section */
.modal-presets-section {
  margin-top: 14px;
}
.modal-presets-label {
  display: block;
  font-size: 0.84rem;
  font-weight: 500;
  color: #94a3b8;
  margin-bottom: 8px;
}
.modal-presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.modal-preset-pill {
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.modal-preset-pill:hover,
.modal-preset-pill.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(168, 85, 247, 0.3) 100%);
  border-color: #818cf8;
  color: #ffffff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

/* Modal Actions Row */
.modal-actions-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}
.modal-btn-cancel {
  padding: 10px 22px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.modal-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.modal-btn-cancel:active {
  transform: translateY(0) scale(0.96);
}
.modal-btn-primary {
  padding: 11px 26px;
  border-radius: 99px;
  background: linear-gradient(135deg, #6366f1 0%, #3b82f6 50%, #0ea5e9 100%) !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  cursor: pointer;
  box-shadow:
    0 6px 24px -2px rgba(99, 102, 241, 0.65),
    0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.55),
    inset 0 -2px 5px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}
.modal-btn-primary:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow:
    0 10px 32px -2px rgba(99, 102, 241, 0.85),
    0 4px 12px rgba(0, 0, 0, 0.4),
    inset 0 2px 2px rgba(255, 255, 255, 0.7),
    inset 0 -2px 6px rgba(0, 0, 0, 0.3) !important;
}
.modal-btn-primary:active {
  transform: translateY(0) scale(0.96);
}

.modal-desc {
  font-size: .88rem;
  color: var(--ink-2);
  margin: 0 0 18px;
  line-height: 1.5;
}
.modal-desc b {
  color: var(--ink);
}
.modal-body {
  margin-bottom: 22px;
}
.modal-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.modal-pill {
  background: #141929;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  padding: 6px 14px;
  font-size: .82rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: all .15s;
}
.modal-pill:hover, .modal-pill.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.55);
  color: #fff;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ══════════════════════════════════════════════════════════════
   MODERN FILE MANAGER (Finder / Explorer Style)
   ══════════════════════════════════════════════════════════════ */
.fm-wrap {
  margin-top: 24px;
  background: rgba(14, 16, 38, 0.65);
  border: 1px solid rgba(123, 111, 255, 0.22);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.fm-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fm-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  flex-wrap: wrap;
}
.fm-crumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all .2s;
  background: transparent;
  border: none;
  font-family: inherit;
}
.fm-crumb:hover {
  color: #fff;
  background: rgba(123, 111, 255, 0.15);
}
.fm-crumb.active {
  color: #fff;
  font-weight: 700;
  cursor: default;
  background: rgba(123, 111, 255, 0.12);
}
.fm-crumb-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
}

.fm-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--ink);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.fm-btn:hover {
  background: rgba(123, 111, 255, 0.2);
  border-color: rgba(123, 111, 255, 0.4);
  color: #fff;
  transform: translateY(-1px);
}
.fm-btn.primary {
  background: linear-gradient(135deg, var(--a1), var(--a2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(123, 111, 255, 0.35);
}
.fm-btn.primary:hover {
  box-shadow: 0 6px 20px rgba(123, 111, 255, 0.5);
}
.fm-btn.active {
  background: rgba(123, 111, 255, 0.3);
  border-color: var(--a1);
  color: #fff;
}
.fm-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Search and Filters */
.fm-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 18px;
}

.fm-search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
  max-width: 380px;
}
.fm-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--muted);
  fill: none;
  pointer-events: none;
}
.fm-search-input {
  width: 100%;
  padding: 8px 12px 8px 36px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  transition: all .2s;
}
.fm-search-input:focus {
  outline: none;
  border-color: var(--a1);
  box-shadow: 0 0 0 2px rgba(123, 111, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
}

.fm-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  max-width: 100%;
  padding-bottom: 2px;
}
.fm-pill {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all .2s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.fm-pill svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.fm-pill:hover, .fm-pill.active {
  background: rgba(123, 111, 255, 0.25);
  border-color: rgba(123, 111, 255, 0.45);
  color: #fff;
}

.fm-sort-select {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
}

/* ── GRID VIEW (Mac Finder Style) ────────────────────────── */
.fm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.fm-card {
  position: relative;
  overflow: visible;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 16px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: all .24s cubic-bezier(.34, 1.25, .64, 1);
}
.fm-card.menu-active,
.fm-card:has(.fm-menu.open) {
  z-index: 1000 !important;
}
tr.menu-active,
tr:has(.fm-menu.open) {
  position: relative;
  z-index: 1000 !important;
}
.fm-card:hover {
  background: rgba(123, 111, 255, 0.12);
  border-color: rgba(123, 111, 255, 0.35);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45), 0 0 20px rgba(123, 111, 255, 0.2);
}
.fm-card.selected {
  background: rgba(123, 111, 255, 0.25);
  border-color: var(--a1);
  box-shadow: 0 0 0 2px var(--a1), 0 8px 24px rgba(123, 111, 255, 0.3);
}

.fm-select-chk {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  accent-color: var(--a1);
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
  z-index: 2;
}
.fm-card:hover .fm-select-chk, .fm-card.selected .fm-select-chk {
  opacity: 1;
}

.fm-menu-trigger {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(16, 18, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity .2s, background .2s, transform .2s, border-color .2s;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.fm-card:hover .fm-menu-trigger,
.fm-menu.open ~ .fm-menu-trigger,
.fm-menu-trigger:focus-visible {
  opacity: 1;
  background: rgba(123, 111, 255, 0.35);
  border-color: rgba(123, 111, 255, 0.5);
  color: #fff;
  transform: scale(1.06);
}
.fm-menu-trigger:hover {
  opacity: 1;
  background: rgba(123, 111, 255, 0.5);
  border-color: rgba(123, 111, 255, 0.7);
  color: #fff;
  transform: scale(1.1);
}

/* Glowing macOS-style blue folder icon */
.fm-folder-visual {
  width: 78px;
  height: 66px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  transition: transform .25s ease;
}
.fm-card:hover .fm-folder-visual {
  transform: scale(1.08) translateY(-2px);
}
.fm-folder-shape {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 18px rgba(14, 165, 233, 0.45));
}

/* File Icon / Document / Thumbnail */
.fm-file-visual {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  position: relative;
  transition: transform .25s ease;
}
.fm-card:hover .fm-file-visual {
  transform: scale(1.08) translateY(-2px);
}
.fm-file-doc-shape {
  width: 58px;
  height: 70px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
}
.fm-file-img-wrap {
  width: 68px;
  height: 68px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.fm-file-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fm-file-img-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(10, 12, 28, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  letter-spacing: 0.5px;
}

.fm-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.fm-card-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ── LIST / TABLE VIEW ────────────────────────────────────── */
.fm-table-wrap {
  overflow-x: auto;
  margin-top: 8px;
  min-height: 260px;
  padding-bottom: 20px;
}
.fm-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}
.fm-table th {
  padding: 10px 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
}
.fm-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  color: var(--ink);
}
.fm-table tr {
  transition: background .15s;
}
.fm-table tbody tr:hover {
  background: rgba(123, 111, 255, 0.08);
}
.fm-table tbody tr.selected {
  background: rgba(123, 111, 255, 0.18);
}
.fm-table-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.fm-table-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fm-table-icon svg {
  width: 20px;
  height: 20px;
}

/* Floating Batch Actions Bar */
.fm-batch-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 16, 42, 0.95);
  border: 1px solid rgba(123, 111, 255, 0.4);
  border-radius: 99px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(123, 111, 255, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  transition: transform .35s cubic-bezier(.34, 1.25, .64, 1), opacity .3s;
  opacity: 0;
  pointer-events: none;
}
.fm-batch-bar.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.fm-batch-count {
  font-weight: 700;
  color: #fff;
  font-size: 0.9rem;
}

/* Context Menu / Dropdown */
.fm-menu {
  position: absolute;
  top: 36px;
  right: 6px;
  background: rgba(16, 17, 36, 0.96);
  border: 1px solid rgba(123, 111, 255, 0.3);
  border-radius: 12px;
  padding: 6px;
  min-width: 160px;
  max-height: 85vh;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.fm-menu.open {
  display: flex;
}
.fm-menu.dropup {
  top: auto;
  bottom: calc(100% - 6px);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.fm-menu-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all .15s;
  width: 100%;
  font-family: inherit;
  white-space: nowrap;
}
.fm-menu-item:hover {
  background: rgba(123, 111, 255, 0.2);
  color: #fff;
}
.fm-menu-item.danger {
  color: #fca5a5;
}
.fm-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

/* ============================================================
   MOBILE & TABLET RESPONSIVE SYSTEM (Touch-Optimized)
   ============================================================ */

/* ── Tablet & Small Laptops (<= 900px) ─────────────────────── */
@media (max-width: 900px) {
  .card.xl {
    max-width: 100%;
  }
  .card.wide {
    max-width: 100%;
  }
}

/* ── Tablets & Mobile Devices (<= 768px) ───────────────────── */
@media (max-width: 768px) {
  body {
    padding: 16px 12px;
    gap: 16px;
  }

  .card {
    padding: 26px 20px;
    border-radius: 20px;
  }

  /* Brand */
  .brand {
    gap: 10px;
    margin-bottom: 20px;
  }
  .brand-logo {
    height: 40px;
  }

  /* File manager always shows menu trigger and select checkbox on touch */
  .fm-menu-trigger {
    opacity: 0.9 !important;
  }
  .fm-select-chk {
    opacity: 0.85 !important;
  }

  /* Top bar in dashboard and admin */
  .top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .toplinks {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* SMTP Grid */
  .smtp-grid {
    grid-template-columns: 1fr;
  }

  /* Modals sizing */
  .modal-window {
    max-width: 95vw;
    padding: 20px 16px;
  }
}

/* ── Standard Smartphones (<= 580px) ───────────────────────── */
@media (max-width: 580px) {
  body {
    padding: 10px 8px;
    gap: 12px;
  }

  .card {
    padding: 20px 14px;
    border-radius: 18px;
  }

  /* Typography */
  h1 {
    font-size: 1.45rem;
    line-height: 1.25;
  }
  h2 {
    font-size: 1rem;
    margin: 20px 0 8px;
  }

  /* Brand */
  .brand {
    justify-content: center;
    width: 100%;
    margin-bottom: 18px;
  }
  .brand-logo {
    height: 36px;
  }
  .brand-text {
    font-size: 0.85rem;
    letter-spacing: .08em;
  }

  /* Top Dashboard Header */
  .top {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 10px;
    margin-bottom: 14px;
  }
  .top h1 {
    font-size: 1.35rem;
  }
  .toplinks {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 16px;
    padding: 6px;
    gap: 6px;
    width: 100%;
  }
  .top-btn {
    flex: 1 1 auto;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  /* Email Verification Alert Banner */
  .verify-banner {
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    gap: 12px;
  }
  .verify-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 8px;
  }
  .verify-row input {
    max-width: 100%;
    width: 100%;
    font-size: 1.15rem;
    padding: 10px 14px;
  }
  .verify-row .btn {
    width: 100%;
  }

  /* Drop zone & Upload */
  .drop {
    padding: 24px 14px;
    margin: 14px 0;
    border-radius: 16px;
  }
  .drop-icon-neu {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .drop-icon-neu svg {
    width: 24px;
    height: 24px;
  }
  .drop strong {
    font-size: 0.9rem;
  }
  .uprow {
    flex-direction: column;
    gap: 10px;
  }
  .uprow .btn {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.95rem;
  }

  /* Live progress */
  .livetop b {
    font-size: 1.35rem;
  }

  /* File Manager Outer Wrap */
  .fm-wrap {
    padding: 12px 10px;
    border-radius: 16px;
    margin-top: 16px;
  }

  /* Top Navigation Bar */
  .fm-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: 12px;
  }
  .fm-breadcrumbs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .fm-breadcrumbs::-webkit-scrollbar {
    display: none;
  }
  .fm-crumb {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 4px 6px;
  }
  .fm-controls {
    justify-content: space-between;
    width: 100%;
  }
  .fm-btn.primary {
    flex: 1;
    justify-content: center;
  }

  /* Search & Filter category pills */
  .fm-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 10px 0 14px;
  }
  .fm-search-wrap {
    max-width: 100%;
    width: 100%;
    min-width: unset;
  }
  .fm-search-input {
    padding: 10px 12px 10px 38px;
    font-size: 0.88rem;
  }
  .fm-pills {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
    padding: 2px 0 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .fm-pills::-webkit-scrollbar {
    display: none;
  }
  .fm-pill {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.78rem;
  }
  .fm-sort-select {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.85rem;
  }

  /* Grid Cards on Mobile */
  .fm-grid {
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 10px;
    margin-top: 6px;
  }
  .fm-card {
    padding: 12px 6px 10px;
    border-radius: 14px;
  }
  .fm-folder-visual {
    width: 62px;
    height: 52px;
    margin-bottom: 6px;
  }
  .fm-file-visual {
    width: 58px;
    height: 58px;
    margin-bottom: 6px;
  }
  .fm-file-doc-shape {
    width: 48px;
    height: 58px;
  }
  .fm-file-img-wrap {
    width: 56px;
    height: 56px;
    border-radius: 10px;
  }
  .fm-card-name {
    font-size: 0.78rem;
  }
  .fm-card-meta {
    font-size: 0.68rem;
  }

  /* Table View on Mobile */
  .fm-table-wrap {
    margin-top: 6px;
    border-radius: 12px;
  }
  .fm-table {
    min-width: 540px;
  }
  .fm-table th, .fm-table td {
    padding: 9px 10px;
    font-size: 0.8rem;
  }

  /* Floating Batch Bar */
  .fm-batch-bar {
    width: calc(100% - 20px);
    max-width: 390px;
    bottom: 12px;
    border-radius: 18px;
    padding: 9px 12px;
    gap: 8px;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .fm-batch-count {
    font-size: 0.82rem;
  }
  .fm-batch-bar .fm-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  /* Admin Stats */
  .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
    gap: 8px;
    margin: 6px 0 16px;
  }
  .stat {
    padding: 10px 12px;
    min-width: unset;
  }
  .stat b {
    font-size: 1.3rem;
  }
  .stat span {
    font-size: 0.76rem;
  }

  /* Admin SMTP Card */
  .smtp-card {
    padding: 14px 12px;
    margin: 16px 0;
    border-radius: 14px;
  }
  .smtp-toggle-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }
  .smtp-toggle-bar .switch-ui {
    align-self: flex-start;
  }
  .smtp-actions {
    flex-direction: column;
    width: 100%;
    gap: 8px;
  }
  .smtp-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Default Storage & Speed Cards */
  .default-quota-card {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
    margin: 14px 0;
    border-radius: 14px;
  }
  .default-quota-card .btn {
    width: 100%;
    justify-content: center;
  }

  /* Admin Accounts Table */
  .tblwrap {
    overflow: auto !important;
    max-height: 420px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-radius: 14px;
    margin-top: 8px;
  }
  table {
    min-width: 760px;
  }
  th, td {
    padding: 10px 12px;
    font-size: 0.84rem;
  }
  .acts {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-width: 260px;
  }
  .acts button, .acts a {
    padding: 6px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  /* Admin Folders details */
  details.folder {
    padding: 0 10px;
    margin: 8px 0;
  }
  details.folder > summary {
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px 0;
  }
  details.folder > summary small {
    margin-left: 0;
    width: 100%;
    padding-left: 40px;
  }

  /* Modals: Clean Bottom-Sheet feel on mobile */
  .modal-backdrop {
    padding: 10px 8px;
    align-items: flex-end;
  }
  .modal-window {
    width: 100%;
    max-width: 100%;
    max-height: 88vh;
    border-radius: 22px 22px 14px 14px;
    padding: 20px 16px;
    margin: 0;
  }
  .modal-title {
    font-size: 1.15rem;
  }
  .modal-actions {
    flex-direction: column-reverse;
    gap: 8px;
    width: 100%;
  }
  .modal-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    font-size: 0.92rem;
  }
  .modal-pills {
    gap: 6px;
  }
  .modal-pill {
    padding: 7px 12px;
    font-size: 0.78rem;
  }

  /* Settings Modal on Mobile */
  .modal-window.settings-window {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 22px 22px 14px 14px;
  }
  .settings-modal-header {
    padding: 14px 16px;
  }
  .settings-tabs-glider {
    margin: 8px 12px 0;
  }
  .settings-email-bar {
    margin: 8px 12px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  #settingsSlideUsername, #settingsSlidePassword {
    padding: 12px 14px 18px !important;
  }

  /* Form Fields & Tabs */
  .tabs {
    margin: 14px 0 16px;
    padding: 3px;
  }
  .tab {
    padding: 9px 10px;
    font-size: 0.86rem;
  }
  .field {
    margin-bottom: 12px;
  }
  .field input, .field select {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
  .input-icon-wrap input {
    padding-left: 44px !important;
    padding-right: 44px !important;
  }
}

/* ── Small Smartphones (<= 380px) ──────────────────────────── */
@media (max-width: 380px) {
  body {
    padding: 8px 6px;
  }
  .card {
    padding: 16px 12px;
    border-radius: 16px;
  }
  .fm-grid {
    grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
    gap: 8px;
  }
  .fm-card {
    padding: 10px 4px 8px;
  }
  .fm-folder-visual {
    width: 54px;
    height: 46px;
  }
  .fm-file-visual {
    width: 50px;
    height: 50px;
  }
  .fm-file-doc-shape {
    width: 42px;
    height: 50px;
  }
  .fm-file-img-wrap {
    width: 48px;
    height: 48px;
  }
  .fm-batch-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    border-radius: 16px;
  }
  .fm-batch-bar .fm-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   MODERN FULL-VIEWPORT CLOUD DRIVE STYLES (FILORA)
   Matches exact layout, colors, cards & features from screenshot
   ============================================================ */

body.is-drive-app {
  padding: 0 !important;
  margin: 0 !important;
  height: 100vh !important;
  min-height: 100vh !important;
  overflow: hidden !important;
  background: #090d16 !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
}

body.is-drive-app::before,
body.is-drive-app::after,
body.is-drive-app .aurora-wrap,
body.is-drive-app > footer {
  display: none !important;
}

/* ── Drive Shell ─────────────────────────────────────────── */
.drive-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #090d16;
  color: #e2e8f0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  position: relative;
}

/* ── Left Sidebar ────────────────────────────────────────── */
.drive-sidebar {
  width: 250px;
  min-width: 250px;
  height: 100vh;
  background: #0d121d;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 50;
  user-select: none;
}

.drive-sidebar.collapsed {
  width: 74px;
  min-width: 74px;
  overflow: visible !important;
}

.sidebar-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 14px 14px 18px;
  min-height: 68px;
  box-sizing: border-box;
  transition: min-height 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), padding 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  overflow: hidden;
  width: calc(100% - 42px);
  padding: 2px 0;
  transition: width 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), gap 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-logo {
  height: 40px;
  width: 40px;
  max-width: 40px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(14, 165, 233, 0.55));
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), margin 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-brand-text {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 900;
  font-size: 17px;
  line-height: 1;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 160px;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  position: relative;
  top: 1.5px;
  background: linear-gradient(135deg, #ffffff 5%, #e0f2fe 28%, #38bdf8 65%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.45)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s ease, letter-spacing 0.25s ease;
}

.sidebar-brand:hover .sidebar-brand-text {
  letter-spacing: 1.2px;
  filter: drop-shadow(0 0 16px rgba(56, 189, 248, 0.85)) drop-shadow(0 0 26px rgba(14, 165, 233, 0.45));
}

.sidebar-brand:hover .sidebar-logo {
  transform: scale(1.05) rotate(-2deg);
  filter: drop-shadow(0 0 18px rgba(14, 165, 233, 0.85));
}

.sidebar-toggle-btn {
  position: absolute;
  top: 18px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: top 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              right 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              left 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.2s ease,
              border-color 0.2s ease,
              color 0.2s ease,
              box-shadow 0.2s ease;
  flex-shrink: 0;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.sidebar-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(99, 102, 241, 0.22) 100%);
  border-color: rgba(14, 165, 233, 0.45);
  color: #38bdf8;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35), inset 0 1px 1.5px rgba(255, 255, 255, 0.35);
}

.sidebar-toggle-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Collapsed Sidebar Top & Smooth Icon Drop */
.drive-sidebar.collapsed .sidebar-top {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  padding: 16px 0 10px 0 !important;
  min-height: auto !important;
  height: auto !important;
  box-sizing: border-box !important;
}

.drive-sidebar.collapsed .sidebar-brand {
  width: auto !important;
  justify-content: center !important;
  gap: 0 !important;
  margin: 0 auto !important;
}

.drive-sidebar.collapsed .sidebar-brand-text {
  opacity: 0;
  max-width: 0;
  transform: translateX(-12px);
  pointer-events: none;
  margin: 0;
  overflow: hidden;
}

.drive-sidebar.collapsed .sidebar-logo {
  height: 36px !important;
  width: 36px !important;
  max-width: 36px !important;
  margin: 0 auto !important;
  transform: none !important;
  filter: drop-shadow(0 0 12px rgba(14, 165, 233, 0.7)) !important;
  border-radius: 8px !important;
}

.drive-sidebar.collapsed .sidebar-toggle-btn {
  position: static !important;
  margin: 0 auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  transform: rotate(180deg) !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.07) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #94a3b8 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.2) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.drive-sidebar.collapsed .sidebar-toggle-btn:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%) !important;
  border-color: rgba(14, 165, 233, 0.5) !important;
  color: #38bdf8 !important;
  transform: rotate(180deg) scale(1.12) !important;
  box-shadow: 0 0 16px rgba(14, 165, 233, 0.4), inset 0 1px 1.5px rgba(255, 255, 255, 0.45) !important;
}

/* Upload Button */
.sidebar-upload-wrap {
  padding: 8px 16px 14px;
}

.sidebar-upload-btn {
  width: 100%;
  height: 44px;
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 50%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 8px 24px -2px rgba(6, 182, 212, 0.55),
    0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.55),
    inset 0 -2px 5px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.sidebar-upload-btn:hover {
  background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 50%, #3b82f6 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 12px 30px -2px rgba(6, 182, 212, 0.75),
    0 4px 10px rgba(0, 0, 0, 0.4),
    inset 0 2px 2px rgba(255, 255, 255, 0.7),
    inset 0 -2px 6px rgba(0, 0, 0, 0.3);
}

.sidebar-upload-btn:active {
  transform: translateY(0) scale(0.96);
  box-shadow:
    0 4px 14px rgba(6, 182, 212, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.sidebar-upload-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.4;
}

.drive-sidebar.collapsed .sidebar-upload-wrap {
  padding: 10px 0 16px;
  display: flex;
  justify-content: center;
  overflow: visible !important;
}

.drive-sidebar.collapsed .sidebar-upload-btn span {
  display: none;
}

.drive-sidebar.collapsed .sidebar-upload-btn {
  width: 48px;
  height: 48px;
  border-radius: 50% !important;
  padding: 0;
  margin: 0 auto;
  background: radial-gradient(circle at 35% 30%, #38bdf8 0%, #0ea5e9 45%, #2563eb 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow:
    0 8px 24px -2px rgba(14, 165, 233, 0.65),
    0 0 18px rgba(14, 165, 233, 0.35),
    inset 0 2.5px 3px rgba(255, 255, 255, 0.8),
    inset 0 -2.5px 5px rgba(0, 0, 0, 0.45) !important;
  animation: uploadBubbleBreathe 3.5s ease-in-out infinite alternate;
}

@keyframes uploadBubbleBreathe {
  0% {
    box-shadow:
      0 6px 20px -2px rgba(14, 165, 233, 0.55),
      0 0 12px rgba(14, 165, 233, 0.25),
      inset 0 2px 3px rgba(255, 255, 255, 0.75),
      inset 0 -2px 5px rgba(0, 0, 0, 0.4);
  }
  100% {
    box-shadow:
      0 10px 28px -2px rgba(14, 165, 233, 0.8),
      0 0 24px rgba(14, 165, 233, 0.55),
      inset 0 3px 3.5px rgba(255, 255, 255, 0.9),
      inset 0 -3px 6px rgba(0, 0, 0, 0.45);
  }
}

.drive-sidebar.collapsed .sidebar-upload-btn:hover {
  transform: translateY(-3px) scale(1.12) !important;
  box-shadow:
    0 14px 34px -2px rgba(14, 165, 233, 0.9),
    0 0 28px rgba(56, 189, 248, 0.7),
    inset 0 3px 4px rgba(255, 255, 255, 0.95),
    inset 0 -3px 6px rgba(0, 0, 0, 0.45) !important;
}

.drive-sidebar.collapsed .sidebar-upload-btn:active {
  transform: translateY(0) scale(0.94) !important;
}

.drive-sidebar.collapsed .sidebar-upload-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.6;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

/* Sidebar Nav */
.sidebar-nav {
  padding: 4px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 12px;
  color: #94a3b8;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: left;
  white-space: nowrap;
}

.sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  transform: translateX(3px);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-nav-item.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2) 0%, rgba(99, 102, 241, 0.16) 100%);
  border: 1px solid rgba(14, 165, 233, 0.45);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.sidebar-nav-item .nav-indicator {
  display: none;
  width: 14px;
  height: 14px;
  margin-right: -6px;
  color: #38bdf8;
}

.sidebar-nav-item.active .nav-indicator {
  display: inline-flex;
}

.sidebar-nav-item .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-nav-item .nav-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.sidebar-nav-item .nav-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 1px 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  color: #94a3b8;
}

.drive-sidebar.collapsed .sidebar-nav {
  padding: 6px 0;
  gap: 10px;
  align-items: center;
  overflow: visible !important;
}

.drive-sidebar.collapsed .sidebar-nav-item {
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50% !important;
  margin: 0 auto;
  padding: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: #94a3b8;
  position: relative;
  transition: all 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.drive-sidebar.collapsed .sidebar-nav-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-2px) scale(1.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1.5px 1.5px rgba(255, 255, 255, 0.3);
}

.drive-sidebar.collapsed .sidebar-nav-item.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35) 0%, rgba(99, 102, 241, 0.3) 100%) !important;
  border: 1.5px solid rgba(14, 165, 233, 0.65) !important;
  color: #38bdf8 !important;
  transform: scale(1.08);
  box-shadow:
    0 6px 20px rgba(14, 165, 233, 0.45),
    0 0 14px rgba(99, 102, 241, 0.3),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.5),
    inset 0 -1.5px 3px rgba(0, 0, 0, 0.3) !important;
}

.drive-sidebar.collapsed .sidebar-nav-item.active .nav-icon svg {
  filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.8));
  stroke: #38bdf8;
}

.drive-sidebar.collapsed .sidebar-nav-item .nav-label,
.drive-sidebar.collapsed .sidebar-nav-item .nav-indicator,
.drive-sidebar.collapsed .sidebar-nav-item .nav-badge {
  display: none !important;
}

/* ── Floating Bubble Tooltips in Collapsed Sidebar ───────────────── */
.drive-sidebar.collapsed [data-tooltip] {
  position: relative;
}

.drive-sidebar.collapsed [data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px) scale(0.92);
  background: rgba(13, 18, 30, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(14, 165, 233, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 99999;
}

.drive-sidebar.collapsed [data-tooltip]::before {
  content: '';
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
  border-width: 5px 6px 5px 0;
  border-style: solid;
  border-color: transparent rgba(255, 255, 255, 0.16) transparent transparent;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 99999;
}

.drive-sidebar.collapsed [data-tooltip]:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}

.drive-sidebar.collapsed [data-tooltip]:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Sidebar Bottom (Storage & Workspace) */
.sidebar-bottom {
  padding: 14px 16px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: padding 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sidebar-collapsed-bottom {
  display: none;
}

.drive-sidebar.collapsed .sidebar-collapsed-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  overflow: visible !important;
}

.collapsed-orb-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.24s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.collapsed-orb-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
}

.collapsed-orb-btn.storage-orb {
  background: rgba(255, 255, 255, 0.04);
  color: #38bdf8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.collapsed-orb-btn.storage-orb:hover {
  background: rgba(14, 165, 233, 0.18);
  border-color: rgba(14, 165, 233, 0.5);
  color: #ffffff;
  transform: translateY(-2px) scale(1.1);
  box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4), inset 0 1px 1.5px rgba(255, 255, 255, 0.4);
}

.collapsed-orb-btn.upgrade-orb {
  background: radial-gradient(circle at 35% 30%, #c084fc 0%, #a855f7 45%, #7c3aed 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  box-shadow:
    0 4px 16px rgba(168, 85, 247, 0.55),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.7),
    inset 0 -1.5px 3px rgba(0, 0, 0, 0.35);
  animation: upgradeOrbPulse 3s ease-in-out infinite alternate;
}

@keyframes upgradeOrbPulse {
  0% { box-shadow: 0 4px 14px rgba(168, 85, 247, 0.45), inset 0 1.5px 2px rgba(255, 255, 255, 0.6); }
  100% { box-shadow: 0 6px 22px rgba(168, 85, 247, 0.8), 0 0 12px rgba(192, 132, 252, 0.5), inset 0 2px 2.5px rgba(255, 255, 255, 0.85); }
}

.collapsed-orb-btn.upgrade-orb:hover {
  transform: translateY(-2px) scale(1.14);
  box-shadow: 0 8px 26px rgba(168, 85, 247, 0.9), 0 0 18px rgba(192, 132, 252, 0.7), inset 0 2.5px 3px rgba(255, 255, 255, 0.9);
}

.collapsed-orb-btn:active {
  transform: translateY(0) scale(0.94);
}

.sidebar-storage-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.storage-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 600;
}

.storage-icon {
  color: #94a3b8;
  display: flex;
  flex-shrink: 0;
}

.storage-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.storage-progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.storage-progress-fill {
  height: 100%;
  background: #0ea5e9;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.storage-renewal-box {
  color: #ef4444;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 2px;
}

.sidebar-upgrade-btn {
  width: 100%;
  padding: 8px 14px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 99px;
  color: #f3e8ff;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  margin-top: 4px;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.sidebar-upgrade-btn:hover {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 22px rgba(168, 85, 247, 0.55), inset 0 1.5px 2px rgba(255, 255, 255, 0.5);
}

.sidebar-upgrade-btn:active {
  transform: translateY(0) scale(0.96);
}

.sidebar-copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
  user-select: none;
}

.sidebar-copyright:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
}

.sidebar-copyright .cp-title {
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.sidebar-copyright .cp-sub {
  color: #64748b;
  font-size: 10px;
  margin-top: 1px;
}

.sidebar-copyright .cp-icon svg {
  width: 15px;
  height: 15px;
  stroke: #818cf8;
  display: block;
}

.drive-sidebar.collapsed .sidebar-bottom {
  padding: 12px 0 16px;
  align-items: center;
  gap: 12px;
  overflow: visible !important;
}

.drive-sidebar.collapsed .sidebar-storage-card,
.drive-sidebar.collapsed .sidebar-copyright .cp-info {
  display: none !important;
}

.drive-sidebar.collapsed .sidebar-copyright {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  padding: 0;
  margin: 0 auto;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.drive-sidebar.collapsed .sidebar-copyright:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.drive-sidebar.collapsed .sidebar-copyright .cp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Main Container ──────────────────────────────────────── */
.drive-main-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100vh;
  background: #090d16;
  position: relative;
}

/* ── Ambient Glowing Background Mesh Orbs ─────────────────── */
.drive-ambient-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.drive-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.16;
  pointer-events: none;
  animation: orbDrift 16s ease-in-out infinite alternate;
}
.drive-orb-1 {
  width: 520px;
  height: 520px;
  top: -80px;
  right: 12%;
  background: radial-gradient(circle, #0ea5e9 0%, rgba(14, 165, 233, 0) 70%);
}
.drive-orb-2 {
  width: 460px;
  height: 460px;
  bottom: 8%;
  left: 18%;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
  animation-delay: -8s;
  animation-duration: 20s;
}
.drive-orb-3 {
  width: 340px;
  height: 340px;
  top: 40%;
  right: 30%;
  background: radial-gradient(circle, #06b6d4 0%, rgba(6, 182, 212, 0) 70%);
  animation-delay: -4s;
  animation-duration: 18s;
}
@keyframes orbDrift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(35px, -25px) scale(1.08); }
  100% { transform: translate(-25px, 30px) scale(0.94); }
}

/* ── Topbar ──────────────────────────────────────────────── */
.drive-topbar {
  height: 60px;
  min-height: 60px;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 16px;
  z-index: 40;
  position: relative;
}

.topbar-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(17, 23, 38, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  padding: 0 16px;
  width: 440px;
  max-width: 100%;
  height: 40px;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.topbar-search:focus-within {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2), 0 4px 16px rgba(0, 0, 0, 0.35);
  background: rgba(19, 27, 44, 0.95);
  transform: translateY(-1px);
}

.topbar-search .search-icon {
  width: 16px;
  height: 16px;
  stroke: #64748b;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.topbar-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13.5px;
  font-family: inherit;
  flex: 1;
  width: 100%;
}

.topbar-search input::placeholder {
  color: #64748b;
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
  padding: 0 2px;
}

.search-clear-btn:hover {
  color: #fff;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar-icon-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.topbar-icon-btn:active {
  transform: translateY(0) scale(0.95);
}

.topbar-icon-btn.plus-btn {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.22) 0%, rgba(99, 102, 241, 0.22) 100%);
  border: 1px solid rgba(14, 165, 233, 0.5);
  color: #38bdf8;
  box-shadow: 0 4px 16px rgba(14, 165, 233, 0.32), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.topbar-icon-btn.plus-btn:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.65), inset 0 1.5px 2px rgba(255, 255, 255, 0.6);
}

.topbar-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.notif-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 6px #0ea5e9;
}

.topbar-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 4px 5px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar-user-chip:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(14, 165, 233, 0.4);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.user-avatar-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid #0ea5e9;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #162032;
  flex-shrink: 0;
}

.user-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-chip-name {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}

.topbar-user-chip .caret-icon {
  width: 13px;
  height: 13px;
  stroke: #94a3b8;
  stroke-width: 2.5;
  fill: none;
}

/* Dropdowns */
.dropdown-wrap {
  position: relative;
}

.drive-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #0f131a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 8px 6px;
  min-width: 215px;
  z-index: 1000;
  display: none;
  animation: dropdownIn 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.drive-dropdown::-webkit-scrollbar {
  width: 5px;
}
.drive-dropdown::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.drive-dropdown.open {
  display: block;
}

.drive-dropdown.dropup {
  top: auto;
  bottom: calc(100% + 4px);
  animation: dropupIn 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropupIn {
  from { opacity: 0; transform: translateY(4px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-4px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 14px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: #f1f5f9;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.12s ease;
  text-align: left;
  font-family: inherit;
  box-sizing: border-box;
}

.dropdown-item:hover {
  background: #1a202c;
  color: #ffffff;
}

.dropdown-item.active {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  font-weight: 600;
}

.dropdown-item svg {
  width: 17px;
  height: 17px;
  stroke: #cbd5e1;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
  transition: stroke 0.12s ease;
}

.dropdown-item:hover svg {
  stroke: #ffffff;
}

.dropdown-item.danger {
  color: #f1f5f9;
}

.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
}

.dropdown-item.danger:hover svg {
  stroke: #f87171;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 5px 0;
}

.user-dropdown {
  min-width: 230px;
}

.user-dropdown-header {
  padding: 10px 12px 6px;
}

.user-dropdown-header b {
  display: block;
  color: #ffffff;
  font-size: 14px;
}

.user-dropdown-email {
  display: block;
  color: #64748b;
  font-size: 11.5px;
  word-break: break-all;
  margin-top: 2px;
}

.notif-dropdown {
  width: 320px;
  padding: 12px;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.notif-item {
  display: flex;
  gap: 10px;
  padding: 10px 4px;
  font-size: 12.5px;
  color: #cbd5e1;
}

.notif-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0ea5e9;
  margin-top: 5px;
  flex-shrink: 0;
}

/* ── Workspace Area ──────────────────────────────────────── */
.drive-workspace {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.drive-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px 6px;
  gap: 16px;
}

.drive-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.drive-crumb {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 19px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.15s;
  font-family: inherit;
}

.drive-crumb:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.drive-crumb.active {
  color: #ffffff;
  font-weight: 700;
}

.crumb-caret {
  width: 14px;
  height: 14px;
  stroke: #94a3b8;
  stroke-width: 2.5;
  fill: none;
}

.crumb-sep {
  color: #475569;
  font-size: 15px;
  user-select: none;
}

.drive-crumb-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(234, 179, 8, 0.14);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #facc15;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 99px;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.15);
  font-family: inherit;
}

.drive-crumb-lock-badge:hover {
  background: rgba(234, 179, 8, 0.25);
  border-color: rgba(234, 179, 8, 0.7);
  color: #fef08a;
  transform: translateY(-1px);
  box-shadow: 0 2px 14px rgba(234, 179, 8, 0.3);
}

.drive-crumb-lock-badge:active {
  transform: translateY(0);
}

.drive-crumb-lock-badge svg {
  width: 13px;
  height: 13px;
  stroke: #facc15;
  fill: none;
  stroke-width: 2.2;
}

.drive-subbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drive-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drive-icon-btn:hover,
.drive-icon-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.drive-icon-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.drive-view-toggles {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.drive-view-btn {
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 6px 9px;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.drive-view-btn:hover:not(.active) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.drive-view-btn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.3) 0%, rgba(99, 102, 241, 0.3) 100%);
  border: 1px solid rgba(14, 165, 233, 0.5);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.drive-view-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Sorter & Ribbon */
.drive-ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 28px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 2;
}

.ribbon-left {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
}

.drive-sort-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 99px;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.drive-sort-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.drive-sort-pill .sort-icon {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.drive-sort-pill .caret-icon {
  width: 12px;
  height: 12px;
  stroke: #64748b;
  stroke-width: 2.2;
  fill: none;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  padding: 2px 0;
}

.cat-pill {
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cat-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.cat-pill.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.35) 0%, rgba(99, 102, 241, 0.35) 100%);
  border: 1px solid #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

.ribbon-trash-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Content Scroll Area */
.drive-content-scroll {
  flex: 1;
  overflow-y: auto;
  position: relative;
  padding-bottom: 300px;
  z-index: 1;
}

/* ── File / Folder Cards Grid (Exact screenshot match) ─────── */
.drive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  padding: 18px 28px;
}

.drive-card {
  background: rgba(19, 25, 38, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  height: 215px;
  user-select: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.drive-card.menu-active,
.drive-card:has(.drive-dropdown.open) {
  z-index: 1000 !important;
}

.drive-table tr.menu-active,
.drive-table tr:has(.drive-dropdown.open) {
  position: relative;
  z-index: 1000 !important;
}

.drive-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(14, 165, 233, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(14, 165, 233, 0.2);
}

.drive-card.selected {
  border-color: #0ea5e9;
  background: rgba(22, 34, 56, 0.9);
  box-shadow: 0 0 0 1.5px #0ea5e9, 0 10px 28px rgba(14, 165, 233, 0.3);
}

/* Card Preview Visual Area */
.card-preview-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  position: relative;
  overflow: hidden;
  background: #121824;
  border-radius: 16px 16px 0 0;
}

/* Yellow Outline Folder Icon (Exact from Screenshot) */
.card-folder-svg {
  width: 68px;
  height: 68px;
  stroke: #eab308;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 12px rgba(234, 179, 8, 0.25));
}

/* Video Outline Icon (Exact from Screenshot) */
.card-video-svg {
  width: 64px;
  height: 64px;
  stroke: #f97316;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 12px rgba(249, 115, 22, 0.25));
}

/* Audio Outline Icon */
.card-audio-svg {
  width: 64px;
  height: 64px;
  stroke: #a855f7;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.25));
}

/* Word Outline Icon (Microsoft Blue) */
.card-word-svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.35));
}

/* Excel Outline Icon (Microsoft Green) */
.card-excel-svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.35));
}

/* PowerPoint Outline Icon (Microsoft Orange) */
.card-pptx-svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 12px rgba(249, 115, 22, 0.35));
}

/* PDF Outline Icon (Adobe Red / Rose) */
.card-pdf-svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 12px rgba(244, 63, 94, 0.35));
}

/* Code Outline Icon (Cyan) */
.card-code-svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 12px rgba(6, 182, 212, 0.35));
}

/* Document / Archive Outline Icon */
.card-doc-svg {
  width: 64px;
  height: 64px;
  stroke: #38bdf8;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.25));
}

.card-archive-svg {
  width: 64px;
  height: 64px;
  stroke: #f59e0b;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.25));
}

/* Image Thumbnail */
.card-img-thumb {
  max-height: 135px;
  max-width: 90%;
  object-fit: contain;
  border-radius: 4px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

/* Card Star & Checkbox Controls */
.card-star-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all 0.15s ease;
  z-index: 5;
}

.drive-card:hover .card-star-btn,
.card-star-btn.is-favorite {
  opacity: 1;
}

.card-star-btn.is-favorite {
  color: #eab308;
  border-color: rgba(234, 179, 8, 0.35);
}

.card-star-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.card-star-btn.is-favorite svg {
  fill: #eab308;
}

.card-select-chk {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  accent-color: #0ea5e9;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 5;
}

.drive-card:hover .card-select-chk,
.drive-card.selected .card-select-chk {
  opacity: 1;
}

/* Card Bottom Label Bar (Exact screenshot match) */
.card-footer {
  height: 52px;
  background: #161e2e;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 0 0 16px 16px;
  padding: 0 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  overflow: visible;
}

.card-title {
  font-size: 13.5px;
  font-weight: 500;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: center;
}

.card-dots-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #20293d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  opacity: 1;
}

.drive-card:hover .card-dots-btn,
.drive-card.selected .card-dots-btn,
.drive-card.menu-active .card-dots-btn,
.drive-card:has(.drive-dropdown.open) .card-dots-btn {
  opacity: 1;
}

.card-dots-btn:hover,
.drive-card.menu-active .card-dots-btn,
.drive-card:has(.drive-dropdown.open) .card-dots-btn {
  background: #2b3752;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.card-dots-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
}
.card-dots-btn svg circle {
  fill: currentColor;
}

/* ── Table View ──────────────────────────────────────────── */
.drive-table-wrap {
  padding: 12px 28px;
}

.drive-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.drive-table th {
  padding: 10px 12px;
  text-align: left;
  color: #64748b;
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drive-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: #cbd5e1;
}

.drive-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.drive-table tr.selected td {
  background: rgba(14, 165, 233, 0.08);
}

.table-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.table-name-cell svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.table-name-cell .name-text {
  font-weight: 500;
  color: #f1f5f9;
}

/* ── Right Details / Inspector Drawer ────────────────────── */
.drive-drawer {
  position: fixed;
  top: 60px;
  right: 0;
  bottom: 0;
  width: 340px;
  background: #0d121d;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 45;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px;
  box-shadow: none;
}

.drive-drawer.open {
  transform: translateX(0);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.55);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
}

.drawer-close-btn:hover {
  color: #ffffff;
}

.drawer-preview-box {
  margin: 18px 0;
  height: 160px;
  background: #121824;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
}

.drawer-preview-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.drawer-meta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12.5px;
}

.drawer-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.drawer-meta-item .meta-label {
  color: #64748b;
}

.drawer-meta-item .meta-val {
  color: #e2e8f0;
  font-weight: 500;
  text-align: right;
  word-break: break-all;
}

.drawer-actions-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.drawer-action-primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 42px;
  background: #0070f3;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 112, 243, 0.35);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.drawer-action-primary-btn:hover {
  background: #0060df;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 112, 243, 0.45);
}

.drawer-action-primary-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.drawer-actions-subgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.drawer-action-sub-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.drawer-action-sub-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.drawer-action-sub-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

/* ── Floating Upload Status Card ─────────────────────────── */
.floating-upload-card {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 350px;
  background: #131926;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  padding: 14px 16px;
  z-index: 100;
  transition: transform 0.22s, opacity 0.22s;
  animation: slideUpIn 0.24s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.fup-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 220px;
}

.fup-speed {
  font-size: 11.5px;
  color: #38bdf8;
  font-weight: 600;
}

.fup-progress-wrap {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin: 6px 0;
}

.fup-progress-fill {
  height: 100%;
  background: #0ea5e9;
  border-radius: 99px;
  transition: width 0.15s ease;
}

.fup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 4px;
}

/* ── Fullscreen Drag & Drop Overlay ──────────────────────── */
.drop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.9);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 3px dashed #0ea5e9;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.drop-overlay.active {
  opacity: 1;
}

.drop-overlay-icon {
  width: 64px;
  height: 64px;
  color: #0ea5e9;
  animation: bounceSlow 1.5s infinite;
}

@keyframes bounceSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.drop-overlay b {
  font-size: 18px;
  color: #ffffff;
}

.drop-overlay p {
  color: #94a3b8;
  font-size: 14px;
}

/* ── Support Center View ─────────────────────────────────── */
.support-center-view {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 20px;
}

.support-hero {
  text-align: center;
  margin-bottom: 30px;
}

.support-hero h2 {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 8px;
}

.support-hero p {
  color: #94a3b8;
  font-size: 14px;
}

.support-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 30px;
}

.support-card {
  background: #131926;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.support-card .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.15);
  color: #0ea5e9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-card h4 {
  color: #ffffff;
  font-size: 16px;
}

.support-card p {
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.5;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #131926;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
}

.faq-q {
  font-weight: 600;
  color: #ffffff;
  font-size: 14px;
}

.faq-a {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.6;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .topbar-search {
    width: 240px;
  }
  .drive-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }
  .drive-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.8);
  }
}

/* ── Centered Empty State View ────────────────────────────── */
.drive-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 180px);
  padding: 40px 20px;
  text-align: center;
  user-select: none;
  animation: fadeInEmpty 0.22s ease;
}

@keyframes fadeInEmpty {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.empty-illustration-wrap {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-illustration-wrap svg {
  max-width: 100%;
  height: auto;
}

.empty-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
}

.empty-desc {
  font-size: 13.5px;
  color: #8b9cb5;
  margin: 0;
  max-width: 460px;
  line-height: 1.5;
}

/* ── Modern Upgrade Modal & Plan Cards ────────────────────────────── */
.modal-window.upgrade-window {
  max-width: 640px !important;
  width: 95%;
  background: linear-gradient(165deg, #101426 0%, #0b0e1b 100%) !important;
  border: 1px solid rgba(139, 92, 246, 0.3) !important;
  border-radius: 26px !important;
  padding: 28px 30px !important;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.9), 0 0 55px rgba(99, 102, 241, 0.2) !important;
  text-align: left;
}
.upgrade-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
  margin-top: 20px;
}
@media (max-width: 640px) {
  .upgrade-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .modal-window.upgrade-window {
    padding: 22px 18px !important;
  }
}
.upgrade-plan-card {
  border-radius: 18px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.22s cubic-bezier(0.34, 1.35, 0.64, 1), box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}
.upgrade-plan-card:hover {
  transform: translateY(-4px);
}
.upgrade-plan-card.current {
  background: linear-gradient(175deg, rgba(14, 165, 233, 0.1) 0%, rgba(13, 17, 33, 0.85) 100%);
  border: 1.5px solid rgba(14, 165, 233, 0.5);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.12), inset 0 0 20px rgba(14, 165, 233, 0.05);
}
.upgrade-plan-card.current:hover {
  border-color: #38bdf8;
  box-shadow: 0 14px 38px rgba(14, 165, 233, 0.22), inset 0 0 24px rgba(14, 165, 233, 0.08);
}
.upgrade-plan-card.custom {
  background: linear-gradient(175deg, rgba(168, 85, 247, 0.14) 0%, rgba(13, 17, 33, 0.85) 100%);
  border: 1.5px solid rgba(168, 85, 247, 0.55);
  box-shadow: 0 10px 35px rgba(168, 85, 247, 0.18), inset 0 0 25px rgba(168, 85, 247, 0.06);
}
.upgrade-plan-card.custom:hover {
  border-color: #c084fc;
  box-shadow: 0 14px 44px rgba(168, 85, 247, 0.28), inset 0 0 30px rgba(168, 85, 247, 0.1);
}
.upgrade-card-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.upgrade-card-tag.tag-blue {
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #38bdf8;
}
.upgrade-card-tag.tag-cyan {
  background: rgba(6, 182, 212, 0.16);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #22d3ee;
}
.upgrade-card-tag.tag-purple {
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
}
.upgrade-card-title {
  color: #fff;
  margin: 12px 0 4px;
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}
.upgrade-card-sub {
  color: #94a3b8;
  font-size: 0.82rem;
  margin: 0 0 16px;
  line-height: 1.4;
}
.upgrade-card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.8rem;
  color: #cbd5e1;
}
.upgrade-card-features span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.upgrade-card-features svg {
  flex-shrink: 0;
}
.upgrade-card-status {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.upgrade-btn-cyan {
  width: 100%;
  background: linear-gradient(135deg, #06b6d4 0%, #0284c7 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow:
    0 6px 20px -2px rgba(6, 182, 212, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.55),
    inset 0 -2px 5px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-weight: 700;
  border-radius: 99px;
  padding: 11px 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 0.9rem;
}
.upgrade-btn-cyan:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow:
    0 10px 30px -2px rgba(6, 182, 212, 0.8),
    0 4px 10px rgba(0, 0, 0, 0.4),
    inset 0 2px 2px rgba(255, 255, 255, 0.7),
    inset 0 -2px 6px rgba(0, 0, 0, 0.3);
}
.upgrade-btn-cyan:active {
  transform: translateY(0) scale(0.96);
}

.upgrade-btn-purple {
  width: 100%;
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 6px 24px -2px rgba(168, 85, 247, 0.6),
    0 2px 6px rgba(0, 0, 0, 0.3),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.55),
    inset 0 -2px 5px rgba(0, 0, 0, 0.3);
  color: #fff;
  font-weight: 700;
  border-radius: 99px;
  padding: 11px 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-size: 0.9rem;
}
.upgrade-btn-purple:hover {
  transform: translateY(-2px) scale(1.025);
  box-shadow:
    0 10px 32px -2px rgba(168, 85, 247, 0.85),
    0 4px 10px rgba(0, 0, 0, 0.4),
    inset 0 2px 2px rgba(255, 255, 255, 0.75),
    inset 0 -2px 6px rgba(0, 0, 0, 0.3);
}
.upgrade-btn-purple:active {
  transform: translateY(0) scale(0.96);
}

/* ── Fullscreen File Manager Lightbox (Exact Match Reference) ────────── */
.file-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99990 !important;
  background: #11141c;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.file-lightbox.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.lightbox-topbar {
  height: 52px;
  background: #181d29;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  flex-shrink: 0;
  user-select: none;
  z-index: 10;
}
.lightbox-left-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lightbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.lightbox-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}
.lightbox-center-title {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 50%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lightbox-file-name {
  color: #f1f5f9;
  font-size: 0.92rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lightbox-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lightbox-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lightbox-nav-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-size: 1.15rem;
  font-weight: 300;
}
.lightbox-nav-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.lightbox-nav-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}
.lightbox-counter {
  font-size: 0.84rem;
  font-weight: 500;
  color: #cbd5e1;
  padding: 0 4px;
}
.lightbox-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-size: 1.1rem;
}
.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.lightbox-body {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
}
.lightbox-stage {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lightbox-card {
  width: min(92vw, 470px);
  background: rgba(18, 22, 38, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 38px 36px 34px;
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 45px rgba(99, 102, 241, 0.14);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.lightbox-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  pointer-events: none;
}
.lightbox-card .lightbox-card-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.lightbox-card .lightbox-card-title {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.4;
  word-break: normal;
  overflow-wrap: anywhere;
}
.lightbox-card .lightbox-card-meta {
  color: #94a3b8;
  font-size: 0.88rem;
  margin: 0 0 24px;
  font-weight: 500;
}
.lightbox-card audio {
  width: 100%;
  outline: none;
  border-radius: 30px;
  display: block;
}
.lightbox-stage img {
  max-width: 90vw;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  user-select: none;
}
.lightbox-stage video {
  width: min(88vw, 1080px);
  height: auto;
  max-height: calc(100vh - 130px);
  border-radius: 12px;
  outline: none;
  background: #000;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
}
video::-internal-media-controls-download-button,
audio::-internal-media-controls-download-button,
video::-webkit-media-controls-download-button,
audio::-webkit-media-controls-download-button {
  display: none !important;
}
.lightbox-floating-arrows {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  pointer-events: none;
  transform: translateY(-50%);
}
.lightbox-side-nav {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(24, 29, 41, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.18s, transform 0.18s, color 0.18s;
}
.lightbox-side-nav:hover:not(:disabled) {
  background: rgba(30, 41, 59, 0.95);
  color: #fff;
  transform: scale(1.08);
}
.lightbox-side-nav:disabled {
  opacity: 0.15;
  cursor: not-allowed;
}

/* Password Protection Badges & Toast */
.card-lock-badge {
  position: absolute;
  top: 10px;
  right: 42px;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(234, 179, 8, 0.18);
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: #eab308;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.25);
  z-index: 2;
  transition: all 0.2s ease;
}
.card-lock-badge:hover {
  transform: scale(1.1);
  background: rgba(234, 179, 8, 0.28);
}
.card-lock-badge svg {
  width: 13px;
  height: 13px;
  stroke: #eab308;
  fill: none;
  stroke-width: 2.2;
}
.table-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(234, 179, 8, 0.16);
  border: 1px solid rgba(234, 179, 8, 0.4);
  color: #eab308;
  margin-left: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}
.table-lock-icon svg {
  width: 12px;
  height: 12px;
  stroke: #eab308;
  fill: none;
  stroke-width: 2.2;
}

.app-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  transform: translateY(20px);
  opacity: 0;
  visibility: hidden;
  background: rgba(19, 22, 43, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(123, 111, 255, 0.35);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 0 20px rgba(123, 111, 255, 0.2);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 99px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 100050;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.app-toast.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Global Dark Mode Support for all OS controls */
:root, html, body {
  color-scheme: dark;
}
select, select option {
  background-color: #0f1326 !important;
  color: #f1f5f9 !important;
  color-scheme: dark !important;
}

/* Custom Dropdown Component for Move Modal & Pickers */
.custom-dropdown-wrap {
  position: relative;
  width: 100%;
}
.custom-dropdown-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #090c1a;
  border: 1.5px solid #4f46e5;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 0 18px rgba(79, 70, 229, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.4);
  color: #ffffff;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.2s ease;
  user-select: none;
}
.custom-dropdown-trigger:hover,
.custom-dropdown-trigger:focus-visible {
  border-color: #6366f1;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.45);
}
.custom-dropdown-label {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 500;
  color: #f1f5f9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.custom-dropdown-chevron {
  color: #94a3b8;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.custom-dropdown-wrap.open .custom-dropdown-chevron {
  transform: rotate(180deg);
}
.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0d1022;
  border: 1.5px solid rgba(123, 111, 255, 0.35);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(123, 111, 255, 0.15);
  backdrop-filter: blur(16px);
  max-height: 230px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  animation: dropdownIn 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.custom-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}
.custom-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(123, 111, 255, 0.3);
  border-radius: 10px;
}
.custom-dropdown-wrap.open .custom-dropdown-menu {
  display: block;
}
.custom-dropdown-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.custom-dropdown-option:hover {
  background: rgba(123, 111, 255, 0.15);
}
.custom-dropdown-option.selected {
  background: rgba(123, 111, 255, 0.24);
  border: 1px solid rgba(123, 111, 255, 0.45);
}
.opt-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.opt-icon {
  width: 18px;
  height: 18px;
  stroke: #818cf8;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}
.opt-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.opt-name {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.opt-sub {
  color: #94a3b8;
  font-size: 0.74rem;
}
.opt-check {
  width: 16px;
  height: 16px;
  stroke: #a855f7;
  fill: none;
  stroke-width: 2.5;
  display: none;
}
.custom-dropdown-option.selected .opt-check {
  display: block;
}

/* ==========================================================================
   Share Link & Shareable Link Settings Modals (Exact Match to User Designs)
   ========================================================================== */
.share-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 16px;
  gap: 12px;
}
.share-link-settings-action {
  background: transparent;
  border: none;
  color: #60a5fa;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.15s, opacity 0.15s;
}
.share-link-settings-action:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* Custom iOS/Material Switch Track & Thumb */
.share-custom-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.share-custom-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.share-switch-track {
  width: 44px;
  height: 24px;
  background: #374151;
  border-radius: 999px;
  display: inline-block;
  position: relative;
  transition: background-color 0.22s ease;
  flex-shrink: 0;
}
.share-switch-track::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  top: 3px;
  left: 3px;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}
.share-custom-switch input:checked + .share-switch-track {
  background: #4ade80; /* exact green active switch */
}
.share-custom-switch input:checked + .share-switch-track::after {
  transform: translateX(20px);
}
.share-switch-text {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
}
.share-switch-desc {
  color: #e2e8f0;
  font-size: 0.88rem;
  font-weight: 400;
}

/* URL Input Box with Attached Copy Button (Screenshot 3) */
.share-url-container {
  display: flex;
  align-items: stretch;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.share-url-container:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.share-url-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 14px;
  color: #e2e8f0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88rem;
  outline: none;
  min-width: 0;
}
.share-url-copy-btn {
  background: #0070f3;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  padding: 0 24px;
  cursor: pointer;
  transition: background-color 0.15s, transform 0.1s;
  flex-shrink: 0;
}
.share-url-copy-btn:hover {
  background: #0060df;
}
.share-url-copy-btn:active {
  transform: scale(0.98);
}
.share-url-copy-btn.copied {
  background: #16a34a;
}

/* Settings List (Screenshot 1 & 2) */
.share-setting-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.share-setting-header {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.share-setting-switch-row {
  display: flex;
  align-items: center;
}
.share-sub-panel {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  animation: fadeIn 0.2s ease-out;
}
.share-quick-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.share-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.15s;
}
.share-pill-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}
.share-save-btn {
  background: #0070f3;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  padding: 9px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s;
}
.share-save-btn:hover {
  background: #0060df;
}

/* Toolbar Action Button */
.drive-action-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}
.drive-action-pill-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}
.drive-action-pill-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

/* ── Filters Drawer (Matches Screenshot 1) ─────────────────── */
.drive-filter-drawer {
  position: fixed;
  top: 60px;
  right: 0;
  bottom: 0;
  width: 370px;
  max-width: 100vw;
  background: #0e121a;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(100%);
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 55;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.7);
  padding: 0;
}
.drive-filter-drawer.open {
  transform: translateX(0);
}

.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #111622;
}

.filter-drawer-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-drawer-funnel-icon {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
  fill: none;
  stroke-width: 2.2;
}

.filter-drawer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.filter-clear-all-link {
  background: transparent;
  border: none;
  color: #00d2ff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  transition: opacity 0.15s;
}
.filter-clear-all-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.filter-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-card {
  background: #151923;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.15s, background-color 0.15s;
}
.filter-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}
.filter-card.expanded {
  border-color: rgba(0, 210, 255, 0.35);
  background: #161c28;
}

.filter-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.filter-card-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-card-icon {
  width: 20px;
  height: 20px;
  stroke: #00d2ff;
  fill: none;
  stroke-width: 2.2;
  flex-shrink: 0;
}

.filter-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #ffffff;
}

.filter-card-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #00d2ff;
  background: rgba(0, 210, 255, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 8px;
  display: none;
}
.filter-card-badge.visible {
  display: inline-block;
}

.filter-card-chevron {
  width: 18px;
  height: 18px;
  stroke: #94a3b8;
  fill: none;
  stroke-width: 2.2;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.filter-card.expanded .filter-card-chevron {
  transform: rotate(180deg);
  stroke: #00d2ff;
}

.filter-card-body {
  padding: 8px 14px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: none;
  flex-direction: column;
  gap: 4px;
}
.filter-card.expanded .filter-card-body {
  display: flex;
}

.filter-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: #cbd5e1;
  font-size: 0.875rem;
  transition: background-color 0.12s, color 0.12s;
  user-select: none;
}
.filter-option-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}
.filter-option-item.selected {
  background: rgba(0, 210, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
}
.filter-option-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.filter-option-item.selected .filter-option-radio {
  border-color: #00d2ff;
  background: #00d2ff;
}
.filter-option-item.selected .filter-option-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0b0f17;
}

.filter-drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: #111622;
}

.filter-footer-cancel-btn {
  background: transparent;
  border: none;
  color: #00d2ff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 12px;
  transition: opacity 0.15s;
}
.filter-footer-cancel-btn:hover {
  opacity: 0.8;
}

.filter-footer-apply-btn {
  background: #00a8ff;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 168, 255, 0.35);
  transition: all 0.15s ease;
}
.filter-footer-apply-btn:hover {
  background: #0096e6;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 168, 255, 0.45);
}

/* ==========================================================================
   Document Readers (PDF, Excel, Word, PowerPoint)
   ========================================================================== */
.doc-viewer-card {
  display: flex;
  flex-direction: column;
  width: min(92vw, 1160px);
  height: calc(100vh - 120px);
  background: #0e121b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85);
  position: relative;
}

.doc-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #131724;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  gap: 12px;
}

.doc-viewer-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-badge-pill {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
}
.doc-badge-pill.pdf-pill {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.35);
}
.doc-badge-pill.excel-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.doc-badge-pill.word-pill {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.doc-badge-pill.pptx-pill {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.doc-meta-info {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 500;
}

.doc-viewer-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.doc-bar-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}
.doc-bar-btn.primary {
  background: #0070f3;
  color: #ffffff;
  border-color: #0070f3;
}
.doc-bar-btn.primary:hover {
  background: #0060df;
}

/* Loading & Error States */
.doc-viewer-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #94a3b8;
  font-size: 0.95rem;
  min-height: 280px;
}
.doc-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #00d2ff;
  border-radius: 50%;
  animation: docSpin 0.8s linear infinite;
}
@keyframes docSpin {
  to { transform: rotate(360deg); }
}

.doc-error-card {
  background: #141824;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 38px 46px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  max-width: 480px;
  width: 90%;
  margin: 0 auto;
}
.doc-error-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.doc-error-icon.excel-icon {
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}
.doc-error-icon.word-icon {
  background: rgba(59, 130, 246, 0.15);
  border: 2px solid rgba(59, 130, 246, 0.35);
  color: #60a5fa;
}
.doc-error-icon.pptx-icon {
  background: rgba(245, 158, 11, 0.15);
  border: 2px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

/* ── PDF Viewer ───────────────────────────────────────────── */
.doc-viewer-frame-wrap {
  flex: 1;
  position: relative;
  background: #232733;
  overflow: hidden;
}
.doc-viewer-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #1e2330;
}

/* ── Excel Spreadsheet Viewer ──────────────────────────────── */
.excel-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.excel-search-wrap svg {
  position: absolute;
  left: 9px;
  color: #64748b;
  pointer-events: none;
}
.excel-search-input {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.78rem;
  padding: 5px 10px 5px 28px;
  width: 160px;
  outline: none;
  transition: all 0.15s ease;
}
.excel-search-input:focus {
  border-color: #10b981;
  width: 210px;
}
.excel-table-scroll {
  flex: 1;
  overflow: auto;
  background: #0d1017;
  position: relative;
}
.excel-grid-table {
  border-collapse: collapse;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  color: #e2e8f0;
}
.excel-corner-th {
  position: sticky;
  top: 0;
  left: 0;
  z-index: 4;
  background: #161b26;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  width: 44px;
  min-width: 44px;
  color: #64748b;
  font-size: 0.7rem;
  text-align: center;
  padding: 6px 4px;
}
.excel-col-th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #161b26;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  text-align: center;
  user-select: none;
}
.excel-row-td {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #131722;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #64748b;
  font-size: 0.72rem;
  text-align: center;
  padding: 5px 8px;
  user-select: none;
}
.excel-grid-table tr:hover .excel-row-td {
  background: #1a2030;
  color: #cbd5e1;
}
.excel-grid-table tr:hover td.excel-cell {
  background: rgba(255, 255, 255, 0.035);
}
.excel-cell {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 6px 14px;
  white-space: nowrap;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.excel-cell.highlight {
  background: rgba(16, 185, 129, 0.25) !important;
  color: #6ee7b7;
  font-weight: 600;
}
.excel-sheets-tabs-bar {
  background: #131722;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.excel-sheets-tabs-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}
.excel-sheet-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.excel-sheet-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.excel-sheet-tab.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
}
.doc-empty-sheet {
  padding: 40px;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
}

/* ── Word DOCX Document Viewer ────────────────────────────── */
.doc-font-select {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 8px;
  outline: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.doc-font-select:hover,
.doc-font-select:focus {
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(0, 0, 0, 0.65);
}
.doc-font-select option {
  background: #131722;
  color: #f1f5f9;
}

.doc-zoom-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 2px 6px;
}
.doc-zoom-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 1rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.doc-zoom-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.doc-zoom-label {
  font-size: 0.76rem;
  color: #94a3b8;
  min-width: 40px;
  text-align: center;
  user-select: none;
}
.word-stage-scroll {
  flex: 1;
  overflow: auto;
  background: #090c14;
  padding: 30px 20px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.word-stage-inner {
  transform-origin: top center;
  transition: transform 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
}
.docx-target-container {
  --docx-doc-font: "Times New Roman", "Tinos", "Liberation Serif", Times, "Cambria", Georgia, serif;
  --docx-minorHAnsi-font: var(--docx-doc-font) !important;
  --docx-majorHAnsi-font: var(--docx-doc-font) !important;
  font-family: var(--docx-doc-font) !important;
  background: transparent !important;
  color: #0f172a;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: auto !important;
}

/* Eliminate docx-preview default wrapper gray background & excess padding */
.docx-target-container .docx-page-rendered-wrapper,
.docx-target-container .docx-wrapper,
.docx-target-container [class*="-wrapper"] {
  background: transparent !important;
  padding: 0 0 30px 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: auto !important;
}

/* Individual rendered Word pages as clean realistic white paper sheets */
.docx-target-container section.docx-page-rendered,
.docx-target-container section.docx-page-sheet,
.docx-target-container section.docx,
.docx-target-container section {
  --docx-minorHAnsi-font: var(--docx-doc-font) !important;
  --docx-majorHAnsi-font: var(--docx-doc-font) !important;
  font-family: var(--docx-doc-font) !important;
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 12px 45px rgba(0, 0, 0, 0.75) !important;
  margin: 0 auto 30px auto !important;
  border-radius: 4px !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: visible !important;
}

.docx-target-container section > article {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-width: 0 !important;
  font-family: inherit !important;
}

.docx-target-container section p,
.docx-target-container section span,
.docx-target-container section article,
.docx-target-container section div {
  color: #0f172a;
  font-family: inherit;
}
.docx-target-container section p,
.docx-target-container section span {
  white-space: pre-wrap !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}
.docx-target-container section a {
  color: #0070f3;
  text-decoration: underline;
}

/* Tables inside Word documents must fit cleanly within the white page margins */
.docx-target-container table {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.docx-target-container table col {
  box-sizing: border-box !important;
}
.docx-target-container table td,
.docx-target-container table th {
  box-sizing: border-box !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

/* ── PowerPoint PPTX Viewer ────────────────────────────────── */
.pptx-stage-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #090c13;
  overflow: auto;
}
.pptx-slide-canvas {
  width: min(85vw, 960px);
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #161b2b 0%, #1e243b 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
}
.pptx-slide-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
  padding-bottom: 12px;
}
.pptx-slide-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.3;
}
.pptx-slide-num-tag {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}
.pptx-slide-content-grid {
  flex: 1;
  display: flex;
  gap: 28px;
  overflow: hidden;
}
.pptx-slide-content-grid.has-images .pptx-slide-text-col {
  flex: 1.2;
}
.pptx-slide-content-grid.has-images .pptx-slide-media-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}
.pptx-slide-text-col {
  flex: 1;
  overflow-y: auto;
}
.pptx-slide-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pptx-slide-bullets li {
  position: relative;
  padding-left: 24px;
  color: #e2e8f0;
  font-size: 1.05rem;
  line-height: 1.5;
}
.pptx-slide-bullets li::before {
  content: '▸';
  position: absolute;
  left: 4px;
  color: #f59e0b;
  font-size: 1.1rem;
}
.pptx-empty-note {
  color: #64748b;
  font-style: italic;
}
.pptx-slide-img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.pptx-thumbs-bar {
  background: #111522;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.pptx-thumbs-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.pptx-thumb-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 120px;
  text-align: left;
}
.pptx-thumb-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}
.pptx-thumb-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
}
.pptx-thumb-card {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pptx-thumb-num {
  font-weight: 800;
  font-size: 0.75rem;
  color: #f59e0b;
}
.pptx-thumb-title {
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

