/* 
   COXEUR SOS — DESIGN SYSTEM & PRESENTATION STYLESHEET
   Branding: Sleek Tech Dark Mode (Deep Black, Alarm Red, Luxury Gold, Electric Blue)
*/

:root {
    --bg-primary: #070913;
    --bg-secondary: #0d1127;
    --accent-red: #ff3b30;
    --accent-red-glow: rgba(255, 59, 48, 0.3);
    --accent-gold: #ffd60a;
    --accent-gold-glow: rgba(255, 214, 10, 0.25);
    --accent-blue: #0a84ff;
    --text-main: #f5f5f7;
    --text-muted: #8e8e93;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.07);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    --transition-premium: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(10, 132, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 59, 48, 0.04) 0%, transparent 45%);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
}

/* Background grid overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.007) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.007) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(10, 132, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    transition: width 0.3s, height 0.3s;
}

/* NAVBAR */
.navbar {
    position: relative;
    z-index: 10;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-main);
}

.navbar .logo span {
    color: var(--accent-red);
    text-shadow: 0 0 10px var(--accent-red-glow);
}

.navbar .nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.badge-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(22, 160, 133, 0.1);
    border: 1px solid rgba(22, 160, 133, 0.3);
    font-size: 0.8rem;
    font-weight: 600;
    color: #2ecc71;
}

/* STAGE CONTAINER */
.presentation-container {
    flex: 1;
    position: relative;
    z-index: 5;
    padding: 2rem 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* SLIDE WRAPPER */
.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 680px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(30px);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

/* SINGLE SLIDE */
.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding: 3rem;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: var(--transition-premium);
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slide.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* SLIDE DECORATIVE ACCENTS */
.slide-header {
    margin-bottom: 1.5rem;
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent-red);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.slide-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
}

.slide-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-main) 30%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-title span {
    background: linear-gradient(135deg, var(--accent-gold) 30%, #f39c12 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* SLIDE CONTENT */
.slide-body {
    flex: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: center;
    min-height: 0; /* Ensures proper scroll within grid if needed */
}

.slide-body.full-width {
    grid-template-columns: 1fr;
}

.text-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.text-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #d1d1d6;
    font-family: 'Inter', sans-serif;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 1rem;
    line-height: 1.4;
    color: #e5e5ea;
    font-family: 'Inter', sans-serif;
}

.feature-list li i {
    color: var(--accent-gold);
    margin-top: 3px;
    font-size: 0.95rem;
}

.feature-list li.alert-point i {
    color: var(--accent-red);
    text-shadow: 0 0 5px var(--accent-red-glow);
}

.impact-quote {
    border-left: 3px solid var(--accent-red);
    padding: 0.5rem 0 0.5rem 1.2rem;
    margin-top: 1rem;
    font-style: italic;
    background: rgba(255, 59, 48, 0.03);
    border-radius: 0 8px 8px 0;
}

.impact-quote span {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 0.3rem;
}

.impact-quote cite {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
}

/* COVER SLIDE SPECIALS */
.cover-layout {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
}

.cover-badge {
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: var(--accent-red);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: inset 0 0 10px rgba(255, 59, 48, 0.05);
}

.cover-layout h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.cover-layout h1 span {
    color: var(--accent-red);
    text-shadow: 0 0 20px var(--accent-red-glow);
}

.cover-layout .subtitle {
    font-size: 1.4rem;
    color: #e5e5ea;
    max-width: 800px;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.cover-layout .intro-desc {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}

/* COVER RADAR ANIMATION */
.radar-container {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.02);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.radar-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid rgba(255, 59, 48, 0.2);
    transform: translate(-50%, -50%);
    animation: radar-ping 4s infinite linear;
}

.radar-wave:nth-child(2) {
    animation-delay: 1.3s;
}

.radar-wave:nth-child(3) {
    animation-delay: 2.6s;
}

@keyframes radar-ping {
    0% {
        width: 10px;
        height: 10px;
        opacity: 0.8;
    }
    100% {
        width: 600px;
        height: 600px;
        opacity: 0;
    }
}

/* DIAGRAM SOLUTIONS */
.solution-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
}

.solution-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--glass-border);
    padding: 1.8rem;
    border-radius: 16px;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.solution-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--accent-blue);
    transform: translateY(-5px);
}

