:root {
    --accent: #fa233b; /* Apple Music Red / Brand Color */
    --bs-primary: #0d6efd; /* Bootstrap Primary Blue Fallback */
    --bs-primary-rgb: 13, 110, 253;
    --sidebar-width: 260px;
}

[data-bs-theme="dark"] {
    --bg-main: #09090b; /* Deep dark/black */
    --bg-sidebar: #000000;
    --bg-player: rgba(20, 20, 20, 0.95);
    --text-main: #ffffff;
    --text-secondary: #a1a1aa;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover-bg: rgba(255, 255, 255, 0.08);
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-text: #fff;
    --bg-primary-subtle: rgba(250, 35, 59, 0.12);
    --nav-hover-bg: rgba(255, 255, 255, 0.05);
    --track-bg: rgba(255, 255, 255, 0.1);
    --top-bar-bg: rgba(9, 9, 11, 0.8);
}

[data-bs-theme="light"] {
    --bg-main: #f5f7fa; /* Professional Light Gray - Slightly cooler */
    --bg-sidebar: #ffffff;
    --bg-player: rgba(255, 255, 255, 0.95);
    --text-main: #1f2937; /* Gray-900 */
    --text-secondary: #6b7280; /* Gray-500 */
    --border-color: #e2e8f0; /* Slate-200 */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.06);
    --card-bg: #ffffff;
    --card-hover-bg: #f8fafc;
    --input-bg: #ffffff;
    --input-text: #1f2937;
    --bg-primary-subtle: rgba(250, 35, 59, 0.10);
    --nav-hover-bg: #f1f5f9;
    --track-bg: #e2e8f0;
    --top-bar-bg: rgba(255, 255, 255, 0.9);

    /* Light Mode Specific Shadows - Refined */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

/* Professional Light Mode Overrides */
[data-bs-theme="light"] .sidebar {
    border-right: 1px solid var(--border-color);
    box-shadow: 2px 0 8px rgba(0,0,0,0.02);
}

[data-bs-theme="light"] .top-bar {
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    background: rgba(255, 255, 255, 0.95);
}

[data-bs-theme="light"] .card-apple {
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="light"] .card-apple:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
    transform: translateY(-4px);
}

[data-bs-theme="light"] .search-bar {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
}

[data-bs-theme="light"] .search-bar:focus-within {
    background: #ffffff;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(250, 35, 59, 0.1);
}

/* Light Mode Table Styles */
[data-bs-theme="light"] .table {
    --bs-table-color: var(--text-main);
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border-color);
    --bs-table-striped-bg: #f9fafb;
    --bs-table-striped-color: var(--text-main);
    --bs-table-hover-bg: #f3f4f6;
    --bs-table-hover-color: var(--text-main);
}

