/* Mobbin Clone CSS - Pixel Perfect */
:root {
  --bg-app: #000000;
  --bg-surface: #121212;
  --bg-elevated: #1a1a1a;
  --bg-hover: #2a2a2a;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-focus: rgba(255, 255, 255, 0.3);
  
  --text-main: #f5f5f5;
  --text-muted: #888888;
  --text-inverse: #000000;
  
  --accent: #ffffff;
  --accent-hover: #e0e0e0;
  --danger: #ff453a;
  --success: #32d74b;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --nav-height: 64px;
}

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

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button, input, textarea, select {
  font: inherit;
  border: none;
  background: none;
  outline: none;
  color: inherit;
}

button {
  cursor: pointer;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; }

.text-muted { color: var(--text-muted); }
.text-xs { font-size: 12px; }
.text-sm { font-size: 13px; }
.text-base { font-size: 14px; }
.text-lg { font-size: 16px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
}

.page-content {
  min-height: calc(100vh - var(--nav-height));
  padding-top: var(--nav-height);
}

.flex { display: flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.hidden { display: none !important; }
.text-center { text-center; }

/* ==========================================================================
   NAVBAR (MOBBIN CLONE)
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  display: flex;
  align-items: center;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 24px;
}

.navbar__left, .navbar__right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.03em;
}

.navbar__logo svg {
  width: 24px;
  height: 24px;
}

.navbar__nav {
  display: flex;
  gap: 8px;
}

.navbar__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}

.navbar__link:hover {
  color: var(--text-main);
  background: var(--bg-hover);
}

.navbar__link--active {
  color: var(--text-inverse);
  background: var(--accent);
}

/* Center Search Pill */
.navbar__center {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 480px;
  margin: 0 24px;
}

.navbar__search-bar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0 16px;
  height: 40px;
  color: var(--text-muted);
  font-size: 14px;
  transition: border-color 0.2s;
}

.navbar__search-bar:focus-within {
  border-color: var(--border-focus);
}

.navbar__search-input {
  flex: 1;
  background: transparent;
  color: var(--text-main);
  height: 100%;
}
.navbar__search-input::placeholder {
  color: var(--text-muted);
}

.navbar__search-kbd {
  font-size: 11px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

/* Profile / Right */
.navbar__profile {
  position: relative;
}

.navbar__profile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.navbar__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text-muted);
}

.navbar__dropdown {
  position: absolute;
  top: 56px;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px;
  width: 220px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.5);
  display: none;
  flex-direction: column;
}
.navbar__dropdown.active {
  display: flex;
}

.navbar__dropdown-header {
  padding: 8px 12px;
  margin-bottom: 4px;
}
.navbar__dropdown-name { font-weight: 500; display: block; }
.navbar__dropdown-email { color: var(--text-muted); font-size: 12px; display: block; }

.navbar__dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 0;
}

.navbar__dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
}
.navbar__dropdown-item:hover { background: var(--bg-hover); }
.navbar__dropdown-item--danger { color: var(--danger); }

/* Mobile Menu Toggle */
.navbar__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 24px;
  height: 24px;
  justify-content: center;
  z-index: 1001; /* Must be above mobile menu */
}
.navbar__mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  transition: 0.3s;
}

.navbar__mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  background: var(--bg-app);
  display: none;
  flex-direction: column;
  padding: 24px;
  z-index: 1000;
}
.navbar__mobile-menu.active {
  display: flex;
}
.navbar__mobile-link {
  font-size: 18px;
  font-weight: 500;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-subtle);
}

@media (max-width: 1023px) {
  .navbar__nav, .navbar__center { display: none; }
  .navbar__mobile-toggle { display: flex; }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn--primary, .btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
}
.btn--primary:hover, .btn-primary:hover {
  background: var(--accent-hover);
}

.btn--secondary, .btn-secondary, .btn--outline {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn--secondary:hover, .btn-secondary:hover, .btn--outline:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}

.btn--ghost, .btn-ghost {
  background: transparent;
  color: var(--text-main);
}
.btn--ghost:hover, .btn-ghost:hover {
  background: var(--bg-hover);
}

.btn--danger, .btn-danger {
  background: rgba(255, 69, 58, 0.1);
  color: var(--danger);
}
.btn--danger:hover, .btn-danger:hover {
  background: rgba(255, 69, 58, 0.2);
}

