:root {
  --bg1: #0f0f23;
  --bg2: #1c1c2e;
  --accent: #f0b90b;
  --accent2: #f8d33a;
  --panel: #1e2026;
  --text: #eaecef;
  --green: #00c087;
  --red: #f6465d;
  --gray: #848e9c;
  --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
  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;
  animation: pulse 2s infinite ease-in-out;
}

.loading-circle {
  position: absolute;
  border-radius: 50%;
  border: 2px solid transparent;
  animation: rotate 2s infinite linear;
}

.loading-circle-1 {
  width: 140px;
  height: 140px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid transparent;
}

.loading-circle-2 {
  width: 160px;
  height: 160px;
  border-top: 2px solid var(--accent2);
  border-right: 2px solid transparent;
  animation-duration: 1.5s;
}

.loading-circle-3 {
  width: 180px;
  height: 180px;
  border-top: 2px solid var(--green);
  border-right: 2px solid transparent;
  animation-duration: 2s;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: 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;
}

.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;
}

/* زر AdsGram الجديد */
.btn-adsgram {
  background: var(--purple-gradient);
  color: white;
  border: none;
}

.btn-adsgram:hover {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-adsgram:active {
  transform: translateY(0);
}

.btn-adsgram:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  background: var(--purple-gradient);
}

.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);
}

.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;
}

.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%;
}

/* زر الاستمرار بالإعلان (Taddy) */
.continue-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 10px 0;
  width: 100%;
  max-width: 200px;
}

.continue-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.continue-btn:active:not(:disabled) {
  transform: translateY(0);
}

.continue-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  background: #667eea;
}

.continue-ad-status {
  font-size: 12px;
  color: var(--gray);
  margin: 8px 0;
  text-align: center;
}

.continue-success {
  background: rgba(0, 192, 135, 0.2);
  color: var(--green);
  border: 1px solid var(--green);
  padding: 10px;
  border-radius: 6px;
  margin: 10px 0;
  text-align: center;
  font-weight: 600;
}

/* تحسينات تخطيط الإعلانات */
.ad-buttons-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0;
}

.ad-button-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.ad-button {
  flex: 1;
  padding: 14px 0;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ad-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ad-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* تجاوزات للألوان */
.ad-button-libtl {
  background: var(--accent);
  color: #1e2026;
}

.ad-button-libtl:hover:not(:disabled) {
  background: var(--accent2);
}

.ad-button-adsgram {
  background: var(--purple-gradient);
  color: white;
}

.ad-button-adsgram:hover:not(:disabled) {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* تنسيق النصوص داخل الأزرار */
.ad-button-text {
  font-size: 14px;
  font-weight: 600;
}

.ad-button-note {
  font-size: 11px;
  opacity: 0.8;
  margin-left: 4px;
}

/* مساحة عرض الإعلانات */
.ad-display-area {
  width: 100%;
  height: 250px;
  background: #1e2026;
  border-radius: 8px;
  border: 2px dashed #3a4554;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 14px;
  margin: 15px 0;
}

/* مؤشرات حالة الإعلان */
.ad-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray);
  margin-top: 8px;
}

.ad-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.ad-status-dot.loading {
  background: var(--accent);
  animation: pulse 1.5s infinite;
}

.ad-status-dot.error {
  background: var(--red);
}

.ad-status-dot.cooldown {
  background: var(--gray);
}

/* Turnstile Widget Styles */
.turnstile-container {
  position: fixed !important;
  top: -9999px !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden !important;
  z-index: -9999 !important;
}

/* Mining Panel Security Notice */
.security-notice {
  background: rgba(0, 100, 255, 0.1);
  border: 1px solid rgba(0, 100, 255, 0.3);
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 10px;
  font-size: 11px;
  color: #4dabf7;
  display: flex;
  align-items: center;
  gap: 8px;
}

.security-notice i {
  font-size: 14px;
}

