/* === Dev Hub Aesthetic: Deep Blue & Cyan on Black === */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Near-black with a faint blue cast — softer than pure #000 */
  --bg-deep: #060609;
  --bg-dark: #0a0a10;
  --bg-surface: #0e0e15;
  --bg-elevated: #14141d;

  /* Cool blue/cyan palette */
  --primary: #3b82f6;            /* Blue 500 — brighter, more modern */
  --primary-light: #60a5fa;      /* Blue 400 */
  --primary-dim: #2563eb;        /* Blue 600 */
  --primary-glow: rgba(59, 130, 246, 0.35);
  --secondary: #06b6d4;          /* Cyan 500 */
  --secondary-light: #22d3ee;    /* Cyan 400 */
  --accent: #818cf8;             /* Indigo 400 */

  --text-primary: #f4f6fb;
  --text-secondary: #c9cedb;
  --text-muted: #8b91a3;
  --text-faint: #5b6072;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(96, 165, 250, 0.4);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

body {
  background-color: var(--bg-deep) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', sans-serif;
  margin: 0;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Layered background: toned-down mesh + a fine dot grid that fades out */
.landing-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(55% 45% at 50% -5%, rgba(59, 130, 246, 0.16) 0%, transparent 60%),
    radial-gradient(40% 40% at 88% 25%, rgba(6, 182, 212, 0.10) 0%, transparent 60%),
    radial-gradient(45% 45% at 8% 80%, rgba(129, 140, 248, 0.08) 0%, transparent 60%),
    var(--bg-deep);
}
.landing-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 75% 55% at 50% 25%, #000 0%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 55% at 50% 25%, #000 0%, transparent 80%);
  pointer-events: none;
}

.text-gradient {
  background: linear-gradient(120deg, #ffffff 0%, var(--primary-light) 55%, var(--secondary-light) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

.navbar {
  background: rgba(10, 10, 16, 0.55) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg);
  margin: 0.85rem 1.25rem;
  padding: 0.65rem 1.35rem;
  /* The navbar's backdrop-filter creates a stacking context. Without a high
     z-index, the animated page-content wrapper (a later sibling) paints over
     the lower part of any open dropdown, making those items unclickable.
     Lift the whole navbar (and its dropdowns) above the content. */
  position: relative;
  z-index: 1030;
}

/* Bootstrap gives .dropdown-menu z-index 1000, which is scoped inside the
   navbar's stacking context; bump it so it clears sibling content reliably. */
.navbar .dropdown-menu {
  z-index: 1031;
  background-color: var(--bg-elevated) !important;
  /* A soft menu popover, not a bordered floating box: small gap under the bar,
     NO hard border (a hairline ring + soft shadow give depth), hug the content. */
  margin-top: 0.3rem !important;
  min-width: 11rem;
  border: none !important;
  border-radius: 10px !important;
  padding: 0.3rem !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}
.navbar-brand .text-gradient {
  font-size: 1.4rem !important;
  letter-spacing: -0.03em;
}

/* ===================== Landing hero ===================== */

.hero {
  padding-top: 3.5rem;
  padding-bottom: 1rem;
}
.hero-inner {
  max-width: 760px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 100px;
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--secondary-light);
  box-shadow: 0 0 8px var(--secondary-light) !important;
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Refresh-button spinner (reachable-address card) */
.spin { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 1.1rem 0 0.85rem;
}
.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 600px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* ===================== Feature cards ===================== */

.features { padding: 3.5rem 0 4rem; }

.feature-card {
  position: relative;
  height: 100%;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)) !important;
  border: 1px solid var(--border-subtle) !important;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover) !important;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.07), rgba(255, 255, 255, 0.018)) !important;
}
/* gradient hairline ring that appears on hover */
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(96, 165, 250, 0.45), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-size: 1.3rem;
  color: var(--primary-light);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(6, 182, 212, 0.16));
  border: 1px solid rgba(96, 165, 250, 0.25);
  margin-bottom: 1.1rem;
}
.feature-card h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ===================== Entrance animation ===================== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.animate-fade-in { animation: fadeUp 0.6s ease both; }

/* Staggered children (hero elements, card grid) */
.stagger > * { animation: fadeUp 0.6s ease both; }
.stagger > *:nth-child(1) { animation-delay: 0.04s; }
.stagger > *:nth-child(2) { animation-delay: 0.12s; }
.stagger > *:nth-child(3) { animation-delay: 0.20s; }
.stagger > *:nth-child(4) { animation-delay: 0.28s; }

@media (prefers-reduced-motion: reduce) {
  .animate-fade-in, .stagger > *, .eyebrow .dot { animation: none !important; }
}

/* Dropdown menus — Bootstrap's default light hover blanks the white text
   on our dark theme. Restyle to match the rest of the glass aesthetic. */
.dropdown-menu {
  background: rgba(10, 10, 10, 0.95) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  padding: 0.5rem !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
}

.dropdown-menu .dropdown-item {
  color: rgba(255, 255, 255, 0.9) !important;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  background: rgba(37, 99, 235, 0.25) !important;
  color: #ffffff !important;
}

