/* ============================================================
   Qasiim SaaS Tools — Main App CSS
   Dark, modern SaaS design system
   ============================================================ */

:root {
  --bg:         #0a0b14;
  --bg-2:       #0f1020;
  --bg-card:    #111827;
  --bg-hover:   #1a2035;
  --border:     rgba(255,255,255,0.08);
  --border-2:   rgba(255,255,255,0.14);
  --primary:    #6d28d9;
  --primary-2:  #7c3aed;
  --primary-h:  #5b21b6;
  --secondary:  #2563eb;
  --accent:     #f59e0b;
  --green:      #10b981;
  --red:        #ef4444;
  --yellow:     #f59e0b;
  --cyan:       #22d3ee;
  --text:       #f1f5f9;
  --text-2:     #94a3b8;
  --muted:      #64748b;
  --grad:       linear-gradient(135deg, #6d28d9, #2563eb);
  --grad-warm:  linear-gradient(135deg, #6d28d9, #ec4899);
  --shadow:     0 20px 60px rgba(0,0,0,0.5);
  --shadow-sm:  0 4px 20px rgba(0,0,0,0.3);
  --radius:     12px;
  --radius-lg:  20px;
  --font:       'Inter', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--primary-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan); }

img { max-width: 100%; height: auto; }

/* ── CONTAINER ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.4rem;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  font-family: var(--font);
}
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(109,40,217,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px rgba(109,40,217,.5); color: #fff; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
}
.btn-outline:hover { border-color: var(--primary); color: var(--text); }

.btn-ghost { background: transparent; color: var(--text-2); border: none; }
.btn-ghost:hover { color: var(--text); }

.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }

.btn-sm  { padding: .4rem 1rem; font-size: .8rem; }
.btn-lg  { padding: .9rem 2rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; justify-content: center; }

/* ── FORMS ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .875rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: .4rem;
}
.form-control {
  width: 100%;
  padding: .7rem 1rem;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  color: var(--text);
  font-size: .9rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109,40,217,.15);
}
.form-control::placeholder { color: var(--muted); }
.form-control:disabled { opacity: .5; cursor: not-allowed; }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-inline { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }

.input-password-wrap { position: relative; }
.input-password-wrap .form-control { padding-right: 3rem; }
.toggle-password {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--muted); cursor: pointer; font-size: .9rem;
}

.checkbox-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .85rem; color: var(--text-2); cursor: pointer;
}
.forgot-link { font-size: .8rem; color: var(--primary-2); font-weight: 400; }

.password-strength { font-size: .8rem; margin-top: .3rem; font-weight: 600; }

/* ── ALERTS ─────────────────────────────────────────────────── */
.alert {
  padding: .85rem 1rem;
  border-radius: 10px;
  font-size: .875rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
}
.alert-success { background: rgba(16,185,129,.1); border-color: rgba(16,185,129,.3); color: #6ee7b7; }
.alert-danger  { background: rgba(239,68,68,.1);  border-color: rgba(239,68,68,.3);  color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.3); color: #fde68a; }
.alert-info    { background: rgba(37,99,235,.1);  border-color: rgba(37,99,235,.3);  color: #93c5fd; }

/* ── BADGES ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
}
.badge-success  { background: rgba(16,185,129,.15); color: #34d399; }
.badge-danger   { background: rgba(239,68,68,.15);  color: #f87171; }
.badge-warning  { background: rgba(245,158,11,.15); color: #fbbf24; }
.badge-secondary{ background: rgba(100,116,139,.15);color: #94a3b8; }
.badge-premium  { background: linear-gradient(135deg,rgba(109,40,217,.2),rgba(245,158,11,.2)); color: #fbbf24; }
.badge-free     { background: rgba(16,185,129,.1); color: #34d399; }

/* ── CARDS ──────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
}
.card-header h3 { font-size: 1rem; font-weight: 700; }
.card-divider { height: 1px; background: var(--border); margin: 1.25rem 0; }

/* ── TABLES ─────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.data-table th {
  text-align: left;
  padding: .7rem .75rem;
  color: var(--text-2);
  font-weight: 600;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-bottom: 1px solid var(--border);
}
.data-table td { padding: .8rem .75rem; border-bottom: 1px solid rgba(255,255,255,0.04); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-hover); }

/* ── PROGRESS ────────────────────────────────────────────────── */
.progress {
  height: 6px;
  background: var(--bg-hover);
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--grad);
  border-radius: 10px;
  transition: width .6s ease;
}
.progress-bar.warning { background: var(--yellow); }
.progress-bar.danger  { background: var(--red); }

/* ── MODAL ──────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.show { display: flex; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem;
}
.modal-header h3 { font-size: 1.1rem; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 1.1rem; padding: .25rem .5rem; border-radius: 6px;
}
.modal-close:hover { background: var(--bg-hover); color: var(--text); }

/* ── SPINNER ────────────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── UPLOAD AREA ─────────────────────────────────────────────── */
.upload-area {
  border: 2px dashed var(--border-2);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-area:hover, .upload-area.dragover {
  border-color: var(--primary);
  background: rgba(109,40,217,.05);
}
.upload-icon { font-size: 2rem; margin-bottom: .5rem; }
.upload-area h4 { font-size: .9rem; color: var(--text); margin-bottom: .3rem; }
.upload-area p  { font-size: .8rem; color: var(--muted); }

/* ── COPY BTN ────────────────────────────────────────────────── */
.copy-btn {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 6px;
  padding: .25rem .6rem;
  font-size: .78rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all .2s;
}
.copy-btn:hover { border-color: var(--primary); color: var(--primary-2); }

/* ============================================================
   SITE HEADER — Sticky nav
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 68px;
  background: rgba(10,11,20,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s, background .3s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width:782px) { .admin-bar .site-header { top: 46px; } }

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,.5);
  background: rgba(10,11,20,0.98);
}

.header-spacer { height: 68px; }
.admin-bar .header-spacer { height: 100px; }
@media (max-width:782px) { .admin-bar .header-spacer { height: 114px; } }

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.header-logo {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; flex-shrink: 0;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--grad);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(109,40,217,.4);
  flex-shrink: 0;
}
.logo-text {
  font-weight: 800; font-size: 1.05rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

/* Desktop Nav */
.header-nav { flex: 1; }
.nav-list {
  display: flex;
  list-style: none;
  gap: .25rem;
  align-items: center;
  justify-content: center;
}
.nav-list li { position: relative; }
.nav-list a {
  display: block;
  padding: .45rem .9rem;
  color: var(--text-2);
  font-size: .875rem;
  font-weight: 500;
  border-radius: 8px;
  transition: color .2s, background .2s;
  text-decoration: none;
}
.nav-list a:hover, .nav-list .current-menu-item > a { color: var(--text); background: var(--bg-hover); }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: .5rem;
  min-width: 200px;
  list-style: none;
  box-shadow: var(--shadow);
  z-index: 200;
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  padding: .5rem .75rem;
  font-size: .85rem;
  border-radius: 8px;
  white-space: nowrap;
  display: block;
}
.arrow { font-size: .7rem; vertical-align: middle; margin-left: .2rem; }

/* CTA Area */
.header-cta {
  display: flex; align-items: center; gap: .6rem; margin-left: auto;
}
.premium-badge {
  background: linear-gradient(135deg,rgba(109,40,217,.2),rgba(245,158,11,.2));
  color: #fbbf24;
  font-size: .75rem; font-weight: 700;
  padding: .3rem .7rem; border-radius: 20px;
  border: 1px solid rgba(245,158,11,.3);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .5rem .65rem;
  cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: rgba(10,11,20,.98);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  z-index: 999;
  flex-direction: column;
  gap: .3rem;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}
.admin-bar .mobile-menu { top: 100px; }
.mobile-menu.open { display: flex; }
.mobile-nav-list { list-style: none; }
.mobile-nav-list > li { border-bottom: 1px solid var(--border); }
.mobile-nav-list > li > a {
  display: block; padding: .75rem 0;
  color: var(--text-2); font-size: .9rem; font-weight: 500;
  text-decoration: none;
}
.mobile-nav-list > li > a:hover { color: var(--text); }
.mobile-cats-title { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; padding: .5rem 0 .25rem; }
.mobile-cat-link { display: block; padding: .35rem 1rem; color: var(--text-2); font-size: .85rem; text-decoration: none; }
.mobile-cat-link:hover { color: var(--text); }
.mobile-menu-cta { display: flex; flex-direction: column; gap: .5rem; margin-top: 1rem; }

@media (max-width: 1023px) {
  .nav-hamburger { display: flex; }
  .header-nav    { display: none; }
  .btn-ghost.btn-sm { display: none; }
}

/* ============================================================
   PANEL LAYOUT (Dashboard & Admin pages)
   ============================================================ */
.saas-panel-body { background: var(--bg); min-height: 100vh; }

.panel-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 49;
}
.sidebar-overlay.show { display: block; }

.panel-sidebar {
  width: 260px;
  min-width: 260px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
  transition: transform .3s;
}

/* Brand */
.sidebar-brand {
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border);
}
.brand-link {
  display: flex; align-items: center; gap: .65rem; text-decoration: none;
}
.brand-icon {
  width: 34px; height: 34px;
  background: var(--grad);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.brand-name {
  font-weight: 800; font-size: .95rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Nav */
.sidebar-nav { flex: 1; padding: 1rem .75rem; display: flex; flex-direction: column; gap: .2rem; }
.sidebar-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem .9rem;
  border-radius: 10px;
  color: var(--text-2);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  position: relative;
}
.sidebar-link:hover { background: var(--bg-hover); color: var(--text); }
.sidebar-link.active { background: rgba(109,40,217,.15); color: var(--text); border: 1px solid rgba(109,40,217,.25); }
.sidebar-link.active .nav-icon { filter: none; }
.nav-icon  { font-size: 1rem; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: var(--grad);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  padding: .15rem .5rem;
  border-radius: 20px;
}

/* User footer */
.sidebar-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: .75rem;
}
.user-info { display: flex; align-items: center; gap: .65rem; flex: 1; min-width: 0; }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; color: #fff; flex-shrink: 0;
}
.user-meta { min-width: 0; }
.user-name  { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-plan  { font-size: .72rem; margin-top: .1rem; }
.user-plan.premium { color: #fbbf24; }
.user-plan.free    { color: var(--muted); }
.logout-btn {
  background: var(--bg-hover); border: 1px solid var(--border);
  color: var(--muted); border-radius: 8px; padding: .4rem .6rem;
  font-size: 1rem; cursor: pointer; text-decoration: none;
  transition: all .2s; flex-shrink: 0;
}
.logout-btn:hover { color: var(--red); border-color: var(--red); }

/* Main area */
.panel-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* Topbar */
.panel-topbar {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
}
.topbar-hamburger {
  display: none;
  flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: .25rem;
}
.topbar-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--text-2); border-radius: 2px;
}
.topbar-title { font-size: 1.05rem; font-weight: 700; flex: 1; }
.topbar-right { display: flex; align-items: center; gap: .75rem; }
.topbar-link { font-size: .85rem; color: var(--text-2); text-decoration: none; }
.topbar-link:hover { color: var(--text); }