/* Turnstile Success Animation */
@keyframes turnstileSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.turnstile-success {
  animation: turnstileSuccess 0.5s ease;
}

/* Hidden Form Field for Turnstile */
.turnstile-response {
  display: none;
}

/* تأثيرات الرسائل */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatUp {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-30px); opacity: 0; }
}

.float-up {
  animation: floatUp 1s forwards;
}

/* ========== التعديلات الجديدة ========== */

/* 1. تخطيط لوحة اللعبة الجديد */
#panel-game {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #000011 0%, #001122 100%);
}

.game-main-section {
  height: 80%;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.game-cards-section {
  height: 20%;
  min-height: 120px;
  max-height: 40%;
  background: var(--panel);
  border-top: 2px solid var(--accent);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 100;
  transition: transform 0.3s ease;
  touch-action: pan-y;
}

.game-cards-section.collapsed {
  transform: translateY(calc(100% - 60px));
}

.game-cards-section.expanded {
  transform: translateY(0);
}

/* مؤشر السحب لأعلى */
.swipe-up-indicator {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  z-index: 100;
  animation: bounce 2s infinite;
  pointer-events: none;
}

.swipe-up-indicator i {
  font-size: 24px;
  display: block;
  margin-bottom: 5px;
}

.swipe-up-indicator span {
  display: block;
  background: rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 15px;
  margin: 0 auto;
  width: fit-content;
  backdrop-filter: blur(5px);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* مؤشر السحب للكروت */
.cards-drag-indicator {
  width: 40px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 8px auto;
  cursor: grab;
}

.cards-drag-indicator:active {
  cursor: grabbing;
}

/* 2. تحسينات الكروت */
.cards-container {
  padding: 16px;
  max-height: 100%;
  overflow-y: auto;
}

.promo-code-section, .conversion-section {
  margin-bottom: 15px;
  background: #2b3139;
  border-radius: 10px;
  padding: 16px;
  border: 1px solid #3a4554;
}

.promo-code-section .section-title {
  text-align: center;
  color: var(--accent);
  margin-bottom: 8px;
}

.promo-code-section .section-subtitle {
  text-align: center;
  margin-bottom: 12px;
  font-size: 13px;
}

.promo-inputs {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.promo-inputs .conversion-input {
  flex: 1;
}

.promo-inputs .conversion-btn {
  min-width: 100px;
}

/* 3. شاشة Game Paused Overlay */
.game-paused-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  color: white;
  text-align: center;
  padding: 30px;
  backdrop-filter: blur(5px);
}

.game-paused-overlay h2 {
  color: var(--accent);
  font-size: 24px;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(240, 185, 11, 0.5);
}

.game-paused-overlay p {
  color: var(--text);
  font-size: 16px;
  margin-bottom: 25px;
  max-width: 300px;
  line-height: 1.5;
}

.resume-game-btn {
  background: var(--accent);
  color: #1e2026;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  margin: 10px 0;
  transition: all 0.3s;
  min-width: 150px;
}

.resume-game-btn:hover {
  background: var(--accent2);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(240, 185, 11, 0.4);
}

.cancel-game-btn {
  background: transparent;
  color: var(--gray);
  border: 1px solid var(--gray);
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  margin-top: 10px;
  transition: all 0.3s;
}

.cancel-game-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

/* 4. تحسينات التمرير في الكروت */
.cards-container::-webkit-scrollbar {
  width: 4px;
}

.cards-container::-webkit-scrollbar-track {
  background: transparent;
}

.cards-container::-webkit-scrollbar-thumb {
  background: #3a4554;
  border-radius: 4px;
}

/* 5. تحسينات التجاوب للشاشات المختلفة */
@media (max-width: 768px) {
  .game-main-section {
    min-height: 350px;
  }
  
  .game-cards-section {
    min-height: 100px;
  }
  
  .cards-container {
    padding: 12px;
  }
  
  .promo-code-section, .conversion-section {
    padding: 12px;
  }
  
  .ad-button-row {
    flex-direction: column;
  }
  
  .ad-button {
    width: 100%;
  }
  
  .mining-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .balance-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .daily-stats {
    text-align: left;
  }
  
  .continue-btn {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .game-main-section {
    min-height: 300px;
  }
  
  .game-cards-section {
    min-height: 90px;
  }
  
  .conversion-inputs {
    flex-direction: column;
  }
  
  .conversion-input, .conversion-btn {
    width: 100%;
  }
}

@media (max-height: 600px) {
  .game-main-section {
    height: 75%;
  }
  
  .game-cards-section {
    height: 25%;
    min-height: 100px;
  }
  
  .swipe-up-indicator {
    bottom: 5px;
    font-size: 10px;
  }
  
  .swipe-up-indicator i {
    font-size: 18px;
  }
}

/* تحسينات للأجهزة اللوحية */
@media (min-width: 768px) and (max-width: 1024px) {
  .game-main-section {
    min-height: 450px;
  }
  
  .game-cards-section {
    min-height: 140px;
  }
  
  .cards-container {
    display: flex;
    gap: 16px;
  }
  
  .promo-code-section, .conversion-section {
    flex: 1;
    margin-bottom: 0;
  }
}

/* 6. تحسينات عامة للعبة */
#gameCanvas {
  width: 100%;
  height: 100%;
  display: block;
  background: linear-gradient(180deg, #000011 0%, #001122 50%, #000033 100%);
}

#gameUI {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-weight: bold;
  gap: 10px;
}

#gameStats {
  display: flex;
  gap: 8px;
  font-size: 14px;
  flex-wrap: wrap;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  backdrop-filter: blur(5px);
}

/* 7. تحسين التركيز على العناصر */
#promoCode:focus,
#convertAmount:focus {
  box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.3);
  outline: none;
}

