@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700&family=Playfair+Display:ital,wght@0,700;1,700;1,900&display=swap');

/* ===== GLOBAL AUTH MODAL ===== */
#auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}
#auth-modal.show {
    display: flex;
    opacity: 1;
}
.auth-container {
    width: 100%;
    max-width: 400px;
    padding: 40px;
    text-align: center;
}
.auth-step {
    display: none;
}
.auth-step.active {
    display: block;
    animation: authFadeIn 0.4s ease;
}
@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.code-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 32px 0;
}
.code-input {
    width: 50px;
    height: 60px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    outline: none;
    transition: border-color 0.2s;
}
.code-input:focus {
    border-color: var(--accent);
}
.close-auth {
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
}
.close-auth:hover { opacity: 1; }

html {
    /* Remove smooth scroll as it conflicts with dynamic rendering */
    scroll-behavior: auto !important;
}

body {
    /* Prevent browser from anchoring scroll to changing content */
    overflow-anchor: none;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border-color: #e5e5e5;
    --accent: #2962ff;
    --accent-hover: #0039cb;
    --success: #00c853;
    
    --font-serif: 'Outfit', sans-serif;
    --font-sans: 'Inter', sans-serif;
    --font-accent: 'Outfit', sans-serif;

    /* Spacing System */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 80px;
    --space-hero: 100px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.08);
}

.desktop-br { display: inline; }
@media (max-width: 768px) {
    .desktop-br { display: none; }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent mobile zoom on focus */
input, textarea, select {
    font-size: 16px !important;
}


body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    color: var(--text-primary);
    font-weight: 700;
}

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

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

/* Top Bar Marquee */
.top-bar {
    background: var(--text-primary);
    color: #ffffff;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 13px;
    padding: 8px 0;
    overflow: hidden;
    border-bottom: 3px solid var(--accent);
}

.marquee-container {
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, 
        transparent, 
        black 24px, 
        black calc(100% - 24px), 
        transparent
    );
    -webkit-mask-image: linear-gradient(to right, 
        transparent, 
        black 24px, 
        black calc(100% - 24px), 
        transparent
    );
}

.marquee {
    display: flex;
    align-items: center;
    animation: marquee 40s linear infinite;
}

.marquee:hover {
    animation-play-state: paused;
}

.marquee > span {
    margin: 0 12px;
}

.marquee span.separator {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 10px;
}

@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-50%); }
}

/* Navbar */
.navbar {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: var(--font-sans);
    font-weight: 900;
    font-size: 24px;
    letter-spacing: -0.5px;
    min-width: 240px; /* Reserves space for KINGWIRED + Journal */
}

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

