/* 
   Nafiz Store - Global Styles (Figma Redesign)
   Fonts: Inter (headings/UI), Hind Siliguri (body/bengali support)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0a0a0a;
  --surface: #111111;
  --surface2: #1a1a1a;
  --border: #222222;
  --border2: #2a2a2a;
  --text: #ffffff;
  --text-muted: #888888;
  --text-faint: #555555;
  --accent: #00db64;
  --accent-dark: #00b853;
  --accent-glow: rgba(0, 219, 100, 0.15);
  --accent-dim: rgba(0, 219, 100, 0.08);
  --danger: #ff4757;
  --warning: #ffa502;
  --info: #1e90ff;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  --font-main: 'Inter', 'Hind Siliguri', sans-serif;
  --font-body: 'Hind Siliguri', 'Inter', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 20px rgba(0, 219, 100, 0.2);

  /* Glassmorphism & Gradients */
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: blur(12px);

  --grad-emerald: linear-gradient(135deg, #00db64 0%, #00b853 100%);
  --grad-amber: linear-gradient(135deg, #ffa502 0%, #ff7f50 100%);
  --grad-azure: linear-gradient(135deg, #1e90ff 0%, #00d2ff 100%);
  --grad-purple: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

/* ========= RESET & BASE ========= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 70px;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-dark);
}

img {
  max-width: 100%;
  display: block;
}

/* ========= SCROLLBAR ========= */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--surface);
}

::-webkit-scrollbar-thumb {
  background: var(--border2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* ========= LAYOUT ========= */
.container-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========= NAVBAR ========= */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.site-navbar .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text) !important;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-brand img {
  height: 28px;
  width: auto;
}

.nav-brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface2);
}

.nav-links a.active {
  color: var(--accent);
}

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

.nav-toggler {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--surface);
  z-index: 999;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-drawer a {
  color: var(--text-muted);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s;
}

.mobile-nav-drawer a:hover,
.mobile-nav-drawer a.active {
  color: var(--accent);
  background: var(--accent-dim);
}

/* ========= BUTTONS ========= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-main);
}

.btn-accent {
  background: var(--accent);
  color: #000;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #000;
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border2);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

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

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface2);
}

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

.btn-danger:hover {
  opacity: 0.85;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 12px 28px;
  font-size: 1rem;
}

.btn-pill {
  border-radius: var(--radius-pill);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Utility Classes */
.bg-dark {
  background-color: #000000 !important;
}

.text-white {
  color: #ffffff !important;
}

.text-dark {
  color: #000000 !important;
}

/* ========= CARDS ========= */
.card {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.card-body {
  padding: 20px;
}

.card-header-bar {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header-bar h5,
.card-header-bar h6 {
  margin: 0;
  font-size: 0.95rem;
}

/* ========= FILE CARDS (Landing) ========= */
.file-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  height: 100%;
}

.file-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
  transform: translateY(-4px);
}

.file-card-thumb {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  background: var(--surface2);
}

.file-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.file-card:hover .file-card-thumb img {
  transform: scale(1.08);
}

.file-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.file-card-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 219, 100, 0.2);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.file-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.file-card-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 14px;
}

.file-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.file-card-dl-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.file-card-dl-count i {
  color: var(--accent);
}

/* Card image overlay with Details button */
.file-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.file-card-overlay .btn {
  background: var(--accent) !important;
  color: #000 !important;
  border: none !important;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 16px;
  box-shadow: 0 0 12px rgba(0, 219, 100, 0.35) !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.file-card-overlay .btn:hover {
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(0, 219, 100, 0.6) !important;
}

/* ========= HERO SECTION ========= */
.hero-section {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 219, 100, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0, 219, 100, 0.25);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.hero-label::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  display: block;
  animation: blink 1.5s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 12px;
}

.hero-title .text-accent {
  color: var(--accent);
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.hero-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface2);
  border: 1px solid var(--border2);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s;
}

.hero-tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat-item {
  text-align: left;
}

.hero-stat-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-mockup {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hero-mockup img {
  width: 100%;
  display: block;
}

/* ========= SECTION HEADERS ========= */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--accent);
}

/* ========= FILES GRID ========= */
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* ========= STATS STRIP (Landing) ========= */
.stats-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: center;
}

.stats-strip-item .num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--text);
}

.stats-strip-item .label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========= PROMO BANNER ========= */
.promo-banner {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(0, 219, 100, 0.05) 100%);
  border: 1px solid rgba(0, 219, 100, 0.2);
  border-radius: var(--radius-xl);
  padding: 50px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  margin: 60px 0;
}