[data-bs-theme="light"] .table th {
    background-color: #f8fafc;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

[data-bs-theme="light"] .table td {
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

/* Light Mode Dropdowns */
[data-bs-theme="light"] .dropdown-menu {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

[data-bs-theme="light"] .dropdown-item {
    color: var(--text-main);
}

[data-bs-theme="light"] .dropdown-item:hover {
    background-color: #f3f4f6;
    color: var(--text-main);
}

/* Dark Mode Dropdowns */
[data-bs-theme="dark"] .dropdown-menu {
    background-color: rgba(12, 12, 14, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
    backdrop-filter: none;
}
[data-bs-theme="dark"] .dropdown-item {
    color: #ffffff;
}
[data-bs-theme="dark"] .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* Light Mode Scrollbar */
[data-bs-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f5f9;
}
[data-bs-theme="light"] ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}
[data-bs-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Light Mode Form Controls */
[data-bs-theme="light"] .form-control {
    background-color: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-main);
}
[data-bs-theme="light"] .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(250, 35, 59, 0.1);
}

[data-bs-theme="light"] .nav-item {
    color: var(--text-secondary);
    font-weight: 500;
}

[data-bs-theme="light"] .nav-item:hover {
    color: var(--text-main);
    background: var(--nav-hover-bg);
}

[data-bs-theme="light"] .nav-item.active {
    background: rgba(250, 35, 59, 0.08);
    color: var(--accent);
    font-weight: 600;
}

[data-bs-theme="light"] .player-bar {
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.95);
}

/* Light mode contrast fixes */
[data-bs-theme="light"] .btn-outline-light {
    color: var(--text-main);
    border-color: var(--border-color);
    background-color: transparent;
}
[data-bs-theme="light"] .btn-outline-light:hover,
[data-bs-theme="light"] .btn-outline-light:focus {
    color: var(--text-main);
    background-color: var(--card-hover-bg);
    border-color: var(--accent);
}
[data-bs-theme="light"] .badge.bg-white {
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
}

[data-bs-theme="light"] .bg-theme-card .text-white,
[data-bs-theme="light"] .bg-theme-input .text-white,
[data-bs-theme="light"] .bg-gradient-distribution .text-white {
    color: var(--text-main) !important;
}
[data-bs-theme="light"] .bg-theme-card .text-white-50,
[data-bs-theme="light"] .bg-theme-input .text-white-50,
[data-bs-theme="light"] .bg-gradient-distribution .text-white-50 {
    color: var(--text-secondary) !important;
}

[data-bs-theme="light"] .bg-gradient-text {
    background: linear-gradient(90deg, #111827, #6b7280);
}

[data-bs-theme="light"] .track-hero .text-white {
    color: #ffffff !important;
}
[data-bs-theme="light"] .track-hero .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}
[data-bs-theme="light"] .track-hero .badge.bg-white {
    background-color: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}
[data-bs-theme="light"] .track-hero .track-bg-blur {
    filter: blur(60px) brightness(0.6) !important;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Global Theme Transition */
.sidebar, .top-bar, .card-apple, .search-bar, .input-group-text, .form-control, .nav-item, .sidebar-footer, .player-bar, .dropdown-menu, .table, .table td, .table th {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Theme Toggle Button Animation - Wrapper Based Strategy */
.theme-toggle-btn {
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle-btn:active {
    transform: scale(0.9);
}

/* Wrapper Styles - The Stable Containers */
.theme-icon-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Icon Styles inside Wrapper */
.theme-icon-wrapper i,
.theme-icon-wrapper svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Visibility Logic based on Wrapper Classes */
[data-bs-theme="light"] .theme-icon-wrapper.light-mode-only {
    opacity: 1;
}
[data-bs-theme="light"] .theme-icon-wrapper.dark-mode-only {
    opacity: 0;
}

[data-bs-theme="dark"] .theme-icon-wrapper.dark-mode-only {
    opacity: 1;
}
[data-bs-theme="dark"] .theme-icon-wrapper.light-mode-only {
    opacity: 0;
}

/* Button rotation provides the movement */
.theme-toggle-btn.rotate {
    transform: rotate(180deg);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

a:hover {
    color: var(--text-main);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Sidebar */
.sidebar {
    /* position: fixed; Removed to allow Grid layout to work */
    /* top: 0; */
    /* left: 0; */
    width: var(--sidebar-width);
    height: 100%; /* Changed from 100vh to 100% to fit within Grid row */
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Prevent spillover */
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 1rem;
    min-height: 0; /* Critical for flex scrolling */
}

/* Ensure ad container doesn't shrink awkwardly but allows scrolling if needed */
.sidebar .ad-container {
    flex-shrink: 0;
    margin-bottom: 0 !important;
    padding-bottom: 1rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-sidebar);
}

.btn-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.75rem;
    background: var(--accent);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.btn-sidebar:hover {
    opacity: 0.9;
    color: white;
}

/* Theme Utilities */
.text-main { color: var(--text-main) !important; }
.text-secondary-theme { color: var(--text-secondary) !important; }
.bg-theme-card { background-color: var(--card-bg) !important; }
.border-theme { border-color: var(--border-color) !important; }
.bg-theme-input { background-color: var(--input-bg) !important; color: var(--input-text) !important; border-color: var(--border-color) !important; }
.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; }

select.bg-theme-input,
select.form-select.bg-theme-input,
select.form-control.bg-theme-input {
    color: var(--input-text) !important;
    background-color: var(--input-bg) !important;
}

select.bg-theme-input option,
select.bg-theme-input optgroup {
    color: var(--text-main) !important;
    background-color: var(--bg-sidebar) !important;
}

.bg-gradient-accent {
    background: linear-gradient(180deg, rgba(250, 35, 59, 0.15) 0%, var(--bg-main) 100%);
}

.bg-gradient-distribution {
    background: linear-gradient(135deg, rgba(250, 35, 59, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
}

.bg-gradient-text {
    background: linear-gradient(90deg, #fff, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    color: white;
}
.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background-color: #d41f32 !important;
    border-color: #d41f32 !important;
}

.btn-outline-theme {
    color: var(--text-secondary);
    border-color: var(--border-color);
    background: transparent;
    transition: all 0.2s;
}

.btn-outline-theme:hover, .btn-outline-theme.active, .btn-check:checked + .btn-outline-theme {
    color: var(--text-main);
    border-color: var(--accent);
    background: var(--card-hover-bg);
    box-shadow: 0 0 0 2px rgba(250, 35, 59, 0.1);
}

.bg-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.object-fit-cover { object-fit: cover; }

/* Missing Utilities from previous updates */
.bg-cover { background-size: cover; background-repeat: no-repeat; }
.bg-center { background-position: center; }
img, video { max-width: 100%; height: auto; }
.text-break { word-wrap: break-word; overflow-wrap: anywhere; }

.discover-tile { height: 170px; background-size: cover; background-position: center; border-radius: 12px; overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease; }
.discover-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.45)); }
.discover-label { position: absolute; bottom: 0; left: 0; padding: 14px; color: #fff; font-weight: 800; letter-spacing: 0.3px; }
.discover-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,0.25); }
.live-badge { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff; font-weight: 700; border-radius: 999px; padding: 6px 10px; box-shadow: 0 6px 16px rgba(0,0,0,0.3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.6; } 100% { transform: scale(1); opacity: 1; } }

/* Layout */
.app-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-template-rows: 1fr 90px;
    height: 100vh;
}

/* Sidebar Overlay - Critical for Grid Layout */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(4px);
}

