/* ============================================
   KSuse Store - Dark Theme (Slate + Sky Blue / Warm Orange)
   ============================================ */

:root {
    --bg: #0f1117;
    --bg-subtle: #13151d;
    --surface: #181b25;
    --surface-hover: #1f2330;
    --surface-active: #262b3a;
    --text: #e2e4e9;
    --text-secondary: #b8b8c8;
    --text-muted: #9a9ab0;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --accent-soft: rgba(56,189,248,0.08);
    --accent-glow: rgba(56,189,248,0.15);
    --highlight: #f97316;
    --highlight-hover: #ea580c;
    --highlight-soft: rgba(249,115,22,0.08);
    --success: #34d399;
    --success-soft: rgba(52,211,153,0.08);
    --danger: #f87171;
    --danger-soft: rgba(248,113,113,0.08);
    --warning: #fbbf24;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.35);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.45);
    --shadow-glow: 0 0 40px -8px rgba(56,189,248,0.12);
    --radius: 16px;
    --radius-sm: 8px;
    --radius-xs: 4px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; max-width: 100vw; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; }

/* ---- Screen-reader only (visually hidden, accessible to crawlers) ---- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.fade-in-card { animation: fadeInUp 0.5s ease-out both; }

/* ---- Header ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(15,17,23,0.85);
    backdrop-filter: blur(24px) saturate(1.2);
    -webkit-backdrop-filter: blur(24px) saturate(1.2);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
    position: relative;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    text-decoration: none;
}
.logo:hover { color: var(--text); }
.logo:hover .logo-icon {
    transform: rotate(45deg) scale(1.1);
}
.logo-icon {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    border-radius: 2px;
    margin-right: 10px;
    transition: transform 0.3s ease;
}
.logo-brand {
    color: #fff;
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}
.logo-store {
    margin-left: 6px;
    color: var(--accent);
    font-weight: 400;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
}
.nav-link:hover { color: var(--text); background: var(--surface-hover); }
.nav-search { display: flex; align-items: center; padding: 6px 8px !important; }
.nav-cart { position: relative; }

.cart-badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--highlight);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px; height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    transform: translate(50%, -30%);
    transition: transform var(--transition-spring);
}
.cart-badge-hidden { transform: translate(50%, -30%) scale(0); }

/* ---------- Floating Cart Button (shop pages) ---------- */
.floating-cart {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 28px rgba(56, 189, 248, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    z-index: 999;
    text-decoration: none;
    transform: scale(0.5) translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
    will-change: transform, box-shadow;
}
.floating-cart.visible {
    display: flex;
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}
.floating-cart svg {
    width: 26px;
    height: 26px;
    stroke-width: 2;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
.floating-cart:hover {
    color: #fff;
    transform: scale(1.08) translateY(-2px);
    box-shadow:
        0 16px 36px rgba(56, 189, 248, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    background: linear-gradient(135deg, #4fc5fb, var(--accent));
}
.floating-cart:hover svg {
    transform: scale(1.08) rotate(-6deg);
}
.floating-cart:active {
    transform: scale(0.96) translateY(0);
    transition-duration: 0.12s;
}
.floating-cart:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px var(--bg),
        0 0 0 5px var(--accent),
        0 10px 28px rgba(56, 189, 248, 0.4);
}

/* Soft ambient pulse ring */
.floating-cart.visible::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.45);
    animation: fcPulse 2.4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}
@keyframes fcPulse {
    0%   { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.45); }
    70%  { box-shadow: 0 0 0 14px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.floating-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--highlight);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid var(--bg);
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.45);
    letter-spacing: 0.2px;
}

/* Bump animation when count changes */
.floating-cart.bump {
    animation: fcBump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes fcBump {
    0%   { transform: scale(1) translateY(0); }
    40%  { transform: scale(1.15) translateY(-3px); }
    100% { transform: scale(1) translateY(0); }
}

@media (max-width: 600px) {
    .floating-cart {
        width: 54px;
        height: 54px;
        bottom: 18px;
        right: 18px;
    }
    .floating-cart svg { width: 23px; height: 23px; }
    .floating-cart-badge {
        min-width: 20px;
        height: 20px;
        font-size: 0.68rem;
    }
}
@media (max-width: 380px) {
    .floating-cart { width: 50px; height: 50px; bottom: 14px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .floating-cart,
    .floating-cart svg { transition: opacity 0.2s ease; }
    .floating-cart.visible::before { animation: none; }
    .floating-cart.bump { animation: none; }
    .floating-cart:hover { transform: none; }
    .floating-cart:hover svg { transform: none; }
}

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* Language */
.lang-switcher { position: relative; }
.lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}
.lang-btn:hover { border-color: var(--border-hover); color: var(--text-secondary); }
.lang-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.2s;
    z-index: 50;
    box-shadow: var(--shadow-lg);
}
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 0.825rem;
    transition: all 0.15s;
}
.lang-option:hover { background: var(--surface-hover); color: var(--text); }
.lang-option.active { color: var(--accent); font-weight: 600; }

