/* ============================================
   المسبحة الإلكترونية - styles.css
   ============================================ */

/* CSS Variables */
:root {
  --bg-primary: #050816;
  --bg-card: #111827;
  --bg-card-hover: #1a2236;
  --bg-input: #0d1220;
  --primary-green: #14d39a;
  --primary-green-hover: #10b382;
  --gold: #eab308;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.12);
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --success: #22c55e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;
}

/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Tahoma", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  line-height: 1.5;
  direction: rtl;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Page Container */
.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 20px 32px;
  min-height: 100dvh;
  display: none;
  animation: fadeIn 0.4s ease;
}

.page.active {
  display: block;
}

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

/* ============================================
   Header
   ============================================ */
.header {
  margin-bottom: 20px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.header-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-green);
  flex: 1;
  text-align: center;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.icon-btn:active {
  transform: scale(0.92);
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.header-arrow {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.header-arrow:active {
  transform: scale(0.92);
}

.header-arrow:hover {
  color: var(--primary-green);
}

/* ============================================
   Dropdown
   ============================================ */
.dropdown-container {
  position: relative;
}

.dropdown-btn {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.dropdown-btn:active {
  transform: scale(0.98);
  border-color: var(--primary-green);
}

.dropdown-btn.active {
  border-color: var(--primary-green);
}

.dropdown-arrow {
  color: var(--text-secondary);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.dropdown-btn.active .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  max-height: 320px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dhikr-item {
  width: 100%;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  margin-bottom: 4px;
  position: relative;
}

.dhikr-item:active {
  transform: scale(0.98);
}

.dhikr-item:hover {
  background: var(--bg-card-hover);
}

.dhikr-item.selected {
  background: rgba(20, 211, 154, 0.1);
  color: var(--primary-green);
  word-break: break-word;
}

.dhikr-item.selected::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--primary-green);
  border-radius: 2px;
}

.dhikr-check {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.dhikr-item.selected .dhikr-check {
  opacity: 1;
}

.dhikr-check svg {
  width: 14px;
  height: 14px;
  color: var(--bg-primary);
}

.add-dhikr-btn {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(20, 211, 154, 0.08);
  border: 1px dashed rgba(20, 211, 154, 0.3);
  border-radius: var(--radius-sm);
  color: var(--primary-green);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.add-dhikr-btn:active {
  transform: scale(0.98);
  background: rgba(20, 211, 154, 0.15);
}

/* ============================================
   Counter Section
   ============================================ */
.counter-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0 24px;
}

.counter-circle {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  margin-top: 20px;
}

.circle-inner {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: transform var(--transition-fast);
}

.counter-circle:active .circle-inner {
  transform: scale(0.94);
}

.counter-value {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  transition: all var(--transition-fast);
}

.progress-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 500;
}

.circle-progress {
  position: absolute;
  width: 260px;
  height: 260px;
  transform: rotate(-90deg);
  z-index: 1;
}

.circle-track {
  stroke: rgba(255, 255, 255, 0.06);
}

.circle-fill {
  stroke: var(--primary-green);
  stroke-linecap: round;
  transition: stroke-dashoffset var(--transition-slow);
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: var(--radius-full);
  background: rgba(20, 211, 154, 0.25);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
  z-index: 3;
}

@keyframes rippleAnim {
  to {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* ============================================
   Stats Cards
   ============================================ */
.stats-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 36px;
  margin-top: 38px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 8px;
  text-align: center;
  transition: all var(--transition-fast);
}

.stat-card:active {
  transform: scale(0.97);
}

.stat-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
  word-break: break-all;
}

.stat-card.remaining .stat-value {
  color: var(--primary-green);
}

.stat-card.goal .stat-value {
  color: var(--gold);
}

.stat-card.total .stat-value {
  color: var(--gold);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================
   Goals Section
   ============================================ */
.goals-section {
  margin-bottom: 20px;
}

.goals-container {
  display: flex;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 6px;
  margin-bottom: 10px;
}

.goal-btn {
  flex: 1;
  padding: 12px 8px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  border: none;
}

.goal-btn:active {
  transform: scale(0.95);
}

.goal-btn.active {
  background: var(--primary-green);
  color: var(--bg-primary);
}

.custom-goal-btn {
  width: 100%;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.custom-goal-btn:active {
  transform: scale(0.98);
  border-color: var(--primary-green);
  color: var(--primary-green);
}

/* ============================================
   Modal
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 340px;
  text-align: center;
  animation: modalIn 0.3s ease;
  z-index: 1;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: rgba(20, 211, 154, 0.1);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.modal-icon.warning {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: center;
  direction: rtl;
  outline: none;
  transition: border-color var(--transition-fast);
}

.modal-input:focus {
  border-color: var(--primary-green);
}

.modal-input::placeholder {
  color: var(--text-muted);
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.btn {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  border: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.btn-primary {
  background: var(--primary-green);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--primary-green-hover);
}

.btn-danger {
  background: var(--danger);
  color: var(--text-primary);
}

.btn-danger:hover {
  background: var(--danger-hover);
}

/* ============================================
   History Page
   ============================================ */
.history-page .page {
  padding-bottom: 40px;
}

/* Total Summary Card */
.total-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.total-summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.summary-decoration {
  color: var(--gold);
  margin-bottom: 12px;
  opacity: 0.8;
}

.grand-total-value {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.grand-total-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Section Title */
.section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-right: 4px;
}

/* Dhikr Stats */
.dhikr-stats-section {
  margin-bottom: 24px;
}

.dhikr-stats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dhikr-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.dhikr-stat-card:active {
  transform: scale(0.98);
}

.dhikr-stat-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  word-break: break-word;
}

.dhikr-stat-count {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
}

/* Session Stats */
.session-stats-section {
  margin-bottom: 24px;
}

.session-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 18px 14px;
}

.session-stat-item {
  text-align: center;
}

.session-stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 4px;
}

.session-stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Sessions List */
.sessions-list-section {
  margin-bottom: 24px;
  overflow-y: auto;
  max-height: 300px;
}

.date-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  margin-top: 4px;
}

