@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');
@import url("https://use.fontawesome.com/releases/v6.5.1/css/all.css");

/* ================================================================
   المتغيرات - ESLAM STORE
   ================================================================ */
:root {
    --primary: #FF002E;
    --primary-hover: #FF1A43;
    --secondary: #C00024;
    --bg-main: #050505;
    --bg-card: #101010;
    --border: #2A2A2A;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --glow-red: 0 0 20px rgba(255, 0, 46, 0.4);
    --glow-red-strong: 0 0 40px rgba(255, 0, 46, 0.6);
    --shadow-red: 0 8px 25px rgba(255, 0, 46, 0.3);
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --transition: 180ms ease;
}

.modern-drawer{position:fixed;top:0;bottom:0;right:-380px;width:min(340px,88vw);visibility:hidden}.modern-drawer.open{right:0;visibility:visible}.drawer-overlay{pointer-events:none}.drawer-overlay.show{pointer-events:auto}

/* Home V1 reference: scoped so the refined product/auth pages remain unchanged. */
.legacy-home-page .main-content{max-width:1200px!important;padding:20px!important;padding-top:0!important}.legacy-home-page .hero-slider{height:210px!important;margin:14px 12px 12px!important}.legacy-home-page .hero-slide{padding:24px!important}.legacy-home-page .hero-content h2{font-size:30px!important}.legacy-home-page .hero-bg-icon{font-size:110px!important}.legacy-home-page .quick-features{grid-template-columns:repeat(4,1fr)!important;gap:10px!important;margin:14px 12px 22px!important}.legacy-home-page .quick-feature{display:block!important;background:#101010;border:1px solid rgba(255,0,46,.15);border-radius:18px;padding:14px 8px;text-align:center}.legacy-home-page .quick-feature i{display:block;margin-bottom:8px}.legacy-home-page .quick-feature span{font-size:11px}.legacy-home-page .categories-grid,.legacy-home-page .products-grid{display:flex!important;overflow-x:auto!important;grid-template-columns:none!important;gap:15px!important;padding:6px 2px 18px!important}.legacy-home-page .category-card,.legacy-home-page .product-card{flex:0 0 155px!important;width:155px!important;max-width:155px!important}.legacy-home-page .category-card{border-radius:22px!important;padding:0!important}.legacy-home-page .category-card .card-image{border-radius:22px 22px 0 0!important}.legacy-home-page .featured-section{margin-top:38px}.legacy-home-page .modern-price{color:var(--primary);font-size:14px;font-weight:800;margin:10px 0}.legacy-home-page .modern-buy-btn{display:flex;width:100%;height:38px;border-radius:11px;font-size:11px}.legacy-home-page .product-image{text-decoration:none}
@media(max-width:480px){.legacy-home-page .main-content{padding-inline:10px!important}.legacy-home-page .hero-slider{min-height:175px!important;margin:14px 10px!important}.legacy-home-page .hero-content h2{font-size:22px!important}.legacy-home-page .quick-features{grid-template-columns:repeat(4,1fr)!important;gap:7px!important;margin-inline:10px!important}.legacy-home-page .quick-feature{padding:12px 4px!important}.legacy-home-page .category-card,.legacy-home-page .product-card{flex-basis:145px!important;width:145px!important;max-width:145px!important}}

/* Mobile document scrolling: the old fixed-height flex shell must not clip long pages. */
@media(max-width:768px){html,body{height:auto!important;min-height:100%;overflow-y:auto!important}.legacy-home-page{min-height:100dvh}.legacy-home-page .main-content{flex:none!important;height:auto!important;min-height:0!important;overflow-x:hidden!important;overflow-y:visible!important;-webkit-overflow-scrolling:touch}.legacy-home-page .site-footer{display:none}}

/* ================================================================
   الأساسيات
   ================================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    background: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 80px;
}

a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--primary);outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.is-disabled{opacity:.48;pointer-events:none}.header-center{text-decoration:none;color:inherit}.alert{display:flex;align-items:flex-start;gap:12px;margin-bottom:18px}.app-badge{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:12px}.badge-success{color:#2ed573;background:rgba(46,213,115,.12)}.badge-danger{color:#ff4757;background:rgba(255,71,87,.12)}.badge-default{color:var(--primary);background:rgba(255,0,46,.12)}.empty-state{width:100%;padding:42px 20px;text-align:center;border:1px dashed var(--border);border-radius:var(--radius-lg);color:var(--text-secondary)}.empty-state>i{font-size:42px;color:var(--primary);margin-bottom:14px}.empty-state h3{color:#fff;margin-bottom:8px}.empty-state .hero-btn{display:inline-flex;margin-top:18px}.loading-state{display:flex;align-items:center;justify-content:center;gap:12px;padding:30px;color:var(--text-secondary)}.loading-spinner{width:24px;height:24px;border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.app-pagination{margin-top:24px}.app-pagination nav>div:first-child{display:none}.app-pagination nav>div:last-child{display:flex;justify-content:center}.app-pagination a,.app-pagination span{color:#fff}.site-footer{margin-top:auto;padding:34px max(24px,calc((100% - 1200px)/2));border-top:1px solid var(--border);display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;background:#080808}.site-footer img{width:42px;height:42px;border-radius:50%;vertical-align:middle;margin-left:10px}.site-footer p,.site-footer small{color:var(--text-secondary);font-size:12px}.site-footer nav{display:flex;gap:18px}.site-footer a{color:#fff;text-decoration:none}.site-footer small{grid-column:1/-1}.mobile-footer .footer-btn span{font-size:9px}.app-modal{position:fixed;inset:0;z-index:9000;display:grid;place-items:center;padding:18px}.app-modal.hidden{display:none}.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.8);backdrop-filter:blur(5px)}.app-modal .modal-content{position:relative;width:min(520px,100%);background:var(--bg-card);border:1px solid var(--border);border-radius:var(--radius-lg);padding:26px;box-shadow:var(--glow-red)}.modal-close{position:absolute;left:14px;top:14px;border:0;background:transparent;color:#fff;font-size:20px}.quick-features>div{display:flex;align-items:center;gap:8px}.quick-features i{color:var(--primary)}
@media(max-width:768px){.site-footer{display:none}.main-content{padding-bottom:96px}}@media(min-width:769px){.mobile-footer{display:none!important}body{padding-bottom:0}}

.drawer-close{position:absolute;left:12px;top:12px;width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(255,0,46,.25);border-radius:50%;background:#0d0d0d;color:#fff;cursor:pointer}.drawer-profile-card{position:relative}.drawer-profile-card form .drawer-main-btn{width:100%;border:0;font:inherit;cursor:pointer}.drawer-section-label{font-size:11px;color:#777;padding:0 8px}.modern-nav-menu .nav-item span{flex:1}.modern-nav-menu .nav-item small{font-size:9px;color:#777}.modern-nav-menu .nav-arrow{font-size:11px;width:auto}.drawer-help-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:18px;background:rgba(255,0,46,.07);border:1px solid rgba(255,0,46,.18)}.drawer-help-card>i{color:var(--primary);font-size:22px}.drawer-help-card strong,.drawer-help-card span{display:block}.drawer-help-card span{font-size:10px;color:var(--text-secondary);margin-top:3px}
@media(min-width:769px){.main-content{max-width:1380px;padding-inline:32px}.categories-grid,.products-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(175px,1fr));overflow:visible;gap:18px}.category-card,.product-card{width:100%!important;max-width:none!important;min-width:0;flex:none}.category-card{border-radius:22px;padding:0}.category-card .card-icon{border-radius:22px 22px 0 0}.section-head{margin-top:34px}.section-head h2{font-size:28px}.modern-drawer{width:360px;right:-380px}}

/* ================================================================
   شاشة الترحيب
   ================================================================ */
/* ================================================================
   النوافذ المنبثقة
   ================================================================ */
/* ================================================================
   النماذج العامة
   ================================================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: #FFFFFF;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #2A2A2A;
    border-radius: 10px;
    background: #0A0A0A;
    color: #FFFFFF;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #FF002E;
    box-shadow: 0 0 20px rgba(255, 0, 46, 0.15);
}

.password-input-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #B0B0B0;
    cursor: pointer;
    padding: 8px;
    font-size: 16px;
    min-width: 40px;
    min-height: 40px;
}

.password-toggle:hover {
    color: #FF002E;
}

.password-strength { margin-top: 8px; }
.strength-bar {
    height: 4px;
    background: #FF002E;
    border-radius: 2px;
    transition: all 0.3s ease;
    width: 0%;
}
.strength-text {
    font-size: 12px;
    color: #B0B0B0;
    margin-top: 4px;
    display: block;
}
.password-match {
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.password-match.valid { color: #00ff00; }
.password-match.invalid { color: #FF002E; }

/* ================================================================
   التنبيهات
   ================================================================ */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}
