:root {
    --charcoal: #060709;
    --neon-lime: #CCFF00;
    --card-bg: rgba(14, 17, 23, 0.74);
    --text-primary: #FFFFFF;
    --text-secondary: #8E95A5;
    --neon-red: #FF3B30;
    --neon-cyan: #00B4DB;
    --glow-shadow: 0 0 25px rgba(204, 255, 0, 0.22);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--charcoal);
    color: var(--text-primary);
    overflow-x: hidden;
    direction: rtl;
    scroll-behavior: smooth;
    position: relative;
    min-height: 100vh;
}

h1,
h2,
h3,
.logo-box,
.card,
button {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

h1:hover,
h2:hover {
    transform: translateX(-5px);
    color: var(--neon-lime);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--charcoal);
}

::-webkit-scrollbar-thumb {
    background: var(--card-bg);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-lime);
}

/* SOS Ticker Bar */
.sos-ticker {
    background: #ff0000;
    color: white;
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 10000;
    display: none; /* Hidden by default, shown when requests exist */
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
    overflow: hidden;
    white-space: nowrap;
}

.sos-ticker-content {
    display: inline-block;
    padding-left: 100%;
    font-weight: 900;
    font-size: 14px;
    animation: marquee 25s linear infinite;
}

@keyframes marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Layout */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-bottom: 100px;
}

/* Header */
header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 10px 0 0 0;
    margin-bottom: 25px;
}

.header-main-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Header Features Showcase Banner (Full width matching streak bounds: Live broadcast & Solidarity days) */
.header-features-showcase {
    width: 100%;
    max-width: 100%;
    margin: 0;
    height: 235px;
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #080a0f;
    border: 1.5px solid rgba(204, 255, 0, 0.5);
    box-shadow: 
        0 0 25px rgba(204, 255, 0, 0.3),
        0 0 50px rgba(0, 245, 212, 0.2),
        inset 0 0 15px rgba(204, 255, 0, 0.15);
    animation: header-showcase-glow 4s ease-in-out infinite alternate;
}

@keyframes header-showcase-glow {
    0% {
        border-color: rgba(204, 255, 0, 0.5);
        box-shadow: 0 0 22px rgba(204, 255, 0, 0.28), 0 0 45px rgba(0, 245, 212, 0.2);
    }
    50% {
        border-color: rgba(0, 245, 212, 0.7);
        box-shadow: 0 0 32px rgba(0, 245, 212, 0.42), 0 0 50px rgba(204, 255, 0, 0.28);
    }
    100% {
        border-color: rgba(255, 59, 48, 0.6);
        box-shadow: 0 0 26px rgba(255, 59, 48, 0.35), 0 0 45px rgba(204, 255, 0, 0.28);
    }
}

.header-features-showcase:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: var(--neon-lime);
    box-shadow: 
        0 0 35px rgba(204, 255, 0, 0.65),
        0 0 60px rgba(0, 245, 212, 0.45),
        0 14px 35px rgba(0, 0, 0, 0.65);
}

.features-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
    display: block;
    transition: transform 0.4s ease;
}

.header-features-showcase:hover .features-showcase-img {
    transform: scale(1.02);
}

.features-showcase-overlay {
    position: absolute;
    bottom: 8px;
    right: 12px;
    background: rgba(5, 7, 10, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(204, 255, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    transition: all 0.3s ease;
}

[lang="fr"] .features-showcase-overlay,
[lang="en"] .features-showcase-overlay {
    right: auto;
    left: 12px;
}

.header-features-showcase:hover .features-showcase-overlay {
    background: rgba(5, 7, 10, 0.96);
    border-color: var(--neon-lime);
    box-shadow: 0 0 12px rgba(204, 255, 0, 0.4);
}

.features-badge-pulse {
    width: 7px;
    height: 7px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff00;
    animation: blink 1.2s infinite;
}

.features-showcase-tag {
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    letter-spacing: 0.2px;
}

/* Features Modal Lightbox */
.features-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100005;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.features-modal-content {
    background: rgba(14, 18, 26, 0.98);
    border: 1.5px solid var(--neon-lime);
    border-radius: 24px;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    box-shadow: 0 0 50px rgba(204, 255, 0, 0.25), 0 25px 60px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
}

.features-modal-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
}

@media (max-width: 768px) {
    .features-modal-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.logo-box {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    overflow: hidden;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.logo-box:hover {
    background: var(--neon-lime);
    box-shadow: 0 0 30px var(--neon-lime);
}

.logo-box:hover svg {
    stroke: var(--charcoal);
}

.logo-text h1 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 14px;
    color: var(--neon-lime);
    font-weight: 900;
    letter-spacing: 5px;
    margin-top: -5px;
}

.header-counters {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap; /* Prevent stacking on desktop */
}

.global-counter {
    position: relative;
    width: 180px;
    height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.global-counter:hover {
    transform: translateY(-5px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
}

.counter-gold {
    border-color: rgba(204, 255, 0, 0.3);
}

.counter-gold:hover {
    border-color: var(--neon-lime);
    box-shadow: 0 15px 40px rgba(204, 255, 0, 0.2);
}

.counter-cyan {
    border-color: rgba(0, 180, 219, 0.3);
}

.counter-cyan:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 15px 40px rgba(0, 180, 219, 0.2);
}

.counter-cyan .counter-value {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 180, 219, 0.6);
}

.counter-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--neon-lime);
    text-shadow: 0 0 20px rgba(204, 255, 0, 0.6);
    line-height: 1.2;
}