/* Content */
.panel-content { flex: 1; padding: 1.5rem; max-width: 1100px; }

@media (max-width: 768px) {
  .panel-sidebar {
    position: fixed; top: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    z-index: 60;
  }
  .panel-sidebar.open { transform: translateX(0); box-shadow: var(--shadow); }
  .topbar-hamburger { display: flex; }
  .panel-content { padding: 1rem; }
  .form-row-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   DASHBOARD COMPONENTS
   ============================================================ */
.dashboard-welcome {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.5rem; gap: 1rem; flex-wrap: wrap;
}
.welcome-text h2 { font-size: 1.4rem; margin-bottom: .2rem; }
.welcome-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; align-items: center; gap: 1rem;
}
.stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.stat-icon.purple { background: rgba(109,40,217,.15); }
.stat-icon.blue   { background: rgba(37,99,235,.15); }
.stat-icon.green  { background: rgba(16,185,129,.15); }
.stat-icon.red    { background: rgba(239,68,68,.15); }
.stat-icon.yellow { background: rgba(245,158,11,.15); }
.stat-icon.gray   { background: rgba(100,116,139,.15); }
.stat-value { font-size: 1.3rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .78rem; color: var(--muted); margin-top: .2rem; }

.tab-nav {
  display: flex; gap: .25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem; overflow-x: auto;
}
.tab-item {
  padding: .65rem 1.1rem;
  font-size: .875rem; font-weight: 600;
  color: var(--text-2); text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all .2s;
}
.tab-item.active  { color: var(--text); border-bottom-color: var(--primary); }
.tab-item:hover:not(.active) { color: var(--text); }

