: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: 0;
  line-height: 1.5;
}

.app {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  position: relative;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

#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;
  border-top-color: transparent; /* سيتم تجاوزه في الكلاسات الفرعية */
  border-right-color: transparent; /* موحد للكل */
  animation: rotate 2s infinite linear; /* الأنميشن الافتراضي موحد */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* تخصيص كل دائرة بحجمها ولونها وسرعتها فقط */
.loading-circle-1 {
  width: 140px;
  height: 140px;
  border-top-color: var(--accent);
  animation-delay: 0s; /* تأخير موحد إذا عايز، أو غيره */
}

.loading-circle-2 {
  width: 160px;
  height: 160px;
  border-top-color: var(--accent2);
  animation-duration: 1.5s; /* سرعة مختلفة زي القديم */
  animation-delay: 0.3s;
}

.loading-circle-3 {
  width: 180px;
  height: 180px;
  border-top-color: var(--green);
  animation-duration: 2s; /* سرعة مختلفة زي القديم */
  animation-delay: 0.6s;
}

/* الأنميشن الموحد للدوران (نفس التأثير السابق بالضبط) */
@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* الأنميشن للـ logo (مفيش تغيير، بس لو عايز توحيده مع الدوائر، أضف rotate إليه إذا لزم) */
.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;
}
.expiry-message {
    position: absolute;
    left: 50%;
    top: 40%;
    transform: translate(-50%, -50%);
    padding: 10px 20px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border-radius: 8px;
    font-weight: bold;
    z-index: 1000;
    animation: fadeOut 2s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    70% { opacity: 1; }
    100% { opacity: 0; }
}
@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;
  min-height: 70px;
}

.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;
}
/* أنماط المتجر */
.shop-items-container {
    margin-top: 20px;
}

.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.shop-item-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.shop-item-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.2);
}

.shop-item-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.shop-item-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shop-item-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.shop-item-info {
    flex: 1;
}

.shop-item-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
    color: white;
}

.shop-item-desc {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.4;
}

.shop-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.shop-item-price {
    font-weight: 600;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shop-item-price i {
    font-size: 14px;
}

.shop-item-buy-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-item-buy-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

.shop-item-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* العناصر النشطة */
.active-shop-items-container {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.active-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.active-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.3);
    border-radius: 10px;
    padding: 12px;
}

.active-item-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.active-item-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.active-item-details {
    flex: 1;
}

.active-item-name {
    font-weight: 600;
    font-size: 14px;
    color: white;
    margin-bottom: 2px;
}

.active-item-time {
    font-size: 12px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #00ff00;
    font-weight: bold;
}
.active-item-time.expiring {
    color: #ff4444;
    animation: pulse 1s infinite;
}

.no-active-items {
    text-align: center;
    padding: 20px;
    opacity: 0.7;
    font-style: italic;
}

/* رسائل المتجر */
.shop-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    z-index: 10000;
    text-align: center;
    min-width: 300px;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.shop-message.success {
    background: rgba(46, 204, 113, 0.95);
    color: white;
    border: 2px solid #27ae60;
}

.shop-message.error {
    background: rgba(231, 76, 60, 0.95);
    color: white;
    border: 2px solid #c0392b;
}

/* تأثيرات الرسائل */
@keyframes powerUpMessage {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}
.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;
  position: relative;
}
/* أنماط بطاقة أكواد الاسترداد */
.redeem-card {
    margin-bottom: 12px;
}

.redeem-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.redeem-option {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: rgba(30, 32, 38, 0.5);
    border-radius: 8px;
    border: 1px solid #3a4554;
}

.redeem-info {
    flex: 1;
}

.redeem-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 4px;
}

.redeem-description {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
}

.redeem-cost {
    font-size: 12px;
    color: var(--accent);
    font-weight: 600;
}

.cost-amount {
    color: var(--green);
}

.redeem-btn {
    padding: 10px 16px;
    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;
}

.redeem-btn.create-btn {
    background: var(--accent);
    color: #1e2026;
}

.redeem-btn.create-btn:hover:not(:disabled) {
    background: var(--accent2);
}

