/* ================================================================
   AQUA DARK THEME — Bootstrap 5 Full Override
   Complete rewrite • RTL-ready • Accessible • Performance-tuned
   ================================================================ */

/* ──────────────── Font Import ──────────────── */
@import url('../fonts/iransans/400-pn.css');

/* ──────────────── CSS Variables (Custom Properties) ──────────────── */
:root {
  /* ── Brand Colors ── */
  --bs-primary:         #0891b2;
  --bs-primary-rgb:     8,145,178;
  --bs-secondary:       #22d3ee;
  --bs-secondary-rgb:   34,211,238;
  --bs-success:         #26a69a;
  --bs-success-rgb:     38,166,154;
  --bs-danger:          #ef5350;
  --bs-danger-rgb:      239,83,80;
  --bs-warning:         #ffb74d;
  --bs-warning-rgb:     255,183,77;
  --bs-info:            #67e8f9;
  --bs-info-rgb:        103,232,249;
  --bs-light:           #e0f7fa;
  --bs-light-rgb:       224,247,250;
  --bs-dark:            #060d1f;
  --bs-dark-rgb:        6,13,31;

  /* ── Theme Tokens ── */
  --theme-bg:           #060d1f;
  --theme-bg-alt:       #0a1628;
  --theme-surface:      rgba(8,145,178,0.07);
  --theme-surface-hover:rgba(8,145,178,0.13);
  --theme-border:       rgba(34,211,238,0.13);
  --theme-border-hover: rgba(34,211,238,0.30);
  --theme-glow:         #67e8f9;
  --theme-text:         #e0f7fa;
  --theme-text-muted:   #80deea;
  --theme-text-dim:     rgba(224,247,250,0.45);
  --theme-radius:       14px;
  --theme-radius-sm:    8px;
  --theme-radius-lg:    20px;
  --theme-glass-blur:   18px;
  --theme-transition:   0.25s cubic-bezier(.4,0,.2,1);
  --theme-focus-ring:   0 0 0 3px rgba(8,145,178,0.25);

  /* ── Bootstrap Overrides ── */
  --bs-body-bg:         var(--theme-bg);
  --bs-body-color:      var(--theme-text);
  --bs-border-color:    var(--theme-border);
  --bs-link-color:      var(--bs-secondary);
  --bs-link-hover-color:#67e8f9;
  --bs-border-radius:   var(--theme-radius);
  --bs-border-radius-sm:var(--theme-radius-sm);
  --bs-border-radius-lg:var(--theme-radius-lg);

  /* ── Font ── */
  --bs-body-font-family: IRANSans, 'Segoe UI', Tahoma, Arial, sans-serif;

  /* ── Tell browser this is a dark theme ── */
  color-scheme: dark;
}


/* ──────────────── Global Reset & Base ──────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--bs-body-font-family);
  background: var(--theme-bg);
  color: var(--theme-text);
  direction: rtl;
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
  isolation: isolate; /* stacking context for pseudo-elements */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ──────────────── Animated Background ──────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(8,145,178,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(34,211,238,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(103,232,249,0.04) 0%, transparent 80%);
  will-change: opacity;
  animation: bgPulse 12s ease-in-out infinite alternate;
  pointer-events: none;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(34,211,238,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

@keyframes bgPulse {
  0%   { opacity: 0.6; }
  50%  { opacity: 1; }
  100% { opacity: 0.7; }
}


/* ──────────────── Selection ──────────────── */
::selection {
  background: rgba(8,145,178,0.40);
  color: #fff;
}

::-moz-selection {
  background: rgba(8,145,178,0.40);
  color: #fff;
}


/* ──────────────── Scrollbar ──────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--theme-bg);
}
::-webkit-scrollbar-thumb {
  background: rgba(8,145,178,0.35);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(8,145,178,0.55);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(8,145,178,0.35) var(--theme-bg);
}


/* ──────────────── Global Focus Visible ──────────────── */
:focus-visible {
  outline: 2px solid var(--bs-secondary);
  outline-offset: 2px;
}

/* Remove default outline only when not using keyboard */
:focus:not(:focus-visible) {
  outline: none;
}


/* ──────────────── Typography ──────────────── */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--theme-text);
  font-weight: 700;
  margin-bottom: 0.5em;
}

h1, .h1 { font-size: 2rem; }
h2, .h2 { font-size: 1.65rem; }
h3, .h3 { font-size: 1.35rem; }
h4, .h4 { font-size: 1.15rem; }
h5, .h5 { font-size: 1rem; }
h6, .h6 { font-size: 0.88rem; }

p {
  color: var(--theme-text-muted);
  margin-bottom: 0.75rem;
}

a {
  color: var(--bs-secondary);
  text-decoration: none;
  transition: color var(--theme-transition), text-shadow var(--theme-transition);
}
a:hover {
  color: var(--theme-glow);
  text-shadow: 0 0 8px rgba(103,232,249,0.3);
}

small, .small { color: var(--theme-text-dim); }
.text-muted   { color: var(--theme-text-muted) !important; }
.lead         { color: var(--theme-text-muted); }
mark, .mark   { background: rgba(255,183,77,0.20); color: var(--bs-warning); padding: 0.1em 0.3em; border-radius: 3px; }


/* ──────────────── Glass Card (Universal) ──────────────── */
.card {
  background: var(--theme-surface) !important;
  backdrop-filter: blur(var(--theme-glass-blur)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--theme-glass-blur)) saturate(1.3);
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius) !important;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(103,232,249,0.06);
  color: var(--theme-text);
  transition: border-color var(--theme-transition), box-shadow var(--theme-transition);
}
.card:hover {
  border-color: var(--theme-border-hover) !important;
  box-shadow:
    0 8px 40px rgba(8,145,178,0.15),
    inset 0 1px 0 rgba(103,232,249,0.10);
}

.card-header {
  background: rgba(8,145,178,0.08) !important;
  border-bottom: 1px solid var(--theme-border) !important;
  color: var(--theme-text);
  font-weight: 600;
}

.card-footer {
  background: rgba(8,145,178,0.05) !important;
  border-top: 1px solid var(--theme-border) !important;
  color: var(--theme-text-muted);
}

.card-title { color: var(--theme-text); }
.card-text  { color: var(--theme-text-muted); }
.card-subtitle { color: var(--theme-text-dim) !important; }

.card-img-top {
  border-top-left-radius: var(--theme-radius) !important;
  border-top-right-radius: var(--theme-radius) !important;
}
.card-img-bottom {
  border-bottom-left-radius: var(--theme-radius) !important;
  border-bottom-right-radius: var(--theme-radius) !important;
}

.card-img-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(6,13,31,0.85) 100%);
  border-radius: var(--theme-radius) !important;
}

/* Card group */
.card-group > .card {
  border-radius: 0 !important;
}
.card-group > .card:first-child {
  border-top-right-radius: var(--theme-radius) !important;
  border-bottom-right-radius: var(--theme-radius) !important;
}
.card-group > .card:last-child {
  border-top-left-radius: var(--theme-radius) !important;
  border-bottom-left-radius: var(--theme-radius) !important;
}


/* ──────────────── Navbar ──────────────── */
.navbar {
  background: rgba(6,13,31,0.85) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--theme-border);
  box-shadow: 0 2px 24px rgba(0,0,0,0.3);
  padding: 0.5rem 1rem;
  z-index: 1030;
}

.navbar-brand {
  color: var(--theme-text) !important;
  font-weight: 700;
  font-size: 1.15rem;
  transition: color var(--theme-transition);
}
.navbar-brand:hover {
  color: var(--bs-secondary) !important;
}

.navbar-dark .navbar-nav .nav-link,
.navbar .navbar-nav .nav-link {
  color: var(--theme-text-muted) !important;
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--theme-radius-sm);
  transition: color var(--theme-transition), background var(--theme-transition);
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:hover {
  color: var(--theme-glow) !important;
  background: rgba(8,145,178,0.10);
}
.navbar-dark .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link.active,
.navbar-dark .navbar-nav .show > .nav-link,
.navbar .navbar-nav .show > .nav-link {
  color: var(--bs-secondary) !important;
  background: rgba(8,145,178,0.13);
}

/* Navbar icons */
.navbar .nav-link i,
.navbar .nav-link .bi,
.navbar .nav-link svg {
  font-size: 0.92rem;
  margin-inline-start: 0.4rem;
  vertical-align: middle;
}

.navbar-toggler {
  border-color: var(--theme-border) !important;
  padding: 0.3rem 0.55rem;
  transition: box-shadow var(--theme-transition);
}
.navbar-toggler:focus {
  box-shadow: var(--theme-focus-ring);
}
.navbar-toggler-icon {
  filter: invert(0.8) sepia(1) saturate(3) hue-rotate(160deg);
}

