/* CSS Variables - Premium Minimalist Theme (V3) */
:root {
    /* Brand Colors - Deep & Authoritative */
    --primary-color: #0F172A;
    /* Slate 900 - Almost Black */
    --primary-hover: #334155;
    --accent-color: #2563EB;
    /* Royal Blue for highlights */

    /* Backgrounds */
    --bg-body: #FFFFFF;
    --bg-surface: #FFFFFF;
    --bg-subtle: #F8FAFC;
    /* Slate 50 */

    /* Text */
    --text-main: #0F172A;
    --text-muted: #64748B;
    /* Slate 500 */
    --text-light: #94A3B8;

    /* Borders */
    --border-light: #E2E8F0;

    /* Typography */
    --font-heading: 'Satoshi', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-float: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

/* Global Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.5;
    text-rendering: optimizeSpeed;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo-text,
.price,
.badge {
    font-family: var(--font-heading);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header - Premium Minimalist */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-highlight {
    color: var(--accent-color);
    width: 28px;
    height: 28px;
    stroke-width: 2.5px;
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

/* Search Bar - Floating Capsule */
.search-wrapper {
    flex: 1;
    max-width: 460px;
    margin: 0 60px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px 12px 48px;
    background: var(--bg-subtle);
    border: 1px solid transparent;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-input:focus {
    background: white;
    border-color: var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    outline: none;
}

.search-icon-pos {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

/* Nav Bar - Clean Tabs */
.nav-bar {
    border-top: 1px solid rgba(0, 0, 0, 0.02);
}

.nav-list {
    display: flex;
    gap: 32px;
    height: 52px;
    align-items: center;
}

.nav-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-item a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    height: 100%;
    transition: color 0.2s;
}

.nav-item a .lucide {
    width: 16px;
    height: 16px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.nav-item a:hover {
    color: var(--text-main);
}

.nav-item a:hover .lucide {
    opacity: 1;
}

.nav-item a.active {
    color: var(--text-main);
}

.nav-item a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-main);
}

.nav-item a.sale {
    color: #DC2626;
}

/* User Actions */
.header-actions {
    display: flex;
    gap: 24px;
    align-items: center;
}

.action-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.2s;
}

.action-link:hover {
    color: var(--text-main);
}

.action-link .lucide {
    width: 22px;
    height: 22px;
    stroke-width: 1.5px;
}

.icon-wrapper {
    position: relative;
}

.badge-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #DC2626;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Modern Enterprise Login Button */
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-login:hover {
    background: var(--bg-subtle);
    color: var(--text-main);
    border-color: var(--text-main);
}

.btn-login .lucide {
    width: 18px;
    height: 18px;
}

/* Modern Enterprise Sign Up Button */
.btn-signup {
    padding: 10px 24px;
    background: var(--text-main);
    color: white;
    border: 2px solid var(--text-main);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.btn-signup:hover {
    background: transparent;
    color: var(--text-main);
}

/* Cart Wrapper */
.cart-wrapper {
    position: relative;
    display: inline-flex;
}

/* Modern Enterprise Cart Button */
.btn-cart {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    position: relative;
}

.btn-cart:hover {
    background: var(--bg-subtle);
    color: var(--text-main);
    border-color: var(--text-main);
}

.btn-cart .lucide {
    width: 18px;
    height: 18px;
}

.btn-cart .badge-count {
    position: static;
    margin-left: auto;
    border: none;
}

/* Cart Dropdown */
.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 380px;
    max-height: 500px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.cart-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}

.cart-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.cart-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.cart-close:hover {
    background: var(--bg-subtle);
    color: var(--text-main);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    max-height: 300px;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-subtle);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.cart-item:hover {
    background: #e2e8f0;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    border-radius: 6px;
    padding: 4px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: var(--bg-subtle);
    color: var(--text-main);
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: var(--text-main);
    color: white;
}

.cart-item-quantity span {
    font-size: 13px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: #fee2e2;
    color: #dc2626;
}

.cart-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: var(--text-main);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-checkout:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Add to Cart Button Animation */
.btn-add.added {
    background: #10b981 !important;
    transform: scale(0.95);
}

/* Layout */
.main-wrapper {
    padding: 40px 0;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
}

/* Sidebar */
.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 16px;
}

.filter-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-item a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin: 0 -12px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-item a:hover {
    background: var(--bg-subtle);
    color: var(--text-main);
}

.filter-item-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-item-content .lucide {
    width: 18px;
    height: 18px;
    color: var(--text-light);
}

.filter-item a:hover .filter-item-content .lucide {
    color: var(--text-main);
}

.count {
    font-size: 11px;
    color: var(--text-light);
    background: var(--bg-subtle);
    padding: 2px 8px;
    border-radius: 100px;
}