/* Navbar collapse (Bootstrap-style) */
.navbar-collapse {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    justify-content: flex-end;
}
.navbar-toggler {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    cursor: pointer;
    padding: 8px;
    transition: border-color var(--transition);
    order: 2;
    flex-shrink: 0;
}
.navbar-toggler:hover {
    border-color: var(--border-hover);
}
.navbar-toggler span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}
.navbar-toggler.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.navbar-toggler.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.navbar-toggler.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- Hero ---- */
.hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(180deg, #0c0e18 0%, var(--bg) 100%);
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% -10%, rgba(56,189,248,0.08), transparent 70%),
        radial-gradient(ellipse 40% 40% at 80% 20%, rgba(249,115,22,0.05), transparent),
        radial-gradient(ellipse 30% 40% at 15% 60%, rgba(56,189,248,0.03), transparent);
    pointer-events: none;
}
.hero-content { position: relative; max-width: 720px; margin: 0 auto; }
.hero-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}
.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin-bottom: 16px;
    color: var(--text);
}
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.hero-actions { margin-bottom: 48px; }
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}
.hero-stat { text-align: center; }
.hero-stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
}
.hero-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}
.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.4;
}
.btn-primary {
    background: var(--accent);
    color: #0f1117;
    font-weight: 700;
    box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
    color: #0f1117;
}
.btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--accent);
}
.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}
.btn-danger {
    background: transparent;
    color: var(--danger);
    border: 1px solid var(--danger);
}
.btn-danger:hover {
    background: var(--danger);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--danger-soft);
}
.btn-lg { padding: 14px 28px; font-size: 0.95rem; border-radius: var(--radius); }
.btn-sm { padding: 7px 14px; font-size: 0.8rem; }
.btn-block { width: 100%; }
.btn-in-cart {
    background: var(--success) !important;
    border-color: var(--success) !important;
    color: #fff !important;
    cursor: default;
    opacity: 0.9;
    box-shadow: none !important;
}
.btn-in-cart:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* ---- Section Headers ---- */
.section-header { text-align: center; margin-bottom: 48px; }
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 480px;
    margin: 0 auto;
}
.section-heading {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* ---- Products Section (Home) ---- */
.products-section { padding: 40px 0 100px; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.products-grid-sm {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Stagger */
.products-grid .fade-in-card:nth-child(1) { animation-delay: 0s; }
.products-grid .fade-in-card:nth-child(2) { animation-delay: 0.04s; }
.products-grid .fade-in-card:nth-child(3) { animation-delay: 0.08s; }
.products-grid .fade-in-card:nth-child(4) { animation-delay: 0.12s; }
.products-grid .fade-in-card:nth-child(5) { animation-delay: 0.16s; }
.products-grid .fade-in-card:nth-child(6) { animation-delay: 0.20s; }
.products-grid .fade-in-card:nth-child(7) { animation-delay: 0.24s; }

/* ---- Product Card (Home) ---- */
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: var(--text);
    text-decoration: none;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(56,189,248,0.04), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.product-card:hover {
    border-color: rgba(56,189,248,0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
    color: var(--text);
}
.product-card:hover::after { opacity: 1; }
.product-card:hover .product-card-icon img { transform: scale(1.06); }

.product-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 24px 8px;
}
.product-card-icon img {
    width: 72px; height: 72px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}
.product-card-body {
    flex: 1;
    padding: 8px 24px 0;
    position: relative;
    z-index: 1;
}
.product-card-title {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}
.product-card-desc {
    color: var(--text-secondary);
    font-size: 0.825rem;
    line-height: 1.5;
}
.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 24px 24px;
    margin-top: auto;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}
.product-card-price { display: flex; flex-direction: column; }
.price-from {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 500;
}
.price-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--highlight);
    letter-spacing: -0.01em;
}

/* ---- Why Choose Us ---- */
.why-choose-section {
    padding: 60px 0 80px;
    position: relative;
    background: var(--bg-subtle);
}
.why-choose-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(56,189,248,0.04), transparent 70%);
    pointer-events: none;
}
.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    position: relative;
}
.why-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: var(--shadow-sm);
}
.why-card:hover {
    border-color: rgba(56,189,248,0.3);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}
