/*
 * خونه سبز — Components CSS
 * Styles for django-components (BEM naming)
 */

/* Direction Utilities */
.dir-ltr, [dir="ltr"] {
  direction: ltr !important;
}
.dir-rtl, [dir="rtl"] {
  direction: rtl !important;
}


/* ===== Tactile 3D Kids UI Button System ===== */
/* ===== Tactile 3D Kids UI Button System (Educational Game Style) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.35;
  border-radius: 1rem; /* 16px: squarish-rounded, not pill/oval */
  border: 2.5px solid transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.08s ease-in-out, box-shadow 0.08s ease-in-out, background-color 0.12s ease, filter 0.12s ease;
  box-shadow: 0 5px 0 var(--btn-shadow, #0f172a), 0 8px 14px rgba(0, 0, 0, 0.08);
}

.btn:hover:not(:disabled) {
  filter: brightness(1.04);
}

.btn:active:not(:disabled) {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--btn-shadow, #0f172a) !important;
}

.btn:disabled, .btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(0.6);
}

/* Primary (Apple Lime / Mint Green — Matching Option Tile 10) */
.btn--primary, .btn--green {
  background: #84cc16;
  border-color: #65a30d;
  --btn-shadow: #4d7c0f;
  box-shadow: 0 5px 0 #4d7c0f, 0 8px 14px rgba(77, 124, 15, 0.28);
  color: #ffffff;
}
.btn--primary:hover:not(:disabled), .btn--green:hover:not(:disabled) {
  background: #94d82d;
}

/* Blue (Sky / Azure — Matching Option Tile 11) */
.btn--blue, .btn--info {
  background: #60a5fa;
  border-color: #3b82f6;
  --btn-shadow: #1d4ed8;
  box-shadow: 0 5px 0 #1d4ed8, 0 8px 14px rgba(29, 78, 216, 0.28);
  color: #ffffff;
}
.btn--blue:hover:not(:disabled), .btn--info:hover:not(:disabled) {
  background: #73b0fc;
}

/* Purple (Lavender / Lilac — Matching Option Tile 12) */
.btn--purple, .btn--vivid {
  background: #c084fc;
  border-color: #a855f7;
  --btn-shadow: #7e22ce;
  box-shadow: 0 5px 0 #7e22ce, 0 8px 14px rgba(126, 34, 206, 0.28);
  color: #ffffff;
}
.btn--purple:hover:not(:disabled), .btn--vivid:hover:not(:disabled) {
  background: #ca98fd;
}

/* Accent Sun / Golden Yellow (Matching Option Tile 13) */
.btn--accent, .btn--warning, .btn--sun, .btn--orange {
  background: #fbbf24;
  border-color: #f59e0b;
  --btn-shadow: #b45309;
  box-shadow: 0 5px 0 #b45309, 0 8px 14px rgba(180, 83, 9, 0.28);
  color: #78350f;
}
.btn--accent:hover:not(:disabled), .btn--warning:hover:not(:disabled), .btn--sun:hover:not(:disabled), .btn--orange:hover:not(:disabled) {
  background: #fcc742;
}

/* Secondary (Crisp Slate / Light Cream) */
.btn--secondary {
  background: #f8fafc;
  border-color: #cbd5e1;
  --btn-shadow: #94a3b8;
  box-shadow: 0 5px 0 #94a3b8, 0 6px 12px rgba(148, 163, 184, 0.2);
  color: #1e293b;
}
.btn--secondary:hover:not(:disabled) {
  background: #ffffff;
  border-color: #94a3b8;
}

/* Danger (Raspberry / Strawberry Red) */
.btn--danger {
  background: #f43f5e;
  border-color: #e11d48;
  --btn-shadow: #be123c;
  box-shadow: 0 5px 0 #be123c, 0 8px 14px rgba(190, 18, 60, 0.28);
  color: #ffffff;
}
.btn--danger:hover:not(:disabled) {
  background: #fb5370;
}

/* Outline 3D */
.btn--outline {
  background: #ffffff;
  color: #15803d;
  border-color: #22c55e;
  --btn-shadow: #16a34a;
  box-shadow: 0 4px 0 #16a34a;
}
.btn--outline:hover:not(:disabled) {
  background: #f0fdf4;
}

/* Ghost 3D */
.btn--ghost {
  background: transparent;
  color: #475569;
  border-color: transparent;
  box-shadow: none;
}
.btn--ghost:hover:not(:disabled) {
  background: #f1f5f9;
  color: #0f172a;
}
.btn--ghost:active:not(:disabled) {
  transform: none;
  box-shadow: none;
}