.filter-item a:hover .count {
    background: white;
}

/* Sidebar Promo Banner */
.sidebar-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-card);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sidebar-banner:hover .banner-img {
    transform: scale(1.05);
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.banner-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--accent-color);
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.banner-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    font-family: var(--font-heading);
}

.banner-btn {
    background: white;
    color: var(--text-main);
    border: none;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.banner-btn:hover {
    background: var(--accent-color);
    color: white;
}

.banner-btn .lucide {
    width: 14px;
    height: 14px;
}


/* Hero Box */
.hero-box {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.7) 100%);
    border-radius: 16px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-float);
    backdrop-filter: blur(8px);
}

.hero-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 60%;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    color: #38BDF8;
    /* Sky blue for pop */
}

.hero-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.hero-price-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: #4ade80;
    white-space: nowrap;
}

.hero-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.hero-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}

.hero-text {
    font-size: 14px;
    color: #94A3B8;
    margin-bottom: 16px;
    line-height: 1.5;
}

.hero-btn {
    background: var(--accent-color);
    color: white;
    padding: 10px 24px;
    border-radius: 100px;
    border: none;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.hero-btn:hover {
    filter: brightness(110%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.hero-decoration {
    position: relative;
    z-index: 1;
}

.hero-icon {
    width: 64px;
    height: 64px;
    color: rgba(255, 255, 255, 0.1);
    transform: rotate(12deg) scale(1.5);
}

/* Trust Strip */
.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: all 0.2s;
}

.trust-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.trust-icon-box {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border-radius: 10px;
    flex-shrink: 0;
}

.trust-icon-box .lucide {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}

.trust-text h5 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 4px;
}

.trust-text p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Grid */
.grid-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* Optimally dense */
    gap: 24px;
}

/* Product Card */
.product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
    border-color: transparent;
}

.card-image-wrapper {
    position: relative;
    padding-top: 100%;
    background: var(--bg-subtle);
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 16px;
}

.card-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
    line-height: 1.4;
}

.card-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
    /* Fixed height for consistency */
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    /* Push to bottom if height varies */
}

.price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.btn-add {
    height: 36px;
    padding: 0 16px;
    border-radius: 100px;
    background: var(--text-main);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-add:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-add .lucide {
    width: 16px;
    height: 16px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    margin-top: 60px;
    border-top: 1px solid var(--border-light);
    background: white;
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}

.footer-inner {
    padding: 48px 40px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer h4 {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

.footer-link {
    display: block;
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .container {
        padding: 0 20px;
    }

    .header-top {
        height: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-decoration {
        display: none;
    }
}

/* Grid */
.grid-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* Optimally dense */
    gap: 24px;
}

/* Product Card */
.product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
    border-color: transparent;
}

.card-image-wrapper {
    position: relative;
    padding-top: 100%;
    background: var(--bg-subtle);
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 16px;
}

.card-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
    line-height: 1.4;
}

.card-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
    /* Fixed height for consistency */
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    /* Push to bottom if height varies */
}

.price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.btn-add {
    height: 36px;
    padding: 0 16px;
    border-radius: 100px;
    background: var(--text-main);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-add:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-add .lucide {
    width: 16px;
    height: 16px;
}

/* Footer */
.footer {
    margin-top: 100px;
    border-top: 1px solid var(--border-light);
    background: white;
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}

.footer-inner {
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-link {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .container {
        padding: 0 20px;
    }

    .header-top {
        height: 60px;
    }


    .hero-content {
        max-width: 100%;
    }

    .hero-decoration {
        display: none;
    }
}

/* Grid */
.grid-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* Optimally dense */
    gap: 24px;
}

/* Product Card */
.product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
    border-color: transparent;
}

.card-image-wrapper {
    position: relative;
    padding-top: 100%;
    background: var(--bg-subtle);
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 16px;
}

.card-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
    line-height: 1.4;
}

.card-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
    /* Fixed height for consistency */
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    /* Push to bottom if height varies */
}

