/* CodeZoic Public Site Styles — Dark & Light Theme Support
   ========================================================= */

/* --- Shared Tokens --- */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --primary-rgb: 99, 102, 241;
    --accent: #06b6d4;
    --accent-rgb: 6, 182, 212;
    --success: #10b981;
    --success-rgb: 16, 185, 129;
    --warning: #f59e0b;
    --warning-rgb: 245, 158, 11;
    --danger: #ef4444;
    --danger-rgb: 239, 68, 68;
    --radius: 12px;
    --radius-lg: 16px;
    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
    --transition: all 0.3s ease;
    --font: 'Inter', sans-serif;
}

/* --- Dark Theme (Default) --- */
:root,
[data-theme="dark"] {
    --bg-base: #0a0a1a;
    --bg-card: #111127;
    --bg-card-hover: #181840;
    --bg-surface: #1a1a3e;
    --bg-navbar: rgba(10, 10, 26, 0.85);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-heading: #f1f5f9;
    --border: rgba(99, 102, 241, 0.15);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 12px 40px rgba(99, 102, 241, 0.12);
    --code-bg: var(--bg-surface);
}

/* --- Light Theme --- */
[data-theme="light"] {
    --bg-base: #f4f6fb;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2ff;
    --bg-surface: #eef0f8;
    --bg-navbar: rgba(255, 255, 255, 0.88);
    --text: #334155;
    --text-muted: #64748b;
    --text-heading: #1e293b;
    --border: rgba(99, 102, 241, 0.12);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 8px 28px rgba(99, 102, 241, 0.08);
    --code-bg: #e8eaf0;
}

/* Light theme overrides for specific elements */
[data-theme="light"] .site-navbar {
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
[data-theme="light"] .navbar-menu a:hover,
[data-theme="light"] .navbar-menu a.active {
    background: var(--bg-surface);
}
[data-theme="light"] .hero-section {
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
}
[data-theme="light"] .project-card:hover {
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.1);
}
[data-theme="light"] .filter-bar .form-control,
[data-theme="light"] .filter-bar .form-select {
    background: #fff;
}
[data-theme="light"] .filter-bar .form-select option {
    background: #fff; color: var(--text);
}
[data-theme="light"] .footer-social a {
    background: #e8eaf0;
}
[data-theme="light"] .tag {
    background: rgba(99, 102, 241, 0.06);
}
[data-theme="light"] .project-detail-badge {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary);
}

/* Logo theme switching */
.brand-logo { transition: opacity 0.3s ease; }
.brand-logo-light { display: none; }
[data-theme="light"] .brand-logo-dark { display: none; }
[data-theme="light"] .brand-logo-light { display: inline-block; }

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

body {
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

a { color: var(--primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary); }

/* ======================== */
/* Navbar                   */
/* ======================== */
.site-navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--bg-navbar);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0 0;
    transition: background-color 0.3s ease;
}
.site-navbar .container { max-width: 1280px; }
.navbar-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 72px; gap: 32px;
}
.navbar-brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 800; font-size: 22px; color: var(--text-heading);
}
.navbar-brand:hover { color: var(--text-heading); }
.brand-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--gradient); display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 18px; color: #fff;
}
.brand-text { letter-spacing: -0.5px; }
.navbar-menu {
    list-style: none; display: flex; gap: 8px; margin: 0; padding: 0;
}
.navbar-menu a {
    padding: 8px 16px; border-radius: var(--radius);
    font-weight: 500; font-size: 14px; color: var(--text-muted);
    transition: var(--transition);
}
.navbar-menu a:hover, .navbar-menu a.active {
    color: var(--text-heading); background: var(--bg-card);
}
.navbar-collapse { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 32px; }
.navbar-actions { display: flex; align-items: center; gap: 12px; }
.btn-site-primary {
    padding: 10px 24px; border-radius: var(--radius); border: none;
    background: var(--gradient); color: #fff; font-weight: 600; font-size: 14px;
    cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-site-primary:hover { opacity: 0.9; color: #fff; transform: translateY(-1px); }
.btn-site-outline {
    padding: 10px 24px; border-radius: var(--radius);
    border: 1px solid var(--border); background: transparent;
    color: var(--text); font-weight: 500; font-size: 14px;
    cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-site-outline:hover { background: var(--bg-card); color: var(--text-heading); border-color: var(--primary); }
.btn-site-ghost {
    padding: 10px 16px; background: transparent; border: none;
    color: var(--text-muted); font-weight: 500; font-size: 14px; cursor: pointer;
}
.btn-site-ghost:hover { color: var(--text-heading); }
.navbar-toggle { display: none; background: none; border: none; color: var(--text); font-size: 28px; cursor: pointer; padding: 4px; }

/* ======================== */
/* Theme Toggle Button      */
/* ======================== */
.site-theme-toggle {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--bg-surface);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 17px; color: var(--text-muted); transition: var(--transition);
    position: relative; overflow: hidden; flex-shrink: 0;
}
.site-theme-toggle:hover {
    border-color: var(--primary); color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}
.site-theme-icon-dark,
.site-theme-icon-light {
    position: absolute; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
[data-theme="dark"] .site-theme-icon-dark { opacity: 1; transform: scale(1) rotate(0); }
[data-theme="dark"] .site-theme-icon-light { opacity: 0; transform: scale(0) rotate(90deg); }
[data-theme="light"] .site-theme-icon-dark { opacity: 0; transform: scale(0) rotate(-90deg); }
[data-theme="light"] .site-theme-icon-light { opacity: 1; transform: scale(1) rotate(0); }

/* ======================== */
/* Hero — Premium Animated  */
/* ======================== */
.hero-premium {
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

/* Animated Background Orbs */
.hero-bg-effects {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
}
.hero-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.5;
    animation: floatOrb 15s ease-in-out infinite;
}
.hero-orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
    top: -10%; left: -5%;
    animation-duration: 18s;
}
.hero-orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3), transparent 70%);
    bottom: -15%; right: -5%;
    animation-duration: 22s;
    animation-delay: -5s;
}
.hero-orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25), transparent 70%);
    top: 30%; left: 55%;
    animation-duration: 20s;
    animation-delay: -10s;
}
@keyframes floatOrb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -40px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(15px, 30px) scale(1.02); }
}

/* ── Floating Tech Elements ── */
.hero-float {
    position: absolute; pointer-events: none; z-index: 1;
}

/* Code snippet cards */
.hero-float-code {
    font-family: 'Fira Code', 'SF Mono', 'Consolas', monospace;
    font-size: 13px; font-weight: 500; white-space: nowrap;
    padding: 8px 16px; border-radius: 10px;
    background: rgba(30, 30, 60, 0.45);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: heroDrift 20s ease-in-out infinite;
}
.hero-float-code .hf-kw  { color: rgba(168, 130, 255, 0.8); }
.hero-float-code .hf-fn  { color: rgba(100, 210, 255, 0.8); }
.hero-float-code .hf-str { color: rgba(130, 230, 150, 0.8); }
.hero-float-code .hf-cm  { color: rgba(255, 255, 255, 0.35); font-style: italic; }

/* Large tech symbols: </>, { }, λ */
.hero-float-symbol {
    font-family: 'Fira Code', 'SF Mono', 'Consolas', monospace;
    font-weight: 800; font-size: 38px;
    color: rgba(var(--primary-rgb), 0.12);
    text-shadow: 0 0 40px rgba(var(--primary-rgb), 0.08);
    animation: heroDrift 18s ease-in-out infinite;
}

/* Rotating rings */
.hero-float-ring {
    width: 60px; height: 60px; border-radius: 50%;
    border: 2px solid rgba(var(--primary-rgb), 0.12);
    animation: heroSpinDrift 28s linear infinite;
}

/* Positions & delays — spread across the full hero area */
.hero-float-1  { top: 10%; left: 3%;   animation-delay: 0s; }
.hero-float-2  { top: 22%; right: 2%;  animation-delay: -4s; }
.hero-float-3  { bottom: 18%; left: 2%;  animation-delay: -7s; }
.hero-float-4  { top: 6%;  left: 30%;  animation-delay: -2s; }
.hero-float-5  { bottom: 12%; right: 1%; animation-delay: -9s; }
.hero-float-6  { top: 45%; right: 3%;  animation-delay: -5s; }
.hero-float-7  { top: 60%; left: 6%;   animation-delay: -11s; width: 50px; height: 50px; }
.hero-float-8  { top: 35%; left: 3%;     animation-delay: -3s; }
.hero-float-9  { top: 15%; right: 18%; animation-delay: -14s; width: 45px; height: 45px; }
.hero-float-10 { bottom: 8%; right: 25%; animation-delay: -6s; }

@keyframes heroDrift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(18px, -30px) rotate(4deg); }
    50%      { transform: translate(-12px, 18px) rotate(-3deg); }
    75%      { transform: translate(22px, 12px) rotate(2deg); }
}
@keyframes heroSpinDrift {
    0%   { transform: translate(0, 0) rotate(0deg); }
    50%  { transform: translate(15px, -20px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* ── Light theme: make them properly visible ── */
[data-theme="light"] .hero-float-code {
    background: rgba(240, 242, 255, 0.7);
    border-color: rgba(var(--primary-rgb), 0.18);
    color: rgba(60, 60, 90, 0.6);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}
[data-theme="light"] .hero-float-code .hf-kw  { color: rgba(120, 80, 220, 0.8); }
[data-theme="light"] .hero-float-code .hf-fn  { color: rgba(30, 140, 200, 0.8); }
[data-theme="light"] .hero-float-code .hf-str { color: rgba(40, 160, 80, 0.8); }
[data-theme="light"] .hero-float-code .hf-cm  { color: rgba(60, 60, 90, 0.35); }
[data-theme="light"] .hero-float-symbol {
    color: rgba(var(--primary-rgb), 0.15);
    text-shadow: 0 0 30px rgba(var(--primary-rgb), 0.06);
}
[data-theme="light"] .hero-float-ring {
    border-color: rgba(var(--primary-rgb), 0.13);
}

/* Grid Overlay */
.hero-grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
[data-theme="light"] .hero-grid-overlay {
    background-image:
        linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,.04) 1px, transparent 1px);
}

/* Badge */
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary-light); font-size: 13px; font-weight: 600;
    padding: 8px 20px; border-radius: 50px;
    margin-bottom: 32px; letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
}
.hero-badge i { font-size: 14px; color: #facc15; }
[data-theme="light"] .hero-badge {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

/* Premium Title */
.hero-premium-title {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900; line-height: 1.08;
    color: var(--text-heading);
    margin-bottom: 24px;
    letter-spacing: -2px;
}
.hero-gradient-text {
    background: linear-gradient(135deg, #6366f1, #06b6d4, #a855f7, #6366f1);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerGradient 6s ease infinite;
}
@keyframes shimmerGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Premium Subtitle */
.hero-premium-subtitle {
    font-size: 18px; color: var(--text-muted);
    max-width: 620px; margin: 0 auto 40px;
    line-height: 1.75;
}

/* Hero Action Buttons */
.hero-premium-actions {
    display: flex; justify-content: center; gap: 16px;
    flex-wrap: wrap; margin-bottom: 60px;
}
.btn-hero-primary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; font-weight: 700; font-size: 15px;
    border-radius: 12px; border: none;
    text-decoration: none;
    position: relative; overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}
.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
    color: #fff;
}
/* Shine sweep animation */
.btn-shine {
    position: absolute; top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: btnShine 3s ease-in-out infinite;
}
@keyframes btnShine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.btn-hero-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 32px;
    background: var(--bg-surface);
    color: var(--text); font-weight: 700; font-size: 15px;
    border-radius: 12px; border: 1px solid var(--border);
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-hero-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-2px);
    background: rgba(99, 102, 241, 0.06);
}