.nav-link {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cart-icon {
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.cart-icon:hover {
    color: var(--accent);
}

.cart-icon.has-items {
    color: var(--accent);
}

@keyframes shake {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

.cart-icon.shake {
    animation: shake 0.4s ease-in-out;
}

.cart-container {
    position: relative;
}

.cart-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    padding: 0;
    display: none;
    z-index: 1000;
    overflow: hidden;
}

.cart-dropdown.active {
    display: block;
}

.cart-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.cart-header {
    padding: 16px 20px;
    font-weight: 700;
    font-family: var(--font-sans);
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
}

.cart-items-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

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

.cart-item-info {
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-weight: 600;
    font-size: 14px;
}

.cart-item-price {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-empty {
    padding: 30px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.cart-footer {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 16px;
}

.remove-item {
    color: #ff3b30;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 8px 24px 24px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    z-index: 1000;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-link {
    padding: 12px 0;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
}

/* Buttons */
.btn {
    padding: 14px 28px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 14px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(41, 98, 255, 0.25);
}

.btn-primary:hover {
    background: #1e52d9;
}

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

.btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--text-primary);
}

/* Hero */
.hero {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.mobile-br {
    display: none;
}

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

.hero-search-wrapper {
    display: flex;
    background: #fff;
    padding: 6px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    align-items: center;
    width: 100%;
}

.hero-input-group {
    display: flex;
    align-items: center;
    flex-grow: 1;
    padding-left: 14px;
}

.hero-input-group svg {
    flex-shrink: 0;
}

.hero-input-group input {
    flex-grow: 1;
    border: none;
    padding: 22px 16px;
    font-size: 17px;
    outline: none;
    background: transparent;
    font-family: var(--font-sans);
}

.hero-find-btn {
    padding: 14px 24px;
    border-radius: 14px;
    margin-right: 4px;
    flex-shrink: 0;
}

.eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 58px;
    line-height: 1.0;
    margin: 0 auto 0;
    letter-spacing: -1.5px;
    max-width: 800px;
    position: relative;
}

.hero-title .hero-accent {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 480px;
}

.hero-metrics {
    display: flex;
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.metric-box {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-family: var(--font-sans);
    font-size: 32px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.metric-label {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.hero-sticker {
    position: absolute;
    top: 90%;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
    background: #ff4b4b;
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 75, 75, 0.3);
    z-index: 20;
    pointer-events: none;
    white-space: nowrap;
}

/* Hero UI Card */
.abstract-card {
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    max-width: 400px;
    margin-left: auto;
}

.abstract-header {
    background: var(--bg-secondary);
    padding: 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
}

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

.line {
    height: 16px;
    background: var(--bg-secondary);
    border-radius: 4px;
    margin-bottom: 12px;
}

.w-100 { width: 100%; }
.w-80 { width: 80%; }
.w-60 { width: 60%; }

.mt-20 { margin-top: 24px; }

.metrics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.metric-pill {
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.metric-pill.accent {
    background: rgba(41, 98, 255, 0.1);
    color: var(--accent);
}

.abstract-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-tag {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 20px;
}

.btn-fake {
    background: var(--text-primary);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

/* Assets Section */
.assets-section {
    padding: 100px 0;
}

.section-header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
    gap: 32px;
    width: 100%;
}

.section-header h2 {
    font-size: 32px;
    margin: 0;
    line-height: 1;
}

.controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-input, .select-input {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    font-family: var(--font-sans);
    font-size: 14px;
    border-radius: 4px;
    outline: none;
}

.search-input {
    width: 250px;
}

.search-input:focus, .select-input:focus {
    border-color: var(--text-primary);
}

/* Table */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    padding-bottom: 20px; /* spacing for scrollbar */
}

.assets-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    text-align: left;
    table-layout: fixed;
}

.assets-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 16px;
    border-bottom: 2px solid var(--text-primary);
    font-weight: 700;
    white-space: nowrap;
}

.assets-table th:nth-child(1) { width: 28%; }
.assets-table th:nth-child(2) { width: 12%; }
.assets-table th:nth-child(3) { width: 10%; }
.assets-table th:nth-child(4) { width: 12%; }
.assets-table th:nth-child(5) { width: 12%; }
.assets-table th:nth-child(6) { width: 10%; }
.assets-table th:nth-child(7) { width: 160px; }

.assets-table td {
    padding: 24px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.assets-table tbody tr {
    transition: background-color 0.2s;
}

.assets-table tbody tr:hover {
    background-color: var(--bg-secondary);
}

@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    /* Hide Table View on Mobile */
    .table-container {
        display: none !important;
    }
    .view-toggles {
        display: none !important;
    }
    
    /* Grid on mobile: Full width cards */
    .assets-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-top: 20px;
    }
    .asset-card {
        margin: 0;
        width: 100%;
    }
}
    .assets-table td:first-child .item-name {
        text-align: left;
        width: 100%;
        display: block;
    }
    .assets-table .btn {
        width: 100%;
        padding: 12px;
    }
}

/* Grid View */
.assets-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 32px !important;
    width: 100% !important;
    margin: 0 !important;
}

@media (max-width: 1100px) {
    .assets-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .assets-grid {
        grid-template-columns: 1fr !important;
    }
}

.asset-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: border-color 0.2s;
    position: relative;
    overflow: hidden;
}

.asset-card:hover {
    border-color: var(--accent);
}

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

.item-name {
    font-family: var(--font-sans);
    font-weight: 800;
    font-size: 19px;
    margin-bottom: 0;
    color: var(--accent);
}

.item-name a {
    color: var(--accent) !important;
    text-decoration: none;
}