.why-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 16px;
}
.why-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
    color: var(--text);
}
.why-card-desc {
    color: var(--text-secondary);
    font-size: 0.825rem;
    line-height: 1.6;
}
.why-choose-grid .fade-in-card:nth-child(1) { animation-delay: 0s; }
.why-choose-grid .fade-in-card:nth-child(2) { animation-delay: 0.06s; }
.why-choose-grid .fade-in-card:nth-child(3) { animation-delay: 0.12s; }
.why-choose-grid .fade-in-card:nth-child(4) { animation-delay: 0.18s; }

/* ---- Product Detail Page ---- */
.product-page { padding: 32px 0 80px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color var(--transition);
}
.back-link:hover { color: var(--accent); }

/* Product Hero */
.product-hero {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.product-hero::before {
    content: '';
    position: absolute;
    top: -60%; right: -15%;
    width: 350px; height: 350px;
    background: radial-gradient(circle, rgba(56,189,248,0.06), transparent 70%);
    pointer-events: none;
}
.product-hero-icon {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.product-hero-icon img { width: 100px; height: 100px; object-fit: cover; border-radius: 16px; }
.product-hero-info { flex: 1; position: relative; z-index: 1; }
.product-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.product-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 12px;
}
.product-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 16px;
}
.product-hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}
.product-hero-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--highlight);
}
.product-hero-price .price-from {
    font-size: 0.7rem;
    display: block;
    margin-bottom: 2px;
}
.product-hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.product-hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Badges */
.badge, .product-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}
.badge-free {
    background: var(--success-soft);
    color: var(--success);
}
.price-pro-hint {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.price-pro {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--highlight);
    margin-top: 4px;
    letter-spacing: -0.01em;
}
.badge-unavailable {
    background: var(--danger-soft);
    color: var(--danger);
}

/* Video */
.product-video-section { margin-bottom: 40px; }
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

/* Features */
.product-features-section { margin-bottom: 40px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-xs);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: background var(--transition);
}
.feature-item:hover { background: var(--bg-subtle); }
.feature-icon {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}

/* Gallery */
.product-gallery-section { margin-bottom: 40px; }
.gallery-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}
.gallery-grid-videos {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.gallery-grid-images {
    grid-template-columns: repeat(3, 1fr);
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.gallery-video-item video {
    width: 100%;
    display: block;
    border-radius: var(--radius);
}
.gallery-image-item {
    display: block;
    aspect-ratio: 16 / 10;
}
.gallery-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}
.gallery-image-item:hover img {
    transform: scale(1.04);
}
@media (max-width: 768px) {
    .gallery-grid-images { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid-videos { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .gallery-grid-images { grid-template-columns: 1fr; }
}

/* Comparison Table */
.product-comparison-section,
.product-versions-section { margin-bottom: 40px; }
.comparison-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.comparison-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border);
}
.comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--bg-subtle); }
.comparison-feature { font-weight: 600; color: var(--text); }
.comparison-yes { color: #16a34a; font-weight: 700; font-size: 1.1em; }
.comparison-no { color: #dc2626; font-weight: 700; font-size: 1.1em; }
.comparison-diff td { background: rgba(59,130,246,0.06); }
.comparison-diff:hover td { background: rgba(59,130,246,0.10); }

/* ---- Version Tabs ---- */
.version-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.version-tabs::-webkit-scrollbar { display: none; }
.version-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    min-width: 120px;
}
.version-tab:hover { border-color: var(--border-hover); color: var(--text); }
.version-tab.active {
    background: var(--accent-soft);
    border-color: var(--accent);
    color: var(--accent);
}
.version-tab-detail {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}
.version-tab.active .version-tab-detail { color: var(--accent); opacity: 0.8; }
.version-panel { display: none; }
.version-panel.active { display: block; animation: fadeIn 0.25s ease; }

/* ---- Purchase / License Cards ---- */
.purchase-section { margin-bottom: 48px; }
.license-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.license-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-width: 0;
    overflow: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.license-card:hover {
    border-color: rgba(56,189,248,0.25);
    box-shadow: var(--shadow-md);
}
.license-unavailable { opacity: 0.45; pointer-events: none; }
.license-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.license-card-type {
    font-size: 0.95rem;
    font-weight: 700;
}
.license-card-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--highlight);
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}
.license-card-desc {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}
.license-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.license-price-total {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
}
.license-price-total .price-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.85em;
}
.license-price-total .price-discounted {
    color: var(--highlight);
    font-weight: 700;
}
.license-qty-row {
    display: flex;
    align-items: center;
    width: fit-content;
}
.license-buy-buttons {
    display: flex;
    gap: 8px;
}
.license-buy-buttons .btn { flex: 1; font-size: 0.8rem; padding: 10px 12px; }
.btn-paypro { font-size: 0.78rem !important; }

