/* =======================================
   CURZY CLOUD — Main Stylesheet
   Dark theme, cyan-blue accents, glassmorphism
   ======================================= */

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

/* Global Form Input Dark Theme */
.form-input, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], textarea, select {
    background: var(--bg-secondary, #0f1424);
    color: var(--text-primary, #f0f4f8);
    border: 1px solid var(--border-color, rgba(56,189,248,0.12));
    border-radius: 8px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
    box-sizing: border-box;
}
.form-input:focus, input[type="text"]:focus, input[type="email"]:focus, input[type="tel"]:focus, input[type="password"]:focus, input[type="number"]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent, #38bdf8);
    box-shadow: 0 0 0 3px var(--accent-glow, rgba(56,189,248,0.25));
}
.form-input::placeholder, input::placeholder, textarea::placeholder {
    color: var(--text-muted, #64748b);
}
select option {
    background: var(--bg-primary, #0a0e1a);
    color: var(--text-primary, #f0f4f8);
}

:root {
    /* Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #0f1424;
    --bg-card: rgba(15, 22, 42, 0.7);
    --bg-card-hover: rgba(20, 30, 55, 0.85);
    --bg-glass: rgba(15, 22, 42, 0.5);
    --border-color: rgba(56, 189, 248, 0.12);
    --border-glow: rgba(56, 189, 248, 0.3);

    --accent: #38bdf8;
    --accent-dark: #0ea5e9;
    --accent-light: #7dd3fc;
    --accent-glow: rgba(56, 189, 248, 0.25);
    --gradient-1: linear-gradient(135deg, #38bdf8, #06b6d4, #22d3ee);
    --gradient-2: linear-gradient(135deg, #0ea5e9, #6366f1);
    --gradient-text: linear-gradient(135deg, #7dd3fc, #38bdf8, #06b6d4);

    --text-primary: #f0f4f8;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --recommend: linear-gradient(135deg, #f59e0b, #f97316);
    --special: linear-gradient(135deg, #a855f7, #6366f1);

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;

    /* Font */
    --font: 'Inter', 'Outfit', -apple-system, sans-serif;

    /* Transition */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-1);
    color: #000;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--border-glow);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(10, 14, 26, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(10, 14, 26, 0.92);
    border-bottom-color: var(--border-color);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 38px;
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.lang-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.lang-flag {
    font-size: 1.1rem;
}

.cart-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.05rem;
    transition: var(--transition);
}

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

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    transform: scale(0);
    transition: var(--transition);
}

.cart-badge.show {
    transform: scale(1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 20px 60px;
    background: radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        var(--bg-primary);
    overflow: hidden;
}

.hero-bg-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-bg-particles .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }

    10% {
        opacity: 0.4;
    }

    90% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-10vh) translateX(30px);
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-suffix {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--border-glow);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 3px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

@keyframes scrollDot {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ---- SECTIONS ---- */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-info {
    background: var(--bg-secondary);
}

.section-home {
    background: var(--bg-primary);
}

.home-content-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.home-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.home-trust {
    padding-top: 24px;
    border-top: 1px dashed var(--border-color);
}

.home-trust h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.home-trust p {
    color: var(--text-muted);
}

.section-automation {
    background: radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 60%),
        var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 16px;
    border-radius: 50px;
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ---- INFO GRID ---- */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.info-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(56, 189, 248, 0.08);
}

.info-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 18px;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- PRICING GRID ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-1);
    opacity: 0;
    transition: var(--transition);
}

.pricing-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(56, 189, 248, 0.08);
}

.pricing-card:hover::before {
    opacity: 1;
}

.pricing-card.recommended {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.08);
}

.pricing-card.recommended::before {
    background: var(--recommend);
    opacity: 1;
}

.pricing-card.special {
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.08);
}

.pricing-card.special::before {
    background: var(--special);
    opacity: 1;
}

.pricing-badge {
    position: absolute;
    top: 16px;
    right: -28px;
    padding: 4px 36px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000;
    transform: rotate(45deg);
}

.pricing-badge.recommend-badge {
    background: var(--recommend);
}

.pricing-badge.special-badge {
    background: var(--special);
    color: #fff;
}

.pricing-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-period {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
}

.pricing-currency {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-specs {
    margin-bottom: 24px;
    flex: 1;
}

.pricing-spec {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.9rem;
}

.pricing-spec i {
    color: var(--accent);
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.pricing-spec span {
    color: var(--text-secondary);
}

.pricing-spec strong {
    color: var(--text-primary);
    margin-left: auto;
    font-weight: 600;
}

.pricing-card .btn {
    margin-top: auto;
}

/* ---- CUSTOM PORT ---- */
.custom-port-section {
    margin-top: 40px;
}

.custom-port-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 24px 28px;
    transition: var(--transition);
    flex-wrap: wrap;
}

.custom-port-card:hover {
    border-color: var(--border-glow);
    box-shadow: 0 8px 30px rgba(56, 189, 248, 0.06);
}

.port-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.port-info {
    flex: 1;
    min-width: 150px;
}

.port-info h3 {
    font-size: 1.1rem;
}

.port-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.port-price {
    font-family: 'Outfit', sans-serif;
}

.port-price .price-amount {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- AUTOMATION GRID ---- */
.automation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.automation-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.automation-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(56, 189, 248, 0.08);
}

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

.auto-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    color: var(--accent);
    font-size: 1.5rem;
}

