@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

:root {
    --sellona-primary: #0036a1;
    --sellona-electric: #0077e6;
    --sellona-cyan: #38bdf8;
    --sellona-navy: #071a2f;
    --sellona-navy-dark: #040d1a;
    --sellona-navy-panel: #061527;
    --sellona-purple: #8b5cf6;
    
    --sellona-text-light: #ffffff;
    --sellona-text-main: #f1f5f9;
    --sellona-text-muted: #94a3b8;
    --sellona-text-dim: #64748b;
    
    --sellona-border-glass: rgba(255, 255, 255, 0.1);
    --sellona-border-subtle: rgba(255, 255, 255, 0.06);
    --sellona-border-focus: #008cff;
    --sellona-input-bg: rgba(11, 27, 48, 0.75);
    
    --font-main: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-shell: 0 25px 80px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 54, 161, 0.12);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

html, body {
    min-height: 100dvh;
    margin: 0;
    padding: 0;
}

body.login-body {
    background-color: var(--sellona-navy-dark);
    background-image: 
        radial-gradient(circle at 50% 25%, rgba(0, 86, 224, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 20% 90%, rgba(0, 198, 255, 0.05) 0%, transparent 50%);
    color: var(--sellona-text-light);
    direction: rtl;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 2.5vw, 2.2rem) clamp(1rem, 2vw, 1.8rem);
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   CENTERED APPLICATION SHELL (RESPONSIVE + BOUNDED + FLOATING)
   ========================================================================== */
.login-container {
    width: min(1160px, 100%);
    min-height: min(700px, calc(100dvh - 3rem));
    max-height: min(740px, calc(100dvh - 3rem));
    display: grid;
    grid-template-columns: 1.26fr 1fr;
    background: var(--sellona-navy);
    border: 1px solid var(--sellona-border-glass);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-shell);
    position: relative;
    z-index: 10;
    overflow: hidden;
    animation: shellFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shellFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================================================
   RIGHT SHOWCASE HERO PANEL (56% RATIO, CRISP LOGIN1.JPG)
   ========================================================================== */
.showcase-hero {
    position: relative;
    padding: clamp(1.8rem, 3.2vh, 2.6rem) clamp(2rem, 3vw, 2.8rem);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--sellona-navy);
    overflow: hidden;
    height: 100%;
    min-height: 0;
}

/* login1.jpg as crisp primary background asset */
.hero-bg-asset {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center left;
    transform: scale(1.02);
    transition: transform 1s ease;
    z-index: 0;
}

.showcase-hero:hover .hero-bg-asset {
    transform: scale(1.04);
}

/* Localized Non-destructive gradient overlay: gives clear contrast with rich depth */
.hero-overlay-layer {
    position: absolute;
    inset: 0;
    background: linear-gradient(175deg, 
        rgba(6, 20, 38, 0.4) 0%, 
        rgba(6, 20, 38, 0.08) 32%, 
        rgba(4, 13, 26, 0.68) 72%, 
        rgba(4, 13, 26, 0.9) 100%
    );
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    z-index: 1;
}

.hero-content-wrap {
    position: relative;
    z-index: 2;
    max-width: 520px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(7, 26, 47, 0.7);
    color: var(--sellona-cyan);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.28rem 0.85rem;
    border-radius: 999px;
    font-size: clamp(0.76rem, 0.84vw, 0.82rem);
    font-weight: 800;
    margin-bottom: clamp(0.45rem, 1vh, 0.75rem);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
}