.card-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.tag {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.tag-grey {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.tag-blue {
    background: #eff6ff;
    color: var(--accent);
}

.premium-badge {
    background: var(--accent);
    color: #fff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.standard-quality {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 13px;
}

.external-link {
    color: var(--text-muted);
    opacity: 0.5;
    text-decoration: none;
    margin-left: 4px;
    font-size: 0.8em;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    padding-bottom: 20px;
}

.stat-item label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.stat-item value {
    display: block;
    font-weight: 800;
    font-size: 16px;
    color: var(--text-primary);
}

.card-action {
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.btn.full-width {
    width: 100%;
}

.qty-selector.full-width {
    width: 100%;
}

@media (max-width: 768px) {
    .qty-selector.full-width {
        width: 140px !important;
        margin: 0 auto !important;
    }
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    font-size: 11px;
    border-radius: 4px;
    font-weight: 600;
    margin-right: 4px;
    margin-bottom: 4px;
}

.badge.dofollow {
    background: rgba(0, 200, 83, 0.1);
    color: var(--success);
    border-color: rgba(0, 200, 83, 0.2);
}

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

.price-val {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.assets-table td {
    vertical-align: middle;
}

/* Process Section */
.process-section {
    padding: 100px 0;
    background: var(--text-primary);
    color: #fff;
}

.process-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
}

.process-text h2 {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 40px;
    margin-bottom: 24px;
}

.process-text p {
    color: #aaa;
    font-size: 18px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step {
    border-top: 1px solid #333;
    padding-top: 24px;
}

.step-num {
    font-family: var(--font-sans);
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 16px;
}

.step-content h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 12px;
}

.step-content p {
    color: #888;
    font-size: 14px;
}

/* Founder Section */
.founder-section {
    padding: 60px 0; /* 60px from button to card, 60px padding bottom */
    background: var(--bg-primary);
}

.founder-card {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 60px;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
}

.ceo-signature {
    position: absolute;
    bottom: 25px;
    right: 60px;
    width: 250px;
    height: auto;
    opacity: 0.85;
    pointer-events: none;
    z-index: 5;
    transform: rotate(-2deg);
    filter: brightness(0.8);
}

@media (max-width: 768px) {
    .ceo-signature {
        position: relative;
        width: 280px;
        bottom: auto;
        right: auto;
        margin: 20px auto 0;
    }
    .founder-links {
        justify-content: center !important;
    }
}

.founder-image {
    flex-shrink: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-content h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.founder-bio {
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.founder-quote {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
}

/* Newsletter Section */
.newsletter-section {
    padding: 0 0 60px; /* 0 top padding means the 60px from founder-section bottom works perfectly */
    background: var(--bg-primary);
}

.newsletter-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 60px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 32px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.03);
    max-width: 800px;
    margin: 0 auto;
}

.newsletter-content {
    max-width: 500px;
}

.newsletter-content h3 {
    font-family: var(--font-sans);
    font-size: 32px;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.newsletter-content p {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    flex-grow: 1;
    max-width: 480px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 16px 24px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    outline: none;
    font-size: 15px;
    background: var(--bg-secondary);
    transition: border-color 0.2s, background 0.2s;
}

.newsletter-form input:focus {
    border-color: var(--accent);
    background: #fff;
}

@media (max-width: 992px) {
    .newsletter-card {
        padding: 40px;
        flex-direction: column;
        text-align: center;
    }
    .newsletter-form {
        width: 100%;
        max-width: 100%;
    }
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

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

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
    font-size: 14px;
}

.footer-links h4, .footer-contact h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.footer-links a, .footer-contact a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 14px;
}

.footer-links a:hover, .footer-contact a:hover {
    color: var(--accent);
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-metrics {
        justify-content: center;
    }
    .abstract-card {
        margin: 0 auto;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 11px;
        padding: 6px 0;
    }
    .nav-container {
        height: 64px;
        padding: 0 16px;
    }
    .logo {
        font-size: 20px !important;
    }
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .nav-links {
        display: none;
    }
    .nav-actions #loginBtn {
        display: none;
    }
    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        margin-left: 12px;
        height: 24px;
        width: 24px;
    }
    .cart-items-list {
        max-height: 40vh !important;
    }
    .cart-icon {
        display: flex;
        align-items: center;
        margin: 0;
        font-size: 14px;
    }
    .hero-desc {
        font-size: 15px !important;
        padding: 0 15px;
    }
    .hero-search {
        flex-direction: column;
        gap: 12px;
        padding: 16px !important;
        margin: 0 15px 40px !important;
    }
    .hero-search input {
        width: 100%;
        text-align: left;
        padding: 12px 16px 12px 40px !important;
    }
    .hero-search button {
        width: 100%;
        padding: 16px !important;
    }
    .hero-metrics {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 40px 20px !important;
        border-top: 1px solid var(--border-color);
        margin-top: 20px;
    }
    .metric-box {
        text-align: center;
        width: 100%;
    }
    .metric-value {
        font-size: 28px !important;
    }
    .hero-sticker {
        top: 20px;
        position: relative;
        transform: rotate(-3deg);
        display: inline-block;
        margin-bottom: 15px;
        left: auto;
    }
    .section-header {
        flex-direction: column;
        align-items: center !important;
        text-align: center !important;
        gap: 16px;
    }
    .controls {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
    }
    .select-input {
        width: 100%;
    }
    .view-toggles {
        display: none !important;
    }
    .hero-metrics {
        display: none !important;
    }
    .newsletter-form {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    .newsletter-form input {
        width: 100% !important;
        border-radius: 14px !important;
        padding: 18px 24px !important;
        font-size: 16px !important;
        box-sizing: border-box;
    }
    .newsletter-form .btn {
        width: 100% !important;
        border-radius: 14px !important;
        padding: 18px 24px !important;
        font-size: 16px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .process-section {
        padding: 60px 0 !important;
    }
    .process-grid {
        display: flex !important;
        flex-direction: column;
        text-align: center;
        gap: 0 !important;
    }
    .process-text {
        order: 1;
        margin-bottom: 32px;
    }
    .process-text h2 {
        font-size: 32px !important;
        margin-bottom: 12px !important;
    }
    .process-text p {
        font-size: 16px !important;
        line-height: 1.5 !important;
        margin-bottom: 0 !important;
    }
    .process-steps {
        order: 2;
        display: flex !important;
        flex-direction: column;
        gap: 0 !important;
        margin-bottom: 24px;
    }
    .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 24px;
        position: relative;
        border-top: none !important;
    }
    .step:not(:first-child) {
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-top: 24px;
    }
    .step > div:first-child {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 16px !important; /* Icon margin */
    }
    .step-content h4 {
        font-size: 20px !important;
        margin-bottom: 8px !important;
    }
    .step-content p {
        font-size: 14px !important;
    }
    .process-desktop-cta {
        display: none !important;
    }
    .process-mobile-cta {
        display: block !important;
        order: 3;
        width: 100%;
        margin-top: 24px;
        text-align: center;
    }
    .process-mobile-cta .btn {
        width: 100%;
        padding: 16px !important;
        font-size: 16px;
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-brand .logo {
        justify-content: center;
    }
    .footer-brand p {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-links a {
        justify-content: center;
    }
    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-contact a {
        justify-content: center;
    }
    .footer-bottom > div {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
    }
    .footer-bottom > div > div:last-child {
        justify-content: center;
    }
    .founder-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 24px;
        gap: 32px;
    }
    .founder-links {
        justify-content: center !important;
    }
    .founder-image {
        width: 140px;
        height: 140px;
    }
    .founder-quote {
        font-size: 16px;
    }
}

.hero-title {
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 40px;
    }
    .hero-title {
        font-size: 34px !important;
        line-height: 1.1 !important;
        letter-spacing: -1px !important;
        margin-bottom: 24px !important;
        text-align: center;
    }
    .mobile-br {
        display: block !important;
    }
    .hero-desc br {
        display: none;
    }
    .section-header h2, .process-text h2 {
        font-size: 30px !important;
    }
    .section-header {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 60px !important;
        gap: 24px !important;
    }
    .section-header .controls {
        width: 100% !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
    .founder-content h2, .newsletter-content h3 {
        font-size: 26px !important;
    }
    .hero-desc {
        font-size: 15px !important;
        margin-bottom: 24px !important;
        text-align: center;
    }
    .hero-metrics {
        display: none !important;
    }
    /* Mobile Hero Search Fix */
    .hero-search-wrapper {
        flex-direction: column !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        gap: 12px;
    }
    .hero-input-group {
        background: #fff;
        border-radius: 14px;
        width: 100%;
        padding-left: 14px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
    }
    .hero-input-group input {
        padding: 18px 12px !important;
        font-size: 15px !important;
    }
    .hero-find-btn {
        width: 100%;
        margin-right: 0 !important;
        padding: 18px !important;
        display: block !important;
    }
    /* Chat Widget Mobile */
    #chat-widget-window {
        width: calc(100% - 30px) !important;
        right: 15px !important;
        bottom: 80px !important;
        height: 75vh !important;
        border-radius: 24px !important;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }
    .hero-metrics {
        gap: 12px;
    }
    .metric-value {
        font-size: 20px;
    }
    .hero-sticker {
        top: 28px;
        font-size: 9px;
    }
}

/* Chat Widget Animations */
@keyframes pulse-shadow {
    0% {
        box-shadow: 0 0 0 0 rgba(41, 98, 255, 0.6);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(41, 98, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(41, 98, 255, 0);
    }
}

.chat-btn-pulse {
    animation: pulse-shadow 2s infinite;
}

.qty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 2px;
    border: 1px solid var(--border-color);
    width: fit-content;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: #fff;
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--bg-secondary);
}

.qty-val {
    font-weight: 700;
    font-size: 15px;
    min-width: 24px;
    text-align: center;
}

.blog-card:hover {
    border-color: var(--accent);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 0 auto;
    max-width: 1200px;
}

.blog-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.blog-card-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

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

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


.blog-card-title {
    font-family: var(--font-sans);
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-primary);
    font-weight: 700;
}