.navbar-text {
  color: var(--theme-text-muted) !important;
}


/* ──────────────── Buttons ──────────────── */
.btn {
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--theme-radius-sm);
  padding: 0.5rem 1.3rem;
  transition: all var(--theme-transition);
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Ripple base — removed transform to prevent jank in navbars */
.btn:active {
  transform: none;
}

/* Primary */
.btn-primary {
  background: linear-gradient(135deg, #0891b2, #22d3ee) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 18px rgba(8,145,178,0.30);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #0e7490, #0891b2) !important;
  box-shadow: 0 4px 24px rgba(8,145,178,0.45), 0 0 12px rgba(103,232,249,0.20);
  color: #fff !important;
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 10px rgba(8,145,178,0.25) !important;
}

/* Outline Primary */
.btn-outline-primary {
  color: var(--bs-secondary) !important;
  border-color: var(--theme-border) !important;
  background: transparent !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
  background: rgba(8,145,178,0.12) !important;
  border-color: var(--bs-primary) !important;
  color: var(--theme-glow) !important;
  box-shadow: 0 0 12px rgba(8,145,178,0.18);
}

/* Secondary */
.btn-secondary {
  background: rgba(8,145,178,0.12) !important;
  border: 1px solid var(--theme-border) !important;
  color: var(--theme-text-muted) !important;
}
.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: rgba(8,145,178,0.22) !important;
  border-color: var(--theme-border-hover) !important;
  color: var(--theme-text) !important;
}

/* Outline Secondary */
.btn-outline-secondary {
  color: var(--theme-text-muted) !important;
  border-color: var(--theme-border) !important;
  background: transparent !important;
}
.btn-outline-secondary:hover,
.btn-outline-secondary:focus-visible {
  background: rgba(34,211,238,0.08) !important;
  border-color: var(--bs-secondary) !important;
  color: var(--bs-secondary) !important;
}