/* Quantity */
.qty-btn {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s;
}
.qty-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.qty-minus { border-radius: var(--radius-xs) 0 0 var(--radius-xs); }
.qty-plus { border-radius: 0 var(--radius-xs) var(--radius-xs) 0; }
.qty-input {
    width: 48px; height: 36px;
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: none; border-right: none;
    color: var(--text);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Volume Discounts */
.volume-details {
    margin-top: 14px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}
.volume-details summary {
    cursor: pointer;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 0;
    transition: color var(--transition);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}
.volume-details summary::-webkit-details-marker { display: none; }
.volume-details summary::before {
    content: '';
    width: 0; height: 0;
    border-left: 4px solid currentColor;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    transition: transform 0.2s;
}
.volume-details[open] summary::before { transform: rotate(90deg); }
.volume-details summary:hover { color: var(--accent-hover); }

.discount-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.discount-table th {
    text-align: left;
    padding: 6px 8px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}
.discount-table td {
    padding: 6px 8px;
    font-size: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.discount-table tr:last-child td { border-bottom: none; }
.discount-table.compact th { padding: 5px 6px; }
.discount-table.compact td { padding: 5px 6px; font-size: 0.72rem; }
.savings-cell { color: var(--success); font-weight: 600; }

/* Unavailable */
.product-unavailable-notice {
    background: var(--danger-soft);
    border: 1px solid rgba(248,113,113,0.15);
    border-radius: var(--radius-xs);
    padding: 14px;
    text-align: center;
    color: var(--danger);
    font-weight: 600;
    font-size: 0.825rem;
}

/* Manual */
.manual-section { margin-bottom: 40px; }

/* Related */
.related-section { margin-bottom: 40px; }

/* ---- Cart Page ---- */
.cart-page { padding: 40px 0 80px; }
.page-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.empty-state svg { margin-bottom: 16px; }
.empty-state p { font-size: 1rem; margin-bottom: 24px; }

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 10px; }
.cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto auto;
    gap: 16px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    transition: border-color var(--transition);
    box-shadow: var(--shadow-sm);
}
.cart-item:hover { border-color: var(--border-hover); }
.cart-item-name { font-size: 0.925rem; font-weight: 600; margin-bottom: 2px; }
.cart-item-category { font-size: 0.75rem; color: var(--text-muted); }
.cart-item-price { text-align: right; }
.price-original {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.price-current { display: block; font-weight: 700; font-size: 0.925rem; }
.price-label { display: block; font-size: 0.65rem; color: var(--text-muted); }
.cart-item-qty { display: flex; align-items: center; }
.cart-item-total { font-size: 1rem; font-weight: 700; min-width: 90px; text-align: right; }
.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-xs);
    transition: all var(--transition);
}
.cart-item-remove:hover { color: var(--danger); background: var(--danger-soft); }
.cart-item-remove svg, .cart-item-remove svg * { pointer-events: none; }

/* Summary Card */
.cart-summary-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    position: sticky;
    top: 88px;
    box-shadow: var(--shadow-sm);
}
.cart-summary-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
}
.summary-total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px solid var(--border);
    margin-bottom: 20px;
}
.summary-divider { height: 1px; background: var(--border); margin: 10px 0; }
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 0.825rem;
}
.summary-item-name { color: var(--text); font-weight: 500; }
.summary-item-qty { color: var(--text-muted); margin-left: 6px; }
.summary-item-price { color: var(--text); font-weight: 600; }
.cart-summary-card .btn { margin-top: 8px; }