.alert-success {
    background: rgba(0,255,0,0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
}
.alert-error {
    background: rgba(255, 0, 46, 0.1);
    border: 1px solid #FF002E;
    color: #FF002E;
}

.error-message {
    background: rgba(255, 0, 46, 0.1);
    border: 1px solid #FF002E;
    color: #FF002E;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.success-message {
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* ================================================================
   الأزرار الرئيسية
   ================================================================ */
.buy-btn {
    width: 100%;
    padding: 8px;
    background: linear-gradient(135deg, #FF002E, #C00024);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    box-shadow: 0 0 20px rgba(255, 0, 46, 0.1);
}

.buy-btn:hover {
    background: linear-gradient(135deg, #FF1A43, #C00024);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 46, 0.3);
}

/* ================================================================
   الإشعارات
   ================================================================ */
/* ================================================================
   الأدوات
   ================================================================ */
.hidden { display: none !important; }
.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* ================================================================
   المحتوى الرئيسي
   ================================================================ */
.main-content {
    flex: 1;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-top: 0 !important;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin: 40px 0 30px 0;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 0, 46, 0.3);
    letter-spacing: 1px;
}

/* ================================================================
   البحث
   ================================================================ */
.search-container {
    margin: 30px 0;
    display: flex;
    justify-content: center;
}

.search-box {
    display: flex;
    background: var(--bg-card);
    border-radius: 25px;
    border: 1px solid var(--border);
    box-shadow: 0 0 30px rgba(255, 0, 46, 0.05);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
}

.search-input::placeholder { color: var(--text-secondary); }

.search-btn {
    padding: 15px 25px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--secondary));
    box-shadow: 0 0 30px rgba(255, 0, 46, 0.3);
}

.search-results { margin: 30px 0; }
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
    justify-items: center;
}

/* ================================================================
   البطاقات (عام)
   ================================================================ */
.categories-grid, .products-grid {
    display: flex !important;
    overflow-x: auto;
    gap: 15px;
    padding: 6px 2px 18px;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    justify-items: unset !important;
}

.categories-grid::-webkit-scrollbar,
.products-grid::-webkit-scrollbar {
    display: none;
}

.category-card, .product-card {
    flex: 0 0 155px;
    width: 155px !important;
    max-width: 155px !important;
    border-radius: 22px;
    scroll-snap-align: start;
    background: linear-gradient(180deg, #151515, #0b0b0b);
    border: 1px solid rgba(255,0,46,.14);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover, .product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 0, 46, 0.2);
}

.card-image, .product-image {
    height: 118px !important;
    border-radius: 22px 22px 0 0;
    background: radial-gradient(circle at center, rgba(255,0,46,.16), transparent 58%), #080808;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.card-image i, .product-image i {
    font-size: 48px;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(255, 0, 46, 0.3);
}

.card-content, .product-content {
    padding: 12px;
    text-align: center;
}

.card-title, .product-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff !important;
    line-height: 1.3;
}

.card-description, .product-description {
    color: #999;
    margin-bottom: 10px;
    line-height: 1.3;
    font-size: 11px;
}

.product-price {
    font-size: 13px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(255, 0, 46, 0.1);
}

/* ================================================================
   العروض
   ================================================================ */
/* ================================================================
   الفوتر
   ================================================================ */
.site-footer {
    background: rgba(5, 5, 5, 0.95);
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--border);
    margin-top: 50px;
}
.site-footer p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ================================================================
   القائمة السفلية (قديم)
   ================================================================ */
.mobile-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    box-shadow: 0 -5px 30px rgba(0,0,0,0.8);
    z-index: 1000;
}

.footer-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 15px;
    cursor: pointer;
    min-width: 60px;
}
.footer-btn i {
    font-size: 20px;
    margin-bottom: 5px;
}
.footer-btn span { font-size: 12px; }
.footer-btn:hover, .footer-btn.active {
    color: var(--primary);
    transform: translateY(-5px);
    text-shadow: 0 0 20px rgba(255, 0, 46, 0.3);
}

.center-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    padding: 15px;
    border-radius: 50%;
    transform: translateY(-20px);
    box-shadow: 0 0 30px rgba(255, 0, 46, 0.3);
}
.center-btn:hover {
    transform: translateY(-25px) scale(1.1);
    box-shadow: 0 0 50px rgba(255, 0, 46, 0.5);
}
.center-btn span { display: none; }

/* ================================================================
   تأثيرات الظهور
   ================================================================ */
.category-card, .product-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}
.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }

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

/* ================================================================
   منع التكبير في حقول الإدخال على iOS
   ================================================================ */
@media screen and (max-width: 768px) {
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* ================================================================
   دعم للأجهزة ذات الشقوق
   ================================================================ */
@supports (padding: max(0px)) {
    body {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
        padding-top: max(15px, env(safe-area-inset-top));
        padding-bottom: max(15px, env(safe-area-inset-bottom));
    }
}

/* ================================================================
   ===== التصميم الجديد =====
   ================================================================ */

/* ================================================================
   Modern Header
   ================================================================ */
.modern-header {
    height: 68px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(8, 8, 8, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 0, 46, 0.12);
    margin-bottom: 0 !important;
}

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

.header-title h2 {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: .5px;
    line-height: 1.2;
}

.header-title span {
    font-size: 10px;
    color: #FF002E;
    font-weight: 500;
    display: block;
    margin-top: 2px;
}

.header-icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255, 0, 46, 0.08);
    border: 1px solid rgba(255, 0, 46, 0.22);
    color: #FF002E;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-icon:hover {
    background: #181818;
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(255, 0, 46, 0.25);
}