/* Sizes */
.btn--sm {
  padding: 0.35rem 0.95rem;
  font-size: 0.8125rem;
  border-radius: 0.75rem; /* 12px */
  box-shadow: 0 3.5px 0 var(--btn-shadow, #0f172a);
}
.btn--sm:active:not(:disabled) {
  transform: translateY(2.5px);
  box-shadow: 0 1px 0 var(--btn-shadow, #0f172a) !important;
}

.btn--lg {
  padding: 0.85rem 2.2rem;
  font-size: 1.125rem;
  border-radius: 1.125rem; /* 18px */
  box-shadow: 0 6px 0 var(--btn-shadow, #0f172a), 0 10px 20px rgba(0, 0, 0, 0.12);
}
.btn--lg:active:not(:disabled) {
  transform: translateY(5px);
  box-shadow: 0 1.5px 0 var(--btn-shadow, #0f172a) !important;
}

.btn--block {
  width: 100%;
}

/* ===== Tactile 3D Cards ===== */
.card {
  background: #ffffff;
  border: 3px solid #e2e8f0;
  border-radius: 1.75rem;
  box-shadow: 0 6px 0 #cbd5e1, 0 12px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 #cbd5e1, 0 16px 28px rgba(0, 0, 0, 0.06);
}

.card__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 2.5px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 800;
  color: #0f172a;
}

.card__body {
  padding: 1.5rem;
}

.card__footer {
  padding: 1.25rem 1.5rem;
  border-top: 2.5px solid #f1f5f9;
  background: #f8fafc;
}

/* Notebook Dashboard & Paper Lined Component */
.notebook-dashboard {
  background: #fbf5e6;
  border: 4px solid #d97706;
  border-radius: 2.25rem;
  box-shadow: 0 10px 0 #b45309, 0 20px 32px rgba(180, 83, 9, 0.18);
  position: relative;
}

.paper-lined {
  background-color: #fbf5e6;
  background-image: repeating-linear-gradient(transparent, transparent 29px, #e8dfc8 30px);
  background-size: 100% 30px;
}

.spiral-ring {
  width: 12px;
  height: 32px;
  background: linear-gradient(90deg, #64748b 0%, #cbd5e1 45%, #ffffff 60%, #475569 100%);
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
  display: inline-block;
}

/* Achievement Card with Golden Trophy */
.achievement-card {
  background: #ffffff;
  border: 3px solid #fde68a;
  border-radius: 2rem;
  box-shadow: 0 8px 0 #f59e0b, 0 16px 28px rgba(245, 158, 11, 0.15);
}

/* ===== Tactile 3D Form Fields ===== */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.45rem;
}

.form-label--required::after {
  content: " *";
  color: #ef4444;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  font-weight: 700;
  color: #0f172a;
  border: 2.5px solid #cbd5e1;
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05), 0 2px 0 #e2e8f0;
  transition: all 0.15s ease-in-out;
  direction: rtl;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03), 0 0 0 4px rgba(16, 185, 129, 0.15), 0 3px 0 #059669;
  background: #ffffff;
}

.form-input--error {
  border-color: #ef4444;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05), 0 2px 0 #f87171;
}

.form-input--error:focus {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15), 0 3px 0 #b91c1c;
}

.form-checkbox {
  width: 1.35rem;
  height: 1.35rem;
  accent-color: #10b981;
  border-radius: 0.45rem;
  cursor: pointer;
}

.form-help {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
  margin-top: 0.4rem;
}

.form-error {
  font-size: 0.75rem;
  color: #ef4444;
  font-weight: 700;
  margin-top: 0.4rem;
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

/* ===== Tactile 3D Badges ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 9999px;
  border: 2px solid transparent;
  line-height: 1.4;
  box-shadow: 0 2px 0 var(--badge-shadow, rgba(0,0,0,0.1));
}

.badge--primary { 
  background: #dcfce7; 
  border-color: #86efac; 
  color: #166534; 
  --badge-shadow: #4ade80; 
}
.badge--secondary { 
  background: #f1f5f9; 
  border-color: #cbd5e1; 
  color: #334155; 
  --badge-shadow: #94a3b8; 
}
.badge--success { 
  background: #dcfce7; 
  border-color: #86efac; 
  color: #15803d; 
  --badge-shadow: #22c55e; 
}
.badge--warning { 
  background: #fef3c7; 
  border-color: #fde68a; 
  color: #92400e; 
  --badge-shadow: #f59e0b; 
}
.badge--danger { 
  background: #ffe4e6; 
  border-color: #fecdd3; 
  color: #9f1239; 
  --badge-shadow: #f43f5e; 
}
.badge--info { 
  background: #e0f2fe; 
  border-color: #bae6fd; 
  color: #0369a1; 
  --badge-shadow: #38bdf8; 
}
.badge--purple { 
  background: #f3e8ff; 
  border-color: #e9d5ff; 
  color: #6b21a8; 
  --badge-shadow: #c084fc; 
}

/* ===== Tactile 3D Alerts ===== */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-radius: 1.5rem;
  margin-bottom: 1.25rem;
  border: 2.5px solid transparent;
  box-shadow: 0 4px 0 var(--alert-shadow, rgba(0,0,0,0.08));
}

.alert--success { 
  background: #f0fdf4; 
  border-color: #86efac; 
  color: #166534; 
  --alert-shadow: #4ade80; 
}
.alert--warning { 
  background: #fffbeb; 
  border-color: #fde68a; 
  color: #92400e; 
  --alert-shadow: #f59e0b; 
}
.alert--error { 
  background: #fff1f2; 
  border-color: #fecdd3; 
  color: #9f1239; 
  --alert-shadow: #f43f5e; 
}
.alert--info { 
  background: #f0f9ff; 
  border-color: #bae6fd; 
  color: #0369a1; 
  --alert-shadow: #38bdf8; 
}

.alert__icon { flex-shrink: 0; margin-top: 2px; }
.alert__content { flex: 1; }
.alert__title { font-weight: 800; margin-bottom: 0.25rem; }
.alert__close {
  flex-shrink: 0;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.15s ease;
}
.alert__close:hover { opacity: 1; }

/* ===== Table ===== */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.table th,
.table td {
  padding: var(--space-3) var(--space-4);
  text-align: right;
  border-bottom: 1px solid var(--color-border);
}

.table th {
  background: var(--color-bg-secondary);
  font-weight: var(--font-weight-semibold);
  color: var(--color-gray-600);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.table tbody tr:hover {
  background: var(--color-surface-hover);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

/* ===== Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.is-active .modal {
  transform: translateY(0);
}

.modal__header {
  padding: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
}

.modal__body { padding: var(--space-5); }
.modal__footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-3);
  justify-content: flex-start;
}

/* ===== Pagination ===== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin-top: var(--space-6);
}

.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  color: var(--color-gray-600);
  transition: all var(--transition-fast);
}

.pagination__link:hover {
  background: var(--color-gray-100);
}

.pagination__link--active {
  background: var(--color-primary-600);
  color: #fff;
}

.pagination__link--disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--color-text-secondary);
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--color-gray-300);
}

.empty-state__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

/* ===== Loading Spinner ===== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-gray-200);
  border-top-color: var(--color-primary-600);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== Avatar ===== */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  object-fit: cover;
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}

.avatar--sm { width: 32px; height: 32px; font-size: var(--font-size-xs); }
.avatar--lg { width: 56px; height: 56px; font-size: var(--font-size-lg); }
.avatar--xl { width: 80px; height: 80px; font-size: var(--font-size-2xl); }

/* ===== Gamified Kid-Friendly 3D UI System (Reference Design System) ===== */

.btn-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-weight: 800;
  text-align: center;
  border-radius: 1rem; /* 16px: matching educational game tiles */
  padding: 0.65rem 1.4rem;
  transition: transform 0.08s ease-in-out, box-shadow 0.08s ease-in-out, filter 0.15s ease;
  user-select: none;
  cursor: pointer;
  border-style: solid;
  border-width: 2.5px;
  text-decoration: none;
  line-height: 1.3;
}

.btn-3d:active {
  transform: translateY(4px);
}

.btn-3d--green {
  background: #84cc16;
  border-color: #65a30d;
  color: #ffffff;
  box-shadow: 0 5px 0 #4d7c0f, 0 8px 12px rgba(77, 124, 15, 0.25);
}
.btn-3d--green:hover {
  background: #94d82d;
}
.btn-3d--green:active {
  box-shadow: 0 1px 0 #4d7c0f !important;
}

.btn-3d--blue {
  background: #60a5fa;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 5px 0 #1d4ed8, 0 8px 12px rgba(29, 78, 216, 0.25);
}
.btn-3d--blue:hover {
  background: #73b0fc;
}
.btn-3d--blue:active {
  box-shadow: 0 1px 0 #1d4ed8 !important;
}

.btn-3d--purple {
  background: #c084fc;
  border-color: #a855f7;
  color: #ffffff;
  box-shadow: 0 5px 0 #7e22ce, 0 8px 12px rgba(126, 34, 206, 0.25);
}
.btn-3d--purple:hover {
  background: #ca98fd;
}
.btn-3d--purple:active {
  box-shadow: 0 1px 0 #7e22ce !important;
}

.btn-3d--orange {
  background: #fbbf24;
  border-color: #f59e0b;
  color: #78350f;
  box-shadow: 0 5px 0 #b45309, 0 8px 12px rgba(180, 83, 9, 0.25);
}
.btn-3d--orange:hover {
  background: #fcc742;
}
.btn-3d--orange:active {
  box-shadow: 0 1px 0 #b45309 !important;
}

/* Vivid Action (ادامه) */
.btn-3d--vivid-purple {
  background: #a855f7;
  border-color: #9333ea;
  color: #ffffff;
  box-shadow: 0 6px 0 #6b21a8, 0 10px 16px rgba(107, 33, 168, 0.35);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  border-radius: 1rem;
}
.btn-3d--vivid-purple:hover {
  background: #b366ff;
}
.btn-3d--vivid-purple:active {
  box-shadow: 0 1.5px 0 #6b21a8 !important;
}

/* Vivid Orange (شروع یادگیری) */
.btn-3d--vivid-orange {
  background: #fb923c;
  border-color: #f97316;
  color: #ffffff;
  box-shadow: 0 6px 0 #c2410c, 0 10px 16px rgba(194, 65, 12, 0.35);
  font-size: 1rem;
  border-radius: 1rem;
}
.btn-3d--vivid-orange:hover {
  background: #ffa154;
}
.btn-3d--vivid-orange:active {
  box-shadow: 0 1.5px 0 #c2410c !important;
}

/* Number Blocks (کلیدهای شماره‌دار گزینه‌ای بازی‌های آموزشی) */
.btn-3d-num, .btn-tile {
  width: 62px;
  height: 54px;
  border-radius: 1rem; /* 16px */
  font-size: 1.35rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-width: 2.5px;
}

/* Gamified Bottom Dock Navigation */
.dock-nav-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25), 0 4px 0 #0f172a;
}
.dock-nav-bar--navy {
  background: #1e1b4b;
  border: 2px solid #312e81;
}
.dock-nav-bar--blue {
  background: #2563eb;
  border: 2px solid #1d4ed8;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3), 0 4px 0 #1e40af;
}