.promo-banner h3 {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  margin-bottom: 10px;
}

.promo-banner p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ========= FORMS ========= */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.form-control,
.form-select {
  width: 100%;
  background: #000000 !important;
  border: 1px solid var(--border2) !important;
  color: #ffffff !important;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: var(--font-main);
  transition: all 0.2s ease;
  outline: none;
  appearance: none;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-glow) !important;
  background: #000000 !important;
}

.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2300db64' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 16px 12px !important;
}

.form-control::placeholder {
  color: var(--text-faint);
}

select option {
  background: #111111;
  color: #ffffff;
}

/* ========= BADGES ========= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-accent {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 219, 100, 0.2);
}

.badge-success {
  background: rgba(0, 219, 100, 0.1);
  color: #00db64;
}

.badge-warning {
  background: rgba(255, 165, 2, 0.12);
  color: #ffa502;
}

.badge-danger {
  background: rgba(255, 71, 87, 0.12);
  color: #ff4757;
}

.badge-muted {
  background: var(--surface2);
  color: var(--text-muted);
}

/* ========= TABLES ========= */
.table,
.table> :not(caption)>*>* {
  --bs-table-bg: transparent !important;
  --bs-table-color: var(--text) !important;
  --bs-table-border-color: var(--glass-border) !important;
  color: var(--text) !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

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

.data-table,
.table {
  width: 100%;
  border-collapse: collapse;
  background: transparent !important;
}

.data-table th,
.table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted) !important;
  padding: 16px !important;
  border-bottom: 1px solid var(--glass-border) !important;
  white-space: nowrap;
  background: transparent !important;
}

.data-table td,
.table td {
  padding: 14px 16px !important;
  border-bottom: 1px solid var(--glass-border) !important;
  font-size: 0.875rem;
  color: var(--text) !important;
  vertical-align: middle;
  background: transparent !important;
}

.data-table tbody tr:last-child td,
.table tbody tr:last-child td {
  border-bottom: none !important;
}

.data-table tbody tr,
.table tbody tr {
  transition: background 0.15s;
  background: transparent !important;
}

.data-table tbody tr:hover,
.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02) !important;
}

/* ========= DASHBOARD SIDEBAR ========= */
.dash-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 0;
}

.dash-sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

.dash-content {
  flex: 1;
  min-width: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.sidebar-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ========= MODALS (GLASS) ========= */
.modal-content {
  background: var(--glass) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--shadow-lg) !important;
  border-radius: var(--radius-lg);
}

.modal-header,
.modal-footer {
  border: none !important;
}

.btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.8;
}

/* ========= SHARE STORE BUTTON ========= */
.btn-share-store {
  background: rgba(0, 219, 100, 0.1);
  border: 1px solid rgba(0, 219, 100, 0.2);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-share-store:hover {
  background: var(--accent);
  color: #000;
}

.btn-share-store.copied {
  background: #00db64;
  color: #000;
}

.sidebar-nav {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--glass-border);
}

.sidebar-nav-item:last-child {
  border-bottom: none;
}

.sidebar-nav-item i {
  width: 20px;
  text-align: center;
  font-size: 1rem;
  opacity: 0.7;
}

.sidebar-nav-item:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.sidebar-nav-item.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, var(--accent-dim) 0%, transparent 100%);
  font-weight: 700;
}

.sidebar-nav-item.active i {
  opacity: 1;
}

.sidebar-nav-item.danger {
  color: var(--danger);
}

.sidebar-nav-item.danger:hover {
  background: rgba(255, 71, 87, 0.08);
}

/* ========= STAT CARDS ========= */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

@media (max-width: 992px) {
  .stat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .stat-cards-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at top right, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.5;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.stat-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.stat-card-icon.green {
  background: var(--grad-emerald);
}

.stat-card-icon.blue {
  background: var(--grad-azure);
}

.stat-card-icon.orange {
  background: var(--grad-amber);
}

.stat-card-icon.purple {
  background: var(--grad-purple);
}

.stat-card-icon.red {
  background: var(--danger);
}

.stat-card-icon.teal {
  background: var(--grad-emerald);
  opacity: 0.8;
}

.stat-card-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.stat-card-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ========= ALERTS & MESSAGES ========= */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid transparent;
  margin-bottom: 16px;
}

.alert-success {
  background: rgba(0, 219, 100, 0.08);
  border-color: rgba(0, 219, 100, 0.2);
  color: var(--accent);
}