/* Success */
.btn-success {
  background: linear-gradient(135deg, #26a69a, #2dd4bf) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(38,166,154,0.25);
}
.btn-success:hover,
.btn-success:focus-visible {
  background: linear-gradient(135deg, #1e8e83, #26a69a) !important;
  box-shadow: 0 4px 20px rgba(38,166,154,0.35);
  color: #fff !important;
  transform: translateY(-1px);
}
.btn-success:active { transform: translateY(0); }

/* Outline Success */
.btn-outline-success {
  color: var(--bs-success) !important;
  border-color: rgba(38,166,154,0.3) !important;
  background: transparent !important;
}
.btn-outline-success:hover,
.btn-outline-success:focus-visible {
  background: rgba(38,166,154,0.12) !important;
  border-color: var(--bs-success) !important;
  color: #2dd4bf !important;
}

/* Danger */
.btn-danger {
  background: linear-gradient(135deg, #ef5350, #f48fb1) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(239,83,80,0.25);
}
.btn-danger:hover,
.btn-danger:focus-visible {
  background: linear-gradient(135deg, #d32f2f, #ef5350) !important;
  box-shadow: 0 4px 20px rgba(239,83,80,0.35);
  color: #fff !important;
  transform: translateY(-1px);
}
.btn-danger:active { transform: translateY(0); }

/* Outline Danger */
.btn-outline-danger {
  color: var(--bs-danger) !important;
  border-color: rgba(239,83,80,0.3) !important;
  background: transparent !important;
}
.btn-outline-danger:hover,
.btn-outline-danger:focus-visible {
  background: rgba(239,83,80,0.12) !important;
  border-color: var(--bs-danger) !important;
  color: #f48fb1 !important;
}

/* Warning */
.btn-warning {
  background: linear-gradient(135deg, #ffb74d, #ffe082) !important;
  border: none !important;
  color: #1a1a2e !important;
  box-shadow: 0 4px 14px rgba(255,183,77,0.20);
}
.btn-warning:hover,
.btn-warning:focus-visible {
  background: linear-gradient(135deg, #ffa726, #ffb74d) !important;
  color: #1a1a2e !important;
  transform: translateY(-1px);
}
.btn-warning:active { transform: translateY(0); }

/* Outline Warning */
.btn-outline-warning {
  color: var(--bs-warning) !important;
  border-color: rgba(255,183,77,0.3) !important;
  background: transparent !important;
}
.btn-outline-warning:hover,
.btn-outline-warning:focus-visible {
  background: rgba(255,183,77,0.12) !important;
  border-color: var(--bs-warning) !important;
  color: #ffe082 !important;
}

/* Info */
.btn-info {
  background: linear-gradient(135deg, #22d3ee, #67e8f9) !important;
  border: none !important;
  color: #060d1f !important;
  box-shadow: 0 4px 14px rgba(34,211,238,0.20);
}
.btn-info:hover,
.btn-info:focus-visible {
  background: linear-gradient(135deg, #0891b2, #22d3ee) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
.btn-info:active { transform: translateY(0); }

/* Outline Info */
.btn-outline-info {
  color: var(--bs-info) !important;
  border-color: rgba(103,232,249,0.3) !important;
  background: transparent !important;
}
.btn-outline-info:hover,
.btn-outline-info:focus-visible {
  background: rgba(103,232,249,0.10) !important;
  border-color: var(--bs-info) !important;
  color: var(--theme-glow) !important;
}

/* Dark */
.btn-dark {
  background: rgba(6,13,31,0.8) !important;
  border: 1px solid var(--theme-border) !important;
  color: var(--theme-text) !important;
}
.btn-dark:hover,
.btn-dark:focus-visible {
  background: rgba(8,145,178,0.15) !important;
  border-color: var(--theme-border-hover) !important;
  color: var(--theme-text) !important;
}

/* Light */
.btn-light {
  background: rgba(224,247,250,0.08) !important;
  border: 1px solid rgba(224,247,250,0.12) !important;
  color: var(--theme-text) !important;
}
.btn-light:hover,
.btn-light:focus-visible {
  background: rgba(224,247,250,0.15) !important;
  border-color: rgba(224,247,250,0.22) !important;
  color: var(--theme-text) !important;
}

/* Link */
.btn-link {
  color: var(--bs-secondary) !important;
  text-decoration: none !important;
}
.btn-link:hover,
.btn-link:focus-visible {
  color: var(--theme-glow) !important;
  text-shadow: 0 0 8px rgba(103,232,249,0.25);
  text-decoration: none !important;
}

/* Button Sizes */
.btn-lg {
  padding: 0.65rem 1.8rem;
  font-size: 1rem;
  border-radius: var(--theme-radius);
}
.btn-sm {
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  border-radius: 6px;
}

/* Disabled State (all variants) */
.btn:disabled,
.btn.disabled {
  opacity: 0.45 !important;
  pointer-events: none;
  box-shadow: none !important;
  transform: none !important;
}

/* Button Group */
.btn-group > .btn {
  border-radius: 0 !important;
}
.btn-group > .btn:first-child {
  border-start-start-radius: var(--theme-radius-sm) !important;
  border-end-start-radius: var(--theme-radius-sm) !important;
}
.btn-group > .btn:last-child {
  border-start-end-radius: var(--theme-radius-sm) !important;
  border-end-end-radius: var(--theme-radius-sm) !important;
}


/* ──────────────── Form Controls ──────────────── */
.form-control,
.form-select {
  background-color: rgba(8,145,178,0.06) !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius-sm) !important;
  color: var(--theme-text) !important;
  font-size: 0.92rem;
  padding: 0.55rem 0.85rem;
  transition: all var(--theme-transition);
}
.form-control:focus,
.form-select:focus {
  background-color: rgba(8,145,178,0.10) !important;
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 0 3px rgba(8,145,178,0.15), 0 0 12px rgba(8,145,178,0.10) !important;
  color: var(--theme-text) !important;
  outline: none;
}
.form-control::placeholder {
  color: var(--theme-text-dim) !important;
}
.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
  background-color: rgba(8,145,178,0.03) !important;
  color: var(--theme-text-dim) !important;
  opacity: 0.6;
}

/* Form Select — custom dark arrow */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%2380deea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: left 0.75rem center !important; /* RTL: arrow on left */
  background-size: 16px 12px !important;
  padding-left: 2.25rem !important;
}
.form-select option {
  background: var(--theme-bg);
  color: var(--theme-text);
}

/* گزینه انتخاب شده */
.form-select option:checked {
  background: var(--theme-surface);
  color: var(--bs-secondary);
}

/* گزینه غیرفعال */
.form-select option:disabled {
  color: var(--theme-text-dim);
}
/* Plaintext form control */
.form-control-plaintext {
  color: var(--theme-text) !important;
  border-color: transparent !important;
  background: transparent !important;
}

/* Color input */
.form-control-color {
  background-color: rgba(8,145,178,0.06) !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius-sm) !important;
  padding: 0.25rem !important;
  height: 2.5rem;
  width: 3rem;
}
.form-control-color::-webkit-color-swatch-wrapper {
  padding: 0;
}
.form-control-color::-webkit-color-swatch {
  border: none;
  border-radius: 4px;
}

/* Floating Labels */
.form-floating > label {
  color: var(--theme-text-dim) !important;
}
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select ~ label {
  color: var(--bs-secondary) !important;
  opacity: 1;
}
.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  padding: 1rem 0.85rem;
}

/* Input Group */
.input-group-text {
  background: rgba(8,145,178,0.10) !important;
  border: 1px solid var(--theme-border) !important;
  color: var(--theme-text-muted) !important;
  font-size: 0.9rem;
}

/* Input Group — fix child border-radius */
.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
  border-start-start-radius: 0 !important;
  border-end-start-radius: 0 !important;
}
.input-group > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu) {
  border-start-end-radius: 0 !important;
  border-end-end-radius: 0 !important;
}

/* Form Labels */
.form-label,
.col-form-label {
  color: var(--theme-text-muted) !important;
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

/* Form Text / Help */
.form-text {
  color: var(--theme-text-dim) !important;
  font-size: 0.8rem;
}

/* Validation */
.form-control.is-invalid,
.was-validated .form-control:invalid,
.form-select.is-invalid,
.was-validated .form-select:invalid {
  border-color: var(--bs-danger) !important;
  box-shadow: 0 0 0 3px rgba(239,83,80,0.12) !important;
}
.form-control.is-valid,
.was-validated .form-control:valid,
.form-select.is-valid,
.was-validated .form-select:valid {
  border-color: var(--bs-success) !important;
  box-shadow: 0 0 0 3px rgba(38,166,154,0.12) !important;
}
.invalid-feedback { color: var(--bs-danger) !important; font-size: 0.82rem; }
.valid-feedback   { color: var(--bs-success) !important; font-size: 0.82rem; }


/* ──────────────── Checkboxes & Radios ──────────────── */
.form-check-input {
  background-color: rgba(8,145,178,0.10) !important;
  border: 1.5px solid var(--theme-border) !important;
  transition: all var(--theme-transition);
  cursor: pointer;
}
.form-check-input:checked {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
  box-shadow: 0 0 8px rgba(8,145,178,0.30);
}
.form-check-input:focus {
  box-shadow: 0 0 0 3px rgba(8,145,178,0.18) !important;
  border-color: var(--bs-primary) !important;
}
.form-check-input:indeterminate {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}
.form-check-label {
  color: var(--theme-text-muted);
  font-size: 0.88rem;
  cursor: pointer;
}

/* Switch */
.form-switch .form-check-input {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2380deea'/%3e%3c/svg%3e") !important;
}
.form-switch .form-check-input:checked {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
}


/* ──────────────── Range Input ──────────────── */
.form-range::-webkit-slider-runnable-track {
  background: rgba(8,145,178,0.18);
  border-radius: 10px;
  height: 6px;
}
.form-range::-moz-range-track {
  background: rgba(8,145,178,0.18);
  border-radius: 10px;
  height: 6px;
  border: none;
}
.form-range::-webkit-slider-thumb {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
  border: 2px solid var(--theme-bg);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  margin-top: -6px;
  box-shadow: 0 0 8px rgba(8,145,178,0.35);
  -webkit-appearance: none;
  transition: box-shadow var(--theme-transition);
}
.form-range::-moz-range-thumb {
  background: linear-gradient(135deg, #0891b2, #22d3ee);
  border: 2px solid var(--theme-bg);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  box-shadow: 0 0 8px rgba(8,145,178,0.35);
  transition: box-shadow var(--theme-transition);
}
.form-range::-webkit-slider-thumb:hover,
.form-range::-webkit-slider-thumb:active {
  box-shadow: 0 0 14px rgba(8,145,178,0.55), 0 0 0 4px rgba(8,145,178,0.15);
}
.form-range::-moz-range-thumb:hover,
.form-range::-moz-range-thumb:active {
  box-shadow: 0 0 14px rgba(8,145,178,0.55), 0 0 0 4px rgba(8,145,178,0.15);
}
.form-range:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(8,145,178,0.20);
}
.form-range:disabled::-webkit-slider-thumb {
  opacity: 0.5;
}
.form-range:disabled::-moz-range-thumb {
  opacity: 0.5;
}


/* ──────────────── Tables ──────────────── */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--theme-text);
  --bs-table-border-color: var(--theme-border);
  --bs-table-striped-bg: rgba(8,145,178,0.04);
  --bs-table-striped-color: var(--theme-text);
  --bs-table-hover-bg: rgba(8,145,178,0.08);
  --bs-table-hover-color: var(--theme-text);
  --bs-table-active-bg: rgba(8,145,178,0.12);
  --bs-table-active-color: var(--theme-text);
  font-size: 0.9rem;
  color: var(--theme-text);
  border-color: var(--theme-border);
}

.table > thead {
  background: rgba(8,145,178,0.10);
}
.table > thead th {
  color: var(--bs-secondary) !important;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid rgba(34,211,238,0.18) !important;
  padding: 0.7rem 0.75rem;
  white-space: nowrap;
}
.table > tbody td {
  padding: 0.6rem 0.75rem;
  vertical-align: middle;
  border-bottom-color: var(--theme-border);
}
.table > tbody tr {
  transition: background var(--theme-transition);
}
.table-hover > tbody > tr:hover {
  --bs-table-hover-bg: rgba(8,145,178,0.08);
  background-color: rgba(8,145,178,0.08) !important;
}

/* Dark Table Variant */
.table-dark {
  --bs-table-bg: rgba(6,13,31,0.6);
  --bs-table-border-color: var(--theme-border);
  --bs-table-color: var(--theme-text);
}

/* Responsive table wrapper */
.table-responsive {
  border-radius: var(--theme-radius-sm);
}
.table-responsive::-webkit-scrollbar {
  height: 4px;
}


/* ──────────────── Alerts ──────────────── */
.alert {
  border-radius: var(--theme-radius-sm) !important;
  font-size: 0.9rem;
  border: 1px solid;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.alert-primary {
  background: rgba(8,145,178,0.12) !important;
  border-color: rgba(8,145,178,0.25) !important;
  color: var(--theme-glow) !important;
}
.alert-secondary {
  background: rgba(34,211,238,0.08) !important;
  border-color: rgba(34,211,238,0.18) !important;
  color: var(--theme-text-muted) !important;
}
.alert-success {
  background: rgba(38,166,154,0.12) !important;
  border-color: rgba(38,166,154,0.25) !important;
  color: #2dd4bf !important;
}
.alert-danger {
  background: rgba(239,83,80,0.12) !important;
  border-color: rgba(239,83,80,0.25) !important;
  color: #f48fb1 !important;
}
.alert-warning {
  background: rgba(255,183,77,0.12) !important;
  border-color: rgba(255,183,77,0.25) !important;
  color: #ffe082 !important;
}
.alert-info {
  background: rgba(103,232,249,0.10) !important;
  border-color: rgba(103,232,249,0.20) !important;
  color: var(--theme-glow) !important;
}
.alert-dark {
  background: rgba(6,13,31,0.6) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text) !important;
}
.alert-light {
  background: rgba(224,247,250,0.06) !important;
  border-color: rgba(224,247,250,0.12) !important;
  color: var(--theme-text) !important;
}

/* Alert links */
.alert a,
.alert .alert-link {
  font-weight: 700;
  text-decoration: underline;
}
.alert-primary .alert-link  { color: #fff !important; }
.alert-success .alert-link  { color: #5eead4 !important; }
.alert-danger .alert-link   { color: #fca5a5 !important; }
.alert-warning .alert-link  { color: #fff !important; }

/* Alert dismiss */
.alert .btn-close {
  filter: invert(0.8) sepia(1) saturate(2) hue-rotate(160deg);
}


/* ──────────────── Badges ──────────────── */
.badge {
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
  border-radius: 6px;
  letter-spacing: 0.3px;
}
.badge.rounded-pill {
  border-radius: 50rem;
}

.badge.bg-primary   { background: rgba(8,145,178,0.25) !important; color: var(--theme-glow) !important; }
.badge.bg-secondary { background: rgba(34,211,238,0.15) !important; color: var(--bs-secondary) !important; }
.badge.bg-success   { background: rgba(38,166,154,0.25) !important; color: #2dd4bf !important; }
.badge.bg-danger    { background: rgba(239,83,80,0.25) !important; color: #f48fb1 !important; }
.badge.bg-warning   { background: rgba(255,183,77,0.25) !important; color: #ffe082 !important; }
.badge.bg-info      { background: rgba(103,232,249,0.18) !important; color: var(--theme-glow) !important; }
.badge.bg-dark      { background: rgba(6,13,31,0.7) !important; color: var(--theme-text) !important; }
.badge.bg-light     { background: rgba(224,247,250,0.08) !important; color: var(--theme-text) !important; }


/* ──────────────── Background Utilities Override ──────────────── */
/* Non-badge bg classes — slightly stronger for visibility */
.bg-primary:not(.badge)   { background: rgba(8,145,178,0.18) !important; color: var(--theme-glow) !important; }
.bg-secondary:not(.badge) { background: rgba(34,211,238,0.12) !important; color: var(--bs-secondary) !important; }
.bg-success:not(.badge)   { background: rgba(38,166,154,0.18) !important; color: #2dd4bf !important; }
.bg-danger:not(.badge)    { background: rgba(239,83,80,0.18) !important; color: #f48fb1 !important; }
.bg-warning:not(.badge)   { background: rgba(255,183,77,0.18) !important; color: #ffe082 !important; }
.bg-info:not(.badge)      { background: rgba(103,232,249,0.14) !important; color: var(--theme-glow) !important; }
.bg-dark:not(.badge)      { background: rgba(6,13,31,0.7) !important; color: var(--theme-text) !important; }
.bg-light:not(.badge)     { background: rgba(224,247,250,0.06) !important; color: var(--theme-text) !important; }
.bg-body          { background: var(--theme-bg) !important; }
.bg-body-secondary { background: var(--theme-bg-alt) !important; }
.bg-transparent   { background: transparent !important; }
.bg-body-tertiary { background: var(--theme-surface) !important; }


/* ──────────────── Modals ──────────────── */
.modal-content {
  background: var(--theme-bg-alt) !important;
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius-lg) !important;
  box-shadow: 0 16px 64px rgba(0,0,0,0.5), 0 0 30px rgba(8,145,178,0.08);
  color: var(--theme-text);
}
.modal-header {
  border-bottom: 1px solid var(--theme-border) !important;
  padding: 1rem 1.25rem;
}
.modal-header .modal-title {
  color: var(--theme-text);
  font-weight: 700;
}
.modal-header .btn-close {
  filter: invert(0.8) sepia(1) saturate(2) hue-rotate(160deg);
  opacity: 0.6;
  transition: opacity var(--theme-transition);
}
.modal-header .btn-close:hover {
  opacity: 1;
}
.modal-body {
  padding: 1.25rem;
  color: var(--theme-text-muted);
}
.modal-footer {
  border-top: 1px solid var(--theme-border) !important;
  padding: 0.85rem 1.25rem;
}

.modal-backdrop {
  background: #020810 !important;
}
.modal-backdrop.show {
  opacity: 0.75 !important;
}

/* Native dialog backdrop */
.modal::backdrop {
  background: rgba(2,8,16,0.75);
}


/* ──────────────── Dropdowns ──────────────── */
.dropdown-menu {
  background: var(--theme-bg-alt) !important;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius) !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  padding: 0.4rem;
  animation: fadeIn 0.15s ease-out;
}
.dropdown-item {
  color: var(--theme-text-muted) !important;
  font-size: 0.9rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  transition: all var(--theme-transition);
}
.dropdown-item:hover,
.dropdown-item:focus {
  background: rgba(8,145,178,0.12) !important;
  color: var(--theme-text) !important;
}
.dropdown-item.active,
.dropdown-item:active {
  background: rgba(8,145,178,0.20) !important;
  color: var(--bs-secondary) !important;
}
.dropdown-item.disabled,
.dropdown-item:disabled {
  color: var(--theme-text-dim) !important;
  opacity: 0.5;
}
.dropdown-divider {
  border-color: var(--theme-border) !important;
}
.dropdown-header {
  color: var(--theme-text-dim) !important;
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  opacity: 0.6;
  padding: 0.35rem 0.85rem;
}
.dropdown-item-text {
  color: var(--theme-text-muted) !important;
}

/* Dropdown icons */
.dropdown-item i,
.dropdown-item .bi,
.dropdown-item svg {
  font-size: 0.88rem;
  margin-inline-start: 0.4rem;
  vertical-align: middle;
  opacity: 0.7;
}


/* ──────────────── Accordion ──────────────── */
.accordion {
  --bs-accordion-bg: var(--theme-surface);
  --bs-accordion-border-color: var(--theme-border);
  --bs-accordion-color: var(--theme-text);
}
.accordion-item {
  background: var(--theme-surface) !important;
  border: 1px solid var(--theme-border) !important;
  color: var(--theme-text);
}
/* Fix accordion border-radius */
.accordion-item:first-of-type {
  border-top-left-radius: var(--theme-radius-sm) !important;
  border-top-right-radius: var(--theme-radius-sm) !important;
}
.accordion-item:last-of-type {
  border-bottom-left-radius: var(--theme-radius-sm) !important;
  border-bottom-right-radius: var(--theme-radius-sm) !important;
}
.accordion-item:first-of-type .accordion-button {
  border-top-left-radius: var(--theme-radius-sm) !important;
  border-top-right-radius: var(--theme-radius-sm) !important;
}
.accordion-item:last-of-type .accordion-button.collapsed {
  border-bottom-left-radius: var(--theme-radius-sm) !important;
  border-bottom-right-radius: var(--theme-radius-sm) !important;
}

.accordion-button {
  background: rgba(8,145,178,0.06) !important;
  color: var(--theme-text) !important;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: none !important;
  transition: background var(--theme-transition), color var(--theme-transition);
}
.accordion-button:not(.collapsed) {
  background: rgba(8,145,178,0.12) !important;
  color: var(--bs-secondary) !important;
  box-shadow: none !important;
}
.accordion-button::after {
  filter: invert(0.7) sepia(1) saturate(3) hue-rotate(160deg);
}
.accordion-button:focus {
  box-shadow: 0 0 0 3px rgba(8,145,178,0.15) !important;
  border-color: var(--bs-primary);
}
.accordion-body {
  background: rgba(8,145,178,0.03);
  color: var(--theme-text-muted);
  font-size: 0.9rem;
}
/* Flush variant */
.accordion-flush .accordion-item {
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
}


/* ──────────────── List Group ──────────────── */
.list-group-item {
  background: var(--theme-surface) !important;
  border: 1px solid var(--theme-border) !important;
  color: var(--theme-text) !important;
  font-size: 0.9rem;
  padding: 0.65rem 1rem;
  transition: all var(--theme-transition);
}
.list-group-item:hover {
  background: var(--theme-surface-hover) !important;
}
.list-group-item.active {
  background: rgba(8,145,178,0.18) !important;
  border-color: var(--bs-primary) !important;
  color: var(--bs-secondary) !important;
}
.list-group-item.disabled {
  color: var(--theme-text-dim) !important;
  opacity: 0.5;
}
.list-group-item-action:hover {
  background: rgba(8,145,178,0.10) !important;
  color: var(--theme-text) !important;
}
.list-group-item-action:active {
  background: rgba(8,145,178,0.16) !important;
  color: var(--theme-text) !important;
}

/* Flush variant */
.list-group-flush .list-group-item {
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0 !important;
}

/* Contextual variants */
.list-group-item-primary  { background: rgba(8,145,178,0.12) !important; color: var(--theme-glow) !important; }
.list-group-item-success  { background: rgba(38,166,154,0.12) !important; color: #2dd4bf !important; }
.list-group-item-danger   { background: rgba(239,83,80,0.12) !important; color: #f48fb1 !important; }
.list-group-item-warning  { background: rgba(255,183,77,0.12) !important; color: #ffe082 !important; }
.list-group-item-info     { background: rgba(103,232,249,0.10) !important; color: var(--theme-glow) !important; }


/* ──────────────── Breadcrumb ──────────────── */
.breadcrumb {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}
.breadcrumb-item a {
  color: var(--bs-secondary);
  transition: color var(--theme-transition);
}
.breadcrumb-item a:hover {
  color: var(--theme-glow);
}
.breadcrumb-item.active {
  color: var(--theme-text-dim);
}
.breadcrumb-item + .breadcrumb-item::before {
  color: var(--theme-text-dim);
}


/* ──────────────── Pagination ──────────────── */
.pagination {
  gap: 4px;
}
.page-link {
  background: var(--theme-surface) !important;
  border: 1px solid var(--theme-border) !important;
  color: var(--theme-text-muted) !important;
  font-size: 0.88rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--theme-radius-sm) !important;
  transition: all var(--theme-transition);
}
.page-link:hover {
  background: rgba(8,145,178,0.12) !important;
  border-color: var(--theme-border-hover) !important;
  color: var(--theme-text) !important;
}
.page-link:focus {
  box-shadow: var(--theme-focus-ring) !important;
}
.page-item.active .page-link {
  background: linear-gradient(135deg, #0891b2, #22d3ee) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(8,145,178,0.30);
}
.page-item.disabled .page-link {
  background: rgba(8,145,178,0.03) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text-dim) !important;
  opacity: 0.5;
}


/* ──────────────── Tabs & Pills ──────────────── */
.nav-tabs {
  border-bottom: 2px solid var(--theme-border) !important;
}
.nav-tabs .nav-link {
  color: var(--theme-text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  padding: 0.55rem 1rem;
  margin-bottom: -2px;
  transition: color var(--theme-transition), border-color var(--theme-transition);
  border-radius: 0 !important;
  background: transparent !important;
}
.nav-tabs .nav-link:hover {
  color: var(--theme-text) !important;
  border-bottom-color: rgba(8,145,178,0.4) !important;
  background: transparent !important;
  isolation: auto;
}
.nav-tabs .nav-link.active {
  color: var(--bs-secondary) !important;
  background: transparent !important;
  border-bottom-color: var(--bs-secondary) !important;
  box-shadow: 0 2px 8px rgba(34,211,238,0.15);
}
.nav-tabs .nav-link.disabled {
  color: var(--theme-text-dim) !important;
  opacity: 0.5;
}

.nav-pills .nav-link {
  color: var(--theme-text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--theme-radius-sm) !important;
  padding: 0.45rem 1rem;
  transition: all var(--theme-transition);
}
.nav-pills .nav-link:hover {
  background: rgba(8,145,178,0.10) !important;
  color: var(--theme-text) !important;
}
.nav-pills .nav-link.active {
  background: linear-gradient(135deg, #0891b2, #22d3ee) !important;
  color: #fff !important;
  box-shadow: 0 2px 12px rgba(8,145,178,0.25);
}
.nav-pills .nav-link.disabled {
  color: var(--theme-text-dim) !important;
  opacity: 0.5;
}

/* Underline nav variant */
.nav-underline .nav-link {
  color: var(--theme-text-muted) !important;
  border-bottom: 2px solid transparent;
  transition: color var(--theme-transition), border-color var(--theme-transition);
}
.nav-underline .nav-link:hover {
  color: var(--theme-text) !important;
  border-bottom-color: rgba(8,145,178,0.4);
}
.nav-underline .nav-link.active {
  color: var(--bs-secondary) !important;
  border-bottom-color: var(--bs-secondary);
}


/* ──────────────── Progress Bar ──────────────── */
.progress {
  background: rgba(8,145,178,0.10) !important;
  border-radius: 20px !important;
  height: 8px;
  overflow: hidden;
}
.progress-bar {
  background: linear-gradient(90deg, #0891b2, #22d3ee, #67e8f9) !important;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(8,145,178,0.35);
  transition: width 0.6s ease;
}
.progress-bar-striped {
  background-image: linear-gradient(
    45deg,
    rgba(255,255,255,0.08) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.08) 75%,
    transparent 75%,
    transparent
  ) !important;
}

/* Stacked progress */
.progress-stacked {
  background: rgba(8,145,178,0.10) !important;
  border-radius: 20px !important;
}


/* ──────────────── Spinners ──────────────── */
.spinner-border {
  color: var(--bs-secondary);
}
.spinner-grow {
  color: var(--bs-secondary);
}
.spinner-border-sm,
.spinner-grow-sm {
  width: 1rem;
  height: 1rem;
}


/* ──────────────── Tooltips ──────────────── */
.tooltip-inner {
  background: var(--theme-bg-alt) !important;
  border: 1px solid var(--theme-border);
  color: var(--theme-text) !important;
  font-size: 0.82rem;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  max-width: 240px;
}

/* Tooltip arrows — all directions */
.bs-tooltip-top .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="top"] .tooltip-arrow::before {
  border-top-color: var(--theme-bg-alt) !important;
}
.bs-tooltip-bottom .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="bottom"] .tooltip-arrow::before {
  border-bottom-color: var(--theme-bg-alt) !important;
}
.bs-tooltip-start .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="left"] .tooltip-arrow::before {
  border-left-color: var(--theme-bg-alt) !important;
}
.bs-tooltip-end .tooltip-arrow::before,
.bs-tooltip-auto[data-popper-placement^="right"] .tooltip-arrow::before {
  border-right-color: var(--theme-bg-alt) !important;
}


/* ──────────────── Popovers ──────────────── */
.popover {
  background: var(--theme-bg-alt) !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  color: var(--theme-text);
}
.popover-header {
  background: rgba(8,145,178,0.10) !important;
  border-bottom: 1px solid var(--theme-border) !important;
  color: var(--theme-text) !important;
  font-weight: 600;
  font-size: 0.9rem;
}
.popover-body {
  color: var(--theme-text-muted) !important;
  font-size: 0.88rem;
}

/* Popover arrows — all directions */
.bs-popover-top > .popover-arrow::before,
.bs-popover-auto[data-popper-placement^="top"] > .popover-arrow::before {
  border-top-color: var(--theme-border) !important;
}
.bs-popover-top > .popover-arrow::after,
.bs-popover-auto[data-popper-placement^="top"] > .popover-arrow::after {
  border-top-color: var(--theme-bg-alt) !important;
}
.bs-popover-bottom > .popover-arrow::before,
.bs-popover-auto[data-popper-placement^="bottom"] > .popover-arrow::before {
  border-bottom-color: var(--theme-border) !important;
}
.bs-popover-bottom > .popover-arrow::after,
.bs-popover-auto[data-popper-placement^="bottom"] > .popover-arrow::after {
  border-bottom-color: rgba(8,145,178,0.10) !important;
}
.bs-popover-start > .popover-arrow::before,
.bs-popover-auto[data-popper-placement^="left"] > .popover-arrow::before {
  border-left-color: var(--theme-border) !important;
}
.bs-popover-start > .popover-arrow::after,
.bs-popover-auto[data-popper-placement^="left"] > .popover-arrow::after {
  border-left-color: var(--theme-bg-alt) !important;
}
.bs-popover-end > .popover-arrow::before,
.bs-popover-auto[data-popper-placement^="right"] > .popover-arrow::before {
  border-right-color: var(--theme-border) !important;
}
.bs-popover-end > .popover-arrow::after,
.bs-popover-auto[data-popper-placement^="right"] > .popover-arrow::after {
  border-right-color: var(--theme-bg-alt) !important;
}


/* ──────────────── Toasts ──────────────── */
.toast {
  background: var(--theme-bg-alt) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  color: var(--theme-text);
}
.toast-header {
  background: rgba(8,145,178,0.08) !important;
  border-bottom: 1px solid var(--theme-border) !important;
  color: var(--theme-text) !important;
}
.toast-header .btn-close {
  filter: invert(0.8) sepia(1) saturate(2) hue-rotate(160deg);
}
.toast-body {
  color: var(--theme-text-muted);
  font-size: 0.9rem;
}
.toast-container {
  z-index: 1090;
}


/* ──────────────── Offcanvas ──────────────── */
.offcanvas,
.offcanvas-sm,
.offcanvas-md,
.offcanvas-lg,
.offcanvas-xl,
.offcanvas-xxl {
  background: var(--theme-bg-alt) !important;
  border-color: var(--theme-border) !important;
  color: var(--theme-text);
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
.offcanvas-header {
  border-bottom: 1px solid var(--theme-border);
}
.offcanvas-title {
  color: var(--theme-text);
  font-weight: 700;
}
.offcanvas-header .btn-close {
  filter: invert(0.8) sepia(1) saturate(2) hue-rotate(160deg);
}
.offcanvas-body {
  color: var(--theme-text-muted);
}
.offcanvas-backdrop {
  background: #020810 !important;
}
.offcanvas-backdrop.show {
  opacity: 0.7 !important;
}


/* ──────────────── Carousel ──────────────── */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.carousel-control-prev,
.carousel-control-next {
  opacity: 0.6;
  transition: opacity var(--theme-transition);
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}
.carousel-indicators [data-bs-target] {
  background-color: var(--theme-text-dim);
  border-radius: 50%;
  width: 10px;
  height: 10px;
  border: none;
  opacity: 0.5;
  transition: all var(--theme-transition);
}
.carousel-indicators .active {
  background-color: var(--bs-secondary);
  opacity: 1;
  box-shadow: 0 0 8px rgba(34,211,238,0.4);
}
.carousel-caption {
  background: rgba(6,13,31,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--theme-radius);
  padding: 1rem 1.5rem;
}
.carousel-caption h5 { color: var(--theme-text); }
.carousel-caption p  { color: var(--theme-text-muted); }


/* ──────────────── Close Button ──────────────── */
.btn-close {
  filter: invert(0.7) sepia(1) saturate(2) hue-rotate(160deg);
  opacity: 0.6;
  transition: opacity var(--theme-transition);
}
.btn-close:hover {
  opacity: 1;
}
.btn-close:focus {
  box-shadow: var(--theme-focus-ring) !important;
}


/* ──────────────── Placeholder / Skeleton ──────────────── */
.placeholder {
  background: rgba(8,145,178,0.12) !important;
  border-radius: 4px;
}
.placeholder-glow .placeholder {
  animation: placeholderGlow 1.5s ease-in-out infinite;
}
.placeholder-wave {
  mask-image: linear-gradient(
    130deg,
    #000 55%,
    rgba(0,0,0,0.6) 75%,
    #000 95%
  ) !important;
  -webkit-mask-image: linear-gradient(
    130deg,
    #000 55%,
    rgba(0,0,0,0.6) 75%,
    #000 95%
  ) !important;
}
@keyframes placeholderGlow {
  0%, 100% { opacity: 0.3; }
  50%      { opacity: 0.6; }
}


/* ──────────────── Figures ──────────────── */
.figure-caption {
  color: var(--theme-text-dim);
  font-size: 0.82rem;
}


/* ──────────────── Blockquote ──────────────── */
.blockquote {
  border-inline-end: 3px solid var(--bs-primary); /* RTL-aware */
  padding-inline-end: 1rem;
  color: var(--theme-text);
  font-size: 1rem;
}
.blockquote-footer {
  color: var(--theme-text-dim);
}


/* ──────────────── HR / Divider ──────────────── */
hr {
  border-color: var(--theme-border);
  opacity: 0.5;
}


/* ──────────────── Code & Pre ──────────────── */
code {
  background: rgba(8,145,178,0.10);
  color: var(--theme-glow);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
}
pre {
  background: rgba(6,13,31,0.7);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  padding: 1rem;
  color: var(--theme-text-muted);
  font-size: 0.88rem;
  overflow-x: auto;
  direction: ltr; /* code is always LTR */
  text-align: left;
}
pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}
kbd {
  background: rgba(8,145,178,0.18);
  color: var(--theme-text);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.85em;
  border: 1px solid var(--theme-border);
}
var {
  color: var(--bs-secondary);
  font-style: italic;
}
samp {
  color: var(--theme-text-muted);
}


/* ──────────────── Images ──────────────── */
.img-thumbnail {
  background: var(--theme-surface) !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: var(--theme-radius-sm) !important;
  padding: 0.25rem;
}


/* ──────────────── Shadows (Utility Override) ──────────────── */
.shadow-sm { box-shadow: 0 2px 8px rgba(0,0,0,0.25) !important; }
.shadow    { box-shadow: 0 4px 16px rgba(0,0,0,0.35) !important; }
.shadow-lg { box-shadow: 0 8px 32px rgba(0,0,0,0.45) !important; }
.shadow-none { box-shadow: none !important; }


/* ──────────────── Border Utilities Override ──────────────── */
.border        { border-color: var(--theme-border) !important; }
.border-top    { border-top-color: var(--theme-border) !important; }
.border-bottom { border-bottom-color: var(--theme-border) !important; }
.border-start  { border-inline-start-color: var(--theme-border) !important; }
.border-end    { border-inline-end-color: var(--theme-border) !important; }
.border-primary   { border-color: var(--bs-primary) !important; }
.border-secondary { border-color: rgba(34,211,238,0.3) !important; }
.border-success   { border-color: rgba(38,166,154,0.3) !important; }
.border-danger    { border-color: rgba(239,83,80,0.3) !important; }
.border-warning   { border-color: rgba(255,183,77,0.3) !important; }
.border-info      { border-color: rgba(103,232,249,0.3) !important; }
.border-light     { border-color: rgba(224,247,250,0.12) !important; }
.border-dark      { border-color: var(--theme-border) !important; }
.border-white     { border-color: rgba(255,255,255,0.2) !important; }


/* ──────────────── Text Color Utilities Override ──────────────── */
.text-primary    { color: var(--bs-primary) !important; }
.text-secondary  { color: var(--bs-secondary) !important; }
.text-success    { color: var(--bs-success) !important; }
.text-danger     { color: var(--bs-danger) !important; }
.text-warning    { color: var(--bs-warning) !important; }
.text-info       { color: var(--bs-info) !important; }
.text-light      { color: var(--bs-light) !important; }
.text-dark       { color: var(--theme-text) !important; }
.text-body       { color: var(--theme-text) !important; }
.text-body-secondary { color: var(--theme-text-muted) !important; }
.text-body-tertiary  { color: var(--theme-text-dim) !important; }
.text-body-emphasis  { color: #fff !important; }
.text-white      { color: #fff !important; }
.text-black-50   { color: var(--theme-text-dim) !important; }
.text-white-50   { color: var(--theme-text-dim) !important; }


/* ──────────────── Custom Utility: Glow Effects ──────────────── */
.glow-primary {
  box-shadow: 0 0 15px rgba(8,145,178,0.30), 0 0 30px rgba(8,145,178,0.10);
}
.glow-secondary {
  box-shadow: 0 0 15px rgba(34,211,238,0.25), 0 0 30px rgba(34,211,238,0.08);
}
.glow-success {
  box-shadow: 0 0 15px rgba(38,166,154,0.25), 0 0 30px rgba(38,166,154,0.08);
}
.glow-danger {
  box-shadow: 0 0 15px rgba(239,83,80,0.25), 0 0 30px rgba(239,83,80,0.08);
}
.glow-text {
  text-shadow: 0 0 10px rgba(103,232,249,0.35), 0 0 20px rgba(103,232,249,0.15);
}


/* ──────────────── Custom Utility: Glass Surface ──────────────── */
.glass {
  background: var(--theme-surface);
  backdrop-filter: blur(var(--theme-glass-blur)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--theme-glass-blur)) saturate(1.3);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
}
.glass-strong {
  background: rgba(8,145,178,0.12);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--theme-border-hover);
  border-radius: var(--theme-radius);
}


/* ──────────────── Custom Utility: Gradient Text ──────────────── */
.gradient-text {
  background: linear-gradient(135deg, #0891b2, #22d3ee, #67e8f9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ──────────────── Custom Utility: Divider with Glow ──────────────── */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34,211,238,0.3), transparent);
  border: none;
  margin: 1rem 0;
}


/* ──────────────── Custom Utility: Social Buttons ──────────────── */
.btn-social {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--theme-radius-sm);
  background: rgba(8,145,178,0.08);
  border: 1px solid var(--theme-border);
  color: var(--theme-text-muted);
  font-size: 1rem;
  transition: all var(--theme-transition);
  padding: 0;
}
.btn-social:hover {
  background: rgba(8,145,178,0.18);
  border-color: var(--theme-border-hover);
  color: var(--bs-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(8,145,178,0.20);
}


/* ──────────────── Custom Utility: OTP Input ──────────────── */
.otp-input {
  width: 48px;
  height: 52px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--bs-secondary);
  background: rgba(8,145,178,0.06);
  border: 1.5px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  transition: all var(--theme-transition);
  caret-color: var(--bs-secondary);
}
.otp-input:focus {
  border-color: var(--bs-primary);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.18), 0 0 12px rgba(8,145,178,0.12);
  background: rgba(8,145,178,0.10);
  outline: none;
}


/* ──────────────── Custom Utility: Auth Card (ادامه) ──────────────── */
.auth-card {
  background: var(--theme-surface);
  backdrop-filter: blur(var(--theme-glass-blur)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--theme-glass-blur)) saturate(1.3);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-lg);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(103,232,249,0.06);
  padding: 1.5rem;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}
.auth-card .auth-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-card .auth-card-header h1,
.auth-card .auth-card-header h2,
.auth-card .auth-card-header h3 {
  color: var(--theme-text);
  margin-bottom: 0.5rem;
}
.auth-card .auth-card-header p {
  color: var(--theme-text-dim);
  font-size: 0.88rem;
}


/* ──────────────── Custom Utility: Icon Circle ──────────────── */
.icon-circle {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(8,145,178,0.12);
  border: 1px solid var(--theme-border);
  color: var(--bs-secondary);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--theme-transition);
}
.icon-circle:hover {
  background: rgba(8,145,178,0.20);
  border-color: var(--theme-border-hover);
}
.icon-circle-lg {
  width: 64px;
  height: 64px;
  font-size: 1.4rem;
}
.icon-circle-sm {
  width: 36px;
  height: 36px;
  font-size: 0.9rem;
}
.icon-circle-xs {
  width: 28px;
  height: 28px;
  font-size: 0.75rem;
}

/* Contextual icon circles */
.icon-circle-primary   { background: rgba(8,145,178,0.15); border-color: rgba(8,145,178,0.30); color: var(--bs-primary); }
.icon-circle-success   { background: rgba(38,166,154,0.15); border-color: rgba(38,166,154,0.30); color: var(--bs-success); }
.icon-circle-danger    { background: rgba(239,83,80,0.15); border-color: rgba(239,83,80,0.30); color: var(--bs-danger); }
.icon-circle-warning   { background: rgba(255,183,77,0.15); border-color: rgba(255,183,77,0.30); color: var(--bs-warning); }
.icon-circle-info      { background: rgba(103,232,249,0.12); border-color: rgba(103,232,249,0.25); color: var(--bs-info); }


/* ──────────────── Custom Utility: Status Dot ──────────────── */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.status-dot-lg {
  width: 12px;
  height: 12px;
}
.status-dot-success {
  background: var(--bs-success);
  box-shadow: 0 0 6px rgba(38,166,154,0.5);
}
.status-dot-danger {
  background: var(--bs-danger);
  box-shadow: 0 0 6px rgba(239,83,80,0.5);
}
.status-dot-warning {
  background: var(--bs-warning);
  box-shadow: 0 0 6px rgba(255,183,77,0.5);
}
.status-dot-primary {
  background: var(--bs-primary);
  box-shadow: 0 0 6px rgba(8,145,178,0.5);
}
.status-dot-info {
  background: var(--bs-info);
  box-shadow: 0 0 6px rgba(103,232,249,0.5);
}

/* Animated pulsing dot */
.status-dot-pulse {
  position: relative;
}
.status-dot-pulse::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.5;
  animation: statusPulse 1.5s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%      { transform: scale(1.8); opacity: 0; }
}


/* ──────────────── Custom Utility: Stat Card ──────────────── */
.stat-card {
  background: var(--theme-surface);
  backdrop-filter: blur(var(--theme-glass-blur));
  -webkit-backdrop-filter: blur(var(--theme-glass-blur));
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius);
  padding: 1.25rem;
  transition: all var(--theme-transition);
}
.stat-card:hover {
  border-color: var(--theme-border-hover);
  box-shadow: 0 8px 32px rgba(8,145,178,0.12);
}
.stat-card .stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--theme-text);
  line-height: 1.2;
}
.stat-card .stat-label {
  font-size: 0.82rem;
  color: var(--theme-text-dim);
  margin-top: 0.25rem;
}
.stat-card .stat-change {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.35rem;
}
.stat-card .stat-change.up   { color: var(--bs-success); }
.stat-card .stat-change.down { color: var(--bs-danger); }


/* ──────────────── Custom Utility: Empty State ──────────────── */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--theme-text-dim);
}
.empty-state i,
.empty-state .bi,
.empty-state svg {
  font-size: 3rem;
  opacity: 0.4;
  margin-bottom: 1rem;
  display: block;
  color: var(--theme-text-dim);
}
.empty-state h5 {
  color: var(--theme-text-muted);
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--theme-text-dim);
  font-size: 0.88rem;
  max-width: 360px;
  margin: 0 auto;
}