.site-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 0, 46, 0.3));
    border-radius: 50%;
    padding: 4px;
    background: rgba(255, 0, 46, 0.05);
    border: 1px solid rgba(255, 0, 46, 0.12);
}

/* ================================================================
   Modern Drawer
   ================================================================ */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: .35s;
    z-index: 1090;
}
.drawer-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modern-drawer {
    width: 315px;
    right: -330px;
    background: radial-gradient(circle at top, rgba(255,0,46,.18), transparent 35%), #070707;
    transition: .35s;
    z-index: 1100;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
}
.modern-drawer.open { right: 0; }

.drawer-scroll-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    gap: 18px;
    padding: 18px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}
.drawer-scroll-content > * { flex-shrink: 0; }
.drawer-scroll-content::-webkit-scrollbar { width: 4px !important; }
.drawer-scroll-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.03) !important; }
.drawer-scroll-content::-webkit-scrollbar-thumb { background: #FF002E !important; border-radius: 10px !important; }

.drawer-profile-card {
    background: linear-gradient(145deg, rgba(255,0,46,.15), rgba(18,18,18,.96));
    border: 1px solid rgba(255,0,46,.25);
    border-radius: 26px;
    padding: 19px 16px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,.45), 0 0 25px rgba(255,0,46,.12);
}
.drawer-profile-card + .drawer-section-label { margin-top: -4px; }

.drawer-logo {
    width: 64px;
    height: 64px;
    margin: auto;
    display: block;
    padding: 6px;
    border-radius: 50%;
    background: #090909;
    border: 2px solid rgba(255,0,46,.55);
    box-shadow: 0 0 25px rgba(255,0,46,.30);
    object-fit: contain;
    margin-bottom: 10px;
}

.drawer-profile-card h2 {
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    margin: 0;
}
.drawer-profile-card > p {
    margin: 3px 0 0;
    font-size: 12px;
    color: #FF003D;
}

.drawer-orders-link {
    display: flex;
    align-items: center;
    min-height: 46px;
    gap: 11px;
    margin-top: 12px;
    padding: 10px 13px;
    border: 1px solid rgba(255, 0, 46, .3);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 0, 46, .18), rgba(16, 16, 16, .98) 65%);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.drawer-orders-link > i:first-child { width: 20px; color: #FF3155; font-size: 17px; text-align: center; }
.drawer-orders-link span { flex: 1; min-width: 0; font-size: 14px; }
.drawer-orders-link .nav-arrow { color: rgba(255, 255, 255, .66); font-size: 12px; }
.drawer-orders-link:hover,
.drawer-orders-link.active { border-color: rgba(255, 0, 46, .7); background: linear-gradient(135deg, rgba(255, 0, 46, .31), rgba(18, 18, 18, .98) 65%); box-shadow: 0 12px 25px rgba(255, 0, 46, .18); transform: translateX(-2px); }
.drawer-orders-link:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.drawer-user-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 12px 0;
}
.drawer-user-box > div {
    background: #101010;
    border-radius: 14px;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.06);
}
.drawer-user-box > div > span {
    display: block;
    font-size: 11px;
    color: #888;
}
.drawer-user-box > div > strong {
    display: block;
    margin-top: 3px;
    font-size: 14px;
    color: #fff;
}

.drawer-guest-box {
    background: #111;
    border-radius: 16px;
    padding: 14px;
    margin: 18px 0;
    border: 1px solid rgba(255,255,255,.06);
}
.drawer-guest-box span {
    display: block;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.drawer-guest-box p {
    margin: 0;
    font-size: 12px;
    color: #999;
}
.drawer-guest-profile-card { padding-block: 16px; }
.drawer-guest-profile-card .drawer-logo { width: 60px; height: 60px; margin-bottom: 8px; }
.drawer-guest-profile-card > p { margin-top: 2px; }
.drawer-guest-profile-card .drawer-guest-box { padding: 11px 12px; margin: 12px 0; }
.drawer-guest-profile-card .drawer-guest-box span { margin-bottom: 4px; }

.drawer-auth-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.drawer-guest-profile-card .drawer-auth-actions { gap: 8px; }
.drawer-guest-profile-card .drawer-outline-btn { height: 44px; }
.drawer-main-btn {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FF003D, #C00024);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(255,0,46,.25);
}
.drawer-outline-btn {
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,0,46,.40);
    color: #FF003D;
    text-decoration: none;
    font-weight: 700;
}