.dock-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.4rem 0.9rem;
  border-radius: 1rem;
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  position: relative;
}
.dock-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}
.dock-nav-item--active {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.25);
  border: 1.5px solid #fbbf24;
}

/* Medal Avatar Frame (Multi-ring gold/wood bevel) */
.medal-avatar-frame {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, #fef08a 0%, #f59e0b 50%, #b45309 100%);
  box-shadow: 0 8px 16px rgba(180, 83, 9, 0.3), inset 0 2px 4px rgba(255, 255, 255, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.medal-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid #b45309;
  background: #fef3c7;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Gamified Progress Capsule */
.gamified-progress-track {
  background: #e2e8f0;
  border: 3px solid #cbd5e1;
  border-radius: 9999px;
  padding: 4px;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.12);
  position: relative;
}
.gamified-progress-bar {
  background: #84cc16;
  height: 22px;
  border-radius: 9999px;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 2px 4px rgba(101, 163, 13, 0.3);
  transition: width 0.4s ease;
}

/* Spiral Notebook & Dashboard */
.notebook-container {
  background: #fbf5e6;
  border: 4px solid #d97706;
  border-radius: 2rem;
  box-shadow: 0 10px 0 #b45309, 0 16px 28px rgba(217, 119, 6, 0.2);
  position: relative;
}

.notebook-page {
  background-color: #fffef9;
  background-image: repeating-linear-gradient(transparent, transparent 27px, #e8dfc8 28px);
  background-size: 100% 28px;
  border-radius: 1.5rem;
}

.notebook-dashboard {
  background: #ffffff;
  border: 4px solid #e2e8f0;
  border-bottom: 8px solid #cbd5e1;
  border-radius: 2.25rem;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

/* 3D Spiral Binder Rings */
.spiral-binder-row {
  display: flex;
  justify-content: space-around;
  padding: 0 2rem;
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  z-index: 20;
  pointer-events: none;
}

.spiral-ring {
  width: 14px;
  height: 28px;
  background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 40%, #475569 70%, #cbd5e1 100%);
  border-radius: 9999px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25), inset 0 2px 3px rgba(255, 255, 255, 0.8);
  border: 1px solid #64748b;
  transform: translateY(-2px);
}

/* ===== Gamified Cards & Data Blocks (مطابق اسکرین‌شات مرجع) ===== */
.achievement-card-ref {
  background: #ffffff;
  border: 3px solid #e2e8f0;
  border-radius: 2rem; /* 32px */
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06), 0 4px 0 #cbd5e1;
  padding: 1.75rem;
  text-align: center;
  position: relative;
}

/* نوارهای داده کرم و نسکافه‌ای سه‌بعدی (Stat Blocks) */
.stat-block--gamified {
  background: #fdf2d0;
  border: 2.5px solid #e6b973;
  border-radius: 1.25rem; /* 20px */
  box-shadow: 0 4px 0 #c89547;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.stat-block--gamified:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #c89547;
}

.stat-block--gamified__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-block--gamified__icon {
  width: 42px;
  height: 42px;
  border-radius: 0.85rem;
  background: #ffffff;
  border: 2px solid #e6b973;
  box-shadow: 0 2px 0 #c89547;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.stat-block--gamified__label {
  font-size: 0.875rem;
  font-weight: 800;
  color: #78350f;
}

.stat-block--gamified__val {
  font-size: 1.4rem;
  font-weight: 900;
  color: #451a03;
  letter-spacing: -0.02em;
}

/* ===== Badges & Chips (نشان‌ها و برچسب‌های هماهنگ) ===== */
.badge-tactile {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 800;
  border-radius: 9999px;
  border: 2px solid;
  box-shadow: 0 2.5px 0 var(--badge-shadow, rgba(0,0,0,0.1));
  line-height: 1.2;
}

.badge-tactile--amber, .badge-tactile--session {
  background: #fef08a;
  border-color: #f59e0b;
  --badge-shadow: #d97706;
  color: #78350f;
}

.badge-tactile--green {
  background: #dcfce7;
  border-color: #86efac;
  --badge-shadow: #22c55e;
  color: #14532d;
}

.badge-tactile--blue {
  background: #dbeafe;
  border-color: #93c5fd;
  --badge-shadow: #3b82f6;
  color: #1e3a8a;
}

.badge-tactile--purple {
  background: #f3e8ff;
  border-color: #d8b4fe;
  --badge-shadow: #a855f7;
  color: #581c87;
}

.badge-tactile--rose {
  background: #ffe4e6;
  border-color: #fda4af;
  --badge-shadow: #f43f5e;
  color: #881337;
}

.chip-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fdf2d0;
  border: 2px solid #e6b973;
  box-shadow: 0 2.5px 0 #c89547;
  border-radius: 0.85rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #78350f;
}