/* ──────────────── Custom Utility: Sidebar Navigation ──────────────── */
.sidebar-nav .nav-link {
  color: var(--theme-text-muted) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--theme-radius-sm);
  transition: all var(--theme-transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-nav .nav-link:hover {
  color: var(--theme-text) !important;
  background: rgba(8,145,178,0.10);
}
.sidebar-nav .nav-link.active {
  color: var(--bs-secondary) !important;
  background: rgba(8,145,178,0.15);
  box-shadow: inset 3px 0 0 var(--bs-secondary); /* RTL: right edge indicator */
}
.sidebar-nav .nav-link i,
.sidebar-nav .nav-link .bi,
.sidebar-nav .nav-link svg {
  font-size: 0.92rem;
  opacity: 0.7;
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
}
.sidebar-nav .nav-link.active i,
.sidebar-nav .nav-link.active .bi,
.sidebar-nav .nav-link.active svg {
  opacity: 1;
}

/* Sidebar heading / label */
.sidebar-heading,
.nav-header,
.sidebar-nav .nav-header {
  font-size: 0.72rem !important;
  opacity: 0.45 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--theme-text-dim) !important;
  padding: 0.75rem 0.85rem 0.35rem;
  margin-bottom: 0;
  user-select: none;
}


/* ──────────────── Custom Utility: Data Label ──────────────── */
.data-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--theme-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}
.data-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--theme-text);
}