.solution-card.alert-card:hover {
    border-color: var(--accent-red);
}

.solution-card .icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(10, 132, 255, 0.1);
    border: 1px solid rgba(10, 132, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--accent-blue);
}

.solution-card.alert-card .icon-box {
    background: rgba(255, 59, 48, 0.1);
    border-color: rgba(255, 59, 48, 0.2);
    color: var(--accent-red);
}

.solution-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
}

.solution-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-family: 'Inter', sans-serif;
}

/* SMARTPHONE & SIMULATION WRAPPERS */
.visual-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* DUAL SIMULATOR STAGE */
.interactive-stage {
    position: relative;
    width: 100%;
    height: 380px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    overflow: hidden;
}

/* SMARTPHONE MOCKUP */
.phone-mockup {
    width: 180px;
    height: 330px;
    background: #000;
    border: 6px solid #1c1c1e;
    border-radius: 28px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-screen {
    flex: 1;
    background: #0f1016;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: 10px;
}

/* App Header inside mockup */
.mock-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 10px;
}

.mock-app-header .title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-main);
}

.mock-app-header .title span {
    color: var(--accent-red);
}

/* Contact Picker simulation */
.mock-contacts-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.mock-contact-item {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 6px 8px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
}

.mock-contact-item .c-name {
    font-weight: 600;
    color: var(--text-main);
}

.mock-contact-item .c-num {
    color: var(--text-muted);
}

.mock-contact-item .delete-btn {
    color: var(--accent-red);
    font-size: 0.6rem;
}

.empty-contacts-text {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: center;
    padding: 15px 0;
    font-style: italic;
}

.add-contact-btn {
    background: var(--accent-blue);
    border: none;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.add-contact-btn:hover {
    background: #0070e3;
}

/* Map & Trip simulation state */
.mock-map-bg {
    background: #151824;
    border-radius: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px;
    position: relative;
    overflow: hidden;
}

.mock-route-line {
    position: absolute;
    width: 70%;
    height: 3px;
    background: rgba(10, 132, 255, 0.4);
    top: 50%;
    left: 15%;
    transform: rotate(-10deg);
}

.mock-car-icon {
    position: absolute;
    font-size: 0.75rem;
    color: var(--accent-blue);
    top: calc(50% - 6px);
    left: 20%;
    animation: mock-drive 8s infinite linear;
}

@keyframes mock-drive {
    0% { left: 20%; }
    50% { left: 60%; }
    100% { left: 20%; }
}

.mock-trip-card {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.55rem;
    z-index: 2;
}

.mock-trip-card .driver-info {
    display: flex;
    flex-direction: column;
}

.mock-trip-card .driver-info .name {
    font-weight: 700;
    color: var(--text-main);
}

.mock-trip-card .driver-info .car {
    color: var(--text-muted);
}

/* SOS Glow Pulse Button */
.mock-sos-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-red);
    box-shadow: 0 0 10px var(--accent-red-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.6rem;
    font-weight: 800;
    cursor: pointer;
    z-index: 3;
    animation: mock-sos-pulse 1.5s infinite ease-in-out;
}

@keyframes mock-sos-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 59, 48, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 59, 48, 0);
    }
}

.mock-sos-btn.triggered {
    background: #ffd60a;
    color: black;
    animation: mock-sos-active 0.5s infinite alternate;
}

@keyframes mock-sos-active {
    0% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 214, 10, 0.8); }
    100% { transform: scale(1.1); box-shadow: 0 0 25px rgba(255, 214, 10, 0.9); }
}

/* SYNC WAVE CENTRAL HUB */
.sync-wave-hub {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
}

.sync-wave-line {
    position: absolute;
    width: 80%;
    height: 2px;
    background: rgba(255,255,255,0.05);
    z-index: 1;
}

.sync-wave-packet {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-red);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-red);
    z-index: 2;
    top: calc(50% - 4px);
    left: 10%;
    opacity: 0;
}

.sync-wave-packet.sending {
    animation: send-packet 1.5s infinite linear;
}

@keyframes send-packet {
    0% { left: 10%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 90%; opacity: 0; }
}

.sync-status-badge {
    position: absolute;
    bottom: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}

.sync-status-badge.active-alert {
    color: var(--accent-red);
    background: rgba(255, 59, 48, 0.08);
    border-color: rgba(255, 59, 48, 0.2);
    animation: text-pulse 1s infinite alternate;
}

