/* ==========================================================================
   HANSALDEV Ã¢â‚¬â€ Premium Digital Marketplace
   Complete Design System v3.0
   ========================================================================== */

/* ---- CSS Custom Properties ---- */
:root {
  --bg: #07070d;
  --bg-elevated: #0c0c16;
  --surface: #11111f;
  --surface-hover: #18182e;
  --surface-active: #1e1e35;
  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(255, 255, 255, 0.1);
  --border-active: rgba(124, 58, 237, 0.3);
  --text: #b0b0be;
  --text-secondary: #8a8a9e;
  --text-muted: #6b6b80;
  --text-heading: #f0f0f5;
  --accent:#6b58ef;
  --primary: #7c3aed;
  --primary-hover: #8b5cf6;
  --primary-soft: rgba(124, 58, 237, 0.08);
  --primary-glow: rgba(124, 58, 237, 0.25);
  --secondary: #6366f1;
  --accent-gradient: linear-gradient(135deg, #7c3aed, #6366f1);
  --success: #22c55e;
  --success-soft: rgba(34, 197, 94, 0.08);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.08);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.08);
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 4px 24px var(--primary-glow);
  --font-heading: 'Outfit', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-blur: rgba(7, 7, 13, 0.8);
}

/* ---- Light Mode ---- */
[data-theme="light"] {
  --bg: #f8f9fc;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-hover: #f1f3f9;
  --surface-active: #e8eaf2;
  --border: rgba(0, 0, 0, 0.06);
  --border-hover: rgba(0, 0, 0, 0.12);
  --border-active: rgba(124, 58, 237, 0.3);
  --text: #4a4a6a;
  --text-secondary: #6b6b8a;
  --text-muted: #9090a8;
  --text-heading: #1a1a2e;
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 56px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 24px 80px rgba(0, 0, 0, 0.12);
  --nav-blur: rgba(248, 249, 252, 0.85);
  --primary-soft: rgba(124, 58, 237, 0.06);
  --success-soft: rgba(34, 197, 94, 0.06);
  --danger-soft: rgba(239, 68, 68, 0.06);
  --warning-soft: rgba(245, 158, 11, 0.06);
}

[data-theme="light"] .hero-card,
[data-theme="light"] .card {
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="light"] .footer {
  background: var(--bg-elevated);
  border-top-color: var(--border);
}

[data-theme="light"] .hero-bg-glow {
  background: radial-gradient(ellipse at 30% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 60%);
}

[data-theme="light"] .prose img {
  border-radius: var(--radius-sm);
}

