/* Shared theme variables and compatibility mappings */
:root {
    /* Light theme values */
    --bg: #F3F4F6;           /* page background (light gray) */
    --primary: #1D4ED8;      /* primary blue */
    --secondary: #F59E0B;    /* warm amber */
    --highlight: #06B6D4;    /* cyan/teal accent */
    --text: #111827;         /* dark gray for readable text */

    /* Additional semantic tokens for consistent overrides */
    --card-bg: #FFFFFF;      /* card background */
    --card-border: rgba(15,23,42,0.08);
    --nav-bg: rgba(255,255,255,0.9);
    --sidebar-bg: #FFFFFF;
    --overlay: rgba(2,6,23,0.6);
    --muted: #6B7280;        /* muted text */
    --muted-2: rgba(11,18,32,0.6);
    --link: #1D4ED8;
    --button-bg: linear-gradient(90deg, var(--primary), #7C3AED);
    --button-text: #ffffff;
    --gradient-start: #1D4ED8;
    --gradient-end: #06B6D4;
    --success: #16A34A;
    --danger: #DC2626;

    /* Compatibility variables used across existing pages */
    --cosmic-navy: var(--bg);
    --ethereal-purple: var(--primary);
    --mystic-teal: var(--highlight);
    --moonlit-silver: var(--text);

    /* Additional semantic tokens */
    --page-bg:
        radial-gradient(ellipse at 82% 0%, rgba(245,158,11,0.09) 0%, transparent 48%),
        radial-gradient(ellipse at 18% 100%, rgba(56,189,248,0.06) 0%, transparent 48%),
        linear-gradient(180deg, #FDFBF7 0%, #F2EAD8 100%);
    --muted: rgba(17,24,39,0.65);
    --strong-text: #0B0F19; /* explicit near-black for headings/important text in light theme */
}

[data-theme="dark"] {
    /* Assistant's dark theme values */
    --bg: #071021;          /* deep bluish background */
    --primary: #7C5CFF;     /* soft violet */
    --secondary: #FF7AB6;   /* muted pink */
    --highlight: #00E5B3;   /* bright teal */
    --text: #E6EEF8;        /* soft off-white for contrast */

    /* Dark semantic tokens */
    --card-bg: rgba(12,18,30,0.6);
    --card-border: rgba(124,92,255,0.12);
    --nav-bg: rgba(7,16,33,0.6);
    --sidebar-bg: rgba(7,12,22,0.85);
    --overlay: rgba(2,6,23,0.7);
    --muted: #9AA4B2;
    --muted-2: rgba(230,238,248,0.6);
    --link: #7C5CFF;
    --button-bg: linear-gradient(90deg, #7C5CFF, #06B6D4);
    --button-text: #071021;
    --gradient-start: #7C5CFF;
    --gradient-end: #00E5B3;
    --success: #34D399;
    --danger: #FB7185;

    /* Map to compatibility variables */
    --cosmic-navy: var(--bg);
    --ethereal-purple: var(--primary);
    --mystic-teal: var(--highlight);
    --moonlit-silver: var(--text);

    --page-bg:
        radial-gradient(ellipse at 78% -6%, rgba(245,158,11,0.16) 0%, transparent 40%),
        radial-gradient(ellipse at -6% 90%, rgba(56,189,248,0.08) 0%, transparent 45%),
        radial-gradient(ellipse at 108% 78%, rgba(168,85,247,0.07) 0%, transparent 44%),
        linear-gradient(170deg, #0C1120 0%, #060910 100%);
    --muted: rgba(255,255,255,0.12);
    --strong-text: var(--text);
    --card-border: rgba(210,155,70,0.13);
}

/* Force page background and foreground to follow the theme. Loaded late in <head> so it overrides inline colors. */
html, body {
    background: var(--page-bg) !important;
    color: var(--moonlit-silver) !important;
}

/* All grey/muted text → solid black in light mode */
:root:not([data-theme="dark"]) .text-slate-50  { color: #111827 !important; }
:root:not([data-theme="dark"]) .text-slate-100 { color: #111827 !important; }
:root:not([data-theme="dark"]) .text-slate-200 { color: #111827 !important; }
:root:not([data-theme="dark"]) .text-slate-300 { color: #111827 !important; }
:root:not([data-theme="dark"]) .text-slate-400 { color: #111827 !important; }
:root:not([data-theme="dark"]) .text-slate-500 { color: #111827 !important; }

/* Light-mode overrides for dark utility backgrounds/borders used across pages */
:root:not([data-theme="dark"]) .bg-slate-900\/80 { background-color: rgba(255,255,255,0.92) !important; }
:root:not([data-theme="dark"]) .bg-slate-800\/50 { background-color: rgba(255,255,255,0.75) !important; }
:root:not([data-theme="dark"]) .bg-slate-900\/60 { background-color: rgba(255,255,255,0.85) !important; }
:root:not([data-theme="dark"]) .border-slate-700\/70 { border-color: rgba(15,23,42,0.12) !important; }
:root:not([data-theme="dark"]) .border-slate-700 { border-color: rgba(15,23,42,0.12) !important; }
:root:not([data-theme="dark"]) .border-slate-500\/60 { border-color: rgba(15,23,42,0.16) !important; }

/* Dark-mode hero sections — warm library photo with heavy overlay and amber accent glow */
[data-theme="dark"] .hero-gradient {
    background:
        linear-gradient(135deg, rgba(5,8,17,0.86) 0%, rgba(8,12,24,0.93) 55%, rgba(5,8,17,0.97) 100%),
        radial-gradient(ellipse at 94% 6%, rgba(245,158,11,0.22) 0%, transparent 48%),
        url('https://images.unsplash.com/photo-1472214103451-9374bd1c798e?w=1400&q=75') center/cover no-repeat !important;
}

/* Light-mode hero sections — warm ivory with subtle amber accent */
:root:not([data-theme="dark"]) .hero-gradient {
    background:
        linear-gradient(135deg, rgba(253,250,244,0.97) 0%, rgba(247,240,228,0.98) 100%),
        url('https://images.unsplash.com/photo-1472214103451-9374bd1c798e?w=1400&q=75') center/cover no-repeat !important;
}

/* Sidebar links should be readable in light mode */
:root:not([data-theme="dark"]) .sidebar-item { color: var(--text) !important; }
:root:not([data-theme="dark"]) .sidebar-item:hover {
    background: rgba(37,99,235,0.08) !important;
    color: var(--text) !important;
}

/* Bubble chips + icons (used in cards, profile, gallery, simulator) */
:root:not([data-theme="dark"]) .bubble {
    background: #FFFFFF !important;
    background-image: none !important;
    color: var(--text);
    border: 1px solid rgba(15,23,42,0.08);
}
:root:not([data-theme="dark"]) .bubble-icon { color: var(--text); }

/* Light mode: white bubbles with subtle tint by category */
:root:not([data-theme="dark"]) .bubble[data-bubble-color="purple"] { background: #FFFFFF !important; }
:root:not([data-theme="dark"]) .bubble[data-bubble-color="indigo"] { background: #FFFFFF !important; }
:root:not([data-theme="dark"]) .bubble[data-bubble-color="blue"] { background: #FFFFFF !important; }
:root:not([data-theme="dark"]) .bubble[data-bubble-color="green"] { background: #FFFFFF !important; }
:root:not([data-theme="dark"]) .bubble[data-bubble-color="amber"] { background: #FFFFFF !important; }
:root:not([data-theme="dark"]) .bubble[data-bubble-color="pink"] { background: #FFFFFF !important; }
:root:not([data-theme="dark"]) .bubble[data-bubble-color="muted"] { background: #FFFFFF; }

/* Dark mode: consistently dark bubbles, with subtle tint by category */
[data-theme="dark"] .bubble {
    background: #0F172A !important;
    background-image: none !important;
    color: var(--text);
    border: 1px solid rgba(148,163,184,0.2);
}
[data-theme="dark"] .bubble[data-bubble-color="purple"] { background: #0F172A !important; }
[data-theme="dark"] .bubble[data-bubble-color="indigo"] { background: #0F172A !important; }
[data-theme="dark"] .bubble[data-bubble-color="blue"] { background: #0F172A !important; }
[data-theme="dark"] .bubble[data-bubble-color="green"] { background: #0F172A !important; }
[data-theme="dark"] .bubble[data-bubble-color="amber"] { background: #0F172A !important; }
[data-theme="dark"] .bubble[data-bubble-color="pink"] { background: #0F172A !important; }
[data-theme="dark"] .bubble[data-bubble-color="muted"] { background: #0F172A !important; }
[data-theme="dark"] .bubble-icon { color: var(--text); }

/* Slightly refine some bubble background utilities (override Tailwind utility smell) */
/* Escape the slash in class names for CSS selectors */
:root:not([data-theme="dark"]) .bg-purple-500\/20 { background-color: rgba(124,92,255,0.10) !important; }
:root:not([data-theme="dark"]) .bg-indigo-500\/20 { background-color: rgba(29,78,216,0.10) !important; }
:root:not([data-theme="dark"]) .bg-blue-500\/20 { background-color: rgba(59,130,246,0.08) !important; }

[data-theme="dark"] .bg-purple-500\/20 { background-color: rgba(124,92,255,0.06) !important; }
[data-theme="dark"] .bg-indigo-500\/20 { background-color: rgba(124,92,255,0.06) !important; }
[data-theme="dark"] .bg-blue-500\/20 { background-color: rgba(59,130,246,0.05) !important; }

/* Simple utility for theme toggle button visuals */
.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--moonlit-silver);
    border: 1px solid rgba(15,23,42,0.06);
}

[data-theme="dark"] .theme-toggle-btn {
    border-color: rgba(255,255,255,0.06);
}

/* Make gradients use the primary/highlight tokens */
.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

/* Map common site classes to semantic tokens so pages without refactor pick up colors */
.cosmic-card {
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border) !important;
}

.nav-glass {
    background: var(--nav-bg) !important;
    border-bottom: 1px solid var(--card-border) !important;
    color: var(--text) !important;
}

.sidebar {
    background: var(--sidebar-bg) !important;
    border-right: 1px solid var(--card-border) !important;
    color: var(--text) !important;
}

.sidebar-toggle {
    background: var(--nav-bg) !important;
    color: var(--text) !important;
    border: 1px solid var(--card-border) !important;
}

.gradient-border {
    border-image: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) 1 !important;
}

.hover-btn {
    background-image: var(--button-bg) !important;
    color: var(--button-text) !important;
}

/* Links and buttons default colors */
a { color: var(--link); }
button, .btn { color: var(--button-text); }


/* Gentle transitions when switching themes */
:root, body, .cosmic-card, .nav-glass, .sidebar, .sidebar-toggle {
    transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease;
}

/* ================================================================
   COMPREHENSIVE LIGHT-MODE OVERRIDES
   Panels → white, borders → dark, text → dark
   ================================================================ */

/* --- Panel / card backgrounds → white --- */
:root:not([data-theme="dark"]) .bg-slate-950,
:root:not([data-theme="dark"]) .bg-slate-900,
:root:not([data-theme="dark"]) .bg-gray-900,
:root:not([data-theme="dark"]) .bg-gray-800,
:root:not([data-theme="dark"]) .bg-zinc-900,
:root:not([data-theme="dark"]) .bg-zinc-800,
:root:not([data-theme="dark"]) .bg-neutral-900,
:root:not([data-theme="dark"]) .bg-black { background-color: #ffffff !important; }

:root:not([data-theme="dark"]) .bg-slate-950\/70 { background-color: rgba(255,255,255,0.97) !important; }
:root:not([data-theme="dark"]) .bg-slate-900\/90 { background-color: rgba(255,255,255,0.97) !important; }
:root:not([data-theme="dark"]) .bg-slate-900\/70 { background-color: rgba(255,255,255,0.95) !important; }
:root:not([data-theme="dark"]) .bg-slate-900\/50 { background-color: rgba(255,255,255,0.92) !important; }
:root:not([data-theme="dark"]) .bg-slate-900\/40 { background-color: rgba(255,255,255,0.90) !important; }
:root:not([data-theme="dark"]) .bg-slate-900\/30 { background-color: rgba(255,255,255,0.88) !important; }

/* bg-slate-800 is also used for progress bar tracks — keep as light gray so tracks stay visible */
:root:not([data-theme="dark"]) .bg-slate-800 { background-color: #f1f5f9 !important; }
:root:not([data-theme="dark"]) .bg-slate-800\/80 { background-color: rgba(241,245,249,0.9) !important; }
:root:not([data-theme="dark"]) .bg-slate-800\/60 { background-color: rgba(241,245,249,0.8) !important; }
:root:not([data-theme="dark"]) .bg-slate-800\/40 { background-color: rgba(241,245,249,0.6) !important; }
:root:not([data-theme="dark"]) .bg-slate-800\/30 { background-color: rgba(241,245,249,0.5) !important; }

/* --- Borders → visible dark strokes in light mode --- */
:root:not([data-theme="dark"]) .border-slate-950 { border-color: rgba(15,23,42,0.2) !important; }
:root:not([data-theme="dark"]) .border-slate-800 { border-color: rgba(15,23,42,0.15) !important; }
:root:not([data-theme="dark"]) .border-slate-800\/60 { border-color: rgba(15,23,42,0.15) !important; }
:root:not([data-theme="dark"]) .border-slate-800\/40 { border-color: rgba(15,23,42,0.12) !important; }
:root:not([data-theme="dark"]) .border-slate-700\/50 { border-color: rgba(15,23,42,0.12) !important; }
:root:not([data-theme="dark"]) .border-slate-700\/30 { border-color: rgba(15,23,42,0.08) !important; }
:root:not([data-theme="dark"]) .border-slate-600 { border-color: rgba(15,23,42,0.22) !important; }
:root:not([data-theme="dark"]) .border-slate-600\/70 { border-color: rgba(15,23,42,0.18) !important; }
:root:not([data-theme="dark"]) .border-slate-600\/50 { border-color: rgba(15,23,42,0.15) !important; }
:root:not([data-theme="dark"]) .border-white\/10,
:root:not([data-theme="dark"]) .border-white\/5,
:root:not([data-theme="dark"]) .border-white\/20 { border-color: rgba(15,23,42,0.1) !important; }
:root:not([data-theme="dark"]) .border-gray-700,
:root:not([data-theme="dark"]) .border-gray-800 { border-color: rgba(15,23,42,0.15) !important; }
:root:not([data-theme="dark"]) .border-zinc-700,
:root:not([data-theme="dark"]) .border-zinc-800 { border-color: rgba(15,23,42,0.15) !important; }

/* --- Text → black in light mode --- */
:root:not([data-theme="dark"]) .text-white    { color: #111827 !important; }
:root:not([data-theme="dark"]) .text-slate-600 { color: #111827 !important; }
:root:not([data-theme="dark"]) .text-gray-100,
:root:not([data-theme="dark"]) .text-gray-200,
:root:not([data-theme="dark"]) .text-gray-300,
:root:not([data-theme="dark"]) .text-gray-400,
:root:not([data-theme="dark"]) .text-gray-500,
:root:not([data-theme="dark"]) .text-gray-600,
:root:not([data-theme="dark"]) .text-zinc-100,
:root:not([data-theme="dark"]) .text-zinc-200,
:root:not([data-theme="dark"]) .text-zinc-300,
:root:not([data-theme="dark"]) .text-zinc-400,
:root:not([data-theme="dark"]) .text-neutral-100,
:root:not([data-theme="dark"]) .text-neutral-200,
:root:not([data-theme="dark"]) .text-neutral-300,
:root:not([data-theme="dark"]) .text-neutral-400 { color: #111827 !important; }

/* --- Glass-card: white background + visible border in light mode --- */
:root:not([data-theme="dark"]) .glass-card {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: rgba(15,23,42,0.12) !important;
    box-shadow: 0 4px 24px rgba(15,23,42,0.07) !important;
}

/* Catch-all for panels/cards that use inline dark rgba backgrounds */
:root:not([data-theme="dark"]) [class*="card"],
:root:not([data-theme="dark"]) [class*="panel"],
:root:not([data-theme="dark"]) .preview-panel,
:root:not([data-theme="dark"]) .preview-cell {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* Dark-mode glass cards — warm amber top-edge highlight and richer shadow */
[data-theme="dark"] .glass-card {
    border-color: rgba(210,155,70,0.16) !important;
    box-shadow: 0 24px 60px rgba(4,7,16,0.95), inset 0 1px 0 rgba(245,180,90,0.07) !important;
}

/* --- Input fields & textareas --- */
:root:not([data-theme="dark"]) input,
:root:not([data-theme="dark"]) textarea,
:root:not([data-theme="dark"]) select {
    background-color: #ffffff !important;
    color: #111827 !important;
    border-color: rgba(15,23,42,0.2) !important;
}
:root:not([data-theme="dark"]) input::placeholder,
:root:not([data-theme="dark"]) textarea::placeholder { color: #9ca3af !important; }

/* --- Dividers / hr --- */
:root:not([data-theme="dark"]) .divide-slate-700 > * + *,
:root:not([data-theme="dark"]) .divide-slate-800 > * + * { border-color: rgba(15,23,42,0.1) !important; }

/* --- Hover states that use dark backgrounds --- */
:root:not([data-theme="dark"]) .hover\:bg-slate-800:hover { background-color: #f1f5f9 !important; }
:root:not([data-theme="dark"]) .hover\:bg-slate-900:hover { background-color: #f8fafc !important; }
:root:not([data-theme="dark"]) .hover\:bg-slate-800\/60:hover { background-color: rgba(241,245,249,0.8) !important; }

/* ================================================================
   MOBILE RESPONSIVENESS
   Global rules loaded by every page via <link rel="stylesheet" href="theme.css">
   ================================================================ */

/* Prevent iOS from auto-zooming into any input smaller than 16px */
@media (max-width: 767px) {
  input, textarea, select {
    font-size: 16px !important;
  }
}

/* Push header content clear of the fixed hamburger toggle (~60px from left edge).
   Uses !important so it wins over Tailwind px-8 (2rem) on mobile. */
@media (max-width: 767px) {
  header {
    padding-left: 4.25rem !important;
  }
}

/* On very small screens reduce side padding on main content sections.
   main section { } targets only sections inside main — NOT the header. */
@media (max-width: 479px) {
  main section {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .glass-card {
    border-radius: 16px;
  }
}

/* Ensure sidebar nav links are comfortably tappable */
.sidebar-item {
  min-height: 44px;
}

/* Minimum touch-target size for the hamburger toggle */
.sidebar-toggle {
  min-height: 40px;
  min-width: 40px;
  touch-action: manipulation;
}

/* Touch-friendly momentum scrolling on scrollable containers */
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

/* Prevent inline-style fixed-width modals from overflowing narrow phones */
@media (max-width: 479px) {
  [style*="max-width: 400px"],
  [style*="max-width:400px"],
  [style*="max-width: 480px"],
  [style*="max-width:480px"] {
    max-width: calc(100vw - 2rem) !important;
    width: calc(100vw - 2rem) !important;
  }
}

/* Safe area inset for iPhones with home indicator */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  footer {
    padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
  }
}

/* ================================================================
   WARM AMBIENT DECORATIVE GLOWS
   Fixed pseudo-elements on body that sit behind all content.
   Only visible in dark mode — light mode uses the warm --page-bg.
   ================================================================ */
[data-theme="dark"] body::before {
  content: '';
  position: fixed;
  top: -15%;
  right: -8%;
  width: 55vmax;
  height: 55vmax;
  background: radial-gradient(circle, rgba(245,158,11,0.07) 0%, transparent 68%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: warmOrb 14s ease-in-out infinite;
}
[data-theme="dark"] body::after {
  content: '';
  position: fixed;
  bottom: -20%;
  left: -12%;
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(circle, rgba(56,189,248,0.05) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  animation: warmOrb 18s ease-in-out infinite reverse;
}
@keyframes warmOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(2%, 3%) scale(1.04); }
  66%       { transform: translate(-2%, -2%) scale(0.97); }
}

/* ================================================================
   SMOOTH SCROLL & INTERACTION QUALITY
   Covers every page — no page-specific changes needed.
   ================================================================ */

/* 1 ── Scroll smoothness + horizontal overflow guard */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* 2 ── Crisp text rendering on all platforms */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 3 ── Kill the ugly mobile blue tap flash */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* 4 ── Universal link color transition */
a {
  transition: color 0.18s ease, opacity 0.18s ease;
}

/* 5 ── Universal button smoothness + GPU hint */
button {
  transition:
    background-color 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    opacity 0.2s ease,
    transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.2s ease;
  transform: translateZ(0); /* promote to own compositor layer */
}

/* 6 ── Tactile press feedback — snappy scale-down, spring back */
button:active:not(:disabled),
[role="button"]:active:not([aria-disabled="true"]) {
  transform: scale(0.955) translateZ(0) !important;
  transition-duration: 0.07s !important;
}

/* 7 ── Smooth-fade: faster + spring easing instead of sluggish ease */
.smooth-fade {
  animation-duration: 0.55s !important;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.smooth-fade.delay-1 { animation-delay: 0.08s !important; }
.smooth-fade.delay-2 { animation-delay: 0.16s !important; }
.smooth-fade.delay-3 { animation-delay: 0.26s !important; }

/* 8 ── Hover-lift: spring overshoot so it feels alive */
.hover-lift {
  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.32s ease !important;
}
.hover-lift:hover {
  transform: translateY(-5px) translateZ(0) !important;
}

/* 9 ── Sidebar drawer: Material Design standard easing */
.sidebar {
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.sidebar-overlay {
  transition: opacity 0.28s ease !important;
}

/* 10 ── Nav + sidebar items: smooth color/bg transitions */
.nav-link,
.sidebar-item {
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease !important;
}

/* 11 ── Thin styled scrollbar (Webkit: Chrome, Safari, Edge) */
::-webkit-scrollbar               { width: 5px; height: 5px; }
::-webkit-scrollbar-track         { background: transparent; }
::-webkit-scrollbar-thumb         { background: rgba(148,163,184,0.25); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover   { background: rgba(148,163,184,0.45); }

[data-theme="dark"] ::-webkit-scrollbar-thumb       { background: rgba(245,158,11,0.25); }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: rgba(245,158,11,0.45); }

/* Firefox thin scrollbar */
html { scrollbar-width: thin; scrollbar-color: rgba(148,163,184,0.3) transparent; }
html[data-theme="dark"] { scrollbar-color: rgba(245,158,11,0.28) transparent; }

/* 12 ── Glass card smooth hover transitions */
.glass-card {
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  backface-visibility: hidden;
}