.sidebar-overlay.active {
    display: block;
}

@media (min-width: 769px) {
    .sidebar-overlay {
        display: none !important;
    }
}

.main-content {
    background: var(--bg-main);
    overflow-y: auto;
    padding-bottom: 96px;
    display: flex;
    flex-direction: column;
}

.content-scroll {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

/* Player Bar Container */
.player-bar {
    position: fixed;
    left: var(--sidebar-width);
    right: 0;
    bottom: 0;
    background: var(--bg-player);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

/* Horizontal Scroll Utilities */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scroll-horizontal {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding-bottom: 1rem;
    padding-left: 4px; 
    padding-right: 4px;
    scroll-behavior: smooth;
}

.scroll-item {
    flex: 0 0 auto;
    width: 180px;
    transition: transform 0.3s ease;
}

.scroll-item:hover {
    transform: translateY(-5px);
}

.scroll-item-lg {
    flex: 0 0 auto;
    width: 300px;
}

/* Apple Music Style Cards */
.card-apple {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-apple:hover {
    background: var(--card-hover-bg);
    border-color: var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-gradient {
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 100%);
}

.text-shadow-sm {
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hover-scale-img {
    overflow: hidden;
    border-radius: 8px;
}

.hover-scale-img img {
    transition: transform 0.5s ease;
}

.hover-scale-img:hover img {
    transform: scale(1.1);
}

.btn-play-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border: none;
    color: white;
}

.scroll-item:hover .btn-play-overlay,
.card-apple:hover .btn-play-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Icon Sizing */
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 18px; height: 18px; }
.icon-md { width: 24px; height: 24px; }
.icon-lg { width: 32px; height: 32px; }
.icon-xl { width: 48px; height: 48px; }

/* Fixed Width/Height Utilities */
.w-40px { width: 40px !important; }
.h-40px { height: 40px !important; }
.w-48px { width: 48px !important; }
.h-48px { height: 48px !important; }

@media (max-width: 768px) {
    .w-40px { width: 32px !important; }
    .h-40px { height: 32px !important; }
    .w-48px { width: 40px !important; }
    .h-48px { height: 40px !important; }
}

.hero-rail-container { position: relative; border-radius: 18px; overflow: hidden; }
.hero-rail-container::before { content: ""; position: absolute; inset: 0; background-image: var(--hero-bg); background-size: cover; background-position: center; filter: blur(28px) brightness(0.6); transform: scale(1.08); }
.hero-rail-container::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at top, rgba(0,0,0,0.35), transparent 60%), linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.6)); }
.hero-rail-container > * { position: relative; z-index: 1; }
.hero-rail { display: flex; gap: 1.25rem; overflow-x: auto; scroll-behavior: smooth; padding: 1rem 4rem; min-height: 420px; scroll-snap-type: x mandatory; }
.hero-slide { flex: 0 0 auto; width: clamp(860px, 90vw, 1180px); height: 420px; border-radius: 20px; overflow: hidden; position: relative; background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 18px 50px rgba(0,0,0,0.35); scroll-snap-align: center; transform: scale(0.96); transition: transform .5s ease; }
.hero-slide.is-center { transform: scale(1); }
.hero-info-overlay { position: absolute; left: 24px; bottom: 24px; z-index: 2; }
.hero-title { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.hero-artist { font-size: 1rem; opacity: 0.9; }
.hero-cover { width: 100%; height: 100%; background-size: cover; background-position: center; position: relative; }
.hero-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.6)); }
.hero-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-color); background: var(--glass-bg); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; z-index: 2; color: var(--text-main); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.hero-nav:hover { background: var(--card-hover-bg); }
.hero-nav-prev { left: 8px; }
.hero-nav-next { right: 8px; }