/* ──────────────── Custom Utility: Tag / Chip ──────────────── */
.tag,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 50rem;
  background: rgba(8,145,178,0.12);
  border: 1px solid var(--theme-border);
  color: var(--theme-text-muted);
  transition: all var(--theme-transition);
  white-space: nowrap;
}
.tag:hover,
.chip:hover {
  background: rgba(8,145,178,0.20);
  border-color: var(--theme-border-hover);
  color: var(--theme-text);
}
.tag .tag-close,
.chip .chip-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(239,83,80,0.15);
  color: var(--bs-danger);
  font-size: 0.65rem;
  cursor: pointer;
  transition: background var(--theme-transition);
}
.tag .tag-close:hover,
.chip .chip-close:hover {
  background: rgba(239,83,80,0.30);
}


/* ──────────────── Custom Utility: Timeline ──────────────── */
.timeline {
  position: relative;
  padding: 0;
  list-style: none;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 18px; /* RTL */
  width: 2px;
  background: linear-gradient(180deg, var(--theme-border), rgba(34,211,238,0.2), var(--theme-border));
}
.timeline-item {
  position: relative;
  padding-right: 50px; /* RTL */
  padding-bottom: 1.5rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item .timeline-dot {
  position: absolute;
  right: 12px; /* RTL */
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bs-primary);
  border: 2px solid var(--theme-bg);
  box-shadow: 0 0 0 3px rgba(8,145,178,0.20);
  z-index: 1;
}
.timeline-item .timeline-content {
  background: var(--theme-surface);
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  padding: 0.75rem 1rem;
}
.timeline-item .timeline-time {
  font-size: 0.75rem;
  color: var(--theme-text-dim);
  margin-top: 0.35rem;
}