.date-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.date-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--gold);
}

.session-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  transition: all var(--transition-fast);
}

.session-card:active {
  transform: scale(0.98);
}

.session-count {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
  min-width: 40px;
}

.session-info {
  flex: 1;
}

.session-dhikr {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  word-break: break-all;
}

.session-time {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.session-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(234, 179, 8, 0.1);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Clear History */
.clear-history-section {
  text-align: center;
  padding-top: 8px;
}

.clear-history-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.clear-history-btn:active {
  transform: scale(0.97);
  background: rgba(239, 68, 68, 0.1);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.empty-state svg {
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 0.9rem;
}


/* ============================================
   Modal التهنئة - أنماط إضافية
   ============================================ */

.congrats-modal .modal-content {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--surface) 100%);
}

.congrats-modal .modal-icon.success {
  color: #10b981;
  animation: congratsPop 0.6s ease;
}

.congrats-title {
  font-size: 1.5rem;
  color: #10b981;
  margin-bottom: 8px;
  animation: fadeInUp 0.5s ease 0.2s both;
}

.congrats-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 24px;
  animation: fadeInUp 0.5s ease 0.35s both;
}

.congrats-desc span {
  color: var(--text-primary);
  font-weight: 600;
}

.congrats-modal .modal-actions {
  justify-content: center;
  animation: fadeInUp 0.5s ease 0.5s both;
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.1rem;
  gap: 8px;
}

.btn-large svg {
  width: 20px;
  height: 20px;
}

/* تأثير العداد عند الوصول للهدف */
#counter-circle.goal-reached {
  border-color: #10b981;
}

#counter-circle.goal-reached #circle-fill {
  stroke: #10b981;
}

#counter-circle.goal-reached #counter-value {
  color: #10b981;
}

#congrats-dhikr, #selected-dhikr {
  word-break: break-word;
}

/* Animations */
@keyframes congratsPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

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

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(20, 211, 154, 0.2);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(20, 211, 154, 0);
  }
}

/* .counter-circle.pulse-anim {
  animation: pulse 0.4s ease;
} */

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   Responsive
   ============================================ */
@media (min-width: 768px) {
  .counter-circle {
    width: 280px;
    height: 280px;
  }

  .circle-inner {
    width: 240px;
    height: 240px;
  }

  .circle-progress {
    width: 280px;
    height: 280px;
  }

  .counter-value {
    font-size: 5rem;
  }
}

@media (max-width: 360px) {
  .counter-circle {
    width: 220px;
    height: 220px;
  }

  .circle-inner {
    width: 186px;
    height: 186px;
  }

  .circle-progress {
    width: 220px;
    height: 220px;
  }

  .counter-value {
    font-size: 3.5rem;
  }

  .page {
    padding: 12px 14px 24px;
  }

  .stat-value {
    font-size: 1.15rem;
  }

  .grand-total-value {
    font-size: 2.5rem;
  }
}

/* ============================================
   Accessibility
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   صفحة "عن التطبيق"
   ============================================ */

#about-page {
  background: var(--background);
  padding-bottom: 32px;
}

/* #about-page .header {
  position: sticky;
  top: 0;
  z-index: 100;
} */


#about-page .about-section {
  margin: 0 auto;
}

/* ============================================
   سكشن عن التطبيق والدعم
   ============================================ */

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0.6;
}

/* البلوكات */
.about-block {
  margin-bottom: 24px;
}

.about-block:last-of-type {
  margin-bottom: 0;
}

.about-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-green);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-label svg {
  color: var(--primary);
  flex-shrink: 0;
}

.about-text {
  font-size: 1rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.6;
}

.developer-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Courier New', monospace;
  letter-spacing: 1px;
}

.about-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 14px 0;
  line-height: 1.6;
}

/* بطاقة البنك */
.bank-card {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.06), rgba(6, 182, 212, 0.04));
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 16px;
  margin-top: 4px;
}

