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

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #5b7cfa;
  --primary-light: #8ea3ff;
  --primary-dark: #3558e8;
  --primary-glow: rgba(91, 124, 250, 0.35);
  --accent: #fb923c;
  --accent-glow: rgba(251, 146, 60, 0.28);

  --bg-primary: #0f1424;
  --bg-secondary: #171f34;
  --bg-card: rgba(23, 31, 52, 0.84);
  --bg-glass: rgba(151, 167, 255, 0.12);
  --bg-glass-hover: rgba(151, 167, 255, 0.2);

  --text-primary: #f5f7ff;
  --text-secondary: #a6b1ce;
  --text-muted: #7f8bac;

  --border: rgba(151, 167, 255, 0.2);
  --border-hover: rgba(251, 146, 60, 0.45);

  --gradient-primary: linear-gradient(135deg, #5b7cfa, #fb923c);
  --gradient-hero: linear-gradient(135deg, #0f1424 0%, #1c2643 45%, #151c31 100%);
  --gradient-card: linear-gradient(135deg, rgba(91, 124, 250, 0.18), rgba(251, 146, 60, 0.08));

  --shadow-sm: 0 2px 10px rgba(7, 10, 20, 0.35);
  --shadow-md: 0 8px 30px rgba(7, 10, 20, 0.45);
  --shadow-lg: 0 18px 50px rgba(7, 10, 20, 0.55);
  --shadow-glow: 0 0 32px rgba(91, 124, 250, 0.28);

  --navbar-bg: rgba(15, 20, 36, 0.84);
  --navbar-bg-scrolled: rgba(15, 20, 36, 0.96);
  --mobile-nav-bg: rgba(15, 20, 36, 0.98);
  --orb-tertiary: #fb7185;
  
  /* Misc */
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body[data-theme='light'] {
  --primary: #2563eb;
  --primary-light: #4f87ff;
  --primary-dark: #1748c5;
  --primary-glow: rgba(37, 99, 235, 0.26);
  --accent: #f97316;
  --accent-glow: rgba(249, 115, 22, 0.22);

  --bg-primary: #f4f7ff;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-glass: rgba(37, 99, 235, 0.08);
  --bg-glass-hover: rgba(37, 99, 235, 0.14);

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --border: rgba(15, 23, 42, 0.12);
  --border-hover: rgba(37, 99, 235, 0.35);

  --gradient-primary: linear-gradient(135deg, #2563eb, #f97316);
  --gradient-hero: linear-gradient(135deg, #eaf0ff 0%, #fff4e8 50%, #f8fbff 100%);
  --gradient-card: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(249, 115, 22, 0.06));

  --shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 26px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 18px 42px rgba(15, 23, 42, 0.15);
  --shadow-glow: 0 0 24px rgba(37, 99, 235, 0.18);

  --navbar-bg: rgba(255, 255, 255, 0.84);
  --navbar-bg-scrolled: rgba(255, 255, 255, 0.96);
  --mobile-nav-bg: rgba(255, 255, 255, 0.98);
  --orb-tertiary: #f97316;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font);
  transition: var(--transition);
}

input, textarea, select {
  font-family: var(--font);
  outline: none;
  border: none;
  transition: var(--transition);
}

ul { list-style: none; }

.lni {
  line-height: 1;
  vertical-align: middle;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-animation .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: floatOrb 20s infinite ease-in-out;
}

.bg-animation .orb:nth-child(1) {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.bg-animation .orb:nth-child(2) {
  width: 400px;
  height: 400px;
  background: var(--accent);
  bottom: -100px;
  left: -100px;
  animation-delay: -7s;
}

.bg-animation .orb:nth-child(3) {
  width: 300px;
  height: 300px;
  background: var(--orb-tertiary);
  top: 50%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -80px) scale(1.1); }
  50% { transform: translate(-30px, 60px) scale(0.9); }
  75% { transform: translate(70px, 30px) scale(1.05); }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--navbar-bg-scrolled);
  box-shadow: var(--shadow-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
}

.nav-brand .logo-icon {
  width: 40px;
  height: 40px;
  background: url('../ava.jpg') center/cover no-repeat;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 0;
  overflow: hidden;
}

.nav-brand span {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-auth {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 10px;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50px;
}

.nav-user-info .user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.nav-user-info .user-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.profile-menu {
  position: relative;
}

.profile-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-primary);
  font-weight: 600;
}

.profile-menu-trigger:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
}

.profile-menu .user-avatar,
.profile-menu-trigger .user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}

.profile-menu .user-name,
.profile-menu-trigger .user-name {
  font-size: 0.9rem;
}