/* ---- Cart Sections (PayPro / PayPal split) ---- */
.cart-grand-total {
    margin-bottom: 32px;
}
.cart-grand-total .cart-summary-card {
    position: static;
    max-width: 400px;
}
.cart-grand-total-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.cart-section {
    margin-bottom: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.cart-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.cart-section-paypro .cart-section-title svg { color: var(--accent); }
.cart-section-paypal .cart-section-title svg { color: #009cde; }
.cart-section-summary {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.cart-section-summary .summary-row {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}
.cart-section-summary .btn {
    min-width: 220px;
}
.cart-vat-notice {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 8px;
    padding: 8px 12px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    flex-basis: 100%;
}
.cart-paypal-geo-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--warning-soft, rgba(251, 191, 36, 0.1));
    border-left: 3px solid var(--warning, #fbbf24);
    border-radius: var(--radius-sm);
    margin: 10px 0 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-secondary);
    flex-basis: 100%;
}
.cart-paypal-geo-notice svg {
    flex-shrink: 0;
    color: var(--warning, #fbbf24);
}
.cart-paypal-geo-notice span { flex: 1; }
.cart-item-payment-badge {
    display: inline-block;
    margin-top: 4px;
}
.badge-onetime {
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-xs);
}
.badge-recurring {
    font-size: 0.7rem;
    padding: 2px 8px;
}
.cart-continue-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.cart-continue-row .btn { flex: 0 0 auto; }

/* ---- Checkout Page ---- */
.checkout-page { padding: 40px 0 80px; }
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}
.checkout-form-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.checkout-form { display: flex; flex-direction: column; gap: 14px; }
.checkout-email-notice,
.checkout-invoice-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    margin-bottom: 20px;
}
.checkout-email-notice .notice-icon,
.checkout-invoice-notice .notice-icon {
    flex-shrink: 0;
    color: var(--accent);
    margin-top: 2px;
}
.checkout-email-notice .notice-content strong,
.checkout-invoice-notice .notice-content strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
}
.checkout-email-notice .notice-content p,
.checkout-invoice-notice .notice-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.checkout-ksuse-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.checkout-ksuse-section h3 {
    margin: 0 0 16px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}
.checkout-ksuse-section + .checkout-invoice-notice {
    margin-top: 0;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-input {
    padding: 11px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder { color: var(--text-muted); opacity: 0.5; }
.form-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 8px;
    font-style: italic;
}

/* Payment Methods */
.payment-methods {
    margin-top: 32px;
}
.payment-methods h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.payment-option {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}
.payment-option h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 12px;
}
.payment-note {
    color: var(--text-muted);
    font-size: 0.825rem;
    margin-bottom: 14px;
}

/* ---- Legal Pages ---- */
.legal-page { padding: 40px 0 80px; }
.legal-updated {
    color: var(--text-muted);
    font-size: 0.825rem;
    margin-bottom: 32px;
}
.legal-content {
    color: var(--text);
    line-height: 1.8;
}
.legal-content h2 {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
}
.legal-content p { margin-bottom: 12px; }
.legal-content ul {
    padding-left: 20px;
    margin-bottom: 12px;
}
.legal-content li { margin-bottom: 6px; }
.legal-content a { color: var(--accent); }
.legal-content a:hover { text-decoration: underline; }
.legal-index-list { list-style: none; padding: 0; }
.legal-index-list li { margin-bottom: 16px; }
.legal-index-list a {
    display: block;
    padding: 16px 20px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}
.legal-index-list a:hover {
    border-color: var(--accent);
    background: var(--bg-card);
    text-decoration: none;
}
.legal-highlight {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-xs);
    padding: 20px 24px;
    margin: 20px 0;
}

/* Contact */
.contact-grid { margin-top: 24px; }
.contact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}
.contact-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.contact-item svg { flex-shrink: 0; color: var(--accent); }
.contact-item a { color: var(--text-secondary); }
.contact-item a:hover { color: var(--accent); }

/* ---- Map Page ---- */
.map-page {
    padding: 48px 0 64px;
}
.map-page .page-title {
    margin-bottom: 8px;
}
.map-page .section-subtitle {
    margin-bottom: 32px;
}
.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}
.map-embed iframe {
    display: block;
}

/* ---- Footer ---- */
.site-footer {
    background: #0a0c13;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 56px 0 28px;
    margin-top: 60px;
    color: #a1a8b8;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand .logo-brand { color: #e2e4e9; }
.footer-brand .logo-store { color: var(--accent); opacity: 0.7; }
.footer-tagline {
    color: #adb5bd;
    font-size: 0.85rem;
    margin-bottom: 16px;
    max-width: 280px;
}
.footer-company-info {
    color: #adb5bd;
    font-size: 0.8rem;
    line-height: 1.7;
}
.footer-company-info a { color: #adb5bd; }
.footer-company-info a:hover { color: var(--accent); }
.footer-links h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #e2e4e9;
    margin-bottom: 14px;
}
.footer-links a {
    display: block;
    color: #adb5bd;
    font-size: 0.85rem;
    padding: 3px 0;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}
.footer-bottom p { color: #adb5bd; font-size: 0.75rem; }
.footer-social h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #e2e4e9;
    margin-bottom: 14px;
}
.footer-social-icons {
    display: flex;
    gap: 12px;
}
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    background: rgba(255,255,255,0.04);
    transition: background var(--transition);
}
.social-icon:hover {
    background: rgba(255,255,255,0.1);
}
.social-icon img {
    opacity: 0.85;
    transition: opacity var(--transition);
}
.social-icon:hover img {
    opacity: 1;
}

