  body {
        font-family: 'El Messiri', sans-serif;
        background: linear-gradient(135deg, #F0FFFF, #F0FFF0);
        /* Azure Mist to Honeydew */
        min-height: 100vh;
        overflow-x: hidden;
        position: relative;
        margin: 0;
        padding: 0;
        color: #708090;
        /* Slate Gray text color globally */
      }

      * {
        color: #708090;
        /* Ensure all text inherits Slate Gray */
      }

      .popup,
      .modal {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(240, 255, 240, 0.9);
        /* Honeydew with transparency */
        padding: 1.5rem;
        border-radius: 1.5rem;
        /* Increased for icy round effect */
        box-shadow: 0 6px 16px rgba(144, 238, 144, 0.3);
        /* Light Green shadow */
        backdrop-filter: blur(8px);
        /* Frosted glass effect */
        z-index: 1000;
        width: 90%;
        max-width: 400px;
        border: 2px solid #D1F2EB;
        /* Light Aqua */
      }

      .popup.active,
      .modal.active {
        display: block;
      }

      .card {
        transition: all 0.3s ease;
        background: rgba(240, 255, 240, 0.9);
        /* Honeydew with transparency */
        border-radius: 1.5rem;
        /* Increased for icy round effect */
        box-shadow: 0 6px 12px rgba(144, 238, 144, 0.2);
        /* Light Green shadow */
        backdrop-filter: blur(8px);
        /* Frosted glass effect */
        position: relative;
        margin: 0.75rem;
        overflow: hidden;
      }

      .card:hover {
        transform: translateY(-6px) scale(1.03);
        box-shadow: 0 8px 16px rgba(144, 238, 144, 0.3);
        /* Light Green shadow */
      }

      .gradient-bg {
        background: linear-gradient(135deg, #90EE90, #D1F2EB);
        /* Light Green to Light Aqua */
      }

      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: #90EE90;
        /* Light Green */
        font-size: 130px;
        fill: rgba(240, 255, 240, 0);
        /* Honeydew transparent */
      }

      @media (max-width: 768px) {
        svg text {
          font-size: 100px;
        }
      }

      @keyframes stroke {
        0% {
          fill: rgba(240, 255, 240, 0);
          stroke: #90EE90;
          stroke-dashoffset: 25%;
          stroke-dasharray: 0 50%;
          stroke-width: 1.2;
        }

        70% {
          fill: rgba(240, 255, 240, 0);
          stroke: #D1F2EB;
        }

        80% {
          fill: rgba(240, 255, 240, 0);
          stroke: #F0FFF0;
          stroke-width: 2.5;
        }

        100% {
          fill: #F0FFFF;
          stroke: rgba(144, 238, 144, 0);
          stroke-dashoffset: -25%;
          stroke-dasharray: 50% 0;
          stroke-width: 0;
        }
      }

      .history-container {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        max-height: none;
        overflow: visible;
        position: relative;
      }

      .history-item {
        transition: all 0.3s ease;
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 1.2rem;
        /* Increased for icy round effect */
        background: rgba(240, 255, 240, 0.85);
        /* Honeydew with transparency */
        backdrop-filter: blur(8px);
        /* Frosted glass effect */
        box-shadow: 0 4px 14px rgba(144, 238, 144, 0.15);
        /* Light Green shadow */
        position: relative;
        overflow: hidden;
        padding: 1.2rem;
        border-left: 4px solid transparent;
      }

      .history-item.win {
        border-left-color: #4CAF50;
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.08), rgba(240, 255, 240, 0.85));
      }

      .history-item.loss {
        border-left-color: #F44336;
        background: linear-gradient(135deg, rgba(244, 67, 54, 0.08), rgba(240, 255, 240, 0.85));
      }

      .history-item.pending {
        border-left-color: #FFC107;
        background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(240, 255, 240, 0.85));
      }

      .history-item.skipped {
        border-left-color: #9E9E9E;
        background: linear-gradient(135deg, rgba(158, 158, 158, 0.08), rgba(240, 255, 240, 0.85));
      }

      .history-item:hover {
        transform: scale(1.02);
        box-shadow: 0 6px 18px rgba(144, 238, 144, 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(144, 238, 144, 0.15);
        /* Light Green with opacity */
        pointer-events: none;
        z-index: 0;
        text-transform: uppercase;
        font-weight: bold;
      }

      .small-dot {
        position: absolute;
        width: 6px;
        height: 6px;
        background: #D1F2EB;
        /* Light Aqua */
        border-radius: 50%;
        animation: float 4s infinite;
        z-index: 1;
      }

      @keyframes float {
        0% {
          transform: translate(0, 0);
          opacity: 0.9;
        }

        50% {
          transform: translate(12px, -12px);
          opacity: 0.5;
        }

        100% {
          transform: translate(0, 0);
          opacity: 0.9;
        }
      }

      .delete-btn:hover {
        color: #90EE90;
        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);
        }
      }

      /* Modern Navigation Bar Styles */
      .modern-navigation {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 350px;
        height: 70px;
        background: rgba(240, 255, 240, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        box-shadow: 0 8px 20px rgba(144, 238, 144, 0.3);
        z-index: 1000;
        padding: 0 15px;
      }

      .nav-container {
        position: relative;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 100%;
        width: 100%;
      }

      .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 25%;
        height: 100%;
        cursor: pointer;
        position: relative;
        z-index: 2;
        transition: all 0.3s ease;
      }

      .nav-icon {
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        transform: translateY(5px);
      }

      .nav-item.active .nav-icon {
        transform: translateY(-10px);
        color: #4CAF50;
      }

      .nav-text {
        position: absolute;
        bottom: 10px;
        font-size: 12px;
        opacity: 0;
        transition: all 0.3s ease;
        color: #4CAF50;
        font-weight: 500;
      }

      .nav-item.active .nav-text {
        opacity: 1;
        transform: translateY(5px);
      }

      .nav-indicator {
        position: absolute;
        top: -50%;
        width: 60px;
        height: 60px;
        background: #90EE90;
        border-radius: 50%;
        border: 5px solid #F0FFFF;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 1;
      }

      .nav-indicator::before {
        content: '';
        position: absolute;
        top: 50%;
        left: -20px;
        width: 18px;
        height: 18px;
        background: transparent;
        border-top-right-radius: 18px;
        box-shadow: 1px -8px 0 0 #F0FFFF;
      }

      .nav-indicator::after {
        content: '';
        position: absolute;
        top: 50%;
        right: -20px;
        width: 18px;
        height: 18px;
        background: transparent;
        border-top-left-radius: 18px;
        box-shadow: -1px -8px 0 0 #F0FFFF;
      }

      /* Navigation item positions */
      .nav-item:nth-child(1).active~.nav-indicator {
        transform: translateX(calc(25% * 0));
      }

      .nav-item:nth-child(2).active~.nav-indicator {
        transform: translateX(calc(25% * 1));
      }

      .nav-item:nth-child(3).active~.nav-indicator {
        transform: translateX(calc(25% * 2));
      }

      .nav-item:nth-child(4).active~.nav-indicator {
        transform: translateX(calc(25% * 3));
      }

      .dashboard-card {
        background: rgba(240, 255, 240, 0.9);
        /* Honeydew with transparency */
        border-radius: 1.5rem;
        /* Increased for icy round effect */
        padding: 1.2rem;
        box-shadow: 0 4px 10px rgba(144, 238, 144, 0.15);
        /* Light Green shadow */
        backdrop-filter: blur(8px);
        /* Frosted glass effect */
        transition: all 0.3s ease;
      }

      .dashboard-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 14px rgba(144, 238, 144, 0.25);
        /* Light Green shadow */
      }

      .confidence-meter {
        height: 10px;
        background: #F0FFFF;
        /* Azure Mist */
        border-radius: 5px;
        overflow: hidden;
        position: relative;
      }

      .confidence-fill {
        height: 100%;
        background: #90EE90;
        /* Light Green */
        transition: width 0.5s ease;
      }

      .navigation {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 350px;
        height: 70px;
        background: rgba(240, 255, 240, 0.9);
        /* Honeydew with transparency */
        backdrop-filter: blur(8px);
        /* Frosted glass effect */
        display: flex;
        justify-content: center;
        align-items: center;
        border-radius: 1.5rem;
        /* Increased for icy round effect */
        box-shadow: 0 6px 12px rgba(144, 238, 144, 0.3);
        /* Light Green shadow */
        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;
      }

      .navigation ul li.active a .icon {
        transform: translateY(-32px);
      }

      .navigation ul li a .text {
        position: absolute;
        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: #90EE90;
        /* Light Green */
        border-radius: 50%;
        border: 6px solid #F0FFFF;
        /* Azure Mist */
        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 #F0FFFF;
        /* Azure Mist */
      }

      .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 #F0FFFF;
        /* Azure Mist */
      }

      .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: #90EE90;
        /* Light Green */
        transition: .4s;
        border-radius: 34px;
      }

      .mode-slider:before {
        position: absolute;
        content: "";
        height: 22px;
        width: 22px;
        left: 4px;
        bottom: 4px;
        background-color: #F0FFFF;
        /* Azure Mist */
        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 {
        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;
        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%;
      }

      button,
      .btn {
        border-radius: 1rem;
        /* Increased for icy round effect */
        background: rgba(144, 238, 144, 0.9);
        /* Light Green with transparency */
        backdrop-filter: blur(8px);
        /* Frosted glass effect */
        transition: all 0.3s ease;
      }

      button:hover,
      .btn:hover {
        background: #D1F2EB;
        /* Light Aqua */
        transform: scale(1.05);
      }

      @media (max-width: 768px) {
        .card {
          padding: 0.75rem;
          margin: 0.5rem;
          border-radius: 1rem;
        }

        .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.75rem;
        }

        .p-5 {
          padding: 0.5rem;
        }

        .w-12 {
          width: 2.5rem;
          height: 2.5rem;
        }

        .history-item {
          padding: 1rem;
          border-radius: 1rem;
        }

        .history-item .watermark {
          font-size: 1rem;
        }

        .rounded-xl {
          border-radius: 0.75rem;
        }

        .gap-4 {
          gap: 0.75rem;
        }

        .mb-4 {
          margin-bottom: 0.75rem;
        }

        .mb-2 {
          margin-bottom: 0.5rem;
        }

        .mb-1 {
          margin-bottom: 0.3rem;
        }

        .px-4 {
          padding-left: 0.75rem;
          padding-right: 0.75rem;
        }

        .px-2 {
          padding-left: 0.5rem;
          padding-right: 0.5rem;
        }

        .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;
          border-radius: 1rem;
        }

        .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: 1rem;
          border-radius: 1rem;
        }
      }