.counter-label {
    font-size: 11px;
    color: var(--text-secondary);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 5px;
    opacity: 0.8;
}

/* Grid Sections */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 28px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
    transform: none !important;
}

.card:hover,
.card:active {
    transform: none !important;
    border-color: rgba(204, 255, 0, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(204, 255, 0, 0.06);
}

/* Blood Market */
.market-card {
    grid-column: span 2;
}

.market-stocks {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 12px;
    padding: 10px 0;
}

.stock-item {
    min-width: 0;
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 10px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.2s ease;
}

.stock-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}

.stock-type {
    font-size: 18px;
    font-weight: 900;
}

.stock-level {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 10px;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    background: var(--neon-lime);
}

.level-fill.critical {
    background: var(--neon-red);
}

/* Golden Window */
.golden-window {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.5));
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.golden-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    color: #FFD700;
}

/* Rescue Wave Map */
.wave-section {
    grid-column: span 2;
}

.map-placeholder {
    height: 300px;
    background: #050505;
    border-radius: 20px;
    margin-top: 20px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    opacity: 0.3;
}

.pulse-point {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--neon-red);
    border-radius: 50%;
}

.pulse-point::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Anwar Chat Widget */
.anwar-bubble {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 65px;
    height: 65px;
    background: var(--neon-lime);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(204, 255, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s;
}

.anwar-bubble:hover {
    transform: scale(1.1);
}

.chat-window {
    position: fixed;
    bottom: 110px;
    left: 30px;
    width: 350px;
    height: 500px;
    background: var(--card-bg);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
}

.chat-header {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    padding: 12px 18px;
    border-radius: 20px;
    max-width: 80%;
    font-size: 14px;
    line-height: 1.4;
}

.message.ai {
    background: rgba(255, 255, 255, 0.05);
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.message.user {
    background: var(--neon-lime);
    color: var(--charcoal);
    align-self: flex-end;
    border-bottom-right-radius: 5px;
    font-weight: 700;
}

.chat-input {
    padding: 20px;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 25px;
    color: white;
}

.send-btn {
    width: 45px;
    height: 45px;
    background: var(--neon-lime);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* SOS Floating */
.sos-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    background: var(--neon-red);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    color: white;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(255, 59, 48, 0.4);
    animation: pulse-red 2s infinite;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 59, 48, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

/* Info Sections */
.info-section {
    margin-top: 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 10px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.solution-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.solution-card:hover {
    background: rgba(204, 255, 0, 0.03);
    border-color: var(--neon-lime);
    transform: scale(1.05);
}

.solution-card i {
    font-size: 40px;
    display: block;
    margin-bottom: 20px;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 14px;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
}

/* Button Interactions */
button,
.send-btn,
.sos-btn {
    cursor: pointer;
    transition: all 0.3s;
}

button:active,
.send-btn:active {
    transform: scale(0.98);
}

/* Ensure stable form cards and compact paragraph spacing */
.card, .form-card, .waitlist-card, .info-section, .solution-card {
    transform: none !important;
}
.card:hover, .card:active {
    transform: none !important;
}
p {
    margin-top: 4px;
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Footer */
footer a:hover {
    text-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .market-stocks {
        gap: 10px;
    }
    
    .market-card, .wave-section, .waitlist-card {
        grid-column: span 1 !important;
    }

    .waitlist-card {
        flex-direction: column;
        padding: 30px 20px;
        text-align: center;
        gap: 20px;
    }

    .waitlist-form {
        flex-direction: column;
        width: 100%;
    }

    .waitlist-form input {
        width: 100% !important;
    }

    header {
        flex-direction: column;
        gap: 20px;
    }

    .header-main-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 15px;
    }

    .header-features-showcase {
        width: 100%;
        max-width: 100%;
        margin: 5px 0 0 0;
        height: 185px;
    }

    .section-title h2 {
        font-size: 32px;
    }
}

/* Waitlist Card Specifics (Clean Classes) */
.waitlist-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--neon-lime), #a8ff00);
    color: var(--charcoal);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    border: none;
    box-shadow: 0 15px 40px rgba(204, 255, 0, 0.3);
}

.waitlist-content h2 {
    font-size: 32px;
    margin-bottom: 5px;
}

.waitlist-content p {
    font-weight: 700;
    opacity: 0.8;
}

.waitlist-form {
    display: flex;
    gap: 15px;
}

.waitlist-form input {
    padding: 15px 25px;
    border-radius: 12px;
    border: none;
    width: 300px;
    font-weight: 700;
    background: rgba(0,0,0,0.1);
    color: var(--charcoal);
}

.waitlist-submit {
    background: var(--charcoal);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .app-container {
        padding: 15px;
    }

    header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 10px 0;
        margin-bottom: 25px;
    }

    .header-main-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        gap: 10px;
    }

    .header-features-showcase {
        width: 100%;
        max-width: 100%;
        margin: 5px 0 0 0;
        height: 130px;
    }

    .logo-section {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        text-align: start;
    }

    .logo-box {
        width: 44px;
        height: 44px;
        flex-shrink: 0;
    }

    .logo-text h1 {
        font-size: 20px;
        margin: 0;
        line-height: 1.2;
    }

    .logo-text p {
        font-size: 10px;
        margin: 0;
        opacity: 0.6;
    }

    .user-profile-mini {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .user-profile-mini .logo-box {
        width: 38px;
        height: 38px;
    }

    .user-profile-mini .logo-box svg {
        width: 20px;
        height: 20px;
    }

    .header-counters {
        width: 100%;
        gap: 15px;
        order: 2;
    }

    .global-counter {
        flex: 1;
        min-width: 140px;
        padding: 10px 15px;
    }

    .counter-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .global-counter {
        min-width: 100%;
    }

    .logo-text h1 {
        font-size: 18px;
    }
}

/* Nearby Healthcare Booking Style additions */
.sos-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.sos-form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.hc-star:hover {
    transform: scale(1.2);
}

@keyframes pulse-heartbeat {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 25px rgba(0, 180, 219, 0.4); }
}