.upgrade-banner {
  background: linear-gradient(135deg,rgba(109,40,217,.12),rgba(37,99,235,.06));
  border: 1px solid rgba(109,40,217,.2);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.upgrade-banner-content { display: flex; align-items: flex-start; gap: 1rem; }
.upgrade-banner-icon { font-size: 2rem; }
.upgrade-banner h3 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.upgrade-banner p  { font-size: .875rem; color: var(--text-2); }

.premium-status-badge {
  background: linear-gradient(135deg,rgba(109,40,217,.2),rgba(245,158,11,.2));
  color: #fbbf24;
  font-size: .85rem; font-weight: 700;
  padding: .4rem .9rem; border-radius: 20px;
  border: 1px solid rgba(245,158,11,.3);
}

.recent-downloads { display: flex; flex-direction: column; gap: .75rem; }
.dl-item {
  display: flex; align-items: center; gap: .9rem;
  padding: .75rem;
  background: var(--bg-hover);
  border-radius: 10px;
}
.dl-thumb { font-size: 1.5rem; width: 40px; text-align: center; flex-shrink: 0; }
.dl-info  { flex: 1; min-width: 0; }
.dl-title { font-weight: 600; font-size: .875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-meta  { font-size: .78rem; color: var(--muted); margin-top: .1rem; }

.tools-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: .75rem;
}
.tool-mini-card {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem;
  background: var(--bg-hover);
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all .2s;
}
.tool-mini-card:hover { border-color: var(--primary); background: rgba(109,40,217,.08); }
.tool-mini-icon { font-size: 1.3rem; flex-shrink: 0; }
.tool-mini-title { font-size: .8rem; font-weight: 600; color: var(--text); margin-bottom: .2rem; }

.sub-info { display: flex; flex-direction: column; gap: .5rem; }
.sub-info-row {
  display: flex; justify-content: space-between;
  font-size: .875rem; color: var(--text-2);
  padding: .4rem 0; border-bottom: 1px solid var(--border);
}
.sub-info-row:last-child { border-bottom: none; }

.billing-current {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem; background: var(--bg-hover); border-radius: 10px;
  margin-bottom: 1rem; gap: 1rem; flex-wrap: wrap;
}
.billing-plan-name { font-size: 1rem; font-weight: 700; }
.billing-expiry    { font-size: .85rem; color: var(--text-2); }

/* ============================================================
   TOOLS PAGE
   ============================================================ */
.tools-page { padding: 2rem 0 4rem; }

.tools-page-header { margin-bottom: 1.5rem; }
.tools-page-header h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: .3rem; }