/* ──────────────── Custom Utility: Notification Dot ──────────────── */
.notification-dot {
  position: relative;
}
.notification-dot::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px; /* RTL: left side */
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bs-danger);
  box-shadow: 0 0 6px rgba(239,83,80,0.5);
}


/* ──────────────── Custom Utility: Avatar ──────────────── */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--theme-border);
  flex-shrink: 0;
}
.avatar-sm { width: 32px; height: 32px; }
.avatar-lg { width: 56px; height: 56px; }
.avatar-xl { width: 72px; height: 72px; }

.avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(8,145,178,0.15);
  border: 2px solid var(--theme-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.avatar-placeholder.avatar-sm { width: 32px; height: 32px; font-size: 0.75rem; }
.avatar-placeholder.avatar-lg { width: 56px; height: 56px; font-size: 1.2rem; }
.avatar-placeholder.avatar-xl { width: 72px; height: 72px; font-size: 1.5rem; }

/* Avatar group */
.avatar-group {
  display: flex;
  flex-direction: row-reverse; /* RTL stack */
}
.avatar-group .avatar,
.avatar-group .avatar-placeholder {
  margin-inline-start: -10px;
  border: 2px solid var(--theme-bg);
  transition: transform var(--theme-transition);
}
.avatar-group .avatar:hover,
.avatar-group .avatar-placeholder:hover {
  transform: translateY(-3px);
  z-index: 2;
}


/* ──────────────── Custom Utility: Pricing Card ──────────────── */
.pricing-card {
  background: var(--theme-surface);
  backdrop-filter: blur(var(--theme-glass-blur));
  -webkit-backdrop-filter: blur(var(--theme-glass-blur));
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--theme-transition);
  position: relative;
}
.pricing-card:hover {
  border-color: var(--theme-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(8,145,178,0.15);
}
.pricing-card.featured {
  border-color: var(--bs-primary);
  box-shadow: 0 0 30px rgba(8,145,178,0.15);
}
.pricing-card.featured::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--theme-radius-lg);
  background: linear-gradient(135deg, rgba(8,145,178,0.25), rgba(34,211,238,0.10));
  z-index: -1;
}
.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--theme-text);
  line-height: 1.2;
}
.pricing-card .price small {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--theme-text-dim);
}
.pricing-card .plan-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  text-align: right; /* RTL */
}
.pricing-card .plan-features li {
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--theme-text-muted);
  border-bottom: 1px solid var(--theme-border);
}
.pricing-card .plan-features li:last-child {
  border-bottom: none;
}