.price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.btn-add {
    height: 36px;
    padding: 0 16px;
    border-radius: 100px;
    background: var(--text-main);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-add:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-add .lucide {
    width: 16px;
    height: 16px;
}

/* Footer */
.footer {
    margin-top: 100px;
    border-top: 1px solid var(--border-light);
    background: white;
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}

.footer-inner {
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-link {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .container {
        padding: 0 20px;
    }

    .header-top {
        height: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-decoration {
        display: none;
    }
}

/* Grid */
.grid-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    /* Optimally dense */
    gap: 24px;
}

/* Product Card */
.product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
    border-color: transparent;
}

.card-image-wrapper {
    position: relative;
    padding-top: 100%;
    background: var(--bg-subtle);
    overflow: hidden;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 16px;
}

.card-category {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
    line-height: 1.4;
}

.card-description {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
    /* Fixed height for consistency */
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    /* Push to bottom if height varies */
}

.price {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.btn-add {
    height: 36px;
    padding: 0 16px;
    border-radius: 100px;
    background: var(--text-main);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-add:hover {
    background: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.btn-add .lucide {
    width: 16px;
    height: 16px;
}

/* Footer */
.footer {
    margin-top: 100px;
    border-top: 1px solid var(--border-light);
    background: white;
    content-visibility: auto;
    contain-intrinsic-size: 300px;
}

.footer-inner {
    padding: 80px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
}

.footer h4 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: var(--text-main);
}

.footer-link {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--text-main);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

    .container {
        padding: 0 20px;
    }

    .header-top {
        height: 60px;
    }

    .product-grid {
        gap: 16px;
    }
}

/* SPLIT HERO LAYOUT */
.split-layout {
    margin-top: 40px;
    margin-bottom: 60px;
}

.split-hero {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
}

.split-content {
    flex: 1;
}

.split-badge-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.split-badge {
    background: #0F172A;
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 100px;
}

.split-rating {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.star-fill {
    fill: #EAB308;
    color: #EAB308 !important;
    width: 16px;
    height: 16px;
}

.split-title {
    font-size: 56px;
    /* Big Impact Title */
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.split-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.split-pricing-row {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-light);
}

.price-block {
    display: flex;
    flex-direction: column;
}

.split-price {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.split-period {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.split-actions {
    display: flex;
    gap: 16px;
}

.btn-split-buy {
    height: 52px;
    padding: 0 32px;
    background: var(--text-main);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.btn-split-buy:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-split-sec {
    height: 52px;
    padding: 0 24px;
    background: white;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-split-sec:hover {
    border-color: var(--text-main);
    background: var(--bg-subtle);
}

.split-trust {
    display: flex;
    gap: 24px;
}

.split-trust span {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.split-trust .lucide {
    color: var(--text-main);
}

/* Right Visual - With Depth & Glow */
.split-visual {
    flex: 0 0 45%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Context for glow */
}

/* Ambient Glow behind the card */
.split-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: -1;
    filter: blur(40px);
    opacity: 0.8;
}

.visual-card-3d {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/3;
    background: white;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* Glassy border */
    /* Deep, layered shadow for realism */
    box-shadow:
        0 20px 40px -10px rgba(15, 23, 42, 0.15),
        0 0 0 1px rgba(15, 23, 42, 0.05),
        0 50px 100px -20px rgba(37, 99, 235, 0.1);
    overflow: hidden;
    position: relative;
    transform: rotateY(-12deg) rotateX(6deg);
    /* Stronger perspective */
    transition: transform 0.4s ease-out;
    perspective: 1000px;
    animation: floatCard 6s ease-in-out infinite;
    /* Living motion */
}

.visual-card-3d:hover {
    transform: rotateY(-2deg) rotateX(2deg) scale(1.02);
    box-shadow:
        0 30px 60px -12px rgba(15, 23, 42, 0.2),
        0 0 0 1px rgba(15, 23, 42, 0.05),
        0 60px 120px -30px rgba(37, 99, 235, 0.2);
    animation-play-state: paused;
    /* Pause float on hover */
}

.visual-card-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Shine effect/Glow overlay */
.visual-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 40%);
    pointer-events: none;
    mix-blend-mode: overlay;
}

@keyframes floatCard {

    0%,
    100% {
        transform: rotateY(-12deg) rotateX(6deg) translateY(0);
    }

    50% {
        transform: rotateY(-12deg) rotateX(6deg) translateY(-15px);
    }
}

/* Features Grid below */
.split-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Feature Cards - Side-by-Side Layout */
.sf-card {
    background: var(--bg-subtle);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.2s;

    /* Grid Layout for Icon + Text */
    display: grid;
    grid-template-columns: auto 1fr;
    /* Icon | Text */
    grid-template-rows: auto auto;
    /* Title | Body */
    column-gap: 20px;
    align-items: start;
}

.sf-card:hover {
    background: white;
    border-color: var(--border-light);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    /* Lift effect */
    transform: translateY(-4px);
}

.sf-icon {
    /* Grid Position */
    grid-column: 1;
    grid-row: 1 / span 2;

    width: 48px;
    height: 48px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    /* Remove bottom margin */
    color: var(--text-main);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
}

.sf-card h3 {
    /* Grid Position */
    grid-column: 2;
    grid-row: 1;

    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    /* Reduced space */
    color: var(--text-main);
    padding-top: 2px;
    /* Visual alignment with icon */
}

.sf-card p {
    /* Grid Position */
    grid-column: 2;
    grid-row: 2;

    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}



/* Responsive */
@media (max-width: 1024px) {
    .split-hero {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .split-description {
        margin: 0 auto 32px;
    }

    .split-pricing-row {
        justify-content: center;
    }

    .split-trust {
        justify-content: center;
    }

    .split-features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .app-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .app-tags,
    .app-meta-row {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Steps Visualizer */
.hero-steps-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 24px;
    margin-left: 32px;
    min-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.steps-header {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.step-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
}

.step-text {
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.step-desc {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1024px) {
    .hero-steps-panel {
        display: none;
    }
}




/* --- NEW HERO STYLES (THIN & COMPACT) --- */

.hero-box {
    height: 140px;
    min-height: 140px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.hero-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-box:hover {
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

/* LEFT: Brand / Call to Action */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 450px;
    flex-shrink: 0;
    z-index: 2;
}

.hero-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

.hero-text {
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.hero-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #38BDF8;
    margin: 0;
}

.hero-tagline {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 6px;
}

.hero-desc {
    font-size: 12px;
    color: #94A3B8;
    line-height: 1.4;
    max-width: 400px;
}

.hero-price {
    font-size: 13px;
    color: #818cf8;
    font-weight: 600;
    margin-top: 8px;
}

.hero-price span {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.feature-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 500;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    height: 32px;
    font-size: 13px;
    width: fit-content;
}


/* CENTER: Steps Flow */
.hero-steps-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 10;
}

.live-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    opacity: 0.7;
    transition: all 0.3s;
    width: auto;
}

.live-step.active {
    opacity: 1;
    transform: scale(1.1);
}

.step-circle {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    margin-bottom: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: none;
}

.step-circle.pulse {
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    border-color: transparent;
}

.step-head {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: none;
    letter-spacing: 0;
}

.live-step.active .step-head {
    color: white;
}

.step-arrow {
    color: rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

/* RIGHT: Animation Area */
.hero-anim-area {
    width: 120px;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.rocket-container {
    position: relative;
    width: 60px;
    height: 40px;
}

.rocket-icon {
    width: 40px;
    height: 40px;
    color: #ec4899;
    animation: rocket-rumble 0.2s infinite;
    filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.5));
}

.particles {
    position: absolute;
    right: 60px;
    width: 100px;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    transform: scaleX(-1);
}

.dot {
    position: absolute;
    width: 10px;
    height: 2px;
    background: linear-gradient(90deg, white, transparent);
    border-radius: 2px;
    opacity: 0;
}

@keyframes rocket-rumble {
    0% {
        transform: translate(0, 0);
    }

    25% {
        transform: translate(-1px, 1px);
    }

    50% {
        transform: translate(0, -1px);
    }

    75% {
        transform: translate(1px, 0);
    }

    100% {
        transform: translate(0, 0);
    }
}

@keyframes fly-back {
    0% {
        transform: translateX(0) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translateX(150px) scale(0.1);
        opacity: 0;
    }
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-box {
        height: auto;
        padding: 24px;
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        max-width: 100%;
    }

    .hero-steps-container {
        width: 100%;
        justify-content: center;
    }

    .hero-anim-area {
        display: none;
    }
}

/* --- Modal Styles (Global) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: all 0.3s;
    text-align: center;
    position: relative;
    max-height: 90vh;
    /* Prevent overflow on generic */
    overflow-y: auto;
    /* Scrollable content */
}

/* Wide variant for legal text */
.modal-content.modal-lg {
    max-width: 800px;
    text-align: left;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    z-index: 10;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.modal-icon-lg {
    width: 64px;
    height: 64px;
    background: #eff6ff;
    color: #2563eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.modal-desc {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 24px;
}

/* Legal Text Styling */
.legal-text h4 {
    font-size: 1.1rem;
    color: #1e293b;
    margin: 24px 0 12px;
    font-weight: 700;
}

.legal-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #475569;
    margin-bottom: 16px;
}

.legal-text ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-text li {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 8px;
}

/* Dashboard Deposit Inputs (Keep compatible) */
.input-wrapper {
    position: relative;
    margin-bottom: 24px;
}

.currency-prefix {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.25rem;
    font-weight: 600;
    color: #94a3b8;
}

.modal-input {
    width: 100%;
    padding: 16px 16px 16px 40px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    outline: none;
    transition: all 0.2s;
    text-align: center;
}

.modal-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.modal-actions {
    display: flex;
    gap: 12px;
}

.btn-modal-cancel {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.btn-modal-confirm {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-modal-confirm:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}