    body {
        font-family: 'El Messiri', sans-serif;
        background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
        color: #0d3744;
        min-height: 100vh;
        overflow-x: hidden;
        position: relative;
        margin: 0;
        padding: 0;
    }
    .popup, .modal {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(255, 255, 255, 0.98);
        padding: 1.5rem;
        border-radius: 15px;
        box-shadow: 0 0 25px rgba(0, 188, 242, 0.6);
        z-index: 1000;
        width: 90%;
        max-width: 320px;
        border: 2px solid #00bcd4;
    }
    .card {
        transition: all 0.5s ease;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0, 188, 242, 0.25);
        position: relative;
        margin: 0.75rem;
        backdrop-filter: blur(12px);
    }
    .card:hover {
        transform: translateY(-8px) scale(1.03);
        box-shadow: 0 8px 30px rgba(0, 188, 242, 0.5);
    }
    .gradient-bg {
        background: linear-gradient(135deg, #00bcd4, #80deea);
    }
    svg {
        width: 100%;
        height: auto;
        margin: 0 auto;
        display: block;
    }
    svg text {
        font-family: 'El Messiri', sans-serif;
        text-anchor: middle;
        dominant-baseline: middle;
        text-transform: uppercase;
        animation: neonPulse 2.5s infinite alternate;
        stroke-width: 1.5;
        stroke: #00bcd4;
        font-size: 140px;
        fill: rgba(255, 255, 255, 0.3);
        letter-spacing: 6px;
    }
    @media (max-width: 768px) {
        svg text { font-size: 90px; }
    }
    @keyframes neonPulse {
        0% { fill: rgba(255, 255, 255, 0.3); stroke: #00bcd4; text-shadow: 0 0 8px #00bcd4; }
        50% { fill: rgba(255, 255, 255, 0.6); stroke: #00acc1; text-shadow: 0 0 20px #00bcd4; }
        100% { fill: rgba(255, 255, 255, 0.9); stroke: rgba(0, 188, 242, 0); text-shadow: 0 0 12px #00bcd4; }
    }
    .history-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .history-item {
        transition: all 0.5s ease;
        width: 100%;
        border-radius: 25px;
        background: linear-gradient(145deg, #ffffff, #e0f7fa);
        box-shadow: 0 4px 15px rgba(0, 188, 242, 0.2);
        padding: 1.5rem;
        position: relative;
        overflow: hidden;
    }
    .history-item:hover {
        transform: scale(1.04);
        background: linear-gradient(145deg, #e0f7fa, #b2ebf2);
        box-shadow: 0 6px 25px rgba(0, 188, 242, 0.4);
    }
    .small-dot {
        position: absolute;
        width: 8px;
        height: 8px;
        background: #00bcd4;
        border-radius: 50%;
        animation: curveCornerDot 3s infinite ease-in-out;
    }
    @keyframes curveCornerDot {
        0% { transform: translate(0, 0) scale(1); opacity: 0.8; }
        25% { transform: translate(10px, -10px) scale(1.5); opacity: 0.5; }
        50% { transform: translate(15px, 0) scale(1); opacity: 0.8; }
        75% { transform: translate(0, 10px) scale(1.5); opacity: 0.5; }
        100% { transform: translate(0, 0) scale(1); opacity: 0.8; }
    }
    .delete-btn:hover {
        color: #00bcd4;
        transform: scale(1.3) rotate(15deg);
    }
    @keyframes futuristicGlow {
        0% { text-shadow: 0 0 6px #00bcd4, 0 0 12px #00bcd4; }
        50% { text-shadow: 0 0 18px #00bcd4, 0 0 30px #00bcd4; }
        100% { text-shadow: 0 0 6px #00bcd4, 0 0 12px #00bcd4; }
    }
    @keyframes glitch {
        0% { transform: translate(0); }
        20% { transform: translate(-3px, 3px); }
        40% { transform: translate(3px, -3px); }
        60% { transform: translate(-2px, 2px); }
        80% { transform: translate(2px, -2px); }
        100% { transform: translate(0); }
    }
    @keyframes winGlow {
        0% { text-shadow: 0 0 3px #00e676, 0 0 6px #00e676; }
        50% { text-shadow: 0 0 9px #00e676, 0 0 15px #00e676; }
        100% { text-shadow: 0 0 3px #00e676, 0 0 6px #00e676; }
    }
    @keyframes lossZap {
        0% { transform: translateX(0); opacity: 1; }
        25% { transform: translateX(-3px); opacity: 0.6; }
        50% { transform: translateX(3px); opacity: 1; }
        75% { transform: translateX(-2px); opacity: 0.6; }
        100% { transform: translateX(0); opacity: 1; }
    }
    @keyframes pendingOrbit {
        0% { transform: rotate(0deg) scale(1); }
        50% { transform: rotate(180deg) scale(1.05); }
        100% { transform: rotate(360deg) scale(1); }
    }
    @media (max-width: 768px) {
        .card { padding: 0.75rem; margin: 0.5rem; }
        .grid-cols-2 { grid-template-columns: 1fr; }
        .md\\:grid-cols-3 { grid-template-columns: 1fr 1fr; }
        .text-3xl { font-size: 1.75rem; }
        .text-2xl { font-size: 1.5rem; }
        .text-xl { font-size: 1.125rem; }
        .p-6 { padding: 1rem; }
        .history-item { padding: 1rem; }
        .w-12 { width: 2.5rem; height: 2.5rem; }
        .gap-6 { gap: 1.5rem; }
        .mb-6 { margin-bottom: 1.5rem; }
    }
    .btn-glow {
        transition: all 0.4s ease;
    }
    .btn-glow:hover {
        box-shadow: 0 0 20px #00bcd4, 0 0 30px #00bcd4;
        transform: scale(1.05);
    }
    @keyframes bounceGlow {
        0% { transform: scale(1); box-shadow: 0 0 5px #00bcd4; }
        50% { transform: scale(1.1); box-shadow: 0 0 15px #00bcd4; }
        100% { transform: scale(1); box-shadow: 0 0 5px #00bcd4; }
    }
    @keyframes rippleWave {
        0% { box-shadow: 0 0 0 0 rgba(0, 188, 242, 0.7); }
        50% { box-shadow: 0 0 0 20px rgba(0, 188, 242, 0); }
        100% { box-shadow: 0 0 0 0 rgba(0, 188, 242, 0); }
    }
    /* New UI Styles */
    .period-result-card {
        background: linear-gradient(145deg, #ffffff, #e0f7fa);
        border-radius: 25px;
        padding: 2rem;
        position: relative;
        overflow: hidden;
    }
    .period-result-card::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(0, 188, 242, 0.1) 0%, transparent 70%);
        transform: translate(-50%, -50%);
        animation: rippleWave 4s infinite ease-out;
    }
    .period-result-box {
        background: rgba(255, 255, 255, 0.9);
        border-radius: 20px;
        padding: 1.25rem;
        box-shadow: 0 4px 15px rgba(0, 188, 242, 0.15);
        transition: all 0.3s ease;
        position: relative;
        z-index: 1;
    }
    .period-result-box:hover {
        transform: scale(1.06);
        box-shadow: 0 6px 25px rgba(0, 188, 242, 0.3);
        animation: rippleWave 2s infinite;
    }
    .dashboard-box {
        background: linear-gradient(145deg, #ffffff, #e0f7fa);
        border-radius: 20px;
        padding: 1.5rem;
        box-shadow: 0 3px 12px rgba(0, 188, 242, 0.15);
        transition: all 0.4s ease;
        position: relative;
        overflow: hidden;
    }
    .dashboard-box::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(0, 188, 242, 0.2);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        animation: rippleWave 3s infinite ease-out;
    }
    .dashboard-box:hover {
        transform: translateY(-6px);
        box-shadow: 0 5px 20px rgba(0, 188, 242, 0.3);
    }