@keyframes pulse-slow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); text-shadow: 0 0 15px rgba(0, 180, 219, 0.6); }
}

/* Antigravity: Mobile responsive fixes */

/* Fix 1: Form grids for partner and practitioner cards */
@media (max-width: 600px) {
    .partner-form-grid,
    .practitioner-form-grid {
        grid-template-columns: 1fr !important;
    }
    .practitioner-form-grid > .sos-form-group[style*="grid-column"],
    .partner-form-grid > .sos-form-group[style*="grid-column"] {
        grid-column: span 1 !important;
    }
}

/* Fix 2: Top shortcuts bar overflow & horizontal scrollability */
@media (max-width: 768px) {
    .quick-links-bar {
        justify-content: flex-start !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        -webkit-overflow-scrolling: touch;
    }
    .quick-link-item {
        flex-shrink: 0 !important;
    }
}

/* Fix 3: Scrollable SOS & general modals */
.modal-card {
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-red) rgba(255, 255, 255, 0.05);
}
.modal-card::-webkit-scrollbar {
    width: 6px;
}
.modal-card::-webkit-scrollbar-thumb {
    background: var(--neon-red);
    border-radius: 10px;
}

@media (max-width: 768px) {
    /* Hide desktop sticky bottom dock on mobile since top bar is sufficient */
    .sticky-nav-dock {
        display: none !important;
    }
}

/* ==========================================================================
   World-Class Ambient Canvas Background System (Qatra Modern Tech-Mesh)
   ========================================================================== */
.ambient-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    background-color: #060709;
}

/* Ambient Grid Removed upon user request */
.ambient-grid {
    display: none !important;
}

/* Organic Floating Glowing Orbs (Aurora Light Fields) */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(95px);
    -webkit-filter: blur(95px);
    pointer-events: none;
    will-change: transform, opacity;
}

/* Crimson Orb (Blood, Heartbeat & Life Urgency) */
.orb-crimson {
    top: -8%;
    right: 8%;
    width: 540px;
    height: 540px;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.17) 0%, rgba(255, 59, 48, 0.03) 50%, transparent 70%);
    animation: orb-breathe-crimson 10s ease-in-out infinite alternate;
}

/* Neon Lime Orb (Hope, Vitality & Donor Energy) */
.orb-lime {
    top: 42%;
    left: -8%;
    width: 580px;
    height: 580px;
    background: radial-gradient(circle, rgba(204, 255, 0, 0.11) 0%, rgba(204, 255, 0, 0.02) 50%, transparent 70%);
    animation: orb-breathe-lime 13s ease-in-out infinite alternate;
}

/* Cyan Orb (AI, Technology & Family Care Security) */
.orb-cyan {
    bottom: -10%;
    right: 20%;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(0, 180, 219, 0.12) 0%, rgba(0, 180, 219, 0.02) 50%, transparent 70%);
    animation: orb-breathe-cyan 15s ease-in-out infinite alternate;
}