/* ---- Theme Toggle Button ---- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface-hover);
  color: var(--text-heading);
  border-color: var(--border-hover);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  width: 18px;
  height: 18px;
  transition: opacity 0.2s;
}

[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

input,
textarea,
select {
  font: inherit;
  outline: none;
}

svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

::selection {
  background: var(--primary);
  color: #fff;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.2rem;
}

h5 {
  font-size: 1.05rem;
}

h6 {
  font-size: 0.95rem;
}

p {
  margin-bottom: 1rem;
  color: var(--text);
}

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

.gradient-text-heading {
  background: linear-gradient(135deg, var(--text-heading), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

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

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

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

/* ---- Container & Layout ---- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  padding: 24px 0;
}

.section-sm {
  padding: 80px 0;
}

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

.grid {
  display: grid;
  gap: 32px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

.grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

.flex {
  display: flex;
}

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

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

.flex-col {
  flex-direction: column;
}

.gap-xs {
  gap: 8px;
}

.gap-sm {
  gap: 16px;
}

.gap-md {
  gap: 24px;
}

.gap-lg {
  gap: 40px;
}

.gap-xl {
  gap: 60px;
}

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

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.w-full {
  width: 100%;
}

/* ---- Section Header ---- */
.section-header {
  margin-bottom: 64px;
  max-width: 680px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header.center .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid rgba(124, 58, 237, 0.15);
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.section-title {
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  padding: 14px 32px;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}

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

.btn-outline {
  border-color: var(--border);
  color: var(--text-heading);
  background: transparent;
}

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

.btn-ghost {
  color: var(--text-secondary);
  padding: 8px 16px;
  background: transparent;
  border: none;
}

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

.btn-soft {
  background: var(--primary-soft);
  color: var(--primary-hover);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.btn-soft:hover {
  background: rgba(124, 58, 237, 0.15);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.btn-xl {
  padding: 20px 52px;
  font-size: 1.1rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.3s;
}

.btn-icon:hover {
  background: var(--surface);
  color: var(--text-heading);
}

.btn-link {
  color: var(--primary);
  font-weight: 600;
  padding: 0;
  background: none;
  border: none;
  gap: 6px;
}

.btn-link:hover {
  gap: 10px;
  color: var(--primary-hover);
}

/* ---- Cards ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
}

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

.card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-img-wrap {
  overflow: hidden;
  position: relative;
}

.card-glass {
  background: rgba(17, 17, 31, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.card-glass:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.badge-primary {
  background: var(--primary);
  color: #fff;
}

.badge-gradient {
  background: var(--accent-gradient);
  color: #fff;
}

.badge-success {
  background: var(--success);
  color: #fff;
}

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

.badge-warning {
  background: var(--warning);
  color: #fff;
}

.badge-soft {
  background: var(--primary-soft);
  color: var(--primary-hover);
  border: 1px solid rgba(124, 58, 237, 0.15);
}

.badge-outline {
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ---- Icon Box ---- */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
  transition: all 0.4s var(--ease);
}

.icon-box-primary {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.icon-box-success {
  background: var(--success-soft);
  color: var(--success);
}

.icon-box-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.icon-box-lg {
  width: 72px;
  height: 72px;
  font-size: 1.75rem;
}

.icon-box-sm {
  width: 40px;
  height: 40px;
  font-size: 1rem;
}

.card:hover .icon-box {
  transform: scale(1.05);
}

/* ---- Forms ---- */
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: all 0.3s;
}

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

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

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

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

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

.form-error {
  color: var(--danger);
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.navbar.scrolled {
  background: var(--nav-blur);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

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

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
  padding: 4px 0;
}

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

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

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-heading);
  transition: all 0.3s;
  border-radius: 2px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Dropdown ---- */
.nav-item.has-dropdown {
  position: relative;
}

.sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s var(--ease);
  z-index: 100;
  box-shadow: var(--shadow-lg);
}

.nav-item.has-dropdown:hover .sub-menu,
.nav-item.has-dropdown:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-xs);
  transition: all 0.2s;
}

.sub-menu a:hover {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.sub-menu .sub-divider {
  border-top: 1px solid var(--border);
  margin: 6px 0;
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-bg-glow::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.15), transparent 60%);
}

.hero-bg-glow::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle at 70% 50%, rgba(99, 102, 241, 0.1), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content .section-badge {
  margin-bottom: 24px;
}