.blog-card-excerpt {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.blog-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-link {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
}

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

@media (max-width: 600px) {
    /* Main Blog Page - Vertical Stack */
    .blog-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    .blog-grid > div, .blog-grid > article {
        width: 100% !important;
        min-width: 100% !important;
        flex: none !important;
    }

    /* Homepage Preview - Keep Slider */
    .blog-preview-section .blog-grid {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important; /* Force same height */
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        padding: 0 20px 30px !important;
        gap: 20px !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .blog-preview-section .blog-grid > div, 
    .blog-preview-section .blog-grid > article {
        flex: 0 0 calc(100vw - 40px) !important;
        width: calc(100vw - 40px) !important;
        min-width: calc(100vw - 40px) !important;
        height: auto !important; /* Allow stretch to work */
        display: flex !important;
        flex-direction: column !important;
        scroll-snap-align: center;
    }

    .blog-preview-section .container {
        padding: 0 !important;
        max-width: 100% !important;
    }
    .blog-preview-section h2 {
        padding: 0 20px;
    }
}

/* Slider Dots Styles */
.blog-dots {
    display: none;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

@media (max-width: 600px) {
    .blog-dots {
        display: flex;
    }
}

.blog-dot {
    width: 8px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.blog-dot.active {
    background: #000;
    transform: scale(1.2);
}
@media (max-width: 768px) {
    .cases-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Live Search & FAQ */
.hero-search-item:hover {
    background-color: var(--bg-secondary);
}

details[open] summary svg {
    transform: rotate(180deg);
}

details summary::-webkit-details-marker {
    display: none;
}

.blog-header {
    justify-content: center !important;
}

/* Cookies Banner */
#cookie-banner {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #fff;
    padding: 24px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 10001;
    max-width: 480px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s;
    transform: translateY(120%);
    opacity: 0;
    visibility: hidden;
}

#cookie-banner.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

#cookie-banner p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

#cookie-banner .btn {
    padding: 12px 24px;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 12px;
}

@media (max-width: 600px) {
    #cookie-banner {
        left: 20px;
        right: 20px;
        bottom: 20px;
        flex-direction: column;
        gap: 20px;
        text-align: center;
        max-width: none;
        padding: 30px 24px;
    }
    #cookie-banner .btn {
        width: 100%;
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.preloader-crown {
    width: 80px;
    height: 80px;
    color: var(--accent);
    animation: pulse-crown 1.5s ease-in-out infinite;
}

@keyframes pulse-crown {
    0% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.5; }
}

body.loading {
    overflow: hidden;
    /* Failsafe: if JS fails, unlock scroll after 4s */
    animation: unlockScroll 0s forwards 4s;
}

@keyframes unlockScroll {
    to { overflow: visible; }
}

body.loaded {
    overflow-x: hidden;
    overflow-y: auto;
}

.hero-search-wrapper {
    display: flex;
    background: #fff;
    padding: 6px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
    align-items: center;
    width: 100%;
}

.hero-input-group {
    display: flex;
    align-items: center;
    flex-grow: 1;
    padding-left: 14px;
}

.hero-input-group svg {
    flex-shrink: 0;
}

.hero-input-group input {
    flex-grow: 1;
    border: none;
    padding: 22px 16px;
    font-size: 17px;
    outline: none;
    background: transparent;
    font-family: var(--font-sans);
}

.hero-find-btn {
    padding: 14px 24px;
    border-radius: 14px;
    margin-right: 4px;
    flex-shrink: 0;
}

/* Mobile Hero Search */
@media (max-width: 600px) {
    .hero-search-wrapper {
        flex-direction: column !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        gap: 12px;
    }
    .hero-input-group {
        background: #fff;
        border-radius: 14px;
        width: 100%;
        padding-left: 14px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.05);
        border: 1px solid var(--border-color);
    }
    .hero-input-group input {
        padding: 18px 12px !important;
        font-size: 15px !important;
    }
    .hero-find-btn {
        width: 100%;
        margin-right: 0 !important;
        padding: 18px !important;
        display: block !important;
    }
}

/* Chat Widget */
#chat-widget-window {
    display: none;
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 340px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border: 1px solid var(--border-color);
    z-index: 9999;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--font-sans);
}