@media (max-width: 992px) {
  .hero-slide { width: 92vw; height: 340px; border-radius: 18px; }
  .hero-rail { padding: 0.75rem 3rem; min-height: 340px; }
}

@media (max-width: 768px) {
  .hero-slide { width: 94vw; height: 300px; }
  .hero-title { font-size: 1.6rem; }
  .hero-title { font-size: 1.6rem; }
  .hero-rail { padding: 0.75rem 2.5rem; min-height: 300px; }
}

.hero-progress { position: absolute; left: 24px; right: 24px; bottom: 14px; height: 4px; background: rgba(255,255,255,0.25); border-radius: 999px; overflow: hidden; z-index: 2; }
.hero-progress-bar { height: 100%; width: 0; background: var(--accent); transition: width .08s linear; }

/* Search Suggestions */
.suggestions-dropdown { position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,0.35); max-height: 360px; overflow-y: auto; z-index: 1080; }
.suggestion-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-decoration: none; color: var(--text-main); }
.suggestion-item:hover { background: var(--card-hover-bg); }
.suggestion-left { width: 38px; height: 38px; min-width: 38px; border-radius: 8px; overflow: hidden; }
.suggestion-left img { width: 100%; height: 100%; object-fit: cover; display: block; }
.suggestion-item .title { font-weight: 700; line-height: 1.1; }
.suggestion-item .subtitle { font-size: 0.85rem; color: var(--text-secondary); }
.suggestion-divider { padding: 6px 12px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); }