.profile-menu-trigger i {
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.profile-menu.open .profile-menu-trigger i {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(360px, calc(100vw - 20px));
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(114, 120, 255, 0.35);
  background: linear-gradient(180deg, rgba(40, 35, 98, 0.96) 0%, rgba(30, 26, 80, 0.96) 100%);
  box-shadow: 0 18px 40px rgba(5, 6, 35, 0.6);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 500;
}

.profile-menu.open .profile-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.profile-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #f4f5ff;
  font-weight: 600;
}

.profile-dropdown-item:hover {
  background: rgba(140, 158, 255, 0.15);
}

.profile-dropdown-item.is-primary {
  background: rgba(113, 134, 255, 0.27);
}

.profile-item-icon {
  width: 22px;
  text-align: center;
  color: #c6d4ff;
}

.profile-dropdown-empty {
  color: rgba(244, 245, 255, 0.8);
  font-size: 0.9rem;
  padding: 10px 12px;
}

.profile-dropdown-divider {
  height: 1px;
  background: rgba(196, 205, 255, 0.25);
  margin: 10px 0 8px;
}

.profile-dropdown-action {
  width: 100%;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #f4f5ff;
  font-weight: 600;
  background: transparent;
  border: none;
  text-align: left;
}

.profile-dropdown-action:hover {
  background: rgba(140, 158, 255, 0.15);
}

.profile-dropdown-action.danger {
  color: #ffd7df;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 5px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: 8px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: 12px;
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.3);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* ===== GLASSMORPHISM CARD ===== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-header h2 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 2rem 80px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 .gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* ===== STATS ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 80px;
}

.stat-card {
  text-align: center;
  padding: 32px 20px;
}

.stat-card .stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

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

/* ===== PRODUCT / SHOP CARDS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.product-card {
  padding: 0;
  overflow: hidden;
}

.product-card .product-img {
  height: 180px;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-card .product-img .product-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .product-img .product-icon {
  font-size: 4rem;
  opacity: 0.8;
}

.product-card .product-img .product-icon i {
  font-size: inherit;
}

.product-card .product-img .product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-card .product-info {
  padding: 24px;
}

.product-card .product-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.product-card .product-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.product-card .product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card .product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

.product-card .product-price small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}

.filter-tab {
  padding: 10px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===== BLOG CARDS ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

.blog-card {
  padding: 0;
  overflow: hidden;
}

.blog-card .blog-img {
  height: 200px;
  background: var(--gradient-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.blog-card .blog-img .blog-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-visual-icon {
  font-size: 3.5rem;
}

.blog-visual-icon i {
  font-size: inherit;
}

.blog-card .blog-img .blog-category {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(0, 102, 255, 0.9);
  color: #fff;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-card .blog-content {
  padding: 24px;
}

.blog-card .blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.blog-card .blog-meta i {
  margin-right: 4px;
}

.blog-card .blog-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card .blog-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.blog-card .blog-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card .blog-link:hover {
  gap: 10px;
}

/* ===== HIRE / SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 36px;
  text-align: center;
}

.service-card .service-icon {
  width: 70px;
  height: 70px;
  background: rgba(0, 102, 255, 0.1);
  border: 1px solid rgba(0, 102, 255, 0.2);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
}

.service-card .service-icon i {
  font-size: inherit;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 60px;
}

.skill-item {
  padding: 20px;
  text-align: center;
  cursor: default;
}

.skill-item .skill-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.skill-item .skill-icon i {
  font-size: inherit;
}

.skill-item .skill-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-help-text {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.image-preview-wrap {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  width: min(240px, 100%);
}

.image-preview {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.checkbox-inline input {
  width: auto;
}

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

.product-variant-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.product-variant-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr auto auto;
  gap: 10px;
  align-items: end;
}

.product-variant-grid label {
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.variant-default-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.variant-remove-btn {
  min-width: 38px;
  padding: 8px 10px;
}

.table-subtle {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

/* ===== AUTH PAGES ===== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 48px;
}

.auth-card .auth-header {
  text-align: center;
  margin-bottom: 36px;
}

.auth-card .auth-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-card .auth-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.auth-card .form-group {
  margin-bottom: 20px;
}

.auth-card .btn {
  width: 100%;
  margin-top: 8px;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-footer a {
  color: var(--accent);
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* ===== ADMIN DASHBOARD ===== */
.admin-layout {
  display: flex;
  min-height: 100vh;
  padding-top: 72px;
}

.admin-sidebar {
  width: 260px;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: fixed;
  top: 72px;
  bottom: 0;
  overflow-y: auto;
}

.admin-sidebar .sidebar-menu {
  padding: 0 12px;
}

.admin-sidebar .sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 4px;
}

.admin-sidebar .sidebar-item:hover,
.admin-sidebar .sidebar-item.active {
  background: rgba(0, 102, 255, 0.1);
  color: var(--text-primary);
}