/* Hero Stats Row */
.hero-premium-stats {
    display: inline-flex; align-items: center; gap: 0;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 16px; padding: 0;
    backdrop-filter: blur(16px);
    overflow: hidden;
}
[data-theme="light"] .hero-premium-stats {
    background: rgba(255,255,255,.7);
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
}
.hero-stat-item {
    display: flex; flex-direction: column;
    align-items: center; padding: 20px 32px;
}
.hero-stat-value {
    font-size: 24px; font-weight: 800;
    color: var(--text-heading);
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stat-label {
    font-size: 13px; color: var(--text-muted);
    font-weight: 500; margin-top: 2px;
}
.hero-stat-divider {
    width: 1px; height: 40px;
    background: var(--border);
}

/* Fade-up entrance animation */
.animate-fade-up {
    opacity: 0; transform: translateY(30px);
    animation: fadeUpIn 0.7s ease forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }
.delay-5 { animation-delay: 0.75s; }
@keyframes fadeUpIn {
    to { opacity: 1; transform: translateY(0); }
}

/* ======================== */
/* Hero Search Bar          */
/* ======================== */
.hero-search-wrap {
    max-width: 600px; margin: 0 auto 28px;
    position: relative; z-index: 2;
}
.hero-search-form { width: 100%; }
.hero-search-inner {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 6px 6px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 0 0 1px rgba(var(--primary-rgb), 0.04);
}
.hero-search-inner:focus-within {
    border-color: rgba(var(--primary-rgb), 0.5);
    box-shadow:
        0 8px 32px rgba(0,0,0,0.12),
        0 0 0 3px rgba(var(--primary-rgb), 0.12),
        0 0 60px rgba(var(--primary-rgb), 0.06);
    transform: translateY(-2px);
}
.hero-search-icon {
    font-size: 18px; color: var(--text-muted); flex-shrink: 0;
    transition: color 0.2s ease;
}
.hero-search-inner:focus-within .hero-search-icon {
    color: var(--primary);
}
.hero-search-input {
    flex: 1; border: none; background: transparent;
    color: var(--text); font-size: 15px; font-weight: 500;
    outline: none; padding: 10px 0;
    font-family: var(--font);
}
.hero-search-input::placeholder {
    color: var(--text-muted); font-weight: 400;
}
.hero-search-kbd {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 6px;
    background: var(--bg-surface); border: 1px solid var(--border);
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    font-family: var(--font); flex-shrink: 0;
    transition: opacity 0.2s ease;
}
.hero-search-inner:focus-within .hero-search-kbd {
    opacity: 0; width: 0; overflow: hidden; border: none; padding: 0; margin: 0;
}
.hero-search-btn {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}
.hero-search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}
.hero-search-btn:active { transform: scale(0.97); }

/* Popular Tags */
.hero-search-tags {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; margin-top: 14px; flex-wrap: wrap;
}
.hero-search-tags-label {
    font-size: 12px; font-weight: 600; color: var(--text-muted);
}
.hero-search-tag {
    padding: 4px 12px; border-radius: 20px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    font-size: 12px; font-weight: 500; color: var(--text-muted);
    transition: all 0.2s ease; cursor: pointer;
}
.hero-search-tag:hover {
    background: rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.25);
    color: var(--primary-light);
    transform: translateY(-1px);
}

/* Light theme */
[data-theme="light"] .hero-search-inner {
    box-shadow: 0 4px 24px rgba(0,0,0,0.04), 0 0 0 1px rgba(var(--primary-rgb), 0.06);
}
[data-theme="light"] .hero-search-inner:focus-within {
    box-shadow:
        0 8px 32px rgba(0,0,0,0.06),
        0 0 0 3px rgba(var(--primary-rgb), 0.1),
        0 0 40px rgba(var(--primary-rgb), 0.04);
}

@media (max-width: 576px) {
    .hero-search-wrap { max-width: 100%; }
    .hero-search-inner { padding: 4px 4px 4px 14px; border-radius: 12px; }
    .hero-search-input { font-size: 14px; }
    .hero-search-kbd { display: none; }
    .hero-search-btn { width: 38px; height: 38px; border-radius: 10px; font-size: 16px; }
    .hero-float { display: none; }
}

/* ======================== */
/* Sections — Premium       */
/* ======================== */
.site-section {
    padding: 80px 0;
}
.section-header-premium {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 48px; flex-wrap: wrap; gap: 16px;
}
.section-header-premium.text-center {
    flex-direction: column; align-items: center; text-align: center;
}
.section-label {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--primary-light);
    margin-bottom: 8px;
}
.section-label i { font-size: 11px; }
.section-title {
    font-size: 32px; font-weight: 800; color: var(--text-heading);
    letter-spacing: -0.5px; line-height: 1.2;
}
.section-subtitle {
    color: var(--text-muted); margin-top: 6px; font-size: 15px;
    max-width: 480px;
}
.section-header-premium.text-center .section-subtitle {
    margin-left: auto; margin-right: auto;
}

/* Old section-header fallback for other pages */
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 40px; flex-wrap: wrap; gap: 16px;
}

/* ======================== */
/* Trust / Features Cards   */
/* ======================== */
.trust-section {
    background: rgba(99, 102, 241, 0.03);
}
[data-theme="light"] .trust-section {
    background: rgba(99, 102, 241, 0.03);
}
.trust-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}
.trust-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.12);
}
.trust-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.1));
    color: var(--primary-light);
    margin-bottom: 20px;
}
.trust-card h4 {
    font-size: 18px; font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 10px;
}
.trust-card p {
    font-size: 14px; color: var(--text-muted);
    line-height: 1.65; margin: 0;
}

/* ======================== */
/* CTA Section              */
/* ======================== */
.cta-section {
    padding: 40px 0 100px;
}
.cta-card {
    position: relative;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(6, 182, 212, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 24px;
    padding: 72px 40px;
    text-align: center;
    overflow: hidden;
}
.cta-glow {
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(60px);
    pointer-events: none;
}
.cta-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800; color: var(--text-heading);
    margin-bottom: 12px; letter-spacing: -0.5px;
    position: relative;
}
.cta-card p {
    font-size: 16px; color: var(--text-muted);
    max-width: 500px; margin: 0 auto 32px;
    position: relative;
}
.cta-actions {
    display: flex; justify-content: center; gap: 16px;
    flex-wrap: wrap; position: relative;
}

/* Hero responsive */
@media (max-width: 768px) {
    .hero-premium { padding: 130px 0 60px; min-height: auto; }
    .hero-premium-title { letter-spacing: -1px; }
    .hero-premium-stats { flex-wrap: wrap; border-radius: 12px; }
    .hero-stat-item { padding: 14px 20px; }
    .hero-stat-divider { display: none; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
    .cta-card { padding: 48px 24px; }
}

/* ======================== */
/* Project Card — Premium   */
/* ======================== */
.project-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); height: 100%;
    display: flex; flex-direction: column; position: relative;
}
.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(var(--primary-rgb), 0.1),
        0 0 30px rgba(var(--primary-rgb), 0.08);
}

/* — Visual / Image Area — */
.project-card-visual {
    position: relative; overflow: hidden;
}
.project-card-img {
    width: 100%; height: 200px; object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover .project-card-img {
    transform: scale(1.06);
}
.project-card-img-placeholder {
    width: 100%; height: 200px;
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 48px; color: var(--text-muted);
}

/* Overlay on hover */
.project-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.7) 100%);
    display: flex; align-items: flex-end; justify-content: center;
    padding-bottom: 16px;
    opacity: 0; transition: opacity 0.35s ease;
}
.project-card:hover .project-card-overlay { opacity: 1; }
.card-preview-btn {
    padding: 6px 16px; border-radius: 20px;
    background: rgba(255, 255, 255, 0.18); backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff; font-size: 12px; font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex; align-items: center; gap: 5px;
    transform: translateY(8px); transition: transform 0.3s ease;
}
.project-card:hover .card-preview-btn { transform: translateY(0); }

/* Discount Badge */
.card-discount-badge {
    position: absolute; top: 10px; right: 10px;
    background: var(--danger); color: #fff;
    font-size: 11px; font-weight: 700; padding: 3px 8px;
    border-radius: 6px; letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(var(--danger-rgb), 0.4);
    z-index: 2;
}

/* Category Chip */
.card-category-chip {
    position: absolute; top: 10px; left: 10px;
    background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff; font-size: 10px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.6px;
    padding: 4px 10px; border-radius: 6px; z-index: 2;
}

/* — Body — */
.project-card-body {
    padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column;
}
.project-card-title {
    font-size: 15px; font-weight: 700; color: var(--text-heading);
    margin-bottom: 6px; line-height: 1.35;
}
.project-card-title a { color: inherit; }
.project-card-title a:hover { color: var(--primary-light); }
.project-card-desc {
    font-size: 13px; color: var(--text-muted); margin-bottom: 12px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.5;
}

/* Tech Stack Pills */
.project-card-stacks {
    display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 14px;
}
.card-stack-pill {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 500;
    background: var(--bg-surface); color: var(--text-muted);
    border: 1px solid var(--border);
}
.card-stack-pill i { font-size: 11px; }