.auto-badge {
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--accent-glow);
    color: var(--accent);
}

.auto-badge-new {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.auto-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.auto-platform {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #25d366;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.auto-platform i {
    font-size: 0.8rem;
}

.auto-platform-vps {
    color: var(--accent);
}

.auto-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.auto-features {
    margin-bottom: 24px;
    flex: 1;
}

.auto-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auto-features li i {
    color: var(--success);
    font-size: 0.75rem;
}

.auto-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 20px;
}

.price-currency {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.price-amount-lg {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- CART SIDEBAR ---- */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 90vw;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    z-index: 1200;
    display: block;
    /* Switch to block to force standard scrolling */
    overflow-y: auto;
    /* Make ENTIRE sidebar scrollable */
    transform: translateX(100%);
    transition: var(--transition-slow);
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    position: sticky;
    /* Keep header sticky at top if possible */
    top: 0;
    z-index: 10;
}

.cart-header h2 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
}

.cart-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    transition: var(--transition);
}

.cart-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.cart-items {
    padding: 16px 24px;
    /* Pushes content to make natural space */
    min-height: 50vh;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-empty p {
    font-size: 0.95rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    animation: cartItemIn 0.3s ease;
}

@keyframes cartItemIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.cart-item-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-item-price {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent);
    white-space: nowrap;
}

.cart-item-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}

.cart-item-remove:hover {
    background: rgba(239, 68, 68, 0.15);
    color: var(--danger);
}

.cart-footer {
    padding: 20px 24px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px) + 20px);
    /* Extra padding just in case */
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    margin-top: auto;
    /* Keep it at bottom of the flex column but allows it to scroll down */
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 600;
}

.cart-total-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent);
}

.payment-methods h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-label {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    border: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.payment-label i {
    font-size: 0.9rem;
}

.payment-option input:checked+.payment-label {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
}

.payment-label:hover {
    border-color: var(--border-glow);
}

.btn-checkout {
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ---- FOOTER ---- */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    height: 36px;
    margin-bottom: 14px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-socials h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.05rem;
    transition: var(--transition);
}

.social-link:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-glow);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- TOAST ---- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    color: var(--text-primary);
    font-size: 0.88rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: toastIn 0.3s ease, toastOut 0.3s ease 2.5s forwards;
    max-width: 320px;
}

.toast i {
    color: var(--success);
    font-size: 1rem;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

/* ---- REVEAL ANIMATION ---- */
.reveal {
    opacity: 1;
    /* Changed from 0 to ensure it's never completely invisible if JS fails */
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

.reveal:nth-child(5) {
    transition-delay: 0.4s;
}

.reveal:nth-child(6) {
    transition-delay: 0.5s;
}

/* ---- HERO ENTRANCE KEYFRAMES ---- */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .reveal {
    opacity: 0;
}

.hero .reveal.visible {
    animation: heroFadeIn 0.8s ease forwards;
}

.hero .reveal:nth-child(1) {
    animation-delay: 0.1s;
}

.hero .reveal:nth-child(2) {
    animation-delay: 0.3s;
}

.hero .reveal:nth-child(3) {
    animation-delay: 0.5s;
}

.hero .reveal:nth-child(4) {
    animation-delay: 0.7s;
}

.hero .reveal:nth-child(5) {
    animation-delay: 0.9s;
}

/* =============== RESPONSIVE =============== */

/* Tablet */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* Mobile Nav */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 28px;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    .hero {
        padding: 100px 20px 40px;
    }

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

    .hero-stats {
        gap: 28px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .automation-grid {
        grid-template-columns: 1fr;
    }

    .custom-port-card {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        max-width: 100%;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        max-width: 100%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .pricing-card {
        padding: 22px 18px;
    }

    .pricing-amount {
        font-size: 1.6rem;
    }

    .payment-options {
        gap: 6px;
    }

    .payment-label {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

/* Custom scrollbar for cart */
.cart-items::-webkit-scrollbar {
    width: 4px;
}

.cart-items::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ---- NEW REFACTOR STYLES ---- */
/* Search Bar Container */
.search-container {
    max-width: 800px;
    margin: 40px auto 20px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 24px 16px 55px;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

.search-icon {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Category Filters */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: var(--accent);
}

/* Image Slider */
.slider-container {
    max-width: var(--container-max);
    margin: -40px auto 60px;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slider-slide {
    min-width: 100%;
}
.slider-slide img {
    width: 100%;
    border-radius: var(--radius);
    display: block;
}

.slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

/* Cara Mudah Memesan */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    transition: var(--transition);
}
.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
}
.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.step-icon {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    margin-top: 10px;
}
.step-card h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}