.btn--sm, .btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn--lg, .btn-lg {
  height: 48px;
  padding: 0 24px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn--block {
  width: 100%;
}

/* ==========================================================================
   BROWSE LAYOUT & SIDEBAR
   ========================================================================== */
.browse {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 40px 32px;
  max-width: 1440px;
  margin: 0 auto;
}

.browse__filter-toggle {
  display: none;
}

@media (max-width: 1023px) {
  .browse__filter-toggle {
    display: inline-flex;
    margin-bottom: 16px;
  }
  .browse {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }
  .browse__sidebar {
    position: fixed;
    top: var(--nav-height);
    left: -100%;
    width: 280px;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-app);
    z-index: 1000;
    padding: 24px;
    border-right: 1px solid var(--border-subtle);
    transition: left 0.3s ease;
    overflow-y: auto;
  }
  .browse__sidebar--open {
    left: 0;
  }
}
.browse__sidebar-overlay {
  display: none;
}
.browse__sidebar-overlay--active {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  backdrop-filter: blur(4px);
}

.browse__sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: calc(var(--nav-height) + 32px);
  height: max-content;
}

.filter-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.filter-section__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 12px;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}
.filter-btn:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}
.filter-btn--active {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
  transition: all 0.2s;
}
.category-item:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}
.category-item--active {
  color: var(--text-main);
  font-weight: 500;
}
.category-item__count {
  font-size: 12px;
  background: var(--bg-surface);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
}

.sort-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14px;
}
.sort-option--active {
  color: var(--text-main);
  font-weight: 500;
}

.pro-cta {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.pro-cta p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 8px 0 16px;
}

/* ==========================================================================
   BROWSE GRID & CARDS
   ========================================================================== */
.browse__main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.browse__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.browse__title {
  font-size: 24px;
  font-weight: 700;
}

.browse__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

@media (max-width: 767px) {
  .browse__grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  group: hover;
}

.product-card__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  position: relative;
}

.product-card--web .product-card__image,
.product-card:not(.product-card--ios) .product-card__image {
  aspect-ratio: 16/9;
}

.product-card--ios .product-card__image {
  aspect-ratio: 9/19.5;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.03);
}

/* The Apple/Mobbin Inner Shadow Overlay */
.product-card__image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.product-card__body {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-card__logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.product-card__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0; /* truncate fix */
}

.product-card__name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card__meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card--locked .product-card__image img {
  filter: blur(10px);
}
.product-card--locked .locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  z-index: 10;
}

/* ==========================================================================
   FORMS & ADMIN
   ========================================================================== */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 24px 16px;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.admin-sidebar__logo {
  font-size: 18px;
  font-weight: 700;
  padding: 0 12px;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 14px;
  transition: 0.2s;
}
.admin-nav__item:hover {
  background: var(--bg-hover);
  color: var(--text-main);
}
.admin-nav__item--active {
  background: var(--bg-elevated);
  color: var(--text-main);
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  min-width: 0;
  background: var(--bg-app);
}

@media (max-width: 1023px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    gap: 16px;
  }
  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 8px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .admin-sidebar__footer {
    display: none;
  }
  .admin-main { margin-left: 0; }
}

.admin-topbar {
  height: 72px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 32px;
}
.admin-page-title {
  font-size: 20px;
  font-weight: 600;
}

.admin-content {
  padding: 32px;
}

/* Admin Dashboard Stats */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.admin-stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s;
}
.admin-stat-card:hover {
  border-color: var(--border-focus);
  transform: translateY(-2px);
}
.admin-stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.admin-stat-card__value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}
.admin-stat-card__label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Forms */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-main);
}
.form-input, .form-select, textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text-main);
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, textarea:focus {
  border-color: var(--border-focus);
}
textarea {
  resize: vertical;
  min-height: 100px;
}

/* Tables */
.table-container {
  width: 100%;
  overflow-x: auto; /* Fixes mobile overflow */
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.admin-table th {
  text-align: left;
  padding: 16px 24px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-subtle);
}
.admin-table td {
  padding: 16px 24px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-subtle);
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-table tr:hover {
  background: var(--bg-hover);
}

/* ==========================================================================
   UTILITIES & FLASH
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}
.badge--pro { background: rgba(255, 214, 10, 0.1); color: #ffd60a; border-color: rgba(255, 214, 10, 0.2); }
.badge--free { background: rgba(48, 209, 88, 0.1); color: var(--success); border-color: rgba(48, 209, 88, 0.2); }

.flash-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flash-message {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* auth pages */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-surface);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  background: var(--bg-surface);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
}