@keyframes text-pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* LARAVEL OPERATIONS DASHBOARD MOCKUP */
.admin-dashboard-mockup {
    width: 250px;
    height: 330px;
    background: #0f1016;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.admin-header {
    background: rgba(255,255,255,0.02);
    padding: 10px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header .title {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.admin-header .status {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2ecc71;
}

.admin-body {
    flex: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

/* Simulated Central map on operations console */
.admin-map-preview {
    height: 100px;
    background: #151824;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.03);
    position: relative;
    overflow: hidden;
}

.admin-map-pin {
    position: absolute;
    top: 40%;
    left: 50%;
    color: var(--accent-red);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(0);
}

.admin-map-pin.active {
    opacity: 1;
    animation: pin-bounce 1s infinite alternate;
}

@keyframes pin-bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

.admin-alerts-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px dashed rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
}

.no-alerts-card {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.no-alerts-card i {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.1);
}

.admin-alert-banner {
    width: 100%;
    background: rgba(255, 59, 48, 0.08);
    border: 1px solid rgba(255, 59, 48, 0.3);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: alert-flash 1s infinite alternate;
    display: none;
}

@keyframes alert-flash {
    0% { border-color: rgba(255, 59, 48, 0.3); box-shadow: 0 0 5px rgba(255, 59, 48, 0.1); }
    100% { border-color: rgba(255, 59, 48, 0.9); box-shadow: 0 0 15px rgba(255, 59, 48, 0.4); }
}

.admin-alert-banner .b-title {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--accent-red);
    display: flex;
    align-items: center;
    gap: 4px;
}

.admin-alert-banner .b-desc {
    font-size: 0.55rem;
    color: var(--text-main);
    font-weight: 600;
}

.admin-alert-banner .b-meta {
    font-size: 0.5rem;
    color: var(--text-muted);
}

.admin-alert-banner .dispatch-btn {
    margin-top: 4px;
    background: var(--accent-red);
    border: none;
    color: white;
    font-size: 0.55rem;
    font-weight: 700;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}

/* CONTROLS BAR (PREV / NEXT / PROGRESS) */
.slides-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.progress-container {
    flex: 1;
    max-width: 600px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    margin: 0 2rem;
    position: relative;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-gold) 100%);
    width: 14.28%; /* 100 / 7 slides */
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.controls-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-nav {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    outline: none;
}

.btn-nav:hover:not(:disabled) {
    background: rgba(255,255,255,0.08);
    border-color: var(--text-main);
    transform: scale(1.05);
}

.btn-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.slide-number-indicator {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* FOOTER CAPTION */
.presentation-footer {
    padding: 1.5rem 5%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    z-index: 10;
    position: relative;
}

/* SCROLLBARS FOR DIALOGS IN SIMULATORS */
::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

/* INTERACTIVE DRIVER SIMULATOR ADDITIONS */
.radar-scan-circle {
    position: relative;
    box-shadow: 0 0 15px rgba(255, 214, 10, 0.15);
}

.radar-scan-line {
    transform-origin: center;
}

@keyframes radar-rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.05); opacity: 1; }
}

@keyframes blink {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* 3-NODE NETWORK ARCHITECTURE STYLES */
.network-nodes-container {
    padding: 20px 0;
}

.network-node {
    position: relative;
    overflow: hidden;
}

/* Desktop max-widths for each node (overridden on mobile by media queries) */
#node-client  { max-width: 160px; }
#node-firebase { max-width: 220px; }
#node-laravel  { max-width: 240px; }

.network-node::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    pointer-events: none;
    transition: all 0.5s ease;
}

.network-node.flash-gold::after {
    border-color: var(--accent-gold);
    box-shadow: inset 0 0 15px var(--accent-gold-glow);
    animation: node-flash-anim 0.6s ease-out;
}

.network-node.flash-red::after {
    border-color: var(--accent-red);
    box-shadow: inset 0 0 15px var(--accent-red-glow);
    animation: node-flash-anim-red 0.6s ease-out;
}

@keyframes node-flash-anim {
    0% { transform: scale(1); border-color: var(--accent-gold); box-shadow: inset 0 0 25px rgba(255, 214, 10, 0.6); }
    100% { transform: scale(1.02); border-color: transparent; box-shadow: inset 0 0 0px transparent; }
}