@media (max-width: 576px) {
  .suggestions-dropdown { left: -8px; right: -8px; }
}

/* Queue Drawer */
.queue-drawer { position: fixed; right: 16px; bottom: 88px; width: 360px; max-height: 60vh; background: var(--card-bg); background-color: rgba(16,16,16,0.96); border: 1px solid var(--border-color); border-radius: 16px; box-shadow: 0 24px 64px rgba(0,0,0,0.6); z-index: 1050; display: none; overflow: hidden; }
.queue-drawer.open { display: block; animation: slideUp .2s ease-out; }
.queue-header { padding: 12px 14px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; background: inherit; }
.queue-list { max-height: calc(60vh - 56px); overflow-y: auto; }
.queue-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border-color); background: transparent; }
.queue-item.active { background: var(--card-hover-bg); }
.queue-cover { width: 44px; height: 44px; min-width: 44px; border-radius: 8px; overflow: hidden; }
.queue-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.queue-meta { flex: 1; min-width: 0; }
.queue-meta .title { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-meta .artist { font-size: .85rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-actions { display: flex; gap: 6px; }
.queue-actions .btn-icon { border: 1px solid var(--border-color); background: var(--glass-bg); color: var(--text-main); width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.queue-empty { padding: 16px; color: var(--text-secondary); text-align: center; }

@keyframes slideUp { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

@media (max-width: 768px) {
  .queue-drawer { left: 12px; right: 12px; width: auto; bottom: 76px; max-height: 50vh; }
}

/* Track Context Menu */
.track-menu { position: fixed; min-width: 180px; max-width: 240px; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,0.4); z-index: 2000; display: none; overflow: hidden; }
.track-menu.open { display: block; animation: fadeIn .12s ease-out; }
.track-menu .menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; color: var(--text-main); }
.track-menu .menu-item:hover { background: var(--card-hover-bg); }
.track-menu .menu-item i, .track-menu .menu-item svg { width: 18px; height: 18px; }
.track-menu .menu-title { font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border-color); }
.track-menu .menu-divider { height: 1px; background: var(--border-color); margin: 4px 0; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px);} to { opacity:1; transform: translateY(0);} }
 
.queue-item.drag-over { background: var(--card-hover-bg); }

/* Visible options button on track cards */
.play-trigger { position: relative; }
.track-more-btn { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-color); background: var(--glass-bg); color: var(--text-main); display: inline-flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s ease; z-index: 3; }
.play-trigger:hover .track-more-btn { opacity: 1; }
.track-more-btn i, .track-more-btn svg { width: 16px; height: 16px; }
@media (max-width: 768px) {
  .track-more-btn { opacity: 1; }
}