.alert-danger {
  background: rgba(255, 71, 87, 0.08);
  border-color: rgba(255, 71, 87, 0.2);
  color: var(--danger);
}

.alert-warning {
  background: rgba(255, 165, 2, 0.08);
  border-color: rgba(255, 165, 2, 0.2);
  color: var(--warning);
}

.alert-info {
  background: rgba(30, 144, 255, 0.08);
  border-color: rgba(30, 144, 255, 0.2);
  color: var(--info);
}

/* ========= AUTH PAGES ========= */
.auth-wrapper {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 42px 40px;
  width: 100%;
  max-width: 440px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo .brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
}

.auth-logo .brand span {
  color: var(--accent);
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 6px;
  text-align: center;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}

/* ========= TIMER PAGE ========= */
.timer-page {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.timer-step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 36px;
}

.timer-step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface);
  flex-shrink: 0;
}

.timer-step-dot.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.timer-step-dot.done {
  border-color: var(--accent);
  background: var(--accent);
  color: #000;
}

.timer-step-line {
  flex: 1;
  min-width: 50px;
  height: 2px;
  background: var(--border2);
  max-width: 80px;
}

.timer-step-line.done {
  background: var(--accent);
}

.timer-main-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 560px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timer-main-card::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 219, 100, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.timer-title {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.timer-subtitle {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-bottom: 36px;
}

/* SVG Circular Timer */
.circular-progress {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circular-progress svg {
  transform: rotate(-90deg);
}

.circular-progress .track {
  fill: none;
  stroke: var(--border2);
  stroke-width: 6;
}

.circular-progress .progress-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.circular-progress .timer-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.circular-progress .timer-num small {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

.timer-wait-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.timer-action-btn {
  display: none;
}

.timer-action-btn.visible {
  display: inline-flex;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========= FOOTER ========= */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 80px;
}

.site-footer .footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-brand span {
  color: var(--accent);
}

.footer-about {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 18px;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 14px;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 8px;
}

.footer-links-list a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-links-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.5s infinite;
}

/* ========= MOBILE BOTTOM NAV ========= */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  display: none;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.mob-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.2s;
}

.mob-nav-item i {
  font-size: 1.15rem;
}

.mob-nav-item.active,
.mob-nav-item:hover {
  color: var(--accent);
}

/* ========= ADBLOCK OVERLAY ========= */
#adblock-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.97);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.adblock-content {
  background: var(--surface);
  border: 2px solid var(--danger);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

.adblock-content i {
  color: var(--danger);
  font-size: 3rem;
  margin-bottom: 16px;
}

.adblock-content h3 {
  color: var(--danger);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.adblock-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

/* ========= PAGINATION ========= */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-item a,
.page-item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s;
  text-decoration: none;
}

.page-item a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.page-item.active a,
.page-item.active span {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.page-item.disabled a,
.page-item.disabled span {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ========= UTILITY ========= */
.text-accent {
  color: var(--accent) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-danger {
  color: var(--danger) !important;
}

.text-success {
  color: var(--accent) !important;
}

.text-warning {
  color: var(--warning) !important;
}

.text-info {
  color: var(--info) !important;
}

.bg-surface {
  background: var(--surface) !important;
}

.bg-surface2 {
  background: var(--surface2) !important;
}

.border-color {
  border-color: var(--border) !important;
}

.rounded-lg {
  border-radius: var(--radius-lg) !important;
}

.rounded-xl {
  border-radius: var(--radius-xl) !important;
}

.rounded-pill {
  border-radius: var(--radius-pill) !important;
}

.section-gap {
  padding: 64px 0;
}

.mt-section {
  margin-top: 64px;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .stat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 60px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggler {
    display: flex;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .dash-sidebar {
    display: none;
  }

  .dash-layout {
    padding: 20px 0;
  }

  .hero-section {
    padding: 48px 0 40px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .promo-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .promo-banner .btn {
    margin: 0 auto;
  }

  .stat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .auth-card {
    padding: 28px 20px;
  }

  .timer-main-card {
    padding: 32px 24px;
  }

  .section-gap {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .stat-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .files-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

/* ========= ANIMATIONS ========= */
@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 0 0 var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 0 8px transparent;
  }
}

.pulse {
  animation: pulse-glow 2s infinite;
}

/* ========= COPY LINK UTIL ========= */
.copy-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.copy-group .form-control {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========= SEARCH BAR (Figma) ========= */
.hero-search-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.hero-search-form button:hover {
  background: var(--accent-dark);
  transform: translateY(-50%) scale(1.05);
}

/* ========= CATEGORY FILTERS ========= */
.category-filters .btn {
  transition: all 0.2s;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.category-filters .btn-accent {
  box-shadow: var(--shadow-glow);
}

/* ========= FEATURE PROMO CARD ========= */
.feature-promo-card h2 {
  font-family: var(--font-main);
  letter-spacing: -0.04em;
}

.feature-promo-card .btn-lg:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ========= CHART CONTAINER ========= */
.chart-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

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

.chart-title {
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ========= RESPONSIVE FIXES ========= */
@media (max-width: 991px) {
  .hero-section {
    padding: 40px 0;
    text-align: center;
  }

  .hero-section>.container-main>div {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }

  .hero-desc,
  .hero-search-wrapper {
    margin-inline: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: none !important;
  }

  .feature-promo-card {
    padding: 40px 24px;
    text-align: center;
    justify-content: center;
  }

  .feature-promo-card h2 {
    font-size: 2rem;
  }

  .feature-promo-card p {
    margin-inline: auto;
  }

  .feature-promo-card .div-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .stat-cards-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ========= VISIBILITY FIXES ========= */
.form-check-label {
  color: var(--text) !important;
}

.text-secondary-theme {
  color: var(--text-muted) !important;
}

.text-main {
  color: var(--text) !important;
}

/* Override bg-light and input groups */
.bg-light {
  background-color: var(--surface2) !important;
  color: var(--text) !important;
}

.input-group-text {
  background-color: var(--surface2) !important;
  color: var(--text) !important;
  border-color: var(--border2) !important;
}

/* Keep form inputs dark on focus */
.form-control:focus,
.form-select:focus {
  background-color: var(--surface2) !important;
  color: var(--text) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 0.15rem rgba(0, 219, 100, 0.25) !important;
}

/* Ensure placeholder and muted text are visible */
.form-control::placeholder {
  color: #64748b !important;
  opacity: 1 !important;
}

.text-muted {
  color: #94a3b8 !important;
}

/* Outline Accent Button */
.btn-outline-accent {
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--accent);
}

.btn-outline-accent:hover,
.btn-check:checked+.btn-outline-accent {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");

/* Description Link Pills */
.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  color: var(--text) !important;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 4px 2px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none !important;
}

.link-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.link-pill i {
  font-size: 1rem;
}

.link-pill-youtube:hover {
  color: #ff0000 !important;
  border-color: #ff0000 !important;
}

.link-pill-facebook:hover {
  color: #1877F2 !important;
  border-color: #1877F2 !important;
}

.link-pill-instagram:hover {
  color: #E4405F !important;
  border-color: #E4405F !important;
}

.link-pill-tiktok:hover {
  color: #00f2ea !important;
  border-color: #00f2ea !important;
}

.link-pill-telegram:hover {
  color: #0088cc !important;
  border-color: #0088cc !important;
}

.link-pill-simple {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 500;
}

/* Social Buttons - Forced Bottom Specificity */
body .btn-google {
  background-color: var(--surface2) !important;
  color: #ffffff !important;
  border: 1px solid var(--accent) !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 219, 100, 0.1) !important;
  margin: 10px 0 !important;
  padding: 12px 20px !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  border-radius: var(--radius-pill) !important;
}

body .btn-google:hover {
  background-color: var(--accent-dim) !important;
  border-color: var(--accent) !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0, 219, 100, 0.2) !important;
}

body .btn-google img {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

body .auth-separator {
  display: flex !important;
  align-items: center !important;
  text-align: center !important;
  margin: 20px 0 !important;
  color: var(--text-faint) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
}

body .auth-separator::before,
body .auth-separator::after {
  content: '' !important;
  flex: 1 !important;
  border-bottom: 1px solid var(--border) !important;
}

body .auth-separator:not(:empty)::before {
  margin-right: .75em !important;
}

body .auth-separator:not(:empty)::after {
  margin-left: .75em !important;
}

/* ========= SEARCH DROPDOWN ========= */
.search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--surface2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  z-index: 1000;
  display: none;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}

.search-dropdown.show {
  display: block;
}

.search-dropdown-header {
  padding: 12px 15px 8px;
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
}

.search-dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 10px 15px;
  color: var(--text) !important;
  text-decoration: none !important;
  transition: all 0.2s;
  border-bottom: 1px solid var(--glass-border);
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--accent) !important;
}

.search-item-info {
  flex: 1;
  min-width: 0;
}

.search-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.search-item-meta {
  font-size: 0.70rem;
  color: var(--text-muted);
}