#chat-widget-window.active {
    display: flex;
}

.chat-header {
    background: var(--accent);
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#chat-rep-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.3);
}

.chat-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #34c759;
    border-radius: 50%;
    border: 2px solid var(--accent);
}

#chat-messages {
    padding: 20px;
    height: 350px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    flex-grow: 1; /* Key fix for mobile gap */
}

#chat-welcome-msg {
    display: flex;
    gap: 8px;
    max-width: 85%;
}

#chat-welcome-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: auto;
}

#chat-welcome-text {
    background: #fff;
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
}

.chat-input-container {
    padding: 16px;
    background: #fff;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 10px;
    align-items: center;
}

#chat-input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 14px;
    outline: none;
    background: #f8fafc;
    transition: border-color 0.2s;
}

#chat-send {
    background: var(--accent);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

@keyframes onlinePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(52, 199, 89, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52, 199, 89, 0); }
}

.status-dot-pulse {
    animation: onlinePulse 2s infinite;
}
/* Custom Select System */
.custom-select {
    position: relative;
    width: 240px;
    font-family: var(--font-sans);
    user-select: none;
}

.select-trigger {
    background: #fff;
    border: 1px solid var(--border-color);
    height: 48px;
    padding: 0 20px;
    box-sizing: border-box;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.select-trigger:hover {
    border-color: var(--text-muted);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.custom-select.active .select-trigger {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(41, 98, 255, 0.1);
}

.select-trigger svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.custom-select.active .select-trigger svg {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--accent);
}

.select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    z-index: 1000;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px) scale(0.98);
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select.active .select-menu {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.select-option {
    padding: 12px 20px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.select-option:hover {
    background: var(--bg-secondary);
    padding-left: 24px;
    color: var(--accent);
}

.select-option.selected {
    background: rgba(41, 98, 255, 0.05);
    color: var(--accent);
    font-weight: 600;
}

.select-option.selected::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    margin-left: auto;
}

@media (max-width: 768px) {
    #catalog .custom-select {
        width: calc(50% - 6px) !important;
        max-width: none;
    }
    .custom-select {
        width: 100% !important;
        max-width: 100%;
    }
    .select-trigger {
        padding: 0 14px;
        font-size: 13px;
        border-radius: 10px;
    }
}