/* ===== Alerts & Notifications (پیام‌ها و هشدارهای دوستانه با افکت سه‌بعدی) ===== */
.alert-tactile {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.35rem;
  border-radius: 1.25rem; /* 20px */
  border: 2.5px solid;
  box-shadow: 0 4px 0 var(--alert-shadow, rgba(0,0,0,0.1));
  position: relative;
  transition: transform 0.12s ease;
}

.alert-tactile:hover {
  transform: translateY(-1px);
}

.alert-tactile__icon {
  width: 38px;
  height: 38px;
  border-radius: 0.85rem;
  border: 2px solid;
  box-shadow: 0 2px 0 var(--alert-shadow);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-tactile--success {
  background: #f0fdf4;
  border-color: #86efac;
  --alert-shadow: #22c55e;
  color: #14532d;
}
.alert-tactile--success .alert-tactile__icon {
  border-color: #86efac;
  color: #16a34a;
}

.alert-tactile--warning {
  background: #fffbeb;
  border-color: #fcd34d;
  --alert-shadow: #f59e0b;
  color: #78350f;
}
.alert-tactile--warning .alert-tactile__icon {
  border-color: #fcd34d;
  color: #d97706;
}

.alert-tactile--danger {
  background: #fff1f2;
  border-color: #fda4af;
  --alert-shadow: #f43f5e;
  color: #881337;
}
.alert-tactile--danger .alert-tactile__icon {
  border-color: #fda4af;
  color: #e11d48;
}

.alert-tactile--info {
  background: #eff6ff;
  border-color: #93c5fd;
  --alert-shadow: #3b82f6;
  color: #1e3a8a;
}
.alert-tactile--info .alert-tactile__icon {
  border-color: #93c5fd;
  color: #2563eb;
}