/* ---- Top Bar (project links) ---- */
.top-bar {
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding: 4px 0;
    font-size: 0.7rem;
}
.top-bar-inner {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.top-bar-link {
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    transition: color var(--transition), border-color var(--transition);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.top-bar-link:hover {
    color: var(--accent);
    border-color: rgba(56,189,248,0.3);
}
.top-bar-separator {
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.1);
    margin: 0 2px;
    align-self: center;
}
.top-bar-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    transition: background var(--transition), transform var(--transition);
}
.top-bar-social:hover {
    background: rgba(255,255,255,0.12);
    transform: scale(1.1);
}
.top-bar-social img {
    width: 14px;
    height: 14px;
    opacity: 0.75;
    transition: opacity var(--transition);
}
.top-bar-social:hover img {
    opacity: 1;
}

/* ---- Toast ---- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--surface);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 12px 22px;
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transform: translateY(80px);
    opacity: 0;
    transition: all var(--transition-spring);
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .product-hero { flex-direction: column; align-items: center; text-align: center; }
    .product-hero-info { text-align: center; }
    .product-description { max-width: 100%; margin-left: auto; margin-right: auto; }
    .product-hero-meta { justify-content: center; }
    .product-hero-actions { justify-content: center; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .why-choose-grid { grid-template-columns: repeat(2, 1fr); }
    .payment-tabs { gap: 10px; }
    .payment-tab { padding: 16px; gap: 12px; }
    .payment-tab-text small { -webkit-line-clamp: 2; }
}

@media (max-width: 900px) {
    .top-bar { display: none; }
    .navbar-toggler { display: flex; }
    /* Hide collapsed navbar on mobile; positioning and column layout only apply when .show is present. */
    .navbar-collapse {
        display: none;
    }
    .navbar-collapse.show {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 8px 16px 16px;
        z-index: 1000;
        box-shadow: var(--shadow-lg);
        gap: 0;
    }
    .navbar-collapse.show .main-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .navbar-collapse.show .main-nav .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: var(--radius-sm);
        width: 100%;
        border-bottom: 1px solid var(--border);
    }
    .navbar-collapse.show .main-nav .nav-link:last-child {
        border-bottom: none;
    }
    .navbar-collapse.show .main-nav .nav-link:hover,
    .navbar-collapse.show .main-nav .nav-link:active {
        background: var(--surface-hover);
    }
    .navbar-collapse.show .header-actions {
        flex-direction: column;
        width: 100%;
        gap: 0;
        border-top: 1px solid var(--border);
        padding-top: 8px;
        margin-top: 4px;
    }
    .navbar-collapse.show .header-actions .nav-link {
        padding: 14px 16px;
        font-size: 1rem;
        width: 100%;
        border-radius: var(--radius-sm);
    }
    .navbar-collapse.show .header-actions .nav-link:hover,
    .navbar-collapse.show .header-actions .nav-link:active {
        background: var(--surface-hover);
    }
    /* Show cart text + badge inline in mobile dropdown */
    .header-actions .nav-cart {
        justify-content: flex-start;
        border-bottom: 1px solid var(--border);
    }
    .navbar-collapse.show .header-actions .cart-badge {
        position: static;
        transform: none;
        margin-left: 8px;
    }
    .navbar-collapse.show .header-actions .cart-badge-hidden {
        transform: none;
        display: none;
    }
    .navbar-collapse.show .header-actions .nav-search {
        justify-content: flex-start;
        padding: 14px 16px !important;
        border-bottom: 1px solid var(--border);
    }
    .navbar-collapse.show .header-actions .nav-search::after {
        content: 'Search';
        margin-left: 8px;
        font-size: 1rem;
    }
    .navbar-collapse.show .lang-switcher {
        width: 100%;
        padding: 10px 16px;
    }
    .navbar-collapse.show .lang-btn {
        width: 100%;
        justify-content: flex-start;
    }
    .hero { padding: 72px 0 60px; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-stats { gap: 20px; }
    .hero-stat-number { font-size: 1.35rem; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .license-cards { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .version-tabs {
        gap: 6px;
        flex-wrap: wrap;
    }
    .version-tab {
        min-width: 0;
        width: calc(50% - 3px);
        padding: 10px 14px;
        font-size: 0.825rem;
        box-sizing: border-box;
    }
    .product-title { font-size: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .form-row { grid-template-columns: 1fr; }
    .cart-item {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
    }
}

@media (max-width: 480px) {
    .why-choose-grid { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
    .header-inner { height: 56px; }
    .products-grid { grid-template-columns: 1fr; }
    .product-card-icon { padding: 20px 20px 4px; }
    .product-card-body { padding: 4px 20px 0; }
    .product-card-footer { padding: 12px 20px 20px; }
    .product-hero { padding: 24px; }
    .product-hero-icon img { width: 80px; height: 80px; }
    .license-buy-buttons { flex-direction: column; }
    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .cart-item-price { text-align: center; }
    .cart-item-total { text-align: center; }
    .cart-item-qty { justify-content: center; }
    .hero-stats { flex-direction: column; gap: 12px; }
    .hero-stat-divider { width: 40px; height: 1px; }
}

/* ---- Manager Page ---- */
.manager-download-section {
    text-align: center;
    padding: 32px 0;
}
.manager-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--highlight);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(249,115,22,0.25);
    transition: var(--transition);
}
.manager-download-btn:hover {
    background: var(--highlight-hover);
    box-shadow: 0 6px 32px rgba(249,115,22,0.35);
    transform: translateY(-2px);
}
.manager-download-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.manager-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.manager-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.manager-step:hover {
    border-color: var(--border-hover);
    background: var(--surface-hover);
}
.manager-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
}

/* Product page: Download Manager button */
.product-download-manager-section {
    text-align: center;
    padding: 24px 0 0;
}
.product-download-manager-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9rem;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.product-download-manager-btn:hover {
    background: var(--accent);
    color: var(--bg);
}

/* ---- Product CTA Banner ---- */
.product-cta-banner {
    margin: 48px 0 40px;
}
.product-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, rgba(56,189,248,0.06), rgba(249,115,22,0.04));
    border: 1px solid rgba(56,189,248,0.2);
    border-radius: var(--radius);
    padding: 40px 48px;
    position: relative;
    overflow: hidden;
}
.product-cta-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56,189,248,0.08), transparent 70%);
    pointer-events: none;
}
.product-cta-text {
    position: relative;
    z-index: 1;
}
.product-cta-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    color: var(--text);
}
.product-cta-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}
.product-cta-btn {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* ---- Product Card (Home) - Updated with dual buttons ---- */
.product-card-link {
    display: flex;
    flex-direction: column;
    color: var(--text);
    text-decoration: none;
    flex: 1;
}
.product-card-link:hover { color: var(--text); }
.product-card-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
}
.product-card-actions .btn {
    font-size: 0.75rem;
    padding: 6px 12px;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Shop Page ---- */
.shop-page {
    padding: 32px 0 80px;
}
.shop-header {
    margin-bottom: 32px;
}
.shop-header .page-title {
    margin-bottom: 8px;
}
.shop-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0;
}
.shop-product-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
}
.shop-product-icon {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 12px;
}

