/**
 * muzooi Platform - Global Design System
 * Consistent forms, spacing, sections, and components
 */
/* ============================================
   Design Tokens
   ============================================ */
:root{
    /* Colors */
    --black: #000;
    --white: #fff;
    --gray-50: #fafafa;
    --gray-100: #f4f4f5;
    --gray-200: #e4e4e7;
    --gray-300: #d4d4d8;
    --gray-400: #a1a1aa;
    --gray-500: #71717a;
    --gray-600: #52525b;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    
    /* Brand */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-contrast: #ffffff;
    --success: #16a34a;
    --success-light: #f0fdf4;
    --danger: #dc2626;
    --danger-light: #fef2f2;
    --warning: #d97706;
    --warning-light: #fffbeb;
    
    /* Semantic - Light Mode (default) */
    --bg: var(--background, var(--gray-50));
    --bg-primary: var(--white);
    --bg-secondary: var(--gray-100);
    --bg-tertiary: var(--gray-50);
    --surface: var(--white);
    --surface-hover: var(--gray-50);
    --border: var(--gray-200);
    --border-color: var(--gray-200);
    --text: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-400);
    --input-bg: var(--white);
    --card-bg: var(--white);
    --modal-bg: var(--white);
    --dropdown-bg: var(--white);
    --code-bg: var(--gray-100);
    
    /* Typography */
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 12px;
    --space-lg: 16px;
    --space-xl: 24px;
    --space-2xl: 32px;
    --space-3xl: 48px;
    
    /* Consistent gaps */
    --section-gap: 24px;
    --element-gap: 16px;
    --form-gap: 20px;
    --input-margin: 6px;
    --btn-gap: 5px; /* Consistent spacing between buttons/icons */
    
    /* Sizing */
    --input-height: 44px;
    --input-height-sm: 36px;
    --input-height-lg: 52px;
    --radius-full: 9999px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --form-radius: 8px; /* Consistent radius for all form inputs */
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 2px 4px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
}
/* ============================================
   Dark Mode
   ============================================ */
:root[data-theme="dark"],
[data-theme="dark"]{
    --bg: #0f0f10;
    --bg-primary: #18181b;
    --bg-secondary: #1f1f23;
    --bg-tertiary: #27272a;
    --surface: #1f1f23;
    --surface-hover: #27272a;
    --border: #3f3f46;
    --border-color: #3f3f46;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --input-bg: #27272a;
    --card-bg: #1f1f23;
    --modal-bg: #1f1f23;
    --dropdown-bg: #27272a;
    --code-bg: #27272a;
    --white: #1f1f23;
    --black: #fafafa;
    
    /* Adjusted brand colors for dark mode */
    --primary-light: rgba(37, 99, 235, 0.15);
    --success-light: rgba(22, 163, 74, 0.15);
    --danger-light: rgba(220, 38, 38, 0.15);
    --warning-light: rgba(217, 119, 6, 0.15);
    
    /* Shadows in dark mode */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 2px 4px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.4);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    
    /* Gray scale inverted for dark */
    --gray-50: #27272a;
    --gray-100: #3f3f46;
    --gray-200: #52525b;
    --gray-300: #71717a;
    --gray-400: #a1a1aa;
    --gray-500: #d4d4d8;
    --gray-600: #e4e4e7;
    --gray-700: #f4f4f5;
    --gray-800: #fafafa;
    --gray-900: #ffffff;
}
/* Dark mode body background */
[data-theme="dark"] body{
    background-color: var(--bg);
    color: var(--text);
}
/* Dark mode specific overrides */
[data-theme="dark"] .section,
[data-theme="dark"] .card{
    background: var(--card-bg);
    border-color: var(--border);
}
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea{
    background: var(--input-bg);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder{
    color: var(--text-muted);
}
[data-theme="dark"] .modal{
    background: var(--modal-bg);
}
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] .profile-menu,
[data-theme="dark"] .nav-dropdown-menu,
[data-theme="dark"] .admin-menu{
    background: var(--dropdown-bg);
    border-color: var(--border);
}
[data-theme="dark"] .btn-secondary{
    background: var(--bg-tertiary);
    border-color: var(--border);
    color: var(--text);
}
[data-theme="dark"] .btn-secondary:hover{
    background: var(--surface-hover);
}
[data-theme="dark"] .table th,
[data-theme="dark"] .table td{
    border-color: var(--border);
}
[data-theme="dark"] .table thead{
    background: var(--bg-secondary);
}
[data-theme="dark"] .alert{
    border-color: var(--border);
}
[data-theme="dark"] .tab{
    color: var(--text-secondary);
}
[data-theme="dark"] .tab:hover{
    background: var(--surface-hover);
}
[data-theme="dark"] hr{
    border-color: var(--border);
}
[data-theme="dark"] code{
    background: var(--code-bg);
}
[data-theme="dark"] .search-card,
[data-theme="dark"] .song-card,
[data-theme="dark"] .review-item{
    background: var(--card-bg);
    border-color: var(--border);
}
[data-theme="dark"] .cookie-notice{
    background: var(--bg-secondary);
    border-top-color: var(--border);
}
/* ============================================
   Reset
   ============================================ */