/* Queue badge */
#queueToggle { position: relative; }
.queue-badge { position: absolute; top: -2px; right: -2px; background: #fa233b; color: #fff; border-radius: 999px; padding: 0 6px; font-size: 10px; line-height: 16px; height: 16px; min-width: 16px; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--card-bg); }

/* Sidebar Components */
.sidebar-header {
    margin-bottom: 2rem;
    padding-left: 0.5rem;
}

.brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand img {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.brand-accent {
    color: var(--accent);
}

.nav-group {
    margin-bottom: 2rem;
}

.nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-secondary);
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.nav-item:hover {
    color: var(--text-main);
    background: var(--nav-hover-bg);
}

.nav-item.active {
    color: var(--text-main);
    background: rgba(250, 35, 59, 0.1);
}

.nav-item.active .icon {
    color: var(--accent);
}

/* Light theme tweaks */
[data-bs-theme="light"] .bottom-nav .nav-item {
    background: transparent !important;
}
[data-bs-theme="light"] .sidebar {
    background: var(--bg-sidebar);
}
/* Image Sizing Utilities for Dashboard/Tables */
.table-img-sm {
    width: 40px;
    height: 40px;
    object-fit: cover;
}

.profile-image-lg {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

/* Top Bar & Search */
.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--top-bar-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

/* Small-screen refinements */
@media (max-width: 576px) {
    .top-bar { padding: 0.75rem 1rem; }
    .sidebar { width: 220px; }
    .discover-tile { height: 140px; }
    .search-bar { max-width: 100%; }
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    width: 100%;
    max-width: 400px;
    gap: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.search-bar:focus-within {
    background: var(--input-bg);
    color: var(--text-main);
    box-shadow: 0 0 0 1px var(--border-color);
}

/* Search Suggestions Dropdown */
.search-bar .dropdown-menu {
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    background-color: rgba(12, 12, 14, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
    z-index: 1100;
}

.search-bar input {
    background: transparent;
    border: none;
    color: inherit;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
}

.search-bar input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Mobile Fullscreen Player */
.mobile-player-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    padding: 16px;
    background: rgba(0,0,0,0.9);
    overflow-y: auto;
    backdrop-filter: blur(12px);
}
.mobile-player-overlay.active { display: block; }
.mobile-player-overlay::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: var(--mobile-bg);
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    opacity: 0.25;
    z-index: -1;
}
.mobile-player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.mobile-player-art {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}
.mobile-player-art .mobile-cover {
    width: 70vw;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.mobile-player-info { margin-bottom: 8px; }
.mobile-player-controls .ctrl-btn.play-pause {
    background: #fff;
    color: #000;
    padding: 0.5rem;
}
.mobile-player-controls .ctrl-btn.play-pause i {
    width: 36px;
    height: 36px;
}
.mobile-player-controls .ctrl-btn { opacity: 0.85; }
.mobile-player-controls .ctrl-btn:hover { opacity: 1; }
.mobile-mini-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
}
.mobile-mini-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
}

/* Player Styles */
.player-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 90px;
}

.player-info {
    display: flex;
    align-items: center;
    width: 30%;
    min-width: 200px;
}

.player-cover {
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 1rem;
    background: #333;
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: 1rem;
    overflow: hidden;
}

.track-title {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.track-artist {
    color: var(--text-secondary);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40%;
    max-width: 600px;
}

.control-buttons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.ctrl-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ctrl-btn:hover {
    color: var(--text-main);
}

.ctrl-btn.play-pause {
    color: var(--text-main);
    transform: scale(1.1);
}
.ctrl-btn.play-pause:hover {
    transform: scale(1.2);
    color: var(--accent);
}

.ctrl-btn i {
    width: 20px;
    height: 20px;
}
.ctrl-btn.play-pause i {
    width: 32px;
    height: 32px;
}

.progress-bar {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.time {
    font-size: 0.75rem;
    color: var(--text-secondary);
    min-width: 35px;
    text-align: center;
}

.progress-track {
    flex-grow: 1;
    height: 4px;
    background: var(--track-bg);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--text-main);
    width: 0%;
    border-radius: 2px;
    transition: background 0.2s;
}

.progress-track:hover .progress-fill {
    background: var(--accent);
}

.player-volume {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 30%;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.volume-track {
    width: 100px;
    height: 4px;
    background: var(--track-bg);
    border-radius: 2px;
    cursor: pointer;
    overflow: hidden;
}

.volume-fill {
    height: 100%;
    background: var(--text-secondary);
    width: 100%;
    border-radius: 2px;
}

.volume-track:hover .volume-fill {
    background: var(--text-main);
}

/* Mobile Menu Btn */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .app-layout {
        grid-template-columns: 1fr;
    }
    .main-content {
        padding-bottom: 0;
    }
    .sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        bottom: 0;
        z-index: 1001;
        transition: left 0.3s ease;
        width: 260px;
    }
    .sidebar.active {
        left: 0;
    }
    .mobile-menu-btn {
        display: block;
    }
    .player-bar {
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: calc(64px + 8px);
        height: 64px;
        border-radius: 12px;
        padding: 8px 12px;
        background: var(--bg-player);
        backdrop-filter: blur(12px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.35);
        z-index: 1002;
    }
    .player-controls { height: 64px; }
    .player-info { width: auto; min-width: 0; flex: 1; }
    .player-center { display: flex; width: auto; justify-content: flex-end; align-items: center; }
    .control-buttons { gap: 0.75rem; }
    .player-volume { display: none; }
    .search-bar { display: none; }
}