.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   HOME PAGE (HERO & SECTIONS)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}
.hero__orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}
.hero__orb--1 {
  top: -100px;
  left: -100px;
  background: var(--accent);
}
.hero__orb--2 {
  bottom: -200px;
  right: -100px;
  background: #32d74b;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}
.hero__title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--text-main);
}
.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__subtitle {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}
@media (max-width: 768px) {
  .hero__title { font-size: 40px; }
  .hero__subtitle { font-size: 16px; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
}
.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 48px;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero__stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}
.hero__stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Home Sections */
.section {
  padding: 80px 0;
}
.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section__header h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Utilities used in home.ejs */
.text-tertiary, .text-secondary { color: var(--text-muted); }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.mt-xl { margin-top: 64px; }

/* ==========================================================================
   PRODUCT DETAIL PAGE
   ========================================================================== */
.product-detail {
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.product-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (max-width: 768px) {
  .product-detail__header { flex-direction: column; align-items: flex-start; }
}
.product-detail__header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.product-detail__logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.product-detail__name {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.product-detail__badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-detail__header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
@media (max-width: 768px) {
  .product-detail__header-right { align-items: flex-start; width: 100%; }
}
.product-detail__rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.star-rating {
  display: flex;
  gap: 4px;
}
.star-rating__star {
  font-size: 18px;
  color: var(--border-strong);
  transition: color 0.2s;
  cursor: pointer;
}
.star-rating__star--active, .star-rating__star--hover {
  color: #ffd60a;
}
.product-detail__rating-value {
  font-size: 14px;
  font-weight: 600;
}
.product-detail__rating-count {
  font-size: 13px;
  color: var(--text-muted);
}
.product-detail__description {
  font-size: 16px;
  color: var(--text-main);
  max-width: 800px;
  line-height: 1.6;
}

/* Tabs */
.tabs {
  border-bottom: 1px solid var(--border-subtle);
}
.tabs__list {
  display: flex;
  gap: 24px;
}
.tabs__btn {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 12px 4px;
  position: relative;
  transition: color 0.2s;
}
.tabs__btn:hover {
  color: var(--text-main);
}
.tabs__btn--active {
  color: var(--text-main);
  font-weight: 600;
}
.tabs__btn--active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-main);
}
.tabs__panel {
  display: none;
  padding: 32px 0;
}
.tabs__panel--active {
  display: block;
}

/* Screenshot Grid */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
@media (max-width: 600px) {
  .screenshot-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
}
.screenshot-card {
  aspect-ratio: 9/19;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  position: relative;
  cursor: zoom-in;
}
.screenshot-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.screenshot-card:hover img {
  transform: scale(1.02);
}
.screenshot-card::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  pointer-events: none;
}
.screenshot-card--locked img {
  filter: blur(20px);
}
.screenshot-card__lock {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-main);
  z-index: 10;
}

/* Video Card */
.video-card {
  aspect-ratio: 9/19;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  position: relative;
}
.video-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Comments */
.comment-form {
  margin-bottom: 32px;
}
.comment-form__form {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}
.comment {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}
.comment__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}
.comment__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comment__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.comment__header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.comment__author {
  font-weight: 600;
  font-size: 14px;
}
.comment__date {
  font-size: 12px;
  color: var(--text-muted);
}
.comment__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-main);
}
.related-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 48px;
  margin-top: 48px;
}
.related-section h2 {
  font-size: 20px;
  margin-bottom: 24px;
}

/* ==========================================================================
   PRICING PAGE
   ========================================================================== */
.pricing-page {
  padding: 60px 0;
}
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--radius-pill);
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}
.pricing-toggle__btn {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pricing-toggle__btn:hover {
  color: var(--text-main);
}
.pricing-toggle__btn--active {
  background: var(--accent);
  color: var(--text-inverse);
}
.pricing-toggle__save {
  font-size: 11px;
  background: #32d74b;
  color: #000;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  font-weight: 600;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .pricing-cards { grid-template-columns: 1fr; }
}
.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(255,255,255,0.03);
}
.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--text-inverse);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.pricing-card__name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}
.pricing-card__price-wrapper {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 16px;
}
.pricing-card__price {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.pricing-card__period {
  color: var(--text-muted);
  font-size: 15px;
}
.pricing-card__description {
  margin-bottom: 32px;
}
.pricing-card__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
  flex-grow: 1;
}
.pricing-card__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.pricing-card__feature--disabled {
  color: var(--text-muted);
  text-decoration: line-through;
}