/* ---- Payment Method Tabs ---- */
.payment-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}
.payment-tab {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: left;
    color: var(--text-secondary);
    font-family: var(--font);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}
.payment-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56,189,248,0.04), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
}
.payment-tab:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--text);
}
.payment-tab:hover::before { opacity: 1; }
.payment-tab.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--text);
    box-shadow: var(--shadow-md), 0 0 24px -4px rgba(56,189,248,0.15);
}
.payment-tab.active::before { opacity: 1; }

.payment-tab-icon {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--bg-subtle);
    color: var(--text-muted);
    transition: all 0.25s;
}
.payment-tab.active .payment-tab-icon {
    background: rgba(56,189,248,0.12);
    color: var(--accent);
}
.payment-tab-icon-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: var(--surface);
    border-radius: 50%;
    padding: 2px;
    color: var(--accent);
}
.payment-tab.active .payment-tab-icon-badge {
    background: var(--accent);
    color: #0f1117;
}
.payment-tab-icon-paypal {
    color: #00457C;
}
.payment-tab.active .payment-tab-icon-paypal {
    background: rgba(0,69,124,0.1);
    color: #0070BA;
}

.payment-tab-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.payment-tab-text strong {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    line-height: 1.3;
}
.payment-tab-text small {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.payment-tab.active .payment-tab-text small {
    color: var(--text-secondary);
}

/* Payment Tab Content */
.payment-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}
.payment-tab-content.active {
    display: block;
}