*, *::before, *::after{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html{
    /* v99: base font size comes from admin > Branding > Typography > Base Font
       Size so rem-based descendants scale with the setting. */
    font-size: var(--font-size-base, 16px);
    -webkit-font-smoothing: antialiased;
    height: 100%;
}
body{
    font-family: var(--font);
    font-size: var(--font-size-base, 16px);
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
}
/* Sticky Footer Layout */
body.site-wrapper{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
body.site-wrapper > main{
    flex: 1 0 auto;
}
body.site-wrapper > .footer{
    flex-shrink: 0;
}
a{
    color: var(--primary);
    text-decoration: none;
}
a:hover,
a:focus,
a:active{
    color: var(--primary-hover);
    text-decoration: none;
}
img{
    max-width: 100%;
    display: block;
    border: none;
    outline: none;
}
/* Remove any focus outlines on images */
img:focus,
img:active{
    outline: none;
    border: none;
}
/* Remove focus outline on clickable images */
a img,
button img{
    outline: none;
    border: none;
}
button{
    font-family: inherit;
    cursor: pointer;
}
input, select, textarea, button{
    font-size: inherit;
    font-family: inherit;
}
hr{
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-xl) 0;
}
/* ============================================
   Layout
   ============================================ */
.container{
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}
.container-sm{ max-width: 540px; }
.container-md{ max-width: 720px; }
.container-lg{ max-width: 900px; }
.page-content{
    padding: var(--space-2xl) 0;
}
/* ============================================
   Header
   ============================================ */
.logo{
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}
.logo:hover{
    text-decoration: none;
}
.logo-image{
    height: 32px;
    width: auto;
}
.nav{
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-left: auto;
}
.nav-link{
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}
/* Icon links in nav have different styling */
.nav-link.nav-icon-link{
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-link:hover{
    color: var(--text);
    background: var(--gray-100);
    text-decoration: none;
}
.nav-link.active{
    color: var(--primary-contrast);
    background: var(--primary);
}
/* ============================================
   Nav Dropdowns (Discover, Compete, etc.)
   ============================================ */
.nav-dropdown{
    position: relative;
    display: inline-block;
}
.nav-dropdown .nav-dropdown-toggle{
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
}
.nav-dropdown.active > .nav-dropdown-toggle{
    color: var(--primary-contrast);
    background: var(--primary);
}
.nav-dropdown-menu{
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 200px;
    background: var(--dropdown-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    padding: var(--space-xs) 0;
    z-index: 200;
    display: none;
    flex-direction: column;
}
.nav-dropdown.open > .nav-dropdown-menu{
    display: flex;
}
.nav-dropdown-item{
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.12s;
    white-space: nowrap;
}
.nav-dropdown-item:hover{
    background: var(--surface-hover);
    text-decoration: none;
    color: var(--text);
}
.nav-dropdown-item.active{
    color: var(--primary);
    background: var(--surface-hover);
    font-weight: 600;
}
/* End nav dropdowns */
/* ============================================
   Admin dropdown (left of user avatar)
   ============================================ */
.admin-dropdown{
    position: relative;
    display: inline-block;
}
.admin-menu{
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: var(--dropdown-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    padding: var(--space-xs) 0;
    z-index: 200;
    display: none;
    flex-direction: column;
}
.admin-dropdown.open > .admin-menu{
    display: flex;
}
.admin-menu-header{
    padding: var(--space-sm) var(--space-md);
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}
.admin-menu-item{
    display: flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.12s;
    white-space: nowrap;
}
.admin-menu-item:hover{
    background: var(--surface-hover);
    color: var(--text);
    text-decoration: none;
}
/* ============================================
   Profile menu dark-mode toggle row
   ============================================ */
.profile-menu-toggle{
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
}
.profile-menu-toggle:hover{
    background: var(--surface-hover);
    color: var(--text);
}
.profile-menu-toggle-state{
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding: 2px 10px;
    background: var(--surface-hover);
    border-radius: var(--radius-pill, 999px);
}
.profile-menu-toggle:hover .profile-menu-toggle-state{
    background: var(--bg-secondary);
}
.profile-menu-toggle.is-on .profile-menu-toggle-state{
    background: var(--primary);
    color: var(--primary-contrast);
}
/* ============================================
   Toggle Switch (admin settings)
   ============================================ */
.switch{ display: inline-flex; align-items: center; gap: var(--space-sm); cursor: pointer; user-select: none; }
.switch input{ display: none; }
.switch-slider{
    position: relative;
    width: 38px;
    height: 22px;
    background: var(--border);
    border-radius: var(--radius-pill, 999px);
    transition: background 0.2s;
    flex-shrink: 0;
}
.switch-slider::after{
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: var(--radius-pill, 999px);
    transition: transform 0.2s;
}
.switch input:checked + .switch-slider{ background: var(--primary); }
.switch input:checked + .switch-slider::after{ transform: translateX(16px); }
/* User Menu */
.user-menu{
    display: flex;
    align-items: center;
    gap: 2px;
}
.credit-badge{
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    margin-left: 4px;
}
.credit-badge:hover{
    background: var(--primary);
    /* v126: hover movement removed */
}
.credit-badge:hover .credit-amount{
    color: var(--primary-contrast);
}
.credit-badge:hover .credit-icon{
    color: var(--primary-contrast);
}
.credit-icon{
    color: var(--primary);
    flex-shrink: 0;
    font-size: 16px;
}
.credit-amount{
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}
/* Nav Icon Link (for messages, notifications, etc) */
.nav-icon-link{
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 18px;
}
.nav-icon-link svg{
    width: 20px;
    height: 20px;
}
.nav-icon-link i{
    font-size: 18px;
}
.nav-icon-link:hover{
    background: var(--gray-100);
    color: var(--text);
}
.nav-icon-link.active{
    background: var(--primary);
    color: var(--primary-contrast);
}
.nav-icon-badge{
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm, 9px);
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Autocomplete Dropdown */
.autocomplete-dropdown{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 4px;
}
.autocomplete-item{
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 1px solid var(--border);
}
.autocomplete-item:last-child{
    border-bottom: none;
}
.autocomplete-item:hover{
    background: var(--gray-50);
}
.autocomplete-item.text-muted{
    cursor: default;
}
.autocomplete-item.text-muted:hover{
    background: transparent;
}
/* Profile Dropdown */
.profile-dropdown{
    position: relative;
    z-index: 1000;
}
.profile-trigger{
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border);
    background: var(--gray-100);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
    transition: border-color 0.15s;
}
.profile-trigger:hover{
    border-color: var(--gray-300);
}
.profile-trigger img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-avatar{
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    object-fit: cover;
}
.profile-avatar-placeholder{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-menu{
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 260px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    /* v126: hover movement removed */
    transition: all 0.15s;
    z-index: 1001;
    overflow: hidden;
}
.profile-dropdown.open .profile-menu{
    opacity: 1;
    visibility: visible;
    /* v126: hover movement removed */
}
.profile-menu-header{
    padding: var(--space-lg);
    background: var(--gray-50);
    border-bottom: 1px solid var(--border);
}
.profile-info strong{
    display: block;
    font-size: 15px;
}
.profile-info .text-muted{
    font-size: 13px;
}
.profile-menu-section{
    padding: var(--space-sm);
}
.profile-menu-section + .profile-menu-section{
    border-top: 1px solid var(--border);
}
.profile-menu-item{
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--text);
    font-size: 14px;
    transition: background 0.1s, color 0.1s;
    text-decoration: none;
}
.profile-menu-item:hover{
    background: var(--surface-hover);
    color: var(--text);
    text-decoration: none;
}
.profile-menu-item-highlight{
    color: var(--primary);
    font-weight: 500;
}
.profile-menu-item-highlight:hover{
    background: var(--primary-light);
    color: var(--primary);
}
.profile-menu-label{
    padding: var(--space-sm) var(--space-md) var(--space-xs);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.profile-menu-logout{
    color: var(--text);
}
.profile-menu-logout:hover{
    background: var(--danger-light);
    color: var(--danger);
}
/* Notifications Dropdown */
.notifications-dropdown{
    position: relative;
    z-index: 1000;
}
/* Global Search */
.global-search-container{
    position: relative;
    z-index: 1001;
}
.search-trigger{
    cursor: pointer;
}
.search-dropdown{
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 400px;
    max-width: 90vw;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    /* v126: hover movement removed */
    transition: all 0.15s;
    overflow: hidden;
}
.global-search-container.open .search-dropdown{
    opacity: 1;
    visibility: visible;
    /* v126: hover movement removed */
}
.search-input-wrapper{
    display: flex;
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border);
    gap: var(--space-sm);
}
.search-input-wrapper input{
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    color: var(--text);
}
.search-input-wrapper input::placeholder{
    color: var(--text-muted);
}
.search-close{
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-xs);
}
.search-close:hover{
    color: var(--text);
}
.search-results{
    max-height: 400px;
    overflow-y: auto;
}
.search-hint{
    padding: var(--space-xl);
    text-align: center;
    color: var(--text-muted);
}
.search-loading{
    padding: var(--space-xl);
    text-align: center;
}
.search-category{
    border-bottom: 1px solid var(--border);
}
.search-category:last-child{
    border-bottom: none;
}
.search-category-header{
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-50);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.search-item{
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    cursor: pointer;
    transition: background 0.15s;
}
.search-item:hover{
    background: var(--gray-50);
}
.search-item-icon{
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}
.search-item-icon img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.search-item-content{
    flex: 1;
    min-width: 0;
}
.search-item-title{
    font-weight: 500;
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-item-subtitle{
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-footer{
    padding: var(--space-md);
    background: var(--gray-50);
    border-top: 1px solid var(--border);
    text-align: center;
}
.search-footer a{
    font-size: 0.9rem;
    font-weight: 500;
}
.search-no-results{
    padding: var(--space-xl);
    text-align: center;
    color: var(--text-muted);
}
.search-no-results i{
    font-size: 2rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}
.notifications-menu{
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-width: 90vw;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    /* v126: hover movement removed */
    transition: all 0.15s;
    z-index: 1001;
    overflow: hidden;
}
.notifications-dropdown.open .notifications-menu{
    opacity: 1;
    visibility: visible;
    /* v126: hover movement removed */
}
.notifications-header{
    padding: var(--space-md) var(--space-lg);
    background: var(--gray-50);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.notifications-header .btn-link{
    font-size: 0.85rem;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
}
.notifications-list{
    max-height: 400px;
    overflow-y: auto;
}
.notifications-loading{
    padding: var(--space-xl);
    text-align: center;
}
.notification-item{
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.15s;
}
.notification-item:hover{
    background: var(--gray-50);
}
.notification-item.unread{
    background: rgba(99, 102, 241, 0.05);
}
.notification-item.unread:hover{
    background: rgba(99, 102, 241, 0.1);
}
.notification-icon{
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    flex-shrink: 0;
}
.notification-item.unread .notification-icon{
    background: var(--primary);
    color: white;
}
.notification-content{
    flex: 1;
    min-width: 0;
}
.notification-title{
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.notification-message{
    font-size: 0.85rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.notification-time{
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.notifications-empty{
    padding: var(--space-xl);
    text-align: center;
    color: var(--text-muted);
}
.notifications-empty i{
    font-size: 2rem;
    margin-bottom: var(--space-md);
    opacity: 0.5;
}
.notifications-footer{
    padding: var(--space-md) var(--space-lg);
    background: var(--gray-50);
    border-top: 1px solid var(--border);
    text-align: center;
}
.notifications-footer a{
    font-size: 0.9rem;
    font-weight: 500;
}
/* ============================================
   Footer
   ============================================ */
.social-links{
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-md);
}
.social-links a{
    color: var(--text-secondary);
}
/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6{
    font-family: var(--font-family-headings, var(--font-family));
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: var(--space-lg);
}
h1{ font-size: var(--heading-h1-size, 2rem); }
h2{ font-size: var(--heading-h2-size, 1.5rem); }
h3{ font-size: var(--heading-h3-size, 1.25rem); }
h4{ font-size: 1.125rem; }
h5{ font-size: 1rem; }
p{
    margin-bottom: var(--space-md);
}
p:last-child{
    margin-bottom: 0;
}
/* ============================================
   Section Module (Standard Card Pattern)
   ============================================ */
.section,
.card{
    /* v122: route through --section-bg so admin's Section bg token wins everywhere
       in the cascade, not just when skin.css loads later. --section-bg itself
       falls back to --surface which falls back to --brand-background. */
    background: var(--section-bg, var(--surface));
    border-radius: var(--section-radius, var(--radius-lg));
    border: 1px solid var(--border);
    margin-bottom: var(--section-gap);
    display: flex;
    flex-direction: column;
}
.section:last-child,
.card:last-child{
    margin-bottom: 0;
}
.section-header,
.card-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    /* v115: padding is now controlled by the Theme tokens via the rule in skin.css
       (.section > .section-header / .card > .card-header). Keep a sensible
       fallback here for pages loaded before skin.css defines the vars. */
    padding: var(--section-padding-y, var(--space-lg)) var(--section-padding, var(--space-xl));
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
/* Tabs inside section header should be inline */
.section-header .tabs,
.card-header .tabs{
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    gap: var(--space-xs);
}
.section-title,
.card-title{
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}
.section-body,
.card-body{
    padding: var(--space-xl);
    overflow: hidden;
    min-width: 0;
    flex: 1;
}
.section-footer,
.card-footer{
    padding: var(--space-lg) var(--space-xl);
    background: var(--gray-50);
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
/* ============================================
   Page Header - Always Left Aligned
   ============================================ */
.page-header{
    margin-bottom: var(--section-gap);
    text-align: left;
}
/* Admin page header: title block on left, optional buttons + nav dropdown on right.
   Dropdown always anchors to the far right via margin-left: auto on the actions
   container. Stacks vertically below 720px. */
.admin-page-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--section-gap);
}
.admin-page-header > :first-child{
    flex: 1 1 auto;
    min-width: 240px;
}
.admin-page-actions{
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-left: auto;
    flex-wrap: wrap;
}
.admin-page-actions .form-select,
.admin-page-actions select.form-input{
    min-width: 180px;
}
@media (max-width: 720px) {.admin-page-header{ align-items: stretch; }
.admin-page-actions{ width: 100%; margin-left: 0; }
.admin-page-actions .form-select,
    .admin-page-actions select.form-input{ flex: 1; }}
.page-header.page-header-centered{
    text-align: center;
}
.page-header.page-header-centered .page-title,
.page-header.page-header-centered .page-subtitle{
    text-align: center;
}
.page-title{
    font-size: 28px;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    text-align: left;
}
.page-subtitle{
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 0;
    text-align: left;
}
/* ============================================
   Buttons - Pill Style (Consistent Height)
   ============================================ */
.btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    height: var(--input-height);
    padding: 0 var(--space-xl);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none;
    margin-right: var(--space-sm);
}
.btn:last-child{
    margin-right: 0;
}
.btn:hover{
    text-decoration: none;
}
.btn-primary{
    background: var(--primary);
    color: var(--primary-contrast);
}
.btn-primary:hover{
    background: var(--primary-hover);
    color: var(--primary-contrast);
}
.btn-secondary{
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover{
    background: var(--gray-50);
    border-color: var(--gray-300);
}
.btn-success{
    background: var(--success);
    color: #ffffff;
}
.btn-success:hover{
    background: #15803d;
}
.btn-danger{
    background: var(--danger);
    color: #ffffff;
}
.btn-danger:hover{
    background: #b91c1c;
}
.btn-ghost{
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover{
    background: var(--gray-100);
    color: var(--text);
}
.btn-link{
    background: none;
    border: none;
    color: var(--primary);
    padding: 0;
    height: auto;
    font-weight: 500;
}
.btn-link:hover{
    text-decoration: underline;
}
/* Button sizes */
.btn-sm{
    height: var(--input-height-sm);
    padding: 0 var(--space-lg);
    font-size: 13px;
}
.btn-lg{
    height: var(--input-height-lg);
    padding: 0 var(--space-2xl);
    font-size: 16px;
}
.btn-block{
    width: 100%;
}
.btn-icon{
    width: var(--input-height);
    padding: 0;
}
.btn-icon.btn-sm{
    width: var(--input-height-sm);
}
/* Button Groups - Consistent spacing */
.btn-group{
    display: flex;
    gap: var(--btn-gap);
    align-items: center;
}
.btn-group-vertical{
    display: flex;
    flex-direction: column;
    gap: var(--btn-gap);
}
/* Circular Icon Buttons */
.icon-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}
.icon-btn:hover{
    /* v126: hover movement removed */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.icon-btn-secondary{
    background: var(--gray-200);
    color: var(--text);
}
.icon-btn-secondary:hover{
    background: var(--gray-300);
}
.icon-btn-primary{
    background: var(--primary);
    color: white;
}
.icon-btn-primary:hover{
    background: var(--primary-hover);
}
.icon-btn-success{
    background: var(--success);
    color: white;
}
.icon-btn-success:hover{
    background: #15803d;
}
.icon-btn-warning{
    background: var(--warning);
    color: white;
}
.icon-btn-warning:hover{
    background: #b45309;
}
.icon-btn-danger{
    background: var(--danger);
    color: white;
}
.icon-btn-danger:hover{
    background: #b91c1c;
}
/* ============================================
   Form Elements - Global Consistent Style
   Labels always above, proper spacing
   ============================================ */
.form-group{
    margin-bottom: var(--form-gap);
}
.form-group:last-child{
    margin-bottom: 0;
}
.checkbox-label{
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    cursor: pointer;
    font-size: 0.95rem;
}
.checkbox-label input[type="checkbox"]{
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--primary);
}
.checkbox-label span{
    line-height: 1.4;
}
.form-label,
.form-group > label{
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    color: var(--text);
}
/* All form inputs - consistent styling with margins */
.form-input,
.form-select,
.form-textarea,
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea{
    width: 100%;
    height: var(--input-height);
    padding: 0 var(--space-lg);
    font-size: 15px;
    color: var(--text);
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--form-radius);
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin-top: var(--input-margin);
    margin-bottom: var(--input-margin);
    margin-right: var(--input-margin);
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus{
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}
.form-input::placeholder,
.form-control::placeholder,
input::placeholder,
textarea::placeholder{
    color: var(--text-muted);
}
/* Select with custom arrow */
.form-select,
select{
    padding-right: var(--space-3xl);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-lg) center;
    cursor: pointer;
}
/* Textarea */
.form-textarea,
textarea{
    height: auto;
    min-height: 120px;
    padding: var(--space-lg);
    border-radius: var(--form-radius);
    resize: vertical;
    line-height: 1.5;
}
/* Small inputs */
.form-input-sm,
.form-select-sm,
.form-control-sm{
    height: var(--input-height-sm);
    padding: 0 var(--space-md);
    font-size: 14px;
}
.form-select-sm{
    padding-right: var(--space-2xl);
    background-position: right var(--space-md) center;
}
/* Form hint text */
.form-hint,
.form-text{
    font-size: 13px;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}
/* Form row - only for specific multi-column needs like payment */
.form-row{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--form-gap);
}
@media (max-width: 600px) {.form-row{
        grid-template-columns: 1fr;
    }}
/* Form Details (collapsible) */
.form-details{
    border: 1px solid var(--border);
    border-radius: var(--form-radius);
    margin-bottom: var(--form-gap);
}
.form-details-summary{
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    font-weight: 500;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.form-details-summary::-webkit-details-marker{
    display: none;
}
.form-details-summary::after{
    content: '+';
    font-size: 18px;
    color: var(--text-muted);
    transition: transform 0.2s;
}
.form-details[open] .form-details-summary::after{
    content: '−';
}
.form-details-content{
    padding: 0 var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--border);
}
/* Input group (input + button) */
.input-group{
    display: flex;
    gap: var(--space-sm);
}
.input-group .form-input,
.input-group .form-select,
.input-group .form-control,
.input-group input,
.input-group select{
    flex: 1;
    min-width: 0;
}
/* Checkbox and Radio */
.form-check{
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    cursor: pointer;
}
.form-check:last-child{
    margin-bottom: 0;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"]{
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: var(--space-xs);
    cursor: pointer;
    accent-color: var(--primary);
    flex-shrink: 0;
}
.form-check input[type="radio"]{
    border-radius: var(--radius-full);
}
.form-check label{
    margin-bottom: 0;
    cursor: pointer;
}
/* File input button styling */
.btn-file{
    position: relative;
    overflow: hidden;
}
.btn-file input[type="file"]{
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    opacity: 0;
    cursor: pointer;
}
/* ============================================
   Tables - Always 100% width, consistent style
   ============================================ */
.table-wrapper{
    overflow-x: auto;
    margin-bottom: var(--element-gap);
}
.table-wrapper:last-child{
    margin-bottom: 0;
}
table,
.table{
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
table th,
table td,
.table th,
.table td{
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
table th,
.table th{
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    background: var(--gray-50);
}
table tbody tr:hover,
.table tbody tr:hover{
    background: var(--gray-50);
}
table tbody tr:last-child td,
.table tbody tr:last-child td{
    border-bottom: none;
}
/* Action icons in tables - consistent style, right aligned */
.action-icons{
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-xs);
}
/* Ensure action columns are right-aligned */
table th:last-child,
table td:last-child,
.table th:last-child,
.table td:last-child{
    text-align: right;
}
/* ============================================
   Tabs / Toolbar / Filter Row - Unified Pill Design
   All three classes share the same pill-shaped styling
   ============================================ */
/* Base pill container - used by .tabs, .toolbar, .filter-row */
.tabs,
.toolbar,
.filter-row{
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill, 9999px);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}
/* All interactive elements are pill-shaped and vertically centered */
.tab,
.tabs .tab,
.toolbar .tab,
.filter-row .tab,
.toolbar button:not(.btn-icon),
.filter-row button:not(.btn-icon){
    height: 48px;
    padding: 0 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    gap: 6px;
}
.tab:hover,
.tabs .tab:hover,
.toolbar .tab:hover,
.filter-row .tab:hover,
.toolbar button:not(.btn-icon):hover,
.filter-row button:not(.btn-icon):hover{
    color: var(--text);
    background: var(--bg-hover, rgba(0,0,0,0.05));
}
.tab.active,
.tabs .tab.active,
.toolbar .tab.active,
.filter-row .tab.active,
.toolbar button.active:not(.btn-icon),
.filter-row button.active:not(.btn-icon){
    color: var(--primary-contrast, #fff);
    background: var(--primary);
}
/* Primary button styling */
.tabs .btn-primary,
.toolbar .btn-primary,
.filter-row .btn-primary{
    color: var(--primary-contrast, #fff) !important;
    background: var(--primary) !important;
}
.tabs .btn-primary:hover,
.toolbar .btn-primary:hover,
.filter-row .btn-primary:hover{
    filter: brightness(1.1);
}
/* Controls container - pushes to right */
.tabs .toolbar-controls,
.tabs .toolbar-right,
.toolbar .toolbar-controls,
.toolbar .toolbar-right,
.filter-row .toolbar-controls,
.filter-row .toolbar-right{
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}
/* v102: Layout-only rules for toolbar / filter-row / tabs scoped inputs + selects.
   All colour, background, border, padding and font come from the single global
   source of truth in skin.css. Keeping the scope rules layout-only prevents the
   previous cream-background / 0.9rem-font override that hijacked every select
   inside a toolbar and made the admin UI inconsistent with the rest of the site. */
.tabs input[type="text"],
.tabs input[type="search"],
.toolbar input[type="text"],
.toolbar input[type="search"],
.filter-row input[type="text"],
.filter-row input[type="search"],
.toolbar .toolbar-search,
.toolbar .toolbar-input,
.filter-row .form-input,
.filter-row .form-control{
    width: auto;
    min-width: 160px;
    flex: 0 0 auto;
    margin: 0;
}
.tabs select,
.toolbar select,
.filter-row select,
.toolbar .toolbar-select,
.filter-row .form-select{
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    cursor: pointer;
}
.tabs input::placeholder,
.toolbar input::placeholder,
.filter-row input::placeholder{
    color: var(--text-muted);
}
/* Checkbox labels - pill-shaped and vertically centered */
.tabs label,
.toolbar label,
.filter-row label{
    display: flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
    cursor: pointer;
    border-radius: var(--radius-pill, 9999px);
    transition: background 0.15s;
    margin: 0;
}
.tabs label:hover,
.toolbar label:hover,
.filter-row label:hover{
    background: var(--bg-hover, rgba(0,0,0,0.05));
}
.tabs label input[type="checkbox"],
.toolbar label input[type="checkbox"],
.filter-row label input[type="checkbox"]{
    width: auto;
    height: auto;
    margin: 0;
}
/* Dark mode */
[data-theme="dark"] .tabs,
[data-theme="dark"] .toolbar,
[data-theme="dark"] .filter-row{
    background: var(--surface);
    border-color: var(--border);
}
[data-theme="dark"] .tabs .tab:hover,
[data-theme="dark"] .toolbar .tab:hover,
[data-theme="dark"] .filter-row .tab:hover,
[data-theme="dark"] .toolbar button:not(.btn-icon):hover,
[data-theme="dark"] .filter-row button:not(.btn-icon):hover{
    background: rgba(255,255,255,0.08);
}
/* v102: dark-mode input/select backgrounds now come from the global rule in skin.css
   (which already honours --input-bg per the admin setting). No scope override needed. */
[data-theme="dark"] .tabs label:hover,
[data-theme="dark"] .toolbar label:hover,
[data-theme="dark"] .filter-row label:hover{
    background: rgba(255,255,255,0.08);
}
/* Responsive - stack on mobile */
@media (max-width: 768px) {.tabs,
    .toolbar,
    .filter-row{
        border-radius: var(--radius-lg);
        padding: var(--space-sm);
        gap: var(--space-xs);
    }
.tabs .tab,
    .toolbar .tab,
    .filter-row .tab,
    .toolbar button:not(.btn-icon),
    .filter-row button:not(.btn-icon){
        flex: 1 1 auto;
        min-width: 0;
    }
.tabs .toolbar-controls,
    .tabs .toolbar-right,
    .toolbar .toolbar-controls,
    .toolbar .toolbar-right,
    .filter-row .toolbar-controls,
    .filter-row .toolbar-right{
        margin-left: 0;
        width: 100%;
        flex-wrap: wrap;
    }
.tabs input[type="text"],
    .tabs input[type="search"],
    .toolbar input[type="text"],
    .toolbar input[type="search"],
    .filter-row input[type="text"],
    .filter-row input[type="search"],
    .tabs select,
    .toolbar select,
    .filter-row select{
        flex: 1 1 auto;
        min-width: 100px;
        max-width: none;
        width: auto;
    }
.tabs label,
    .toolbar label,
    .filter-row label{
        width: auto;
        flex: 1 1 auto;
        justify-content: center;
    }}
/* Responsive tabs wrapper */
.tabs-responsive{
    display: block;
    margin-bottom: var(--section-gap);
}
.tabs-responsive .tabs{
    margin-bottom: 0;
}
/* Mobile select replacement for tabs */
.tabs-select{
    display: none;
    width: 100%;
    padding: var(--space-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    margin-bottom: var(--section-gap);
}
.tab-content{
    display: none;
}
.tab-content.active{
    display: block;
}
/* Tabs full width variant */
.tabs-full{
    display: flex;
    width: 100%;
}
.tabs-full .tab{
    flex: 1;
    text-align: center;
}
/* ============================================
   Alerts
   ============================================ */
.alert{
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    font-size: 14px;
    margin: var(--space-lg);
    font-weight: 500;
    /* v99.2: shadow removed - alerts sit flush, not floating */
    /* Default styling - prevents "transparent gray box" effect when an
       inline .alert div is shown without a modifier class. Modifier classes
       (.alert-info / -success / -danger / -warning) override below. */
    background: var(--primary);
    color: var(--primary-contrast, #ffffff);
    border: 1px solid transparent;
}
/* Inside containers, use tighter margins */
.card .alert,
.form-group .alert{
    margin: 0 0 var(--element-gap) 0;
}
/* Inside section body, remove left/right margins to align with content */
.section-body .alert{
    margin: 0 0 var(--space-md) 0;
}
.card-body .alert,
.modal-body .alert{
    margin: 0 0 var(--space-md) 0;
}
.alert:last-child{
    margin-bottom: var(--space-lg);
}
.alert-info{
    background: var(--primary);
    color: white;
}
.alert-success{
    background: var(--success);
    color: white;
}
.alert-danger,
.alert-error{
    background: var(--danger);
    color: white;
}
.alert-warning{
    background: var(--warning);
    color: white;
}
/* ============================================
   Badges
   ============================================ */
.badge{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 var(--space-sm);
    font-size: 12px;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--text-secondary);
}
.badge-primary{
    background: var(--primary-light);
    color: var(--primary);
}
.badge-secondary{
    background: var(--gray-100);
    color: var(--text-secondary);
}
.badge-success{
    background: var(--success-light);
    color: var(--success);
}
.badge-danger{
    background: var(--danger-light);
    color: var(--danger);
}
.badge-warning{
    background: var(--warning-light);
    color: var(--warning);
}
/* Tier badges */
.tier-badge{
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tier-badge-bronze{ background: #fef3c7; color: #92400e; }
.tier-badge-silver{ background: #f3f4f6; color: #374151; }
.tier-badge-gold{ background: #fef9c3; color: #a16207; }
/* ============================================
   Chips - Light grey, brand text, no stroke
   ============================================ */
.chip{
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    background: var(--gray-100);
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
}
.chip:hover{
    background: var(--gray-200);
}
.chip-active{
    background: var(--gray-100);
    color: var(--primary);
}
.chip-inactive{
    background: var(--gray-100);
    color: var(--text-muted);
    opacity: 0.7;
}
.chip-inactive:hover{
    opacity: 1;
}
.chip-delete{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    color: var(--danger);
    transition: all 0.15s;
}
.chip-delete:hover{
    background: var(--danger);
    color: #ffffff;
}
.chips-container{
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    min-height: 40px;
}
/* ============================================
   Color Swatch - Circle filled with color
   ============================================ */
.color-swatch{
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border);
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    flex-shrink: 0;
}
.color-swatch::-webkit-color-swatch-wrapper{
    padding: 0;
}
.color-swatch::-webkit-color-swatch{
    border: none;
    border-radius: var(--radius-full);
}
.color-swatch::-moz-color-swatch{
    border: none;
    border-radius: var(--radius-full);
}
input[type="color"]{
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border);
    cursor: pointer;
    overflow: hidden;
    padding: 0;
    background: transparent;
}
input[type="color"]::-webkit-color-swatch-wrapper{
    padding: 0;
}
input[type="color"]::-webkit-color-swatch{
    border: none;
    border-radius: var(--radius-full);
}
input[type="color"]::-moz-color-swatch{
    border: none;
    border-radius: var(--radius-full);
}
/* ============================================
   Modal System
   ============================================ */
/* 
 * Admin modals use this pattern:
 * <div class="modal" style="display: none;">
 *   <div class="modal-backdrop"></div>
 *   <div class="modal-content">...</div>
 * </div>
 *
 * ConfirmModal uses:
 * <div class="modal-overlay" style="display: none;">
 *   <div class="modal">...</div>
 * </div>
 */
/* Hide all modals by default */
.modal-overlay,
div.modal:not(.modal-overlay > .modal){
    display: none;
}
/* Admin modal wrapper - when shown */
div.modal:not(.modal-overlay > .modal)[style*="display: flex"],
div.modal:not(.modal-overlay > .modal)[style*="display:flex"]{
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex !important;
    align-items: center;
    justify-content: center;
}
/* Backdrop inside admin modal */
div.modal > .modal-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}
/* Content inside admin modal */
div.modal > .modal-content{
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: calc(100% - 32px);
    max-width: 480px;
    max-height: calc(100vh - 32px);
    overflow: auto;
    z-index: 1;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
/* ConfirmModal overlay - when shown */
.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display:flex"],
.modal-overlay.active{
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    z-index: 1000;
}
/* Modal box inside overlay */
.modal-overlay > .modal{
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: block;
}
.modal-sm{ max-width: 400px; }
.modal-lg{ max-width: 640px; }
.modal-xl{ max-width: 800px; }
/* v132: modal-content-width - for modals with large amounts of content
   (post editors, rich forms). Follows admin Theme > Page Layout > Content width.
   Capped at 92vw so it never bleeds past the viewport. */
.modal-content-width{ max-width: min(var(--content-width, 1200px), 92vw); }
.modal-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--border);
}
.modal-title{
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}
/* Modal close button - small, 1:1 ratio X */
.modal-close{
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1;
}
.modal-close:hover{
    background: var(--gray-200);
    color: var(--text);
}
.modal-body{
    padding: var(--space-xl);
}
.modal-footer{
    display: flex;
    justify-content: flex-end;
    gap: var(--space-sm);
    padding: var(--space-lg) var(--space-xl);
    background: var(--gray-50);
    border-top: 1px solid var(--border);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
/* ============================================
   Stats Grid
   ============================================ */
.stats-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--element-gap);
    margin-bottom: var(--section-gap);
}
.stats-grid-3{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--element-gap);
    margin-bottom: var(--section-gap);
}
@media (max-width: 768px) {.stats-grid-3{
        grid-template-columns: repeat(2, 1fr);
    }}
@media (max-width: 480px) {.stats-grid-3{
        grid-template-columns: 1fr;
    }}
.stat-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100px;
}
.stat-value{
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stat-label{
    font-size: 13px;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}
/* ============================================
   Vote Buttons
   ============================================ */
.vote-btn-group{
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}
.vote-btn{
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    color: var(--gray-400);
}
.vote-btn svg{
    width: 22px;
    height: 22px;
}
.vote-btn.vote-up:hover,
.vote-btn.vote-up.active{
    background: var(--success-light);
    border-color: var(--success);
    color: var(--success);
}
.vote-btn.vote-down:hover,
.vote-btn.vote-down.active{
    background: var(--danger-light);
    border-color: var(--danger);
    color: var(--danger);
}
.vote-btn.vote-skip{
    width: 40px;
    height: 40px;
}
.vote-btn.vote-skip:hover{
    background: var(--gray-100);
    border-color: var(--gray-300);
    color: var(--text-secondary);
}
.vote-btn.vote-skip svg{
    width: 18px;
    height: 18px;
}
.vote-btn-lg{
    width: 64px;
    height: 64px;
}
.vote-btn-lg svg{
    width: 28px;
    height: 28px;
}
.vote-btn-sm{
    width: 36px;
    height: 36px;
}
.vote-btn-sm svg{
    width: 16px;
    height: 16px;
}
.vote-count{
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 24px;
    text-align: center;
}
/* ============================================
   Song Cards - Global Consistent Style
   ============================================ */
.song-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--element-gap);
    width: 100%;
}
.song-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.15s, transform 0.15s;
}
.song-card:hover{
    box-shadow: var(--shadow-lg);
    /* v126: hover movement removed */
}
/* Song Card Media/Thumbnail */
.song-card-thumbnail{
    position: relative;
    aspect-ratio: 16/9;
    background: var(--gray-100);
    cursor: pointer;
}
.song-card-thumbnail img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    outline: none;
}
/* Play button overlay */
.song-card-play-btn{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: var(--radius-full);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.15s;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}
.song-card-thumbnail:hover .song-card-play-btn{
    opacity: 1;
}
.song-card-play-btn:hover{
    transform: translate(-50%, -50%) scale(1.1);
}
.song-card-play-btn svg{
    width: 24px;
    height: 24px;
    fill: var(--text);
    margin-left: 3px;
}
/* Score badge */
.song-card-score{
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    background: rgba(0,0,0,0.8);
    /* Always white - var(--white) is redefined to dark surface in dark mode,
       which would make this badge unreadable dark-on-dark. */
    color: #ffffff;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
}
/* Video player container */
.song-card-video-player{
    aspect-ratio: 16/9;
    background: var(--black);
}
.song-card-video-player iframe{
    width: 100%;
    height: 100%;
    border: none;
}
/* Embed player for Spotify/Apple Music/SoundCloud */
.embed-player{
    width: 100%;
    border: none;
    border-radius: 0;
}
/* Card body - consistent padding */
.song-card-body{
    padding: var(--space-lg);
}
/* Title and artist - can be left or centered */
.song-title{
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--text);
}
.song-artist{
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}
/* Centered variant for vote page */
.song-card-body.text-center .song-title,
.song-card-body.text-center .song-artist{
    text-align: center;
}
/* Card footer */
.song-card-footer{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--border);
}
/* Card actions (vote buttons area) */
.song-card-actions{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-lg);
    flex-wrap: wrap;
}
/* Social buttons (message, follow) */
.social-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.social-btn:hover{
    background: var(--gray-100);
    color: var(--primary);
    border-color: var(--primary);
}
.social-btn.following{
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}
.social-btn.following:hover{
    background: var(--danger);
    border-color: var(--danger);
}
.social-btn-tiny{
    width: 20px;
    height: 20px;
}
.social-btn.following svg{
    fill: currentColor;
}
.follow-artist-btn.following{
    color: var(--danger);
}
/* Icon buttons */
.btn-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s;
}
.btn-icon:hover{
    background: var(--gray-100);
    color: var(--primary);
}
/* Stat Cards */
.stats-row{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
}
.stat-card-clickable{
    cursor: pointer;
    transition: all 0.15s;
}
.stat-card-clickable:hover{
    border-color: var(--primary);
    /* v126: hover movement removed */
}
.stat-card-value{
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}
.stat-card-label{
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
/* Data Tables */
.data-table{
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.data-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.15s;
}
.data-row:hover{
    border-color: var(--primary);
}
/* HTML Tables */
.table-container{
    width: 100%;
    overflow-x: auto;
}
table.data-table{
    display: table;
    width: 100%;
    border-collapse: collapse;
}
table.data-table thead{
    background: var(--gray-50);
    border-bottom: 2px solid var(--border);
}
table.data-table th{
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
table.data-table td{
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 14px;
}
table.data-table tbody tr{
    transition: background 0.15s;
}
table.data-table tbody tr:hover{
    background: var(--gray-50);
}
table.data-table tbody tr:last-child td{
    border-bottom: none;
}
/* Sortable rows */
.sortable-row{
    cursor: default;
}
.sortable-row.dragging{
    opacity: 0.5;
}
/* AI Labels */
.ai-labels{
    display: flex;
    gap: var(--space-xs);
    flex-wrap: wrap;
}
.ai-label{
    font-size: 11px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-weight: 500;
    background: var(--gray-100);
    color: var(--text-secondary);
}
.ai-label.ai_assisted{
    background: var(--warning-light);
    color: var(--warning);
}
.ai-label.ai_generated{
    background: var(--danger-light);
    color: var(--danger);
}
/* ============================================
   Video Container
   ============================================ */
.video-container{
    position: relative;
    padding-bottom: 56.25%;
    background: var(--black);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--element-gap);
}
.video-container:last-child{
    margin-bottom: 0;
}
.video-container iframe{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* ============================================
   List Items
   ============================================ */
.list-group{
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.list-item{
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.list-item:last-child{
    border-bottom: none;
}
.list-item:hover{
    background: var(--gray-50);
}
.list-item-thumb{
    width: 64px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}
.list-item-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.list-item-content{
    flex: 1;
    min-width: 0;
}
.list-item-title{
    font-weight: 500;
}
.list-item-subtitle{
    font-size: 13px;
    color: var(--text-muted);
}
/* ============================================
   Leaderboard
   ============================================ */
.leaderboard-item{
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
}
.leaderboard-item:last-child{
    border-bottom: none;
}
.rank{
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--primary-contrast);
    flex-shrink: 0;
}
/* Legacy rank-N classes kept for back-compat but all map to the brand badge */
.rank-1, .rank-2, .rank-3{
    background: var(--primary);
    color: var(--primary-contrast);
}
.leaderboard-info{
    flex: 1;
    min-width: 0;
}
.leaderboard-name{
    font-weight: 500;
}
.leaderboard-stats{
    font-size: 13px;
    color: var(--text-muted);
}
.leaderboard-value{
    font-weight: 600;
    color: var(--primary);
}
/* Trending items */
.trending-item{
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.trending-item:last-child{
    border-bottom: none;
}
.trending-item:hover{
    text-decoration: none;
}
.trending-thumb{
    width: 64px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}
.trending-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trending-info{
    flex: 1;
    min-width: 0;
}
.trending-title{
    font-weight: 500;
}
.trending-artist{
    font-size: 13px;
    color: var(--text-muted);
}
.trending-score{
    font-weight: 600;
    font-size: 16px;
}
/* Homepage trending */
.trending-song-item{
    /* v180: divider lines removed - the card border now provides separation.
       Padding kept so the inner content isn't flush against the card edges. */
    display: flex;
    align-items: center;
    gap: var(--space-md);
    color: var(--text);
}
.trending-song-item.item-card { padding: var(--card-padding, var(--space-md)); }
.trending-song-item:hover{
    text-decoration: none;
}
.trending-song-thumb{
    width: 64px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}
.trending-song-thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.trending-song-info{
    flex: 1;
    min-width: 0;
}
.trending-song-title{
    font-weight: 500;
}
.trending-song-artist{
    font-size: 13px;
    color: var(--text-muted);
}
.trending-song-score{
    font-weight: 600;
    font-size: 16px;
}
/* ============================================
   Empty State - Centered with Icon
   ============================================ */
.empty-state{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--text-secondary);
    min-height: 200px;
    /* NO border/background by default - container provides styling */
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
/* Only standalone empty states get their own container styling */
.empty-state.empty-state-standalone{
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
}
.empty-state-icon{
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md) auto;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
}
.empty-state-icon i{
    font-size: inherit;
}
.empty-state-title{
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 var(--space-sm) 0;
    text-align: center;
}
.empty-state-message{
    color: var(--text-muted);
    margin: 0 auto var(--space-lg) auto;
    max-width: 400px;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}
.empty-state-message a{
    color: var(--primary);
    text-decoration: underline;
}
.empty-state .btn{
    margin-top: var(--space-sm);
}
/* Compact empty state for tables/lists */
.empty-state-compact{
    padding: var(--space-xl) var(--space-lg);
    min-height: auto;
}
.empty-state-compact .empty-state-icon{
    font-size: 48px;
    margin-bottom: var(--space-md);
}
.empty-state-compact .empty-state-title{
    font-size: 1.1rem;
}
/* Inline form - button aligned with input */
.form-inline{
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.form-inline .form-group{
    margin-bottom: 0;
}
.form-inline .form-input,
.form-inline .form-select,
.form-inline input,
.form-inline select{
    margin: 0;
}
.form-inline .btn{
    flex-shrink: 0;
    margin: 0;
    height: 40px;
    border-radius: var(--radius-pill, 9999px);
}
@media (max-width: 600px) {.form-inline{
        flex-direction: column;
        align-items: stretch;
    }
.form-inline .form-input,
    .form-inline .form-select,
    .form-inline input,
    .form-inline select,
    .form-inline .btn{
        width: 100%;
    }}
/* ============================================
   Homepage Hero - Configurable Layout
   ============================================ */
/* Full Width Background Hero */
.hero-fullwidth{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: var(--section-gap);
}
.hero-fullwidth + .container.page-content,
.hero-fullwidth + .page-content{
    padding-top: 0;
}
.hero-fullwidth .container{
    position: relative;
    z-index: 2;
}
.hero-fullwidth .hero-section{
    margin-bottom: 0;
}
.hero-overlay{
    position: absolute;
    inset: 0;
    z-index: 1;
}
/* Contained Background Hero */
.hero-contained{
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--section-gap);
}
.hero-contained .hero-overlay{
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-contained .hero-section{
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}
/* Base Hero Section - v176: follows --section-radius so admin's section
   corner setting applies to the hero too. */
.hero-section{
    padding: var(--space-3xl) var(--space-lg);
    margin-bottom: var(--section-gap);
    border-radius: var(--section-radius, var(--radius-lg));
}
/* Centered Hero (no image) */
.hero-section.hero-centered{
    text-align: center;
}
.hero-section.hero-centered .hero-text{
    max-width: 640px;
    margin: 0 auto;
}
.hero-section.hero-centered .hero-subtitle{
    margin-left: auto;
    margin-right: auto;
}
.hero-section.hero-centered .hero-actions{
    justify-content: center;
}
/* Two Column Hero (with image) */
.hero-section.hero-two-column{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    text-align: left;
}
.hero-section.hero-two-column .hero-text{
    order: 1;
}
.hero-section.hero-two-column .hero-image{
    order: 2;
}
.hero-section.hero-two-column .hero-actions{
    justify-content: flex-start;
}
/* Hero With Background */
.hero-section.hero-with-bg{
    padding: var(--space-3xl);
}
/* Hero Text Elements */
.hero-text{
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.hero-title{
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}
.hero-subtitle{
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0;
    line-height: 1.6;
}
.hero-actions{
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-top: var(--space-md);
}
/* Hero Image */
.hero-image{
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image img{
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    /* v88: drop shadow removed per design preference - keeps the hero crisper
       and lets a feature image of any background colour sit cleanly without
       a soft rectangle around it. */
}
/* Responsive */
@media (max-width: 768px) {.hero-section.hero-two-column{
        grid-template-columns: 1fr;
        text-align: center;
    }
.hero-section.hero-two-column .hero-text{
        order: 2;
    }
.hero-section.hero-two-column .hero-image{
        order: 1;
    }
.hero-section.hero-two-column .hero-actions{
        justify-content: center;
    }
.hero-section.hero-two-column .hero-subtitle{
        margin-left: auto;
        margin-right: auto;
    }
.hero-title{
        font-size: 32px;
    }
.hero-image img{
        max-width: 280px;
    }}
.cta-section{
    /* v176: --section-radius so admin's section corner setting applies to
       the CTA too. Matches the hero and every other content section. */
    text-align: center;
    padding: var(--space-3xl) var(--space-2xl);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--section-radius, var(--radius-lg));
    margin-top: var(--section-gap);
    color: white;
}
.cta-section h2{
    margin-bottom: var(--space-sm);
    color: inherit;
    font-size: 2rem;
}
.cta-section p{
    color: inherit;
    opacity: 0.9;
    margin-bottom: var(--space-xl);
    font-size: 1.1rem;
}
.cta-section.cta-with-bg{
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.cta-section .cta-overlay{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}
.cta-section .cta-content{
    position: relative;
    z-index: 2;
}
.cta-buttons{
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}
/* ============================================
   Profile Page
   ============================================ */
.profile-header{
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}
.profile-avatar-large{
    width: 96px;
    height: 96px;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: var(--gray-200);
    flex-shrink: 0;
}
.profile-avatar-large-placeholder{
    width: 96px;
    height: 96px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
}
.profile-details h2{
    margin-bottom: var(--space-xs);
}
.profile-details .text-muted{
    margin-bottom: var(--space-sm);
}
/* ============================================
   Band Hero
   ============================================ */
.band-hero{
    position: relative;
    min-height: 280px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: var(--thumb-card-radius, var(--radius-lg, 12px));
    margin-bottom: var(--section-gap);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-xl);
    color: #ffffff;
    overflow: hidden;
}
.band-hero.has-image{
    background-size: cover;
    background-position: center;
}
.band-hero-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
}
.band-hero-content{
    position: relative;
    z-index: 1;
}
.band-logo{
    width: 80px;
    height: 80px;
    border-radius: var(--avatar-radius, var(--radius-md, 10px));
    border: 3px solid var(--white);
    object-fit: cover;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    margin-bottom: var(--space-md);
}
.band-name{
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: var(--space-sm);
}
.band-tagline{
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: var(--space-md);
}
.band-meta{
    display: flex;
    gap: var(--space-lg);
    font-size: 14px;
    opacity: 0.85;
    flex-wrap: wrap;
}
/* ============================================
   Members Grid
   ============================================ */
.members-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--element-gap);
}
.member-card{
    text-align: center;
    padding: var(--space-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.member-avatar{
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    margin: 0 auto var(--space-md);
    object-fit: cover;
    background: var(--gray-200);
}
.member-name{
    font-weight: 600;
    margin-bottom: var(--space-xs);
}
.member-role{
    font-size: 13px;
    color: var(--text-muted);
}
/* ============================================
   Review Items
   ============================================ */
.review-item{
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border);
    min-width: 0;
    overflow: hidden;
}
.review-item:last-child{
    border-bottom: none;
}
.review-header{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-sm);
}
.review-author{
    font-weight: 500;
}
.review-rating{
    font-weight: 600;
    font-size: 18px;
}
.review-ratings{
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin: var(--space-md) 0;
}
.review-rating-item{
    background: var(--gray-100);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 13px;
}
.review-comment{
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
}
.review-date{
    font-size: 13px;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}
.creator-response{
    background: var(--primary-light);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}
.creator-response strong{
    color: var(--primary-hover);
}
/* ============================================
   Comments
   ============================================ */
.comment-item{
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border);
}
.comment-item:last-child{
    border-bottom: none;
}
.comment-avatar{
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
    background: var(--gray-200);
}
.comment-content{
    flex: 1;
}
.comment-author{
    font-weight: 500;
    margin-bottom: var(--space-xs);
}
.comment-text{
    font-size: 14px;
    color: var(--text-secondary);
}
.comment-date{
    font-size: 12px;
    color: var(--text-muted);
    margin-top: var(--space-xs);
}
/* ============================================
   Lyrics
   ============================================ */
.lyrics-section{
    background: var(--gray-50);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-top: var(--space-lg);
}
.lyrics-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
}
.lyrics-content{
    margin-top: var(--space-md);
    font-family: Georgia, serif;
    white-space: pre-wrap;
    line-height: 1.8;
}
/* ============================================
   Formatted Text
   ============================================ */