.tools-filters {
  display: flex; gap: 1rem; align-items: center;
  margin-bottom: 1rem; flex-wrap: wrap;
}
.tools-search-form { display: flex; gap: .5rem; flex: 1; min-width: 280px; }
.search-input-wrap { position: relative; flex: 1; }
.search-icon { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .9rem; }
.search-input {
  width: 100%; padding: .65rem 1rem .65rem 2.5rem;
  background: var(--bg-card); border: 1px solid var(--border-2);
  border-radius: 10px; color: var(--text); font-size: .875rem;
  font-family: var(--font); outline: none;
}
.search-input:focus { border-color: var(--primary); }
.filter-pills { display: flex; gap: .4rem; flex-wrap: wrap; }
.filter-pill {
  padding: .4rem .9rem; border-radius: 20px; font-size: .8rem; font-weight: 600;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-2); text-decoration: none; transition: all .2s;
}
.filter-pill.active, .filter-pill:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

.cats-bar {
  display: flex; gap: .4rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.cat-pill {
  padding: .4rem 1rem; border-radius: 20px; font-size: .8rem; font-weight: 600;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-2); text-decoration: none; transition: all .2s;
}
.cat-pill.active {
  background: var(--cat-color, var(--primary));
  border-color: var(--cat-color, var(--primary));
  color: #fff;
}
.cat-pill:hover:not(.active) { color: var(--text); border-color: var(--cat-color, var(--primary)); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.tool-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); border-color: var(--border-2); }
.tool-card.premium { border-color: rgba(109,40,217,.2); }
.tool-card.premium::before { content:''; position:absolute;top:0;left:0;right:0;height:2px;background:var(--grad); }