.hero-content h1 {
  font-size: clamp(2.8rem, 5.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

.hero-card {
  width: 100%;
  max-width: 540px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 120px rgba(124, 58, 237, 0.06);
}

@media screen and (max-width:551px) {
  .hero-card {
    display: none;
  }

  .hero-content h1 {
    text-align: center;
  }

  .hero-desc {
    text-align: center;
    font-size: 1rem;
  }
}

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

.hero-card-dots {
  display: flex;
  gap: 8px;
}

.hero-card-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-card-dot:nth-child(1) {
  background: #ef4444;
}

.hero-card-dot:nth-child(2) {
  background: #f59e0b;
}

.hero-card-dot:nth-child(3) {
  background: #22c55e;
}

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

.hero-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-card-row {
  height: 16px;
  background: var(--border);
  border-radius: var(--radius-full);
  opacity: 0.4;
}

.hero-card-row:nth-child(1) {
  width: 100%;
}

.hero-card-row:nth-child(2) {
  width: 75%;
}

.hero-card-row:nth-child(3) {
  width: 90%;
}

.hero-card-row:nth-child(4) {
  width: 65%;
}

.hero-card-row-accent {
  height: 48px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  opacity: 0.7;
  margin: 4px 0;
}

.hero-float {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-float-item {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(17, 17, 31, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-heading);
  box-shadow: var(--shadow-md);
  animation: floatUp 5s ease-in-out infinite;
}

.hero-float-item svg {
  color: var(--primary-hover);
}

.hero-float-item:nth-child(1) {
  top: 15%;
  right: -8%;
  animation-delay: 0s;
}

.hero-float-item:nth-child(2) {
  bottom: 25%;
  left: -10%;
  animation-delay: 1.5s;
}

.hero-float-item:nth-child(3) {
  bottom: 8%;
  right: 10%;
  animation-delay: 3s;
}

@keyframes floatUp {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

/* ---- Trust Bar ---- */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 32px;
  border-right: 1px solid var(--border);
}

.trust-item:last-child {
  border-right: none;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary-hover);
  flex-shrink: 0;
}

.trust-text {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-heading);
  margin-bottom: 2px;
}

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

/* ==========================================================================
   FEATURED PRODUCTS
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-card-image img {
  transform: scale(1.06);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 7, 13, 0.8));
  opacity: 0;
  transition: opacity 0.4s;
}

.product-card:hover .product-card-overlay {
  opacity: 1;
}

.product-card-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.product-card-rating {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--warning);
  font-weight: 600;
  z-index: 2;
}

.product-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card-title a {
  color: inherit;
  transition: color 0.2s;
}

.product-card-title a:hover {
  color: var(--primary-hover);
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

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

.product-card-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-heading);
}

.product-card-price .old-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
  margin-right: 8px;
}

/* ==========================================================================
   FEATURES / WHY CHOOSE US
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.4s;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.feature-card:hover .icon-box {
  transform: scale(1.1);
}

.feature-card h4 {
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

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

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--warning);
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 24px;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
  margin: 0;
}

.testimonial-role {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.testimonial-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--success);
  font-weight: 600;
  margin-top: 4px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item[open] {
  border-color: rgba(124, 58, 237, 0.2);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.1);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-heading);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::marker {
  display: none;
  content: '';
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-out);
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 24px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-answer p {
  margin: 0;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0.9;
}

.cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
}

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Cpath d='M 60 0 L 0 0 0 60' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='60' height='60' fill='url(%23grid)'/%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 48px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: var(--radius-sm);
  transition: all 0.35s var(--ease-spring);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   SOCIAL / CONTACT CARDS
   ========================================================================== */
.social-grid {
  gap: 20px;
}

.social-card {
  text-align: center;
  padding: 32px 20px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.social-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}

.social-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--primary-soft);
  color: var(--primary-hover);
  transition: all 0.4s var(--ease-spring);
  margin-bottom: 16px;
}

.social-card:hover .social-icon {
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--primary-glow);
}

.social-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.social-handle {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-bottom: 16px;
}

.social-action {
  display: inline-flex;
  padding: 6px 20px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease-spring);
  color: var(--text-muted);
}

.social-card:hover .social-action {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

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

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.blog-card-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

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

.blog-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-date {
  font-size: 0.78rem;
  color: var(--primary-hover);
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card-title a {
  color: inherit;
  transition: color 0.2s;
}

.blog-card-title a:hover {
  color: var(--primary-hover);
}

.blog-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: 20px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 340px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s var(--ease-spring);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--primary-hover);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: var(--primary-hover);
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger>* {
  opacity: 1;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-stagger.visible>*:nth-child(1) {
  transition-delay: 0.05s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(2) {
  transition-delay: 0.12s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(3) {
  transition-delay: 0.2s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(4) {
  transition-delay: 0.28s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(5) {
  transition-delay: 0.36s;
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(6) {
  transition-delay: 0.44s;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   SCROLL TO TOP
   ========================================================================== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--primary-glow);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 999;
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--primary-glow);
}

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

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

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

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

/* ==========================================================================
   FLASH MESSAGES
   ========================================================================== */
.flash-message {
  position: fixed;
  top: 100px;
  right: 24px;
  z-index: 9999;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.4s var(--ease-out);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 420px;
}

.flash-message.success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--success);
}

.flash-message.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

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

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary-hover);
}

.pagination .active span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ==========================================================================
   BREADCRUMB
   ========================================================================== */
.breadcrumb-section {
  position: relative;
  overflow: hidden;
  padding: 140px 0 0px;
}

.breadcrumb-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.08), transparent 60%);
  pointer-events: none;
}