/* Footer */
.project-card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 12px; border-top: 1px solid var(--border);
    margin-top: auto;
}
.project-card-pricing {
    display: flex; align-items: baseline; gap: 6px;
}
.card-price {
    font-size: 18px; font-weight: 800; color: var(--success);
}
.card-price-original {
    font-size: 13px; color: var(--text-muted); text-decoration: line-through;
    font-weight: 400;
}
.card-price-free {
    font-size: 16px; font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.project-card-meta {
    display: flex; gap: 12px; font-size: 13px; color: var(--text-muted);
}

/* ======================== */
/* Projects Listing Layout  */
/* ======================== */
.projects-search-bar {
    margin-bottom: 16px;
}
.search-input-wrap {
    position: relative; display: flex; align-items: center;
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px;
}
.search-input-wrap i {
    position: absolute; left: 16px; color: var(--text-muted); font-size: 18px;
}
.projects-search-input {
    width: 100%; padding: 14px 16px 14px 46px; border: none; background: transparent;
    color: var(--text); font-size: 15px; outline: none;
}
.projects-results-meta {
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
    font-size: 14px; color: var(--text-muted);
}
.clear-filters-btn {
    background: none; border: none; color: var(--primary); cursor: pointer;
    font-size: 13px; display: flex; align-items: center; gap: 4px;
}
.clear-filters-btn:hover { text-decoration: underline; }

.projects-layout {
    display: grid; grid-template-columns: 240px 1fr; gap: 28px;
}

/* ── Sidebar ── */
.projects-sidebar {
    position: sticky; top: 90px; align-self: start;
}
.filter-section {
    margin-bottom: 24px; padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.filter-section:last-child { border-bottom: none; }
.filter-title {
    font-size: 14px; font-weight: 700; color: var(--text-heading);
    margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.filter-title i { font-size: 16px; color: var(--text-muted); }
.filter-list {
    list-style: none; padding: 0; margin: 0;
}
.filter-list li a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 10px; border-radius: 6px; font-size: 13px;
    color: var(--text-muted); transition: var(--transition); border-left: 3px solid transparent;
}
.filter-list li a:hover { background: rgba(var(--primary-rgb), 0.06); color: var(--text); }
.filter-list li a.active {
    background: rgba(var(--primary-rgb), 0.1); color: var(--primary); font-weight: 600;
    border-left-color: var(--primary);
}
.filter-count {
    font-size: 12px; color: var(--text-muted); opacity: 0.7;
}

.price-range-inputs {
    display: flex; align-items: center; gap: 8px;
}
.price-input {
    width: 100%; padding: 8px 10px; border: 1px solid var(--border);
    background: var(--bg-surface); border-radius: 6px; color: var(--text);
    font-size: 13px; outline: none;
}
.price-input:focus { border-color: var(--primary); }
.price-separator { color: var(--text-muted); font-size: 14px; }

.filter-radios { display: flex; gap: 14px; flex-wrap: wrap; }
.filter-radio {
    display: flex; align-items: center; gap: 6px; font-size: 13px;
    color: var(--text-muted); cursor: pointer;
}
.filter-radio input {
    accent-color: var(--primary); width: 15px; height: 15px;
    margin: 0; cursor: pointer;
}
.filter-radio:has(input:checked) { color: var(--text); font-weight: 500; }

.filter-toggle {
    display: flex; align-items: center; gap: 10px; font-size: 13px;
    color: var(--text-muted); cursor: pointer;
    padding: 8px 12px; border-radius: 8px; background: rgba(var(--primary-rgb), 0.04);
    border: 1px solid var(--border); transition: var(--transition);
}
.filter-toggle:has(input:checked) {
    background: rgba(var(--primary-rgb), 0.1); border-color: var(--primary);
    color: var(--text);
}
.filter-toggle input { accent-color: var(--primary); width: 16px; height: 16px; cursor: pointer; }

/* ── Top Bar ── */
.projects-topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.view-toggles { display: flex; gap: 4px; }
.view-toggle-btn {
    padding: 8px 10px; border: 1px solid var(--border); background: transparent;
    border-radius: 6px; color: var(--text-muted); cursor: pointer;
    transition: var(--transition); font-size: 18px; line-height: 1;
}
.view-toggle-btn.active, .view-toggle-btn:hover {
    background: var(--bg-surface); color: var(--text-heading); border-color: var(--primary);
}
.sort-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-pill {
    padding: 7px 16px; border-radius: 20px; border: 1px solid var(--border);
    background: transparent; color: var(--text-muted); font-size: 13px;
    font-weight: 500; cursor: pointer; transition: var(--transition);
}
.sort-pill.active {
    background: var(--primary); color: #fff; border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.35);
}
.sort-pill:hover:not(.active) {
    background: rgba(var(--primary-rgb), 0.08); color: var(--text); border-color: rgba(var(--primary-rgb), 0.3);
}

/* ── List Card ── */
.projects-list { display: flex; flex-direction: column; gap: 16px; }
.project-list-card {
    display: grid; grid-template-columns: 320px 1fr auto;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 8px; overflow: hidden;
    transition: var(--transition);
}
.project-list-card:hover { border-color: var(--primary); box-shadow: var(--shadow-card); }
.project-list-thumb img {
    width: 320px; height: 100%; object-fit: cover; display: block;
}
.project-list-info {
    padding: 16px 20px; display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.project-list-title {
    font-size: 16px; font-weight: 700; margin: 0;
}
.project-list-title a { color: var(--text-heading); }
.project-list-title a:hover { color: var(--primary); }
.project-list-author {
    font-size: 12px; color: var(--text-muted); margin: 0;
}
.project-list-desc {
    font-size: 13px; color: var(--text-muted); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.project-list-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.project-list-tag {
    padding: 2px 8px; background: var(--bg-surface); border-radius: 4px;
    font-size: 11px; color: var(--text-muted);
}
.project-list-actions {
    padding: 14px 20px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 4px;
    border-left: 1px solid var(--border); min-width: 140px;
}
.project-list-price-block { text-align: center; }
.project-list-price {
    font-size: 18px; font-weight: 800; color: var(--success);
}
.project-list-price.free { color: var(--accent); }
.project-list-original {
    font-size: 12px; color: var(--text-muted); text-decoration: line-through; display: block;
}
.project-list-stats {
    font-size: 11px; color: var(--text-muted);
}
.project-list-btns { margin-top: 4px; }
.btn-sm { padding: 5px 12px; font-size: 12px; }


/* ======================== */
/* Categories Page — Modern */
/* ======================== */

/* -- Page Header -- */
.cat-page-header {
    position: relative; margin-bottom: 36px; padding: 48px 40px;
    border-radius: var(--radius-lg); overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--border);
}
.cat-page-header-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99,102,241,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(6,182,212,0.08) 0%, transparent 60%);
}
.cat-page-header-content {
    position: relative; text-align: center; z-index: 1;
}
.cat-page-header-icon {
    width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 18px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: 26px; color: #fff;
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}
.cat-page-title {
    font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900;
    color: var(--text-heading); letter-spacing: -0.5px; margin-bottom: 8px;
}
.cat-page-subtitle {
    font-size: 15px; color: var(--text-muted); max-width: 520px;
    margin: 0 auto 20px; line-height: 1.6;
}
.cat-page-stats {
    display: inline-flex; align-items: center; gap: 16px;
    padding: 10px 24px; border-radius: 30px;
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}
.cat-page-stat {
    font-size: 13px; font-weight: 600; color: var(--text-muted);
    display: flex; align-items: center; gap: 6px;
}
.cat-page-stat i { color: var(--primary); font-size: 15px; }
.cat-page-stat-divider {
    width: 1px; height: 16px; background: var(--border); flex-shrink: 0;
}

@media (max-width: 576px) {
    .cat-page-header { padding: 32px 20px; }
    .cat-page-stats { flex-direction: column; gap: 8px; padding: 10px 20px; }
    .cat-page-stat-divider { width: 40px; height: 1px; }
}

/* -- Card Grid -- */
.cat-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 992px)  { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px)  { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .cat-grid { grid-template-columns: 1fr; } }

/* -- Category Card -- */
.cat-card-link { text-decoration: none !important; display: block; height: 100%; }
.cat-card {
    position: relative; height: 100%;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 24px 20px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden; cursor: pointer;
}
.cat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(var(--primary-rgb), 0.1),
        0 0 40px rgba(var(--primary-rgb), 0.06);
}

/* Glow effect */
.cat-card-glow {
    position: absolute; top: -30px; right: -30px;
    width: 100px; height: 100px; border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), 0.1) 0%, transparent 70%);
    pointer-events: none; transition: all 0.4s ease;
    opacity: 0;
}
.cat-card:hover .cat-card-glow {
    opacity: 1; width: 180px; height: 180px; top: -60px; right: -60px;
}

/* Icon / Image area */
.cat-card-visual { margin-bottom: 18px; }
.cat-card-icon-wrap {
    width: 64px; height: 64px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--primary-light);
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(6,182,212,0.08));
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(99,102,241,0.08);
}
.cat-card:hover .cat-card-icon-wrap {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(99,102,241,0.18);
    background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(6,182,212,0.12));
}
.cat-card-img {
    width: 64px; height: 64px; border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.cat-card:hover .cat-card-img { transform: scale(1.1); }

/* Content */
.cat-card-content { flex: 1; margin-bottom: 14px; }
.cat-card-name {
    font-size: 15px; font-weight: 700; color: var(--text-heading);
    margin: 0 0 4px; line-height: 1.3;
    transition: color 0.2s ease;
}
.cat-card:hover .cat-card-name { color: var(--primary-light); }
.cat-card-desc {
    font-size: 12px; color: var(--text-muted); line-height: 1.5;
    margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Footer meta */
.cat-card-footer {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    width: 100%; padding-top: 14px;
    border-top: 1px solid var(--border);
}
.cat-card-meta-item {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 500; color: var(--text-muted);
    padding: 3px 10px; border-radius: 6px;
    background: rgba(var(--primary-rgb), 0.04);
}
.cat-card-meta-item i { font-size: 12px; color: var(--primary); opacity: 0.7; }

/* Hover Arrow */
.cat-card-arrow {
    position: absolute; bottom: 16px; right: 16px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--primary);
    opacity: 0; transform: translateX(-8px);
    transition: all 0.3s ease;
}
.cat-card:hover .cat-card-arrow {
    opacity: 1; transform: translateX(0);
}

/* Empty State */
.cat-empty-state {
    grid-column: 1 / -1; text-align: center; padding: 80px 24px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.cat-empty-icon {
    width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 20px;
    background: rgba(var(--primary-rgb), 0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: var(--primary); opacity: 0.5;
}
.cat-empty-state h4 {
    font-size: 18px; font-weight: 700; color: var(--text-heading); margin-bottom: 8px;
}
.cat-empty-state p {
    font-size: 14px; color: var(--text-muted); margin: 0;
}

/* Light theme overrides */
[data-theme="light"] .cat-card:hover {
    box-shadow: 0 16px 48px rgba(99,102,241,0.1), 0 0 0 1px rgba(99,102,241,0.08);
}
[data-theme="light"] .cat-card-icon-wrap {
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(6,182,212,0.06));
}

/* ======================== */
/* Project Detail           */
/* ======================== */
.project-detail { padding-top: 20px; }
.project-detail-hero {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px;
}
.project-detail-hero img { width: 100%; display: block; }
.project-detail-content { padding: 32px; }
.project-detail-badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px;
    background: rgba(99, 102, 241, 0.15); color: var(--primary-light);
    font-size: 12px; font-weight: 600; text-transform: uppercase; margin-bottom: 12px;
}
.project-detail-title {
    font-size: 32px; font-weight: 900; color: var(--text-heading);
    letter-spacing: -0.5px; margin-bottom: 12px;
}
.project-detail-meta {
    display: flex; gap: 24px; color: var(--text-muted); font-size: 14px;
    padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 24px;
}
.project-detail-sidebar .dm-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; }

/* — Purchase Card — */
.purchase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(var(--primary-rgb), 0.06);
    transition: box-shadow 0.3s ease;
}
.purchase-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(var(--primary-rgb), 0.12);
}

