:root {
      --bg1: #0f0f23;
      --bg2: #1c1c2e;
      --accent: #f0b90b;
      --accent2: #f8d33a;
      --panel: #1e2026;
      --text: #eaecef;
      --green: #00c087;
      --red: #f6465d;
      --gray: #848e9c;
    }
    
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    
    body {
      background: var(--bg1);
      min-height: 100vh;
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
      color: var(--text);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 16px;
      line-height: 1.5;
    }
    
    .app {
      width: 100%;
      max-width: 400px;
      height: 680px;
      border-radius: 16px;
      overflow: hidden;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
      background: var(--panel);
      display: flex;
      flex-direction: column;
      position: relative;
      border: 1px solid #2b3139;
    }
    
    #loadingScreen {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--panel);
      z-index: 100;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 20px;
      text-align: center;
    }
    
    .loading-logo-container {
      position: relative;
      width: 160px;
      height: 160px;
      margin-bottom: 30px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .loading-logo {
      width: 120px;
      height: 120px;
      border-radius: 24px;
      z-index: 10;
      position: relative;
      box-shadow: 0 0 20px rgba(240, 185, 11, 0.3);
      background: #F5F5F5;
    }
    
    .loading-circle {
      position: absolute;
      border-radius: 50%;
      border: 2px solid transparent;
      animation: pulse 2s infinite ease-in-out;
    }
    
    .loading-circle-1 {
      width: 140px;
      height: 140px;
      border-top: 2px solid var(--accent);
      animation-delay: 0s;
    }
    
    .loading-circle-2 {
      width: 160px;
      height: 160px;
      border-top: 2px solid var(--accent2);
      animation-delay: 0.3s;
    }
    
    .loading-circle-3 {
      width: 180px;
      height: 180px;
      border-top: 2px solid var(--green);
      animation-delay: 0.6s;
    }
    
    @keyframes pulse {
      0% {
        transform: rotate(0deg) scale(1);
        opacity: 1;
      }
      50% {
        transform: rotate(180deg) scale(1.05);
        opacity: 0.7;
      }
      100% {
        transform: rotate(360deg) scale(1);
        opacity: 1;
      }
    }
    
    .loading-title {
      font-size: 28px;
      font-weight: 700;
      color: var(--accent);
      margin-bottom: 10px;
      letter-spacing: 1px;
    }
    
    .loading-subtitle {
      font-size: 16px;
      color: var(--text);
      margin-bottom: 40px;
      opacity: 0.9;
    }
    
    .loading-progress-container {
      width: 100%;
      max-width: 300px;
      margin-bottom: 20px;
    }
    
    .loading-progress-bar {
      height: 6px;
      background: #2b3139;
      border-radius: 3px;
      overflow: hidden;
      margin-bottom: 10px;
    }
    
    .loading-progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--accent2), var(--accent));
      border-radius: 3px;
      width: 0%;
      transition: width 0.5s ease;
    }
    
    .loading-progress-text {
      font-size: 14px;
      color: var(--gray);
      display: flex;
      justify-content: space-between;
    }
    
    .loading-features {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: 30px;
      width: 100%;
      max-width: 300px;
    }
    
    .loading-feature {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 14px;
      color: var(--text);
    }
    
    .loading-feature-icon {
      color: var(--green);
      font-size: 16px;
    }
    
    .header {
      padding: 16px 20px;
      background: var(--panel);
      color: var(--text);
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid #2b3139;
      position: relative;
      z-index: 10;
    }
    
    .header-content h1 {
      font-weight: 700;
      font-size: 18px;
      margin-bottom: 2px;
      color: var(--accent);
    }
    
    .header-content .subtitle {
      font-size: 12px;
      opacity: 0.8;
      color: var(--gray);
    }
    
    .user-info {
      text-align: right;
    }
    
    .user-name {
      font-weight: 600;
      font-size: 14px;
      margin-bottom: 2px;
      color: var(--text);
    }
    
    .today-date {
      font-size: 11px;
      opacity: 0.7;
      color: var(--gray);
    }
    
    .main-content {
      flex: 1;
      overflow-y: auto;
      padding: 16px;
      display: flex;
      flex-direction: column;
    }
    
    .panel {
      flex: 1;
      display: flex;
      flex-direction: column;
      animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .panel-content {
      flex: 1;
      display: flex;
      flex-direction: column;
    }
    
    .card {
      background: #2b3139;
      border-radius: 8px;
      padding: 16px;
      margin-bottom: 12px;
      border: 1px solid #3a4554;
    }
    
    .balance-section {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }
    
    .balance-amount {
      font-size: 22px;
      font-weight: 700;
      color: var(--green);
    }
    
    .daily-stats {
      text-align: right;
    }
    
    .ads-count {
      font-weight: 600;
      font-size: 16px;
      margin-bottom: 4px;
      color: var(--accent);
    }
    
    .pill {
      background: rgba(240, 185, 11, 0.2);
      color: var(--accent);
      padding: 4px 8px;
      border-radius: 4px;
      font-weight: 600;
      font-size: 11px;
    }
    
    .progress-container {
      margin-top: 12px;
    }
    
    .progress-label {
      font-size: 12px;
      color: var(--gray);
      margin-bottom: 6px;
    }
    
    .progress-bar {
      height: 6px;
      background: #1e2026;
      border-radius: 3px;
      overflow: hidden;
    }
    
    .progress-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--accent2), var(--accent));
      border-radius: 3px;
      transition: width 0.5s ease;
    }
    
    .watch-ad-card {
      text-align: center;
    }
    
    .section-title {
      font-weight: 600;
      font-size: 16px;
      margin-bottom: 8px;
      color: var(--text);
    }
    
    .section-subtitle {
      font-size: 13px;
      color: var(--gray);
      margin-bottom: 16px;
    }
    
    .btn-primary {
      background: var(--accent);
      color: #1e2026;
      padding: 14px 20px;
      border-radius: 6px;
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
    }
    
    .btn-primary:hover {
      background: var(--accent2);
    }
    
    .btn-primary:active {
      transform: translateY(0);
    }
    
    .btn-primary:disabled {
      opacity: 0.6;
      cursor: not-allowed;
      transform: none;
    }
    
    .note {
      font-size: 12px;
      color: var(--gray);
      margin-top: 12px;
      text-align: center;
    }
    
    .channel-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    
    .channel-info h3 {
      font-weight: 600;
      font-size: 14px;
      color: var(--accent);
      margin-bottom: 2px;
    }
    
    .channel-info p {
      font-size: 12px;
      color: var(--gray);
    }
    
    .btn-channel {
      background: var(--accent);
      color: #1e2026;
      padding: 8px 12px;
      border-radius: 6px;
      font-weight: 600;
      font-size: 12px;
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .btn-channel:hover {
      background: var(--accent2);
    }
    
    .how-it-works {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .how-it-works-text h3 {
      font-weight: 600;
      font-size: 14px;
      margin-bottom: 4px;
      color: var(--text);
    }
    
    .how-it-works-text p {
      font-size: 12px;
      color: var(--gray);
    }
    
    .min-withdraw {
      text-align: right;
    }
    
    .min-withdraw-label {
      font-size: 12px;
      color: var(--gray);
    }
    
    .min-withdraw-amount {
      font-weight: 600;
      font-size: 16px;
      color: var(--green);
    }
    
    .nav-bottom {
      height: 70px;
      display: flex;
      background: #2b3139;
      border-top: 1px solid #3a4554;
      padding: 8px;
    }
    
    .tab-btn {
      flex: 1;
      border-radius: 6px;
      padding: 8px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      font-weight: 600;
      font-size: 11px;
      background: transparent;
      border: none;
      cursor: pointer;
      transition: all 0.3s ease;
      color: var(--gray);
    }
    
    .tab-btn.active {
      background: rgba(240, 185, 11, 0.1);
      color: var(--accent);
    }
    
    .tab-icon {
      font-size: 16px;
    }
    
    .hidden {
      display: none !important;
    }
    
    .spinner {
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-top: 2px solid #1e2026;
      border-radius: 50%;
      width: 16px;
      height: 16px;
      animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    
    .withdraw-input {
      width: 100%;
      padding: 12px 16px;
      border: 1px solid #3a4554;
      border-radius: 6px;
      margin-bottom: 12px;
      font-size: 14px;
      transition: border-color 0.3s;
      background: #1e2026;
      color: var(--text);
    }
    
    .withdraw-input:focus {
      outline: none;
      border-color: var(--accent);
    }
    
    .btn-ghost {
      background: transparent;
      border: 1px solid #3a4554;
      padding: 10px 16px;
      border-radius: 6px;
      font-weight: 600;
      font-size: 14px;
      cursor: pointer;
      transition: all 0.3s;
      margin-bottom: 12px;
      color: var(--text);
    }
    
    .btn-ghost:hover {
      background: rgba(255, 255, 255, 0.05);
    }
    
    .withdraw-actions {
      display: flex;
      gap: 10px;
      margin-top: 8px;
    }
    
    .btn-secondary {
      flex: 1;
      background: transparent;
      color: var(--accent);
      border: 1px solid var(--accent);
      padding: 12px 16px;
      border-radius: 6px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
    }
    
    .btn-secondary:hover {
      background: rgba(240, 185, 11, 0.1);
    }
    
    .btn-icon {
      background: transparent;
      border: 1px solid #3a4554;
      padding: 12px;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.3s;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text);
    }
    
    .btn-icon:hover {
      background: rgba(255, 255, 255, 0.05);
    }
    
    .referral-input {
      width: 100%;
      padding: 12px 16px;
      border: 1px solid #3a4554;
      border-radius: 6px;
      margin-bottom: 12px;
      font-size: 14px;
      background: #1e2026;
      color: var(--text);
    }
    
    .stats-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }
    
    .stat-card {
      background: #1e2026;
      border-radius: 6px;
      padding: 16px;
      text-align: center;
      border: 1px solid #3a4554;
    }
    
    .stat-value {
      font-weight: 700;
      font-size: 18px;
      color: var(--green);
      margin-bottom: 4px;
    }
    
    .stat-label {
      font-size: 12px;
      color: var(--gray);
    }
    
    .ban-panel {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 40px 20px;
      flex: 1;
    }
    
    .ban-icon {
      width: 80px;
      height: 80px;
      border-radius: 16px;
      margin-bottom: 20px;
      object-fit: cover;
    }
    
    .ban-title {
      font-size: 22px;
      font-weight: 700;
      color: var(--red);
      margin-bottom: 12px;
    }
    
    .ban-message {
      font-size: 15px;
      color: var(--text);
      margin-bottom: 24px;
      line-height: 1.5;
    }
    
    .ban-support-btn {
      background: var(--red);
      color: white;
      padding: 14px 24px;
      border-radius: 6px;
      font-weight: 600;
      border: none;
      cursor: pointer;
    }
    
    .readonly-input {
      background-color: #1e2026;
      color: var(--gray);
      cursor: not-allowed;
    }
    
    .main-content::-webkit-scrollbar {
      width: 4px;
    }
    
    .main-content::-webkit-scrollbar-track {
      background: transparent;
    }
    
    .main-content::-webkit-scrollbar-thumb {
      background: #3a4554;
      border-radius: 4px;
    }
    
    .main-content::-webkit-scrollbar-thumb:hover {
      background: #4a5568;
    }

    .mining-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }

    .mining-panel {
      background: #2b3139;
      border-radius: 8px;
      padding: 16px;
      margin-bottom: 12px;
      border: 1px solid #3a4554;
    }

    .small {
      font-size: 13px;
      color: var(--gray);
    }

    .main-counter {
      font-size: 24px;
      font-weight: 700;
      color: var(--green);
      margin: 8px 0;
    }

    .meter {
      height: 8px;
      background: #1e2026;
      border-radius: 4px;
      overflow: hidden;
      width: 100%;
    }

    .meter-fill {
      display: block;
      height: 100%;
      width: 0;
      background: linear-gradient(90deg, var(--accent2), var(--accent));
      transition: width 0.4s ease;
      border-radius: 4px;
    }

    .speed-display {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 8px;
    }

    .speed-value {
      font-weight: 600;
      color: var(--accent);
    }

    .rate-display {
      font-size: 13px;
      color: var(--gray);
      width: 70px;
      text-align: right;
    }

    .gradual-mining-info {
      display: none !important;
    }

    .binance-counter {
      font-size: 28px;
      font-weight: 700;
      color: var(--green);
    }

    .task-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px solid #3a4554;
    }

    .task-item:last-child {
      border-bottom: none;
    }

    .task-info h4 {
      font-weight: 600;
      font-size: 14px;
      margin-bottom: 4px;
    }

    .task-info p {
      font-size: 12px;
      color: var(--gray);
    }

    .task-reward {
      font-size: 12px;
      color: var(--green);
      font-weight: 600;
    }

    .task-actions {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .btn-task {
      background: var(--accent);
      color: #1e2026;
      padding: 6px 12px;
      border-radius: 4px;
      font-weight: 600;
      font-size: 12px;
      border: none;
      cursor: pointer;
      text-decoration: none;
      display: inline-block;
    }

    .btn-task:disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .btn-task.completed {
      background: var(--green);
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 8px;
    }
    
    .section-title-accent {
      font-weight: 600;
      font-size: 16px;
      color: var(--accent) !important;
    }
    
    .claim-btn {
      background: var(--accent);
      color: #1e2026;
      padding: 10px 20px;
      border-radius: 6px;
      font-weight: 600;
      border: none;
      cursor: pointer;
      transition: all 0.3s;
      width: 100%;
      margin-top: 12px;
    }
    
    .claim-btn:hover:not(:disabled) {
      background: var(--accent2);
    }
    
    .claim-btn:disabled {
      background: var(--green);
      cursor: not-allowed;
    }
    
    .claim-btn.claimed {
      background: var(--green);
    }
    
    .daily-reward-amount {
      font-size: 18px;
      font-weight: 700;
      color: var(--green);
      text-align: center;
      margin: 8px 0;
    }

    .daily-checkin-card {
      transition: all 0.3s ease;
      padding: 12px 16px;
    }

    .daily-checkin-claimed {
      padding: 8px 0;
    }

    .claimed-message {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 14px;
      color: var(--green);
    }

    .checkmark {
      font-size: 16px;
    }

    .message-text {
      font-weight: 500;
    }

    .daily-checkin-card.claimed {
      min-height: auto;
      padding: 8px 16px;
    }

    .status-message {
      padding: 10px;
      border-radius: 6px;
      margin: 10px 0;
      text-align: center;
      font-weight: 600;
    }

    .status-success {
      background: rgba(0, 192, 135, 0.2);
      color: var(--green);
      border: 1px solid var(--green);
    }

    .status-error {
      background: rgba(246, 70, 93, 0.2);
      color: var(--red);
      border: 1px solid var(--red);
    }

    .status-warning {
      background: rgba(240, 185, 11, 0.2);
      color: var(--accent);
      border: 1px solid var(--accent);
    }
    #panel-game .panel-content {
        padding: 0;
        height: 100%;
    }

    #gameContainer {
        position: relative;
        width: 100%;
        height: 100%;
    }