    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Roboto+Mono:wght@500;700&display=swap');

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Inter', sans-serif;
        background: #000000;
        color: #ffffff;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .mono {
        font-family: 'Roboto Mono', monospace;
    }

    .screen {
        display: none;
        min-height: 100vh;
        padding: 20px;
        animation: fadeIn 0.6s ease-in;
        background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
        position: relative;
    }

    .screen.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .container {
        max-width: 700px;
        width: 100%;
        text-align: center;
        padding: 30px;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(20px);
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    }

    /* Logo */
    .logo {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        margin-bottom: 30px;
        flex-wrap: wrap;
    }

    .logo i {
        font-size: 2.5rem;
        color: #ef4444;
        animation: heartbeat 2s ease-in-out infinite;
    }

    @keyframes heartbeat {
        0%, 100% { transform: scale(1); }
        10% { transform: scale(1.1); }
        20% { transform: scale(1); }
        30% { transform: scale(1.1); }
        40% { transform: scale(1); }
    }

    .logo-text {
        text-align: left;
    }

    .logo-main {
        font-size: 2rem;
        font-weight: 900;
        background: linear-gradient(45deg, #ef4444, #3b82f6);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        letter-spacing: 2px;
        line-height: 1;
    }

    .logo-sub {
        font-size: 0.7rem;
        color: rgba(255, 255, 255, 0.6);
        font-weight: 500;
        margin-top: 2px;
    }

    /* Typography */
    h1 {
        font-size: 2.2rem;
        margin-bottom: 20px;
        line-height: 1.3;
        font-weight: 900;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 20px;
        font-weight: 900;
    }

    .emergency-text {
        font-size: 2.5rem;
        font-weight: 900;
        text-shadow: 2px 2px 15px rgba(239, 68, 68, 0.6);
        line-height: 1.2;
    }

    .subtitle {
        font-size: 1.15rem;
        margin-bottom: 15px;
        opacity: 0.9;
        font-weight: 400;
        line-height: 1.6;
    }

    .disclaimer {
        margin-top: 25px;
        font-size: 0.9rem;
        opacity: 0.7;
        font-weight: 400;
    }

    /* Buttons */
    .btn-primary, .btn-secondary {
        padding: 18px 45px;
        font-size: 1.1rem;
        border: none;
        border-radius: 50px;
        cursor: pointer;
        font-weight: 700;
        transition: all 0.3s ease;
        margin: 10px;
        display: inline-block;
        font-family: 'Inter', sans-serif;
        width: auto;
        white-space: nowrap;
    }

    .btn-primary {
        background: linear-gradient(45deg, #ef4444, #dc2626);
        color: white;
        box-shadow: 0 10px 30px rgba(239, 68, 68, 0.5);
    }

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(239, 68, 68, 0.7);
    }

    .btn-primary:active {
        transform: translateY(-1px);
    }

    .btn-secondary {
        background: rgba(255, 255, 255, 0.15);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.3);
        backdrop-filter: blur(10px);
    }

    .btn-secondary:hover {
        background: rgba(255, 255, 255, 0.25);
        transform: translateY(-2px);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .btn-secondary:active {
        transform: translateY(0px);
    }

    .pulse {
        animation: pulse 2s infinite;
    }

    @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.05); }
    }

    /* Loader */
    .loader {
        width: 70px;
        height: 70px;
        border: 6px solid rgba(255, 255, 255, 0.2);
        border-top: 6px solid #ef4444;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 30px;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .status-text {
        font-size: 1.15rem;
        opacity: 0.85;
        font-weight: 500;
    }

    /* Hospital List */
    .hospital-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
        max-height: 500px;
        overflow-y: auto;
        padding-right: 10px;
    }

    .hospital-list::-webkit-scrollbar {
        width: 8px;
    }

    .hospital-list::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
    }

    .hospital-list::-webkit-scrollbar-thumb {
        background: rgba(239, 68, 68, 0.5);
        border-radius: 10px;
    }

    .hospital-card {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(15px);
        border: 2px solid rgba(255, 255, 255, 0.15);
        border-radius: 15px;
        padding: 20px;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: left;
    }

    .hospital-card:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(8px);
        border-color: #ef4444;
        box-shadow: 0 8px 25px rgba(239, 68, 68, 0.3);
    }

    .hospital-card:active {
        transform: translateX(4px);
    }

    .hospital-name {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 10px;
        color: #ffffff;
    }

    .hospital-address {
        font-size: 0.95rem;
        opacity: 0.75;
        margin-bottom: 10px;
        line-height: 1.4;
    }

    .hospital-distance {
        font-size: 1.05rem;
        color: #3b82f6;
        font-weight: 700;
        font-family: 'Roboto Mono', monospace;
    }

    /* Time Display */
    .time-display {
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(15px);
        border-radius: 25px;
        padding: 50px 40px;
        margin: 30px 0;
        border: 3px solid;
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    }

    .time-display.critical {
        border-color: #ef4444;
        box-shadow: 0 0 50px rgba(239, 68, 68, 0.4);
    }

    .time-display.success {
        border-color: #10b981;
        box-shadow: 0 0 50px rgba(16, 185, 129, 0.4);
    }

    .time-number {
        font-size: 6rem;
        font-weight: 900;
        line-height: 1;
        margin-bottom: 15px;
        font-family: 'Roboto Mono', monospace;
    }

    .time-label {
        font-size: 1.6rem;
        opacity: 0.85;
        font-weight: 600;
    }

    /* Map Container */
    .map-container {
        width: 100%;
        height: 350px;
        border-radius: 20px;
        margin: 25px 0;
        overflow: hidden;
        border: 2px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .route-info {
        margin: 20px 0;
        font-size: 1.05rem;
        opacity: 0.9;
        font-weight: 500;
        line-height: 1.5;
    }

    /* Stats Grid */
    .golden-title {
        font-size: 2.8rem;
        margin-bottom: 15px;
        font-weight: 900;
    }

    .golden-subtitle {
        font-size: 1.3rem;
        margin-bottom: 40px;
        opacity: 0.9;
        font-weight: 500;
        line-height: 1.5;
    }

    .stats-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 35px 0;
    }

    .stat-card {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(15px);
        border: 2px solid rgba(255, 255, 255, 0.15);
        border-radius: 20px;
        padding: 30px;
        transition: all 0.3s ease;
    }

    .stat-card:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.12);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    }

    .stat-icon {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }

    .stat-number {
        font-size: 3.5rem;
        font-weight: 900;
        color: #fbbf24;
        margin-bottom: 15px;
        font-family: 'Roboto Mono', monospace;
    }

    .stat-label {
        font-size: 1.05rem;
        line-height: 1.6;
        font-weight: 500;
    }

    .current-time-box {
        background: rgba(239, 68, 68, 0.15);
        border: 2px solid #ef4444;
        border-radius: 20px;
        padding: 30px;
        margin: 35px 0;
        backdrop-filter: blur(15px);
    }

    .current-time-box p {
        font-size: 1.1rem;
        margin-bottom: 10px;
        font-weight: 500;
    }

    .time-highlight {
        font-size: 2.8rem;
        color: #ef4444;
        margin-top: 10px;
        font-weight: 900;
        font-family: 'Roboto Mono', monospace;
    }

    /* Time Saved */
    .time-saved {
        margin: 35px 0;
    }

    .saved-badge {
        background: linear-gradient(45deg, #10b981, #059669);
        padding: 25px 50px;
        border-radius: 50px;
        display: inline-block;
        margin-bottom: 20px;
        box-shadow: 0 15px 40px rgba(16, 185, 129, 0.4);
    }

    .saved-number {
        font-size: 3rem;
        font-weight: 900;
        font-family: 'Roboto Mono', monospace;
    }

    .saved-percentage {
        font-size: 1.8rem;
        color: #10b981;
        font-weight: 700;
    }

    /* Features */
    .features {
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(15px);
        border-radius: 20px;
        padding: 35px;
        margin: 35px 0;
        text-align: left;
        border: 2px solid rgba(255, 255, 255, 0.1);
    }

    .features h3 {
        text-align: center;
        margin-bottom: 25px;
        font-size: 1.7rem;
        font-weight: 900;
    }

    .feature-item {
        padding: 15px 0;
        font-size: 1.15rem;
        font-weight: 500;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        line-height: 1.5;
    }

    .feature-item:last-child {
        border-bottom: none;
    }

    /* Final Screen */
    .final-heading {
        font-size: 2.8rem;
        margin-bottom: 20px;
        line-height: 1.3;
        font-weight: 900;
    }

    .final-subtitle {
        font-size: 1.4rem;
        margin-bottom: 45px;
        opacity: 0.9;
        font-weight: 500;
    }

    .comparison-box {
        display: flex;
        justify-content: space-around;
        align-items: center;
        margin: 45px 0;
        gap: 30px;
        flex-wrap: wrap;
    }

    .comparison-item {
        flex: 1;
        min-width: 200px;
    }

    .label {
        font-size: 1.1rem;
        opacity: 0.8;
        margin-bottom: 15px;
        font-weight: 600;
    }

    .time-big {
        font-size: 4rem;
        font-weight: 900;
        font-family: 'Roboto Mono', monospace;
    }

    .critical-text {
        color: #ef4444;
    }

    .success-text {
        color: #10b981;
    }

    .vs {
        font-size: 1.8rem;
        font-weight: 700;
        opacity: 0.6;
    }

    .impact-message {
        background: rgba(239, 68, 68, 0.15);
        border: 2px solid #ef4444;
        border-radius: 20px;
        padding: 30px;
        margin: 35px 0;
        font-size: 1.3rem;
        font-weight: 600;
        line-height: 1.6;
        backdrop-filter: blur(15px);
    }

    .cta-section {
        margin-top: 50px;
    }

    .cta-section h3 {
        font-size: 2rem;
        margin-bottom: 15px;
        font-weight: 900;
    }

    .cta-section p {
        font-size: 1.15rem;
        margin-bottom: 35px;
        opacity: 0.9;
        font-weight: 500;
        line-height: 1.5;
    }

    .btn-large {
        padding: 22px 55px;
        font-size: 1.3rem;
    }

    /* Tablet Responsive (768px - 1024px) */
    @media (max-width: 1024px) {
        .container {
            max-width: 600px;
            padding: 25px;
        }

        .time-number {
            font-size: 5rem;
        }

        .map-container {
            height: 300px;
        }
    }

    /* Mobile Landscape & Small Tablets (481px - 767px) */
    @media (max-width: 767px) {
        .screen {
            padding: 15px;
        }

        .container {
            padding: 25px 20px;
            max-width: 100%;
        }

        h1 { 
            font-size: 1.8rem;
            margin-bottom: 15px;
        }

        .emergency-text { 
            font-size: 2rem;
            line-height: 1.3;
        }

        h2 { 
            font-size: 1.7rem;
        }

        .subtitle {
            font-size: 1.05rem;
            line-height: 1.5;
        }

        .time-number { 
            font-size: 4.5rem;
        }

        .time-label {
            font-size: 1.4rem;
        }

        .golden-title { 
            font-size: 2.2rem;
        }

        .golden-subtitle {
            font-size: 1.15rem;
        }

        .stat-number { 
            font-size: 3rem;
        }

        .stat-label {
            font-size: 0.95rem;
        }

        .comparison-box { 
            flex-direction: column; 
            gap: 25px;
            margin: 30px 0;
        }

        .comparison-item {
            min-width: 100%;
        }

        .time-big { 
            font-size: 3.5rem;
        }

        .final-heading { 
            font-size: 2.2rem;
        }

        .final-subtitle {
            font-size: 1.2rem;
        }

        .btn-primary, .btn-secondary { 
            padding: 16px 35px; 
            font-size: 1rem;
            width: 100%;
            max-width: 400px;
        }

        .btn-large {
            padding: 18px 40px;
            font-size: 1.1rem;
            width: 100%;
        }

        .logo-main { 
            font-size: 1.7rem;
        }

        .logo i { 
            font-size: 2.2rem;
        }

        .map-container { 
            height: 250px;
        }

        .hospital-name {
            font-size: 1.15rem;
        }

        .hospital-address {
            font-size: 0.9rem;
        }

        .saved-badge {
            padding: 20px 40px;
        }

        .saved-number {
            font-size: 2.5rem;
        }

        .saved-percentage {
            font-size: 1.5rem;
        }

        .features {
            padding: 25px 20px;
        }

        .feature-item {
            font-size: 1.05rem;
        }

        .time-highlight {
            font-size: 2.5rem;
        }

        .impact-message {
            font-size: 1.15rem;
            padding: 25px 20px;
        }
    }

    /* Mobile Portrait (320px - 480px) */
    @media (max-width: 480px) {
        .screen {
            padding: 10px;
        }

        .container { 
            padding: 20px 15px;
            border-radius: 15px;
        }

        h1 { 
            font-size: 1.5rem;
            line-height: 1.3;
        }

        .emergency-text { 
            font-size: 1.7rem;
            line-height: 1.25;
            word-break: break-word;
        }

        h2 {
            font-size: 1.5rem;
        }

        .subtitle {
            font-size: 1rem;
        }

        .disclaimer {
            font-size: 0.85rem;
        }

        .logo {
            gap: 10px;
        }

        .logo-main {
            font-size: 1.5rem;
        }

        .logo-sub {
            font-size: 0.65rem;
        }

        .logo i {
            font-size: 2rem;
        }

        .time-number { 
            font-size: 4rem;
        }

        .time-label {
            font-size: 1.2rem;
        }

        .time-display {
            padding: 35px 25px;
        }

        .golden-title {
            font-size: 1.9rem;
        }

        .golden-subtitle {
            font-size: 1.05rem;
        }

        .stat-card {
            padding: 25px 20px;
        }

        .stat-icon { 
            font-size: 3rem;
        }

        .stat-number { 
            font-size: 2.5rem;
        }

        .stat-label {
            font-size: 0.9rem;
        }

        .time-big { 
            font-size: 3rem;
        }

        .saved-number { 
            font-size: 2.2rem;
        }

        .saved-percentage {
            font-size: 1.3rem;
        }

        .saved-badge {
            padding: 18px 30px;
        }

        .final-heading {
            font-size: 1.9rem;
        }

        .final-subtitle {
            font-size: 1.1rem;
            margin-bottom: 30px;
        }

        .label {
            font-size: 1rem;
        }

        .vs {
            font-size: 1.5rem;
            margin: 10px 0;
        }

        .btn-primary, .btn-secondary {
            padding: 15px 30px;
            font-size: 0.95rem;
            width: 100%;
        }

        .btn-large {
            padding: 16px 35px;
            font-size: 1rem;
        }

        .map-container {
            height: 220px;
        }

        .hospital-card {
            padding: 18px;
        }

        .hospital-name {
            font-size: 1.1rem;
        }

        .hospital-address {
            font-size: 0.85rem;
        }

        .hospital-distance {
            font-size: 1rem;
        }

        .features {
            padding: 20px 15px;
        }

        .features h3 {
            font-size: 1.4rem;
        }

        .feature-item {
            font-size: 1rem;
            padding: 12px 0;
        }

        .time-highlight {
            font-size: 2.2rem;
        }

        .current-time-box {
            padding: 25px 20px;
        }

        .current-time-box p {
            font-size: 1rem;
        }

        .impact-message {
            font-size: 1.05rem;
            padding: 20px 15px;
        }

        .cta-section h3 {
            font-size: 1.7rem;
        }

        .cta-section p {
            font-size: 1.05rem;
        }

        .loader {
            width: 60px;
            height: 60px;
            border-width: 5px;
        }

        .status-text {
            font-size: 1.05rem;
        }
    }

    /* Extra Small Devices (< 320px) */
    @media (max-width: 319px) {
        .emergency-text {
            font-size: 1.5rem;
        }

        .time-number {
            font-size: 3.5rem;
        }

        .btn-primary, .btn-secondary {
            padding: 14px 25px;
            font-size: 0.9rem;
        }
    }

    /* Landscape Mobile Specific */
    @media (max-height: 500px) and (orientation: landscape) {
        .container {
            margin: 10px auto;
            padding: 20px;
        }

        .screen {
            padding: 10px;
        }

        .logo {
            margin-bottom: 15px;
        }

        h1, .emergency-text {
            margin-bottom: 10px;
        }

        .subtitle {
            margin-bottom: 10px;
        }

        .btn-primary {
            margin: 5px;
        }

        .disclaimer {
            margin-top: 15px;
        }
    }

    /* Touch-friendly improvements */
    @media (hover: none) and (pointer: coarse) {
        .btn-primary, .btn-secondary {
            min-height: 48px;
            padding: 16px 35px;
        }

        .hospital-card {
            min-height: 80px;
        }
    }