/* Discount Banner */
.purchase-discount-banner {
    background: linear-gradient(135deg, var(--danger), #ff6b6b);
    color: #fff; padding: 10px 20px;
    font-size: 13px; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
    letter-spacing: 0.2px;
}
.purchase-discount-banner i {
    font-size: 15px;
    animation: pulse-icon 1.5s ease-in-out infinite;
}
@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.purchase-card-inner { padding: 24px; }

/* Price Section */
.purchase-price-section { margin-bottom: 20px; }
.purchase-price-row {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.purchase-price {
    font-size: 38px; font-weight: 900; color: var(--success);
    line-height: 1.1; letter-spacing: -1px;
}
.purchase-price-original {
    font-size: 18px; color: var(--text-muted);
    text-decoration: line-through; font-weight: 400;
}
.purchase-discount-tag {
    background: rgba(var(--danger-rgb), 0.12); color: var(--danger);
    font-size: 12px; font-weight: 700; padding: 3px 8px;
    border-radius: 6px; letter-spacing: 0.3px;
}
.purchase-savings {
    margin-top: 6px; font-size: 13px; color: var(--success);
    padding: 6px 12px; border-radius: 8px;
    background: rgba(var(--success-rgb), 0.08);
    display: inline-block;
}
.purchase-savings strong { font-weight: 700; }
.purchase-price-free {
    font-size: 32px; font-weight: 900;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex; align-items: center; gap: 10px;
}
.purchase-price-free i {
    font-size: 28px;
    -webkit-text-fill-color: var(--accent);
}

/* Action Buttons */
.purchase-actions {
    display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px;
}

/* Free Download Button */
.free-download-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none; width: 100%; padding: 14px 20px;
    border-radius: 12px; color: #fff;
    font-size: 15px; font-weight: 700;
    cursor: pointer; display: flex;
    align-items: center; justify-content: center; gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.free-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}
.free-download-btn:disabled { opacity: 0.7; cursor: wait; }

.free-login-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    border: none; width: 100%; padding: 14px 20px;
    border-radius: 12px; color: #fff;
    font-size: 15px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    transition: all 0.25s ease;
}
.free-login-btn:hover {
    color: #fff; transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Tip Module */
.tip-card {
    margin-top: 16px; padding: 20px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139,92,246,0.06), rgba(236,72,153,0.06));
    border: 1.5px solid rgba(139,92,246,0.12);
    transition: all 0.3s ease;
}
.tip-card:hover { border-color: rgba(139,92,246,0.25); }

.tip-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px;
}
.tip-header-icon {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tip-header-icon i { color: #fff; font-size: 16px; }
.tip-header-text h4 {
    font-size: 14px; font-weight: 700; margin: 0;
    color: var(--text-heading);
}
.tip-header-text p {
    font-size: 12px; color: var(--text-muted);
    margin: 2px 0 0;
}

/* Tip Preset Grid */
.tip-presets {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 8px; margin-bottom: 12px;
}
.tip-preset-btn {
    padding: 11px 0; border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg-card); color: var(--text);
    font-size: 15px; font-weight: 700;
    cursor: pointer; transition: all 0.2s ease;
}
.tip-preset-btn:hover {
    border-color: rgba(139,92,246,0.4);
    color: #8b5cf6;
    background: rgba(139,92,246,0.05);
}
.tip-preset-btn.selected {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 14px rgba(139,92,246,0.35);
    transform: translateY(-1px);
}

/* Tip Custom Input Row */
.tip-input-row {
    display: flex; gap: 8px; align-items: stretch;
}
.tip-custom-wrap {
    flex: 1; position: relative;
}
.tip-custom-wrap .tip-dollar {
    position: absolute; left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); font-weight: 700; font-size: 15px;
    pointer-events: none;
}
.tip-custom-input {
    width: 100%; padding: 12px 12px 12px 30px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg-card); color: var(--text);
    font-size: 15px; font-weight: 600;
    transition: all 0.2s ease;
    outline: none;
}
.tip-custom-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}
.tip-custom-input::placeholder {
    color: var(--text-muted); font-weight: 500;
}

/* Tip Submit Button */
.tip-submit-btn {
    padding: 12px 22px; border-radius: 10px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: #fff; font-size: 14px; font-weight: 700;
    border: none; cursor: pointer;
    display: flex; align-items: center; gap: 7px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(139,92,246,0.3);
    transition: all 0.25s ease;
}
.tip-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139,92,246,0.4);
}
.tip-submit-btn.disabled {
    opacity: 0.45; pointer-events: none;
    cursor: default; transform: none;
    box-shadow: none;
}
.purchase-preview-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 12px 20px;
    border-radius: 10px; font-size: 14px; font-weight: 600;
    color: var(--text); background: var(--bg-surface);
    border: 1px solid var(--border);
    transition: all 0.25s ease; cursor: pointer;
}
.purchase-preview-btn:hover {
    background: rgba(var(--primary-rgb), 0.08);
    border-color: rgba(var(--primary-rgb), 0.3);
    color: var(--primary);
    transform: translateY(-1px);
}
.purchase-preview-btn i { font-size: 16px; }

/* Wishlist Icon Button */
.purchase-actions-row {
    display: flex; align-items: stretch; gap: 8px;
}
.purchase-wishlist-icon {
    display: flex; align-items: center; justify-content: center;
    width: 46px; min-height: 46px; border-radius: 10px; flex-shrink: 0;
    background: var(--bg-surface); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 18px; cursor: pointer;
    transition: all 0.25s ease;
}
.purchase-wishlist-icon:hover {
    border-color: #ef4444; color: #ef4444;
    background: rgba(239,68,68,0.05);
    transform: scale(1.05);
}
.purchase-wishlist-icon.wishlisted {
    border-color: #ef4444; color: #ef4444;
    background: rgba(239,68,68,0.08);
}
.purchase-wishlist-icon.wishlisted:hover {
    background: rgba(239,68,68,0.12);
}

/* Changelog Timeline */
.changelog-timeline { display: flex; flex-direction: column; gap: 0; }
.changelog-entry {
    padding: 20px 0; border-bottom: 1px solid var(--border-color);
}
.changelog-entry:last-child { border-bottom: none; }
.changelog-header {
    display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.changelog-version {
    display: inline-flex; align-items: center; padding: 3px 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px;
    letter-spacing: 0.3px;
}
.changelog-date {
    font-size: 13px; color: var(--text-muted);
}
.changelog-body {
    font-size: 14px; line-height: 1.7; color: var(--text-secondary);
    padding-left: 4px;
}

/* Trust Indicators */
.purchase-trust {
    display: flex; flex-direction: column; gap: 0;
    border-top: 1px solid var(--border); padding-top: 16px;
}
.purchase-trust-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--text-muted); padding: 6px 0;
}
.purchase-trust-item i {
    font-size: 15px; color: var(--success); flex-shrink: 0;
}

/* Tabs — Modern Pill Style */
.detail-tabs {
    display: flex; gap: 6px; margin-bottom: 28px;
    padding: 6px; border-radius: 14px;
    background: var(--bg-surface); border: 1px solid var(--border);
}
.detail-tab {
    padding: 10px 20px; font-weight: 600; font-size: 13px;
    color: var(--text-muted); cursor: pointer; border: none; background: transparent;
    border-radius: 10px; transition: all 0.25s ease;
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap;
}
.detail-tab:hover {
    color: var(--text); background: rgba(var(--primary-rgb), 0.06);
}
.detail-tab.active {
    color: #fff; background: var(--primary);
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3);
}
@media (max-width: 576px) {
    .detail-tabs { flex-wrap: nowrap; }
    .detail-tab { flex: 1; justify-content: center; padding: 8px 10px; font-size: 12px; }
    .detail-tab .tab-label { display: none; }
}

/* Tab count badge */
.tab-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 10px; font-size: 11px; font-weight: 700;
    background: rgba(var(--primary-rgb), 0.12); color: var(--primary-light);
}
.detail-tab.active .tab-count {
    background: rgba(255,255,255,0.2); color: #fff;
}

/* Screenshot Gallery — Enhanced */
.ss-section {
    margin-top: 40px; padding-top: 32px;
    border-top: 1px solid var(--border);
}
.ss-heading {
    color: var(--text-heading); font-size: 17px; font-weight: 700;
    margin-bottom: 20px; display: flex; align-items: center; gap: 10px;
}
.ss-heading i {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--accent-rgb), 0.08));
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; color: var(--primary-light);
}
.ss-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.ss-thumb {
    position: relative; border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border); cursor: pointer;
    transition: all 0.3s ease; aspect-ratio: 16/10;
}
.ss-thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.ss-thumb:hover img { transform: scale(1.06); }
.ss-thumb-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.3s ease;
}
.ss-thumb-overlay i {
    font-size: 24px; color: #fff;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
    transform: scale(0.8); transition: transform 0.3s ease;
}
.ss-thumb:hover .ss-thumb-overlay { opacity: 1; }
.ss-thumb:hover .ss-thumb-overlay i { transform: scale(1); }
.ss-thumb:hover {
    border-color: rgba(var(--primary-rgb), 0.4);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px rgba(var(--primary-rgb), 0.08);
}

/* Demo Video Player */
.demo-video-player {
    position: relative; border-radius: 14px; overflow: hidden;
    aspect-ratio: 16/9; background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,0.08), inset 0 0 80px rgba(var(--primary-rgb), 0.03);
}
.demo-video-el {
    width: 100%; height: 100%; display: block; object-fit: contain;
}
.demo-video-overlay {
    position: absolute; inset: 0; cursor: pointer; z-index: 2;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    background:
        radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.06) 0%, transparent 60%),
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.04) 0%, rgba(var(--accent-rgb), 0.04) 100%);
    transition: all 0.3s ease;
}
.demo-video-overlay::before {
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 2px,
        rgba(var(--primary-rgb), 0.015) 2px, rgba(var(--primary-rgb), 0.015) 4px
    );
    pointer-events: none;
}
.demo-video-overlay:hover {
    background:
        radial-gradient(ellipse at center, rgba(var(--primary-rgb), 0.1) 0%, transparent 60%),
        linear-gradient(135deg, rgba(var(--primary-rgb), 0.06) 0%, rgba(var(--accent-rgb), 0.06) 100%);
}
.demo-play-btn {
    position: relative; width: 76px; height: 76px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 24px rgba(99,102,241,0.4), 0 0 60px rgba(99,102,241,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.demo-video-overlay:hover .demo-play-btn {
    transform: scale(1.1);
    box-shadow: 0 6px 32px rgba(99,102,241,0.5), 0 0 80px rgba(99,102,241,0.18);
}
.demo-play-btn i {
    font-size: 2rem; color: #fff; margin-left: 3px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}
.demo-play-ripple {
    position: absolute; inset: -10px; border-radius: 50%;
    border: 2px solid rgba(99,102,241,0.35);
    animation: demoRipple 2s ease-out infinite;
}
@keyframes demoRipple {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.6); opacity: 0; }
}
.demo-play-label {
    font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
    color: var(--text-heading);
    padding: 7px 20px; border-radius: 20px;
    background: var(--card-bg); 
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
/* Lightbox */
.ss-lightbox {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.ss-lightbox.open { opacity: 1; visibility: visible; }
.ss-lb-close {
    position: absolute; top: 20px; right: 20px; z-index: 10;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
    color: #fff; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
}
.ss-lb-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.ss-lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
    width: 48px; height: 48px; border-radius: 50%;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    color: #fff; font-size: 20px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.25s ease;
}
.ss-lb-nav:hover { background: rgba(255,255,255,0.18); }
.ss-lb-prev { left: 24px; }
.ss-lb-next { right: 24px; }
.ss-lb-body {
    max-width: 90vw; max-height: 85vh; overflow: auto;
    display: flex; align-items: center; justify-content: center;
}
.ss-lb-body img {
    max-width: 100%; max-height: 85vh;
    border-radius: 8px;
    cursor: zoom-in; transition: transform 0.3s ease;
    user-select: none;
}
.ss-lb-body img.zoomed {
    transform: scale(2); cursor: zoom-out;
    max-width: none; max-height: none;
}
.ss-lb-counter {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.6);
    background: rgba(0,0,0,0.5); padding: 6px 16px; border-radius: 20px;
    letter-spacing: 1px;
}

/* Tag */
.tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 12px; border-radius: 20px;
    background: rgba(99, 102, 241, 0.1); border: 1px solid var(--border);
    font-size: 13px; color: var(--text-muted);
}