/* Cinema-Grade Soft Vignette */
.ambient-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 100% 100% at 50% 50%, transparent 40%, rgba(6, 7, 9, 0.75) 100%);
    pointer-events: none;
}

/* Smooth Ambient Animations */
@keyframes orb-breathe-crimson {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.75;
    }
    50% {
        transform: translate3d(30px, 20px, 0) scale(1.1);
        opacity: 1;
    }
    100% {
        transform: translate3d(-20px, 35px, 0) scale(0.96);
        opacity: 0.8;
    }
}

@keyframes orb-breathe-lime {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate3d(-25px, -30px, 0) scale(1.12);
        opacity: 0.95;
    }
    100% {
        transform: translate3d(20px, 15px, 0) scale(0.94);
        opacity: 0.72;
    }
}

@keyframes orb-breathe-cyan {
    0% {
        transform: translate3d(0, 0, 0) scale(0.96);
        opacity: 0.7;
    }
    50% {
        transform: translate3d(35px, -15px, 0) scale(1.08);
        opacity: 1;
    }
    100% {
        transform: translate3d(-20px, 25px, 0) scale(1);
        opacity: 0.78;
    }
}

/* Reduced Motion for accessibility & battery saver */
@media (prefers-reduced-motion: reduce) {
    .ambient-orb {
        animation: none !important;
    }
    .radar-scanner {
        animation: none !important;
    }
}

/* ==========================================================================
   Live Seismic Radar & Dual Monitoring (EMSC + USGS) - World-Class Cyber UI
   ========================================================================== */
.seismic-radar-card {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(15, 18, 26, 0.95), rgba(7, 9, 14, 0.98));
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 28px;
    padding: 35px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 50px rgba(255, 59, 48, 0.08);
    backdrop-filter: blur(20px);
}

.seismic-radar-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.15), transparent 70%);
    pointer-events: none;
}

.seismic-radar-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(0, 180, 219, 0.12), transparent 70%);
    pointer-events: none;
}

/* Header & Badges */
.radar-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.scientific-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 59, 48, 0.15), rgba(255, 42, 95, 0.05));
    border: 1px solid rgba(255, 59, 48, 0.4);
    padding: 7px 18px;
    border-radius: 50px;
    color: #ff5b5b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 0 20px rgba(255, 59, 48, 0.2);
}

.live-feed-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 6px 16px;
    border-radius: 50px;
    color: #10b981;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.live-feed-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: live-blink 1.2s infinite;
}

@keyframes live-blink {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #10b981; }
    50% { opacity: 0.3; transform: scale(0.75); }
}

/* Dual Engines Row (EMSC + USGS) */
.dual-engine-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.engine-box {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.engine-box:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.engine-box.emsc {
    border-left: 3px solid #3b82f6;
}

.engine-box.usgs {
    border-left: 3px solid #10b981;
}

.engine-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.engine-flag {
    font-size: 26px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.engine-name {
    font-size: 14px;
    font-weight: 800;
    color: white;
    margin-bottom: 2px;
}

.engine-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
}

.engine-status-tag {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.engine-ping {
    font-size: 10px;
    color: var(--neon-lime);
    font-family: monospace;
    font-weight: 700;
    background: rgba(204, 255, 0, 0.08);
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(204, 255, 0, 0.2);
}

/* Radar Layout (Radar Screen + Feed Stream) */
.radar-main-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 25px;
    align-items: stretch;
    position: relative;
    z-index: 2;
}

/* Radar Screen (Rotating scanner & circles) */
.radar-screen-card {
    background: radial-gradient(circle at center, #0a111a 0%, #05070a 100%);
    border: 1px solid rgba(0, 180, 219, 0.25);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 35px rgba(0, 180, 219, 0.1);
}

.radar-viewport {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    position: relative;
    border: 2px solid rgba(0, 180, 219, 0.4);
    box-shadow: 0 0 25px rgba(0, 180, 219, 0.15), inset 0 0 30px rgba(0, 180, 219, 0.1);
    margin: 10px 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Concentric rings */
.radar-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(0, 180, 219, 0.25);
}

.radar-ring.ring-1 { width: 70px; height: 70px; }
.radar-ring.ring-2 { width: 140px; height: 140px; }
.radar-ring.ring-3 { width: 210px; height: 210px; }

/* Crosshairs */
.radar-axis-x {
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(0, 180, 219, 0.2);
}

.radar-axis-y {
    position: absolute;
    height: 100%;
    width: 1px;
    background: rgba(0, 180, 219, 0.2);
}

/* Rotating Scanner */
.radar-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(0, 243, 255, 0.4) 0deg, transparent 65deg, transparent 360deg);
    animation: radar-sweep 4s linear infinite;
    pointer-events: none;
}