.modern-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: -8px;
}
.modern-nav-menu .nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    border-radius: 18px;
    background: #101010;
    border: 1px solid rgba(255,255,255,.05);
    text-decoration: none;
    color: #ddd;
    transition: .3s;
}
.modern-nav-menu .nav-item i {
    width: 20px;
    text-align: center;
    color: #FF003D;
    font-size: 18px;
}
.modern-nav-menu .nav-item:hover,
.modern-nav-menu .nav-item.active {
    background: rgba(255,0,46,.10);
    border-color: rgba(255,0,46,.35);
    color: #fff;
    transform: translateX(-4px);
}
.modern-nav-menu .cybermag-sidebar-entry{width:100%;font:inherit;text-align:right;cursor:pointer}.modern-nav-menu .cybermag-sidebar-entry span{display:grid;gap:2px}.modern-nav-menu .cybermag-sidebar-entry strong{color:#e8e8e8;font-size:13px}.modern-nav-menu .cybermag-sidebar-entry small{color:#8d9399;font-size:10px}.modern-nav-menu .cybermag-sidebar-entry__mark{color:#ff3155;font-size:12px;letter-spacing:.04em}.modern-nav-menu .cybermag-sidebar-entry:hover strong,.modern-nav-menu .cybermag-sidebar-entry:focus-visible strong{color:#fff}

/* ================================================================
   Hero Slider
   ================================================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    margin: 12px;
    margin-top: 14px;
    height: 210px;
    border-radius: 28px;
    background: radial-gradient(circle at top right, rgba(255,0,46,.25), transparent 40%), linear-gradient(135deg, #141414, #070707 60%, #190008);
    border: 1px solid rgba(255,0,46,.18);
    box-shadow: 0 20px 40px rgba(0,0,0,.45), 0 0 30px rgba(255,0,46,.12);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    opacity: 0;
    transform: translateX(40px);
    transition: .5s;
}
.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
}

.hero-content {
    position: relative;
    z-index: 2;
}
.hero-badge {
    display: inline-flex;
    background: rgba(255,0,46,.14);
    border: 1px solid rgba(255,0,46,.35);
    color: #FF002E;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}
.hero-content h2 {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
}
.hero-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #bfbfbf;
    margin-bottom: 20px;
}
.hero-btn {
    height: 46px;
    padding: 0 26px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF002E, #C00024);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(255,0,46,.3);
}

.hero-bg-icon {
    position: absolute;
    left: 22px;
    bottom: -18px;
    font-size: 110px;
    color: rgba(255,0,46,.12);
}

.hero-dots {
    position: absolute;
    bottom: 16px;
    right: 26px;
    display: flex;
    gap: 7px;
}
.hero-dots span {
    width: 8px;
    height: 8px;
    border-radius: 20px;
    background: rgba(255,255,255,.25);
}
.hero-dots span.active {
    width: 22px;
    background: #FF002E;
}
.hero-slider + .quick-features { margin-top: 14px; }

/* ================================================================
   Quick Features
   ================================================================ */
.quick-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 14px 12px 22px;
}
.quick-feature {
    background: #101010;
    border: 1px solid rgba(255,0,46,.15);
    border-radius: 18px;
    padding: 14px 8px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.22);
}
.quick-feature i {
    color: #FF002E;
    font-size: 20px;
    margin-bottom: 8px;
}
.quick-feature span {
    display: block;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

/* ================================================================
   Section Head
   ================================================================ */
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin: 26px 4px 14px;
}
.section-head span {
    color: #FF002E;
    font-size: 12px;
    font-weight: 700;
}
.section-head h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    margin: 3px 0 0;
}
.section-head a {
    color: #FF002E;
    font-size: 13px;
    text-decoration: none;
    font-weight: 700;
}
.section-title-box span {
    display: block;
    color: #FF003D;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}
.section-title-box h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}
.section-link {
    color: #FF003D;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

/* ================================================================
   Modern Category Card
   ================================================================ */
.modern-category-card {
    background: linear-gradient(180deg, #161616, #0b0b0b);
    border: 1px solid rgba(255,0,46,.14);
    border-radius: 20px;
    overflow: hidden;
    transition: .35s;
    box-shadow: 0 12px 30px rgba(0,0,0,.30);
}
.modern-category-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255,0,46,.40);
    box-shadow: 0 18px 40px rgba(0,0,0,.45), 0 0 28px rgba(255,0,46,.18);
}
.modern-card-image {
    height: 105px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(255,0,46,.18), transparent 60%), #090909;
    overflow: hidden;
}
.modern-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .35s;
}
.modern-category-card:hover img { transform: scale(1.08); }
.modern-card-content {
    padding: 12px;
    text-align: center;
}
.modern-card-content h3 {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 6px;
}
.modern-card-content p {
    color: #9d9d9d;
    font-size: 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* Main category presentation: strong hierarchy without changing catalog behavior. */
.categories-section .modern-category-card {
    position: relative;
    min-height: 185px;
    background: linear-gradient(145deg, rgba(255,0,46,.12), transparent 42%), linear-gradient(180deg, #171717, #080808);
}
.categories-section .modern-category-card::after {
    content: "\f054";
    position: absolute;
    left: 14px;
    bottom: 15px;
    font: 900 11px/1 "Font Awesome 6 Free";
    color: var(--primary);
    opacity: .8;
}
.categories-section .modern-category-card .card-icon,
.categories-section .modern-card-image {
    height: 125px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 50% 45%, rgba(255,0,46,.25), transparent 58%), #0a0a0a;
    overflow: hidden;
}
.categories-section .modern-category-card .card-icon i,
.categories-section .modern-card-image i {
    font-size: 46px;
    color: var(--primary);
    filter: drop-shadow(0 0 16px rgba(255,0,46,.35));
}
.categories-section .modern-category-card .card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.categories-section .modern-category-card .card-content,
.categories-section .modern-card-content {
    padding: 15px 16px 18px;
    text-align: right;
}

/* ================================================================
   Modern Product Card
   ================================================================ */
.modern-product-card {
    flex: 0 0 170px;
    width: 185px !important;
    background: linear-gradient(180deg, #171717, #0c0c0c);
    border: 1px solid rgba(255,0,46,.18);
    border-radius: 22px;
    overflow: hidden;
    transition: .35s;
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.modern-product-card:hover {
    transform: translateY(-8px);
    border-color: #FF002E;
    box-shadow: 0 15px 40px rgba(255,0,46,.18);
}
.modern-product-image {
    height: 128px !important;
    background: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.modern-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .35s;
}
.modern-product-card:hover img { transform: scale(1.08); }
.modern-product-content {
    padding: 12px;
}
.modern-product-content h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}
.modern-product-content p {
    color: #999;
    font-size: 11px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 30px;
}
.modern-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #FF002E, #c00024);
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    margin: 10px 0;
    box-shadow: 0 8px 20px rgba(255,0,46,.25);
}
.modern-buy-btn {
    width: 100%;
    border-radius: 14px;
    height: 40px;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, #FF002E, #c00024);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: .3s;
}
.modern-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255,0,46,.30);
}

/* Restored special offers section. */
.legacy-home-page .offers-section { margin-top: 38px; }
.offers-grid { display: flex; overflow-x: auto; gap: 14px; padding-bottom: 18px; }
.offers-grid::-webkit-scrollbar { display: none; }
.offer-card {
    min-width: 280px;
    border-radius: 24px;
    background: radial-gradient(circle at top left, rgba(255,0,46,.18), transparent 45%), linear-gradient(145deg, #141414, #090909);
    border: 2px solid var(--border);
    padding: 25px;
    text-align: center;
    position: relative;
    box-shadow: 0 0 20px rgba(255,0,46,.05);
    transition: all .3s ease;
}
.offer-card:hover { transform: translateY(-5px); border-color: var(--primary); box-shadow: 0 10px 30px rgba(255,0,46,.2); }
.offer-badge {
    position: absolute;
    top: -3px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 2px 0 20px rgba(255,0,46,.2);
}
.offer-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.offer-card p { color: var(--text-secondary); margin-bottom: 15px; line-height: 1.5; }
.offer-price { margin-bottom: 15px; }
.new-price { font-size: 18px; font-weight: 700; color: var(--primary); }
.offer-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-weight: 700;
}
.offer-btn:disabled { opacity: .72; cursor: not-allowed; }

/* ================================================================
   Modern Footer
   ================================================================ */
.modern-footer {
    position: fixed;
    left: 16px;
    right: 12px;
    bottom: 12px;
    height: 86px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(10,10,10,.82);
    backdrop-filter: blur(20px);
    border-radius: 34px;
    border: 1px solid rgba(255,0,46,.18);
    box-shadow: 0 18px 45px rgba(0,0,0,.55), 0 0 40px rgba(255,0,46,.08);
    overflow: visible;
    z-index: 100;
    border-top: 1px solid rgba(255,0,46,.18);
}
.footer-glow {
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff0033, transparent);
    opacity: .8;
}
.footer-center {
    position: relative;
    margin-top: -48px;
}
.center-logo-btn {
    width: 72px;
    height: 72px;
    border-radius: 52%;
    background: #0b0b0b;
    border: 3px solid #ff0033;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 35px rgba(255,0,46,.45), 0 0 80px rgba(255,0,46,.18);
    transition: .35s;
}
.center-logo-btn:hover {
    transform: translateY(-5px) scale(1.05);
}
.center-logo-btn img {
    width: 63px;
    height: 50px;
    object-fit: contain;
}