.dropdown-menu .dropdown-item:active {
  background: var(--primary) !important;
  color: #ffffff !important;
}

/* Circular icon badges used in admin tables (User Management, SP list).
   The `rounded-circle p-2` Bootstrap combo renders as an oval because the
   inner <i> glyph's intrinsic width and height aren't equal. Force a
   square hit area with a flex-centered icon so it's actually round. */
.rounded-circle.p-2 {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0 !important;
  flex-shrink: 0;
}
.rounded-circle.p-2 > i.bi {
  font-size: 1.05rem;
  line-height: 1;
}

.card {
  background: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(16px) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover) !important;
}

/* Admin glass cards shouldn't lift on hover — only interactive landing cards do */
.card.glass:hover { transform: none; }

.btn {
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
  border: none !important;
  box-shadow: 0 6px 22px rgba(59, 130, 246, 0.30) !important;
  color: #fff !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  padding: 0.65rem 1.5rem !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.42) !important;
}

.btn-lg {
  padding: 0.8rem 1.75rem !important;
  font-size: 1rem !important;
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    background: rgba(255, 255, 255, 0.02) !important;
    color: var(--text-secondary) !important;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Bootstrap Utility Overrides */
.text-primary, .text-info, .text-cyan { color: var(--primary-light) !important; }
.text-secondary, .text-magenta { color: var(--secondary-light) !important; }
.bg-primary, .bg-info, .bg-cyan { background-color: var(--primary) !important; }
.bg-secondary, .bg-magenta { background-color: var(--secondary) !important; }
.bg-light { background-color: rgba(255, 255, 255, 0.05) !important; color: white !important; }
.border-primary, .border-info { border-color: var(--primary-light) !important; }
.border-secondary { border-color: var(--secondary-light) !important; }

/* Global Glow / Shadow purge */
* {
    box-shadow: none !important;
}
.shadow-lg, .shadow-sm, .shadow {
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1) !important;
}

/* Nav links */
.nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary) !important;
}
/* Modal Styling - Dark & Glassy */
.modal-content {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border: 2px solid rgba(37, 99, 235, 0.4) !important;
    border-radius: var(--radius-xl) !important;
    color: white !important;
}


.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--primary-light);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* XML Modal Pre-tag Refinement */
#metadataContent, .xml-content {
    background: #0a0a0a !important;
    color: #e6e6e6 !important;
    padding: 1.25rem !important;
    border-radius: 8px;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
    word-break: break-all !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Source Code Pro', Consolas, monospace !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
    letter-spacing: 0.3px !important;
    border: 1px solid rgba(37, 99, 235, 0.3) !important;
    max-height: 65vh !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* Scrollbar styling for XML content */
#metadataContent::-webkit-scrollbar,
.xml-content::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

#metadataContent::-webkit-scrollbar-track,
.xml-content::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 5px;
}

#metadataContent::-webkit-scrollbar-thumb,
.xml-content::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.5);
    border-radius: 5px;
}

#metadataContent::-webkit-scrollbar-thumb:hover,
.xml-content::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.7);
}

/* XML Modal styling */
.modal-content.bg-dark {
    background: #111 !important;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.modal-content.bg-dark .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content.bg-dark .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Alert Styling Refinement */
.alert {
    background: rgba(37, 99, 235, 0.1) !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    color: white !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
}

.alert-success {
    background: rgba(25, 135, 84, 0.1) !important;
    border-color: rgba(25, 135, 84, 0.3) !important;
}

/* Form Label Refinement */
.form-label {
    color: var(--primary-light) !important;
    font-weight: 600 !important;
    opacity: 0.9;
}

/* Glass helper */
.glass {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(37, 99, 235, 0.3) !important;
    border-radius: var(--radius-xl) !important;
    overflow: hidden !important;
}

/* Table Styling - Dark Theme */
.table-dark {
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--text-primary) !important;
    --bs-table-border-color: rgba(255, 255, 255, 0.1) !important;
    --bs-table-hover-bg: rgba(37, 99, 235, 0.08) !important;
    --bs-table-hover-color: var(--text-primary) !important;
    margin-bottom: 0 !important;
}

.table-dark thead {
    background: rgba(255, 255, 255, 0.03) !important;
}

.table-dark thead th {
    background: transparent !important;
    color: var(--text-muted) !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    white-space: nowrap !important;
}

.table-dark tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.table-dark tbody td {
    background: transparent !important;
    vertical-align: middle !important;
    border: none !important;
    color: var(--text-primary) !important;
}

/* Card with table - proper alignment */
.card .table-responsive {
    border-radius: 0 !important;
    overflow-x: auto !important;
    margin: 0 !important;
}

.card.glass {
    overflow: hidden !important;
}

.card.glass .card-body.p-0 {
    padding: 0 !important;
}

/* Muted text should still be visible */
.text-muted, small.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Table layout for SP list */
.table {
    table-layout: auto !important;
    width: 100% !important;
}