/* Product Sections inside tabs */
.shop-product-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}
.shop-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.shop-section-icon {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.shop-section-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 16px;
}
.shop-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.shop-section-link {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}
.shop-section-link:hover {
    color: var(--accent-hover);
}

/* Shop page: license cards inside product sections */
.shop-product-section .license-cards {
    gap: 14px;
}
.shop-product-section .version-tabs {
    margin-bottom: 20px;
}

/* PayPro Buy button */
.btn-paypro-buy {
    gap: 8px;
}
.btn-paypro-buy svg {
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
}
.btn-paypro-buy:hover svg {
    opacity: 1;
    transform: translate(1px, -1px);
}

/* Recurring badge */
.badge-recurring {
    background: rgba(56,189,248,0.1);
    color: var(--accent);
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 100px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

/* License price period suffix */
.license-price-period {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 2px;
}

/* Subscription price block: first payment + recurring renewal */
.license-price-subscription {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.license-price-subscription .license-price-first-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}
.license-price-subscription .license-price-first-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.license-price-subscription .license-price-first {
    font-size: 1.5rem;
    color: var(--highlight);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.license-price-subscription .license-price-renewal-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}
.license-price-subscription .license-price-renewal-label {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.license-price-subscription .license-price-renewal {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.license-price-subscription .license-price-renewal .license-price-period {
    font-size: 0.75rem;
}

/* Volume discount trailing note (e.g. renewal discounts available) */
.volume-details-note {
    margin: 8px 0 0;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Not available notice (inline text) */
.shop-not-available-notice {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-style: italic;
    padding: 16px 0;
}

/* ---- Responsive: CTA Banner ---- */
@media (max-width: 768px) {
    .product-cta-inner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
        gap: 20px;
    }
    .product-card-actions {
        flex-direction: column;
    }
    .product-card-actions .btn {
        width: 100%;
    }
    .payment-tabs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .payment-tab {
        padding: 16px;
    }
    .shop-product-section {
        padding: 20px;
    }
    .shop-section-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
@media (max-width: 480px) {
    .product-cta-inner {
        padding: 24px 20px;
    }
    .product-cta-title {
        font-size: 1.2rem;
    }
    .shop-product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .payment-tab {
        padding: 14px;
        gap: 10px;
    }
    .payment-tab-icon {
        width: 40px;
        height: 40px;
    }
    .payment-tab-text strong {
        font-size: 0.825rem;
    }
    .payment-tab-text small {
        font-size: 0.7rem;
    }
}

/* ---- Search Page ---- */
.search-form-wrapper { margin-top: 32px; }
.search-input-group {
    display: flex;
    gap: 12px;
    max-width: 600px;
}
.search-input {
    flex: 1;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--accent); }
.search-input::placeholder { color: var(--text-muted); }
.search-btn { white-space: nowrap; }
@media (max-width: 480px) {
    .search-input-group { flex-direction: column; }
}

/* ---- Mobile: price stacking in license cards ---- */
@media (max-width: 480px) {
    .license-price-total {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .license-price-total .price-original {
        font-size: 0.75em;
    }
    .license-card-price {
        font-size: 1.5rem;
    }
    .version-tab {
        font-size: 0.78rem;
        padding: 8px 10px;
    }
}

/* ========== 404 Error Page ========== */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    text-align: center;
    padding: 80px 0;
}
.error-content {
    max-width: 520px;
    margin: 0 auto;
}
.error-code {
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent), #818cf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.85;
    margin-bottom: 16px;
}
.error-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}
.error-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 24px;
}
.error-countdown {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 32px;
}
.error-countdown span {
    font-weight: 700;
    color: var(--accent);
}
.error-actions {
    margin-bottom: 24px;
}
.error-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
}
.error-links a {
    color: var(--text-secondary);
    transition: color var(--transition);
}
.error-links a:hover {
    color: var(--accent);
}
.error-links-sep {
    color: var(--text-muted);
    opacity: 0.5;
}

/* ===========================
   Country autocomplete
   =========================== */
.autocomplete-wrapper {
    position: relative;
}
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    list-style: none;
    padding: 4px 0;
    margin: 4px 0 0 0;
    display: none;
    box-shadow: var(--shadow-md);
}
.autocomplete-dropdown li {
    padding: 10px 14px;
    cursor: pointer;
    color: var(--text);
    transition: background var(--transition), color var(--transition);
}
.autocomplete-dropdown li:hover,
.autocomplete-dropdown li.active {
    background: var(--surface-hover);
    color: var(--accent);
}
