        body {
            font-family: 'El Messiri', sans-serif;
            background: linear-gradient(135deg, #ffe6e6, #ffffff);
            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.95);
            padding: 1rem;
            border-radius: 0.5rem;
            box-shadow: 0 4px 12px rgba(255, 99, 99, 0.4);
            z-index: 1000;
            width: 90%;
            max-width: 400px;
            border: 2px solid #ff6363;
        }
        .popup.active, .modal.active {
            display: block;
        }
        .card {
            transition: all 0.3s ease;
            background: #fff;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(255, 99, 99, 0.2);
            position: relative;
            margin: 0.5rem;
            overflow: hidden;
        }
        .card:hover {
            transform: translateY(-6px) scale(1.03);
            box-shadow: 0 6px 14px rgba(255, 99, 99, 0.3);
        }
        .gradient-bg {
            background: linear-gradient(135deg, #ff6363, #ffe6e6);
        }
        svg {
            width: 100%;
            height: auto;
            margin: 0 auto;
            display: block;
        }
        svg text {
            text-anchor: middle;
            dominant-baseline: middle;
            text-transform: uppercase;
            animation: stroke 5s infinite alternate;
            stroke-width: 1.2;
            stroke: #ff6363;
            font-size: 130px;
            fill: rgba(255, 255, 255, 0);
        }
        @media (max-width: 768px) {
            svg text { font-size: 100px; }
        }
        @keyframes stroke {
            0% { fill: rgba(255, 255, 255, 0); stroke: #ff6363; stroke-dashoffset: 25%; stroke-dasharray: 0 50%; stroke-width: 1.2; }
            70% { fill: rgba(255, 255, 255, 0); stroke: #ff8c8c; }
            80% { fill: rgba(255, 255, 255, 0); stroke: #ffe6e6; stroke-width: 2.5; }
            100% { fill: #fff; stroke: rgba(255, 99, 99, 0); stroke-dashoffset: -25%; stroke-dasharray: 50% 0; stroke-width: 0; }
        }
        .history-container {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            max-height: none;
            overflow: visible;
            position: relative;
        }
        .history-item {
            transition: all 0.3s ease;
            width: 100%;
            max-width: 100%;
            margin: 0;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(8px);
            box-shadow: 0 3px 12px rgba(255, 99, 99, 0.15);
            position: relative;
            overflow: hidden;
            padding: 1rem;
            border-left: 4px solid transparent;
        }
        .history-item.win { border-left-color: #4CAF50; background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(255, 255, 255, 0.95)); }
        .history-item.loss { border-left-color: #F44336; background: linear-gradient(135deg, rgba(244, 67, 54, 0.08), rgba(255, 255, 255, 0.95)); }
        .history-item.pending { border-left-color: #FFC107; background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(255, 255, 255, 0.95)); }
        .history-item.skipped { border-left-color: #9E9E9E; background: linear-gradient(135deg, rgba(158, 158, 158, 0.08), rgba(255, 255, 255, 0.95)); }
        .history-item:hover { transform: scale(1.02); box-shadow: 0 5px 16px rgba(255, 99, 99, 0.25); }
        .history-item.fade-out { animation: fadeOut 0.5s ease forwards; }
        @keyframes fadeOut {
            0% { opacity: 1; transform: scale(1); }
            100% { opacity: 0; transform: scale(0.95); height: 0; padding: 0; margin: 0; }
        }
        .history-item .watermark {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(-45deg);
            font-size: 1.5rem;
            color: rgba(255, 99, 99, 0.15);
            pointer-events: none;
            z-index: 0;
            text-transform: uppercase;
            font-weight: bold;
        }
        .small-dot {
            position: absolute;
            width: 5px;
            height: 5px;
            background: #ff6363;
            border-radius: 50%;
            animation: float 4s infinite;
            z-index: 1;
        }
        @keyframes float {
            0% { transform: translate(0, 0); opacity: 0.9; }
            50% { transform: translate(10px, -10px); opacity: 0.5; }
            100% { transform: translate(0, 0); opacity: 0.9; }
        }
        .delete-btn:hover { color: #ff6363; transform: scale(1.3); }
        .win-badge { background: rgba(76, 175, 80, 0.15); color: #2E7D32; }
        .loss-badge { background: rgba(244, 67, 54, 0.15); color: #C62828; }
        .pending-badge { background: rgba(255, 193, 7, 0.15); color: #FF8F00; }
        .skipped-badge { background: rgba(158, 158, 158, 0.15); color: #616161; }
        .status-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            position: relative;
            overflow: hidden;
        }
        .status-icon::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            opacity: 0.2;
            background: radial-gradient(circle, currentColor 0%, transparent 70%);
        }
        .win-icon { color: #4CAF50; animation: pulseWin 1.5s infinite; }
        .loss-icon { color: #F44336; animation: pulseLoss 1s infinite; }
        .pending-icon { color: #FFC107; animation: rotate 2s infinite linear; }
        .skipped-icon { color: #9E9E9E; animation: pulseSkip 1.5s infinite; }
        @keyframes pulseWin {
            0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
            70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
            100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
        }
        @keyframes pulseLoss {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.1); }
        }
        @keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }
        @keyframes pulseSkip {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }
        .dashboard-card {
            background: linear-gradient(135deg, #fff0f0, #ffe6e6);
            border-radius: 20px;
            padding: 1rem;
            box-shadow: 0 3px 8px rgba(255, 99, 99, 0.15);
            transition: all 0.3s ease;
        }
        .dashboard-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 5px 12px rgba(255, 99, 99, 0.25);
        }
        .confidence-meter {
            height: 10px;
            background: #f0f0f0;
            border-radius: 5px;
            overflow: hidden;
            position: relative;
        }
        .confidence-fill {
            height: 100%;
            background: #ff6363;
            transition: width 0.5s ease;
        }
        .navigation {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: 350px;
            height: 70px;
            background: #fff;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 10px;
            box-shadow: 0 4px 10px rgba(255, 99, 99, 0.3);
            z-index: 1000;
        }
        .navigation ul {
            display: flex;
            width: 300px;
        }
        .navigation ul li {
            position: relative;
            list-style: none;
            width: 75px;
            height: 70px;
            z-index: 1;
        }
        .navigation ul li a {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            width: 100%;
            text-align: center;
            font-weight: 500;
        }
        .navigation ul li a .icon {
            position: relative;
            display: block;
            line-height: 75px;
            font-size: 1.5em;
            text-align: center;
            transition: 0.5s;
            color: #ff6363;
        }
        .navigation ul li.active a .icon { transform: translateY(-32px); }
        .navigation ul li a .text {
            position: absolute;
            color: #ff6363;
            font-weight: 400;
            font-size: 0.75em;
            letter-spacing: 0.05em;
            transition: 0.5s;
            opacity: 0;
            transform: translateY(20px);
        }
        .navigation ul li.active a .text { opacity: 1; transform: translateY(10px); }
        .indicator {
            position: absolute;
            top: -50%;
            width: 70px;
            height: 70px;
            background: #ff6363;
            border-radius: 50%;
            border: 6px solid #fff;
            transition: 0.5s;
        }
        .indicator::before {
            content: '';
            position: absolute;
            top: 50%;
            left: -22px;
            width: 20px;
            height: 20px;
            background: transparent;
            border-top-right-radius: 20px;
            box-shadow: 1px -10px 0 0 #fff;
        }
        .indicator::after {
            content: '';
            position: absolute;
            top: 50%;
            right: -22px;
            width: 20px;
            height: 20px;
            background: transparent;
            border-top-left-radius: 20px;
            box-shadow: -1px -10px 0 0 #fff;
        }
        .navigation ul li:nth-child(1).active ~ .indicator { transform: translateX(calc(75px * 0)); }
        .navigation ul li:nth-child(2).active ~ .indicator { transform: translateX(calc(75px * 1)); }
        .navigation ul li:nth-child(3).active ~ .indicator { transform: translateX(calc(75px * 2)); }
        .navigation ul li:nth-child(4).active ~ .indicator { transform: translateX(calc(75px * 3)); }
        .content-section { display: none; }
        .content-section.active { display: block; }
        .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; }
        .mode-toggle {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 30px;
        }
        .mode-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .mode-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ff6363;
            transition: .4s;
            border-radius: 34px;
        }
        .mode-slider:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
        }
        input:checked + .mode-slider {
            background-color: #4CAF50;
        }
        input:checked + .mode-slider:before {
            transform: translateX(30px);
        }
        .mode-icons {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 8px;
            pointer-events: none;
        }
        .mode-icons i, .mode-icons span {
            color: white;
            font-size: 14px;
        }
        .contact-links {
            display: flex;
            justify-content: space-around;
            margin-top: 15px;
        }
        .contact-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: #ff6363;
            font-size: 12px;
        }
        .contact-link i {
            font-size: 20px;
            margin-bottom: 5px;
        }
        .period-id {
            font-family: monospace;
            letter-spacing: 2px;
            font-size: 1.2rem;
        }
        #currentPeriod, #currentResult {
            border: none !important;
        }
        .video-container {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 aspect ratio */
            height: 0;
            overflow: hidden;
        }
        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
        }
        @media (max-width: 768px) {
            .card { padding: 0.5rem; margin: 0.2rem; }
            .grid-cols-2 { grid-template-columns: 1fr; }
            .md\\:grid-cols-3 { grid-template-columns: 1fr 1fr; }
            .text-3xl { font-size: 1.5rem; }
            .text-2xl { font-size: 1.25rem; }
            .text-xl { font-size: 1rem; }
            .text-lg { font-size: 0.875rem; }
            .text-sm { font-size: 0.75rem; }
            .p-6 { padding: 0.5rem; }
            .p-5 { padding: 0.4rem; }
            .w-12 { width: 2.5rem; height: 2.5rem; }
            .history-item { padding: 0.8rem; }
            .history-item .watermark { font-size: 1rem; }
            .rounded-xl { border-radius: 0.5rem; }
            .gap-4 { gap: 0.5rem; }
            .mb-4 { margin-bottom: 0.5rem; }
            .mb-2 { margin-bottom: 0.3rem; }
            .mb-1 { margin-bottom: 0.2rem; }
            .px-4 { padding-left: 0.5rem; padding-right: 0.5rem; }
            .px-2 { padding-left: 0.3rem; padding-right: 0.3rem; }
            .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
            .space-x-2 > * + * { margin-left: 0.5rem; }
            .space-x-1 > * + * { margin-left: 0.3rem; }
            .navigation { width: 300px; }
            .navigation ul { width: 250px; }
            .navigation ul li { width: 62.5px; }
            .indicator { width: 60px; height: 60px; }
            .navigation ul li:nth-child(1).active ~ .indicator { transform: translateX(calc(62.5px * 0)); }
            .navigation ul li:nth-child(2).active ~ .indicator { transform: translateX(calc(62.5px * 1)); }
            .navigation ul li:nth-child(3).active ~ .indicator { transform: translateX(calc(62.5px * 2)); }
            .navigation ul li:nth-child(4).active ~ .indicator { transform: translateX(calc(62.5px * 3)); }
            .popup, .modal { max-width: 320px; padding: 0.75rem; }
        }