/* Tech Stack Chips */
.tech-stack-grid {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.tech-chip {
    --chip-color: var(--primary);
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    font-size: 13px; font-weight: 600;
    color: var(--text);
    transition: all 0.25s ease;
    cursor: default;
}
.tech-chip:hover {
    border-color: var(--chip-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.08);
    transform: translateY(-1px);
}
.tech-chip-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--chip-color);
    flex-shrink: 0;
    box-shadow: 0 0 6px var(--chip-color);
}
.tech-chip-img {
    width: 18px; height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 3px;
}

/* ======================== */
/* Search & Filter Bar      */
/* ======================== */
.filter-bar {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 20px 24px;
    margin-bottom: 32px;
}
.filter-bar .form-control, .filter-bar .form-select {
    background: var(--bg-surface); border: 1px solid var(--border);
    color: var(--text); border-radius: var(--radius); padding: 10px 16px;
    font-size: 14px;
}
.filter-bar .form-control::placeholder { color: var(--text-muted); }
.filter-bar .form-control:focus, .filter-bar .form-select:focus {
    border-color: var(--primary); box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
    background: var(--bg-surface); color: var(--text);
}
.filter-bar .form-select option { background: var(--bg-card); color: var(--text); }

/* ======================== */
/* Pagination               */
/* ======================== */
.site-pagination { display: flex; justify-content: center; gap: 4px; margin-top: 40px; }
.site-pagination .page-link {
    padding: 8px 14px; border-radius: var(--radius);
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 14px; font-weight: 500;
}
.site-pagination .page-link:hover { background: var(--bg-card-hover); color: var(--text); }
.site-pagination .active .page-link { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ======================== */
/* Footer                   */
/* ======================== */
.site-footer {
    background: var(--bg-card); border-top: 1px solid var(--border);
    padding: 60px 0 0; margin-top: 80px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 40px; height: 40px; border-radius: var(--radius);
    background: var(--bg-surface); display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 16px; transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-links h5 { font-weight: 700; color: var(--text-heading); margin-bottom: 16px; font-size: 16px; }
.footer-links ul { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--primary-light); }
.footer-bottom {
    border-top: 1px solid var(--border); padding: 20px 0; text-align: center;
    font-size: 14px; color: var(--text-muted);
}
.footer-bottom a { color: var(--primary-light); }

/* ======================== */
/* Reviews                  */
/* ======================== */
.review-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 16px;
}
.review-stars { color: var(--warning); font-size: 14px; }
.review-meta { font-size: 13px; color: var(--text-muted); }

/* ======================== */
/* Breadcrumb               */
/* ======================== */
.site-breadcrumb {
    padding: 100px 0 20px; font-size: 14px;
}
.site-breadcrumb a { color: var(--text-muted); }
.site-breadcrumb a:hover { color: var(--primary-light); }
.site-breadcrumb .separator { margin: 0 8px; color: var(--text-muted); }
.site-breadcrumb .current { color: var(--text-heading); }

/* ======================== */
/* Subcategory Chips        */
/* ======================== */
.subcategory-chips {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 32px; padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.subcategory-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 18px; border-radius: 50px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-muted); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.25s ease;
    white-space: nowrap;
}
.subcategory-chip i { font-size: 14px; }
.subcategory-chip:hover {
    border-color: var(--primary); color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.06);
}
.subcategory-chip.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; border-color: transparent;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}
.subcategory-chip.active:hover { opacity: 0.9; }
.chip-count {
    background: rgba(255,255,255,0.18);
    padding: 1px 8px; border-radius: 20px;
    font-size: 11px; font-weight: 700;
    min-width: 22px; text-align: center;
}
.subcategory-chip:not(.active) .chip-count {
    background: var(--bg-surface);
    color: var(--text-muted);
}

/* ======================== */
/* Empty State              */
/* ======================== */
.site-empty {
    text-align: center; padding: 60px 20px; color: var(--text-muted);
}
.site-empty i { font-size: 48px; margin-bottom: 16px; display: block; }

/* ======================== */
/* Content Body — Premium   */
/* ======================== */
.content-body {
    color: var(--text); line-height: 1.85; font-size: 15px;
}
.content-body p {
    margin-bottom: 18px; color: var(--text-muted); line-height: 1.8;
}

/* Headings — Gradient accent bar */
.content-body h1, .content-body h2, .content-body h3, .content-body h4 {
    color: var(--text-heading); margin-top: 36px; margin-bottom: 16px;
    font-weight: 800; position: relative;
    padding-left: 18px;
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, var(--primary), var(--accent)) 1;
}
.content-body h1 { font-size: 24px; letter-spacing: -0.3px; }
.content-body h2 { font-size: 20px; letter-spacing: -0.2px; }
.content-body h3 { font-size: 17px; }
.content-body h4 { font-size: 15px; }
.content-body h1:first-child, .content-body h2:first-child,
.content-body h3:first-child, .content-body h4:first-child {
    margin-top: 0;
}

/* Lists — Card-style checkmark items */
.content-body ul {
    list-style: none; padding-left: 0; margin-bottom: 24px;
    display: flex; flex-direction: column; gap: 8px;
}
.content-body ul li {
    position: relative; padding: 10px 14px 10px 40px;
    color: var(--text-muted); line-height: 1.6; font-size: 14px;
    background: rgba(var(--primary-rgb), 0.02);
    border: 1px solid rgba(var(--primary-rgb), 0.06);
    border-radius: 10px;
    transition: all 0.2s ease;
}
.content-body ul li:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: rgba(var(--primary-rgb), 0.12);
    transform: translateX(4px);
}
.content-body ul li::before {
    content: '\F26E'; /* bi-check-circle-fill */
    font-family: 'bootstrap-icons';
    position: absolute; left: 12px; top: 11px;
    color: var(--success); font-size: 15px;
}
.content-body ol {
    padding-left: 0; margin-bottom: 24px; color: var(--text-muted);
    counter-reset: ol-counter; list-style: none;
    display: flex; flex-direction: column; gap: 8px;
}
.content-body ol li {
    padding: 10px 14px 10px 40px; line-height: 1.6; font-size: 14px;
    counter-increment: ol-counter; position: relative;
    background: rgba(var(--primary-rgb), 0.02);
    border: 1px solid rgba(var(--primary-rgb), 0.06);
    border-radius: 10px;
    transition: all 0.2s ease;
}
.content-body ol li:hover {
    background: rgba(var(--primary-rgb), 0.05);
    border-color: rgba(var(--primary-rgb), 0.12);
    transform: translateX(4px);
}
.content-body ol li::before {
    content: counter(ol-counter);
    position: absolute; left: 12px; top: 10px;
    width: 20px; height: 20px; border-radius: 50%;
    background: var(--primary); color: #fff;
    font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* Blockquotes — Modern callout */
.content-body blockquote {
    border-left: 3px solid var(--primary);
    background: rgba(var(--primary-rgb), 0.04);
    padding: 18px 22px; margin: 24px 0;
    border-radius: 0 12px 12px 0;
    color: var(--text-muted); font-style: italic;
    font-size: 14px; line-height: 1.7;
    position: relative;
}
.content-body blockquote::before {
    content: '\201C'; font-size: 48px; color: rgba(var(--primary-rgb), 0.15);
    position: absolute; top: -4px; left: 14px; font-family: Georgia, serif;
    line-height: 1;
}

/* Code */
.content-body code {
    background: var(--code-bg, var(--bg-surface)); padding: 2px 8px;
    border-radius: 6px; font-size: 12.5px; color: var(--primary-light);
    border: 1px solid var(--border); font-weight: 500;
}
.content-body pre {
    background: var(--code-bg, var(--bg-surface)); padding: 20px;
    border-radius: 12px; overflow-x: auto; margin-bottom: 24px;
    border: 1px solid var(--border);
}
.content-body pre code {
    border: none; padding: 0; background: transparent; font-weight: 400;
}

/* Tables */
.content-body table {
    width: 100%; border-collapse: collapse; margin-bottom: 24px;
    border-radius: 12px; overflow: hidden;
    border: 1px solid var(--border);
}
.content-body th {
    background: var(--bg-surface); color: var(--text-heading);
    font-weight: 700; font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.6px; padding: 12px 16px; text-align: left;
    border-bottom: 2px solid var(--border);
}
.content-body td {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    color: var(--text-muted); font-size: 14px;
}
.content-body tr:last-child td { border-bottom: none; }
.content-body tr:hover td { background: rgba(var(--primary-rgb), 0.02); }

/* Links */
.content-body a {
    color: var(--primary-light); text-decoration: none;
    font-weight: 500;
    background: linear-gradient(transparent 70%, rgba(var(--primary-rgb), 0.12) 70%);
    transition: all 0.2s ease;
}
.content-body a:hover {
    color: var(--primary);
    background: linear-gradient(transparent 70%, rgba(var(--primary-rgb), 0.2) 70%);
}

/* Strong & Em */
.content-body strong { color: var(--text-heading); font-weight: 700; }

/* HR */
.content-body hr {
    border: none; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    margin: 32px 0;
}

/* Images */
.content-body img {
    max-width: 100%; border-radius: 12px; margin: 20px 0;
    border: 1px solid var(--border);
    transition: box-shadow 0.3s ease;
}
.content-body img:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

/* ======================== */
/* Cart Page                */
/* ======================== */
.cart-layout {
    display: grid; grid-template-columns: 1fr 340px; gap: 28px;
}
.cart-items { display: flex; flex-direction: column; gap: 20px; }

/* Cart Item Card */
.cart-item-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; transition: border-color 0.2s ease;
}
.cart-item-card:hover { border-color: rgba(var(--primary-rgb), 0.25); }

