/* CloudVault — Light Enterprise Theme */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');
:root {
  --font: 'Plus Jakarta Sans', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: #eff6ff;
  --primary-ring: rgba(37,99,235,0.18);
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --border: #e5e7eb;
  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.07), 0 4px 6px rgba(0,0,0,.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-900);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
input, button, select, textarea { font-family: inherit; }

/* App Shell */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
}

@media (max-width: 900px) {

  .app-shell {
    display: block; /* ye sabse important fix hai */
  }

  .main-content {
    width: 100%;
    margin-left: 0;
  }

}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px; /* fixed width */
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 50;
}
.sidebar-logo {
  padding: 16px 18px 14px; display: flex; align-items: center; gap: 9px;
  border-bottom: 1px solid var(--border);
}
.logo-mark {
  width: 30px; height: 30px; background: var(--primary); border-radius: 7px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-mark svg { width: 16px; height: 16px; color: white; fill: none; stroke: white; stroke-width: 2; }
.logo-text { font-weight: 800; font-size: 15px; color: var(--gray-900); letter-spacing: -.3px; }
.sidebar-nav { flex: 1; padding: 10px 8px; }
.nav-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--gray-400); padding: 10px 10px 5px;
}
.nav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--gray-600); font-size: 13.5px; font-weight: 500;
  transition: all .12s; margin-bottom: 1px; cursor: pointer;
}
.nav-link:hover { background: var(--gray-100); color: var(--gray-900); }
.nav-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.sidebar-footer { padding: 12px 14px; border-top: 1px solid var(--border); }
.user-card { display: flex; align-items: center; gap: 9px; padding: 8px; margin-bottom: 10px; }
.avatar {
  width: 32px; height: 32px; border-radius: 8px; background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.user-meta { min-width: 0; flex: 1; }
.user-name { font-weight: 600; font-size: 12.5px; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-plan { font-size: 10.5px; font-weight: 600; }
.plan-free { color: var(--gray-400); }
.plan-pro  { color: var(--primary); }
.storage-block { margin-bottom: 10px; }
.storage-meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--gray-500); margin-bottom: 4px; }
.bar-track { height: 4px; background: var(--gray-200); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--primary); transition: width .5s ease; }
.bar-fill.warn { background: var(--warning); }
.bar-fill.crit { background: var(--danger); }

/* Topbar */
.topbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 22px; height: 54px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 30; flex-shrink: 0; gap: 14px;
}
.topbar-title { font-weight: 700; font-size: 15px; color: var(--gray-900); white-space: nowrap; }
.search-wrap { position: relative; flex: 1; max-width: 340px; }
.search-wrap svg {
  position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  width: 15px; height: 15px; color: var(--gray-400); pointer-events: none;
}
.search-input {
  width: 100%; padding: 7px 11px 7px 32px;
  background: var(--gray-100); border: 1.5px solid transparent;
  border-radius: 8px; font-size: 13px; color: var(--gray-900);
  outline: none; transition: all .15s;
}
.search-input:focus { background: var(--white); border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.search-input::placeholder { color: var(--gray-400); }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.view-toggle { display: flex; background: var(--gray-100); border-radius: 7px; padding: 3px; gap: 2px; }
.view-btn {
  width: 28px; height: 26px; border-radius: 5px; border: none;
  background: transparent; cursor: pointer; display: flex;
  align-items: center; justify-content: center; color: var(--gray-500); transition: all .12s;
}
.view-btn.active { background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); }
.view-btn svg { width: 14px; height: 14px; }

/* Main */
.main-content {
  flex: 1;
  min-width: 0;
  width: 100%;
  margin-left: 260px;
  display: flex;
  flex-direction: column;
}
.page-body { padding: 22px; flex: 1; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.stat-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.stat-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500); margin-bottom: 5px; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--gray-900); letter-spacing: -.4px; }
.stat-sub { font-size: 11px; color: var(--gray-400); margin-top: 2px; }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-lg);
  padding: 28px; text-align: center; cursor: pointer;
  transition: all .2s; background: var(--white); margin-bottom: 18px; position: relative;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--primary); background: var(--primary-light); }
.upload-zone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon-wrap {
  width: 44px; height: 44px; background: var(--primary-light); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}