.formatted-text p{
    margin-bottom: var(--space-md);
}
.formatted-text p:last-child{
    margin-bottom: 0;
}
/* ============================================
   Grid Layouts
   ============================================ */
.grid{
    display: grid;
    gap: var(--section-gap);
    align-items: stretch;
    margin-bottom: var(--section-gap);
}
.grid:last-child{
    margin-bottom: 0;
}
.grid > .section,
.grid > .card{
    margin-bottom: 0;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
.grid-3-1{ grid-template-columns: 3fr 1fr; }
@media (max-width: 768px) {.grid-2, .grid-3, .grid-4, .grid-3-1{
        grid-template-columns: 1fr;
    }}
/* ============================================
   Pagination
   ============================================ */
.pagination{
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--section-gap);
}
.pagination .btn{
    min-width: var(--input-height);
}
.pagination .btn.active{
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}
/* ============================================
   Upload Controls
   ============================================ */
.upload-controls{
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}
.upload-controls .form-input,
.upload-controls input{
    flex: 1;
}
/* ============================================
   Show Cards (Events)
   ============================================ */
.show-card{
    padding: var(--space-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}
.show-card:last-child{
    margin-bottom: 0;
}
.show-card.past{
    opacity: 0.6;
}
/* ============================================
   Posts Grid
   ============================================ */
.posts-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--element-gap);
}
.post-card{
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow 0.15s;
}
.post-card:hover{
    box-shadow: var(--shadow);
}
.post-card-image{
    aspect-ratio: 16/9;
    background: var(--gray-100);
}
.post-card-image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.post-card-body{
    padding: var(--space-lg);
}
.post-card-title{
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}
.post-card-excerpt{
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}
.post-card-meta{
    font-size: 13px;
    color: var(--text-muted);
}
/* ============================================
   Error State
   ============================================ */