/* Product Header */
.cart-item-header {
    display: flex; align-items: center; gap: 14px; padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.cart-item-thumb img {
    width: 72px; height: 46px; object-fit: cover; border-radius: 6px;
}
.cart-item-meta { flex: 1; }
.cart-item-meta h4 { font-size: 15px; font-weight: 600; margin: 0; }
.cart-item-meta h4 a { color: var(--text-heading); text-decoration: none; }
.cart-item-meta h4 a:hover { color: var(--primary); }
.cart-item-category { font-size: 12px; color: var(--text-muted); margin: 2px 0 0; }
.cart-item-remove {
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    font-size: 16px; padding: 6px; border-radius: 6px; transition: var(--transition);
}
.cart-item-remove:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

/* Tier Tabs Navigation */
.tier-selector { padding: 16px 20px 20px; }
.tier-tabs {
    display: flex; gap: 6px; padding: 4px;
    background: var(--bg-surface); border-radius: 10px; margin-bottom: 16px;
}
.tier-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
    background: transparent; border: none; color: var(--text-muted);
    cursor: pointer; transition: all 0.25s ease; position: relative;
    white-space: nowrap;
}
.tier-tab:hover { color: var(--text); }
.tier-tab.active {
    background: var(--bg-card); color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
}
.tier-tab i { font-size: 14px; }
.tier-tab-badge {
    font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    padding: 2px 6px; border-radius: 4px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1); color: #fff;
}

/* Tier Panel Content */
.tier-panels { position: relative; }
.tier-panel-content {
    display: flex; align-items: flex-start; gap: 24px;
    padding: 18px 20px; border-radius: 10px;
    background: var(--bg-surface); border: 1px solid var(--border);
}

/* Features Column */
.tier-features {
    flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
}
.tier-feature {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text); font-weight: 500;
}
.tier-feature.muted { color: var(--text-muted); opacity: 0.5; }
.tier-check { color: #22c55e; font-size: 14px; }
.tier-x { color: var(--text-muted); font-size: 14px; }

/* Price Block */
.tier-price-block {
    text-align: center; padding: 16px 24px;
    background: var(--bg-card); border-radius: 10px;
    border: 1px solid rgba(var(--primary-rgb), 0.15); min-width: 160px;
    position: relative; overflow: hidden;
}
.tier-price-block::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.tier-price {
    font-size: 32px; font-weight: 800; letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; line-height: 1;
}
.tier-price-label {
    font-size: 11px; color: var(--text-muted); margin-top: 4px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.tier-domain-count {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 10px; padding: 4px 12px; border-radius: 20px;
    font-size: 11px; font-weight: 700; color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
}
.tier-domain-count i { font-size: 12px; }

/* Order Summary */
.cart-summary {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
    padding: 24px; position: sticky; top: 90px; align-self: start;
}
.cart-summary-title { font-size: 18px; font-weight: 700; margin: 0 0 16px; color: var(--text-heading); }
.cart-summary-item {
    display: flex; align-items: center; gap: 8px; padding: 8px 0;
    font-size: 13px; color: var(--text-muted);
}
.cart-summary-item-name { flex: 1; font-weight: 500; color: var(--text); }
.cart-summary-item-tier {
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
    padding: 2px 8px; border-radius: 4px;
    background: rgba(var(--primary-rgb), 0.08); color: var(--primary);
}
.cart-summary-item-price { font-weight: 600; color: var(--text); min-width: 60px; text-align: right; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--text-muted); }
.cart-summary-total { font-size: 18px; font-weight: 700; color: var(--text-heading); }
.cart-summary-divider { height: 1px; background: var(--border); margin: 8px 0; }

/* Coupon Code Section */
.coupon-section { padding: 4px 0 12px; }
.coupon-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--text-muted);
    margin-bottom: 8px;
}
.coupon-label i { font-size: 14px; color: var(--primary); }
.coupon-input-group {
    display: flex; gap: 6px;
}
.coupon-input {
    flex: 1; padding: 9px 12px; border-radius: 8px;
    border: 1px solid var(--border); background: var(--bg-surface);
    color: var(--text); font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 1px;
    outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.coupon-input::placeholder {
    color: var(--text-muted); opacity: 0.5;
    font-weight: 500; letter-spacing: 1.5px;
}
.coupon-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.coupon-apply-btn {
    padding: 9px 18px; border-radius: 8px; border: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; font-size: 13px; font-weight: 700;
    cursor: pointer; white-space: nowrap;
    transition: all 0.2s ease; font-family: inherit;
}
.coupon-apply-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}
.coupon-apply-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.coupon-spinner {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
    border-radius: 50%; animation: checkoutSpin 0.6s linear infinite;
}

/* Applied coupon state */
.coupon-applied {
    display: flex; align-items: center; gap: 8px;
}
.coupon-applied-code {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding: 9px 12px; border-radius: 8px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    font-size: 13px; font-weight: 700; letter-spacing: 1px;
    color: #22c55e;
}
.coupon-applied-code i { font-size: 14px; }
.coupon-applied-code span { flex: 1; }
.coupon-remove-btn {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.06);
    color: #ef4444; font-size: 12px; cursor: pointer;
    transition: all 0.2s ease;
}
.coupon-remove-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
}

/* Coupon messages */
.coupon-message {
    display: flex; align-items: center; gap: 6px;
    margin-top: 8px; padding: 8px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 500; line-height: 1.4;
}
.coupon-message i { font-size: 13px; flex-shrink: 0; }
.coupon-message-success {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.15);
}
.coupon-message-error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* ======================== */
/* Checkout Page             */
/* ======================== */

/* Progress Steps */
.checkout-steps {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 32px; padding: 0 40px;
}
.checkout-step {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    position: relative; z-index: 1;
}
.checkout-step span {
    font-size: 12px; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.5px;
}
.checkout-step-icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; border: 2px solid var(--border);
    background: var(--bg-card); color: var(--text-muted);
    transition: all 0.3s ease;
}
.checkout-step.completed .checkout-step-icon {
    background: var(--primary); border-color: var(--primary); color: #fff;
}
.checkout-step.completed span { color: var(--primary); }
.checkout-step.active .checkout-step-icon {
    border-color: var(--primary); color: var(--primary);
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.12);
}
.checkout-step.active span { color: var(--text-heading); }
.checkout-step-line {
    flex: 1; height: 2px; background: var(--border);
    margin: 0 -4px; margin-bottom: 22px;
}
.checkout-step-line.completed { background: var(--primary); }

/* Checkout Cards */
.checkout-main { display: flex; flex-direction: column; gap: 20px; }
.checkout-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden;
}
.checkout-card-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.checkout-card-header h3 {
    font-size: 15px; font-weight: 700; margin: 0; color: var(--text-heading);
    display: flex; align-items: center; gap: 8px;
}
.checkout-card-header h3 i { color: var(--primary); font-size: 16px; }
.checkout-item-count {
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
    background: rgba(var(--primary-rgb), 0.08); color: var(--primary);
    text-transform: uppercase; letter-spacing: 0.3px;
}
.checkout-optional {
    font-size: 11px; font-weight: 500; color: var(--text-muted);
    font-style: italic;
}
.checkout-card-body { padding: 16px 20px; }

/* Order Item Rows */
.checkout-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 0; border-bottom: 1px solid rgba(var(--border-rgb, 128, 128, 128), 0.3);
}
.checkout-item:last-child { border-bottom: none; padding-bottom: 4px; }
.checkout-item:first-child { padding-top: 4px; }
.checkout-item-thumb img {
    width: 64px; height: 40px; object-fit: cover; border-radius: 6px;
}
.checkout-item-placeholder {
    width: 64px; height: 40px; border-radius: 6px;
    background: var(--bg-surface); display: flex; align-items: center;
    justify-content: center; color: var(--text-muted); font-size: 16px;
}
.checkout-item-details { flex: 1; }
.checkout-item-details h4 {
    font-size: 14px; font-weight: 600; margin: 0 0 4px; color: var(--text-heading);
}
.checkout-item-meta { display: flex; align-items: center; gap: 12px; }
.checkout-meta-cat {
    font-size: 12px; color: var(--text-muted);
    display: flex; align-items: center; gap: 4px;
}
.checkout-meta-cat i { font-size: 11px; }
.checkout-meta-license {
    font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px;
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(var(--primary-rgb), 0.08); color: var(--primary);
}
.checkout-meta-license i { font-size: 10px; }
.checkout-item-price {
    font-size: 16px; font-weight: 700; color: var(--text-heading);
    white-space: nowrap;
}

/* Notes Textarea */
.checkout-notes {
    width: 100%; padding: 14px 16px; border: 1px solid var(--border);
    border-radius: 10px; background: var(--bg-surface); color: var(--text);
    font-size: 14px; font-family: inherit; resize: vertical; outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 80px;
}
.checkout-notes:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.checkout-notes::placeholder { color: var(--text-muted); opacity: 0.7; }

/* Summary Header */
.checkout-summary-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.checkout-summary-header i {
    font-size: 18px; color: var(--primary);
}

/* Place Order Button */
.checkout-place-btn {
    width: 100%; padding: 14px 24px; margin-top: 20px; border: none; border-radius: 10px;
    font-size: 15px; font-weight: 700; color: #fff; cursor: pointer;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.3s ease; position: relative; overflow: hidden;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.25);
}
.checkout-place-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}
.checkout-place-btn:active { transform: translateY(0); }
.checkout-place-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.checkout-btn-loading { display: flex; align-items: center; gap: 8px; }
.checkout-spinner {
    width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff; border-radius: 50%;
    animation: checkoutSpin 0.6s linear infinite;
}
@keyframes checkoutSpin { to { transform: rotate(360deg); } }

/* Trust Badges */
.checkout-trust-badges {
    display: flex; flex-direction: column; gap: 8px;
    margin-top: 16px; padding: 14px; border-radius: 10px;
    background: var(--bg-surface); border: 1px solid var(--border);
}
.checkout-trust-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 500; color: var(--text-muted);
}
.checkout-trust-item i { color: #22c55e; font-size: 14px; }

/* Back Link */
.checkout-back-link {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; margin-top: 12px; padding: 10px;
    font-size: 13px; font-weight: 500; color: var(--text-muted);
    text-decoration: none; border-radius: 8px; transition: all 0.2s ease;
}
.checkout-back-link:hover { color: var(--primary); background: rgba(var(--primary-rgb), 0.04); }

/* ======================== */
/* Payment Method Tabs     */
/* ======================== */
.payment-method-tabs { display: flex; flex-direction: column; gap: 10px; }
.payment-method-tab {
    display: flex; align-items: center; gap: 14px; padding: 14px 18px;
    border-radius: 12px; border: 1.5px solid var(--border);
    background: var(--bg-surface); cursor: pointer;
    transition: all 0.2s ease; position: relative;
}
.payment-method-tab:hover { border-color: rgba(var(--primary-rgb), 0.3); }
.payment-method-tab.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.04);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.08);
}
.payment-method-tab-icon {
    width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}