.admin-sidebar .sidebar-item.active {
  background: rgba(0, 102, 255, 0.15);
  color: var(--accent);
}

.admin-sidebar .sidebar-item .item-icon {
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}

.admin-main {
  flex: 1;
  margin-left: 260px;
  padding: 32px;
}

.admin-header {
  margin-bottom: 32px;
}

.admin-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Admin Stats Cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.admin-stat-card {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-stat-card .stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.admin-stat-card .stat-icon.blue { background: rgba(0, 102, 255, 0.15); }
.admin-stat-card .stat-icon.green { background: rgba(34, 197, 94, 0.15); }
.admin-stat-card .stat-icon.purple { background: rgba(168, 85, 247, 0.15); }
.admin-stat-card .stat-icon.orange { background: rgba(249, 115, 22, 0.15); }

.admin-stat-card .stat-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
}

.admin-stat-card .stat-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Admin Table */
.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.admin-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.admin-table .actions {
  display: flex;
  gap: 8px;
}

.table-inline-icon {
  margin-right: 6px;
}

.table-image-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
  margin-right: 8px;
  vertical-align: middle;
}

.table-inline-visual {
  display: inline-flex;
  align-items: center;
}

.blog-detail-hero {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  object-fit: cover;
  max-height: 280px;
}

/* Status badge */
.status-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge.active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.status-badge.pending {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
}

.status-badge.inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}

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

.modal-header h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