/* Form control styling for dark theme */
.form-control, .form-select {
    background-color: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--text-primary) !important;
    border-radius: 8px !important;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(0, 0, 0, 0.6) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
    color: var(--text-primary) !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.6 !important;
}

/* Badge styling */
.badge.bg-secondary {
    background: rgba(37, 99, 235, 0.2) !important;
    color: var(--primary-light) !important;
    border: 1px solid rgba(37, 99, 235, 0.3) !important;
}

.badge.bg-dark {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--text-muted) !important;
}

/* Code styling */
code {
    background: rgba(37, 99, 235, 0.1) !important;
    color: var(--primary-light) !important;
    padding: 0.2em 0.5em !important;
    border-radius: 4px !important;
    font-size: 0.85em !important;
}

/* Button group outline styling */
.btn-outline-primary {
    border-color: var(--primary) !important;
    color: var(--primary-light) !important;
}

.btn-outline-primary:hover {
    background: var(--primary) !important;
    color: white !important;
}

.btn-outline-danger {
    border-color: #dc3545 !important;
    color: #ff6b7a !important;
}

.btn-outline-danger:hover {
    background: #dc3545 !important;
    color: white !important;
}

.btn-outline-warning {
    border-color: #ffc107 !important;
    color: #ffc107 !important;
}

.btn-outline-warning:hover {
    background: #ffc107 !important;
    color: #000 !important;
}

/* Stats card fix */
.card.glass .card-body.text-center {
    padding: 1.5rem !important;
}

/* Form text helper */
.form-text {
    color: var(--text-muted) !important;
    opacity: 0.7 !important;
}

/* Dark-theme text-color safety net.
   Bootstrap's default body color (#212529) leaks into bare text inside cards
   (headings, <dd> values, empty-state messages) and renders it nearly
   invisible on our dark background. Force the light theme colour for elements
   that are never intentionally dark here. (Coloured children like <code>,
   .text-primary, badges, and dark-on-yellow buttons keep their own colour.) */
.card-body h1, .card-body h2, .card-body h3,
.card-body h4, .card-body h5, .card-body h6 {
    color: var(--text-primary);
}
.card-body dd,
.card-body p:not([class*="text-"]) {
    color: var(--text-secondary);
}

/* Respect users who prefer reduced motion — neutralise entrance animations
   and transitions so nothing slides/fades for those who opt out. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Modals whose <form> wraps header+body+footer break Bootstrap's
   .modal-dialog-scrollable layout (it expects header/body/footer as direct
   flex children of .modal-content). Make the wrapping <form> the flex column
   so the body scrolls and the footer stays pinned, instead of the content
   overflowing past the viewport (Save/Cancel getting cut off). */
.modal-dialog-scrollable .modal-content > form {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 100%;
}
.modal-dialog-scrollable .modal-content > form > .modal-body {
  overflow-y: auto;
}

/* ===================== Service Provider avatar ===================== */
.sp-avatar {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-dim), var(--secondary));
  color: #fff;
  font-size: 1.05rem;
  box-shadow: 0 4px 14px var(--primary-glow);
}
/* The "+N more" attribute-mapping badge reveals the rest on hover. */
.sp-more { cursor: help; }

/* ===================== Toast notifications (flash) ===================== */
.toast-stack {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 1080;
  width: min(92vw, 380px);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.app-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-md);
  background: rgba(14, 14, 21, 0.9);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--primary);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  color: var(--text-secondary);
}
.app-toast-icon { font-size: 1.15rem; line-height: 1.35; flex-shrink: 0; }
.app-toast-body { flex: 1; font-size: 0.9rem; line-height: 1.4; }
.app-toast-body strong {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  margin-right: 0.4rem;
  text-transform: uppercase;
}
.app-toast-close {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.1rem;
  flex-shrink: 0;
}
.app-toast-close:hover { color: var(--text-primary); }
.app-toast-success { border-left-color: #22c55e; }
.app-toast-success .app-toast-icon,
.app-toast-success strong { color: #22c55e; }
.app-toast-danger { border-left-color: #ef4444; }
.app-toast-danger .app-toast-icon,
.app-toast-danger strong { color: #ef4444; }
.app-toast-warning { border-left-color: #f59e0b; }
.app-toast-warning .app-toast-icon,
.app-toast-warning strong { color: #f59e0b; }
.app-toast-info { border-left-color: var(--secondary-light); }
.app-toast-info .app-toast-icon,
.app-toast-info strong { color: var(--secondary-light); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-toast-in { animation: toast-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.app-toast.hiding {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* ===================== Navbar account menu ===================== */
.account-avatar {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.navbar .dropdown-menu form { margin: 0; }
.navbar .dropdown-item { cursor: pointer; }

/* ===================== Dashboard stat cards ===================== */
.stat-card { transition: transform 0.15s ease, border-color 0.15s ease; }
.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover) !important;
}
.stat-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary-dim), var(--secondary));
  color: #fff;
  font-size: 1.3rem;
}