.upload-icon-wrap svg { width: 22px; height: 22px; color: var(--primary); }
.upload-text { font-weight: 600; font-size: 14px; color: var(--gray-800); margin-bottom: 3px; }
.upload-sub { font-size: 12px; color: var(--gray-500); }
.progress-wrap { margin-top: 12px; display: none; }
.progress-track { height: 5px; background: var(--gray-200); border-radius: 99px; overflow: hidden; margin-bottom: 5px; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 99px; transition: width .3s; width: 0%; }
.progress-label { font-size: 11.5px; color: var(--gray-500); font-family: var(--mono); }

/* Section header */
.section-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-title { font-weight: 700; font-size: 14.5px; color: var(--gray-900); }
.section-count { font-size: 11.5px; color: var(--gray-500); background: var(--gray-100); padding: 2px 8px; border-radius: 20px; font-weight: 600; }

/* List view */
.list-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); position: relative; overflow: visible; box-shadow: var(--shadow-sm);margin-bottom: 18px; }
.swipe-table-wrap {
  overflow-x: auto;
  width: 100%;
}
.list-card span[style*="Most Popular"]{
  top: -8px;
  transform: translateX(-50%);
  z-index: 2;
}
.list-card table { width: 100%; border-collapse: collapse; }
.list-card thead th {
  background: var(--gray-50); font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--gray-500);
  padding: 9px 16px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.list-card tbody tr { transition: background .1s; border-bottom: 1px solid var(--gray-100); }