.bank-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.bank-detail {
  margin-bottom: 12px;
}

.bank-detail:last-child {
  margin-bottom: 0;
}

.bank-detail-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bank-detail-value {
  flex: 1;
  font-family: 'SF Mono', 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--text-primary);
  background: rgba(0,0,0,0.2);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  direction: ltr;
  text-align: left;
  display: block;
  word-break: break-all;
}

.bank-detail-value.plain {
  font-family: inherit;
  text-align: right;
  direction: rtl;
}

.copy-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.copy-btn.copied {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.bank-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 14px 0 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(16, 185, 129, 0.1);
}

/* روابط التواصل */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
}

.contact-link svg {
  flex-shrink: 0;
}

.contact-link.whatsapp {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(37, 211, 102, 0.05));
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.2);
}

.contact-link.whatsapp:hover {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}

.contact-link.email {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.05));
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.2);
}

.contact-link.email:hover {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}

.contact-value {
  margin-right: auto;
  font-size: 0.8rem;
  opacity: 0.8;
  direction: ltr;
}

/* الفوتر */
.about-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0 0 6px 0;
  direction: ltr;
}

.version {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0,0,0,0.15);
  padding: 4px 12px;
  border-radius: 20px;
  font-family: 'SF Mono', monospace;
}

/* Toast إشعار النسخ */
.copy-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface);
  color: var(--text-primary);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.copy-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.copy-toast svg {
  color: #10b981;
}

/* تأثير العداد عند الوصول للهدف */
#counter-circle.goal-reached {
  border-color: #10b981;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3), inset 0 0 20px rgba(16, 185, 129, 0.1);
}

#counter-circle.goal-reached #circle-fill {
  stroke: #10b981;
}

#counter-circle.goal-reached #counter-value {
  color: #10b981;
}

/* Modal التهنئة */
.congrats-modal .modal-content {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, var(--surface) 100%);
}

.congrats-modal .modal-icon.success {
  color: #10b981;
  animation: congratsPop 0.6s ease;
}

.congrats-title {
  font-size: 1.5rem;
  color: #10b981;
  margin-bottom: 8px;
  animation: fadeInUp 0.5s ease 0.2s both;
}

.congrats-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 24px;
  animation: fadeInUp 0.5s ease 0.35s both;
}

.congrats-desc span {
  color: var(--text-primary);
  font-weight: 600;
}

.congrats-modal .modal-actions {
  justify-content: center;
  animation: fadeInUp 0.5s ease 0.5s both;
}

.btn-large {
  padding: 14px 32px;
  font-size: 1.1rem;
  gap: 8px;
}

.btn-large svg {
  width: 20px;
  height: 20px;
}

/* Animations */
@keyframes congratsPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

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

/* ============================================
   Modal تفاصيل الجلسة
   ============================================ */

.detail-content {
  text-align: center;
  padding: 28px 24px;
}

.detail-content .modal-icon.info {
  color: var(--primary);
  margin-bottom: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
  text-align: right;
}

.detail-item {
  background: rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.detail-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.detail-value.count {
  font-size: 1.5rem;
  color: var(--primary);
}

.detail-actions {
  gap: 10px;
}

.detail-actions .btn-danger {
  display: flex;
  align-items: center;
  gap: 6px;
}

#btn-delete-from-detail {
  align-items: center;
  justify-content: center;
  text-align: center;
}


/* ============================================
   حماية التطبيق - منع جميع عمليات النسخ والسحب
   ============================================ */

/* منع اختيار النص في جميع أنحاء التطبيق */
* {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
  
  /* منع سحب العناصر */
  -webkit-user-drag: none !important;
  user-drag: none !important;
  
  /* منع القائمة السياقية */
  -webkit-context-menu: none !important;
}

/* استثناءات: حقول الإدخال فقط */
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* منع ظهور شريط التحديد في iOS */
::selection {
  background: transparent !important;
  color: inherit !important;
}

/* منع تغيير حجم النص في iOS */
body {
  -webkit-text-size-adjust: none !important;
  text-size-adjust: none !important;
}

/* ============================================
   منع السحب والإفلات
   ============================================ */
img, a, button, .no-drag {
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
  
  pointer-events: auto;
  touch-action: manipulation;
}

/* ============================================
   منع القائمة السياقية على الصور والروابط
   ============================================ */
img {
  pointer-events: none;
}

/* استثناء: الأزرار التفاعلية */
button, a, [role="button"] {
  pointer-events: auto;
}

/* ============================================
   منع التكبير/التصغير باللمس المزدوج
   ============================================ */
html, body {
  touch-action: pan-x pan-y;
  -ms-touch-action: pan-x pan-y;
  
  /* منع التكبير */
  zoom: reset;
  -webkit-zoom: reset;
}

/* iOS: منع التكبير عند النقر المزدوج */
@media screen and (pointer: coarse) {
  html {
    touch-action: manipulation;
  }
}