@keyframes radar-sweep {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Radar Center Blip */
.radar-center-blip {
    width: 10px;
    height: 10px;
    background: #ff3b30;
    border-radius: 50%;
    box-shadow: 0 0 15px #ff3b30;
    position: relative;
    z-index: 5;
}

.radar-center-blip::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px solid #ff3b30;
    animation: ping-pulse 1.8s infinite;
}

@keyframes ping-pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Dynamic Quake Blips */
.radar-quake-blip {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 6;
    transition: transform 0.2s ease;
}

.radar-quake-blip:hover {
    transform: translate(-50%, -50%) scale(1.6);
}

/* Radar Quick Stats */
.radar-screen-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.screen-stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px 12px;
    text-align: center;
}

.screen-stat-val {
    font-size: 14px;
    font-weight: 900;
    color: var(--neon-lime);
}

.screen-stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
}

/* Live Feed Stream Column */
.seismic-feed-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feed-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.feed-title {
    font-size: 18px;
    font-weight: 900;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-radar-refresh {
    background: rgba(204, 255, 0, 0.1);
    border: 1px solid rgba(204, 255, 0, 0.3);
    color: var(--neon-lime);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-radar-refresh:hover {
    background: var(--neon-lime);
    color: var(--charcoal);
    box-shadow: 0 0 15px rgba(204, 255, 0, 0.4);
    transform: translateY(-1px);
}

.btn-radar-refresh.spinning .refresh-icon {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Feed Items Scroll Area */
.seismic-feed-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 380px;
    overflow-y: auto;
    padding-right: 5px;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) rgba(255, 255, 255, 0.05);
}

.seismic-feed-list::-webkit-scrollbar {
    width: 4px;
}

.seismic-feed-list::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 10px;
}

.quake-event-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    min-height: 70px;
    box-sizing: border-box;
}

.quake-event-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(-4px);
}

html[lang="en"] .quake-event-item:hover,
html[lang="fr"] .quake-event-item:hover {
    transform: translateX(4px);
}

.quake-event-item.high-mag {
    border-inline-start: 4px solid #ff3b30;
    background: linear-gradient(90deg, rgba(255, 59, 48, 0.08), rgba(255, 255, 255, 0.02));
}

.quake-event-item.mid-mag {
    border-inline-start: 4px solid #ff9500;
    background: linear-gradient(90deg, rgba(255, 149, 0, 0.06), rgba(255, 255, 255, 0.02));
}

.quake-event-item.low-mag {
    border-inline-start: 4px solid #10b981;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05), rgba(255, 255, 255, 0.02));
}

.quake-main-info {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    flex: 1;
}

/* Magnitude Pill */
.magnitude-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 900;
    line-height: 1;
}

.magnitude-badge.mag-low {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.magnitude-badge.mag-mid {
    background: rgba(255, 149, 0, 0.15);
    color: #ff9500;
    border: 1px solid rgba(255, 149, 0, 0.3);
}

.magnitude-badge.mag-high {
    background: rgba(255, 59, 48, 0.2);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.4);
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.3);
}

.magnitude-num {
    font-size: 18px;
    font-weight: 900;
}

.magnitude-unit {
    font-size: 9px;
    opacity: 0.8;
    margin-top: 2px;
    text-transform: uppercase;
}

/* Quake Details */
.quake-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.quake-location {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.quake-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.4;
    margin-top: 2px;
}

.quake-dual-check {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    color: #00F5D4;
    background: rgba(0, 245, 212, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(0, 245, 212, 0.2);
}

/* Dual Validation Guarantee Footer Note */
.radar-guarantee-note {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px 18px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.65);
    position: relative;
    z-index: 2;
}

.radar-guarantee-note strong {
    color: var(--neon-lime);
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .radar-main-layout {
        grid-template-columns: 1fr;
    }
    
    .dual-engine-showcase {
        grid-template-columns: 1fr;
    }
    
    .seismic-radar-card {
        padding: 25px 18px;
    }
}

/* ==========================================================================
   National Blood Stock Barometer (مؤشر المخزون الوطني للدم)
   ========================================================================== */
.national-stock-section {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(20, 24, 33, 0.95), rgba(10, 12, 18, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 25px;
}

.national-stock-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff3b30, #ff9500, #34c759, var(--neon-lime));
}