.breadcrumb-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.breadcrumb-content h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 12px;
}

.breadcrumb-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ==========================================================================
   AUTH MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(7, 7, 13, 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal-box {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: auto;
  max-height: 98dvh;
  animation: modalIn 0.3s var(--ease-out);
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  color: var(--text-heading);
  border-color: var(--border-hover);
}

.modal-header {
  padding: 32px 32px 0;
  text-align: center;
}

.modal-header h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.modal-header p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.modal-tabs {
  display: flex;
  gap: 0;
  margin: 24px 32px 0;
  border-bottom: 1px solid var(--border);
}

.modal-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}

.modal-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.modal-body {
  padding: 24px 32px 32px;
}

@media screen and (max-width:551px) {
  .modal-overlay {
    padding: 8px;
  }
  .modal-body {
    padding: 24px 8px 32px;
  }
}

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
}

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

table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}

table tr:hover td {
  background: rgba(124, 58, 237, 0.02);
}

/* ==========================================================================
   ACCOUNT Ã¢â‚¬â€ Sidebar & Content
   ========================================================================== */
.account-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items: start;
}

.account-sidebar .card {
  padding: 32px 24px;
  text-align: center;
}

.account-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--primary);
  padding: 3px;
  background: var(--bg);
}

.account-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.account-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

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

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.account-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  transition: all 0.3s;
}

.account-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.account-nav a.active {
  background: var(--primary);
  color: #fff;
}