/* ──────────────── Extra Custom Utilities ──────────────── */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-truncate-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hover lift effect */
.hover-lift {
  transition: transform var(--theme-transition), box-shadow var(--theme-transition);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

/* Hover scale effect */
.hover-scale {
  transition: transform var(--theme-transition);
}
.hover-scale:hover {
  transform: scale(1.03);
}

/* Hover glow border */
.hover-glow {
  transition: border-color var(--theme-transition), box-shadow var(--theme-transition);
}
.hover-glow:hover {
  border-color: var(--theme-border-hover);
  box-shadow: 0 0 20px rgba(8,145,178,0.15);
}

/* Clickable area */
.clickable {
  cursor: pointer;
  user-select: none;
}

/* No-wrap text */
.text-nowrap {
  white-space: nowrap !important;
}

/* Word break for long content */
.text-break-word {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Aspect ratio helpers */
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-21x9 { aspect-ratio: 21 / 9; }

/* Gap utilities (for flex/grid contexts beyond Bootstrap's) */
.gap-xs { gap: 0.25rem !important; }


/* ──────────────── Animations ──────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.6; }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.animate-fadeInUp     { animation: fadeInUp 0.5s ease-out both; }
.animate-fadeInDown   { animation: fadeInDown 0.5s ease-out both; }
.animate-fadeIn       { animation: fadeIn 0.4s ease-out both; }
.animate-fadeOut      { animation: fadeOut 0.3s ease-out both; }
.animate-slideInRight { animation: slideInRight 0.5s ease-out both; }
.animate-slideInLeft  { animation: slideInLeft 0.5s ease-out both; }
.animate-scaleIn      { animation: scaleIn 0.4s ease-out both; }
.animate-pulse        { animation: pulse 2s ease-in-out infinite; }
.animate-shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(103,232,249,0.06) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s ease-in-out infinite;
}
.animate-spin         { animation: spin 1s linear infinite; }
.animate-bounce       { animation: bounce 1.5s ease-in-out infinite; }

/* Staggered animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }
.delay-9 { animation-delay: 0.9s; }
.delay-10 { animation-delay: 1s; }


/* ──────────────── Container Override ──────────────── */
.container,
.container-fluid,
.container-sm,
.container-md,
.container-lg,
.container-xl,
.container-xxl {
  color: var(--theme-text);
}


/* ──────────────── Footer Utility ──────────────── */
.footer-dark {
  background: rgba(6,13,31,0.9);
  border-top: 1px solid var(--theme-border);
  color: var(--theme-text-muted);
  padding: 2rem 0;
}
.footer-dark a {
  color: var(--theme-text-muted);
  transition: color var(--theme-transition);
}
.footer-dark a:hover {
  color: var(--bs-secondary);
}
.footer-dark .footer-heading {
  color: var(--theme-text);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}


/* ──────────────── Responsive Adjustments ──────────────── */

/* ── Large tablets and below ── */
@media (max-width: 991.98px) {
  :root {
    --theme-glass-blur: 14px;
  }
  .pricing-card {
    padding: 1.5rem 1.25rem;
  }
}

/* ── Tablets and below ── */
@media (max-width: 767.98px) {
  .navbar-collapse {
    background: var(--theme-bg-alt);
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius);
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  }
  .offcanvas,
  .offcanvas-sm,
  .offcanvas-md {
    width: 320px !important;
  }
  .timeline::before {
    right: 14px;
  }
  .timeline-item {
    padding-right: 42px;
  }
  .timeline-item .timeline-dot {
    right: 8px;
  }
  .stat-card .stat-value {
    font-size: 1.5rem;
  }
  /* Reduce glass blur for performance on tablets */
  .card,
  .modal-content,
  .auth-card,
  .glass,
  .glass-strong {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

/* ── Small phones ── */
@media (max-width: 575.98px) {
  body {
    font-size: 0.9rem;
    line-height: 1.65;
  }
  h1, .h1 { font-size: 1.6rem; }
  h2, .h2 { font-size: 1.35rem; }
  h3, .h3 { font-size: 1.15rem; }
  h4, .h4 { font-size: 1.05rem; }

  .card {
    border-radius: var(--theme-radius-sm) !important;
  }
  .card-header {
    padding: 0.65rem 0.85rem;
  }
  .card-body {
    padding: 0.85rem;
  }

  .auth-card {
    padding: 1.15rem;
    margin: 1rem auto;
    max-width: calc(100% - 1.5rem);
    border-radius: var(--theme-radius) !important;
  }

  .modal-dialog {
    margin: 0.5rem;
  }
  .modal-content {
    border-radius: var(--theme-radius) !important;
  }
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 0.85rem;
  }

  .btn-lg {
    padding: 0.5rem 1.4rem;
    font-size: 0.95rem;
  }

  .otp-input {
    width: 40px;
    height: 46px;
    font-size: 1.1rem;
  }

  .table {
    font-size: 0.82rem;
  }
  .table > thead th {
    font-size: 0.78rem;
    padding: 0.5rem;
  }
  .table > tbody td {
    padding: 0.45rem 0.5rem;
  }

  .breadcrumb {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
  }

  .dropdown-menu {
    min-width: auto;
  }

  .pricing-card {
    padding: 1.25rem 1rem;
  }
  .pricing-card .price {
    font-size: 2rem;
  }

  /* Reduce heavy effects on small devices */
  .card,
  .modal-content,
  .auth-card,
  .glass,
  .glass-strong,
  .stat-card {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .navbar {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
}

/* ── Extra small phones (< 360px) ── */
@media (max-width: 359.98px) {
  body {
    font-size: 0.85rem;
  }
  h1, .h1 { font-size: 1.4rem; }
  h2, .h2 { font-size: 1.2rem; }

  .btn {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
  }
  .auth-card {
    padding: 1rem;
  }
  .otp-input {
    width: 36px;
    height: 42px;
    font-size: 1rem;
  }
}


/* ──────────────── High DPI / Retina ──────────────── */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  ::-webkit-scrollbar-thumb {
    background: rgba(8,145,178,0.30);
  }
}


/* ──────────────── Accessibility: Reduced Motion ──────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  body::before {
    animation: none !important;
  }
  .hover-lift:hover,
  .hover-scale:hover,
  .btn:hover,
  .btn-social:hover,
  .pricing-card:hover {
    transform: none !important;
  }
}


/* ──────────────── Accessibility: High Contrast ──────────────── */
@media (prefers-contrast: high) {
  :root {
    --theme-border: rgba(34,211,238,0.35);
    --theme-border-hover: rgba(34,211,238,0.55);
    --theme-text-dim: rgba(224,247,250,0.65);
    --theme-text-muted: #b2ebf2;
  }
  .card,
  .modal-content,
  .dropdown-menu,
  .toast,
  .popover,
  .offcanvas {
    border-width: 2px !important;
  }
  .btn {
    border-width: 2px !important;
  }
}


/* ──────────────── Dark Mode Forced (for OS-level) ──────────────── */
@media (prefers-color-scheme: dark) {
  /* Already dark — just ensure no overrides from user-agent */
  img {
    opacity: 0.92;
    transition: opacity var(--theme-transition);
  }
  img:hover {
    opacity: 1;
  }
}


/* ──────────────── Print Styles ──────────────── */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    direction: rtl;
    font-size: 11pt;
  }
  body::before,
  body::after {
    display: none !important;
  }
  .card,
  .auth-card,
  .glass,
  .glass-strong,
  .modal-content,
  .stat-card,
  .pricing-card {
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: #000 !important;
  }
  .card-header,
  .card-footer,
  .modal-header,
  .modal-footer {
    background: #f5f5f5 !important;
    border-color: #ddd !important;
    color: #000 !important;
  }
  .navbar,
  .offcanvas,
  .toast,
  .tooltip,
  .popover,
  .btn-social,
  .carousel-control-prev,
  .carousel-control-next,
  .carousel-indicators {
    display: none !important;
  }
  .btn {
    border: 1px solid #999 !important;
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
  }
  a {
    color: #000 !important;
    text-decoration: underline !important;
    text-shadow: none !important;
  }
  .badge {
    border: 1px solid #999 !important;
    background: #eee !important;
    color: #000 !important;
  }
  .table {
    border-collapse: collapse !important;
    color: #000 !important;
  }
  .table th,
  .table td {
    border: 1px solid #ccc !important;
    color: #000 !important;
    background: #fff !important;
  }
  .table thead th {
    background: #f0f0f0 !important;
  }
  h1, h2, h3, h4, h5, h6 {
    color: #000 !important;
    page-break-after: avoid;
  }
  p, .card-text {
    color: #333 !important;
  }
  .text-muted {
    color: #666 !important;
  }
  .progress {
    border: 1px solid #ccc !important;
    background: #eee !important;
  }
  .progress-bar {
    background: #666 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  img {
    opacity: 1 !important;
    max-width: 100% !important;
  }
  /* Avoid page breaks inside cards */
  .card, .stat-card, .pricing-card {
    page-break-inside: avoid;
  }
}


/* ══════════════════════════════════════════════════════════════
   END OF AQUA DARK THEME
   ══════════════════════════════════════════════════════════════ */