/* ===== FOOTER ===== */
.footer {
  padding: 40px 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

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

.footer a {
  color: var(--accent);
  font-weight: 600;
}

/* ===== TOAST / NOTIFICATION ===== */
.toast-container {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease-out;
  min-width: 280px;
}

.toast.success { border-left: 3px solid #22c55e; }
.toast.error { border-left: 3px solid #ef4444; }
.toast.info { border-left: 3px solid var(--primary); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeInUp 0.6s ease-out both;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto 40px;
}

.search-bar input {
  flex: 1;
  padding: 14px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state .empty-icon i {
  font-size: inherit;
}

.empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

/* ===== BLOG DETAIL MODAL ===== */
.blog-detail-content {
  line-height: 1.8;
  color: var(--text-secondary);
}

.blog-detail-content h4 {
  color: var(--text-primary);
  margin: 20px 0 10px;
}

.blog-detail-content p {
  margin-bottom: 16px;
}

/* ===== PAGE HEADER ===== */
.page-header {
  padding-top: 120px;
  padding-bottom: 40px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 12px;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== CART + CHECKOUT ===== */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.checkout-card {
  padding: 24px;
}

.checkout-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 44px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

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

.checkout-item-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--gradient-card);
  font-size: 1.2rem;
}

.checkout-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.checkout-item-meta h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.checkout-item-meta p {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-control span {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

.qty-control button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.checkout-item-price {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.checkout-item-remove {
  justify-self: end;
}

.checkout-item-remove .btn {
  padding: 6px 10px;
}

.checkout-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-weight: 700;
}

.checkout-total-row strong {
  color: var(--accent);
  font-size: 1.2rem;
}

.checkout-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.checkout-note {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 10px;
}

.checkout-payment-panel {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(91, 124, 250, 0.08);
}

.checkout-payment-panel h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.checkout-payment-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  font-size: 0.8rem;
  font-weight: 700;
  width: fit-content;
}

.checkout-payment-qr {
  width: min(230px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 10px;
  margin: 8px auto 6px;
}

.checkout-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkout-payment-grid > div {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.checkout-payment-grid > div.wide {
  grid-column: 1 / -1;
}

.checkout-payment-grid span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 4px;
}

.checkout-payment-grid strong {
  font-size: 0.92rem;
  word-break: break-word;
}

.checkout-payment-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.checkout-payment-status {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.checkout-payment-status[data-status='paid'] {
  color: #22c55e;
  font-weight: 700;
}

.checkout-payment-status[data-status='partial'] {
  color: #f97316;
  font-weight: 600;
}

.checkout-empty {
  text-align: center;
  padding: 28px 12px;
  color: var(--text-secondary);
}

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

  .admin-sidebar {
    width: 200px;
  }
  .admin-main {
    margin-left: 200px;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 60px 1rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--mobile-nav-bg);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-auth {
    gap: 8px;
  }

  .auth-links {
    gap: 8px;
  }

  .profile-menu-trigger {
    padding: 6px 10px;
  }

  .profile-menu-trigger .user-name {
    display: none;
  }

  .profile-dropdown {
    right: -8px;
    width: min(320px, calc(100vw - 16px));
  }

  .products-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .checkout-item {
    grid-template-columns: 40px 1fr;
  }

  .qty-control,
  .checkout-item-price,
  .checkout-item-remove {
    grid-column: 2;
  }

  .checkout-actions .btn {
    width: 100%;
  }

  .checkout-payment-grid {
    grid-template-columns: 1fr;
  }

  .checkout-payment-actions .btn {
    width: 100%;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .admin-sidebar {
    display: none;
  }

  .admin-main {
    margin-left: 0;
  }

  .profile-menu-admin-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-menu-admin-actions {
    justify-content: stretch;
  }

  .profile-menu-admin-actions .btn {
    width: 100%;
  }

  .auth-card {
    padding: 32px 24px;
  }

  .product-variant-grid {
    grid-template-columns: 1fr;
  }

  .variant-default-wrap {
    margin-bottom: 0;
  }

  .variant-remove-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .navbar {
    padding: 0 1rem;
  }

  .stat-card .stat-number {
    font-size: 1.8rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .profile-dropdown {
    right: -4px;
    width: min(300px, calc(100vw - 12px));
  }
}

/* ===== ADMIN SECTION PANELS ===== */
.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
  animation: fadeIn 0.3s ease-out;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-section-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
}

.profile-menu-admin-card {
  padding: 24px;
}

.profile-menu-admin-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-menu-admin-top h3 {
  margin: 0;
  font-size: 1.1rem;
}

.profile-menu-admin-top p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.profile-toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.profile-toggle-inline input {
  width: 16px;
  height: 16px;
}

.profile-menu-item-cell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.profile-menu-item-cell i {
  color: var(--primary-light);
}

.profile-menu-admin-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

/* Cart badge */
.cart-badge {
  position: relative;
  color: var(--accent);
}

.cart-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  border-radius: 50%;
  box-shadow: none;
}

.cart-icon-btn i {
  font-size: 1.25rem;
}

.cart-icon-btn:hover {
  color: var(--primary-light);
  transform: translateY(-1px);
}

.cart-icon-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.cart-badge .badge-count {
  position: absolute;
  top: -5px;
  right: -8px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: var(--bg-secondary);
  color: currentColor;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Cart sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  height: 100vh;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border);
  z-index: 1500;
  padding: 24px;
  transition: var(--transition);
  overflow-y: auto;
}

.cart-sidebar.active {
  right: 0;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-sidebar-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item .cart-item-icon {
  width: 46px;
  height: 46px;
  background: var(--gradient-card);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.cart-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.cart-item .cart-item-info {
  flex: 1;
}

.cart-item .cart-item-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-item .cart-item-info .cart-item-variant {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item .cart-item-info p {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
}

.cart-item .cart-item-remove {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.cart-item .cart-item-remove:hover {
  background: rgba(239, 68, 68, 0.2);
}

.cart-total {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
}

.cart-total .total-price {
  color: var(--accent);
  font-size: 1.3rem;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1499;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===== SHOP MODERN EXPERIENCE ===== */
.shop-no-scroll {
  overflow: hidden;
}

.shop-modern .container {
  max-width: 1280px;
}

.shop-topbar {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.shop-search-shell {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding-left: 42px;
}

.shop-search-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  color: var(--text-muted);
}

.shop-search-input {
  flex: 1;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 0 8px 0 0;
}

.shop-search-input::placeholder {
  color: var(--text-muted);
}

.shop-search-clear {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.shop-search-clear.active {
  opacity: 1;
  pointer-events: auto;
}

.shop-search-clear:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.shop-search-submit {
  margin-right: 6px;
  padding: 10px 16px;
}

.shop-search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: auto;
  max-height: 320px;
  z-index: 1200;
  display: none;
}

.shop-search-suggest.active {
  display: block;
}

.shop-suggest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.shop-suggest-head button {
  color: var(--accent);
  font-size: 0.8rem;
}

.shop-suggest-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text-primary);
  background: transparent;
}

.shop-suggest-item i {
  color: var(--text-muted);
}

.shop-suggest-item:hover {
  background: var(--bg-glass-hover);
}

.shop-suggest-empty {
  padding: 12px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.shop-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.shop-sort-select {
  min-width: 160px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  padding: 8px 10px;
  font-size: 0.88rem;
}

.shop-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.shop-filters {
  padding: 16px;
  position: sticky;
  top: 88px;
}

.shop-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.shop-filter-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 700;
}

.shop-filter-group {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.shop-filter-group:last-of-type {
  border-bottom: none;
}

.shop-filter-group h4 {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.shop-price-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.shop-range-stack {
  display: grid;
  gap: 8px;
}

.shop-range-stack input[type='range'] {
  width: 100%;
  accent-color: #ff6a00;
}

.shop-checkbox-list {
  display: grid;
  gap: 8px;
}

.shop-check-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.shop-check-item input {
  width: 16px;
  height: 16px;
}

.shop-filter-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-top: 12px;
}

.shop-main {
  min-width: 0;
}

.shop-result-meta {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.shop-result-meta p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.shop-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.shop-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-secondary);
}

.shop-chip i {
  font-size: 0.72rem;
}

.shop-chip-clear {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.3);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.shop-card {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
}

.shop-card-media {
  position: relative;
  height: 180px;
  background: linear-gradient(145deg, rgba(255, 106, 0, 0.15), rgba(255, 61, 0, 0.08));
  overflow: hidden;
}

.shop-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-card-icon-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  opacity: 0.85;
}

.shop-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(145deg, #ff6a00, #ff3d00);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.shop-top-tags {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.shop-top-tag {
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 600;
}

.shop-top-tag.favorite {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
}

.shop-top-tag.bestseller {
  background: rgba(250, 204, 21, 0.22);
  color: #facc15;
}

.shop-top-tag.freeship {
  background: rgba(59, 130, 246, 0.22);
  color: #60a5fa;
}

.shop-quick-btn {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(10, 12, 16, 0.78);
  color: #fff;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.shop-card:hover .shop-quick-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.shop-card-content {
  padding: 12px;
}

.shop-card-category {
  color: var(--text-muted);
  font-size: 0.73rem;
  margin-bottom: 4px;
}

.shop-card-title {
  font-size: 0.98rem;
  line-height: 1.4;
  margin-bottom: 6px;
  min-height: 2.75em;
}

.shop-card-desc {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
  margin-bottom: 8px;
}

.shop-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.shop-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.shop-stars i {
  color: #f59e0b;
  font-size: 0.8rem;
}

.shop-rating-text {
  color: var(--text-primary);
  font-weight: 600;
}

.shop-variant-picker {
  margin-bottom: 10px;
}

.shop-variant-picker .shop-variant-note {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.shop-variant-select {
  width: 100%;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-primary);
  font-size: 0.8rem;
}

.shop-variant-select:focus {
  border-color: var(--primary);
}

.shop-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.shop-price {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ff6a00;
  line-height: 1.1;
}

.shop-price-old {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.shop-price-from {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.shop-highlight {
  background: rgba(250, 204, 21, 0.35);
  border-radius: 4px;
  padding: 0 1px;
}

.shop-infinite-anchor {
  width: 100%;
  height: 1px;
}

.shop-load-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 14px 0 6px;
}

.shop-skeleton-card {
  pointer-events: none;
}

.shop-skeleton {
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.05) 10%, rgba(255, 255, 255, 0.15) 35%, rgba(255, 255, 255, 0.05) 60%);
  background-size: 220% 100%;
  animation: shopSkeleton 1.2s linear infinite;
  border-radius: 8px;
}

.shop-skeleton-media {
  height: 180px;
}

.shop-skeleton-line {
  height: 12px;
  margin-bottom: 8px;
}

.shop-skeleton-line.short {
  width: 60%;
}

@keyframes shopSkeleton {
  to {
    background-position: -120% 0;
  }
}

.shop-smart-sections {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.shop-smart-card {
  padding: 14px;
}

.shop-smart-head {
  margin-bottom: 10px;
}

.shop-smart-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.98rem;
}

.shop-smart-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(160px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.shop-smart-row::-webkit-scrollbar {
  height: 6px;
}

.shop-smart-row::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 999px;
}

.shop-mini-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  min-width: 160px;
  cursor: pointer;
  transition: var(--transition);
}

.shop-mini-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.shop-mini-media {
  height: 90px;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(255, 106, 0, 0.12), rgba(255, 61, 0, 0.08));
}

.shop-mini-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-mini-media i {
  font-size: 2rem;
}

.shop-mini-card h4 {
  font-size: 0.84rem;
  line-height: 1.35;
  min-height: 2.3em;
  margin-bottom: 4px;
}

.shop-mini-card p {
  color: #ff6a00;
  font-size: 0.83rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.shop-mini-add {
  width: 100%;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 0.76rem;
  background: rgba(255, 106, 0, 0.14);
  color: #ff8d40;
}

.shop-mini-add:hover {
  background: rgba(255, 106, 0, 0.22);
}

.shop-smart-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px 4px;
}

.shop-filter-overlay {
  display: none;
}

.shop-filter-toggle {
  display: none;
}

.shop-filter-header .modal-close {
  display: none;
}

.shop-apply-mobile {
  display: none;
}

.shop-quickview-modal {
  max-width: 760px;
}

.shop-quickview-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

#quickViewMedia {
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 240px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(255, 106, 0, 0.12), rgba(255, 61, 0, 0.08));
}

.shop-quickview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-quickview-fallback {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
}

.shop-quickview-info h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.shop-quickview-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.shop-quickview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.shop-quickview-variants {
  margin-bottom: 12px;
}

.shop-quickview-variants .shop-variant-note {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.shop-mini-meta {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.shop-quickview-price {
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.shop-quickview-price strong {
  color: #ff6a00;
  font-size: 1.4rem;
}

.shop-quickview-price span {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .shop-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }
}

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

  .shop-filter-toggle {
    display: inline-flex;
  }

  .shop-filter-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1700;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .shop-filter-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .shop-filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 1701;
    border-radius: 18px 18px 0 0;
    max-height: 82vh;
    overflow-y: auto;
    transform: translateY(104%);
    transition: var(--transition);
  }

  .shop-filters.open {
    transform: translateY(0);
  }

  .shop-filter-header .modal-close {
    display: inline-flex;
  }

  .shop-apply-mobile {
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .shop-topbar {
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .shop-top-actions {
    justify-content: space-between;
  }

  .shop-sort-wrap span {
    display: none;
  }

  .shop-search-shell {
    min-height: 48px;
  }

  .shop-search-submit {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .shop-card-media {
    height: 148px;
  }

  .shop-quick-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    bottom: 8px;
    font-size: 0.72rem;
    padding: 6px 10px;
  }

  .shop-card-content {
    padding: 10px;
  }

  .shop-card-title {
    font-size: 0.88rem;
  }

  .shop-card-desc {
    display: none;
  }

  .shop-price {
    font-size: 1rem;
  }

  .shop-price-row .btn {
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .shop-smart-row {
    grid-auto-columns: minmax(140px, 1fr);
  }

  .shop-quickview-body {
    grid-template-columns: 1fr;
  }

  #quickViewMedia,
  .shop-quickview-fallback {
    min-height: 180px;
  }
}

@media (max-width: 450px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== BLOG MODERN EXPERIENCE ===== */
.blog-page .bg-animation .orb {
  opacity: 0.2;
}

.blog-modern-header {
  padding: 112px 0 42px;
  text-align: left;
  position: relative;
}

.blog-modern-section {
  padding-top: 24px;
}

.blog-modern-header::before {
  content: '';
  position: absolute;
  inset: 72px 0 0;
  background:
    radial-gradient(circle at 10% 18%, rgba(91, 124, 250, 0.35), transparent 45%),
    radial-gradient(circle at 88% 14%, rgba(251, 146, 60, 0.28), transparent 38%),
    linear-gradient(130deg, rgba(15, 20, 36, 0.88), rgba(29, 38, 68, 0.8), rgba(17, 23, 40, 0.9));
  border-bottom: 1px solid var(--border);
  pointer-events: none;
}

.blog-modern-header .container,
.blog-modern .container {
  max-width: 1260px;
  position: relative;
  z-index: 1;
}

.blog-hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: stretch;
  gap: 20px;
}

.blog-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.blog-hero-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(251, 146, 60, 0.18);
  border: 1px solid rgba(251, 146, 60, 0.38);
  color: #ffd6b5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-hero-copy h1 {
  font-size: clamp(2.5rem, 4.4vw, 4.1rem);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.blog-hero-copy p {
  max-width: 520px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.blog-featured-card {
  padding: 0;
  overflow: hidden;
  border-radius: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 320px;
  cursor: pointer;
}

.blog-featured-card:hover {
  transform: translateY(-4px);
}

.blog-featured-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.blog-featured-media-wrap {
  position: relative;
  overflow: hidden;
}

.blog-featured-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-featured-card:hover .blog-featured-image {
  transform: scale(1.04);
}

.blog-featured-content {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-featured-category {
  color: #93c5fd;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.blog-featured-content h2 {
  font-size: clamp(1.28rem, 2.2vw, 1.8rem);
  line-height: 1.3;
}

.blog-featured-content p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-featured-loading {
  opacity: 0.74;
}

.blog-toolbar {
  padding: 15px;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.blog-search-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 10px 0 44px;
}

.blog-search-shell:focus-within {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px rgba(91, 124, 250, 0.16);
}

.blog-search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.blog-search-input {
  flex: 1;
  width: 100%;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.94rem;
  border: none;
  padding-right: 8px;
}

.blog-search-input::placeholder {
  color: var(--text-muted);
}

.blog-search-clear {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-muted);
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.blog-search-clear.active {
  opacity: 1;
  pointer-events: auto;
}

.blog-search-clear:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.blog-search-clear:disabled {
  cursor: default;
}

.blog-search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: auto;
  max-height: 320px;
  z-index: 1200;
  display: none;
}

.blog-search-suggest.active {
  display: block;
}

.blog-suggest-section + .blog-suggest-section {
  border-top: 1px solid var(--border);
}

.blog-suggest-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: var(--text-secondary);
  font-size: 0.81rem;
}

.blog-suggest-head button {
  color: var(--accent);
  font-size: 0.78rem;
}

.blog-suggest-item {
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  color: var(--text-primary);
  background: transparent;
}

.blog-suggest-item i {
  color: var(--text-muted);
}

.blog-suggest-item:hover {
  background: var(--bg-glass-hover);
}

.blog-suggest-empty {
  padding: 12px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.blog-highlight {
  background: rgba(250, 204, 21, 0.32);
  border-radius: 4px;
  padding: 0 1px;
}

.blog-popular-keys {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-popular-keys span {
  color: var(--text-secondary);
  font-size: 0.83rem;
}

.blog-popular-keys button {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.8rem;
}

.blog-popular-keys button:hover {
  border-color: var(--border-hover);
  background: var(--bg-glass-hover);
}

.blog-filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.blog-filter-chip {
  border: 1px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

.blog-filter-chip:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.blog-filter-chip.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #ff7a18, #ff4d00);
  box-shadow: 0 8px 18px rgba(255, 106, 0, 0.25);
}

.blog-result-meta {
  padding: 10px 14px;
  margin-bottom: 14px;
}

.blog-result-meta p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

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

.blog-modern-card {
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bg-card);
}

.blog-modern-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

.blog-modern-media {
  position: relative;
  height: 188px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(91, 124, 250, 0.18), rgba(251, 146, 60, 0.1));
}

.blog-modern-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.blog-modern-card:hover .blog-modern-image {
  transform: scale(1.05);
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.blog-modern-media .blog-tag {
  position: absolute;
  top: 10px;
  left: 10px;
}

.blog-tag-featured,
.blog-cat-tech {
  background: rgba(59, 130, 246, 0.22);
  color: #bfdbfe;
}

.blog-cat-guide {
  background: rgba(34, 197, 94, 0.22);
  color: #86efac;
}

.blog-cat-security {
  background: rgba(244, 63, 94, 0.22);
  color: #fda4af;
}

.blog-cat-review {
  background: rgba(250, 204, 21, 0.22);
  color: #fde68a;
}

.blog-quick-btn {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(10, 12, 16, 0.8);
  color: #fff;
  transition: var(--transition);
}

.blog-modern-card:hover .blog-quick-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.blog-modern-content {
  padding: 14px 14px 15px;
}

.blog-modern-content h3 {
  font-size: 1.02rem;
  line-height: 1.4;
  margin-bottom: 7px;
  min-height: 2.8em;
}

.blog-modern-content p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}

.blog-modern-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.blog-modern-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.blog-readmore {
  width: fit-content;
}

.blog-infinite-anchor {
  width: 100%;
  height: 1px;
}

.blog-load-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 13px 0 5px;
}

.blog-skeleton-card,
.blog-mini-skeleton {
  pointer-events: none;
}

.blog-skeleton {
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.05) 10%, rgba(255, 255, 255, 0.14) 35%, rgba(255, 255, 255, 0.05) 60%);
  background-size: 220% 100%;
  animation: blogShimmer 1.2s linear infinite;
  border-radius: 8px;
}

.blog-skeleton-media {
  height: 188px;
}

.blog-skeleton-tag {
  width: 36%;
  height: 20px;
  margin-bottom: 10px;
}

.blog-skeleton-line {
  height: 12px;
  margin-bottom: 8px;
}

.blog-skeleton-line.short {
  width: 62%;
}

@keyframes blogShimmer {
  to {
    background-position: -120% 0;
  }
}

.blog-recommend-wrap {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.blog-recommend-card {
  padding: 14px;
}

.blog-recommend-card h3 {
  font-size: 1rem;
  margin-bottom: 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.blog-recommend-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.blog-recommend-row::-webkit-scrollbar {
  height: 6px;
}

.blog-recommend-row::-webkit-scrollbar-thumb {
  background: var(--border-hover);
  border-radius: 999px;
}

.blog-mini-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  min-width: 190px;
  cursor: pointer;
  transition: var(--transition);
}

.blog-mini-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.blog-mini-card:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.blog-mini-card img {
  width: 100%;
  height: 98px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
}

.blog-mini-card .blog-tag {
  position: static;
  margin-bottom: 7px;
}

.blog-mini-card h4 {
  font-size: 0.84rem;
  line-height: 1.35;
  min-height: 2.35em;
  margin-bottom: 4px;
}

.blog-mini-card p {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.blog-mini-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.76rem;
}

.blog-mini-skeleton-media {
  height: 98px;
  margin-bottom: 8px;
}

.blog-mini-skeleton-line {
  height: 10px;
  margin-bottom: 7px;
}

.blog-mini-skeleton-line.short {
  width: 58%;
}

.blog-recommend-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 8px 4px;
}

.blog-back-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff7a18, #ff4d00);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 106, 0, 0.35);
  z-index: 1600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: var(--transition);
}