.modern-footer .footer-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 65px;
    height: 65px;
    border-radius: 20px;
    color: #bcbcbc;
    transition: .35s;
    cursor: pointer;
}
.modern-footer .footer-btn i {
    font-size: 22px;
    transition: .35s;
}
.modern-footer .footer-btn span { font-size: 12px; }
.modern-footer .footer-btn.active { color: #ff0033; }
.modern-footer .footer-btn.active i {
    transform: translateY(-3px);
    text-shadow: 0 0 18px rgba(255,0,46,.55);
}
.footer-indicator {
    position: absolute;
    bottom: -4px;
    width: 0;
    height: 4px;
    border-radius: 20px;
    background: #ff0033;
    transition: .35s;
}
.modern-footer .footer-btn.active .footer-indicator {
    width: 34px;
    box-shadow: 0 0 18px rgba(255,0,46,.5);
}
.modern-footer .footer-btn:hover {
    color: #fff;
    transform: translateY(-4px);
}

/* ================================================================
   التجاوب
   ================================================================ */
@media (max-width: 480px) {
    .hero-slider {
        min-height: 175px;
        margin: 14px 10px;
    }
    .hero-content h2 { font-size: 22px; }
    .quick-features {
        grid-template-columns: repeat(4, 1fr);
        gap: 7px;
        margin-inline: 10px;
    }
    .quick-feature {
        padding: 12px 4px;
    }
    .quick-feature span { font-size: 10px; }
    .category-card,
    .product-card {
        flex-basis: 145px;
        width: 145px !important;
        max-width: 145px !important;
    }
}

/* Final cascade overrides for the refined responsive layouts. */
@media(min-width:769px){.product-catalog-section .products-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(190px,1fr))!important}.product-catalog-section .product-card{width:100%!important;max-width:none!important}}
@media(max-width:768px){.main-content{width:100%;max-width:100%;padding-inline:16px!important;overflow-x:hidden;overflow-y:visible}.categories-grid,.products-grid{max-width:100%}}

/* Keep the final card and action above the fixed mobile navigation on every viewport. */
@media(max-width:768px){
    .main-content,
    .legacy-home-page .main-content{
        padding-bottom:calc(150px + env(safe-area-inset-bottom))!important;
    }
}

/* Keep shared dialogs usable when purchase or receipt forms exceed the viewport. */
.app-modal .modal-content{
    max-height:calc(100dvh - 36px);
    overflow-y:auto;
    overscroll-behavior:contain;
}

@media(max-width:480px){
    .app-modal{padding:10px}
    .app-modal .modal-content{max-height:calc(100dvh - 20px);padding:22px 16px}
}
/* ================================================================
   Unified Listing Cards (price-free, navigation-only)
   Scope: Featured Products, Search Results, Category/Product listings.
   Product Details preserve full Price tiers and purchase actions.
   ================================================================ */
