:root {
      --primary: #FF3A44;
      --primary-light: #FF6B6B;
      --primary-dark: #CC2E36;
      --secondary: #6C63FF;
      --dark: #2D3748;
      --light: #F7FAFC;
      --success: #48BB78;
      --danger: #F56565;
      --warning: #ED8936;
      --info: #4299E1;
      --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      --bg-color: #F5F7FA;
      --card-bg: #FFFFFF;
      --text-color: #2D3748;
    }

    :root.dark {
      --primary: #FF6B6B;
      --primary-light: #FF8E8E;
      --primary-dark: #FF4757;
      --secondary: #7B68EE;
      --dark: #F8F9FA;
      --light: #2D3748;
      --success: #58CC71;
      --danger: #FF6B6B;
      --warning: #FFA502;
      --info: #4DABF7;
      --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
      --bg-color: #1A202C;
      --card-bg: #2D3748;
      --text-color: #F8F9FA;
    }
    
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    body {
      font-family: 'Poppins', sans-serif;
      background-color: var(--bg-color);
      color: var(--text-color);
      line-height: 1.6;
      transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 20px;
    }
    
    /* Header Styles */
    .app-header {
      text-align: center;
      margin-bottom: 30px;
      position: relative;
    }
    
    .app-title {
      font-size: 3rem;
      font-weight: 700;
      background: var(--gradient);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 10px;
      position: relative;
      display: inline-block;
    }
    
    .app-title::after {
      content: '';
      position: absolute;
      bottom: -10px;
      left: 50%;
      transform: translateX(-50%);
      width: 100px;
      height: 4px;
      background: var(--gradient);
      border-radius: 2px;
    }
    
    .app-subtitle {
      color: #718096;
      font-weight: 400;
      font-size: 1.1rem;
    }
    
    /* Card Styles */
    .card {
      background: var(--card-bg);
      border-radius: 16px;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
      padding: 25px;
      margin-bottom: 30px;
      position: relative;
      overflow: hidden;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    }
    
    .card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 8px;
      background: var(--gradient);
    }
    
    .card-title {
      font-size: 1.5rem;
      font-weight: 600;
      color: var(--dark);
      margin-bottom: 20px;
      display: flex;
      align-items: center;
    }
    
    .card-title i {
      margin-right: 10px;
      color: var(--primary);
    }
    
    /* Current Result Section */
    .current-result {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 0;
    }
    
    .result-item {
      text-align: center;
      flex: 1;
      padding: 15px;
      position: relative;
    }
    
    .result-item:not(:last-child)::after {
      content: '';
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
      height: 60%;
      width: 2px;
      background: rgba(0, 0, 0, 0.1);
    }
    
    .result-label {
      font-size: 1rem;
      color: #718096;
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .result-value {
      font-size: 2.2rem;
      font-weight: 700;
      color: var(--primary);
    }
    
    .result-big {
      background: rgba(255, 58, 68, 0.1);
      padding: 15px;
      border-radius: 12px;
      animation: pulse 2s infinite;
    }
    
    /* Dashboard Stats */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 15px;
    }
    
    .stat-card {
      background: var(--card-bg);
      border-radius: 12px;
      padding: 20px;
      text-align: center;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
      transition: all 0.3s ease;
      border-left: 4px solid var(--primary);
    }
    
    .stat-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    }
    
    .stat-icon {
      font-size: 1.8rem;
      margin-bottom: 10px;
      color: var(--primary);
    }
    
    .stat-title {
      font-size: 0.9rem;
      color: #718096;
      margin-bottom: 5px;
    }
    
    .stat-value {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--dark);
    }
    
    /* History Section */
    .history-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 15px 20px;
      margin-bottom: 12px;
      border-radius: 12px;
      background: var(--card-bg);
      box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }
    
    .history-item::before {
      content: '';
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 5px;
    }
    
    .history-item.win::before {
      background: var(--success);
    }
    
    .history-item.loss::before {
      background: var(--danger);
    }
    
    .history-item:hover {
      transform: translateX(5px);
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    }
    
    .history-period {
      display: flex;
      align-items: center;
    }
    
    .history-icon {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-right: 15px;
      font-size: 1.2rem;
    }
    
    .win-icon {
      color: var(--success);
      background: rgba(72, 187, 120, 0.1);
    }
    
    .loss-icon {
      color: var(--danger);
      background: rgba(245, 101, 101, 0.1);
    }
    
    .pending-icon {
      color: var(--warning);
      background: rgba(237, 137, 54, 0.1);
    }
    
    .history-period-info {
      display: flex;
      flex-direction: column;
    }
    
    .history-period-label {
      font-size: 0.8rem;
      color: #718096;
    }
    
    .history-period-value {
      font-size: 1.1rem;
      font-weight: 600;
    }
    
    .history-result {
      display: flex;
      align-items: center;
    }
    
    .history-prediction {
      text-align: center;
      margin-right: 20px;
    }
    
    .history-prediction-label {
      font-size: 0.8rem;
      color: #718096;
    }
    
    .history-prediction-value {
      font-size: 1.1rem;
      font-weight: 600;
    }
    
    .history-status {
      font-size: 1.5rem;
      margin-right: 15px;
    }
    
    .status-badge {
      padding: 4px 12px;
      border-radius: 12px;
      font-size: 0.8rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    
    .win-badge {
      background: var(--success);
      color: white;
    }
    
    .loss-badge {
      background: var(--danger);
      color: white;
    }
    
    .pending-badge {
      background: var(--warning);
      color: white;
    }
    
    .history-delete {
      color: #CBD5E0;
      cursor: pointer;
      transition: color 0.3s ease;
    }
    
    .history-delete:hover {
      color: var(--danger);
    }
    
    /* Buttons */
    .btn {
      padding: 10px 20px;
      border-radius: 8px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      border: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    
    .btn i {
      margin-right: 8px;
    }
    
    .btn-primary {
      background: var(--primary);
      color: white;
    }
    
    .btn-primary:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
    }
    
    .btn-outline {
      background: transparent;
      color: var(--primary);
      border: 1px solid var(--primary);
    }
    
    .btn-outline:hover {
      background: rgba(255, 58, 68, 0.1);
    }
    
    /* Animations */
    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(255, 58, 68, 0.4); }
      70% { box-shadow: 0 0 0 10px rgba(255, 58, 68, 0); }
      100% { box-shadow: 0 0 0 0 rgba(255, 58, 68, 0); }
    }
    
    @keyframes float {
      0% { transform: translateY(0px); }
      50% { transform: translateY(-10px); }
      100% { transform: translateY(0px); }
    }
    
    /* Confetti effect for wins */
    @keyframes confetti {
      0% { transform: translateY(0) rotate(0deg); opacity: 1; }
      100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
    }
    
    .win-confetti {
      position: absolute;
      width: 8px;
      height: 8px;
      opacity: 0;
      animation: confetti 2s ease-out forwards;
    }
    
    /* Pulse animation for losses */
    @keyframes pulse-red {
      0% { box-shadow: 0 0 0 0 rgba(245, 101, 101, 0.7); }
      70% { box-shadow: 0 0 0 10px rgba(245, 101, 101, 0); }
      100% { box-shadow: 0 0 0 0 rgba(245, 101, 101, 0); }
    }
    
    .loss-pulse {
      animation: pulse-red 1.5s infinite;
    }
    
    .floating {
      animation: float 3s ease-in-out infinite;
    }
    
    /* Responsive */
    @media (max-width: 768px) {
      .current-result {
        flex-direction: column;
      }
      
      .result-item {
        margin-bottom: 20px;
      }
      
      .result-item:not(:last-child)::after {
        display: none;
      }
      
      .stats-grid {
        grid-template-columns: repeat(2, 1fr);
      }
      
      .history-item {
        flex-direction: column;
        align-items: flex-start;
      }
      
      .history-result {
        width: 100%;
        justify-content: space-between;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #EDF2F7;
      }
    }
    
    /* Theme Toggle */
    .theme-toggle {
      position: fixed;
      top: 20px;
      right: 20px;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--gradient);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 1000;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
    }
    
    .theme-toggle:hover {
      transform: scale(1.1);
    }
    
    /* Particles */
    .particle {
      position: absolute;
      border-radius: 50%;
      background: rgba(108, 99, 255, 0.3);
      pointer-events: none;
      z-index: -1;
    }
    
    /* Popups */
    .popup {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      padding: 30px;
      border-radius: 16px;
      box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
      z-index: 1001;
      max-width: 400px;
      width: 90%;
      text-align: center;
      display: none;
    }
    
    .popup-icon {
      font-size: 3rem;
      margin-bottom: 20px;
      color: var(--success);
    }
    
    .popup-title {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 15px;
      color: var(--dark);
    }
    
    .popup-message {
      color: #718096;
      margin-bottom: 20px;
    }
    
    .popup-close {
      position: absolute;
      top: 15px;
      right: 15px;
      color: #CBD5E0;
      cursor: pointer;
      transition: color 0.3s ease;
    }
    
    .popup-close:hover {
      color: var(--danger);
    }
    
    /* Overlay */
    .overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      display: none;
    }
    
    /* Status indicators */
    .status-indicator {
      display: inline-block;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      margin-right: 5px;
    }
    
    .status-online {
      background-color: var(--success);
      box-shadow: 0 0 10px var(--success);
    }
    
    .status-offline {
      background-color: var(--danger);
      box-shadow: 0 0 10px var(--danger);
    }