.blog-back-top.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.blog-page #blogModal .modal {
  max-width: 760px;
}

.blog-modal-meta {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.blog-detail-lead {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 14px;
}

@media (max-width: 1120px) {
  .blog-hero-shell {
    grid-template-columns: 1fr;
  }

  .blog-featured-card {
    grid-template-columns: 1fr;
  }

  .blog-featured-image {
    min-height: 230px;
  }
}

@media (max-width: 768px) {
  .blog-modern-header {
    padding: 98px 0 30px;
  }

  .blog-hero-copy p {
    font-size: 0.95rem;
  }

  .blog-toolbar {
    padding: 12px;
  }

  .blog-search-shell {
    min-height: 48px;
  }

  .blog-popular-keys span {
    width: 100%;
    font-size: 0.76rem;
  }

  .blog-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .blog-grid.blog-grid-modern {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .blog-modern-media {
    height: 148px;
  }

  .blog-modern-content {
    padding: 10px;
  }

  .blog-modern-content h3 {
    font-size: 0.9rem;
  }

  .blog-modern-content p {
    font-size: 0.8rem;
  }

  .blog-quick-btn {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    bottom: 8px;
    font-size: 0.7rem;
    padding: 6px 10px;
  }

  .blog-recommend-row {
    grid-auto-columns: minmax(160px, 1fr);
  }

  .blog-back-top {
    width: 38px;
    height: 38px;
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 520px) {
  .blog-grid.blog-grid-modern {
    grid-template-columns: 1fr;
  }

  .blog-featured-content h2 {
    font-size: 1.18rem;
  }
}

.text-success {
  color: #22c55e;
}

.text-danger {
  color: #ef4444;
}

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

.profile-menu-item-href {
  min-width: 220px;
}

.shop-favorite-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 20, 36, 0.74);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  z-index: 3;
  transition: var(--transition);
}

.shop-favorite-btn:hover {
  transform: scale(1.06);
}

.shop-favorite-btn.active {
  background: rgba(239, 68, 68, 0.88);
  border-color: rgba(239, 68, 68, 0.95);
  color: #fff;
}

.profile-shell {
  padding-top: 16px;
}

.profile-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
}