.payment-method-tab-info { flex: 1; min-width: 0; }
.payment-method-tab-info strong {
    display: block; font-size: 14px; font-weight: 600; color: var(--text);
    margin-bottom: 2px;
}
.payment-method-tab-info span { font-size: 12px; color: var(--text-muted); }
.payment-method-tab-badges {
    display: flex; gap: 4px; flex-shrink: 0;
}
.pm-badge {
    width: 28px; height: 28px; border-radius: 6px; display: flex;
    align-items: center; justify-content: center; font-size: 13px;
    background: var(--bg-card); border: 1px solid var(--border);
    color: var(--text-muted);
}
.payment-method-check {
    flex-shrink: 0; font-size: 18px; color: var(--primary);
    opacity: 0; transition: opacity 0.2s ease;
}
.payment-method-tab.active .payment-method-check { opacity: 1; }
.payment-method-note {
    display: flex; align-items: flex-start; gap: 8px; margin-top: 12px;
    padding: 12px 14px; border-radius: 10px; font-size: 12px;
    line-height: 1.5; color: var(--text-muted);
}
.payment-method-note i { flex-shrink: 0; margin-top: 2px; font-size: 14px; }
.stripe-note {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
}
.stripe-note i { color: #6366f1; }
.manual-note {
    background: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.15);
}
.manual-note i { color: #f59e0b; }

/* ======================== */
/* Stripe Payment Card     */
/* ======================== */
.stripe-payment-card {
    border-radius: 16px; border: 1px solid var(--border);
    background: var(--bg-card); overflow: visible;
}
.stripe-payment-header {
    display: flex; align-items: center; gap: 14px;
    padding: 20px 24px; border-bottom: 1px solid var(--border);
    background: rgba(var(--primary-rgb), 0.03);
}
.stripe-payment-header-icon {
    width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
}
.stripe-payment-header h3 {
    font-size: 16px; font-weight: 700; color: var(--text); margin: 0 0 2px;
}
.stripe-payment-header p {
    font-size: 12px; color: var(--text-muted); margin: 0;
}
.stripe-element-wrap { padding: 24px; overflow: visible; }
.stripe-element-container {
    min-height: 300px; overflow: visible;
}
.stripe-payment-message {
    margin-top: 12px; padding: 10px 14px; border-radius: 8px;
    font-size: 13px; color: #ef4444; font-weight: 500;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
}
.stripe-pay-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: calc(100% - 48px); margin: 0 24px 20px; padding: 14px;
    border-radius: 12px; border: none; cursor: pointer;
    font-size: 15px; font-weight: 700; font-family: inherit;
    color: #fff; background: linear-gradient(135deg, #6366f1, #7c3aed);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    transition: all 0.2s ease;
}
.stripe-pay-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.stripe-pay-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.stripe-payment-footer {
    padding: 14px 24px; border-top: 1px solid var(--border);
    background: rgba(var(--primary-rgb), 0.02);
}
.stripe-accepted-methods {
    display: flex; align-items: center; gap: 8px;
}
.stripe-method-icon {
    width: 30px; height: 22px; border-radius: 4px; display: flex;
    align-items: center; justify-content: center; font-size: 14px;
    background: var(--bg-surface); border: 1px solid var(--border);
    color: var(--text-muted);
}
.stripe-powered {
    font-size: 11px; color: var(--text-muted); margin-left: auto;
}
.stripe-order-number {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; margin-bottom: 6px;
    font-size: 13px; color: var(--text-muted);
}
.stripe-order-number code {
    font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
    background: rgba(var(--primary-rgb), 0.08); color: var(--primary-light);
}

/* ======================== */
/* Checkout Success Page   */
/* ======================== */
.checkout-success-card {
    max-width: 520px; margin: 0 auto; text-align: center;
    padding: 48px 32px; border-radius: 20px;
    background: var(--bg-card); border: 1px solid var(--border);
}
.checkout-success-icon {
    font-size: 64px; color: #22c55e; margin-bottom: 20px;
    animation: successPulse 0.6s ease-out;
}
@keyframes successPulse {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}
.checkout-success-title {
    font-size: 24px; font-weight: 800; color: var(--text);
    margin-bottom: 8px;
}
.checkout-success-desc {
    font-size: 14px; color: var(--text-muted); line-height: 1.6;
    margin-bottom: 24px;
}
.checkout-success-desc code {
    font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 6px;
    background: rgba(var(--primary-rgb), 0.08); color: var(--primary-light);
}
.checkout-success-details {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 28px;
}
.checkout-success-detail {
    display: flex; flex-direction: column; gap: 4px; padding: 12px 20px;
    border-radius: 10px; background: var(--bg-surface);
    border: 1px solid var(--border); min-width: 120px;
}
.checkout-success-detail span:first-child {
    font-size: 11px; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.5px; font-weight: 600;
}
.checkout-success-detail strong { font-size: 14px; color: var(--text); }
.checkout-success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.checkout-success-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 11px 22px;
    border-radius: 10px; font-size: 13px; font-weight: 600;
    text-decoration: none; transition: all 0.2s ease;
}
.checkout-success-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff; box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
}
.checkout-success-btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.4);
}
.checkout-success-btn.secondary {
    background: var(--bg-surface); color: var(--text);
    border: 1px solid var(--border);
}
.checkout-success-btn.secondary:hover {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(var(--primary-rgb), 0.04);
}

/* Cart Empty State — Premium */
.cart-empty-state {
    display: flex; flex-direction: column; align-items: center;
    padding: 80px 24px 60px; text-align: center;
    max-width: 440px; margin: 0 auto;
}
.cart-empty-icon {
    width: 88px; height: 88px; border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 28px; position: relative;
    animation: emptyCartPulse 3s ease-in-out infinite;
}
.cart-empty-icon::after {
    content: ''; position: absolute; inset: -6px; border-radius: 50%;
    border: 1px dashed rgba(var(--primary-rgb), 0.12);
}
.cart-empty-icon i {
    font-size: 36px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
@keyframes emptyCartPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.06); }
    50% { box-shadow: 0 0 0 16px rgba(var(--primary-rgb), 0); }
}
.cart-empty-title {
    font-size: 22px; font-weight: 700; color: var(--text-heading);
    margin: 0 0 10px; letter-spacing: -0.3px;
}
.cart-empty-desc {
    font-size: 14px; line-height: 1.65; color: var(--text-muted);
    margin: 0 0 28px; max-width: 340px;
}
.cart-empty-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 28px; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    color: #fff; background: var(--gradient);
    border: none; cursor: pointer;
    transition: all 0.3s ease; text-decoration: none;
    box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.25);
}
.cart-empty-cta:hover {
    transform: translateY(-2px); color: #fff;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.35);
}
.cart-empty-cta i { font-size: 16px; }

/* Navbar cart icon */
.navbar-cart {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--bg-surface);
    color: var(--text); font-size: 18px; cursor: pointer; transition: var(--transition);
}
.navbar-cart:hover { border-color: var(--primary); color: var(--primary); }
.cart-badge {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
    background: var(--primary); color: #fff; font-size: 10px; font-weight: 700;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

/* ======================== */
/* Responsive               */
/* ======================== */
@media (max-width: 768px) {
    .navbar-toggle { display: flex; align-items: center; justify-content: center; order: 3; }
    .navbar-collapse {
        display: none; flex-direction: column; align-items: stretch;
        position: absolute; top: 72px; left: 0; right: 0;
        background: var(--bg-card); border-bottom: 1px solid var(--border);
        padding: 16px 20px; gap: 12px; z-index: 100;
        box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    }
    .navbar-collapse.open { display: flex; }
    .navbar-menu {
        flex-direction: column; gap: 4px; width: 100%;
    }
    .navbar-menu a {
        display: block; padding: 12px 16px; border-radius: var(--radius);
        font-size: 15px;
    }
    .navbar-menu a:hover, .navbar-menu a.active {
        background: var(--bg-surface);
    }
    .navbar-actions {
        flex-direction: column; gap: 8px; width: 100%;
        padding-top: 12px; border-top: 1px solid var(--border);
    }
    .navbar-actions .btn-site-primary,
    .navbar-actions .btn-site-outline,
    .navbar-actions .btn-site-ghost {
        width: 100%; justify-content: center; text-align: center;
    }
    .navbar-actions .site-theme-toggle {
        align-self: flex-start;
    }
    .navbar-inner { position: relative; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .project-detail-meta { flex-wrap: wrap; gap: 12px; }

    /* Product detail mobile */
    .project-detail-title { font-size: 20px; letter-spacing: -0.3px; }
    .project-detail-content { padding: 16px; }
    .project-detail-meta { font-size: 12px; gap: 10px; }
    .project-detail-badge { font-size: 10px; padding: 3px 10px; }
    .ss-grid { grid-template-columns: 1fr; }

    /* Projects listing responsive */
    .projects-layout { grid-template-columns: 1fr; }
    .projects-sidebar { position: static; }
    .projects-topbar { flex-direction: column; gap: 12px; align-items: flex-start; }
    .sort-pills { flex-wrap: wrap; }
    .project-list-card { grid-template-columns: 1fr; }
    .project-list-thumb img { width: 100%; height: 180px; }
    .project-list-actions { border-left: none; border-top: 1px solid var(--border); flex-direction: row; align-items: center; justify-content: space-between; }

    /* Cart responsive */
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .tier-panel-content { flex-direction: column; gap: 16px; }
    .tier-features { grid-template-columns: 1fr; }
    .tier-price-block { min-width: auto; }
    .cart-item-thumb img { width: 60px; height: 38px; }
    .checkout-steps { padding: 0; }
    .checkout-step span { font-size: 10px; }
    .checkout-step-icon { width: 36px; height: 36px; font-size: 15px; }
    .checkout-item-meta { flex-wrap: wrap; gap: 6px; }
}

/* ======================== */
/* Comments System          */
/* ======================== */
.comment-form-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px; padding: 20px;
    margin-bottom: 24px;
}
.comment-form-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 14px;
}
.comment-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; flex-shrink: 0;
}
.comment-form-label {
    font-size: 13px; color: var(--text-muted);
}
.comment-form-label strong { color: var(--text-heading); }

.comment-textarea {
    width: 100%; border: 1px solid var(--border);
    border-radius: 10px; padding: 14px 16px;
    background: var(--bg-card); color: var(--text);
    font-size: 14px; line-height: 1.6; resize: vertical;
    min-height: 80px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.comment-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.comment-textarea::placeholder { color: var(--text-muted); opacity: 0.6; }
.comment-input-wrap { margin-bottom: 12px; }
.comment-error {
    color: var(--danger); font-size: 12px; margin-top: 6px;
    display: flex; align-items: center; gap: 4px;
}
.comment-form-footer {
    display: flex; align-items: center; justify-content: space-between;
}
.comment-char-count {
    font-size: 12px; color: var(--text-muted); opacity: 0.6;
}

/* Login Prompt */
.comment-login-prompt {
    text-align: center; padding: 16px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.comment-login-prompt p {
    color: var(--text-muted); font-size: 14px; margin: 0;
}

/* Comments List */
.comments-list {
    display: flex; flex-direction: column; gap: 0;
}
.comment-item {
    display: flex; gap: 14px; padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.comment-item:last-child { border-bottom: none; }
.comment-content { flex: 1; min-width: 0; }
.comment-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.comment-author {
    font-size: 14px; color: var(--text-heading); font-weight: 600;
}
.comment-time {
    font-size: 12px; color: var(--text-muted); opacity: 0.7;
}
.comment-body {
    color: var(--text-muted); font-size: 14px; line-height: 1.7; margin: 0;
}

/* Spin animation for loading */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; display: inline-block; }

/* Admin Badge */
.comment-admin-badge {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    padding: 2px 8px; border-radius: 20px; letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.15), rgba(var(--accent-rgb, 139,92,246), 0.15));
    color: var(--primary-light);
}
.comment-avatar-admin {
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
}