.list-card tbody tr:last-child { border-bottom: none; }
.list-card tbody tr:hover { background: var(--gray-50); }
.list-card tbody td { padding: 10px 16px; vertical-align: middle; }
.file-name-col { display: flex; align-items: center; gap: 10px; }
.thumb-sm {
  width: 34px; height: 34px; border-radius: 7px; overflow: hidden;
  background: var(--gray-100); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border: 1px solid var(--gray-200);
}
.thumb-sm img, .thumb-sm video { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-sm .ext-icon { font-size: 17px; }
.fname { font-weight: 500; font-size: 13px; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.fsize { font-size: 11.5px; color: var(--gray-500); font-family: var(--mono); }
.fdate { font-size: 12px; color: var(--gray-500); white-space: nowrap; }
.row-actions { display: flex; align-items: center; gap: 4px; }
.act-btn {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border);
  background: var(--white); cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--gray-600); transition: all .12s;
}
.act-btn:hover { background: var(--gray-100); border-color: var(--gray-300); color: var(--gray-900); }
.act-btn.del:hover { background: var(--danger-bg); border-color: #fca5a5; color: var(--danger); }
.act-btn svg { width: 13px; height: 13px; }
.dots-wrap { position: relative; }
.dots-dd {
  position: absolute; right: 0; top: calc(100% + 4px);
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg); min-width: 148px; z-index: 50; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .15s;
}
.dots-dd.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-item {
  display: flex; align-items: center; gap: 9px; padding: 8px 13px;
  font-size: 13px; color: var(--gray-700); cursor: pointer; transition: background .1s;
  border: none; background: none; width: 100%; text-align: left; font-family: var(--font);
}
.dd-item:hover { background: var(--gray-100); color: var(--gray-900); }
.dd-item.danger { color: var(--danger); }
.dd-item.danger:hover { background: var(--danger-bg); }
.dd-item svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Grid view */
.files-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px,1fr)); gap: 12px; }
.grid-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; position: relative;
  cursor: default; transition: all .15s; box-shadow: var(--shadow-sm);
}
.grid-card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); transform: translateY(-1px); }
.grid-preview {
  width: 100%; aspect-ratio: 1/1; overflow: visible !important;
  background: var(--gray-100); display: flex; align-items: center; justify-content: center; position: relative;
}
.grid-preview img, .grid-preview video { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid-preview canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid-preview .big-icon { font-size: 42px; }
.vid-play-badge { pointer-events: none; }
.ext-badge {
  position: absolute; bottom: 5px; left: 5px;
  background: rgba(0,0,0,.5); color: white; font-size: 9px; font-weight: 700;
  font-family: var(--mono); padding: 2px 5px; border-radius: 4px; text-transform: uppercase;
}
.grid-menu-btn {
  position: absolute; top: 5px; right: 5px; z-index: 5;
  width: 26px; height: 26px; border-radius: 6px;
  background: rgba(255,255,255,.92); border: 1px solid rgba(0,0,0,.08);
  box-shadow: var(--shadow-sm); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-700); opacity: 0; transition: opacity .12s;
  backdrop-filter: blur(4px);
}
.grid-card:hover .grid-menu-btn { opacity: 1; }
.grid-menu-btn:hover { background: var(--white); }
.grid-menu-btn svg { width: 13px; height: 13px; }
.grid-dd {
  position: absolute; right: 5px; top: 34px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  min-width: 148px; z-index: 60; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .15s;
}
.grid-dd.open { opacity: 1; visibility: visible; transform: translateY(0); }
.grid-info { padding: 9px 10px 10px; border-top: 1px solid var(--gray-100); }
.grid-fname { font-size: 12px; font-weight: 500; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.grid-fsize { font-size: 11px; color: var(--gray-400); font-family: var(--mono); }

/* Empty */
.empty-state {
  text-align: center; padding: 56px 24px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.empty-icon { font-size: 44px; margin-bottom: 12px; opacity: .3; }
.empty-title { font-size: 15px; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
.empty-sub { font-size: 12.5px; color: var(--gray-500); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 11px 15px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 13.5px; font-weight: 600;
  cursor: pointer; border: none; transition: all .15s; white-space: nowrap; user-select: none; line-height: 1;
}
.btn-primary { background: var(--primary); color: white; box-shadow: 0 1px 2px rgba(37,99,235,.25); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: var(--white); color: var(--gray-700); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: var(--gray-50); border-color: var(--gray-300); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #b91c1c; }
.btn-ghost { background: transparent; color: var(--gray-600); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }
.btn-sm {
  padding: 8px 14px;
  min-height: 36px;
  font-size: 13px;
}
.btn-full { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 14px; height: 14px; }

/* Forms */
.form-group { margin-bottom: 15px; }
.flabel { display: block; font-size: 12px; font-weight: 600; color: var(--gray-700); margin-bottom: 5px; }
.input-wrap { position: relative; }
.form-control {
  width: 100%; padding: 9px 12px;
  background: var(--white); border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--gray-900); outline: none;
  transition: border-color .15s, box-shadow .15s; font-family: var(--font);
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.form-control::placeholder { color: var(--gray-400); }
.form-control.is-valid   { border-color: var(--success); }
.form-control.is-invalid { border-color: var(--danger); }
.form-control:disabled, .form-control[readonly] { background: var(--gray-100); color: var(--gray-500); cursor: not-allowed; }
.suffix-btn {
  position: absolute; right: 0; top: 0; bottom: 0;
  padding: 0 12px; border: none; background: var(--primary); color: white;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font);
  display: flex; align-items: center; gap: 6px; transition: background .15s;
  white-space: nowrap;
}
.suffix-btn:hover { background: var(--primary-hover); }
.suffix-btn:disabled { background: var(--gray-400); cursor: not-allowed; }
.field-hint { font-size: 11.5px; margin-top: 5px; display: flex; align-items: center; gap: 5px; line-height: 1.4; }
.hint-ok  { color: var(--success); }
.hint-err { color: var(--danger); }
.hint-info{ color: var(--gray-500); }
.hint-checking { color: var(--gray-500); }
.field-hint svg { width: 12px; height: 12px; flex-shrink: 0; }

/* OTP */
.otp-row { display: flex; gap: 8px; justify-content: center; margin: 14px 0; }
.otp-d {
  width: 44px; height: 50px; border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm); text-align: center; font-size: 20px;
  font-weight: 700; font-family: var(--mono); color: var(--gray-900);
  outline: none; transition: all .15s; background: var(--white);
}
.otp-d:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-ring); }
.otp-d.filled { border-color: var(--primary); background: var(--primary-light); }
.otp-d.ok     { border-color: var(--success); background: var(--success-bg); color: var(--success); }
.otp-d.bad    { border-color: var(--danger);  background: var(--danger-bg);  color: var(--danger); }