/* Mobile mini progress bar (inside mini player) */
.mobile-mini-progress {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}
.mobile-mini-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--bg-player);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
}
.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 11px;
}
.bottom-nav .nav-item.active { color: var(--text-main); }
.avatar-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 2px;
}

.group { position: relative; }

.group:hover .group-hover-opacity-100 {
    opacity: 1 !important;
}

.group:hover .group-hover-opacity {
    opacity: 1 !important;
}

.opacity-0 { opacity: 0; }
.transition { transition: all 0.3s ease; }

.mw-180 { max-width: 180px; }
.cursor-pointer { cursor: pointer; }

.auth-split-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.auth-side-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    background: var(--bg-main);
    max-width: 600px;
}

.auth-side-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 4rem;
}

html.is-navigating *,
html.is-navigating *::before,
html.is-navigating *::after {
  transition: none !important;
  animation: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  will-change: auto !important;
}
html.is-navigating .player-bar {
  backdrop-filter: none !important;
}
html.is-navigating #swup {
  pointer-events: none !important;
}
/* Reduce render cost during SPA swaps */
html.is-navigating #swup {
  content-visibility: hidden !important;
  contain: content !important;
}
.player-bar {
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

/* Default placeholder auth background */
.auth-side-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
}

.auth-quote {
    position: relative;
    color: white;
    z-index: 2;
    max-width: 600px;
}

.auth-input-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.auth-input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-main);
    transition: all 0.2s ease;
    font-size: 1rem;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(250, 35, 59, 0.1);
}

@media (max-width: 992px) {
    .auth-side-image {
        display: none;
    }
    .auth-side-form {
        max-width: 100%;
        padding: 2rem;
    }
}

.nav-pills .nav-link {
    color: var(--text-main) !important;
    background-color: var(--bg-theme-card);
    border: 1px solid var(--border-color);
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.nav-pills .nav-link:hover {
    color: var(--text-main) !important;
    background-color: var(--card-hover-bg);
    border-color: var(--border-color);
}

.nav-pills .nav-link.active {
    background-color: var(--accent) !important;
    color: #ffffff !important;
    border-color: var(--accent) !important;
}

.custom-radio-card label {
    transition: all 0.2s;
}
.bg-primary-subtle {
    background-color: rgba(250, 35, 59, 0.1) !important; /* Red Tint */
}
.filter-grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.2s;
}
.custom-radio-card input:checked + label .filter-grayscale {
    filter: grayscale(0%);
    opacity: 1;
}
.custom-radio-card input:checked + label {
    border-color: #fa233b !important; /* Brand Red */
    border-color: var(--accent) !important;
    background-color: var(--bg-primary-subtle);
}

/* Dark Mode Logo & Text Visibility Fixes */
[data-bs-theme="dark"] .filter-grayscale {
    filter: grayscale(100%) brightness(0) invert(0.6); /* Light Grey for inactive */
}
[data-bs-theme="dark"] .custom-radio-card input:checked + label .filter-grayscale {
    filter: brightness(0) invert(1); /* Pure White for active */
}
[data-bs-theme="dark"] .custom-radio-card input:checked + label .text-secondary-theme {
    color: var(--text-main) !important; /* Pure White text for active */
}
[data-bs-theme="dark"] .custom-radio-card label:hover {
    background-color: var(--card-hover-bg);
}