.product-card .product-view-link{display:inline-flex;align-items:center;gap:5px;margin-top:6px;padding:6px 10px;border-radius:10px;background:linear-gradient(135deg, rgba(255,0,46,.16), rgba(192,0,36,.16));border:1px solid rgba(255,0,46,.35);color:var(--primary);font-size:11px;font-weight:700;text-decoration:none;transition:.3s}
.product-card .product-view-link:hover{background:linear-gradient(135deg, var(--primary), var(--secondary));color:#fff;box-shadow:0 8px 18px rgba(255,0,46,.28)}
.product-card .product-view-link i{font-size:10px;transition:.3s}
.product-card:hover .product-view-link i{transform:translateX(-3px)}
.product-card .product-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:28px}
.product-card .product-image{position:relative}
.product-card .featured-product{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg, var(--primary), var(--secondary));color:#fff;font-size:12px;box-shadow:0 4px 12px rgba(255,0,46,.45);z-index:2}
.product-card .product-price,.product-card .buy-btn,.product-card .modern-price,.product-card .modern-buy-btn{display:none !important}
.home-product-card .modern-card-content{padding:14px 12px 16px;text-align:center}
.home-product-card .modern-card-content .card-title{font-size:14px;font-weight:700;line-height:1.3;color:#fff;margin:0}
@media(min-width:769px){.product-catalog-section .products-grid{gap:18px}.product-catalog-section .product-card{display:flex;flex-direction:column;min-height:200px}.product-catalog-section .product-card .product-content{display:flex;flex-direction:column;gap:6px;flex:1}.product-catalog-section .product-card .product-view-link{align-self:center;margin-top:auto}}
@media(max-width:480px){.product-card .product-content{padding:10px}.product-card .product-title{font-size:13px}.product-card .product-description{font-size:10px}.home-product-card .modern-card-content{padding:12px 10px 14px}}

.eslam-card-media{position:relative;width:100%;aspect-ratio:1305/1205;overflow:hidden;background:#070707}
.eslam-card-media>.card-image,.eslam-card-media>.card-icon,.eslam-card-media>.product-image{position:absolute;inset:16% 12.5% 17%;height:auto!important;border-radius:0!important;overflow:hidden;z-index:1}
.eslam-card-media>.card-image img,.eslam-card-media>.card-icon img,.eslam-card-media>.product-image img{width:100%;height:100%;object-fit:cover}
.eslam-card-media__frame{position:absolute;top:0;left:-6%;width:112%;height:100%;object-fit:fill;pointer-events:none;user-select:none;z-index:2}
.eslam-card-media>.featured-product{top:17%;right:15%;z-index:3}

.cybermag-footer-signature{grid-column:1/-1;justify-self:start;display:grid;gap:4px;padding:9px 12px;border:1px solid rgba(255,0,46,.2);border-radius:12px;background:rgba(255,255,255,.02);color:#b5b5b5;font:inherit;text-align:right;cursor:pointer}.cybermag-footer-signature strong{font-size:12px;font-weight:600}.cybermag-footer-signature strong span,.cybermag-footer-signature i{color:#ff3155;font-style:normal}.cybermag-footer-signature small{font-size:10px}.cybermag-footer-signature:hover,.cybermag-footer-signature:focus-visible{border-color:rgba(255,0,46,.55);color:#fff}.cybermag-mobile-entry{display:none}.cybermag-modal .modal-content{width:min(560px,100%);padding:28px;background:radial-gradient(circle at top left,rgba(255,0,46,.16),transparent 46%),#0b0b0b;border-color:rgba(255,0,46,.35);box-shadow:0 24px 60px rgba(0,0,0,.6),0 0 34px rgba(255,0,46,.13)}.cybermag-modal .modal-content>h2{margin:0 0 18px;color:#ff3155;font-size:32px;letter-spacing:.03em}.cybermag-card{display:grid;gap:18px}.cybermag-card__meta{display:flex;align-items:center;gap:9px;color:#a9a9a9;font-size:12px}.cybermag-card__mark{display:grid;place-items:center;width:31px;height:31px;border:1px solid rgba(255,0,46,.45);border-radius:9px;color:#ff3155;font-weight:800}.cybermag-card__availability{margin-right:auto;display:inline-flex;align-items:center;gap:6px;color:#d4d4d4;font-size:10px;letter-spacing:.1em}.cybermag-card__availability i{width:7px;height:7px;border-radius:50%;background:#2ed573;box-shadow:0 0 10px rgba(46,213,115,.8)}.cybermag-card__lead{margin:0;color:#fff;font-size:23px;font-weight:800}.cybermag-card__copy{margin:0;color:#c7c7c7;line-height:1.85}.cybermag-card__specialties{margin:0;color:#ff3155;font-size:11px;font-weight:700;letter-spacing:.05em}.cybermag-card__specialties b{color:#777;padding:0 3px}.cybermag-card__actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cybermag-card__actions button{min-height:46px;border:1px solid rgba(255,0,46,.45);border-radius:12px;background:linear-gradient(135deg,#ff002e,#c00024);color:#fff;font:inherit;font-weight:700;cursor:pointer}.cybermag-card__actions button+button{background:transparent;color:#e4e4e4}.cybermag-card__actions button:hover,.cybermag-card__actions button:focus-visible{border-color:#ff3155;box-shadow:0 0 18px rgba(255,0,46,.2)}body:has(.cybermag-modal:not(.hidden)){overflow:hidden!important;overscroll-behavior:none}
@media(max-width:768px){.cybermag-mobile-entry{display:grid;width:calc(100% - 32px);margin:0 16px 106px;padding:15px 16px;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;border:1px solid rgba(255,0,46,.25);border-radius:16px;background:linear-gradient(135deg,rgba(255,0,46,.11),rgba(13,13,13,.98));color:#fff;font:inherit;text-align:right;cursor:pointer}.cybermag-mobile-entry>span{grid-row:span 2;display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:rgba(255,0,46,.13);color:#ff3155;font-weight:800}.cybermag-mobile-entry strong{font-size:14px;color:#ff3155}.cybermag-mobile-entry small{font-size:11px;color:#b9b9b9}.cybermag-modal{place-items:end stretch;padding:0}.cybermag-modal .modal-content{width:100%;max-height:82dvh;padding:26px 20px 28px;border-radius:24px 24px 0 0}.cybermag-modal .modal-content>h2{font-size:28px}.cybermag-card__lead{font-size:21px}.cybermag-card__actions{grid-template-columns:1fr}.cybermag-footer-signature{display:none}}
.cybermag-modal .modal-content>h2{font-size:29px;line-height:1.1}.cybermag-card{gap:16px}.cybermag-card__meta{gap:8px;flex-wrap:wrap}.cybermag-card__mark{width:33px;height:33px;color:#ff4866;font-size:14px}.cybermag-card__role{color:#c9c9c9}.cybermag-card__availability{margin-right:0;padding:5px 8px;border:1px solid rgba(46,213,115,.26);border-radius:999px;background:rgba(46,213,115,.07);color:#cfead9;font-size:9px;letter-spacing:.07em;white-space:nowrap}.cybermag-card__availability i{width:6px;height:6px;box-shadow:0 0 6px rgba(46,213,115,.45)}.cybermag-card__lead{padding:2px 0 1px;font-weight:850;line-height:1.5}.cybermag-card__copy{line-height:1.8}.cybermag-card__copy strong{color:#fff;font-weight:750}.cybermag-card__specialties{display:inline-flex;justify-self:start;gap:5px;padding:6px 9px;border:1px solid rgba(255,0,46,.18);border-radius:999px;background:rgba(255,0,46,.045);font-size:10px;letter-spacing:.04em}.cybermag-card__specialties b{padding:0;color:#ff3155}.cybermag-card__actions button:first-child{background:transparent;color:#e4e4e4}.cybermag-card__actions button+button{background:linear-gradient(135deg,#ff002e,#c00024);color:#fff}@media(max-width:768px){.cybermag-modal .modal-content{padding:23px 20px 25px}.cybermag-modal .modal-content>h2{margin-bottom:15px;font-size:25px}.cybermag-card{gap:14px}.cybermag-card__meta{font-size:11px}.cybermag-card__availability{font-size:8px;padding:4px 7px}.cybermag-card__lead{font-size:20px}.cybermag-card__copy{font-size:14px;line-height:1.75}.cybermag-card__specialties{font-size:9px}.cybermag-card__actions{gap:8px}.cybermag-card__actions button{min-height:44px}}
.cybermag-card__identity{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#a9a9a9;font-size:12px}.cybermag-card__brand{display:contents}.cybermag-card__brand-name{display:none}@media(max-width:768px){.cybermag-modal .modal-content{display:block;direction:rtl}.cybermag-modal .modal-content>h2{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.cybermag-card{display:grid;gap:14px}.cybermag-card__identity{display:flex;flex-direction:column;align-items:flex-start;gap:7px;max-width:calc(100% - 56px);font-size:11px}.cybermag-card__brand{display:flex;align-items:center;gap:10px}.cybermag-card__brand-name{display:inline;color:#ff3155;font-size:25px;font-weight:700;line-height:1.1;letter-spacing:.03em}.cybermag-card__mark{width:33px;height:33px}.cybermag-card__role{margin:0;color:#c9c9c9;font-size:11px;text-align:right}.cybermag-card__availability{margin:0;font-size:8px;padding:4px 7px}.cybermag-modal .modal-close{z-index:2;width:40px;height:40px;display:grid;place-items:center}.cybermag-card__lead,.cybermag-card__copy,.cybermag-card__specialties,.cybermag-card__actions{margin-top:0}}
@media(max-width:768px){.cybermag-card__brand{direction:ltr}}
.cybermag-lead-sheet .modal-content{width:min(560px,100%);background:radial-gradient(circle at top left,rgba(255,0,46,.13),transparent 45%),#0b0b0b;border-color:rgba(255,0,46,.35)}.cybermag-lead-sheet__intro{margin:0 0 18px;color:#a9a9a9;line-height:1.75}.cybermag-lead-form{display:grid;gap:12px}.cybermag-lead-form label{display:grid;gap:7px;color:#b8b8b8;font-size:13px;font-weight:700}.cybermag-lead-form input,.cybermag-lead-form select,.cybermag-lead-form textarea{width:100%;border:1px solid rgba(255,255,255,.13);border-radius:10px;background:#111;color:#fff;padding:11px 12px;font:inherit;font-weight:400}.cybermag-lead-form textarea{resize:vertical}.cybermag-lead-form input:focus,.cybermag-lead-form select:focus,.cybermag-lead-form textarea:focus{border-color:#ff3155;outline:0}.cybermag-lead-form button{min-height:46px;border:1px solid #ff3155;border-radius:12px;background:linear-gradient(135deg,#ff002e,#c00024);color:#fff;font:inherit;font-weight:700;cursor:pointer}.cybermag-lead-form__honeypot{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.cybermag-lead-form__errors{border:1px solid rgba(255,71,87,.45);border-radius:10px;padding:9px 12px;color:#ff9ba7;background:rgba(255,71,87,.08);font-size:12px}.cybermag-lead-form__errors p{margin:0}.cybermag-lead-form__errors p+p{margin-top:4px}@media(max-width:768px){.cybermag-lead-sheet{place-items:end stretch;padding:0}.cybermag-lead-sheet .modal-content{width:100%;max-height:88dvh;overflow:auto;padding:23px 20px 25px;border-radius:24px 24px 0 0}}

.cybermag-lead-sheet .modal-content>h2{margin:0 0 10px;color:#fff;font-size:24px;line-height:1.35}.cybermag-lead-sheet__intro{color:#a9a9a9;font-size:14px}.cybermag-lead-form label{color:#b8b8b8;font-size:12px;font-weight:600}.cybermag-lead-form input,.cybermag-lead-form select,.cybermag-lead-form textarea{border-color:rgba(255,255,255,.1);background:#101010;line-height:1.45}.cybermag-lead-form input::placeholder,.cybermag-lead-form textarea::placeholder{color:#6f6f6f;opacity:1}.cybermag-lead-form select option{background:#101010;color:#fff}.cybermag-lead-form input:focus,.cybermag-lead-form select:focus,.cybermag-lead-form textarea:focus{border-color:#ff3155;box-shadow:0 0 0 3px rgba(255,49,85,.12)}.cybermag-lead-form__errors{border-color:rgba(255,115,130,.38);color:#ffb2bd;background:rgba(255,71,87,.07)}

.cybermag-lead-sheet .modal-content{padding:30px;background:radial-gradient(circle at 12% 0,rgba(255,0,46,.15),transparent 28%),#090a0b}.cybermag-lead-sheet .modal-content>h2{margin:24px 0 6px;font-size:30px;font-weight:800;text-align:center}.cybermag-lead-sheet__header{text-align:center}.cybermag-lead-sheet__brand{display:inline-flex;align-items:center;gap:10px;margin:0;color:#fff;font-size:24px;font-weight:800}.cybermag-lead-sheet__brand span{color:#ff3155;font-size:29px}.cybermag-lead-sheet__role{margin:3px 0 0;color:#8f9399;font-size:12px}.cybermag-lead-sheet__intro{margin:0 0 22px;text-align:center;color:#a9a9a9}.cybermag-lead-form{gap:0}.cybermag-lead-form__section{min-width:0;margin:0;padding:20px 0;border:0;border-top:1px solid rgba(255,255,255,.1)}.cybermag-lead-form__section:first-of-type{padding-top:0;border-top:0}.cybermag-lead-form__section-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:12px}.cybermag-lead-form__section-head legend{padding:0;color:#f1f1f1;font-size:17px;font-weight:750}.cybermag-lead-form__section-head legend i{margin-left:8px;color:#ff3155}.cybermag-lead-form__section-head>span{color:#8f9399;font-size:12px}.cybermag-lead-form__options{display:grid;gap:10px}.cybermag-lead-form__options--projects{grid-template-columns:repeat(3,minmax(0,1fr))}.cybermag-lead-form__options--budget{grid-template-columns:repeat(5,minmax(0,1fr))}.cybermag-lead-form__options--contact{grid-template-columns:repeat(2,minmax(0,1fr));margin:12px 0}.cybermag-lead-form__option{position:relative;display:block;min-width:0;margin:0!important;cursor:pointer}.cybermag-lead-form__option>input{position:absolute;inline-size:1px!important;block-size:1px!important;opacity:0;pointer-events:none}.cybermag-lead-form__option>span{display:flex;align-items:center;gap:9px;min-height:58px;padding:11px 13px;border:1px solid rgba(185,192,199,.18);border-radius:13px;background:linear-gradient(145deg,#121416,#0d0e0f);color:#e6e8ea;font-size:13px;font-weight:650;line-height:1.35}.cybermag-lead-form__option>span>i{color:#aeb4ba;font-size:17px}.cybermag-lead-form__option b{display:none;margin-right:auto;color:#fff;font-size:10px}.cybermag-lead-form__option>input:checked+span{border-color:#ff3155;background:linear-gradient(135deg,rgba(255,0,46,.19),rgba(48,10,15,.72));box-shadow:inset 0 0 0 1px rgba(255,49,85,.16)}.cybermag-lead-form__option>input:checked+span>i{color:#ff3155}.cybermag-lead-form__option>input:checked+span b{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#ff3155}.cybermag-lead-form__option>input:focus-visible+span{outline:2px solid #ff3155;outline-offset:3px}.cybermag-lead-form__field-label{display:grid!important;gap:7px;margin:0;color:#b8b8b8!important;font-size:12px!important;font-weight:600!important}.cybermag-lead-sheet .cybermag-lead-form input:not([type=radio]),.cybermag-lead-sheet .cybermag-lead-form textarea{width:100%;border-color:rgba(185,192,199,.18);background:#111315;color:#fff}.cybermag-lead-sheet .cybermag-lead-form textarea{min-height:142px;padding:15px;resize:vertical}.cybermag-lead-sheet .cybermag-lead-form input::placeholder,.cybermag-lead-sheet .cybermag-lead-form textarea::placeholder{color:#6f6f6f}.cybermag-lead-form__field-error{margin:9px 0 0;color:#ff9eae;font-size:12px}.cybermag-lead-form>button{width:100%;min-height:56px;margin-top:4px;border-color:#ff3155;border-radius:14px;background:linear-gradient(135deg,#ff123d,#c9002a);box-shadow:0 10px 22px rgba(255,0,46,.18);font-size:17px}.cybermag-lead-form__microcopy{margin:12px 0 0;color:#8f9399;font-size:12px;text-align:center}.cybermag-lead-form__microcopy i{margin-left:6px;color:#aeb4ba}
@media(max-width:768px){.cybermag-lead-sheet .modal-content{padding:24px 16px 26px}.cybermag-lead-sheet .modal-content>h2{margin-top:20px;font-size:26px}.cybermag-lead-sheet__brand{font-size:21px}.cybermag-lead-sheet__brand span{font-size:25px}.cybermag-lead-form__section{padding:18px 0}.cybermag-lead-form__section-head{align-items:flex-start;flex-direction:column;gap:4px}.cybermag-lead-form__section-head legend{font-size:16px}.cybermag-lead-form__options--projects{grid-template-columns:repeat(2,minmax(0,1fr))}.cybermag-lead-form__options--budget{grid-template-columns:repeat(2,minmax(0,1fr))}.cybermag-lead-form__option>span{min-height:56px;padding:10px;font-size:12px}.cybermag-lead-form__options--budget .cybermag-lead-form__option>span{justify-content:center;text-align:center}.cybermag-lead-form__options--budget .cybermag-lead-form__option:last-child{grid-column:span 2}.cybermag-lead-form>button{min-height:54px}}

/* CyberMag Lead Sheet: restrained color hierarchy and static atmospheric depth. */
.cybermag-lead-sheet{--cm-red:#ff3155;--cm-white:#f5f6f7;--cm-title:#d9dde0;--cm-text:#c5cbd0;--cm-muted:#969da4;--cm-muted-dark:#6f767d;--cm-surface:rgba(17,19,21,.9);--cm-border:rgba(174,183,191,.18)}.cybermag-lead-sheet .modal-content{isolation:isolate;background:radial-gradient(ellipse 76% 28% at 10% -6%,rgba(156,0,27,.2),transparent 72%),radial-gradient(ellipse 68% 24% at 100% 72%,rgba(105,0,21,.15),transparent 74%),linear-gradient(155deg,#08090a 0%,#111315 43%,#08090a 100%)}.cybermag-lead-sheet .modal-content::before,.cybermag-lead-sheet .modal-content::after{content:"";position:absolute;pointer-events:none;z-index:0;filter:blur(24px);opacity:.72}.cybermag-lead-sheet .modal-content::before{width:132%;height:32%;top:31%;right:-18%;border-radius:48% 52% 58% 42%;transform:rotate(-9deg);background:linear-gradient(105deg,transparent 10%,rgba(71,76,81,.3) 46%,rgba(113,0,23,.15) 70%,transparent 90%)}.cybermag-lead-sheet .modal-content::after{width:118%;height:25%;bottom:5%;left:-20%;border-radius:58% 42% 46% 54%;transform:rotate(8deg);background:radial-gradient(ellipse at center,rgba(126,0,26,.15),transparent 68%)}.cybermag-lead-sheet .modal-content>*{position:relative;z-index:1}.cybermag-lead-sheet .modal-content>h2{color:var(--cm-white)}.cybermag-lead-sheet__brand{color:var(--cm-white)}.cybermag-lead-sheet__brand span,.cybermag-lead-form__section-head legend i{color:var(--cm-red)}.cybermag-lead-sheet__role,.cybermag-lead-sheet__intro,.cybermag-lead-form__section-head>span,.cybermag-lead-form__microcopy{color:var(--cm-muted)}.cybermag-lead-form__section{border-top-color:rgba(185,192,199,.12)}.cybermag-lead-form__section-head legend{color:var(--cm-title)}.cybermag-lead-form__option>span{border-color:var(--cm-border);background:linear-gradient(145deg,rgba(24,27,29,.92),var(--cm-surface));color:var(--cm-text)}.cybermag-lead-form__option>span>i{color:var(--cm-muted)}.cybermag-lead-form__option>input:checked+span{border-color:var(--cm-red);background:linear-gradient(135deg,rgba(126,0,26,.27),rgba(35,12,16,.9));color:#fff;box-shadow:inset 0 0 0 1px rgba(255,49,85,.13)}.cybermag-lead-form__option>input:checked+span>i{color:var(--cm-red)}.cybermag-lead-sheet .cybermag-lead-form input:not([type=radio]),.cybermag-lead-sheet .cybermag-lead-form textarea{border-color:var(--cm-border);background:rgba(15,17,19,.94);color:#f2f3f4}.cybermag-lead-sheet .cybermag-lead-form input::placeholder,.cybermag-lead-sheet .cybermag-lead-form textarea::placeholder{color:var(--cm-muted-dark)}.cybermag-lead-form__field-label{color:var(--cm-text)!important}.cybermag-lead-sheet .cybermag-lead-form input:focus,.cybermag-lead-sheet .cybermag-lead-form textarea:focus{border-color:var(--cm-red);box-shadow:0 0 0 3px rgba(255,49,85,.1)}.cybermag-lead-form__field-error{color:#ff9dac}.cybermag-lead-form>button{border-color:#ff3155;background:linear-gradient(135deg,#ff163f,#c9002c);box-shadow:0 10px 22px rgba(255,0,46,.16)}
.cybermag-lead-sheet{--cm-white:#f7f7f7;--cm-title:#c6cbd0;--cm-text:#9ea6ad;--cm-muted:#68727a;--cm-muted-dark:#464d54;--cm-micro:#596169;--cm-surface:rgba(17,19,21,.72);--cm-border:rgba(174,183,191,.2)}.cybermag-lead-sheet .modal-content{background:radial-gradient(ellipse 94% 39% at 7% -8%,rgba(194,0,36,.38),transparent 73%),radial-gradient(ellipse 86% 35% at 104% 71%,rgba(148,0,29,.33),transparent 76%),linear-gradient(155deg,#050607 0%,#1a1d20 43%,#060708 100%)}.cybermag-lead-sheet .modal-content::before,.cybermag-lead-sheet .modal-content::after{filter:blur(13px);opacity:.98}.cybermag-lead-sheet .modal-content::before{width:158%;height:43%;top:23%;right:-29%;border-radius:41% 59% 65% 35%;background:linear-gradient(105deg,transparent 5%,rgba(91,98,105,.58) 40%,rgba(157,0,32,.34) 69%,transparent 95%)}.cybermag-lead-sheet .modal-content::after{width:145%;height:36%;bottom:-1%;left:-29%;border-radius:66% 34% 46% 54%;background:radial-gradient(ellipse at center,rgba(165,0,34,.35),rgba(65,16,27,.17) 47%,transparent 72%)}.cybermag-lead-form__section-head legend{color:#c6cbd0}.cybermag-lead-sheet__role,.cybermag-lead-form__microcopy{color:var(--cm-micro)}.cybermag-lead-sheet__intro,.cybermag-lead-form__section-head>span{color:var(--cm-muted)}.cybermag-lead-form__field-label{color:#737b83!important}.cybermag-lead-form__option>span{border-color:var(--cm-border);background:linear-gradient(145deg,rgba(25,28,31,.7),var(--cm-surface));color:var(--cm-text)}.cybermag-lead-form__option>input:checked+span{border-color:#ff3155;background:linear-gradient(135deg,rgba(155,0,30,.4),rgba(49,13,22,.82));color:#fff;box-shadow:inset 0 0 0 1px rgba(255,49,85,.2)}.cybermag-lead-sheet .cybermag-lead-form input:not([type=radio]),.cybermag-lead-sheet .cybermag-lead-form textarea{border-color:var(--cm-border);background:rgba(15,17,19,.92);color:#f2f2f2}.cybermag-lead-form__microcopy{color:#596169}

/* Mini wallet carousel: read-only independent currency balances. */
.drawer-user-box > .drawer-wallet-cell { min-width: 0; padding: 0; overflow: visible; background: transparent; border: 0; }
.drawer-wallet-carousel__nudge { box-sizing: border-box; width: 100%; padding: 10px 10px 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); border-radius: 14px; background: #101010; transition: transform .48s cubic-bezier(.22,1,.36,1); }
.drawer-wallet-carousel__trigger { display: block; cursor: pointer; touch-action: pan-y; }
.drawer-wallet-carousel__trigger:focus-visible { outline: 2px solid #FF3155; outline-offset: 3px; border-radius: 8px; }
.drawer-wallet-carousel__viewport { position: relative; width: 100%; overflow: hidden; }
.drawer-wallet-carousel__track { display: flex; width: 100%; direction: ltr; transition: transform .36s cubic-bezier(.22,1,.36,1); will-change: transform; }
.drawer-wallet-cell.is-dragging .drawer-wallet-carousel__track { transition: none; }
.drawer-wallet-carousel__slide { flex: 0 0 100%; min-width: 0; direction: rtl; }
.drawer-wallet-carousel__slide > span { display: block; font-size: 11px; color: #888; }
.drawer-wallet-carousel__slide strong { display: block; margin-top: 3px; font-size: 15px; color: #fff; white-space: nowrap; }
.drawer-wallet-carousel__dots { display: flex; justify-content: center; gap: 4px; margin: 3px 0 2px; }
.drawer-wallet-carousel__dots button { width: 5px; height: 5px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.24); cursor: pointer; }
.drawer-wallet-carousel__dots button.is-active { width: 13px; border-radius: 999px; background: #FF3155; }
@media (prefers-reduced-motion: reduce) { .drawer-wallet-carousel__nudge, .drawer-wallet-carousel__track { transition: none; } }
