:root {
    --primary: #e63946;
    --secondary: #1d3557;
    --dark: #0f172a;
    --darker: #020617;
    --card: #1e293b;
    --text: #f1f5f9;
    --text-muted: #b0bdd0;
    --border: #334155;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--darker); color: var(--text); line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column; }
html.fonts-loaded body { font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
a { color: var(--primary); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 10001; padding: 0.75rem 1rem;
    background: var(--primary); color: #fff; text-decoration: none; font-weight: 700; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.main-content { flex: 1; padding-top: 80px; }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(15,23,42,0.97); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0.75rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.4rem; font-weight: 900; background: linear-gradient(135deg, var(--primary), #ff6b6b); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.cart-badge { background: var(--primary); color: white; font-size: 0.65rem; padding: 0.1rem 0.4rem; border-radius: 50px; margin-left: 0.2rem; }
.btn { padding: 0.6rem 1.2rem; border-radius: 8px; font-weight: 600; cursor: pointer; transition: 0.3s; border: none; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--primary), #c1121f); color: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(230,57,70,0.4); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.mobile-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--secondary), var(--dark)); padding: 4rem 1.5rem; text-align: center; }
.hero h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: 1rem; }
.hero p { color: var(--text-muted); max-width: 600px; margin: 0 auto 1.5rem; font-size: 1.05rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Sections */
.section { padding: 3rem 0; }
.section-title { text-align: center; margin-bottom: 2rem; }
.section-title h2 { font-size: 1.8rem; font-weight: 800; }
.section-title p { color: var(--text-muted); }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.product-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: 0.3s; }
.product-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.product-img { width: 100%; height: 180px; object-fit: cover; background: var(--dark); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 3rem; }
.product-img img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 1.2rem; }
.product-cat { font-size: 0.75rem; color: var(--primary); font-weight: 600; text-transform: uppercase; }
.product-name { font-size: 1rem; font-weight: 700; margin: 0.3rem 0; }
.product-name a { color: var(--text); text-decoration: none; }
.product-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 0.8rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.sale-price { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.orig-price { text-decoration: line-through; color: var(--text-muted); font-size: 0.9rem; }
.discount-badge { background: var(--success); color: white; font-size: 0.7rem; padding: 0.15rem 0.4rem; border-radius: 4px; }

/* Category pills */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.cat-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem; text-align: center; text-decoration: none; color: var(--text); transition: 0.3s; }
.cat-card:hover { border-color: var(--primary); background: rgba(230,57,70,0.1); }
.cat-card i { font-size: 1.8rem; color: var(--primary); margin-bottom: 0.5rem; display: block; }

/* Forms */
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.75rem; background: var(--dark); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text); font-size: 0.9rem; font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1.5rem; }
.card h3 { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.card h3 i { color: var(--primary); }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 0; overflow: hidden; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 1rem 1.25rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--primary); font-size: 1.25rem; font-weight: 700; flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item p { color: var(--text-muted); padding: 1rem 1.25rem 1.15rem; font-size: 0.95rem; line-height: 1.7; }

/* Cart upsells */
.upsell-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.upsell-card { background: var(--dark); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; position: relative; }
.upsell-card:hover { border-color: var(--primary); }
.upsell-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: var(--primary); background: rgba(230,57,70,0.12); padding: 0.2rem 0.55rem; border-radius: 999px; margin-bottom: 0.65rem; }
.upsell-body strong { display: block; font-size: 0.95rem; line-height: 1.35; }