.hero-heading {
    font-size: clamp(1.75rem, 2.3vw, 2.25rem);
    font-weight: 900;
    line-height: 1.22;
    margin-bottom: clamp(0.3rem, 0.7vh, 0.5rem);
    color: #ffffff;
    letter-spacing: -0.4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.text-cyan-grad {
    background: linear-gradient(135deg, #38bdf8 0%, #008cff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-description {
    color: #cbd5e1;
    font-size: clamp(0.82rem, 0.9vw, 0.9rem);
    line-height: 1.55;
    font-weight: 500;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
    max-width: 460px;
}

/* 3 Compact Floating Glass Feature Cards */
.hero-features-list {
    display: flex;
    flex-direction: column;
    gap: clamp(0.4rem, 0.8vh, 0.65rem);
    margin: clamp(0.65rem, 1.3vh, 1.1rem) 0 clamp(0.45rem, 1vh, 0.8rem) 0;
    position: relative;
    z-index: 2;
    max-width: 480px;
}

.hero-feature-card {
    background: rgba(6, 20, 38, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: clamp(0.5rem, 0.8vh, 0.68rem) clamp(0.75rem, 1vw, 0.95rem);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: clamp(0.6rem, 0.9vw, 0.8rem);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-feature-card:hover {
    background: rgba(6, 20, 38, 0.72);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateX(-3px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.feature-icon-container {
    width: clamp(32px, 3.8vh, 36px);
    height: clamp(32px, 3.8vh, 36px);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 54, 161, 0.45) 0%, rgba(0, 140, 255, 0.2) 100%);
    border: 1px solid rgba(56, 189, 248, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sellona-cyan);
    flex-shrink: 0;
    transition: all 0.25s;
}

.hero-feature-card:hover .feature-icon-container {
    background: linear-gradient(135deg, var(--sellona-primary) 0%, #008cff 100%);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.4);
    transform: scale(1.04);
}

.feature-title-text {
    font-weight: 800;
    font-size: clamp(0.84rem, 0.9vw, 0.9rem);
    color: #ffffff;
    margin-bottom: 0.08rem;
}

.feature-sub-text {
    font-size: clamp(0.72rem, 0.76vw, 0.78rem);
    color: #cbd5e1;
    line-height: 1.35;
    font-weight: 500;
}

/* Security Trust Metadata Bar */
.hero-footer-trust {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(0.74rem, 0.8vw, 0.78rem);
    color: var(--sellona-text-dim);
    padding-top: clamp(0.5rem, 1vh, 0.8rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.trust-badges-wrap {
    display: flex;
    gap: clamp(0.6rem, 0.9vw, 1rem);
    flex-wrap: wrap;
}

.trust-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #cbd5e1;
    font-weight: 600;
}

.trust-badge-item svg {
    color: var(--sellona-cyan);
}

/* ==========================================================================
   LEFT LOGIN AUTHENTICATION PANEL (44% RATIO, COHESIVE VERTICAL RHYTHM)
   ========================================================================== */
.login-panel {
    padding: clamp(1.8rem, 3.5vh, 2.8rem) clamp(2rem, 3vw, 2.8rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--sellona-navy-panel);
    border-left: 1px solid var(--sellona-border-subtle);
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.login-panel-inner {
    max-width: 400px;
    width: 100%;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-header-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: clamp(0.8rem, 1.6vh, 1.2rem);
    text-decoration: none;
    color: var(--sellona-text-light);
    transition: transform 0.2s;
}

.brand-header-link:hover {
    transform: translateY(-2px);
}

.brand-header-link img {
    height: clamp(36px, 4.2vh, 42px);
    width: auto;
    filter: drop-shadow(0 3px 10px rgba(0, 54, 161, 0.45));
}

.brand-meta {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: clamp(1.35rem, 1.5vw, 1.55rem);
    font-weight: 900;
    letter-spacing: -0.4px;
    background: linear-gradient(135deg, #ffffff 0%, var(--sellona-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.brand-subline {
    font-size: 0.64rem;
    color: var(--sellona-text-dim);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

.login-heading-wrap {
    margin-bottom: clamp(0.8rem, 1.6vh, 1.2rem);
}

.login-heading {
    font-size: clamp(1.4rem, 1.7vw, 1.7rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 0.25rem;
}

.login-subheading {
    color: var(--sellona-text-muted);
    font-size: clamp(0.84rem, 0.88vw, 0.88rem);
    font-weight: 500;
    line-height: 1.45;
}

/* Alert Box */
.alert-box {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 0.6rem 0.9rem;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: clamp(0.6rem, 1.2vh, 0.9rem);
}

/* Form Inputs */
.form-group-item {
    margin-bottom: clamp(0.75rem, 1.4vh, 1rem);
}

.field-label {
    display: block;
    font-size: clamp(0.88rem, 0.92vw, 0.92rem);
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.35rem;
    text-align: right;
}

.field-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.field-input-box input {
    width: 100%;
    height: clamp(46px, 5vh, 50px);
    padding: 0 3rem 0 1.1rem;
    border: 1.5px solid var(--sellona-border-glass);
    border-radius: var(--radius-md);
    font-size: clamp(0.94rem, 1vw, 1rem);
    font-weight: 600;
    color: #ffffff;
    background: var(--sellona-input-bg);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    direction: rtl;
}

.field-input-box input::placeholder {
    color: var(--sellona-text-dim);
    font-weight: 500;
    font-size: clamp(0.88rem, 0.92vw, 0.94rem);
}

.field-input-box input:focus {
    outline: none;
    background: rgba(14, 34, 60, 0.95);
    border-color: var(--sellona-border-focus);
    box-shadow: 0 0 0 3px rgba(0, 140, 255, 0.2), 0 0 16px rgba(0, 54, 161, 0.25);
}

.field-icon-r {
    position: absolute;
    right: 1rem;
    color: var(--sellona-text-dim);
    display: flex;
    align-items: center;
    pointer-events: none;
    transition: color 0.2s ease;
}

.field-input-box input:focus ~ .field-icon-r {
    color: var(--sellona-cyan);
}

.pwd-toggle-btn {
    position: absolute;
    left: 0.9rem;
    color: var(--sellona-text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.2s;
}

.pwd-toggle-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* Form Options */
.form-options-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.15rem;
    margin-bottom: clamp(0.75rem, 1.4vh, 1.1rem);
    font-size: clamp(0.82rem, 0.86vw, 0.86rem);
}

.remember-checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    user-select: none;
    color: var(--sellona-text-muted);
    font-weight: 600;
}

.remember-checkbox-wrap:hover {
    color: #e2e8f0;
}

.remember-checkbox-wrap input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--sellona-electric);
    cursor: pointer;
    border-radius: 4px;
}

.forgot-pwd-link {
    color: var(--sellona-cyan);
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s;
}

.forgot-pwd-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* Primary Submit Button */
.btn-login-submit {
    width: 100%;
    height: clamp(48px, 5.2vh, 52px);
    padding: 0 1.3rem;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--sellona-primary) 0%, #0077e6 60%, #00a8e8 100%);
    color: #ffffff;
    font-size: clamp(0.96rem, 1.04vw, 1.04rem);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 6px 18px -3px rgba(0, 54, 161, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    margin-bottom: clamp(0.65rem, 1.2vh, 0.95rem);
}

.btn-login-submit:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 8px 20px -3px rgba(0, 54, 161, 0.55);
    filter: brightness(1.04);
}

.btn-login-submit:active {
    transform: translateY(0);
}

/* Dedicated Compact Support Help Card */
.support-help-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--sellona-border-subtle);
    border-radius: var(--radius-md);
    padding: clamp(0.45rem, 0.8vh, 0.6rem) clamp(0.7rem, 0.9vw, 0.9rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.support-help-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(56, 189, 248, 0.25);
    transform: translateY(-1px);
}

.support-card-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.support-icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.25);
    color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.support-title-bold {
    font-size: clamp(0.8rem, 0.84vw, 0.84rem);
    font-weight: 800;
    color: #ffffff;
}

.support-subline-dim {
    font-size: 0.7rem;
    color: var(--sellona-text-muted);
    font-weight: 500;
}

.support-num-badge {
    font-size: clamp(0.8rem, 0.84vw, 0.84rem);
    font-weight: 800;
    color: var(--sellona-cyan);
    direction: ltr;
    display: inline-block;
}

/* Panel Minimal Footer */
.login-panel-footer {
    padding-top: clamp(0.55rem, 1vh, 0.85rem);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: clamp(0.74rem, 0.78vw, 0.78rem);
    color: var(--sellona-text-dim);
    font-weight: 600;
    margin-top: 0;
    opacity: 0.8;
}

.return-home-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--sellona-text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.return-home-link:hover {
    color: var(--sellona-cyan);
}

.pwa-reopen-footer-link {
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--sellona-cyan);
    font-size: clamp(0.72rem, 0.76vw, 0.76rem);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.pwa-reopen-footer-link:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: var(--sellona-cyan);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ==========================================================================
   SHORT DESKTOP / LAPTOP VIEWPORT OPTIMIZATION (e.g. 1366x768, 1280x720)
   ========================================================================== */
@media (max-height: 820px) and (min-width: 901px) {
    .login-container {
        min-height: min(640px, calc(100dvh - 2rem));
        max-height: min(670px, calc(100dvh - 2rem));
    }
    .showcase-hero, .login-panel {
        padding: 1.2rem 1.6rem;
    }
    .hero-badge {
        margin-bottom: 0.3rem;
        padding: 0.2rem 0.7rem;
    }
    .hero-heading {
        font-size: 1.6rem;
        margin-bottom: 0.2rem;
    }
    .hero-description {
        font-size: 0.78rem;
        line-height: 1.4;
    }
    .hero-features-list {
        margin: 0.45rem 0 0.35rem 0;
        gap: 0.35rem;
    }
    .hero-feature-card {
        padding: 0.38rem 0.7rem;
    }
    .feature-icon-container {
        width: 28px;
        height: 28px;
    }
    .brand-header-link {
        margin-bottom: 0.35rem;
    }
    .brand-header-link img {
        height: 30px;
    }
    .brand-name {
        font-size: 1.25rem;
    }
    .login-heading-wrap {
        margin-bottom: 0.35rem;
    }
    .login-heading {
        font-size: 1.28rem;
    }
    .form-group-item {
        margin-bottom: 0.55rem;
    }
    .field-label {
        margin-bottom: 0.25rem;
        font-size: 0.86rem;
    }
    .field-input-box input {
        height: 44px;
        font-size: 0.92rem;
        padding: 0 2.8rem 0 1rem;
    }
    .form-options-row {
        margin-bottom: 0.55rem;
    }
    .btn-login-submit {
        height: 46px;
        font-size: 0.96rem;
    }
    .support-help-card {
        margin-top: 0.35rem;
        padding: 0.35rem 0.65rem;
    }
}

/* ==========================================================================
   SWEETALERT2 RTL OVERRIDES
   ========================================================================== */
.swal2-popup.swal2-rtl {
    direction: rtl !important;
    text-align: right !important;
    font-family: var(--font-main) !important;
    border-radius: 16px !important;
    background: #071a2f !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7) !important;
}

.swal2-title {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.swal2-html-container {
    color: #cbd5e1 !important;
    font-weight: 500 !important;
}

.swal2-confirm {
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 0.65rem 1.6rem !important;
    background-color: var(--sellona-primary) !important;
}

/* ==========================================================================
   TABLET & MOBILE RESPONSIVENESS (SMOOTH STACKED + NATURAL SCROLL)
   ========================================================================== */
@media (max-width: 991px) {
    .login-container {
        width: min(920px, calc(100vw - 2rem));
        grid-template-columns: 1.15fr 1fr;
    }
    .showcase-hero, .login-panel {
        padding: 2rem 1.8rem;
    }
}

@media (max-width: 768px) {
    html, body {
        height: auto;
        min-height: 100dvh;
    }
    body.login-body {
        height: auto;
        min-height: 100dvh;
        padding: 1rem 0.8rem;
        align-items: flex-start;
        overflow-y: auto;
    }
    .login-container {
        width: 100%;
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
        height: auto;
        border-radius: 18px;
        overflow: visible;
        margin: 0 auto;
    }
    .login-panel {
        order: 1;
        border-left: none;
        padding: 2.2rem 1.5rem;
        height: auto;
        min-height: auto;
        overflow: visible;
    }
    .login-panel-inner {
        max-width: 100%;
        margin: 0;
    }
    .showcase-hero {
        order: 2;
        padding: 2rem 1.5rem;
        height: auto;
        min-height: 220px;
        border-top: 1px solid var(--sellona-border-subtle);
        overflow: visible;
    }
    .hero-heading {
        font-size: 1.85rem;
    }
    .hero-content-wrap, .hero-features-list {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    body.login-body {
        padding: 0.6rem 0.4rem;
    }
    .login-container {
        border-radius: 14px;
    }
    .login-panel, .showcase-hero {
        padding: 1.6rem 1rem;
    }
    .hero-heading {
        font-size: 1.6rem;
    }
    .login-heading {
        font-size: 1.4rem;
    }
    .form-options-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.55rem;
    }
    .btn-login-submit {
        height: 48px;
        font-size: 0.96rem;
    }
}

/* SweetAlert Dark Theme for Sellona */
.swal2-popup.swal2-rtl {
    background: #071a2f !important;
    color: #f1f5f9 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
    font-family: var(--font-main) !important;
}

.swal2-popup.swal2-rtl .swal2-title {
    color: #ffffff !important;
    font-family: var(--font-main) !important;
}

.swal2-popup.swal2-rtl .swal2-html-container {
    color: #cbd5e1 !important;
    font-family: var(--font-main) !important;
}

/* ==========================================================================
   CENTERED PWA INSTALLATION MODAL CARD
   ========================================================================== */
.pwa-modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 8, 18, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.pwa-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.pwa-modal-card {
    position: relative;
    max-width: 450px;
    width: 100%;
    background: linear-gradient(170deg, #0a1f3c 0%, #051324 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.28);
    border-radius: 24px;
    padding: 2.2rem 1.8rem 1.8rem;
    box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.85), 0 0 50px rgba(0, 119, 230, 0.25);
    text-align: center;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    direction: rtl;
}

.pwa-modal-overlay.active .pwa-modal-card {
    transform: scale(1) translateY(0);
}

.pwa-card-ambient-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    height: 140px;
    background: radial-gradient(circle, rgba(0, 140, 255, 0.35) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.pwa-modal-close {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--sellona-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.pwa-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    transform: rotate(90deg);
}

.pwa-icon-showcase {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
    z-index: 1;
}

.pwa-app-icon {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    border: 2px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 12px 30px rgba(0, 86, 224, 0.45);
    background: #061527;
    object-fit: contain;
    padding: 6px;
}

.pwa-icon-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0077e6 0%, #00c6ff 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
    border: 2px solid #051324;
}

.pwa-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(0, 119, 230, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 9999px;
    padding: 0.3rem 0.85rem;
    color: #38bdf8;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    position: relative;
    z-index: 1;
}

.pwa-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.pwa-modal-title {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.35;
    position: relative;
    z-index: 1;
}

.pwa-modal-desc {
    color: var(--sellona-text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.pwa-features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.4rem;
    position: relative;
    z-index: 1;
}

.pwa-feature-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    color: #cbd5e1;
    font-size: 0.76rem;
    font-weight: 600;
}

.pwa-feature-chip svg {
    color: var(--sellona-cyan);
    flex-shrink: 0;
}

.pwa-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    position: relative;
    z-index: 1;
}

.pwa-btn-install {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #0056e0 0%, #0088ff 100%);
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 800;
    border: none;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 86, 224, 0.45);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.pwa-btn-install:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 86, 224, 0.6);
    filter: brightness(1.08);
}

.pwa-btn-install:active {
    transform: translateY(0);
}

.pwa-btn-dismiss {
    background: transparent;
    border: none;
    color: var(--sellona-text-dim);
    font-size: 0.84rem;
    font-weight: 600;
    padding: 0.4rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.pwa-btn-dismiss:hover {
    color: var(--sellona-text-light);
    text-decoration: underline;
}

/* iOS Steps within card */
.pwa-ios-steps {
    text-align: right;
    margin: 1rem 0 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pwa-ios-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
}

.step-num {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--sellona-cyan);
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.84rem;
    color: #cbd5e1;
    line-height: 1.45;
}

.pwa-desktop-guide-box {
    margin: 1rem 0 1.3rem;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 12px;
    padding: 1rem;
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.55;
    text-align: right;
}

.pwa-desktop-guide-box .guide-highlight {
    margin-top: 0.6rem;
    color: #e0f2fe;
}

@media (max-width: 480px) {
    .pwa-modal-card {
        padding: 1.8rem 1.2rem 1.4rem;
        border-radius: 20px;
    }
    .pwa-modal-title {
        font-size: 1.18rem;
    }
    .pwa-modal-desc {
        font-size: 0.82rem;
    }
    .pwa-feature-chip {
        font-size: 0.72rem;
        padding: 0.25rem 0.5rem;
    }
}