/* FAQ */
.faq-section {
  border-top: 1px solid var(--border-subtle);
  padding-top: 80px;
}
.faq-list {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
}
.faq-item__arrow {
  transition: transform 0.2s;
  color: var(--text-muted);
}
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item__answer p {
  padding: 0 24px 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.faq-item--active .faq-item__arrow {
  transform: rotate(180deg);
}

/* ==========================================================================
   COLLECTIONS PAGE
   ========================================================================== */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px;
}
.collection-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.collection-mosaic {
  aspect-ratio: 4/3;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  position: relative;
  overflow: hidden;
}
.collection-mosaic::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
}
.collection-mosaic__item {
  background: var(--bg-elevated);
  border-radius: 4px;
}
.collection-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.collection-card__name {
  font-size: 16px;
  font-weight: 600;
}
.collection-card__count {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================================================
   MODALS & LIGHTBOX
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop.modal--active {
  display: flex;
}
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal__header {
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal__title {
  font-size: 18px;
  font-weight: 600;
}
.modal__close {
  font-size: 24px;
  color: var(--text-muted);
}
.modal__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal__footer {
  padding: 16px 24px;
  background: var(--bg-app);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.collection-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-app);
  border-radius: var(--radius-md);
  font-weight: 500;
  text-align: left;
  transition: all 0.2s;
}
.collection-toggle:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
}
.collection-toggle--active {
  background: var(--bg-surface);
  border-color: var(--accent);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox--active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 36px;
  color: #fff;
  z-index: 10001;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: #fff;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 10001;
  padding: 24px;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__image {
  max-width: 90%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0,0,0,0.8);
}
.lightbox__counter {
  position: absolute;
  bottom: 24px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

/* ==========================================================================
   AUTH PAGES
   ========================================================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg-app);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
}
.auth-card__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.auth-card__title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.auth-card__subtitle {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
}
.auth-card__form {
  display: flex;
  flex-direction: column;
}
.auth-card__footer {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}
.text-accent {
  color: var(--text-main);
  text-decoration: underline;
  font-weight: 500;
}
.text-accent:hover {
  color: #fff;
}
.text-right {
  text-align: right;
}

/* Input Group with Icon & Password Toggle */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.input-group__icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  pointer-events: none;
}
.input-group .form-input {
  padding-left: 44px;
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  right: 16px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s;
}
.password-toggle:hover {
  color: var(--text-main);
}

/* ==========================================================================
   PROFILE PAGE
   ========================================================================== */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 40px;
}
@media (max-width: 600px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-placeholder--lg {
  font-size: 32px;
  font-weight: 700;
}
.profile-info {
  display: flex;
  flex-direction: column;
}
.profile-name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.profile-username {
  font-size: 14px;
}
.profile-section {
  margin-bottom: 48px;
}
.profile-section h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 24px;
}

/* Form card on Profile */
.admin-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.admin-form-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   EXTRA UTILITIES
   ========================================================================== */
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 24px; }
.flex-wrap { flex-wrap: wrap; }

/* Sticky footer fix */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ==========================================================================
   FOOTER (MOBBIN CLONE)
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-app);
  padding: 64px 0 32px;
  margin-top: auto;
  z-index: 10;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.03em;
  color: var(--text-main);
}
.footer__logo svg {
  width: 24px;
  height: 24px;
}
.footer__description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}
.footer__column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__link {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__link:hover {
  color: var(--text-main);
}
.footer__bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}
@media (max-width: 768px) {
  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}
.footer__social {
  display: flex;
  gap: 16px;
}
.footer__social-link {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__social-link:hover {
  color: var(--text-main);
}

/* ==========================================================================
   BLOG PAGES
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 32px;
}
.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, border-color 0.2s;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}
.blog-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}
.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}
.blog-card__title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}
.blog-card__excerpt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  flex-grow: 1;
}
.blog-card__meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* Blog Article details */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0;
}
.blog-article__image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}
.blog-article h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.blog-article__meta {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}
.blog-article__content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
  margin-top: 32px;
}
.blog-article__content p {
  margin-bottom: 24px;
}
.blog-article__content h2, 
.blog-article__content h3 {
  margin: 40px 0 16px;
}
.blog-article__content ul, 
.blog-article__content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}
.blog-article__content li {
  margin-bottom: 8px;
}