/* Auth */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--gray-50); padding: 20px; }
.auth-panel {
  width: 100%; max-width: 464px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 38px 38px 34px; box-shadow: var(--shadow-lg);
}
.auth-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 26px; }
.auth-logo .logo-mark { width: 34px; height: 34px; border-radius: 8px; }
.auth-title { font-size: 21px; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; letter-spacing: -.4px; }
.auth-sub { font-size: 13px; color: var(--gray-500); margin-bottom: 22px; }
.auth-foot { text-align: center; margin-top: 16px; font-size: 13px; color: var(--gray-500); }
.auth-foot a { color: var(--primary); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }
hr.divider { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

/* Alerts */
.alert { padding: 10px 13px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 14px; display: flex; align-items: flex-start; gap: 8px; }
.alert-error   { background: var(--danger-bg);  border: 1px solid #fca5a5; color: var(--danger); }
.alert-success { background: var(--success-bg); border: 1px solid #86efac; color: var(--success); }
.alert-info    { background: var(--primary-light); border: 1px solid #93c5fd; color: var(--primary); }
.alert svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px; }

/* Checkbox */
.check-row { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.check-row input[type=checkbox] { width: 15px; height: 15px; cursor: pointer; accent-color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.check-row span { font-size: 13px; color: var(--gray-600); line-height: 1.5; }
.check-row span a { color: var(--primary); font-weight: 600; }

/* Modal */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.3); backdrop-filter: blur(3px); z-index: 100; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal-box { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; max-width: 380px; width: 100%; margin: 16px; box-shadow: var(--shadow-lg); animation: modalIn .2s ease both; }
.modal-title { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 7px; }
.modal-body  { font-size: 13.5px; color: var(--gray-600); margin-bottom: 20px; }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.badge-blue   { background: #eff6ff; color: #2563eb; }
.badge-green  { background: #f0fdf4; color: #16a34a; }
.badge-yellow { background: #fffbeb; color: #d97706; }
.badge-red    { background: #fef2f2; color: #dc2626; }
.badge-gray   { background: var(--gray-100); color: var(--gray-600); }
.badge-purple { background: #faf5ff; color: #9333ea; }

/* Toast */
.toast-wrap { position: fixed; bottom: 18px; right: 18px; display: flex; flex-direction: column; gap: 7px; z-index: 200; }
.toast { display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; min-width: 210px; box-shadow: var(--shadow-lg); animation: slideUp .22s ease both; }
.toast-ok  { background: white; border: 1px solid #86efac; color: var(--success); }
.toast-err { background: white; border: 1px solid #fca5a5; color: var(--danger); }
.toast-inf { background: white; border: 1px solid #93c5fd; color: var(--primary); }
.toast svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Spinner */
.spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .55s linear infinite; display: inline-block; }
.spinner-blue { border-color: var(--primary-ring); border-top-color: var(--primary); }

/* Resend */
.resend-row { text-align: center; margin-top: 9px; }
.resend-btn { background: none; border: none; cursor: pointer; color: var(--primary); font-weight: 600; font-size: 12.5px; font-family: var(--font); padding: 0; }
.resend-btn:disabled { color: var(--gray-400); cursor: not-allowed; }
.timer-txt { font-size: 12px; color: var(--gray-500); }

/* Mobile */
.mobile-bar { display: none; background: var(--white); border-bottom: 1px solid var(--border); padding: 11px 14px; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 50; }
.ham-btn { width: 32px; height: 32px; background: var(--gray-100); border: 1px solid var(--border); border-radius: 7px; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gray-600); }
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 40;
}

.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Animations */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* Responsive */
@media (max-width: 900px) {

  .mobile-bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .topbar {
    display: none;
  }
  
  .sidebar {
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 50;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0 !important;
    width: 100%;
  }

}
@media (min-width: 901px) {
  .mobile-bar { display: none; }
  .overlay { display: none !important; }
}
@media (max-width: 520px) {
  .stats-row { grid-template-columns: repeat(2,1fr) !important; }
  .files-grid { grid-template-columns: repeat(2,1fr); }
  .auth-panel { padding: 26px 20px; }
  .otp-d { width: 38px; height: 44px; font-size: 18px; }
}

.how-video {
  margin-top: 80px;
  display: flex;
  justify-content: center;
  position: relative;
  padding: 0 16px;
}

/* LEFT SIDE NOTE */
.video-note {
    position: absolute;
    left: calc(47% - 415px);
    top: -44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Patrick Hand', cursive;
    font-size: 18px;
    color: #dc2626;
    transform: rotate(-8deg);
    pointer-events: none;
}

/* arrow */
.arrow-img {
    width: 180px;
    margin-bottom: -17px;
    transform: rotate(200deg);
}

/* text niche */
.video-note span {
    margin-top: -13px;
    margin-left: -220px;
}

/* VIDEO (same as before) */
.video-box {
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  background: #000;
}

.video-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* mobile */
@media (max-width: 768px) {
  .how-video {
    flex-direction: column;
  }

  .arrow-img {
    transform: rotate(90deg);
  }
}

.api-card-row {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* RIGHT SIDE */
.api-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* MOBILE FIX */
@media (max-width: 600px) {

  .api-card-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .api-card-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  #api-token-display {
    width: 100%;
    display: block;
    overflow-x: auto;
  }
}

.table-scroll {
    overflow-x: auto;
}