/* ---- Stats Cards ---- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

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

.stat-card .stat-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.stat-card h3 {
  margin-bottom: 4px;
}

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

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
  .container {
    padding: 0 24px;
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-float-item:nth-child(1) {
    right: 5%;
  }

  .hero-float-item:nth-child(2) {
    left: 5%;
  }

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

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

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

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

  .trust-item:nth-child(2) {
    border-right: none;
  }

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

  .grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .account-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 18px 0;
  }

  .section-sm {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .grid-5 {
    grid-template-columns: 1fr;
  }

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

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-float {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-card {
    max-width: 100%;
  }

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

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

  .section-header {
    margin-bottom: 18px;
  }

  /* Mobile Nav */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-elevated);
    flex-direction: column;
    align-items: flex-start;
    /* justify-content: center; */
    padding: 80px 32px;
    gap: 8px;
    transition: right 0.4s var(--ease-out);
    border-left: 1px solid var(--border);
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 12px 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-hide-mobile {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .btn {
    padding: 12px 24px;
  }

  .btn-lg {
    padding: 14px 32px;
  }

  .grid-6 {
    grid-template-columns: 1fr 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

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

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   MISC UTILITIES
   ========================================================================== */
.prose {
  line-height: 1.8;
  color: var(--text);
}

.prose p {
  margin-bottom: 1.2rem;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose ul,
.prose ol {
  padding-left: 24px;
  margin-bottom: 1.2rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: var(--primary-hover);
  text-decoration: underline;
}

.prose img {
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}

.prose code {
  background: var(--surface);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  border: 1px solid var(--border);
}

.prose pre {
  background: var(--surface);
  padding: 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  border: 1px solid var(--border);
  margin-bottom: 1.2rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.social-auth-buttons {
  display: flex;
  flex-wrap: wrap;
  /* flex-direction: column; */
  gap: 10px;
  margin: 20px 0;
}

.social-auth-buttons .btn-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 48%;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  border: 1px solid var(--border);
}

.social-auth-buttons .btn-social:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.social-auth-buttons .btn-social i {
  font-size: 1.2rem;
  width: 22px;
  text-align: center;
}

.social-auth-buttons .btn-google {
  background: #fff;
  color: #1f1f1f;
  border-color: #dadce0;
}

.social-auth-buttons .btn-google:hover {
  background: #f8f9fa;
  border-color: #c4c7cc;
}

.social-auth-buttons .btn-facebook {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}

.social-auth-buttons .btn-facebook:hover {
  background: #166fe5;
  box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.social-auth-buttons .btn-twitter {
  background: #000;
  color: #fff;
  border-color: #000;
}

.social-auth-buttons .btn-twitter:hover {
  background: #1a1a1a;
}

.social-auth-buttons .btn-linkedin {
  background: #0a66c2;
  color: #fff;
  border-color: #0a66c2;
}

.social-auth-buttons .btn-linkedin:hover {
  background: #095dad;
}

.social-auth-buttons .btn-github {
  background: #24292e;
  color: #fff;
  border-color: #24292e;
}

.social-auth-buttons .btn-github:hover {
  background: #1b1f23;
}

.fl-wrapper {
    z-index: 999 !important;
}

/* ==========================================================================
   BLOG — New Design System
   ========================================================================== */

/* ---- Hero Product Slide ---- */
.blog-hero-slide {
  padding: 24px 0 0;
}

.blog-hero-header {
  margin-bottom: 24px;
  text-align: center;
}

.blog-product-swiper {
  padding: 8px 0 48px;
}

.blog-product-swiper .swiper-slide {
  width: auto;
}

.blog-product-swiper .swiper-button-next,
.blog-product-swiper .swiper-button-prev {
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}

.blog-product-swiper .swiper-button-next:hover,
.blog-product-swiper .swiper-button-prev:hover {
  color: var(--text-heading);
  border-color: var(--border-hover);
}

.blog-product-swiper .swiper-button-next::after,
.blog-product-swiper .swiper-button-prev::after {
  font-size: 14px;
}

.blog-product-slide-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease);
  min-width: 240px;
  text-decoration: none;
}

.blog-product-slide-card:hover {
  border-color: var(--border-active);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.blog-product-slide-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg);
}

.blog-product-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-product-slide-body h4 {
  font-size: 0.88rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.blog-product-slide-body p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.blog-product-slide-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-product-slide-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-heading);
}

.blog-product-slide-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Blog Layout ---- */
.blog-main-section {
  padding-top: 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.blog-posts-column {
  min-width: 0;
}

.blog-sidebar-column {
  position: sticky;
  top: 100px;
}

.blog-posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

/* ---- Post Card (List Style) ---- */
.blog-posts-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-list-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s var(--ease);
}

.blog-list-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.blog-list-card-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.blog-list-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

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

.blog-list-card-date {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.blog-list-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.blog-list-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.blog-tag-chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--tag-color, var(--primary)) 12%, transparent);
  color: var(--tag-color, var(--primary));
  text-decoration: none;
  transition: opacity 0.2s;
}

.blog-tag-chip:hover {
  opacity: 0.8;
}

.blog-list-card-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-list-card-title a {
  color: var(--text-heading);
  transition: color 0.2s;
}

.blog-list-card-title a:hover {
  color: var(--primary);
}

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

.blog-list-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.blog-list-card-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.blog-list-card-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: gap 0.2s;
}

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

/* ---- Sidebar ---- */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.blog-sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.blog-sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-heading);
}

.blog-sidebar-title svg {
  color: var(--primary);
}

.blog-search-box {
  display: flex;
  gap: 0;
}

.blog-search-input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: var(--radius-xs) 0 0 var(--radius-xs);
  color: var(--text-heading);
  font-size: 0.85rem;
}

.blog-search-input:focus {
  border-color: var(--primary);
}

.blog-search-btn {
  padding: 10px 14px;
  background: var(--primary);
  border: none;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.blog-search-btn:hover {
  background: var(--primary-hover);
}

/* Sidebar: Recent Posts */
.blog-sidebar-recent {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: background 0.2s;
}

.blog-recent-item:hover {
  background: var(--surface-hover);
}

.blog-recent-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
}