@keyframes node-flash-anim-red {
    0% { transform: scale(1); border-color: var(--accent-red); box-shadow: inset 0 0 25px rgba(255, 59, 48, 0.6); }
    100% { transform: scale(1.02); border-color: transparent; box-shadow: inset 0 0 0px transparent; }
}

.network-line {
    transition: background-color 0.3s ease;
}

.network-dot {
    transition: left 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dialer button pulse & layout */
.dial-17-btn:hover {
    background: rgba(46, 204, 113, 0.15) !important;
    border-color: #2ecc71 !important;
    transform: scale(1.05);
}

/* ===================================================
   RESPONSIVE DESIGN — MOBILE & TABLET
   Breakpoints: 900px (tablet), 640px (large phone), 480px (small phone)
   =================================================== */

/* ---------- TABLET (≤ 900px) ---------- */
@media (max-width: 900px) {

    /* Body & layout */
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }

    .presentation-container {
        padding: 1rem 4%;
        align-items: flex-start;
    }

    /* Slides wrapper */
    .slides-wrapper {
        max-height: none;
        height: auto;
        border-radius: 16px;
    }

    /* Individual slide */
    .slide {
        position: relative;
        opacity: 1;
        display: none;
        height: auto;
        padding: 2rem;
        transform: none !important;
        pointer-events: none;
    }

    .slide.active {
        display: flex;
        pointer-events: all;
    }

    /* Slide header */
    .slide-title {
        font-size: 1.7rem;
    }

    /* Slide body: stack vertically */
    .slide-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        overflow-y: visible;
    }

    .slide-body.full-width {
        grid-template-columns: 1fr;
    }

    /* Text content */
    .text-content p {
        font-size: 0.95rem;
    }

    .feature-list li {
        font-size: 0.9rem;
    }

    /* Cover */
    .cover-layout h1 {
        font-size: 2.8rem;
    }

    .cover-layout .subtitle {
        font-size: 1.1rem;
    }

    /* Solution grid: 2 columns on tablet */
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Interactive stage: vertical stack */
    .interactive-stage {
        height: auto;
        padding: 1.2rem;
        flex-direction: column;
        gap: 1.2rem;
        align-items: center;
    }

    /* Sync hub (horizontal data line) → becomes vertical */
    .sync-wave-hub {
        height: 60px;
        width: 100%;
    }

    .sync-wave-line {
        width: 80%;
        height: 2px;
        left: 10%;
        top: 50%;
        transform: none;
    }

    .sync-wave-packet.sending {
        animation: send-packet 1.5s infinite linear;
        top: calc(50% - 4px);
    }

    .sync-status-badge {
        bottom: 0;
        top: auto;
    }

    /* Phone mockup: centered, slightly smaller */
    .phone-mockup {
        width: 160px;
        height: 300px;
    }

    /* Admin dashboard */
    .admin-dashboard-mockup {
        width: 100%;
        max-width: 420px;
        height: 260px;
    }

    /* Network 3-node: stack vertically */
    .network-nodes-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem;
        padding: 10px 0;
    }

    #net-line-1,
    #net-line-2 {
        width: 2px !important;
        height: 30px !important;
        margin: 0 !important;
        flex: none !important;
        position: relative;
    }

    #net-dot-1,
    #net-dot-2 {
        top: 0% !important;
        left: calc(50% - 4px) !important;
        transition: top 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    }

    #node-client,
    #node-firebase,
    #node-laravel {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Navbar */
    .navbar {
        padding: 1rem 4%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .navbar .logo {
        font-size: 1.3rem;
    }

    .slide-number-indicator {
        font-size: 0.7rem;
    }

    /* Footer */
    .slides-footer {
        padding-top: 0.8rem;
        gap: 0.5rem;
    }

    .progress-container {
        margin: 0 1rem;
    }

    .btn-nav {
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
    }
}

