/* ==========================================================================
   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);
}

/* ---- 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: 0;
  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: 0;
  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;
}