.border-primary {
    border-color: #0d6efd !important;
}

.shadow-primary {
    box-shadow: 0 4px 15px rgba(250, 35, 59, 0.4); /* Red Shadow */
}

.btn-primary-theme {
    background-color: #fa233b !important; /* Brand Red */
    background-color: var(--accent) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 1rem 2rem !important;
    display: block !important;
    width: 100% !important;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
}
.btn-primary-theme:hover {
    background-color: #d41c30 !important; /* Darker Red */
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(250, 35, 59, 0.5);
    color: #ffffff !important;
}

/* Profile Avatar Style */
.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: opacity 0.2s;
}

.user-avatar:hover {
    opacity: 0.9;
}

/* Fix for Quick Actions buttons using btn-outline-white */
.btn-outline-white {
    color: var(--text-main);
    border: 1px solid var(--border-color);
    background: transparent;
    transition: all 0.2s ease;
}

.btn-outline-white:hover {
    color: var(--text-main);
    background: var(--card-hover-bg);
    border-color: var(--accent);
}

/* SweetAlert2 Theme Alignment */
[data-bs-theme="dark"] .swal2-popup {
    background: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
[data-bs-theme="dark"] .swal2-title,
[data-bs-theme="dark"] .swal2-html-container {
    color: var(--text-main);
}
[data-bs-theme="dark"] .swal2-confirm {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}
[data-bs-theme="dark"] .swal2-cancel,
[data-bs-theme="dark"] .swal2-deny {
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    background: transparent !important;
}
[data-bs-theme="light"] .swal2-popup {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
[data-bs-theme="light"] .swal2-title,
[data-bs-theme="light"] .swal2-html-container {
    color: var(--text-main);
}
[data-bs-theme="light"] .swal2-confirm {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: #fff !important;
}
[data-bs-theme="light"] .swal2-cancel,
[data-bs-theme="light"] .swal2-deny {
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    background: transparent !important;
}

/* Footer Styles */
.main-footer {
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .main-footer {
        padding-bottom: 150px !important;
    }
}

.border-theme {
    border-color: var(--border-color) !important;
}

.main-footer .nav-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 0.25rem 0;
    transition: all 0.2s ease;
}

.main-footer .nav-link:hover {
    color: var(--accent);
    padding-left: 5px;
}

.main-footer .social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--glass-bg);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.main-footer .social-link:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

.main-footer .form-control {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.main-footer .form-control:focus {
    background: var(--glass-bg);
    border-color: var(--accent);
    box-shadow: none;
    color: var(--text-main);
}

/* Mobile Browse/Search Redesign */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.horizontal-scroll-card {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.horizontal-scroll-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 100%);
}
.horizontal-scroll-card span {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 2;
    line-height: 1.2;
}

.browse-category-card {
    height: 100px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    padding: 12px;
    transition: transform 0.2s;
}
.browse-category-card:active {
    transform: scale(0.98);
}
.browse-category-card h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    position: relative;
    z-index: 2;
    max-width: 70%;
}
.browse-category-card img {
    position: absolute;
    right: -18px;
    bottom: -10px;
    width: 75px;
    height: 75px;
    transform: rotate(25deg);
    box-shadow: -4px 4px 12px rgba(0,0,0,0.3);
    border-radius: 6px;
    object-fit: cover;
}
@media (max-width: 576px) {
    .table-mobile-cards thead {
        display: none;
    }
    .table-mobile-cards tbody,
    .table-mobile-cards tr,
    .table-mobile-cards td {
        display: block;
        width: 100%;
    }
    .table-mobile-cards tr {
        background: var(--bg-theme-card);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
    }
    .table-mobile-cards td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.35rem 0;
        border: 0;
    }
    .table-mobile-cards td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-secondary);
        margin-right: 1rem;
    }
    .table-mobile-cards td.text-end {
        justify-content: flex-end;
    }
}