/* Flash */
.flash { padding: 1rem; border-radius: 8px; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.flash-success { background: rgba(16,185,129,0.1); border: 1px solid var(--success); color: var(--success); }
.flash-error { background: rgba(239,68,68,0.1); border: 1px solid var(--danger); color: var(--danger); }
.flash-warning { background: rgba(245,158,11,0.1); border: 1px solid #f59e0b; color: #f59e0b; }

/* Shop filters */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding: 2rem 0; }
.sidebar-filter { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem; height: fit-content; position: sticky; top: 90px; }
.filter-group { margin-bottom: 1.2rem; }
.filter-group h4 { font-size: 0.85rem; margin-bottom: 0.6rem; color: var(--text-muted); text-transform: uppercase; }
.filter-group a { display: block; padding: 0.4rem 0; color: var(--text-muted); text-decoration: none; font-size: 0.9rem; }
.filter-group a:hover, .filter-group a.active { color: var(--primary); }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.search-box { display: flex; gap: 0.5rem; }
.search-box input { padding: 0.6rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; color: var(--text); min-width: 250px; }

/* Product detail */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; padding: 2rem 0; }
.gallery-main { background: var(--card); border-radius: 12px; height: 400px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border); }
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; }
.qty-input { width: 80px; text-align: center; }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { background: var(--dark); padding: 0.8rem; text-align: left; font-size: 0.8rem; color: var(--text-muted); }
.cart-table td { padding: 1rem 0.8rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-product { display: flex; align-items: center; gap: 1rem; }
.cart-thumb { width: 60px; height: 60px; background: var(--dark); border-radius: 8px; object-fit: cover; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; padding: 2rem 0; }

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 1.5rem;
    align-items: start;
}
.checkout-main-form { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.checkout-summary-card { position: relative; z-index: 2; }
.checkout-pay-btn {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    min-height: 48px;
    font-size: 1rem;
    position: relative;
    z-index: 5;
    pointer-events: auto;
    cursor: pointer;
}
.checkout-aside { min-width: 0; position: relative; z-index: 1; }
.checkout-aside .upsell-panel { margin-top: 0; }
.coupon-box { display: flex; gap: 0.5rem; margin-top: 1rem; }
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.summary-row.total { font-weight: 800; font-size: 1.1rem; color: var(--primary); border: none; margin-top: 0.5rem; }

/* Account */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding: 2rem 0; }
.account-nav { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1rem; height: fit-content; }
.account-nav a { display: flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1rem; color: var(--text-muted); text-decoration: none; border-radius: 8px; font-size: 0.9rem; margin-bottom: 0.2rem; }
.account-nav a:hover, .account-nav a.active { background: rgba(230,57,70,0.1); color: var(--primary); }
.badge { padding: 0.2rem 0.6rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.badge-success { background: rgba(16,185,129,0.15); color: var(--success); }
.badge-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.badge-danger { background: rgba(239,68,68,0.15); color: var(--danger); }
.badge-info { background: rgba(59,130,246,0.15); color: #3b82f6; }

/* Testimonials */
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; }
.testimonial-card .stars { color: #fbbf24; margin-bottom: 0.5rem; }

/* Footer */
footer { background: var(--dark); border-top: 1px solid var(--border); padding: 3rem 1.5rem 1.5rem; margin-top: auto; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { margin-bottom: 1rem; font-size: 0.95rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: var(--text-muted); font-size: 0.85rem; }
.contact-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.contact-links a { color: var(--text-muted); text-decoration: none; display: flex; align-items: center; gap: 0.3rem; }
.contact-links a:hover { color: var(--primary); }

/* Float buttons */
.whatsapp-float { position: fixed; bottom: 2rem; right: 2rem; width: 56px; height: 56px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.6rem; text-decoration: none; box-shadow: 0 4px 15px rgba(37,211,102,0.4); z-index: 999; }
.telegram-float { position: fixed; bottom: 2rem; right: 5.5rem; width: 56px; height: 56px; background: #0088cc; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.4rem; text-decoration: none; box-shadow: 0 4px 15px rgba(0,136,204,0.4); z-index: 999; }

/* AI chat widget — sits above WhatsApp (also inlined in ai-chat-widget.php) */
.tw-ai-chat { position: fixed; bottom: 5.75rem; right: 2rem; z-index: 1100; font-family: inherit; }
.tw-ai-chat__fab {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.7rem 1rem; border: none; border-radius: 999px;
    background: #e63946; color: #fff; font-size: 0.9rem; font-weight: 700;
    cursor: pointer; box-shadow: 0 4px 18px rgba(230,57,70,0.45);
}
.tw-ai-chat__fab:hover { background: #d62839; }
.tw-ai-chat__fab-label { letter-spacing: 0.01em; }
.tw-ai-chat__panel {
    position: absolute; bottom: calc(100% + 0.65rem); right: 0;
    width: min(360px, calc(100vw - 1.5rem));
    background: #0b1220; color: #e8eef7; border: 1px solid rgba(148,163,184,0.25);
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    display: flex; flex-direction: column; max-height: min(520px, 70vh);
}
.tw-ai-chat__head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 0.75rem; padding: 0.85rem 1rem; background: #9f1239;
}
.tw-ai-chat__head strong { display: block; font-size: 0.95rem; }
.tw-ai-chat__sub { display: block; font-size: 0.72rem; opacity: 0.85; margin-top: 0.15rem; }
.tw-ai-chat__close {
    background: transparent; border: none; color: #fff; font-size: 1.4rem;
    line-height: 1; cursor: pointer; padding: 0 0.2rem;
}
.tw-ai-chat__messages {
    flex: 1; overflow-y: auto; padding: 0.85rem; display: flex; flex-direction: column; gap: 0.55rem;
    min-height: 220px; background: #0b1220;
}
.tw-ai-chat__bubble {
    max-width: 92%; padding: 0.55rem 0.75rem; border-radius: 10px;
    font-size: 0.86rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word;
}
.tw-ai-chat__bubble--bot { align-self: flex-start; background: #1e293b; color: #e2e8f0; }
.tw-ai-chat__bubble--user { align-self: flex-end; background: #e63946; color: #fff; }
.tw-ai-chat__typing { opacity: 0.7; }
.tw-ai-chat__escalate {
    display: flex; gap: 0.75rem; padding: 0.35rem 0.85rem 0.15rem;
    font-size: 0.78rem; border-top: 1px solid rgba(148,163,184,0.15);
}
.tw-ai-chat__escalate a { color: #fda4af; text-decoration: none; }
.tw-ai-chat__escalate a:hover { text-decoration: underline; }
.tw-ai-chat__form {
    display: flex; gap: 0.4rem; padding: 0.65rem 0.75rem 0.85rem;
    border-top: 1px solid rgba(148,163,184,0.15); background: #0f172a;
}
.tw-ai-chat__form input {
    flex: 1; border: 1px solid rgba(148,163,184,0.3); border-radius: 8px;
    background: #1e293b; color: #f1f5f9; padding: 0.55rem 0.7rem; font-size: 0.86rem;
}
.tw-ai-chat__form input:focus { outline: none; border-color: #e63946; }
.tw-ai-chat__form button {
    border: none; border-radius: 8px; width: 42px; background: #e63946; color: #fff; cursor: pointer;
}
.tw-ai-chat__form button:disabled { opacity: 0.55; cursor: wait; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Auth pages */
.auth-page { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-box { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem; width: 100%; max-width: 420px; }
.auth-box h2 { text-align: center; margin-bottom: 1.5rem; }
.auth-links { text-align: center; margin-top: 1rem; font-size: 0.9rem; color: var(--text-muted); }

/* Pagination */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span { padding: 0.5rem 0.9rem; border: 1px solid var(--border); border-radius: 6px; color: var(--text-muted); text-decoration: none; }
.pagination a:hover, .pagination span.active { background: var(--primary); color: white; border-color: var(--primary); }

/* Reviews */
.review-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.review-item:last-child { border: none; }

@media (max-width: 900px) {
    .shop-layout, .cart-layout, .account-layout, .product-detail, .checkout-layout { grid-template-columns: 1fr; }
    .sidebar-filter, .account-nav { position: static; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--border); }
    .nav-links.active { display: flex; }
    .mobile-toggle { display: block; }
    .hero h1 { font-size: 1.8rem; }
    .hero { padding: 2.5rem 1rem; }
    .telegram-float { right: 2rem; bottom: 5.5rem; }
    .whatsapp-float { bottom: 1.25rem; right: 1.25rem; width: 50px; height: 50px; font-size: 1.4rem; }
    .tw-ai-chat { bottom: 10.5rem; right: 1.25rem; }
    .tw-ai-chat__fab-label { display: none; }
    .tw-ai-chat__fab { width: 50px; height: 50px; padding: 0; justify-content: center; border-radius: 50%; }
    .tw-ai-chat__panel { width: min(340px, calc(100vw - 1rem)); }
    .welcome-popup-card { margin: 0; max-height: calc(100vh - 1.7rem); }
    .container { padding: 0 1rem; }
    .main-content { padding-top: 72px; }
    .form-row { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
    .product-detail { gap: 1.25rem; padding: 1.25rem 0; }
    .gallery-main { height: 280px; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    .search-box { width: 100%; }
    .search-box input { min-width: 0; width: 100%; }
    .shop-toolbar { flex-direction: column; align-items: stretch; }
    .cart-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
    .cart-table th, .cart-table td { font-size: 0.82rem; padding: 0.65rem 0.5rem; }
    .cart-product { min-width: 140px; }
    .coupon-box { flex-direction: column; }
    .coupon-box input, .coupon-box button { width: 100%; }
    .summary-row { font-size: 0.9rem; }
    .btn { min-height: 44px; }
    .btn-sm { min-height: 38px; }
    .auth-box { padding: 1.35rem; margin: 0 0.25rem; }
    .referral-link-row { flex-direction: column; align-items: stretch; }
    .referral-link-row input { min-width: 0; width: 100%; }
    .referral-balance-amount { font-size: 1.65rem; }
    .footer-grid { gap: 1.25rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.45rem; }
    .hero p { font-size: 0.92rem; }
    .section-title h2 { font-size: 1.35rem; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .product-body { padding: 0.85rem; }
    .product-name { font-size: 0.92rem; }
    .sale-price { font-size: 1.05rem; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
    .nav-inner { padding: 0.65rem 1rem; }
    .logo { font-size: 1.15rem; }
}

/* Welcome popup (first visit) */
body.welcome-popup-open { overflow: hidden; }
.welcome-popup { position: fixed; inset: 0; z-index: 12000; display: flex; align-items: center; justify-content: center; padding: 0.85rem; }
.welcome-popup[hidden] { display: none !important; }
/* .btn and .welcome-popup-points set display, which would beat the UA [hidden] rule */
.welcome-popup [hidden] { display: none !important; }
.welcome-popup-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.85); backdrop-filter: blur(4px); }
.welcome-popup-card {
    position: relative; width: min(880px, 100%); max-height: min(94vh, 760px); overflow: auto;
    background:
        radial-gradient(ellipse 70% 60% at 50% -15%, rgba(230, 57, 70, 0.22), transparent 62%),
        linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(230, 57, 70, 0.4); border-radius: 16px; padding: 1.05rem 1.35rem 1.1rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.welcome-popup-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    border-radius: 16px 16px 0 0;
    background: linear-gradient(90deg, var(--primary), #f59e0b 50%, var(--success));
}
.welcome-popup-close {
    position: absolute; top: 0.6rem; right: 0.65rem; width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--border); background: rgba(15, 23, 42, 0.8); color: var(--text);
    font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.welcome-popup-close:hover { border-color: var(--primary); color: var(--primary); }
.welcome-popup-head { text-align: center; margin-bottom: 0.55rem; padding: 0 2.2rem; }
.welcome-popup-head h2 {
    font-size: 1.25rem; line-height: 1.25; margin-bottom: 0.15rem;
    display: inline-flex; align-items: center; gap: 0.45rem;
}
.welcome-popup-head h2 i { color: var(--primary); font-size: 1.05rem; }
.welcome-popup-head p { color: var(--text-muted); font-size: 0.76rem; line-height: 1.35; }
.welcome-popup-lead {
    text-align: center; font-size: 0.98rem; font-weight: 700; line-height: 1.3;
    margin-bottom: 0.6rem; padding-bottom: 0.6rem; border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}
.welcome-popup-lead span span { color: var(--primary); }
.welcome-popup-lead .welcome-popup-hindi { font-size: 0.86em; font-weight: 700; }
.welcome-popup-banner {
    display: flex; align-items: center; gap: 0.65rem; margin-bottom: 0.7rem;
    padding: 0.45rem 0.8rem; border-radius: 10px;
    border: 1px solid rgba(16, 185, 129, 0.35); border-left: 3px solid var(--success);
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0.02));
}
.welcome-popup-banner > i { color: var(--success); font-size: 1.05rem; flex-shrink: 0; }
.welcome-popup-banner-body { min-width: 0; }
.welcome-popup-banner-line { font-size: 0.85rem; font-weight: 700; line-height: 1.3; color: var(--text); }
.welcome-popup-banner-line + .welcome-popup-banner-line { margin-top: 0.3rem; }
.welcome-popup-banner-line span span { color: var(--success); }
.welcome-popup-banner-line .welcome-popup-hindi { font-weight: 600; }
.welcome-popup-points {
    list-style: none; margin: 0 0 0.75rem; padding: 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.2rem;
}
.welcome-popup-points li {
    display: flex; gap: 0.5rem; align-items: flex-start;
    font-size: 0.84rem; color: var(--text-muted); line-height: 1.35;
}
.welcome-popup-points li > i { color: var(--success); font-size: 0.85rem; width: 16px; flex-shrink: 0; margin-top: 0.2rem; text-align: center; }
.welcome-popup-points li strong { color: var(--text); font-weight: 700; }
.welcome-popup-hinglish, .welcome-popup-hindi { display: block; }
.welcome-popup-hindi { color: var(--text-muted); font-weight: 500; font-size: 0.9em; margin-top: 0.04rem; }
.welcome-popup-social { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 0.65rem; }
.welcome-popup-channel, .welcome-popup-telegram {
    display: flex; align-items: center; justify-content: center; gap: 0.45rem;
    width: auto; margin: 0; padding: 0.52rem 0.9rem;
    color: #fff; font-weight: 700; font-size: 0.88rem; line-height: 1.2;
    border-radius: 10px; text-decoration: none; transition: background 0.15s ease, transform 0.15s ease;
}
.welcome-popup-channel { background: #25D366; }
.welcome-popup-channel:hover { background: #1ebe57; transform: translateY(-1px); color: #fff; }
.welcome-popup-telegram { background: #229ED9; }
.welcome-popup-telegram:hover { background: #1b8ec2; transform: translateY(-1px); color: #fff; }
.welcome-popup-channel i, .welcome-popup-telegram i { font-size: 1.1rem; }
.welcome-popup-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; }
@media (max-height: 720px) {
    .welcome-popup-head h2 { font-size: 1.15rem; }
    .welcome-popup-lead { font-size: 0.92rem; margin-bottom: 0.5rem; padding-bottom: 0.5rem; }
    .welcome-popup-banner { margin-bottom: 0.55rem; padding: 0.4rem 0.75rem; }
    .welcome-popup-points { gap: 0.42rem 1.1rem; margin-bottom: 0.6rem; }
    .welcome-popup-points li { font-size: 0.82rem; }
}
@media (max-width: 700px) {
    .welcome-popup-points { grid-template-columns: 1fr; }
    .welcome-popup-social { grid-template-columns: 1fr; gap: 0.5rem; }
}
@media (max-width: 480px) {
    .welcome-popup { padding: 0.5rem; }
    .welcome-popup-card { padding: 0.85rem 0.9rem 0.9rem; }
    .welcome-popup-head { padding: 0 1.8rem; margin-bottom: 0.45rem; }
    .welcome-popup-head h2 { font-size: 1.02rem; }
    .welcome-popup-head p { font-size: 0.72rem; }
    .welcome-popup-lead { font-size: 0.86rem; margin-bottom: 0.5rem; padding-bottom: 0.5rem; }
    .welcome-popup-banner { gap: 0.5rem; padding: 0.4rem 0.6rem; margin-bottom: 0.55rem; }
    .welcome-popup-banner-line { font-size: 0.78rem; }
    .welcome-popup-points { gap: 0.4rem; margin-bottom: 0.6rem; }
    .welcome-popup-points li { font-size: 0.79rem; line-height: 1.3; }
    .welcome-popup-channel, .welcome-popup-telegram { padding: 0.48rem 0.75rem; font-size: 0.84rem; }
}

.renew-reminder-banner h3 { font-size: 1.05rem; color: #f59e0b; }
.renew-reminder-banner .btn-sm { font-size: 0.82rem; padding: 0.35rem 0.75rem; }

.also-bought-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.03em; color: var(--primary); background: rgba(230,57,70,0.12);
    padding: 0.18rem 0.5rem; border-radius: 999px; margin-bottom: 0.45rem;
}
.also-bought-section .section-title h2 i { color: var(--primary); margin-right: 0.35rem; }

.referral-share-card .referral-code-pill {
    display: inline-block; font-size: 0.88rem; color: var(--text-muted);
    background: var(--dark); border: 1px solid var(--border); border-radius: 999px;
    padding: 0.35rem 0.75rem; margin-bottom: 0.85rem;
}
.referral-link-row { display: flex; gap: 0.65rem; flex-wrap: wrap; align-items: center; }
.referral-link-row input {
    flex: 1; min-width: 220px; padding: 0.65rem 0.75rem; background: var(--dark);
    border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-family: monospace; font-size: 0.82rem;
}
.referral-register-banner {
    margin-bottom: 1rem; padding: 0.85rem 1rem; border-radius: 8px;
    background: rgba(16,185,129,0.12); border: 1px solid var(--success); color: var(--text-muted); font-size: 0.92rem;
}
.referral-register-banner i { color: var(--success); margin-right: 0.35rem; }

.referral-balance-card {
    border: 1px solid rgba(16,185,129,0.35);
    background: rgba(16,185,129,0.08);
}
.referral-balance-amount {
    font-size: 2rem; font-weight: 800; color: var(--success); line-height: 1.1;
}

/* VPS IP series picker (product page) */
.vps-ip-series-grid { display: grid; gap: 0.75rem; }
.vps-ip-series-option {
    display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.85rem 1rem;
    border: 2px solid var(--border); border-radius: 10px; cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.vps-ip-series-option:hover { border-color: var(--primary); background: rgba(99,102,241,0.06); }
.vps-ip-series-option input { margin-top: 0.25rem; accent-color: var(--primary); flex-shrink: 0; }
.vps-ip-series-option:has(input:checked) { border-color: var(--primary); background: rgba(99,102,241,0.12); }
.vps-ip-series-option-body { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.92rem; }
.vps-ip-prefix { font-family: monospace; color: var(--primary); font-size: 0.88rem; }
.vps-ip-desc, .vps-ip-samples { font-size: 0.82rem; color: var(--text-muted); }
.cart-vps-ip-choice { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.25rem; }
.cart-vps-ip-choice strong { color: var(--text); }
.cart-vps-ip-missing a { color: var(--danger); font-weight: 600; }
@media (max-width: 640px) {
    .vps-ip-series-option { padding: 0.75rem; }
}

/* SEO landing pages */
.seo-breadcrumbs { padding-top: 1rem; font-size: 0.85rem; color: var(--text-muted); }
.seo-bc-sep { opacity: 0.55; margin: 0 0.15rem; }
.seo-landing-hero {
    padding: 2.75rem 0 2.25rem;
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(230,57,70,0.18), transparent 55%),
        linear-gradient(160deg, rgba(29,53,87,0.55) 0%, rgba(15,23,42,0.95) 55%, var(--darker) 100%);
    border-bottom: 1px solid var(--border);
}
.seo-landing-hero-inner { max-width: 900px; }
.seo-landing-kicker { font-size: 0.88rem; color: var(--primary); margin-bottom: 0.55rem; font-weight: 700; letter-spacing: 0.02em; }
.seo-landing-hero h1 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); font-weight: 800; line-height: 1.18; margin-bottom: 0.85rem; color: var(--text); }
.seo-landing-lead { color: var(--text-muted); font-size: 1.08rem; max-width: 680px; margin-bottom: 1.35rem; line-height: 1.65; }
.seo-landing-hero-btns { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.seo-trust-strip {
    list-style: none; display: flex; flex-wrap: wrap; gap: 0.65rem 1.15rem;
    margin: 1.35rem 0 0; padding: 0; color: var(--text-muted); font-size: 0.86rem;
}
.seo-trust-strip li { display: inline-flex; align-items: center; gap: 0.4rem; }
.seo-trust-strip i { color: var(--success); }
.seo-intro-section { padding-top: 2rem; }
.seo-section-h2 { font-size: 1.35rem; margin: 1.75rem 0 1rem; font-weight: 800; }
.seo-landing-content p { color: var(--text-muted); line-height: 1.75; margin-bottom: 1rem; max-width: 780px; }
.seo-landing-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-top: 0.5rem; }
.seo-landing-feature {
    padding: 1.1rem 1.15rem; background: var(--card); border: 1px solid var(--border);
    border-radius: 10px; transition: border-color 0.2s ease, transform 0.2s ease;
}
.seo-landing-feature:hover { border-color: rgba(230,57,70,0.45); transform: translateY(-2px); }
.seo-landing-feature h3 { font-size: 1rem; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.45rem; }
.seo-landing-feature h3 i { color: var(--primary); }
.seo-landing-feature p { font-size: 0.88rem; color: var(--text-muted); margin: 0; max-width: none; }
.seo-howto-section { background: var(--dark); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.seo-howto-steps { list-style: none; display: grid; gap: 1rem; max-width: 820px; margin: 0 auto; }
.seo-howto-step {
    display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.15rem;
    background: var(--card); border: 1px solid var(--border); border-radius: 10px;
}
.seo-howto-num {
    flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 8px;
    background: rgba(230,57,70,0.15); color: var(--primary); font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}
.seo-howto-step h3 { font-size: 1.02rem; margin-bottom: 0.25rem; }
.seo-howto-step p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }
.seo-compare-teaser-wrap { padding-top: 0; }
.seo-compare-teaser {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.35rem 1.5rem; border-radius: 12px; border: 1px solid var(--border);
    background: linear-gradient(120deg, rgba(29,53,87,0.55), rgba(230,57,70,0.1));
}
.seo-compare-teaser h2 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.seo-compare-teaser p { color: var(--text-muted); margin: 0; max-width: 620px; font-size: 0.95rem; }
.seo-plans-section { background: var(--dark); }
.seo-empty-plans {
    text-align: center; padding: 2rem 1.25rem; background: var(--card);
    border: 1px dashed var(--border); border-radius: 12px; color: var(--text-muted);
}
.seo-empty-plans p { margin-bottom: 1rem; }
.seo-related-section { padding-top: 0.5rem; }
.seo-landing-related-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seo-related-chip {
    display: inline-flex; align-items: center; padding: 0.45rem 0.85rem;
    border: 1px solid var(--border); border-radius: 8px; background: var(--card);
    color: var(--text); text-decoration: none; font-size: 0.86rem; font-weight: 600;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.seo-related-chip:hover { border-color: var(--primary); color: var(--primary); }
.seo-final-cta { padding-bottom: 3rem; }
.seo-final-cta-inner {
    text-align: center; padding: 2rem 1.5rem; border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(230,57,70,0.12), rgba(29,53,87,0.4));
}
.seo-final-cta-inner h2 { margin-bottom: 0.5rem; }
.seo-final-cta-inner p { color: var(--text-muted); margin: 0 auto 1.25rem; max-width: 560px; }
.seo-final-cta-inner .seo-landing-hero-btns { justify-content: center; }
.seo-brand-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.seo-brand-hub-card {
    display: block; padding: 1.15rem 1.2rem; background: var(--card); border: 1px solid var(--border);
    border-radius: 12px; text-decoration: none; color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}
.seo-brand-hub-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.seo-brand-hub-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.45rem; }
.seo-brand-hub-card h3 i { color: var(--primary); }
.seo-brand-hub-card p { font-size: 0.86rem; color: var(--text-muted); margin: 0; line-height: 1.55; }
.seo-brand-hub-card .seo-hub-badge {
    display: inline-block; margin-top: 0.65rem; font-size: 0.72rem; font-weight: 700;
    padding: 0.2rem 0.5rem; border-radius: 6px; background: rgba(16,185,129,0.15); color: var(--success);
}
.seo-brand-hub-card .seo-hub-badge.is-request {
    background: rgba(245,158,11,0.15); color: var(--warning);
}
.seo-home-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-bottom: 0.5rem; }
.seo-home-pill {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.85rem;
    border-radius: 8px; border: 1px solid var(--border); color: var(--text); text-decoration: none;
    font-size: 0.88rem; background: var(--card); transition: border-color 0.15s, color 0.15s;
}
.seo-home-pill:hover { border-color: var(--primary); color: var(--primary); }

.seo-longform-wrap { padding-top: 0; }
.seo-longform-article { max-width: 820px; margin: 0 auto; }
.seo-toc { padding: 1rem 1.25rem; margin-bottom: 2rem; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.seo-toc ol { margin: 0.65rem 0 0 1.1rem; color: var(--text-muted); line-height: 1.8; }
.seo-toc a { color: var(--primary); text-decoration: none; }
.seo-toc a:hover { text-decoration: underline; }
.seo-longform-section { margin-bottom: 2rem; }
.seo-longform-section h2 { font-size: 1.35rem; margin-bottom: 0.75rem; line-height: 1.3; }
.seo-longform-section h3 { font-size: 1.05rem; margin: 1rem 0 0.5rem; color: var(--text); }
.seo-longform-section p { color: var(--text-muted); line-height: 1.75; margin-bottom: 0.85rem; }
.seo-longform-list { margin: 0.5rem 0 1rem 1.25rem; color: var(--text-muted); line-height: 1.7; }
.seo-guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.seo-guide-card { padding: 1.25rem; }
.seo-guide-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.seo-guide-card p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.6; }

/* ID credentials (customer + admin) */
.id-credential-card { background: var(--dark); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 0.85rem; font-family: ui-monospace, monospace; font-size: 0.88rem; }
.id-credential-card-compact { padding: 0.55rem 0.65rem; font-size: 0.82rem; }
.id-credential-line { margin-bottom: 0.35rem; word-break: break-all; }
.id-credential-label { color: var(--text-muted); margin-right: 0.25rem; }
.id-credential-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.55rem; }
.id-credential-actions .btn-action, .id-credential-actions .btn { font-size: 0.78rem; padding: 0.3rem 0.55rem; }
.id-credentials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.75rem; }
@media (max-width: 640px) {
    .seo-landing-hero { padding: 1.75rem 0 1.25rem; }
    .seo-landing-hero-btns .btn { width: 100%; justify-content: center; }
    .seo-compare-teaser { flex-direction: column; align-items: flex-start; }
    .seo-howto-step { flex-direction: column; gap: 0.65rem; }
}