.stock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.stock-title-box h3 {
    font-size: 22px;
    font-weight: 900;
    color: white;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

[data-i18n="stock-barometer-tag"] {
    white-space: nowrap !important;
    display: inline-block !important;
}

@media (max-width: 768px) {
    .stock-header {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .stock-title-box h3 {
        font-size: 18px !important;
        line-height: 1.35 !important;
    }
    .stock-header button.quick-link-item,
    .stock-header .quick-link-item {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
}

.stock-title-box p {
    font-size: 13px;
    color: var(--text-secondary);
}

.stock-regions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.stock-region-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    padding: 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stock-region-card:hover {
    transform: translateY(-4px);
    border-color: rgba(204, 255, 0, 0.3);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stock-region-name {
    font-size: 14px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stock-region-center {
    font-size: 10px;
    font-weight: 700;
    color: var(--neon-cyan);
    background: rgba(0, 180, 219, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.stock-groups-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stock-group-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.25);
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 12px;
}

.stock-pill {
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pill-critical {
    background: rgba(255, 59, 48, 0.15);
    color: #ff3b30;
    border: 1px solid rgba(255, 59, 48, 0.3);
}

.pill-moderate {
    background: rgba(255, 149, 0, 0.15);
    color: #ff9500;
    border: 1px solid rgba(255, 149, 0, 0.3);
}

.pill-good {
    background: rgba(52, 199, 89, 0.15);
    color: #34c759;
    border: 1px solid rgba(52, 199, 89, 0.3);
}

/* ==========================================================================
   Digital Donor Card (بطاقة المتبرع الرقمية)
   ========================================================================== */
.donor-card-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
    z-index: 100002;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.donor-card-modal-content {
    background: rgba(18, 22, 30, 0.95);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 28px;
    width: 100%;
    max-width: 520px;
    padding: 26px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* The Futuristic Holographic VIP Donor Card */
.donor-vip-card {
    width: 100%;
    max-width: 420px;
    height: 250px;
    border-radius: 20px;
    background: linear-gradient(135deg, #1c2333 0%, #0d111a 60%, #151a24 100%);
    border: 1.5px solid rgba(255, 215, 0, 0.45);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(255, 215, 0, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px;
    box-sizing: border-box;
    margin: 20px 0;
    text-align: start;
}

.donor-vip-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 180deg at 50% 50%, transparent 0deg, rgba(255, 215, 0, 0.08) 60deg, transparent 120deg);
    pointer-events: none;
}

.donor-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.donor-card-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.donor-card-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.donor-card-brand-title {
    font-size: 13px;
    font-weight: 900;
    color: #FFD700;
    letter-spacing: 0.5px;
}

.donor-card-badge-vip {
    background: rgba(255, 215, 0, 0.15);
    color: #FFD700;
    border: 1px solid rgba(255, 215, 0, 0.35);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.donor-card-middle {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 2;
}

.donor-card-user-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.donor-card-name {
    font-size: 18px;
    font-weight: 900;
    color: white;
}

.donor-card-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.donor-card-blood-badge {
    background: radial-gradient(circle, #ff3b30 0%, #b30000 100%);
    color: white;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 0 15px rgba(255, 59, 48, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.donor-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 8px;
    position: relative;
    z-index: 2;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.donor-card-id {
    font-family: monospace;
    color: var(--neon-lime);
    font-weight: 700;
}

/* Viral WhatsApp Button */
.btn-whatsapp-viral {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp-viral:hover {
    transform: translateY(-2px);
    background: #20bd5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   World-Class Glowing Showcase Image Frames
   =================================================== */
.qatra-glowing-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #090c10;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 243, 255, 0.12);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.qatra-glowing-frame:hover {
    border-color: rgba(0, 243, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 243, 255, 0.25);
    transform: translateY(-2px);
}

.qatra-glowing-frame.glow-red {
    border-color: rgba(255, 59, 48, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 59, 48, 0.18);
}
.qatra-glowing-frame.glow-red:hover {
    border-color: rgba(255, 59, 48, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 45px rgba(255, 59, 48, 0.35);
}

.qatra-glowing-frame.glow-green {
    border-color: rgba(76, 175, 80, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(76, 175, 80, 0.2);
}
.qatra-glowing-frame.glow-green:hover {
    border-color: rgba(76, 175, 80, 0.55);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 45px rgba(76, 175, 80, 0.35);
}

.qatra-glowing-frame.glow-gold {
    border-color: rgba(255, 215, 0, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 215, 0, 0.18);
}
.qatra-glowing-frame.glow-gold:hover {
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 45px rgba(255, 215, 0, 0.35);
}

.qatra-glowing-frame.glow-cyan {
    border-color: rgba(0, 180, 219, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 180, 219, 0.2);
}
.qatra-glowing-frame.glow-cyan:hover {
    border-color: rgba(0, 180, 219, 0.55);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 45px rgba(0, 180, 219, 0.35);
}

.qatra-glowing-frame img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.qatra-glowing-frame:hover img {
    transform: scale(1.03);
    filter: brightness(1.05);
}

.qatra-glowing-frame .frame-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 7, 9, 0.05) 0%, rgba(6, 7, 9, 0.4) 50%, rgba(6, 7, 9, 0.92) 100%);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px 20px;
}

.qatra-glowing-frame .frame-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(10px);
    width: fit-content;
    margin-bottom: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.qatra-glowing-frame .frame-caption {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .qatra-glowing-frame img {
        height: 180px;
    }
    .qatra-glowing-frame .frame-caption {
        font-size: 13px;
    }
}

/* Custom enlarged frames to showcase faces completely for Healthcare & Family Safety */
.qatra-glowing-frame.frame-faces-healthcare img,
.qatra-glowing-frame img.showcase-img-healthcare {
    height: 380px;
    object-position: center 10%;
}

.qatra-glowing-frame.frame-faces-family img,
.qatra-glowing-frame img.showcase-img-family {
    height: 460px;
    object-position: center 82%;
}

@media (max-width: 768px) {
    .qatra-glowing-frame.frame-faces-healthcare img,
    .qatra-glowing-frame img.showcase-img-healthcare {
        height: 280px;
        object-position: center 10%;
    }
    .qatra-glowing-frame.frame-faces-family img,
    .qatra-glowing-frame img.showcase-img-family {
        height: 350px;
        object-position: center 82%;
    }

    /* Mobile & Facebook in-app browser optimization for floating buttons */
    .sos-btn {
        bottom: 16px !important;
        right: 14px !important;
        width: 56px !important;
        height: 56px !important;
        font-size: 13px !important;
        box-shadow: 0 4px 20px rgba(255, 59, 48, 0.45) !important;
    }

    .anwar-bubble {
        bottom: 16px !important;
        left: 14px !important;
        width: 48px !important;
        height: 48px !important;
        box-shadow: 0 4px 15px rgba(204, 255, 0, 0.3) !important;
    }

    .app-container {
        padding-bottom: 95px !important;
    }
}

/* ========================================================
   MODERN GLOBE LANGUAGE SELECTOR DROPDOWN
   ======================================================== */
.lang-dropdown-wrapper {
    position: relative;
    display: inline-block;
    direction: ltr !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans Arabic', sans-serif;
    z-index: 1000;
}

.lang-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 11.5px;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    height: 32px;
    box-sizing: border-box;
}

.lang-dropdown-btn:hover,
.lang-dropdown-wrapper.open .lang-dropdown-btn {
    background: rgba(204, 255, 0, 0.12);
    border-color: var(--neon-lime);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(204, 255, 0, 0.35);
    transform: translateY(-1px);
}

.lang-globe-icon {
    font-size: 14px;
    filter: drop-shadow(0 0 4px rgba(204, 255, 0, 0.5));
    line-height: 1;
}

.lang-active-code {
    color: var(--neon-lime);
    font-weight: 900;
    letter-spacing: 0.5px;
    font-size: 11.5px;
}

.lang-chevron {
    font-size: 9px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.25s ease;
}

.lang-dropdown-wrapper.open .lang-chevron {
    transform: rotate(180deg);
    color: var(--neon-lime);
}

.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 175px;
    background: rgba(14, 17, 24, 0.96);
    border: 1px solid rgba(204, 255, 0, 0.3);
    border-radius: 16px;
    padding: 6px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 25px rgba(204, 255, 0, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 10001;
    direction: ltr !important;
}

.lang-dropdown-wrapper.open .lang-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.lang-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    box-sizing: border-box;
}

.lang-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lang-menu-item.active {
    background: rgba(204, 255, 0, 0.14);
    border: 1px solid rgba(204, 255, 0, 0.35);
}

.lang-item-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-flag {
    font-size: 15px;
    line-height: 1;
}

.lang-title {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.lang-menu-item.active .lang-title {
    color: var(--neon-lime);
}

.lang-item-code {
    font-size: 10px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 6px;
}

.lang-menu-item.active .lang-item-code {
    color: #000;
    background: var(--neon-lime);
    box-shadow: 0 0 8px rgba(204, 255, 0, 0.5);
}





/* ==========================================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS FIX
   Fixes broken layout on Opera Mobile, Chrome Mobile, etc.
   Applied: 2026-10-28
   ========================================================================== */

/* --- Base fixes: prevent ALL horizontal overflow --- */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Fix header-counters: allow wrapping on small screens --- */
@media (max-width: 768px) {
    .header-counters {
        flex-wrap: wrap !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .global-counter {
        flex: 1 1 calc(50% - 5px) !important;
        min-width: 0 !important;
        width: auto !important;
        height: auto !important;
        min-height: 80px !important;
        padding: 10px 8px !important;
    }

    .counter-value {
        font-size: 22px !important;
    }

    .counter-label {
        font-size: 10px !important;
    }
}

@media (max-width: 400px) {
    .global-counter {
        flex: 1 1 100% !important;
        min-width: 0 !important;
    }

    .counter-value {
        font-size: 20px !important;
    }
}

/* --- Fix section title h2 font size on mobile --- */
@media (max-width: 768px) {
    .section-title h2 {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    .section-title {
        margin-bottom: 30px !important;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 22px !important;
    }

    .waitlist-content h2 {
        font-size: 22px !important;
    }
}

/* --- Fix logo-text h1 regression in 480px block (was 28px, should be smaller) --- */
@media (max-width: 480px) {
    .logo-text h1 {
        font-size: 17px !important;
    }
}

/* --- Fix quick-links-bar horizontal overflow on mobile --- */
@media (max-width: 768px) {
    .quick-links-bar {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        flex-wrap: nowrap !important;
        scrollbar-width: none !important;
        padding: 8px 12px !important;
        gap: 8px !important;
        justify-content: flex-start !important;
    }

    .quick-links-bar::-webkit-scrollbar {
        display: none !important;
    }

    .quick-link-item {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
}

/* --- Fix dashboard grid on mobile --- */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .dashboard-grid > * {
        grid-column: span 1 !important;
    }

    .market-card,
    .wave-section,
    .seismic-radar-card,
    .waitlist-card,
    .national-stock-section {
        grid-column: span 1 !important;
    }
}

/* --- Fix market stocks grid on small screens --- */
@media (max-width: 480px) {
    .market-stocks {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
        gap: 8px !important;
    }

    .stock-item {
        padding: 10px 6px !important;
    }

    .stock-type {
        font-size: 15px !important;
    }
}

/* --- Fix solutions grid on mobile --- */
@media (max-width: 480px) {
    .solutions-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .solution-card {
        padding: 20px 16px !important;
    }
}

/* --- Fix waitlist card on mobile --- */
@media (max-width: 768px) {
    .waitlist-card {
        flex-direction: column !important;
        padding: 24px 16px !important;
        text-align: center !important;
        gap: 20px !important;
    }

    .waitlist-form {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .waitlist-form input {
        width: 100% !important;
    }

    .waitlist-submit {
        width: 100% !important;
    }
}

/* --- Fix chat window on mobile --- */
@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 30px) !important;
        left: 15px !important;
        right: 15px !important;
        bottom: 100px !important;
        border-radius: 20px !important;
    }

    .anwar-bubble,
    .anwar-fab {
        bottom: 20px !important;
        left: 15px !important;
        width: 56px !important;
        height: 56px !important;
    }

    .sos-btn {
        bottom: 20px !important;
        right: 15px !important;
        width: 64px !important;
        height: 64px !important;
        font-size: 13px !important;
    }
}

/* --- Fix stock-regions-grid on mobile --- */
@media (max-width: 600px) {
    .stock-regions-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .national-stock-section {
        padding: 20px 14px !important;
    }
}

/* --- Fix modals on mobile: ensure they don't overflow --- */
@media (max-width: 600px) {
    .features-modal-content,
    .donor-card-modal-content {
        padding: 16px !important;
        border-radius: 20px !important;
        max-height: 92vh !important;
    }

    .donor-vip-card {
        height: auto !important;
        min-height: 200px !important;
        padding: 16px !important;
    }

    .donor-card-name {
        font-size: 15px !important;
    }
}

/* --- Fix seismic radar section on mobile --- */
@media (max-width: 600px) {
    .seismic-radar-card {
        padding: 18px 14px !important;
    }

    .radar-top-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }

    .quake-location {
        font-size: 12px !important;
        white-space: normal !important;
    }
}

/* --- Fix app-container padding on very small screens --- */
@media (max-width: 360px) {
    .app-container {
        padding: 10px !important;
    }

    .card {
        padding: 16px 12px !important;
        border-radius: 20px !important;
    }

    .section-title h2 {
        font-size: 19px !important;
    }
}

/* --- Prevent any element from exceeding viewport width --- */
@media (max-width: 768px) {
    .app-container,
    .card,
    .info-section,
    header,
    section {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Prevent text from being too large and causing overflow */
    h1, h2, h3 {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
}

/* --- Fix hero streak bar on mobile --- */
@media (max-width: 480px) {
    .hero-streak {
        font-size: 10px !important;
        padding: 4px 8px !important;
        flex-wrap: wrap !important;
        gap: 4px !important;
    }
}

/* --- Fix two-col-row inside dashboard-grid on mobile --- */
@media (max-width: 768px) {
    .dashboard-grid .two-col-row {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* --- Touch-friendly buttons and links --- */
@media (max-width: 768px) {
    button,
    .quick-link-item,
    .hub-tab-btn {
        min-height: 40px !important;
        -webkit-tap-highlight-color: transparent !important;
    }
}


/* Floating Circular Status Tracker directly ABOVE the SOS button */
#qatra-active-sos-floating-pill {
    position: fixed !important;
    bottom: 125px !important;
    right: 36px !important;
    width: 68px !important;
    height: 68px !important;
    border-radius: 50% !important;
    z-index: 99998 !important;
}

@media (max-width: 768px) {
    #qatra-active-sos-floating-pill {
        bottom: 86px !important;
        right: 15px !important;
        width: 58px !important;
        height: 58px !important;
    }
}