/* ---------- LARGE PHONE (≤ 640px) ---------- */
@media (max-width: 640px) {

    /* Global padding */
    .slide {
        padding: 1.5rem 1.2rem;
    }

    .presentation-container {
        padding: 0.8rem 3%;
    }

    /* Typography */
    .slide-title {
        font-size: 1.4rem;
    }

    .slide-tag {
        font-size: 0.65rem;
    }

    .text-content p {
        font-size: 0.85rem;
    }

    .feature-list li {
        font-size: 0.82rem;
        gap: 0.5rem;
    }

    /* Cover */
    .cover-layout h1 {
        font-size: 2.2rem;
    }

    .cover-layout .subtitle {
        font-size: 0.95rem;
    }

    .cover-layout .intro-desc {
        font-size: 0.82rem;
    }

    .cover-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.8rem;
    }

    /* Solution grid: 1 column */
    .solution-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .solution-card {
        padding: 1.2rem;
    }

    /* Interactive stage */
    .interactive-stage {
        padding: 1rem;
        gap: 1rem;
        border-radius: 12px;
    }

    /* Phone mockup: compact */
    .phone-mockup {
        width: 145px;
        height: 270px;
    }

    .phone-screen {
        padding: 8px;
    }

    /* Admin dashboard */
    .admin-dashboard-mockup {
        height: 220px;
    }

    .admin-map-preview {
        height: 75px;
    }

    /* Impact quote */
    .impact-quote span {
        font-size: 1rem;
    }

    /* Navbar badge hidden on very small */
    .badge-flag {
        display: none;
    }

    .navbar .logo {
        font-size: 1.15rem;
    }

    /* Network architecture: compact nodes */
    #node-firebase {
        padding: 8px !important;
    }

    #laravel-logs-stream {
        height: 50px !important;
        font-size: 0.4rem !important;
    }

    /* Slides footer */
    .slides-footer {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.6rem;
    }

    .progress-container {
        order: -1;
        width: 100%;
        margin: 0;
    }

    /* Call-to-action banners in slides */
    .slide-body > .visual-wrapper > div:first-child {
        padding: 0.8rem;
    }
}

/* ---------- SMALL PHONE (≤ 480px) ---------- */
@media (max-width: 480px) {

    body {
        font-size: 14px;
    }

    .navbar {
        padding: 0.8rem 3%;
    }

    .navbar .logo {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .slide-number-indicator {
        font-size: 0.6rem;
        letter-spacing: 0.5px;
    }

    .slide {
        padding: 1.2rem 1rem;
    }

    .slide-header {
        margin-bottom: 1rem;
    }

    .slide-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    /* Cover slide */
    .cover-layout h1 {
        font-size: 1.8rem;
    }

    .radar-container {
        width: 300px;
        height: 300px;
    }

    /* Feature list */
    .feature-list li {
        font-size: 0.78rem;
        line-height: 1.35;
    }

    /* Interactive stage: very compact */
    .interactive-stage {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    /* Phone mockup: minimum size but still readable */
    .phone-mockup {
        width: 135px;
        height: 250px;
        border-width: 4px;
        border-radius: 20px;
    }

    .mock-app-header .title {
        font-size: 0.65rem;
    }

    /* Admin dashboard */
    .admin-dashboard-mockup {
        max-width: 100%;
        height: 200px;
    }

    .admin-header .title {
        font-size: 0.55rem;
    }

    .admin-alerts-container {
        padding: 6px;
    }

    .no-alerts-card {
        font-size: 0.52rem;
    }

    .admin-alert-banner .b-title {
        font-size: 0.52rem;
    }

    .admin-alert-banner .b-desc {
        font-size: 0.48rem;
    }

    .admin-alert-banner .b-meta {
        font-size: 0.42rem;
    }

    .admin-alert-banner .dispatch-btn {
        font-size: 0.48rem;
        padding: 3px;
    }

    /* Sync hub */
    .sync-wave-hub {
        height: 40px;
    }

    .sync-status-badge {
        font-size: 0.55rem;
        padding: 0.2rem 0.5rem;
        bottom: -2px;
    }

    /* Network nodes */
    #node-client button,
    #node-laravel button {
        font-size: 0.4rem !important;
        padding: 4px !important;
    }

    /* Solution cards */
    .solution-card {
        padding: 1rem;
    }

    .solution-card h3 {
        font-size: 1rem;
    }

    .solution-card p {
        font-size: 0.8rem;
    }

    /* Footer */
    .presentation-footer {
        padding: 1rem 3%;
        font-size: 0.65rem;
    }
}

/* Call 17 Green Pulse */
@keyframes mock-call-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

/* Call 17 Green Pulse */
@keyframes mock-call-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}