/* Reply Button */
.comment-reply-btn {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 12px; color: var(--text-muted); background: none;
    border: none; cursor: pointer; padding: 4px 0; margin-top: 6px;
    font-weight: 500; transition: color 0.2s ease;
}
.comment-reply-btn:hover { color: var(--primary-light); }
.comment-reply-btn i { font-size: 14px; }

/* Reply Indicator */
.comment-reply-indicator {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; margin-bottom: 14px;
    background: rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.12);
    border-radius: 8px; font-size: 13px; color: var(--primary-light);
}
.comment-reply-indicator i { font-size: 16px; }
.comment-reply-indicator span { flex: 1; }
.comment-reply-cancel {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); padding: 2px;
    transition: color 0.2s ease; font-size: 12px;
}
.comment-reply-cancel:hover { color: var(--danger); }

/* Nested Replies */
.comment-replies {
    margin-top: 14px; padding-left: 16px;
    border-left: 2px solid rgba(var(--primary-rgb), 0.12);
}
.comment-reply-item { padding: 12px 0 !important; }
.comment-reply-item:first-child { padding-top: 0 !important; }
.comment-avatar-sm {
    width: 28px !important; height: 28px !important;
    font-size: 12px !important;
}

/* Pending Badge */
.comment-pending-badge {
    font-size: 11px; padding: 2px 8px; border-radius: 20px;
    background: rgba(var(--warning-rgb, 255,193,7), 0.12);
    color: var(--warning, #ffc107); font-weight: 600;
    display: inline-flex; align-items: center; gap: 3px;
}

/* ============================================================
   BUNDLE CARDS
   ============================================================ */
.bundle-card {
    display: block; padding: 28px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border);
    text-decoration: none; transition: all 0.3s ease; position: relative; overflow: hidden;
}
.bundle-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); border-color: rgba(var(--primary-rgb), 0.3); }
.bundle-card-badge {
    display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
    background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; margin-bottom: 14px;
}
.bundle-card-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.bundle-card-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.bundle-card-projects { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.bundle-card-pricing { display: flex; align-items: baseline; gap: 10px; }
.bundle-card-original { font-size: 14px; text-decoration: line-through; color: var(--text-muted); }
.bundle-card-price { font-size: 22px; font-weight: 800; color: var(--primary); }
.bundle-card-timer { font-size: 12px; color: var(--text-muted); margin-top: 12px; display: flex; align-items: center; gap: 4px; }

/* Bundle Detail */
.bundle-detail-header { margin-bottom: 32px; }
.bundle-detail-badge {
    display: inline-block; padding: 6px 16px; border-radius: 24px; font-size: 13px; font-weight: 700;
    background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; margin-bottom: 12px;
}
.bundle-detail-title { font-size: 32px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.bundle-detail-desc { font-size: 15px; color: var(--text-muted); line-height: 1.6; }

.bundle-projects-list { display: flex; flex-direction: column; gap: 8px; }
.bundle-project-row {
    display: flex; align-items: center; gap: 14px; padding: 14px 16px;
    border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border);
    text-decoration: none; transition: all 0.2s;
}
.bundle-project-row:hover { border-color: rgba(var(--primary-rgb), 0.3); transform: translateX(3px); }
.bundle-project-thumb img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; }
.bundle-project-thumb-placeholder {
    width: 48px; height: 48px; border-radius: 8px;
    background: rgba(var(--primary-rgb), 0.08); display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 18px;
}
.bundle-project-info { flex: 1; min-width: 0; }
.bundle-project-title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.bundle-project-cat { font-size: 12px; color: var(--text-muted); }
.bundle-project-pricing { text-align: right; }
.bundle-project-original { font-size: 12px; text-decoration: line-through; color: var(--text-muted); display: block; }
.bundle-project-discounted { font-size: 15px; font-weight: 700; color: #22c55e; }

/* Bundle Sidebar */
.bundle-sidebar {
    padding: 28px; border-radius: var(--radius-lg);
    background: var(--bg-card); border: 1px solid var(--border);
}
.bundle-sidebar-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.bundle-sidebar-price { font-size: 36px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.bundle-sidebar-original { font-size: 14px; margin-bottom: 20px; }
.bundle-add-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 14px 20px; border-radius: 12px; font-size: 15px; font-weight: 700;
    background: linear-gradient(135deg, var(--primary), #00d4aa); color: #fff; border: none;
    cursor: pointer; transition: all 0.3s;
}
.bundle-add-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.3); }
.bundle-timer { font-size: 13px; color: var(--text-muted); margin-top: 14px; text-align: center; display: flex; align-items: center; justify-content: center; gap: 4px; }

/* =========================================================
   Blog Styles
   ========================================================= */
.blog-hero { text-align: center; padding: 60px 0 40px; background: var(--bg-card); }
.blog-hero-title { font-size: 36px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.blog-hero-sub { color: var(--text-muted); font-size: 16px; margin-bottom: 24px; }
.blog-search { max-width: 500px; margin: 0 auto; position: relative; }
.blog-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.blog-search-input { width: 100%; padding: 12px 16px 12px 44px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-base); color: var(--text-primary); font-size: 15px; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: var(--transition); }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); border-color: var(--primary); }
.blog-card-img img { width: 100%; height: 200px; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-cat { display: inline-block; background: rgba(var(--primary-rgb), 0.12); color: var(--primary); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 20px; text-decoration: none; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.blog-card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card-title a { color: var(--text-primary); text-decoration: none; }
.blog-card-title a:hover { color: var(--primary); }
.blog-card-excerpt { color: var(--text-secondary); font-size: 14px; line-height: 1.6; margin-bottom: 12px; }
.blog-card-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.blog-card-meta i { margin-right: 4px; }

.blog-sidebar-widget { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; margin-bottom: 20px; }
.blog-sidebar-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.blog-cat-list { list-style: none; padding: 0; margin: 0; }
.blog-cat-list li { margin-bottom: 4px; }
.blog-cat-list li a { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 8px; color: var(--text-secondary); text-decoration: none; font-size: 14px; transition: var(--transition); }
.blog-cat-list li a:hover, .blog-cat-list li a.active { background: rgba(var(--primary-rgb), 0.08); color: var(--primary); }
.blog-cat-list li a span { color: var(--text-muted); font-size: 13px; }

.blog-recent-item { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.blog-recent-item:last-child { border-bottom: none; }
.blog-recent-title { display: block; font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.blog-recent-item:hover .blog-recent-title { color: var(--primary); }
.blog-recent-date { font-size: 12px; color: var(--text-muted); }

/* Blog Article */
.blog-article-meta { display: flex; gap: 16px; margin-bottom: 16px; font-size: 14px; color: var(--text-muted); flex-wrap: wrap; align-items: center; }
.blog-article-meta i { margin-right: 4px; }
.blog-article-title { font-size: 32px; font-weight: 800; line-height: 1.3; color: var(--text-primary); margin-bottom: 24px; }
.blog-article-img { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.blog-article-img img { width: 100%; height: auto; }
.blog-article-body { font-size: 16px; line-height: 1.8; color: var(--text-secondary); }
.blog-article-body h2 { font-size: 24px; font-weight: 700; margin: 32px 0 12px; color: var(--text-primary); }
.blog-article-body h3 { font-size: 20px; font-weight: 600; margin: 24px 0 8px; color: var(--text-primary); }
.blog-article-body p { margin-bottom: 16px; }
.blog-article-body code { background: var(--bg-card); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.blog-article-body pre { background: var(--bg-card); padding: 16px; border-radius: var(--radius); overflow-x: auto; margin-bottom: 16px; }
.blog-article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.blog-tag { background: var(--bg-card); padding: 6px 12px; border-radius: 20px; font-size: 13px; color: var(--text-secondary); border: 1px solid var(--border); }

.blog-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }
.blog-product-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; text-decoration: none; transition: var(--transition); }
.blog-product-card:hover { border-color: var(--primary); }
.blog-product-card img { width: 100%; height: 100px; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.blog-product-card span { font-size: 14px; color: var(--text-primary); font-weight: 600; }
.blog-product-price { color: var(--primary) !important; font-size: 13px !important; margin-top: 4px; }

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-content > div { grid-template-columns: 1fr !important; }
    .blog-article-title { font-size: 24px; }
}

/* ============================================================
   SWEETALERT THEME OVERRIDES
   ============================================================ */
.swal2-backdrop-show {
    backdrop-filter: blur(6px) !important;
    background: rgba(0, 0, 0, 0.4) !important;
}
.swal2-popup {
    border-radius: 18px !important;
    font-family: 'Inter', sans-serif !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255,255,255,0.05) inset !important;
    background: var(--bg-card) !important;
    padding: 28px 24px 22px !important;
}
.swal2-title {
    font-size: 19px !important;
    font-weight: 800 !important;
    color: var(--text-primary, var(--text-heading)) !important;
    letter-spacing: -0.3px !important;
    padding: 0 !important;
    margin: 0 0 4px !important;
}
.swal2-html-container {
    font-size: 13.5px !important;
    color: var(--text-secondary, var(--text-muted)) !important;
    line-height: 1.6 !important;
    margin: 8px 0 0 !important;
    padding: 0 8px !important;
}
.swal2-icon {
    transform: scale(0.8) !important;
    margin: 0 auto 12px !important;
    border-width: 3px !important;
}
.swal2-icon.swal2-warning { border-color: #f59e0b !important; color: #f59e0b !important; }
.swal2-icon.swal2-error { border-color: #ef4444 !important; }
.swal2-icon.swal2-error .swal2-x-mark-line-left,
.swal2-icon.swal2-error .swal2-x-mark-line-right { background-color: #ef4444 !important; }
.swal2-icon.swal2-success { border-color: #22c55e !important; color: #22c55e !important; }
.swal2-icon.swal2-success .swal2-success-line-tip,
.swal2-icon.swal2-success .swal2-success-line-long { background-color: #22c55e !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(34, 197, 94, 0.3) !important; }
.swal2-actions { margin-top: 20px !important; gap: 10px !important; }
.swal2-confirm {
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 10px 26px !important;
    background: linear-gradient(135deg, var(--primary), #7c3aed) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(var(--primary-rgb), 0.3) !important;
    transition: all 0.2s ease !important;
}
.swal2-confirm:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4) !important;
}
.swal2-cancel {
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    padding: 10px 26px !important;
    background: var(--bg-card) !important;
    color: var(--text-secondary, var(--text-muted)) !important;
    border: 1.5px solid var(--border) !important;
    transition: all 0.2s ease !important;
}
.swal2-cancel:hover {
    background: rgba(var(--primary-rgb), 0.05) !important;
    border-color: var(--primary) !important;
}