.error-state{
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
}
.error-state h2{
    margin-bottom: var(--space-sm);
}
.error-state p{
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}
/* ============================================
   Utilities
   ============================================ */
.flex{ display: flex; }
.flex-col{ flex-direction: column; }
.items-center{ align-items: center; }
.items-start{ align-items: flex-start; }
.justify-between{ justify-content: space-between; }
.justify-center{ justify-content: center; }
.flex-1{ flex: 1; }
.flex-wrap{ flex-wrap: wrap; }
.flex-shrink-0{ flex-shrink: 0; }
.gap-xs{ gap: var(--space-xs); }
.gap-sm{ gap: var(--space-sm); }
.gap-md{ gap: var(--space-md); }
.gap-lg{ gap: var(--space-lg); }
.gap-xl{ gap: var(--space-xl); }
.mt-0{ margin-top: 0; }
.mt-xs{ margin-top: var(--space-xs); }
.mt-sm{ margin-top: var(--space-sm); }
.mt-md{ margin-top: var(--space-md); }
.mt-lg{ margin-top: var(--space-lg); }
.mt-xl{ margin-top: var(--space-xl); }
.mt-2xl{ margin-top: var(--space-2xl); }
.mb-0{ margin-bottom: 0; }
.mb-xs{ margin-bottom: var(--space-xs); }
.mb-sm{ margin-bottom: var(--space-sm); }
.mb-md{ margin-bottom: var(--space-md); }
.mb-lg{ margin-bottom: var(--space-lg); }
.mb-xl{ margin-bottom: var(--space-xl); }
.mb-2xl{ margin-bottom: var(--space-2xl); }
.ml-sm{ margin-left: var(--space-sm); }
.ml-md{ margin-left: var(--space-md); }
.ml-lg{ margin-left: var(--space-lg); }
.ml-auto{ margin-left: auto; }
.my-lg{ margin-top: var(--space-lg); margin-bottom: var(--space-lg); }
.my-xl{ margin-top: var(--space-xl); margin-bottom: var(--space-xl); }
/* Horizontal Rules - Consistent with borders */
hr{
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-lg) 0;
}
hr.my-lg{
    margin: var(--space-lg) 0;
}
hr.my-xl{
    margin: var(--space-xl) 0;
}
.p-md{ padding: var(--space-md); }
.p-lg{ padding: var(--space-lg); }
.p-xl{ padding: var(--space-xl); }
.text-center{ text-align: center; }
.text-right{ text-align: right; }
.text-xs{ font-size: 12px; }
.text-sm{ font-size: 13px; }
.text-base{ font-size: 15px; }
.text-lg{ font-size: 18px; }
.text-xl{ font-size: 22px; }
.text-2xl{ font-size: 28px; }
.font-medium{ font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold{ font-weight: 700; }
.text-muted{ color: var(--text-muted); }
.text-secondary{ color: var(--text-secondary); }
.text-primary{ color: var(--primary); }
.text-success{ color: var(--success); }
.text-danger{ color: var(--danger); }
.text-warning{ color: var(--warning); }
.hidden{ display: none !important; }
.truncate{
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.truncate-multiline{
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.w-full{ width: 100%; }
.w-auto{ width: auto; }
.min-w-0{ min-width: 0; }
.border{ border: 1px solid var(--border); }
.border-b{ border-bottom: 1px solid var(--border); }
.rounded{ border-radius: var(--radius-sm); }
.rounded-lg{ border-radius: var(--radius-lg); }
.rounded-full{ border-radius: var(--radius-full); }
.bg-surface{ background: var(--surface); }
.bg-muted{ background: var(--gray-50); }
.cursor-pointer{ cursor: pointer; }
/* ============================================
   Responsive
   ============================================ */
/* Mobile Menu Toggle */
.mobile-menu-toggle{
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
}
.hamburger-line{
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: var(--radius-xs, 2px);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(1){
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(2){
    opacity: 0;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(3){
    transform: rotate(-45deg) translate(5px, -5px);
}
@media (max-width: 768px) {:root{
        --section-gap: 20px;
        --element-gap: 12px;
    }
/* Mobile header layout */
.logo{
        flex-shrink: 0;
    }
.mobile-menu-toggle{
        display: flex;
        margin-left: auto;
    }
.nav{
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--surface);
        flex-direction: column;
        padding: var(--space-md);
        z-index: 1000;
        overflow-y: auto;
        margin-left: 0;
    }
.nav.mobile-open{
        display: flex;
    }
.nav-link{
        width: 100%;
        padding: var(--space-md) var(--space-sm);
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
    }
.nav-link:last-child{
        border-bottom: none;
    }
.nav-link.nav-icon-link{
        width: 100%;
        height: auto;
        justify-content: flex-start;
        gap: var(--space-md);
        padding: var(--space-md) var(--space-sm);
    }
/* Mobile nav dropdowns - flatten everything inline */
.nav-dropdown{
        width: 100%;
        display: block;
    }
.nav-dropdown .nav-dropdown-toggle{
        width: 100%;
        padding: var(--space-md) var(--space-sm);
        border-bottom: 1px solid var(--border);
        text-align: left;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        font-size: 12px;
        letter-spacing: 0.05em;
        pointer-events: none; /* always expanded on mobile */
    }
.nav-dropdown .nav-dropdown-toggle i{
        display: none;
    }
.nav-dropdown-menu{
        position: static;
        display: flex;
        flex-direction: column;
        border: none;
        box-shadow: none;
        padding: 0;
        background: transparent;
        min-width: 0;
        width: 100%;
    }
.nav-dropdown-item{
        padding: var(--space-md) var(--space-md);
        border-bottom: 1px solid var(--border);
        font-size: 14px;
    }
.nav-dropdown-item:last-child{
        border-bottom: none;
    }
.nav-link.nav-icon-link::after{
        content: attr(title);
        font-size: 0.95rem;
        font-weight: 500;
    }
/* Hide desktop user menu on mobile - show in nav instead */
.user-menu{
        display: none !important;
    }
/* Show user menu in mobile nav when open */
.nav.mobile-open ~ .user-menu,
    .nav.mobile-open + .user-menu{
        display: none !important;
    }
/* Container padding for mobile */
.container{
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }
.page-content{
        padding-left: 0;
        padding-right: 0;
        padding-top: var(--space-lg);
        padding-bottom: var(--space-lg);
    }
/* Grid 3-1 sidebar layout for mobile */
.grid-3-1{
        grid-template-columns: 1fr !important;
    }
.page-title{
        font-size: 24px;
    }
.hero-title{
        font-size: 28px;
    }
h1{ font-size: 24px; }
h2{ font-size: 20px; }
.section-body,
    .card-body{
        padding: var(--space-lg);
    }
.section-header,
    .card-header{
        padding: var(--space-md) var(--space-lg);
    }
.profile-header{
        flex-direction: column;
        text-align: center;
    }
/* Tab scrolling on mobile - hide tabs, show select */
.tabs{
        display: none !important;
    }
.tabs-select{
        display: block !important;
    }
.tabs::-webkit-scrollbar{
        display: none;
    }
/* Grid adjustments */
.grid-2,
    .grid-3,
    .grid-4{
        grid-template-columns: 1fr;
    }
/* Form row adjustments */
.form-row{
        flex-direction: column;
    }}
/* Medium screens (tablets) */
@media (min-width: 769px) and (max-width: 1024px) {.container{
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }
.grid-4{
        grid-template-columns: repeat(2, 1fr);
    }
.grid-3{
        grid-template-columns: repeat(2, 1fr);
    }}
/* Mobile user links - hidden on desktop */
.mobile-user-links{
    display: none;
}
@media (max-width: 768px) {.mobile-user-links{
        display: block;
        width: 100%;
    }
.mobile-user-divider{
        height: 1px;
        background: var(--border);
        margin: var(--space-md) 0;
    }
.mobile-user-links .nav-link{
        border-bottom: 1px solid var(--border);
    }
.mobile-user-links .nav-link:last-child{
        border-bottom: none;
    }
.mobile-user-links .mobile-highlight{
        color: var(--primary);
        font-weight: 600;
    }
.profile-trigger{
        width: 100%;
        justify-content: flex-start;
        gap: var(--space-sm);
    }
.credit-badge{
        justify-content: flex-start;
    }
/* Promo banner mobile */
.promo-banner{
        margin-left: calc(var(--space-md) * -1);
        margin-right: calc(var(--space-md) * -1);
        border-radius: 0 !important;
    }}
/* ============================================
   Animations
   ============================================ */
@keyframes slideIn {from{
        opacity: 0;
        /* v126: hover movement removed */
    }
to{
        opacity: 1;
        /* v126: hover movement removed */
    }}
@keyframes fadeIn {from{ opacity: 0; }
to{ opacity: 1; }}
.animate-slide-in{
    animation: slideIn 0.2s ease;
}
.animate-fade-in{
    animation: fadeIn 0.2s ease;
}
/* ============================================
   Admin Search Results & Featured Preview
   ============================================ */
.search-results-list{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
}
.search-result-item{
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.search-result-item:last-child{
    border-bottom: none;
}
.search-result-item:hover{
    background: var(--surface-hover, var(--gray-50));
}
.selected-song-preview{
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
}
.featured-preview{
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--surface) 100%);
    border: 1px solid var(--primary);
    border-radius: var(--radius-md);
}
.featured-preview-header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}
.featured-preview h4{
    margin: 0 0 var(--space-xs) 0;
    font-size: 1.25rem;
}
/* ============================================
   Theme Toggle Icon Animation
   ============================================ */
.theme-toggle{
    position: relative;
}
.theme-toggle i{
    transition: transform 0.3s ease, opacity 0.3s ease;
}
[data-theme="dark"] #theme-icon-dark{
    display: none !important;
}
[data-theme="dark"] #theme-icon-light{
    display: inline !important;
}
/* ============================================
   Verified Badge
   ============================================ */
.verified-badge{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--primary);
}
.verified-badge i{
    font-size: 0.9em;
}
.verified-icon{
    color: var(--primary);
    margin-left: 4px;
}
/* Verified badge in user cards */
.user-card .verified-badge,
.leaderboard-item .verified-badge{
    font-size: 0.85rem;
}
/* Verified badge next to usernames */
.username-verified{
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.username-verified .fa-circle-check{
    color: var(--primary);
    font-size: 0.9em;
}
/* ============================================
   Admin Dashboard Stats
   ============================================ */
.stats-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}
.stat-card{
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover{
    /* v126: hover movement removed */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.stat-icon{
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.stat-info{
    display: flex;
    flex-direction: column;
}
.stat-value{
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}
.stat-label{
    font-size: 0.85rem;
    color: var(--text-muted);
}
/* Activity Feed */
.activity-item{
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
}
.activity-item:last-child{
    border-bottom: none;
}
.activity-icon{
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary, #f3f4f6);
    border-radius: 50%;
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.activity-content{
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.activity-text{
    font-size: 0.9rem;
    color: var(--text);
}
.activity-time{
    font-size: 0.75rem;
    color: var(--text-muted);
}
/* Weekly Stats */
.weekly-stat-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
}
.weekly-stat-row:last-child{
    border-bottom: none;
}
.weekly-stat-label{
    font-size: 0.9rem;
    color: var(--text-muted);
}
.weekly-stat-value{
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}
/* Badge Icons */
.badge-icon{
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.badge-icon-primary{ background: var(--primary); }
.badge-icon-success{ background: var(--success); }
.badge-icon-warning{ background: var(--warning); }
.badge-icon-danger{ background: var(--danger); }
.badge-icon-info{ background: var(--info, #3b82f6); }
.badge-icon-secondary{ background: var(--text-muted); }
/* Dropdown Results */
.dropdown-results{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
}
.dropdown-results.hidden{
    display: none;
}
.dropdown-item{
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    transition: background 0.15s;
}
.dropdown-item:hover{
    background: var(--bg-secondary, #f3f4f6);
}
/* Admin Tabs Styling */
.admin-tabs{
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    padding: var(--space-xs);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}
.admin-tabs .tab{
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    white-space: nowrap;
}
.admin-tabs .tab i{
    font-size: 0.9em;
    opacity: 0.7;
}
.admin-tabs .tab.active i{
    opacity: 1;
}
/* Gamification - Streaks */
.streak-badge{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    border-radius: var(--radius-xl, 20px);
    font-size: 0.75rem;
    font-weight: 600;
}
.streak-badge i{
    font-size: 0.8em;
}
/* Gamification - Achievements */
.achievement-card{
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.2s;
}
.achievement-card:hover{
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.achievement-card.locked{
    opacity: 0.5;
    filter: grayscale(1);
}
.achievement-icon{
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    font-size: 1.25rem;
}
.achievement-info{
    flex: 1;
}
.achievement-name{
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}
.achievement-desc{
    font-size: 0.85rem;
    color: var(--text-muted);
}
.achievement-date{
    font-size: 0.75rem;
    color: var(--text-muted);
}
/* Avatar improvements */
.avatar{
    width: 40px;
    height: 40px;
    border-radius: var(--avatar-radius, 50%);
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
    overflow: hidden;
}
.avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-sm{
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
}
.avatar-lg{
    width: 56px;
    height: 56px;
    font-size: 1.25rem;
}
.avatar-xl{
    width: 80px;
    height: 80px;
    font-size: 1.75rem;
}
/* Grid layouts */
.grid{
    display: grid;
    gap: var(--space-md);
}
.grid-2{
    grid-template-columns: repeat(2, 1fr);
}
.grid-3{
    grid-template-columns: repeat(3, 1fr);
}
.grid-4{
    grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 992px) {.grid-4{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(2, 1fr); }}
@media (max-width: 640px) {.grid-4{ grid-template-columns: 1fr; }
.grid-3{ grid-template-columns: 1fr; }
.grid-2{ grid-template-columns: 1fr; }
.stats-grid{
        grid-template-columns: repeat(2, 1fr);
    }
.admin-tabs{
        flex-direction: column;
    }
.admin-tabs .tab{
        justify-content: flex-start;
    }}
/* Button icon styling consistency */
.btn-icon{
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
}
.btn-icon:hover{
    background: var(--bg-secondary, #f3f4f6);
    color: var(--text);
    border-color: var(--primary);
}
.btn-icon.btn-sm{
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
}
.btn-group{
    display: inline-flex;
    gap: 4px;
}
/* Form group positioning for dropdowns */
.form-group{
    position: relative;
}
/* ============================================
   Toast Notifications
   ============================================ */
.toast-container{
    position: fixed;
    bottom: 24px;
    right: 24px;
    /* Sits above modal-overlay (1000) and any page-level fixed UI.
       Was 9999; bumped to 11000 to ensure notifications surface during
       modal flows (e.g. image upload toast while the New Post modal is open). */
    z-index: 11000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
.toast{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: toastSlideIn 0.3s ease;
    pointer-events: auto;
    max-width: 420px;
    min-width: 280px;
    /* Default - when no type modifier is supplied (defensive; Toast.show always
       sets one but inline-rendered .toast elements may not). */
    background: var(--primary);
    color: var(--primary-contrast, #ffffff);
}
.toast.toast-success{
    background: var(--success);
    color: var(--success-contrast, #ffffff);
}
.toast.toast-error{
    background: var(--danger);
    color: var(--danger-contrast, #ffffff);
}
.toast.toast-warning{
    background: var(--warning);
    color: var(--warning-contrast, #ffffff);
}
.toast.toast-info{
    background: var(--primary);
    color: var(--primary-contrast, #ffffff);
}
.toast-icon{
    font-size: 1.25rem;
    flex-shrink: 0;
    opacity: 0.9;
}
.toast-success .toast-icon,
.toast-error .toast-icon,
.toast-warning .toast-icon,
.toast-info .toast-icon{
    color: inherit;
}
.toast-content{
    flex: 1;
}
.toast-title{
    font-weight: 600;
    margin-bottom: 2px;
}
.toast-message{
    font-size: 0.95rem;
    opacity: 0.95;
}
.toast-close{
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.toast-close:hover{
    opacity: 1;
}
.toast.toast-exit{
    animation: toastSlideOut 0.3s ease forwards;
}
@keyframes toastSlideIn {from{
        transform: translateX(100%);
        opacity: 0;
    }
to{
        transform: translateX(0);
        opacity: 1;
    }}
@keyframes toastSlideOut {from{
        transform: translateX(0);
        opacity: 1;
    }
to{
        transform: translateX(100%);
        opacity: 0;
    }}
/* ============================================
   Mention Autocomplete
   ============================================ */
.mention-autocomplete{
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-bottom: 4px;
}
.mention-item{
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.15s;
}
.mention-item:hover,
.mention-item.selected{
    background: var(--bg-hover);
}
.mention-item-avatar{
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}
.mention-item-name{
    font-weight: 500;
}
.mention-item-hint{
    font-size: 0.8rem;
    color: var(--text-muted);
}
/* Highlighted mention in text */
.mention-highlight{
    color: var(--primary);
    font-weight: 500;
}
/* Note: in v81 the previous dark-mode override was REMOVED. It set
   [data-theme="dark"] .toast { background: var(--surface) } which had equal
   specificity to .toast.toast-success/error/warning/info but appeared later
   in the stylesheet, so it overrode every type-specific colour in dark mode.
   Result: success/error/warning/info toasts all rendered as dark gray on a
   dark background ("gray on gray") - effectively invisible during modal flows
   like the buzz image upload. The type-specific colours (--success / --danger
   / --warning / --primary) already have sufficient contrast in both modes,
   so no dark-mode override is needed. */
@media (max-width: 480px) {.toast-container{
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
.toast{
        max-width: 100%;
    }}
/* ============================================
   Skeleton Loaders
   ============================================ */
.skeleton{
    background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s infinite;
    border-radius: var(--radius);
}
.skeleton-text{
    height: 1em;
    margin-bottom: 0.5em;
}
.skeleton-text:last-child{
    width: 80%;
}
.skeleton-title{
    height: 1.5em;
    width: 60%;
    margin-bottom: 0.75em;
}
.skeleton-avatar{
    width: 48px;
    height: 48px;
    border-radius: 50%;
}
.skeleton-card{
    padding: var(--space-lg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.skeleton-song-item{
    display: flex;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border);
}
.skeleton-song-thumb{
    width: 64px;
    height: 48px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.skeleton-song-info{
    flex: 1;
}
.skeleton-song-title{
    height: 1em;
    width: 70%;
    margin-bottom: 0.5em;
}
.skeleton-song-artist{
    height: 0.85em;
    width: 40%;
}
.skeleton-stat{
    height: 3em;
    width: 80px;
    border-radius: var(--radius);
}
@keyframes skeletonShimmer {0%{ background-position: 200% 0; }
100%{ background-position: -200% 0; }}
/* Dark mode skeleton */
[data-theme="dark"] .skeleton{
    background: linear-gradient(90deg, var(--gray-700, #374151) 25%, var(--gray-600, #4b5563) 50%, var(--gray-700, #374151) 75%);
    background-size: 200% 100%;
}
/* ============================================
   v85: Unified Search Field
   ============================================
   Pill-shaped input with a search icon on the left. No button - submission
   is via Enter or oninput debounce. Applied via .search-field wrapper and
   .search-field-input on the input element.

   Usage:
     <div class="search-field">
       <i class="fa-solid fa-search search-field-icon"></i>
       <input type="text" class="search-field-input" placeholder="Search..." />
     </div>
*/
/* v99.2: search-field input now matches the rest of the form inputs - same
   background (--input-bg), same transparent border, same focus treatment.
   The pill radius stays as the distinguishing search-field shape. */
/* Optional clear button on the right */
/* Size variants */
/* ============================================
   v89: Submit form - dynamic platform link rows
   ============================================ */
.platform-link-row{
    display: grid;
    grid-template-columns: 140px 1fr 120px 36px;
    gap: var(--space-sm);
    align-items: center;
    margin-bottom: var(--space-sm);
}
.platform-link-row .platform-link-type,
.platform-link-row .platform-link-url,
.platform-link-row .platform-link-label{
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
}
.platform-link-row .platform-link-remove{
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.platform-link-row .platform-link-remove:hover{
    border-color: var(--danger);
    color: var(--danger);
}
@media (max-width: 640px) {.platform-link-row{
        grid-template-columns: 1fr 36px;
        grid-template-rows: auto auto auto;
    }
.platform-link-row .platform-link-type{ grid-column: 1 / 2; }
.platform-link-row .platform-link-remove{ grid-column: 2 / 3; grid-row: 1 / 2; }
.platform-link-row .platform-link-url{ grid-column: 1 / 3; }
.platform-link-row .platform-link-label{ grid-column: 1 / 3; }}
/* ============================================
   v93: Shootout card - shared between /shootouts (public list) and
   /my-shootouts (owner management list). Same visual language, different
   action affordances at the foot.
   ============================================ */
.shootouts-list{
    display: grid;
    gap: var(--space-md);
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {.shootouts-list{ grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }}
.shootout-card{
    /* v134: shootout cards follow theme section tokens */
    border: 0;
    border-radius: var(--section-radius, var(--radius-lg));
    background: var(--section-bg, var(--card-bg));
    color: var(--section-text, inherit);
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.shootout-card:hover{
    text-decoration: none;
    transform: translateY(var(--card-hover-motion-y, 0));
}
.shootout-card-banner{
    position: relative;
    aspect-ratio: 16 / 9;
    background-color: var(--surface-hover);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
}
.shootout-card-banner.is-placeholder{
    background-image: var(--placeholder-gradient, linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%));
    color: rgba(255, 255, 255, 0.85);
}
.shootout-card-banner-icon{
    font-size: 2.5rem;
    opacity: 0.55;
}
.shootout-card-banner-badge{
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-pill, 999px);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.shootout-card-banner-badge.type-cross{ background: rgba(245, 158, 11, 0.92); }
.shootout-card-banner-badge.type-self{ background: rgba(99, 102, 241, 0.92); }
/* v93: status pill on banner top-left, used by the management view */
.shootout-card-banner-status{
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-pill, 999px);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.shootout-card-banner-status.status-active{ background: rgba(16, 185, 129, 0.92); }
.shootout-card-banner-status.status-closed{ background: rgba(107, 114, 128, 0.92); }
.shootout-card-banner-status.status-cancelled{ background: rgba(239, 68, 68, 0.92); }
.shootout-card-body{
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-sm);
}
.shootout-card-title{
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shootout-card-desc{
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.shootout-card-vs{
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 4px 0;
}
.shootout-card-vs-track{
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
}
.shootout-card-vs-track:nth-child(3){ text-align: right; }
.shootout-card-vs-track-title{
    font-weight: 600;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shootout-card-vs-track-artist{
    color: var(--text-secondary);
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shootout-card-vs-track.winner .shootout-card-vs-track-title::after{
    content: ' \f091';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--success, #10b981);
    margin-left: 4px;
}
.shootout-card-vs-sep{
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: var(--radius-pill, 999px);
    background: var(--surface-hover);
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.shootout-card-foot{
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    gap: var(--space-sm);
}
.shootout-card-foot-meta{
    color: var(--text-secondary);
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.shootout-card-vote{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-pill, 999px);
    background: var(--primary);
    color: var(--primary-contrast, white);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.15s;
}
.shootout-card:hover .shootout-card-vote{ background: var(--primary-hover, var(--primary)); }
.shootout-card-vote.is-results{
    background: var(--surface-hover);
    color: var(--text-secondary);
}
/* v93: management variant - inline action buttons stacked on the right */
.shootout-card-foot-actions{
    display: inline-flex;
    gap: var(--space-xs);
    align-items: center;
}
/* When the card is non-link (management view uses a div wrapper rather than
   an <a>), suppress the hover translate so the buttons stay clickable. */
.shootout-card.is-manage:hover{ transform: none; }