.profile-side-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-nav-item {
  width: 100%;
  border-radius: 10px;
  padding: 11px 12px;
  text-align: left;
  color: var(--text-secondary);
  background: rgba(151, 167, 255, 0.08);
  border: 1px solid transparent;
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: var(--transition);
}

.profile-nav-item:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.profile-nav-item.active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(91, 124, 250, 0.28);
}

.profile-main-panels {
  display: grid;
  gap: 14px;
}

.profile-panel {
  display: none;
  padding: 18px;
}

.profile-panel.active {
  display: block;
}

.profile-panel-head {
  margin-bottom: 12px;
}

.profile-panel-head h2 {
  font-size: 1.06rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.profile-stat-card {
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(151, 167, 255, 0.08);
  padding: 12px;
}

.profile-stat-card span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.profile-stat-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-meta-item {
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(151, 167, 255, 0.05);
  padding: 10px 12px;
}

.profile-meta-item span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.profile-meta-item strong {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  word-break: break-word;
}

.profile-inline-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.profile-inline-form .btn {
  max-width: 220px;
}

.profile-divider {
  margin: 16px 0;
  border-top: 1px dashed var(--border);
}

.profile-subtitle {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.profile-voucher-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-voucher-option {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: rgba(151, 167, 255, 0.08);
}

.profile-voucher-option h4 {
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.profile-voucher-option p {
  color: var(--text-secondary);
  font-size: 0.84rem;
  margin-bottom: 4px;
}

.profile-voucher-option .btn {
  margin-top: 6px;
}

.profile-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.profile-wishlist-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(151, 167, 255, 0.08);
}

.profile-wishlist-media {
  height: 140px;
  background: linear-gradient(135deg, rgba(91, 124, 250, 0.2), rgba(251, 146, 60, 0.1));
}

.profile-wishlist-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-wishlist-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.3rem;
}

.profile-wishlist-body {
  padding: 12px;
}

.profile-wishlist-body h4 {
  font-size: 0.96rem;
  margin-bottom: 6px;
}

.profile-wishlist-body p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  min-height: 2.5em;
}

.profile-wishlist-price {
  margin-top: 8px;
  font-weight: 700;
}

.profile-wishlist-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.profile-wishlist-actions .btn {
  flex: 1;
}

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

  .profile-side-nav {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-voucher-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-inline-form {
    grid-template-columns: 1fr;
  }

  .profile-voucher-options {
    grid-template-columns: 1fr;
  }
}