.redeem-btn.use-btn {
    background: var(--green);
    color: white;
    padding: 10px 20px;
    white-space: nowrap;
}

.redeem-btn.use-btn:hover:not(:disabled) {
    background: #00a878;
}

.redeem-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.redeem-input-group {
    display: flex;
    gap: 8px;
}

.redeem-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #3a4554;
    border-radius: 6px;
    background: #1e2026;
    color: var(--text);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.redeem-input:focus {
    outline: none;
    border-color: var(--accent);
}

.divider {
    text-align: center;
    position: relative;
    color: var(--gray);
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #3a4554;
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.created-code-container {
    background: rgba(0, 192, 135, 0.1);
    border: 1px solid var(--green);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    animation: fadeIn 0.5s ease;
}

.created-code-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--green);
    margin-bottom: 8px;
}

.code-display {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.code-input {
    flex: 1;
    padding: 10px 12px;
    background: #1e2026;
    border: 1px solid var(--green);
    border-radius: 6px;
    color: var(--green);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.copy-code-btn {
    background: var(--green);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-code-btn:hover {
    background: #00a878;
}

.code-note {
    font-size: 11px;
    color: var(--gray);
    text-align: center;
}

.redeem-result {
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    margin-top: 8px;
    animation: fadeIn 0.3s ease;
}

.redeem-result.success {
    background: rgba(0, 192, 135, 0.2);
    color: var(--green);
    border: 1px solid var(--green);
}

.redeem-result.error {
    background: rgba(246, 70, 93, 0.2);
    color: var(--red);
    border: 1px solid var(--red);
}

.redeem-result.warning {
    background: rgba(240, 185, 11, 0.2);
    color: var(--accent);
    border: 1px solid var(--accent);
}

.redeem-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(30, 32, 38, 0.5);
    border-radius: 6px;
    border: 1px solid #3a4554;
}

.stat-label {
    font-size: 11px;
    color: var(--gray);
}

.stat-value {
    font-weight: 600;
    font-size: 12px;
    color: var(--text);
}

/* استجابة للهواتف الصغيرة */
@media (max-width: 380px) {
    .redeem-input-group {
        flex-direction: column;
    }
    
    .redeem-stats {
        grid-template-columns: 1fr;
    }
}
.panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
  min-height: 0;
}

@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;
  z-index: 10;
}

.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%;
  width: 100%;
}

.game-full-container {
  width: 100%;
  height: 100%;
  position: relative;
}

#gameContainer {
  position: relative;
  width: 100%;
  height: 100%;
}

/* زر الاستمرار بالإعلان (Taddy) */
.continue-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 10px 0;
  width: 100%;
  max-width: 250px;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.continue-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.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 pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* تأثيرات الرسائل */
@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;
}

/* استجابة للهواتف الصغيرة */
@media (max-width: 380px) {
  .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%;
  }
}

/* تحسينات للعبة */
.game-over-content {
  background: rgba(0, 0, 0, 0.85);
  padding: 25px;
  border-radius: 15px;
  border: 2px solid var(--accent);
  max-width: 350px;
  width: 90%;
  text-align: center;
  backdrop-filter: blur(10px);
}

.restart-game-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #1e2026;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 10px 0;
  width: 100%;
  max-width: 250px;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(240, 185, 11, 0.3);
}

.restart-game-btn:hover {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(240, 185, 11, 0.5);
}

.game-over-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 20px 0;
}

.conversion-mini {
  background: rgba(43, 49, 57, 0.8);
  padding: 15px;
  border-radius: 10px;
  margin: 15px 0;
  border: 1px solid var(--accent);
  width: 100%;
}

.conversion-mini-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
  color: var(--accent);
}

.conversion-mini-rate {
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 10px;
}

.conversion-mini-inputs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.conversion-mini-input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #3a4554;
  border-radius: 6px;
  background: #1e2026;
  color: var(--text);
  font-size: 12px;
}

.conversion-mini-btn {
  background: var(--accent);
  color: #1e2026;
  border: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
}

.conversion-mini-btn:hover {
  background: var(--accent2);
}

.conversion-mini-result {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}