/* 8. إضافة تأثير hover للأزرار في الكروت */
.conversion-btn:hover,
#submitPromoCode:hover {
  box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

/* 9. تحسينات إضافية */
#mainContent {
  display: flex;
  flex-direction: column;
}

.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#panel-game {
  flex: 1;
}

/* إزالة الحشوات غير الضرورية */
.game-main-section,
.game-cards-section {
  padding: 0;
}

/* تحسين عرض الكروت في حالة التوسيع */
.game-cards-section.expanded .cards-container {
  max-height: 300px;
  overflow-y: auto;
}

/* تأثير سلس للفقدان والظهور */
.swipe-up-indicator,
.game-cards-section {
  transition: all 0.3s ease;
}

/* تحسينات التمرير السلس */
.game-cards-section,
.cards-container {
  -webkit-overflow-scrolling: touch;
}

/* تحسين التمرير في الشاشات الصغيرة */
.main-content {
  -webkit-overflow-scrolling: touch;
}

/* 10. تحسينات Game Over Screen */
#gameOverScreen {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 200;
  color: white;
  text-align: center;
  padding: 30px;
  box-sizing: border-box;
  backdrop-filter: blur(5px);
}

#gameOverTitle {
  font-size: 42px;
  color: var(--red);
  margin-bottom: 25px;
  font-weight: bold;
  text-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
  animation: pulse 2s infinite;
}

#finalScore {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(240, 185, 11, 0.7);
}

#finalCoins {
  font-size: 28px;
  color: #FFD700;
  margin-bottom: 35px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}

#restartBtn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--bg-dark);
  border: none;
  padding: 18px 35px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(240, 185, 11, 0.4);
  margin-top: 20px;
}

#restartBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(240, 185, 11, 0.6);
}

/* 11. تحسينات زر Start Game */
#startGameBtn {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: var(--bg-dark);
  border: none;
  padding: 18px 35px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  font-size: 20px;
  z-index: 300;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(240, 185, 11, 0.4);
}

#startGameBtn:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 6px 25px rgba(240, 185, 11, 0.6);
}