.tool-featured-badge, .tool-premium-badge {
  position: absolute; top: .9rem; right: .9rem;
  font-size: .7rem; font-weight: 800; padding: .2rem .5rem;
  border-radius: 6px;
}
.tool-featured-badge { background: rgba(245,158,11,.15); color: #fbbf24; }
.tool-premium-badge  { background: rgba(109,40,217,.15); color: #c4b5fd; }

.tool-card-icon { font-size: 2.5rem; margin-bottom: .9rem; }
.tool-card-body { flex: 1; }
.tool-cat-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .4rem; }
.tool-card-title { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; line-height: 1.3; }
.tool-card-title a { color: var(--text); text-decoration: none; }
.tool-card-title a:hover { color: var(--primary-2); }
.tool-card-desc { font-size: .83rem; color: var(--text-2); line-height: 1.6; }
.tool-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.tool-dl-count { font-size: .78rem; color: var(--muted); }

.tools-empty { text-align: center; padding: 5rem 2rem; color: var(--muted); }

/* Single tool */
.tool-single { padding: 2rem 0 4rem; }
.tool-single-breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem; }
.tool-single-breadcrumb a { color: var(--primary-2); text-decoration: none; }
.tool-single-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; }
.tool-single-header { display: flex; gap: 1.25rem; margin-bottom: 1.5rem; }
.tool-single-icon { font-size: 3.5rem; flex-shrink: 0; }
.tool-single-title { font-size: 1.75rem; font-weight: 800; margin-bottom: .6rem; }
.tool-single-meta { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tool-cat-tag { background: var(--bg-hover); border: 1px solid var(--border); padding: .2rem .65rem; border-radius: 6px; font-size: .8rem; color: var(--text-2); }
.tool-version { font-size: .8rem; color: var(--muted); }
.tool-single-stats { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.tool-stat { text-align: center; }
.tool-stat strong { display: block; font-size: 1.2rem; font-weight: 800; color: var(--primary-2); }
.tool-stat span   { font-size: .75rem; color: var(--muted); }
.tool-single-desc { font-size: .9rem; line-height: 1.8; color: var(--text-2); }
.tool-single-desc p { margin-bottom: 1rem; }
.tool-download-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 88px; }
.tool-locked { text-align: center; }
.lock-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.tool-locked h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.tool-locked p  { font-size: .85rem; color: var(--text-2); margin-bottom: 1.25rem; }

@media (max-width: 900px) {
  .tool-single-layout { grid-template-columns: 1fr; }
  .tool-download-box { position: static; }
}

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-page { min-height: 100vh; display: flex; background: var(--bg); }
.auth-wrap  { display: flex; width: 100%; min-height: 100vh; }
.auth-side  {
  width: 420px; min-width: 420px;
  background: linear-gradient(160deg, #0d0e1f 0%, #12102a 100%);
  border-right: 1px solid var(--border);
  padding: 2.5rem 2rem;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(109,40,217,.15) 0%, transparent 70%);
  top: -100px; right: -100px;
}
.auth-brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; margin-bottom: 3rem;
}
.auth-brand-icon {
  width: 36px; height: 36px; background: var(--grad); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.auth-brand span:last-child { font-weight: 800; color: var(--text); font-size: 1.05rem; }
.auth-side-content h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: .75rem; line-height: 1.3; }
.auth-side-content > p { color: var(--text-2); font-size: .9rem; margin-bottom: 2rem; }
.auth-perks { display: flex; flex-direction: column; gap: .6rem; }
.auth-perk { display: flex; gap: .75rem; font-size: .875rem; color: var(--text-2); }
.auth-perk span { font-size: 1rem; flex-shrink: 0; }

