/* متغیرهای اصلی */
      :root {
        --primary-color: #00ffd5;
        --secondary-color: #007f80;
        --dark-bg: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
        --error-color: #ff4d4d;
        --success-color: #00e676;
        --warning-color: #ffaa00;
        --premium-gold: linear-gradient(135deg, #ffd700, #ffaa00, #ff6b00);
        --premium-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
        --container-padding: 15px;
      }

      /* تنظیمات پایه برای فول‌اسکرین */
      html, body {
        height: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        position: fixed;
        -webkit-overflow-scrolling: touch;
        touch-action: none;
      }

      body {
        font-family: "Rubik", sans-serif;
        background: var(--dark-bg);
        color: white;
        -webkit-tap-highlight-color: transparent;
        display: flex;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
      }

      /* صفحه آفلاین */
      .offline-page {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--dark-bg);
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 5000;
        padding: 20px;
        text-align: center;
      }

      .offline-icon {
        font-size: 80px;
        color: var(--error-color);
        margin-bottom: 20px;
        animation: pulse 2s infinite;
      }

      .offline-title {
        font-family: "Orbitron", sans-serif;
        color: var(--primary-color);
        font-size: 28px;
        margin-bottom: 10px;
        text-shadow: 0 0 10px rgba(0, 255, 213, 0.5);
      }

      .offline-message {
        color: #aaa;
        margin-bottom: 30px;
        max-width: 400px;
        line-height: 1.5;
      }

      .offline-steps {
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 77, 77, 0.3);
        border-radius: 15px;
        padding: 20px;
        margin: 20px 0;
        max-width: 400px;
        text-align: left;
      }

      .offline-step {
        display: flex;
        align-items: center;
        margin: 10px 0;
        padding: 8px;
        background: rgba(255, 77, 77, 0.1);
        border-radius: 8px;
      }

      .step-number {
        background: var(--error-color);
        color: white;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        font-weight: bold;
        flex-shrink: 0;
      }

      .retry-btn {
        background: linear-gradient(to right, var(--error-color), #ff3333);
        color: white;
        border: none;
        padding: 15px 30px;
        border-radius: 50px;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
        margin-top: 20px;
        transition: all 0.3s;
        box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .retry-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(255, 77, 77, 0.4);
      }

      /* کانتینر اصلی */
      .main-container {
        position: relative;
        width: 95%;
        max-width: 600px;
        height: 90vh;
        max-height: 850px;
        border-radius: 25px;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        box-sizing: border-box;
        border: 2px solid rgba(0, 255, 213, 0.2);
        box-shadow: 0 0 30px rgba(0, 255, 213, 0.1),
                    inset 0 0 20px rgba(0, 255, 213, 0.05);
      }

      /* محتوای داخلی */
      .container-inner {
        position: relative;
        z-index: 1;
        background: var(--dark-bg);
        border-radius: 23px;
        width: 100%;
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        padding: var(--container-padding);
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
      }

      /* اسکرول بار سفارشی - اصلاح شده */
      .container-inner::-webkit-scrollbar {
        width: 6px;
      }

      .container-inner::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 3px;
        margin: 10px 0;
      }

      .container-inner::-webkit-scrollbar-thumb {
        background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
        border-radius: 3px;
      }

      .container-inner::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(to bottom, #00ffd5, #00ccaa);
      }

      /* استایل برای محتوای داخل اسکرول */
      .scroll-content {
        flex: 1;
        display: flex;
        flex-direction: column;
      }

      /* بخش‌های داخلی */
      .header {
        text-align: center;
        margin-bottom: 15px;
        animation: fadeIn 1s ease-in-out;
        flex-shrink: 0;
      }

      .header h2 {
        font-family: "Orbitron", sans-serif;
        color: var(--primary-color);
        font-size: 24px;
        text-shadow: 0 0 10px rgba(0, 255, 213, 0.5);
        margin: 10px 0;
      }

      .header h3 {
        font-size: 16px;
        margin: 5px 0 15px;
        color: #aaa;
        font-weight: normal;
      }

      /* بخش شمارش ساده */
      .counter-section {
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(0, 255, 213, 0.3);
        border-radius: 15px;
        padding: 15px;
        margin: 10px 0;
        text-align: center;
        flex-shrink: 0;
      }

      .counter-label {
        font-size: 14px;
        color: #aaa;
        margin-bottom: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
      }

      .counter-value {
        font-family: "Orbitron", sans-serif;
        font-size: 32px;
        font-weight: bold;
        color: var(--primary-color);
        text-shadow: 0 0 10px rgba(0, 255, 213, 0.5);
      }

      .crypto-selection {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 15px;
        flex-shrink: 0;
      }

      .crypto-selection img {
        width: 50px;
        height: 50px;
        cursor: pointer;
        border: 2px solid transparent;
        border-radius: 10px;
        transition: all 0.3s ease;
        filter: grayscale(30%);
      }

      .crypto-selection img:hover {
        transform: scale(1.1);
        box-shadow: 0 0 15px rgba(0, 255, 213, 0.5);
      }

      .crypto-selection img.selected {
        border: 2px solid var(--primary-color);
        transform: scale(1.15);
        box-shadow: 0 0 20px var(--primary-color);
        filter: grayscale(0%);
      }

      .log-box {
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid var(--primary-color);
        border-radius: 12px;
        padding: 12px;
        height: 180px;
        font-size: 14px;
        font-family: monospace;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
        overflow-y: auto;
        overflow-x: hidden;
        margin: 10px 0;
        flex-shrink: 0;
      }

      .log-box::-webkit-scrollbar {
        width: 4px;
      }

      .log-box::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 2px;
      }

      .log-box::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 2px;
      }

      /* Liquid Glass Buttons */
      .toggle button,
      .withdraw-btn,
      .creator-btn {
        color: #eaffff !important;
        border: 1px solid rgba(255, 255, 255, 0.22) !important;
        background: linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.22),
          rgba(255, 255, 255, 0.06)
        ) !important;
        backdrop-filter: blur(14px) saturate(170%) !important;
        -webkit-backdrop-filter: blur(14px) saturate(170%) !important;
        box-shadow:
          inset 0 0 0.6px rgba(255, 255, 255, 0.7),
          0 10px 30px rgba(0, 0, 0, 0.35) !important;
      }

      .toggle button::before,
      .withdraw-btn::before,
      .creator-btn::before {
        content: "";
        position: absolute;
        inset: -40%;
        background: radial-gradient(
          circle at 30% 20%,
          rgba(255, 255, 255, 0.35),
          rgba(255, 255, 255, 0) 55%
        );
        transform: rotate(18deg);
        opacity: 0.75;
        pointer-events: none;
      }

      .toggle button:hover,
      .withdraw-btn:hover,
      .creator-btn:hover {
        box-shadow:
          inset 0 0 1px rgba(255, 255, 255, 0.9),
          0 14px 36px rgba(0, 0, 0, 0.45) !important;
      }

      .disabled {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        pointer-events: none !important;
        opacity: 0.6 !important;
        cursor: not-allowed !important;
      }

      /* Status Widgets */
      .status-bar {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin: 10px 0;
        flex-wrap: wrap;
        flex-shrink: 0;
      }

      .status-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 8px;
        border-radius: 12px;
        font-size: 11px;
        letter-spacing: 0.2px;
        background: linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.18),
          rgba(255, 255, 255, 0.05)
        );
        border: 1px solid rgba(255, 255, 255, 0.22);
        backdrop-filter: blur(10px) saturate(160%);
        -webkit-backdrop-filter: blur(10px) saturate(160%);
        transition: all 0.3s ease;
        cursor: pointer;
        text-decoration: none;
        color: white;
      }

      .status-pill:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 255, 213, 0.3);
      }

      .status-pill.premium-pill {
        background: var(--premium-gold);
        border: 1px solid rgba(255, 215, 0, 0.5);
        box-shadow: var(--premium-shadow);
      }

      .status-pill.premium-pill:hover {
        box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
        transform: translateY(-3px) scale(1.05);
      }

      .status-pill i {
        opacity: 0.95;
      }

      .net-online {
        color: #2dff9b;
      }

      .net-offline {
        color: #ff4d4d;
      }

      .toggle {
        display: flex;
        justify-content: center;
        margin: 15px 0;
        flex-shrink: 0;
      }

      .toggle button,
      .withdraw-btn,
      .creator-btn {
        border: none;
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        color: #000;
        padding: 12px 25px;
        border-radius: 50px;
        font-weight: bold;
        cursor: pointer;
        margin: 5px;
        transition: all 0.3s ease;
        font-size: 15px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        position: relative;
        overflow: hidden;
        min-width: 140px;
      }

      .toggle button:hover:not(.disabled),
      .withdraw-btn:hover:not(.disabled),
      .creator-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 7px 20px rgba(0, 255, 213, 0.4);
      }

      .toggle button:active:not(.disabled),
      .withdraw-btn:active:not(.disabled),
      .creator-btn:active {
        transform: translateY(1px);
      }

      /* بخش Found Wallets در وسط */
      .found-section {
        text-align: center;
        margin: 15px 0;
        flex-shrink: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      .found-section strong {
        display: block;
        margin-bottom: 10px;
        font-size: 16px;
        color: var(--primary-color);
      }

      #foundBox {
        width: 100%;
        max-width: 500px;
        display: flex;
        flex-direction: column;
        align-items: center;
      }

      .found-wallet {
        background: rgba(0, 255, 213, 0.1);
        border: 1px solid var(--primary-color);
        border-radius: 12px;
        padding: 12px;
        margin: 10px 0;
        position: relative;
        overflow: hidden;
        flex-shrink: 0;
        width: 100%;
        max-width: 450px;
        box-sizing: border-box;
      }

      .found-wallet::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--primary-color);
      }

      .balance {
        font-size: 20px;
        color: var(--primary-color);
        font-weight: bold;
        margin: 8px 0;
        text-shadow: 0 0 10px rgba(0, 255, 213, 0.5);
      }

      .verified-badge {
        color: var(--primary-color);
        font-weight: bold;
        display: inline-block;
        margin-right: 10px;
      }

      .history-btn {
        background: linear-gradient(to right, var(--secondary-color), #005f60);
        border: none;
        padding: 10px 20px;
        border-radius: 5px;
        color: white;
        cursor: pointer;
        margin-top: 10px;
        transition: all 0.3s;
        flex-shrink: 0;
      }

      .history-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 255, 213, 0.3);
      }

      .history-container {
        display: none;
        margin-top: 15px;
        max-height: 180px;
        overflow-y: auto;
        border: 1px solid rgba(0, 255, 213, 0.3);
        border-radius: 10px;
        padding: 10px;
        background: rgba(0, 0, 0, 0.2);
        flex-shrink: 0;
        width: 100%;
        max-width: 450px;
        box-sizing: border-box;
      }

      .history-container::-webkit-scrollbar {
        width: 3px;
      }

      .history-container::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.1);
      }

      .history-container::-webkit-scrollbar-thumb {
        background: rgba(0, 255, 213, 0.5);
      }

      .offline-warning {
        background: var(--error-color);
        text-align: center;
        padding: 12px;
        display: none;
        font-weight: bold;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        animation: shake 0.5s;
      }

      .login-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.9);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2000;
        backdrop-filter: blur(5px);
      }

      .login-box {
        background: linear-gradient(135deg, #203a43, #2c5364);
        padding: 25px;
        border-radius: 15px;
        width: 90%;
        max-width: 320px;
        text-align: center;
        border: 1px solid var(--primary-color);
        box-shadow: 0 0 30px rgba(0, 255, 213, 0.3);
        animation: slideUp 0.5s ease-out;
      }

      .login-box h3 {
        margin-top: 0;
        color: var(--primary-color);
        font-family: "Orbitron", sans-serif;
        font-size: 20px;
        margin-bottom: 15px;
      }

      .login-box input {
        width: 100%;
        padding: 12px;
        margin: 10px 0;
        border-radius: 5px;
        border: none;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 16px;
        transition: all 0.3s;
        border: 1px solid transparent;
      }

      .login-box input:focus {
        outline: none;
        border: 1px solid var(--primary-color);
        box-shadow: 0 0 10px rgba(0, 255, 213, 0.3);
      }

      .login-box button {
        background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
        border: none;
        padding: 12px 24px;
        border-radius: 5px;
        color: #000;
        font-weight: bold;
        cursor: pointer;
        width: 100%;
        font-size: 16px;
        margin-top: 10px;
        transition: all 0.3s;
      }

      .login-box button:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 255, 213, 0.3);
      }

      .error-message {
        color: var(--error-color);
        font-size: 14px;
        margin-top: 5px;
        display: none;
        animation: fadeIn 0.3s;
      }

      .verification-badge {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 12px 0;
        flex-wrap: wrap;
        flex-shrink: 0;
      }

      .badge {
        background: rgba(0, 255, 213, 0.1);
        border: 1px solid var(--primary-color);
        border-radius: 5px;
        padding: 6px 10px;
        font-size: 11px;
        display: flex;
        align-items: center;
      }

      .badge i {
        color: var(--primary-color);
        margin-right: 5px;
      }

      .license-info {
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid var(--primary-color);
        border-radius: 8px;
        padding: 8px;
        margin: 12px 0;
        text-align: center;
        font-family: monospace;
        font-size: 12px;
        flex-shrink: 0;
      }

      .security-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 3000;
        display: none;
      }

      .security-box {
        background: #0f2027;
        padding: 20px;
        border-radius: 10px;
        width: 90%;
        max-width: 350px;
        text-align: center;
        border: 1px solid var(--error-color);
        position: relative;
      }

      .security-box h3 {
        color: var(--error-color);
        margin-top: 0;
      }

      .security-close {
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        color: white;
        font-size: 20px;
        cursor: pointer;
      }

      /* دکمه‌های پایین */
      .bottom-buttons {
        display: flex;
        justify-content: center;
        margin-top: 15px;
        flex-wrap: wrap;
        gap: 10px;
        flex-shrink: 0;
        width: 100%;
      }

      /* انیمیشن‌ها */
      @keyframes fadeIn { from {opacity:0;} to {opacity:1;} }

      @keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

      @keyframes shake {
        0%, 100% { transform: translateX(0); }
        10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
        20%, 40%, 60%, 80% { transform: translateX(5px); }
      }

      @keyframes pulse {
        0% { 
          box-shadow: 0 0 0 0 rgba(0, 255, 213, 0.4);
          transform: scale(1);
        }
        70% { 
          box-shadow: 0 0 0 15px rgba(0, 255, 213, 0);
          transform: scale(1);
        }
        100% { 
          box-shadow: 0 0 0 0 rgba(0, 255, 213, 0);
          transform: scale(1);
        }
      }

      /* ریسپانسیو برای تمام گوشی‌ها */
      @media (max-width: 480px) {
        :root {
          --container-padding: 12px;
        }
        
        .main-container {
          width: 98%;
          height: 95vh;
          border-radius: 20px;
        }
        
        .container-inner {
          border-radius: 18px;
          padding: 12px;
        }
        
        .header h2 {
          font-size: 20px;
        }
        
        .header h3 {
          font-size: 14px;
        }
        
        .crypto-selection img {
          width: 45px;
          height: 45px;
        }
        
        .counter-value {
          font-size: 28px;
        }
        
        .log-box {
          height: 160px;
          font-size: 13px;
          padding: 10px;
        }
        
        .toggle button,
        .withdraw-btn,
        .creator-btn {
          padding: 10px 20px;
          font-size: 14px;
          min-width: 130px;
        }
        
        .badge {
          font-size: 10px;
          padding: 5px 8px;
        }
        
        .license-info {
          font-size: 11px;
          padding: 6px;
        }
        
        .status-pill {
          font-size: 10px;
          padding: 4px 7px;
        }
        
        .found-wallet,
        .history-container {
          max-width: 100%;
          padding: 10px;
        }
        
        .offline-title {
          font-size: 24px;
        }
        
        .offline-icon {
          font-size: 60px;
        }
      }

      @media (max-width: 360px) {
        .header h2 {
          font-size: 18px;
        }
        
        .crypto-selection img {
          width: 40px;
          height: 40px;
        }
        
        .crypto-selection {
          gap: 8px;
        }
        
        .counter-value {
          font-size: 24px;
        }
        
        .toggle button,
        .withdraw-btn,
        .creator-btn {
          padding: 8px 16px;
          font-size: 13px;
          min-width: 120px;
        }
        
        .log-box {
          height: 150px;
          font-size: 12px;
        }
        
        .verification-badge {
          gap: 5px;
        }
        
        .badge {
          font-size: 9px;
          padding: 4px 6px;
        }
        
        .found-section strong {
          font-size: 14px;
        }
      }

      @media (min-width: 768px) {
        .main-container {
          width: 90%;
          max-width: 700px;
        }
        
        .header h2 {
          font-size: 28px;
        }
        
        .header h3 {
          font-size: 18px;
        }
        
        .crypto-selection img {
          width: 55px;
          height: 55px;
        }
        
        .counter-value {
          font-size: 36px;
        }
        
        .log-box {
          height: 200px;
          font-size: 15px;
        }
        
        .toggle button,
        .withdraw-btn,
        .creator-btn {
          padding: 14px 28px;
          font-size: 16px;
          min-width: 150px;
        }
        
        .found-wallet,
        .history-container {
          max-width: 500px;
        }
      }

      /* برای تبلت‌ها و صفحه‌های بزرگ */
      @media (min-width: 1024px) {
        .main-container {
          max-width: 800px;
          max-height: 900px;
        }
      }

      /* جلوگیری از زوم در آیفون */
      @supports (-webkit-touch-callout: none) {
        body {
          cursor: pointer;
        }
        
        input, textarea, button, select, a {
          -webkit-tap-highlight-color: transparent;
        }
        
        .container-inner {
          -webkit-overflow-scrolling: touch;
        }
      }