.blog-recent-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-recent-info h6 {
  font-size: 0.82rem;
  line-height: 1.3;
  margin-bottom: 3px;
  color: var(--text-heading);
}

.blog-recent-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Sidebar: Categories */
.blog-sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-category-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: background 0.2s;
}

.blog-category-item:hover,
.blog-category-item.active {
  background: var(--surface-hover);
}

.blog-category-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.blog-category-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  flex: 1;
}

.blog-category-item:hover .blog-category-name,
.blog-category-item.active .blog-category-name {
  color: var(--text-heading);
}

.blog-category-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ---- Loading / Empty States ---- */
.blog-loading-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.blog-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: blogSpin 0.7s linear infinite;
}

@keyframes blogSpin {
  to { transform: rotate(360deg); }
}

.blog-end-marker {
  text-align: center;
  padding: 32px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.blog-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.blog-empty-state svg {
  margin-bottom: 16px;
  opacity: 0.5;
}

.blog-empty-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---- Blog Responsive ---- */
@media (max-width: 1024px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar-column {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .blog-list-card {
    grid-template-columns: 1fr;
  }

  .blog-list-card-image {
    aspect-ratio: 16/9;
  }

  .blog-sidebar-column {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   BLOG SINGLE POST
   ========================================================================== */

.blog-single-section {
  padding-top: 0;
}

.blog-single-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.blog-single-image {
  position: relative;
  overflow: hidden;
}

.blog-single-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.blog-single-date {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.blog-single-body {
  padding: 36px 40px 40px;
}

.blog-single-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.blog-single-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text-heading);
}

.blog-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.blog-single-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.blog-single-meta svg {
  color: var(--primary);
}

.blog-single-content {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
}

.blog-single-content h2 {
  font-size: 1.5rem;
  margin: 32px 0 14px;
}

.blog-single-content h3 {
  font-size: 1.25rem;
  margin: 24px 0 10px;
}

.blog-single-content p {
  margin-bottom: 18px;
}

.blog-single-content img {
  border-radius: var(--radius-sm);
  margin: 20px 0;
}

.blog-single-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: rgba(124, 58, 237, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}

.blog-single-content a:hover {
  text-decoration-color: var(--primary);
}

.blog-single-content blockquote {
  border-left: 3px solid var(--primary);
  padding: 14px 20px;
  margin: 20px 0;
  background: var(--primary-soft);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.blog-single-content code {
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.88rem;
  border: 1px solid var(--border);
}

.blog-single-content pre {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  overflow-x: auto;
  margin: 20px 0;
}

.blog-single-content pre code {
  background: none;
  border: none;
  padding: 0;
}

.blog-single-content ul,
.blog-single-content ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.blog-single-content ul { list-style: disc; }
.blog-single-content ol { list-style: decimal; }

.blog-single-content li {
  margin-bottom: 6px;
}

/* ---- Prev/Next Navigation ---- */
.blog-single-nav {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.blog-single-nav-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s;
}

.blog-single-nav-link:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.blog-single-nav-next {
  text-align: right;
  align-items: flex-end;
}

.blog-single-nav-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-single-nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
}

/* ==========================================================================
   SHARE BUTTONS
   ========================================================================== */

.blog-share-section {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.blog-share-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.blog-share-buttons {
  display: flex;
  gap: 8px;
}

.blog-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  position: relative;
}

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

.blog-share-facebook:hover { color: #1877f2; border-color: #1877f2; }
.blog-share-twitter:hover { color: #1da1f2; border-color: #1da1f2; }
.blog-share-linkedin:hover { color: #0a66c2; border-color: #0a66c2; }
.blog-share-whatsapp:hover { color: #25d366; border-color: #25d366; }
.blog-share-telegram:hover { color: #0088cc; border-color: #0088cc; }
.blog-share-copy:hover { color: var(--primary); border-color: var(--primary); }

.blog-share-copy .copy-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-heading);
  color: var(--bg);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.blog-share-copy.copied .copy-tooltip {
  display: block;
}

/* ==========================================================================
   AUTHOR BOX
   ========================================================================== */

.blog-author-box {
  display: flex;
  gap: 24px;
  padding: 28px;
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.blog-author-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border);
}

.blog-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-author-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.blog-author-name {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.blog-author-bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-author-socials {
  display: flex;
  gap: 8px;
}

.blog-author-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.2s;
}

.blog-author-socials a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ==========================================================================
   COMMENTS
   ========================================================================== */

.blog-comments-section {
  margin-top: 32px;
}

.blog-comments-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: var(--text-heading);
}

.blog-comments-title svg {
  color: var(--primary);
}

.blog-comments-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Comment Form */
.blog-comment-form-wrap {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.blog-comment-form-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-comment-form-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-comment-form-avatar-sm {
  width: 32px;
  height: 32px;
}

.blog-comment-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-comment-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--text-heading);
  font-size: 0.88rem;
  resize: vertical;
  min-height: 80px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.blog-comment-textarea:focus {
  border-color: var(--primary);
}

.blog-comment-textarea-sm {
  min-height: 60px;
}

.blog-comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.blog-comment-char-count {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-comment-login-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.blog-comment-login-notice a {
  color: var(--primary);
  font-weight: 600;
}

/* Comment Items */
.blog-comments-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.blog-comment-item {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

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

.blog-comment-reply {
  padding-left: 24px;
}

.blog-comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.blog-comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.blog-comment-author {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
}

.blog-comment-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-comment-body {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 8px;
}

.blog-comment-actions {
  display: flex;
  gap: 10px;
}

.blog-comment-reply-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.blog-comment-reply-btn:hover {
  color: var(--primary);
}

.blog-reply-form-wrap {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  background: var(--bg);
  border-radius: var(--radius-xs);
}

.blog-comment-replies {
  margin-top: 12px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
}

.blog-comments-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.blog-comments-empty svg {
  margin-bottom: 12px;
  opacity: 0.5;
}

.blog-comments-empty p {
  font-size: 0.9rem;
}

/* ==========================================================================
   RECENT POSTS BOTTOM SLIDE
   ========================================================================== */

.blog-bottom-slide {
  padding: 48px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.blog-bottom-slide-header {
  margin-bottom: 24px;
}

.blog-bottom-slide-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
}

.blog-bottom-slide-header svg {
  color: var(--primary);
}

.blog-recent-slide-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s;
}

.blog-recent-slide-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.blog-recent-slide-card.current-post {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.blog-recent-slide-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.blog-recent-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.blog-recent-slide-card:hover .blog-recent-slide-img img {
  transform: scale(1.05);
}

.blog-recent-slide-body {
  padding: 14px;
}

.blog-recent-slide-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.blog-recent-slide-body h5 {
  font-size: 0.9rem;
  margin-bottom: 6px;
  line-height: 1.3;
  color: var(--text-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-recent-slide-views {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ---- Sidebar Related ---- */
.blog-sidebar-related {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: background 0.2s;
}

.blog-related-item:hover {
  background: var(--surface-hover);
}

.blog-related-img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-xs);
  overflow: hidden;
  flex-shrink: 0;
}

.blog-related-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-related-info h6 {
  font-size: 0.82rem;
  line-height: 1.3;
  margin-bottom: 3px;
  color: var(--text-heading);
}

.blog-related-info span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ---- Blog Single Responsive ---- */
@media (max-width: 768px) {
  .blog-single-body {
    padding: 20px;
  }

  .blog-single-nav {
    flex-direction: column;
  }

  .blog-single-nav-next {
    text-align: left;
    align-items: flex-start;
  }

  .blog-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .blog-author-socials {
    justify-content: center;
  }

  .blog-comment-reply {
    padding-left: 12px;
  }
}


/*editor*/
.ql-code-block-container {
    position: relative;
    background-color: #23241f;
    color: #f8f8f2;
    overflow: visible;
    margin-bottom: 5px;
    margin-top: 5px;
    padding: 5px 10px;
}