/* Media Partners Marquee */
.partners-section {
    padding: 30px 0 50px;
    background: none !important;
    overflow: hidden;
    position: relative;
    z-index: 50;
    pointer-events: none; /* Полностью отключаем реакцию на мышь */
}

.partners-section::before,
.partners-section::after {
    display: none !important;
}

.partners-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: scroll 45s linear infinite;
}

.partner-logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.4;
    white-space: nowrap;
    text-decoration: none;
    cursor: default;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .partners-section { padding: 25px 0 10px; }
    .partners-track { gap: 50px; }
    .partner-logo { font-size: 20px; opacity: 0.5; }
}

/* Disable stubborn link underlines in catalog */
.item-name a, 
.item-name a:hover, 
.card-header .item-name a, 
.card-header .item-name a:hover {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* Responsive Navigation Fixes */
@media (max-width: 992px) {
    .desktop-profile {
        display: none !important;
    }
}

/* Pagination */
#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
    margin-bottom: 20px;
}

.pagination-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(41, 98, 255, 0.12);
}

.pagination-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(41, 98, 255, 0.25);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: var(--border-color);
}

@media (max-width: 600px) {
    .pagination-btn {
        width: 40px;
        height: 40px;
        font-size: 13px;
        border-radius: 10px;
    }
    #pagination {
        gap: 6px;
        margin-top: 40px;
    }
}

/* Reviews Ticker */
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.reviews-ticker {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.reviews-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: ticker-scroll 45s linear infinite;
}

.reviews-track:hover {
    animation-play-state: paused;
}

.review-item {
    background: #f8fafc;
    padding: 24px 32px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    min-width: 350px;
    max-width: 450px;
    white-space: normal; /* Allow text wrapping within the card */
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.stars {
    color: #ffb800;
    font-size: 18px;
    letter-spacing: 2px;
}

.review-item p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 500;
}

@media (max-width: 768px) {
    .review-item {
        min-width: 280px;
        padding: 20px 24px;
    }
    .review-item p {
        font-size: 14px;
    }
}
