   :root {
      --primary: #6c5ce7;
      --primary-light: #a29bfe;
      --secondary: #00cec9;
      --accent: #fd79a8;
      --success: #00b894;
      --error: #d63031;
      --warning: #fdcb6e;
      --dark: #2d3436;
      --darker: #1e272e;
      --light: #f5f6fa;
      --text: #dfe6e9;
      --text-secondary: #b2bec3;
      --card-bg: rgba(45, 52, 54, 0.7);
      --card-border: rgba(99, 110, 114, 0.3);
      --glass: rgba(255, 255, 255, 0.05);
      --glass-border: rgba(255, 255, 255, 0.1);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Poppins', sans-serif;
    }

    body {
      background: linear-gradient(135deg, var(--darker), var(--dark));
      color: var(--text);
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: auto;
      line-height: 1.6;
    }

    /* App Container with Glass Morphism */
    .app-container {
      width: 390px;
      height: 844px;
      background: var(--card-bg);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-radius: 24px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      overflow: hidden;
      position: relative;
      border: 1px solid var(--glass-border);
      animation: fadeIn 0.8s ease-out;
    }

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

    /* Header with Gradient */
    .header {
      padding: 24px 20px;
      background: linear-gradient(45deg, var(--primary), var(--secondary));
      color: white;
      text-align: center;
      font-size: 1.4em;
      font-weight: 600;
      letter-spacing: 0.5px;
      position: relative;
      overflow: hidden;
    }

    .header::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(45deg, 
        transparent 25%, 
        rgba(255,255,255,0.1) 50%, 
        transparent 75%);
      background-size: 400% 400%;
      animation: shimmer 8s linear infinite;
      z-index: 1;
    }

    @keyframes shimmer {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    .header-content {
      position: relative;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .header-icon {
      font-size: 1.2em;
      animation: pulse 2s infinite;
    }

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

    /* Main Content Area */
    .content-area {
      height: calc(100% - 110px);
      overflow-y: auto;
      padding: 20px;
      scrollbar-width: thin;
      scrollbar-color: var(--primary) var(--darker);
    }

    .content-area::-webkit-scrollbar {
      width: 6px;
    }

    .content-area::-webkit-scrollbar-track {
      background: var(--darker);
    }

    .content-area::-webkit-scrollbar-thumb {
      background-color: var(--primary);
      border-radius: 3px;
    }

    /* Card Styles */
    .card {
      background: var(--card-bg);
      border-radius: 16px;
      padding: 20px;
      margin-bottom: 20px;
      border: 1px solid var(--card-border);
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
      border-color: var(--primary-light);
    }

    .card-title {
      font-size: 1.1em;
      font-weight: 600;
      margin-bottom: 15px;
      color: var(--primary-light);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    /* Status Badges */
    .status-badge {
      display: inline-block;
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 0.75em;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 15px;
      animation: fadeInUp 0.5s ease-out;
    }

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

    .status-running {
      background: var(--success);
      color: white;
      box-shadow: 0 0 10px rgba(0, 184, 148, 0.3);
    }

    .status-paused {
      background: var(--warning);
      color: var(--dark);
    }

    .status-error {
      background: var(--error);
      color: white;
      box-shadow: 0 0 10px rgba(214, 48, 49, 0.3);
      animation: shake 0.5s;
    }

    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      20%, 60% { transform: translateX(-5px); }
      40%, 80% { transform: translateX(5px); }
    }

    /* Progress Loader */
    .dynamic-loader {
      height: 4px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 2px;
      margin: 15px 0;
      position: relative;
      overflow: hidden;
    }

    .loader-progress {
      position: absolute;
      height: 100%;
      background: linear-gradient(90deg, var(--primary), var(--secondary));
      width: 0;
      border-radius: 2px;
      transition: width 0.5s ease;
      animation: loaderPulse 1.5s infinite, loaderSlide 2s infinite;
    }

    @keyframes loaderPulse {
      0% { opacity: 1; }
      50% { opacity: 0.6; }
      100% { opacity: 1; }
    }

    @keyframes loaderSlide {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    /* Prediction Display */
    .prediction-display {
      text-align: center;
      margin: 25px 0;
      perspective: 1000px;
    }

    .prediction-card {
      background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 206, 201, 0.1));
      border-radius: 16px;
      padding: 25px;
      border: 1px solid var(--glass-border);
      transform-style: preserve-3d;
      transition: all 0.5s ease;
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .prediction-card:hover {
      transform: rotateY(5deg) rotateX(5deg);
      box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }

    .prediction-value {
      font-size: 3.2em;
      font-weight: 700;
      font-family: 'JetBrains Mono', monospace;
      background: linear-gradient(45deg, var(--primary), var(--secondary));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      margin: 10px 0;
      text-shadow: 0 2px 10px rgba(108, 92, 231, 0.3);
      animation: textGlow 2s infinite alternate;
    }

    @keyframes textGlow {
      from { text-shadow: 0 0 5px rgba(108, 92, 231, 0.3); }
      to { text-shadow: 0 0 20px rgba(108, 92, 231, 0.6); }
    }

    .prediction-period {
      font-size: 0.9em;
      color: var(--text-secondary);
      font-family: 'JetBrains Mono', monospace;
    }

    /* Stats Grid */
    .stats-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 20px;
    }

    .stat-item {
      background: var(--glass);
      border-radius: 12px;
      padding: 15px 10px;
      text-align: center;
      border: 1px solid var(--glass-border);
      transition: all 0.3s ease;
    }

    .stat-item:hover {
      transform: translateY(-3px);
      background: rgba(108, 92, 231, 0.1);
      border-color: var(--primary-light);
    }

    .stat-value {
      font-size: 1.5em;
      font-weight: 600;
      color: var(--primary-light);
      margin-bottom: 5px;
      font-family: 'JetBrains Mono', monospace;
    }

    .stat-label {
      font-size: 0.75em;
      text-transform: uppercase;
      letter-spacing: 1px;
      color: var(--text-secondary);
      opacity: 0.8;
    }

    /* History List */
    .history-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .history-item {
      background: var(--glass);
      border-radius: 12px;
      padding: 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      border: 1px solid var(--glass-border);
      transition: all 0.3s ease;
      cursor: pointer;
    }

    .history-item:hover {
      transform: translateX(5px);
      background: rgba(108, 92, 231, 0.1);
    }

    .history-period {
      font-family: 'JetBrains Mono', monospace;
      font-weight: 500;
    }

    .history-prediction {
      font-weight: 600;
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 0.85em;
    }

    .prediction-big {
      background: rgba(0, 206, 201, 0.1);
      color: var(--secondary);
      border: 1px solid var(--secondary);
    }

    .prediction-small {
      background: rgba(108, 92, 231, 0.1);
      color: var(--primary-light);
      border: 1px solid var(--primary-light);
    }

    .prediction-waiting {
      background: rgba(253, 203, 110, 0.1);
      color: var(--warning);
      border: 1px solid var(--warning);
    }

    /* Filter Controls */
    .filter-controls {
      display: flex;
      gap: 8px;
      margin-bottom: 20px;
      flex-wrap: wrap;
    }

    .filter-btn {
      padding: 8px 16px;
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 20px;
      cursor: pointer;
      font-size: 0.8em;
      font-weight: 500;
      transition: all 0.3s ease;
      color: var(--text-secondary);
    }

    .filter-btn:hover, .filter-btn.active {
      background: var(--primary);
      color: white;
      border-color: var(--primary);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
    }

    /* Settings Form */
    .settings-form {
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .input-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .input-label {
      font-size: 0.9em;
      color: var(--text-secondary);
      font-weight: 500;
    }

    .input-field {
      background: var(--glass);
      border: 1px solid var(--glass-border);
      border-radius: 12px;
      padding: 14px;
      color: var(--text);
      font-family: 'JetBrains Mono', monospace;
      transition: all 0.3s ease;
    }

    .input-field:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.2);
    }

    .checkbox-group {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .checkbox-label {
      font-size: 0.9em;
      color: var(--text-secondary);
    }

    /* Action Buttons */
    .action-buttons {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 20px;
    }

    .action-btn {
      padding: 14px;
      border: none;
      border-radius: 12px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .action-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

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

    .btn-primary {
      background: linear-gradient(45deg, var(--primary), var(--secondary));
      color: white;
    }

    .btn-primary:hover {
      box-shadow: 0 4px 20px rgba(108, 92, 231, 0.4);
    }

    .btn-danger {
      background: var(--error);
      color: white;
    }

    .btn-danger:hover {
      box-shadow: 0 4px 20px rgba(214, 48, 49, 0.4);
    }

    /* Debug Log */
    .debug-log {
      background: var(--darker);
      border-radius: 12px;
      padding: 15px;
      max-height: 200px;
      overflow-y: auto;
      font-family: 'JetBrains Mono', monospace;
      font-size: 0.75em;
      color: var(--text-secondary);
      border: 1px solid var(--glass-border);
      margin-top: 20px;
    }

    .debug-entry {
      margin-bottom: 8px;
      padding-bottom: 8px;
      border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
      animation: fadeIn 0.3s ease-out;
    }

    .debug-time {
      color: var(--secondary);
      font-weight: 500;
    }

    .debug-message {
      color: var(--text);
    }

    /* Bottom Navigation */
    .bottom-nav {
      position: absolute;
      bottom: 0;
      width: 100%;
      height: 80px;
      background: var(--card-bg);
      display: flex;
      justify-content: space-around;
      align-items: center;
      border-top: 1px solid var(--glass-border);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      z-index: 10;
    }

    .nav-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 10px;
      cursor: pointer;
      transition: all 0.3s ease;
      border-radius: 12px;
      width: 70px;
      height: 60px;
      position: relative;
      color: var(--text-secondary);
    }

    .nav-item:hover {
      color: var(--primary-light);
    }

    .nav-item.active {
      color: var(--primary);
      transform: translateY(-5px);
    }

    .nav-item.active::after {
      content: '';
      position: absolute;
      bottom: 5px;
      width: 6px;
      height: 6px;
      background: var(--primary);
      border-radius: 50%;
      animation: bounce 0.8s infinite alternate;
    }

    @keyframes bounce {
      from { transform: translateY(0); }
      to { transform: translateY(-5px); }
    }

    .nav-icon {
      font-size: 1.4em;
      margin-bottom: 4px;
      transition: all 0.3s ease;
    }

    .nav-label {
      font-size: 0.7em;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    /* Empty State */
    .empty-state {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 40px 20px;
      color: var(--text-secondary);
    }

    .empty-icon {
      font-size: 2.5em;
      margin-bottom: 15px;
      opacity: 0.5;
    }

    .empty-text {
      font-size: 0.9em;
    }

    /* Responsive Adjustments */
    @media (max-width: 400px) {
      .app-container {
        width: 100%;
        height: 100vh;
        border-radius: 0;
      }
    }

    /* Animations */
    .animate-pop {
      animation: pop 0.3s ease-out;
    }

    @keyframes pop {
      0% { transform: scale(0.9); opacity: 0; }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); opacity: 1; }
    }

    .animate-float {
      animation: float 3s ease-in-out infinite;
    }

    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-10px); }
    }

    /* New Button Styles */
    .btn-info {
      background: linear-gradient(45deg, var(--secondary), var(--primary));
      color: white;
    }

    .btn-info:hover {
      box-shadow: 0 4px 20px rgba(0, 206, 201, 0.4);
    }