.auth-main {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card-header { margin-bottom: 1.75rem; }
.auth-card-header h1 { font-size: 1.5rem; font-weight: 800; margin-bottom: .35rem; }
.auth-card-header p  { color: var(--text-2); font-size: .875rem; }
.auth-divider { text-align: center; margin: 1.25rem 0; position: relative; }
.auth-divider::before { content:''; position:absolute;top:50%;left:0;right:0;height:1px;background:var(--border); }
.auth-divider span { background: var(--bg); padding: 0 .75rem; color: var(--muted); font-size: .8rem; position: relative; }
.auth-switch { text-align: center; font-size: .875rem; color: var(--text-2); }
.auth-switch a { color: var(--primary-2); }

.auth-center { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }

.reset-success { text-align: center; }

@media (max-width: 768px) {
  .auth-side { display: none; }
  .auth-main { padding: 1.5rem; }
}

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-page { padding: 4rem 0; }
.pricing-header { text-align: center; margin-bottom: 3.5rem; }
.pricing-header h1 { font-size: 2.5rem; font-weight: 900; letter-spacing: -.5px; margin-bottom: .75rem; }
.pricing-header > p { font-size: 1.1rem; color: var(--text-2); }
.section-label {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(109,40,217,.1);
  border: 1px solid rgba(109,40,217,.2);
  color: #c4b5fd;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  padding: .35rem .85rem; border-radius: 20px; margin-bottom: .9rem;
}

.billing-toggle {
  display: inline-flex; gap: .25rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: .25rem; margin-top: 1.5rem;
}
.billing-opt {
  padding: .5rem 1.25rem; border-radius: 9px; font-size: .875rem; font-weight: 600;
  color: var(--text-2); text-decoration: none; transition: all .2s;
}
.billing-opt.active { background: var(--grad); color: #fff; box-shadow: 0 4px 15px rgba(109,40,217,.3); }
.save-badge {
  background: rgba(16,185,129,.15); color: #34d399;
  font-size: .65rem; font-weight: 700; padding: .1rem .4rem; border-radius: 4px; margin-left: .3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  transition: transform .25s, box-shadow .25s;
}
.pricing-card.featured {
  border-color: rgba(109,40,217,.4);
  background: linear-gradient(145deg,rgba(109,40,217,.06),var(--bg-card));
}
.pricing-card.featured::before { content:''; position:absolute;top:0;left:0;right:0;height:2px;background:var(--grad);border-radius:var(--radius-lg) var(--radius-lg) 0 0; }
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.pricing-popular-badge {
  display: inline-block;
  background: var(--grad); color: #fff;
  font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  padding: .25rem .65rem; border-radius: 20px; margin-bottom: 1rem;
}
.pricing-plan-name { font-size: 1rem; font-weight: 800; margin-bottom: .5rem; }
.pricing-price { font-size: 3rem; font-weight: 900; letter-spacing: -2px; line-height: 1; margin: .75rem 0; }
.pricing-price .price-currency { font-size: 1.2rem; vertical-align: super; font-weight: 600; color: var(--text-2); }
.pricing-price .price-period   { font-size: .875rem; font-weight: 400; color: var(--text-2); }
.price-monthly-equiv { font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.pricing-features { list-style: none; margin-bottom: 1.5rem; }
.pricing-features li { display: flex; gap: .6rem; font-size: .875rem; color: var(--text-2); padding: .4rem 0; border-bottom: 1px solid rgba(255,255,255,.04); }

.payment-instructions { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin-bottom: 1.25rem; }
.payment-instructions h4 { font-size: .9rem; margin-bottom: .75rem; }
.payment-account { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.payment-method-icon { font-size: 1.3rem; }
.payment-name-info { font-size: .82rem; color: var(--text-2); margin-top: .5rem; }
.modal-amount-display { font-size: .9rem; font-weight: 700; margin-top: .75rem; color: var(--text); }

.pricing-faq { max-width: 720px; margin: 0 auto; }
.pricing-faq h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 1.5rem; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: .6rem; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color .2s; }
.faq-item.open, .faq-item:hover { border-color: rgba(109,40,217,.3); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; font-size: .9rem; font-weight: 600; gap: 1rem; }
.faq-arrow { color: var(--primary-2); transition: transform .3s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; font-size: .875rem; color: var(--text-2); padding: 0 1.25rem; transition: max-height .35s ease, padding .35s ease; line-height: 1.7; }
.faq-item.open .faq-a { max-height: 200px; padding: 0 1.25rem 1.1rem; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page { padding: 4rem 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; }
.contact-form-wrap {}
.contact-form {}
.contact-info {}
.contact-info-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.contact-info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1rem; }
.contact-info-icon { font-size: 1.3rem; flex-shrink: 0; }
.contact-info-label { font-size: .75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.contact-info-item a { color: var(--primary-2); font-size: .875rem; }

@media (max-width: 768px) { .contact-layout { grid-template-columns: 1fr; } }

/* ============================================================
   BLOG
   ============================================================ */
.blog-page { padding: 3rem 0; }
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; }
.blog-title { font-size: 1.75rem; font-weight: 800; margin-bottom: 1.5rem; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; }
.blog-card-thumb img { width: 100%; height: 220px; object-fit: cover; }
.blog-card-body { padding: 1.5rem; }
.blog-card-meta { display: flex; gap: 1rem; font-size: .78rem; color: var(--muted); margin-bottom: .6rem; }
.blog-card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .6rem; line-height: 1.3; }
.blog-card-title a { color: var(--text); text-decoration: none; }
.blog-card-title a:hover { color: var(--primary-2); }
.blog-card-excerpt { font-size: .875rem; color: var(--text-2); margin-bottom: 1rem; }
@media (max-width: 768px) { .blog-layout { grid-template-columns: 1fr; } }

/* ============================================================
   SINGLE / PAGE
   ============================================================ */
.article-content { padding: 2rem 0 4rem; }
.article-meta { display: flex; gap: 1rem; font-size: .82rem; color: var(--muted); margin-bottom: 1rem; flex-wrap: wrap; }
.article-meta a { color: var(--primary-2); }
.article-title { font-size: 2rem; font-weight: 800; margin-bottom: 1.5rem; line-height: 1.25; }
.article-body p { margin-bottom: 1rem; line-height: 1.8; color: var(--text-2); }
.article-body h2, .article-body h3 { color: var(--text); margin: 1.5rem 0 .75rem; }

.post-nav { display: flex; justify-content: space-between; padding: 1.5rem 0; border-top: 1px solid var(--border); margin-top: 2rem; }

.generic-page { padding: 3rem 0; }
.page-content { font-size: .95rem; line-height: 1.8; color: var(--text-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.footer-logo {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; margin-bottom: 1rem;
}
.footer-tagline { font-size: .85rem; font-weight: 600; color: var(--text-2); margin-bottom: .6rem; }
.footer-desc    { font-size: .82rem; color: var(--muted); line-height: 1.7; margin-bottom: 1rem; }
.footer-badges  { display: flex; gap: .5rem; flex-wrap: wrap; }
.f-badge {
  background: var(--bg-hover); border: 1px solid var(--border);
  border-radius: 6px; padding: .2rem .65rem;
  font-size: .72rem; font-weight: 600; color: var(--text-2);
}

.footer-heading { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-2); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-links a { font-size: .85rem; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--text); }

.footer-contact-list { list-style: none; display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.5rem; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: .65rem; font-size: .85rem; color: var(--muted); }
.footer-contact-list a { color: var(--primary-2); }
.contact-icon { flex-shrink: 0; }

.footer-newsletter h5 { font-size: .82rem; font-weight: 700; color: var(--text-2); margin-bottom: .6rem; }
.newsletter-form { display: flex; gap: .4rem; }
.newsletter-input {
  flex: 1; padding: .55rem .85rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text);
  font-size: .82rem; font-family: var(--font); outline: none;
}
.newsletter-input:focus { border-color: var(--primary); }

.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1.25rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.copyright { font-size: .82rem; color: var(--muted); }
.footer-legal-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal-links a { font-size: .8rem; color: var(--muted); text-decoration: none; }
.footer-legal-links a:hover { color: var(--text); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 600px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-muted { color: var(--text-2); }
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.section-header { margin-bottom: 2.5rem; }
.section-header h1 { font-size: 2rem; font-weight: 800; }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fadeUp   { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:none} }
@keyframes fadeIn   { from{opacity:0} to{opacity:1} }
@keyframes slideIn  { from{transform:translateX(-10px);opacity:0} to{transform:none;opacity:1} }

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ── WP Admin Bar Offset ───────────────────────────────────── */
.admin-bar .panel-sidebar { top: 32px; height: calc(100vh - 32px); }
@media (max-width:782px) { .admin-bar .panel-sidebar { top: 0; height: 100vh; } }
