/* ============================================================
   GospelKingz - Main Design System & Global Styles
   "The Home of Gospel Music and Christian Artists"
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables (Design Tokens) ---------- */
:root {
    /* Colors (Playcloud UI Theme - Dark Mode Default) */
    --bg-outer:     #050505;
    --bg:           #0A0A0C;
    --surface:      #121212;
    --surface-2:    #1F1F1F;
    --surface-3:    #2A2A2A;
    --border:       rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    --text:         #FFFFFF;
    --text-2:       #A1A5B7;
    --muted:        #7E8299;
    --muted-2:      #5E6278;
}

html:not(.dark), html.light-theme {
    --bg-outer:     #F3F4F6;
    --bg:           #FFFFFF;
    --surface:      #FFFFFF;
    --surface-2:    #F9FAFB;
    --surface-3:    #F3F4F6;
    --border:       rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);
    --text:         #111827;
    --text-2:       #4B5563;
    --muted:        #6B7280;
    --muted-2:      #9CA3AF;
}

:root {
    /* Colors (Playcloud UI Theme - Dark Mode Default) */
    --bg-outer:     #050505; /* The very dark outer background */
    --bg:           #0A0A0C; /* App Container Background */
    --surface:      #121212; /* Slightly lighter surface for sidebar/cards */
    --surface-2:    #1F1F1F; /* Hover states */
    --surface-3:    #2A2A2A; /* Elevated cards */
    --border:       rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    
    /* Text */
    --text:         #FFFFFF; 
    --text-2:       #A1A5B7; /* Muted text */
    --muted:        #7E8299;
    --muted-2:      #5E6278;

    /* Theme Toggle Switch */
    --toggle-bg:    #333;
    --toggle-fg:    #FFAA00;


    --primary:      #FF6B00; /* Orange accent */
    --primary-dark: #E05A00;
    --primary-light: #FF8C33; /* Lighter orange for hover/active states */
    --primary-glow: rgba(255, 107, 0, 0.3);
    
    --secondary:    #FF8C33; /* Lighter Orange */
    --secondary-glow: rgba(255, 140, 51, 0.3);

    --success:      #6DD58C;
    --danger:       #FF5F56;
    --warning:      #FFBD2E;
    --info:         #4DA3FF;

    /* Text */
    --text:         #FFFFFF; 
    --text-2:       #A1A5B7; /* Muted text in image */
    --muted:        #7E8299;
    --muted-2:      #5E6278;

    /* Typography */
    --font-body:    'Inter', system-ui, sans-serif;
    --font-display: 'Outfit', system-ui, sans-serif;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    /* Border Radius */
    --r-sm:  8px;
    --r-md:  16px;
    --r-lg:  24px;
    --r-xl:  32px;
    --r-full: 9999px;

    /* Shadows */
    --shadow-sm:   0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md:   0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg:   0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--primary-glow);

    /* Transitions */
    --t-fast:   0.15s ease;
    --t-normal: 0.25s ease;
    --t-slow:   0.4s ease;

    /* Layout */
    --sidebar-width: 260px;
    --player-height: 90px;
    --navbar-height: 80px;
}

/* ---------- Light Theme Overrides ---------- */
html:not(.dark) {
    --bg-outer:     #F8F9FA;
    --bg:           #FFFFFF;
    --surface:      #F3F4F6;
    --surface-2:    #E5E7EB;
    --surface-3:    #D1D5DB;
    --border:       rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.15);
    
    --text:         #111827; 
    --text-2:       #4B5563;
    --muted:        #6B7280;
    --muted-2:      #9CA3AF;

    --toggle-bg:    #E5E7EB;
    --toggle-fg:    #F59E0B;
}

/* ------------------------------------------------------------
   Light Theme Inverted Text Helpers
   ------------------------------------------------------------ */

/* Any element that has class text-white but NOT on a dark bg (no background-color applied inline) */
html:not(.dark) .text-white:not([class*="bg-"]):not([style*="background"]),
html:not(.dark) [style*="color:#fff"]:not([style*="background"]),
html:not(.dark) [style*="color: #fff"]:not([style*="background"]),
html:not(.dark) [style*="color:#ffffff"]:not([style*="background"]) {
    color: var(--text) !important;
}

/* Fix h1-h6 tags across the page in light mode */
html:not(.dark) h1:not([style*="color"]),
html:not(.dark) h2:not([style*="color"]),
html:not(.dark) h3:not([style*="color"]),
html:not(.dark) h4:not([style*="color"]),
html:not(.dark) h5:not([style*="color"]),
html:not(.dark) h6:not([style*="color"]) {
    color: var(--text);
}

/* Tailwind gray text helpers */
html:not(.dark) [class*="text-gray-100"],
html:not(.dark) [class*="text-gray-200"],
html:not(.dark) [class*="text-gray-300"],
html:not(.dark) [class*="text-gray-400"] {
    color: var(--muted) !important;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
body {
    background: var(--bg-outer);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
    transition: background var(--t-normal), color var(--t-normal);
}

@media (min-width: 640px) {
    body {
        padding: 0;
    }
}

/* App Container */
.app-container {
    background: var(--bg);
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: visible;
}

/* Remove Ambient Background Orbs */
.ambient-background { display: none; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--t-fast);
}
a:hover { color: var(--primary-light); }

img, video { max-width: 100%; display: block; }

input, textarea, select, button { font-family: inherit; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ---------- Selection ---------- */
::selection { background: var(--primary); color: #fff; }

/* ============================================================
   LAYOUT
   ============================================================ */

.app-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Main Wrapper - fills 100% of locked body, children scroll independently */
.ms_main_wrapper { flex: 1; display: flex; overflow: visible; min-height: 100vh; }


/* Sidebar Wrapper */
.ms_sidemenu_wrapper {
    width: 240px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: transparent;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    z-index: 100;
    transition: transform var(--t-normal);
}
.ms_sidemenu_wrapper::-webkit-scrollbar { display: none; }

.ms_nav_close {
    display: none;
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
}

.ms_sidemenu_inner {
    padding: 30px 0;
}

.ms_logo_inner {
    padding: 0 30px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.ms_logo_open { display: none; }

.ms_nav_wrapper ul {
    list-style: none;
    margin-bottom: 25px;
}

.ms_nav_wrapper ul li a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    margin: 2px 16px;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
    text-transform: capitalize;
    position: relative;
    transition: all var(--t-fast);
    border-radius: var(--r-sm);
}

.ms_nav_wrapper ul li a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.ms_nav_wrapper ul li a.active {
    color: #fff;
    background: var(--surface-2);
}

.nav_icon {
    font-size: 18px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Right Sidebar Profile Dropdown */
.dropdown-menu.show { display: block !important; }

/* Content Wrapper */
.ms_content_wrapper { flex: 1; display: flex; flex-direction: row; min-width: 0; overflow: visible; }

/* Inner column wrapping header + page-content */
.main-content-column { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: visible; }

/* Header inside content */
.ms_header {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-8);
    flex-shrink: 0;
    background: transparent;
}

.ms_top_left {
    display: flex;
    align-items: center;
    gap: 40px;
    flex: 1;
}

/* Page content */
.page-content { flex: 1; padding: var(--space-6) var(--space-8); padding-bottom: 40px; overflow: visible; }
/* .page-content::-webkit-scrollbar { display: none; } */

/* Global Right Sidebar */
.global-right-sidebar-wrapper {
    width: 300px;
    flex-shrink: 0;
    background: var(--bg);
    border-left: 1px solid var(--border);
    overflow-y: auto;
    /* scrollbar-width: none; */
    height: 100%;
}
.global-right-sidebar-wrapper::-webkit-scrollbar { display: none; }

@media (max-width: 992px) {
    .ms_nav_close { display: block; }
    .ms_content_wrapper { margin-left: 0; }
    .ms_header { left: 0; }
    .global-right-sidebar-wrapper { display: none !important; }
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

.h1 { font-size: clamp(28px, 4vw, 44px); }
.h2 { font-size: clamp(22px, 3vw, 32px); }
.h3 { font-size: clamp(18px, 2.5vw, 24px); }
.h4 { font-size: 18px; }
.h5 { font-size: 16px; }

.text-gradient {
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gold {
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted { color: var(--muted); }
.text-sm    { font-size: 13px; }
.text-xs    { font-size: 11px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 10px 20px;
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all var(--t-normal);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    transition: opacity var(--t-fast);
}
.btn:hover::after { opacity: 0.05; }
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    box-shadow: 0 6px 25px var(--primary-glow);
    color: #fff;
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold), #d97706);
    color: #000;
    box-shadow: 0 4px 15px var(--gold-glow);
}
.btn-gold:hover { box-shadow: 0 6px 25px var(--gold-glow); }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-2);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: var(--primary-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-2);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--r-lg); }
.btn-xl { padding: 18px 48px; font-size: 18px; border-radius: var(--r-lg); }
.btn-icon { padding: 10px; border-radius: var(--r-full); }
.btn-block { width: 100%; }

/* ============================================================
   CARDS
   ============================================================ */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: all var(--t-normal);
}

.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card__body { padding: var(--space-6); }
.card__header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border);
}
.card__footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}

/* Song Card */
.song-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) var(--space-4);
    transition: all var(--t-normal);
    cursor: pointer;
}
.song-card:hover {
    background: var(--surface-2);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.song-card__cover {
    width: 52px;
    height: 52px;
    border-radius: var(--r-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--surface-3);
}

.song-card__info { flex: 1; min-width: 0; }
.song-card__title {
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.song-card__artist {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-card__actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

/* Artist Card */
.artist-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    text-align: center;
    transition: all var(--t-normal);
    cursor: pointer;
}
.artist-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.artist-card__banner {
    height: 80px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    position: relative;
}

.artist-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--surface);
    object-fit: cover;
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-3);
}

.artist-card__body {
    padding: 44px var(--space-4) var(--space-5);
}

.artist-card__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 4px;
}

.artist-card__meta {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: var(--space-4);
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: var(--space-2);
    letter-spacing: 0.3px;
}

.form-label span { color: var(--danger); margin-left: 2px; }

.form-control {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px 16px;
    color: var(--text);
    font-size: 14px;
    transition: all var(--t-normal);
    appearance: none;
}

.form-control::placeholder { color: var(--muted); }

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: var(--surface-3);
}

.form-control.is-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23888899'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

select.form-control option { background: var(--surface-3); }

.form-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 6px; }

/* File Upload */
.file-upload {
    border: 2px dashed var(--border-light);
    border-radius: var(--r-md);
    padding: var(--space-8);
    text-align: center;
    cursor: pointer;
    transition: all var(--t-normal);
    background: var(--surface-2);
    position: relative;
}

.file-upload:hover,
.file-upload.dragover {
    border-color: var(--primary);
    background: var(--surface-3);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.file-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-upload__icon { font-size: 36px; margin-bottom: var(--space-3); }
.file-upload__text { color: var(--text-2); font-size: 14px; }
.file-upload__hint { color: var(--muted); font-size: 12px; margin-top: var(--space-2); }

/* ============================================================
   FLASH MESSAGES / ALERTS
   ============================================================ */

.alert {
    padding: var(--space-4) var(--space-5);
    border-radius: var(--r-md);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    border: 1px solid transparent;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert-success { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #6ee7b7; }
.alert-error   { background: rgba(239,68,68,0.1);  border-color: rgba(239,68,68,0.3);  color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.3); color: #fcd34d; }
.alert-info    { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.3); color: #93c5fd; }

/* ============================================================
   BADGES & TAGS
   ============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-primary  { background: var(--primary-glow); color: var(--primary-light); border: 1px solid var(--primary); }
.badge-gold     { background: var(--gold-glow); color: var(--gold-light); border: 1px solid var(--gold); }
.badge-success  { background: rgba(16,185,129,0.15); color: #6ee7b7; border: 1px solid rgba(16,185,129,0.3); }
.badge-danger   { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.badge-muted    { background: var(--surface-3); color: var(--muted); border: 1px solid var(--border); }

/* ============================================================
   AVATARS
   ============================================================ */

.avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--surface-3);
}
.avatar-xs  { width: 24px;  height: 24px; }
.avatar-sm  { width: 36px;  height: 36px; }
.avatar-md  { width: 48px;  height: 48px; }
.avatar-lg  { width: 64px;  height: 64px; }
.avatar-xl  { width: 96px;  height: 96px; }
.avatar-2xl { width: 128px; height: 128px; }

/* ============================================================
   GRIDS & LAYOUT UTILITIES
   ============================================================ */

.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.grid-5 { grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }

.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-start   { justify-content: flex-start; }
.justify-end     { justify-content: flex-end; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-6); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
}

.section-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.section-title span {
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: middle;
}

/* ============================================================
   STATS
   ============================================================ */

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--space-5) var(--space-6);
    text-align: center;
    transition: all var(--t-normal);
}

.stat-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-card__value {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-card__label {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   AUTH PAGES
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* background: var(--bg); removed to support transparent layout */
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(124,58,237,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.08) 0%, transparent 50%);
    padding: var(--space-6);
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--space-10) var(--space-12);
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
    background-size: 200% 100%;
    animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.auth-logo {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-logo__icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto var(--space-4);
    box-shadow: var(--shadow-glow);
}

.auth-logo__name {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(90deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-logo__tagline {
    font-size: 13px;
    color: var(--muted);
    margin-top: 4px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-6) 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

/* ============================================================
   PROFILE PAGES
   ============================================================ */

.profile-banner {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #9f67ff 100%);
    border-radius: var(--r-lg);
    overflow: hidden;
    position: relative;
}

.profile-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-banner__edit {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
}

.profile-info {
    display: flex;
    align-items: flex-end;
    gap: var(--space-5);
    margin-top: -48px;
    padding: 0 var(--space-6);
    margin-bottom: var(--space-5);
}

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 4px solid var(--bg);
    object-fit: cover;
    background: var(--surface-3);
    box-shadow: var(--shadow-glow);
}

.profile-meta {
    padding-bottom: var(--space-2);
    flex: 1;
}

.profile-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.profile-username {
    color: var(--muted);
    font-size: 14px;
}

.profile-stats {
    display: flex;
    gap: var(--space-6);
    margin-top: var(--space-3);
}

.profile-stat {
    text-align: center;
}

.profile-stat__value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    display: block;
}

.profile-stat__label {
    font-size: 12px;
    color: var(--muted);
}

/* ============================================================
   TABS
   ============================================================ */

.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-6);
}

.tab {
    padding: 12px var(--space-6);
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all var(--t-fast);
    text-decoration: none;
}

.tab:hover { color: var(--text); }

.tab.active {
    color: var(--primary-light);
    border-bottom-color: var(--primary);
}

/* ============================================================
   BOTTOM MOBILE NAV
   ============================================================ */

.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 62px;
    background: rgba(10,10,14,0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255,255,255,0.07);
    z-index: 500;
    align-items: center;
    justify-content: space-around;
    padding: 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 12px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.3px;
    flex: 1;
    text-align: center;
    position: relative;
}

.bottom-nav__item .icon { font-size: 22px; line-height: 1; }
.bottom-nav__item:hover { color: rgba(255,255,255,0.75); transform: translateY(-1px); }
.bottom-nav__item.active { color: var(--primary-light); }
.bottom-nav__item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 2px;
    background: var(--primary);
    border-radius: 0 0 4px 4px;
}
.bottom-nav__item.active .icon { filter: drop-shadow(0 0 8px var(--primary)); }

/* Light theme adjustments */
html:not(.dark) .bottom-nav {
    background: rgba(255,255,255,0.97);
    border-top: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
html:not(.dark) .bottom-nav__item {
    color: rgba(0,0,0,0.4);
}
html:not(.dark) .bottom-nav__item:hover {
    color: rgba(0,0,0,0.7);
}
html:not(.dark) .bottom-nav__item.active {
    color: var(--primary);
}

/* ============================================================
   PAGE LOADING ANIMATION
   ============================================================ */

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.page-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

/* ============================================================
   EMPTY STATES
   ============================================================ */

.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-6);
    color: var(--muted);
}

.empty-state__icon {
    font-size: 60px;
    margin-bottom: var(--space-5);
    opacity: 0.5;
}

.empty-state__title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-2);
    margin-bottom: var(--space-3);
}

.empty-state__text {
    font-size: 14px;
    margin-bottom: var(--space-6);
}

/* ============================================================
   HERO SECTION (Home page)
   ============================================================ */

.hero {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: var(--space-6);
    position: relative;
    overflow: hidden;
    border: none;
}

.hero::before,
.hero::after {
    display: none;
}

.hero__content { position: relative; z-index: 1; }

.hero__tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    color: var(--primary-light);
    padding: 5px 14px;
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-4);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.hero__subtitle {
    font-size: 16px;
    color: var(--text-2);
    max-width: 500px;
    margin-bottom: var(--space-8);
    line-height: 1.7;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-8);
}

.page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    transition: all var(--t-fast);
    text-decoration: none;
}

.page-link:hover { border-color: var(--primary); color: var(--primary-light); }
.page-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: var(--shadow-glow);
}

/* ============================================================
   UTILITY CLASSES & PRIMITIVES
   ============================================================ */

.hidden   { display: none !important; }
.sr-only  { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Flexbox */
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.flex-row     { flex-direction: row; }
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.flex-nowrap  { flex-wrap: nowrap; }
.flex-1       { flex: 1 1 0%; }
.flex-auto    { flex: 1 1 auto; }
.flex-none    { flex: none; }
.flex-grow    { flex-grow: 1; }
.flex-shrink-0{ flex-shrink: 0; }

/* Alignment */
.items-start   { align-items: flex-start; }
.items-center  { align-items: center; }
.items-end     { align-items: flex-end; }
.items-stretch { align-items: stretch; }

.justify-start   { justify-content: flex-start; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around  { justify-content: space-around; }

/* Gap */
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Spacing */
.m-0 { margin: 0 !important; }
.p-0 { padding: 0 !important; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.p-4  { padding: 16px; }
.p-5  { padding: 20px; }
.p-6  { padding: 24px; }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Typography */
.text-xs { font-size: 11px; line-height: 1.4; }
.text-sm { font-size: 13px; line-height: 1.4; }
.text-base { font-size: 15px; line-height: 1.5; }
.text-lg { font-size: 18px; line-height: 1.4; }
.text-xl { font-size: 20px; line-height: 1.3; }
.text-2xl { font-size: 24px; line-height: 1.25; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-muted { color: var(--muted) !important; }
.text-primary { color: var(--primary) !important; }
.text-danger { color: var(--danger) !important; }
.text-success { color: var(--success, #10b981) !important; }

/* KPI Grid & Cards (Used in Artist & Admin dashboards) */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}
.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.kpi-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Tables (Used in Admin & Artist management pages) */
.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.table th {
    padding: 12px 16px;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.5px;
    background: var(--surface);
}
.table td {
    padding: 14px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}
.table tbody tr:hover td {
    background: var(--surface-2);
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1;
}
.badge-success { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.badge-danger  { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.badge-primary { background: rgba(224, 155, 38, 0.15); color: var(--primary); }
.badge-muted   { background: var(--surface-2); color: var(--muted); }
.badge-secondary{ background: var(--surface-2); color: var(--text-2); }

/* ============================================================
   RESPONSIVE - TABLET & MOBILE
   ============================================================ */

@media (max-width: 1024px) {
    .sidebar { display: none; }
    .page-content { margin-left: 0; }
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    :root {
    /* Colors (Playcloud UI Theme - Dark Mode Default) */
    --bg-outer:     #050505;
    --bg:           #0A0A0C;
    --surface:      #121212;
    --surface-2:    #1F1F1F;
    --surface-3:    #2A2A2A;
    --border:       rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);
    --text:         #FFFFFF;
    --text-2:       #A1A5B7;
    --muted:        #7E8299;
    --muted-2:      #5E6278;
}

html:not(.dark), html.light-theme {
    --bg-outer:     #F3F4F6;
    --bg:           #FFFFFF;
    --surface:      #FFFFFF;
    --surface-2:    #F9FAFB;
    --surface-3:    #F3F4F6;
    --border:       rgba(0, 0, 0, 0.1);
    --border-light: rgba(0, 0, 0, 0.05);
    --text:         #111827;
    --text-2:       #4B5563;
    --muted:        #6B7280;
    --muted-2:      #9CA3AF;
}

:root { --navbar-height: 56px; }
    .bottom-nav { display: flex; }
    .page-content { padding: var(--space-5); padding-bottom: calc(var(--player-height) + 60px); }
    .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .auth-card { padding: var(--space-8); }
    .hero { padding: var(--space-8); }
    .profile-info { flex-direction: column; align-items: flex-start; margin-top: -36px; }
    .profile-avatar { width: 80px; height: 80px; }
    .profile-stats { gap: var(--space-4); }
}

@media (max-width: 480px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .navbar__search { display: none; }
    .auth-card { padding: var(--space-6); border-radius: var(--r-lg); }
}

/* Mobile App Overrides */
@media (max-width: 992px) {
    .ms_sidemenu_wrapper {
    width: 240px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: transparent;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    z-index: 100;
    transition: transform var(--t-normal);
}
    body.sidebar-open .ms_sidemenu_wrapper {
    width: 240px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: transparent;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
    border-right: 1px solid var(--border);
    z-index: 100;
    transition: transform var(--t-normal);
}
    .ms_nav_close {
        display: block;
    }
    .playcloud-sidebar {
        display: none !important;
    }
    .ms_header {
        padding: 0 var(--space-4);
    }
    .ms_content_wrapper {
        padding-bottom: 80px;
    }
}

@media (max-width: 992px) {
    .mobile-menu-btn { display: block !important; }
    .header-breadcrumbs { display: none !important; }
}



/* IMPORTED FROM USER HTML */
/* --- FEATURED STORIES --- */
        .section-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #eee; margin: 40px 0 25px; padding-bottom: 10px; }
        .section-header h2 { font-size: 20px; font-weight: 700; position: relative; }
        .section-header h2::after { content: ''; position: absolute; bottom: -12px; left: 0; width: 40px; height: 3px; background: #f44336; }
        .featured-grid { display: grid; grid-template-columns: 2fr 1.5fr; gap: 30px; }
        .featured-hero { display: flex; gap: 20px; background: #fff; padding: 20px; border-radius: 4px; }
        .featured-hero-img { flex: 1; min-height: 250px; position: relative; }
        .featured-hero-img img { width: 100%; height: 100%; object-fit: cover; }
        .featured-hero-content { flex: 1.2; padding: 10px 0; }
        .featured-hero-content h3 { font-size: 22px; font-weight: 700; margin: 10px 0; line-height: 1.3; }
        .featured-hero-content p { font-size: 14px; color: #777; line-height: 1.6; margin: 15px 0; }
        .featured-sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 15px; }
        .featured-sub-item { position: relative; }
        .featured-sub-item img { height: 180px; width: 100%; }
        .featured-sub-item h4 { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff; padding: 15px; font-size: 14px; font-weight: 500; }
        .featured-num-list { background: #fff; padding: 10px 0; }
        .featured-num-item { display: flex; align-items: flex-start; gap: 15px; padding: 15px 20px; border-bottom: 1px solid #f0f0f0; }
        .featured-num-item:last-child { border: none; }
        .featured-num { font-size: 26px; font-weight: 900; color: #eee; flex-shrink: 0; width: 40px; text-align: right; }
        .featured-num-content h4 { font-size: 14px; line-height: 1.4; font-weight: 500; }
        .featured-num-content span { font-size: 11px; color: #999; }

        /* --- BUSINESS SECTION --- */
        .business-block { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
        .biz-top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
        .biz-top-card { position: relative; height: 250px; overflow: hidden; }
        .biz-top-card img { width: 100%; height: 100%; object-fit: cover; }
        .biz-top-card .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 15px; color: #fff; }
        .biz-top-card h3 { font-size: 16px; margin: 5px 0; }
        .biz-list-item { display: flex; gap: 15px; margin-bottom: 15px; background: #fff; padding: 15px; }
        .biz-list-thumb { width: 100px; height: 70px; flex-shrink: 0; }
        .biz-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .biz-list-info h4 { font-size: 14px; line-height: 1.3; margin-bottom: 5px; }
        .biz-list-info span { font-size: 11px; color: #999; }

        /* --- TECH SECTION --- */
        .tech-list-item { display: flex; gap: 30px; background: #fff; padding: 20px; margin-bottom: 20px; }
        .tech-thumb { width: 280px; height: 180px; flex-shrink: 0; position: relative; }
        .tech-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .tech-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
        .tech-content p { color: #777; font-size: 14px; line-height: 1.6; margin-bottom: 15px; }
        .tech-meta { font-size: 12px; color: #999; display: flex; gap: 15px; margin-bottom: 10px; }
        .tech-meta i { color: #f44336; }

        /* --- MOVIES DARK BLOCK --- */
        .movies-block { background: #222; padding: 30px; margin: 40px 0; display: grid; grid-template-columns: 2fr 1fr; gap: 15px; }
        .movie-hero { position: relative; height: 350px; }
        .movie-hero img { width: 100%; height: 100%; object-fit: cover; }
        .movie-hero .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, #000, transparent); padding: 20px; color: #fff; }
        .movie-hero h3 { font-size: 20px; font-weight: 700; }
        .movie-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
        .movie-small { position: relative; height: 165px; }
        .movie-small img { width: 100%; height: 100%; object-fit: cover; }
        .movie-small .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, #000, transparent); padding: 10px; color: #fff; font-size: 13px; font-weight: 500; }
        .play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 30px; background: rgba(0,0,0,0.5); width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }

        /* --- LIFESTYLE & ENTERTAINMENT --- */
        .lifestyle-row { display: flex; gap: 30px; margin: 40px 0; }
        .lifestyle-main { flex: 2; }
        .lifestyle-hero { display: flex; gap: 20px; background: #fff; padding: 20px; margin-bottom: 20px; }
        .lifestyle-hero img { width: 250px; height: 180px; object-fit: cover; flex-shrink: 0; }
        .lifestyle-hero h3 { font-size: 20px; margin-bottom: 10px; }
        .lifestyle-hero p { color: #777; font-size: 14px; line-height: 1.6; }
        .lifestyle-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
        .lifestyle-list-item { display: flex; gap: 15px; background: #fff; padding: 10px; }
        .lifestyle-list-item img { width: 80px; height: 60px; object-fit: cover; flex-shrink: 0; }
        .lifestyle-list-item h4 { font-size: 13px; line-height: 1.3; }
        .entertainment-side { flex: 1; }
        .entertainment-item { position: relative; height: 250px; margin-bottom: 15px; }
        .entertainment-item img { width: 100%; height: 100%; object-fit: cover; }
        .entertainment-item .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 15px; color: #fff; }
        .entertainment-item h4 { font-size: 16px; font-weight: 500; }

        /* --- LATEST POST & SOCIAL COUNTERS --- */
        .latest-row { display: flex; gap: 30px; margin: 40px 0; }
        .latest-list { flex: 2; }
        .latest-item { display: flex; gap: 20px; background: #fff; padding: 20px; margin-bottom: 20px; }
        .latest-item img { width: 220px; height: 150px; object-fit: cover; flex-shrink: 0; }
        .latest-item h3 { font-size: 18px; margin-bottom: 10px; }
        .latest-item p { color: #777; font-size: 14px; line-height: 1.6; }
        .social-side { flex: 1; }
        .social-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: #eee; border: 1px solid #eee; }
        .social-box { background: #fff; padding: 15px 5px; text-align: center; }
        .social-box i { font-size: 22px; margin-bottom: 5px; }
        .social-box .count { font-size: 14px; font-weight: 700; display: block; }
        .social-box .label { font-size: 11px; color: #999; }
        .social-box:nth-child(1) i { color: #000; }
        .social-box:nth-child(2) i { color: #e1306c; }
        .social-box:nth-child(3) i { color: #4a76a8; }
        .social-box:nth-child(4) i { color: #1769ff; }
        .social-box:nth-child(5) i { color: #e60023; }
        .social-box:nth-child(6) i { color: #f26522; }

        /* --- ADS & SIDEBAR WIDGETS --- */
        .ad-placeholder { background: #f5f5f5; border: 1px solid #ddd; padding: 20px; text-align: center; margin-bottom: 30px; color: #aaa; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100px; }
        .ad-placeholder h4 { font-weight: 400; margin-bottom: 10px; }
        .btn-ad { background: #222; color: #fff; padding: 8px 20px; border-radius: 20px; font-size: 12px; text-transform: uppercase; }
        .subscribe-box { background: #f9f9f9; border: 1px solid #eee; padding: 30px; text-align: center; margin-bottom: 30px; }
        .subscribe-box form { display: flex; margin-top: 15px; }
        .subscribe-box input { flex: 1; padding: 10px; border: 1px solid #ddd; }
        .subscribe-box button { background: #f44336; color: #fff; border: none; padding: 10px 20px; font-weight: 700; }
        .recommended-item { display: flex; gap: 15px; margin-bottom: 15px; }
        .recommended-item img { width: 80px; height: 60px; object-fit: cover; }
        .recommended-item h4 { font-size: 14px; line-height: 1.3; }
        .recommended-item span { font-size: 11px; color: #999; }

        /* --- PAGINATION --- */
        .pagination { display: flex; justify-content: center; gap: 5px; margin: 40px 0; }
        .pagination a { display: flex; justify-content: center; align-items: center; width: 35px; height: 35px; border: 1px solid #ddd; background: #fff; color: #555; font-size: 14px; }
        .pagination a.active { background: #f44336; border-color: #f44336; color: #fff; }
        .pagination a:hover:not(.active) { background: #f0f0f0; }

        /* --- BACK TO TOP --- */
        .back-top { position: fixed; bottom: 20px; right: 20px; background: #ccc; color: #fff; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; border-radius: 4px; cursor: pointer; display: none; transition: 0.3s; }
        .back-top:hover { background: #999; }

        /* --- RESPONSIVE MEDIA QUERIES --- */
        @media (max-width: 1024px) {
            .row, .hero-grid, .featured-grid, .business-block, .lifestyle-row, .latest-row { flex-direction: column; grid-template-columns: 1fr; }
            .col-side, .social-side, .entertainment-side { width: 100%; }
            .featured-hero { flex-direction: column; }
            .featured-hero-img { min-height: 200px; }
            .featured-sub-grid { grid-template-columns: 1fr 1fr; }
            .movies-block { grid-template-columns: 1fr; }
            .movie-grid { grid-template-columns: 1fr 1fr; }
            .lifestyle-hero { flex-direction: column; }
            .lifestyle-hero img { width: 100%; height: auto; }
        }
        @media (max-width: 768px) {
            .nav-links { display: none; flex-direction: column; position: absolute; top: 55px; left: 0; width: 100%; background: #fff; padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); gap: 10px; }
            .nav-links.active { display: flex; }
            .hamburger { display: block; }
            .featured-sub-grid { grid-template-columns: 1fr; }
            .biz-top-grid { grid-template-columns: 1fr; }
            .lifestyle-list { grid-template-columns: 1fr; }
            .tech-list-item { flex-direction: column; }
            .tech-thumb { width: 100%; height: auto; }
            .latest-item { flex-direction: column; }
            .latest-item img { width: 100%; height: auto; }
            .movie-grid { grid-template-columns: 1fr; }
            .header-ad { display: none; }
            .ticker-text { white-space: normal; }
        }
    

/* IMPORTED FROM USER HTML */
/* --- FEATURED STORIES --- */
        .section-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #eee; margin: 40px 0 25px; padding-bottom: 10px; }
        .section-header h2 { font-size: 20px; font-weight: 700; position: relative; }
        .section-header h2::after { content: ''; position: absolute; bottom: -12px; left: 0; width: 40px; height: 3px; background: #f44336; }
        .featured-grid { display: grid; grid-template-columns: 2fr 1.5fr; gap: 30px; }
        .featured-hero { display: flex; gap: 20px; background: #fff; padding: 20px; border-radius: 4px; }
        .featured-hero-img { flex: 1; min-height: 250px; position: relative; }
        .featured-hero-img img { width: 100%; height: 100%; object-fit: cover; }
        .featured-hero-content { flex: 1.2; padding: 10px 0; }
        .featured-hero-content h3 { font-size: 22px; font-weight: 700; margin: 10px 0; line-height: 1.3; }
        .featured-hero-content p { font-size: 14px; color: #777; line-height: 1.6; margin: 15px 0; }
        .featured-sub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 15px; }
        .featured-sub-item { position: relative; }
        .featured-sub-item img { height: 180px; width: 100%; }
        .featured-sub-item h4 { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: #fff; padding: 15px; font-size: 14px; font-weight: 500; }
        .featured-num-list { background: #fff; padding: 10px 0; }
        .featured-num-item { display: flex; align-items: flex-start; gap: 15px; padding: 15px 20px; border-bottom: 1px solid #f0f0f0; }
        .featured-num-item:last-child { border: none; }
        .featured-num { font-size: 26px; font-weight: 900; color: #eee; flex-shrink: 0; width: 40px; text-align: right; }
        .featured-num-content h4 { font-size: 14px; line-height: 1.4; font-weight: 500; }
        .featured-num-content span { font-size: 11px; color: #999; }

        /* --- BUSINESS SECTION --- */
        .business-block { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
        .biz-top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
        .biz-top-card { position: relative; height: 250px; overflow: hidden; }
        .biz-top-card img { width: 100%; height: 100%; object-fit: cover; }
        .biz-top-card .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 15px; color: #fff; }
        .biz-top-card h3 { font-size: 16px; margin: 5px 0; }
        .biz-list-item { display: flex; gap: 15px; margin-bottom: 15px; background: #fff; padding: 15px; }
        .biz-list-thumb { width: 100px; height: 70px; flex-shrink: 0; }
        .biz-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .biz-list-info h4 { font-size: 14px; line-height: 1.3; margin-bottom: 5px; }
        .biz-list-info span { font-size: 11px; color: #999; }

        /* --- TECH SECTION --- */
        .tech-list-item { display: flex; gap: 30px; background: #fff; padding: 20px; margin-bottom: 20px; }
        .tech-thumb { width: 280px; height: 180px; flex-shrink: 0; position: relative; }
        .tech-thumb img { width: 100%; height: 100%; object-fit: cover; }
        .tech-content h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
        .tech-content p { color: #777; font-size: 14px; line-height: 1.6; margin-bottom: 15px; }
        .tech-meta { font-size: 12px; color: #999; display: flex; gap: 15px; margin-bottom: 10px; }
        .tech-meta i { color: #f44336; }

        /* --- MOVIES DARK BLOCK --- */
        .movies-block { background: #222; padding: 30px; margin: 40px 0; display: grid; grid-template-columns: 2fr 1fr; gap: 15px; }
        .movie-hero { position: relative; height: 350px; }
        .movie-hero img { width: 100%; height: 100%; object-fit: cover; }
        .movie-hero .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, #000, transparent); padding: 20px; color: #fff; }
        .movie-hero h3 { font-size: 20px; font-weight: 700; }
        .movie-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
        .movie-small { position: relative; height: 165px; }
        .movie-small img { width: 100%; height: 100%; object-fit: cover; }
        .movie-small .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, #000, transparent); padding: 10px; color: #fff; font-size: 13px; font-weight: 500; }
        .play-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #fff; font-size: 30px; background: rgba(0,0,0,0.5); width: 50px; height: 50px; border-radius: 50%; display: flex; justify-content: center; align-items: center; }

        /* --- LIFESTYLE & ENTERTAINMENT --- */
        .lifestyle-row { display: flex; gap: 30px; margin: 40px 0; }
        .lifestyle-main { flex: 2; }
        .lifestyle-hero { display: flex; gap: 20px; background: #fff; padding: 20px; margin-bottom: 20px; }
        .lifestyle-hero img { width: 250px; height: 180px; object-fit: cover; flex-shrink: 0; }
        .lifestyle-hero h3 { font-size: 20px; margin-bottom: 10px; }
        .lifestyle-hero p { color: #777; font-size: 14px; line-height: 1.6; }
        .lifestyle-list { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
        .lifestyle-list-item { display: flex; gap: 15px; background: #fff; padding: 10px; }
        .lifestyle-list-item img { width: 80px; height: 60px; object-fit: cover; flex-shrink: 0; }
        .lifestyle-list-item h4 { font-size: 13px; line-height: 1.3; }
        .entertainment-side { flex: 1; }
        .entertainment-item { position: relative; height: 250px; margin-bottom: 15px; }
        .entertainment-item img { width: 100%; height: 100%; object-fit: cover; }
        .entertainment-item .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); padding: 15px; color: #fff; }
        .entertainment-item h4 { font-size: 16px; font-weight: 500; }

        /* --- LATEST POST & SOCIAL COUNTERS --- */
        .latest-row { display: flex; gap: 30px; margin: 40px 0; }
        .latest-list { flex: 2; }
        .latest-item { display: flex; gap: 20px; background: #fff; padding: 20px; margin-bottom: 20px; }
        .latest-item img { width: 220px; height: 150px; object-fit: cover; flex-shrink: 0; }
        .latest-item h3 { font-size: 18px; margin-bottom: 10px; }
        .latest-item p { color: #777; font-size: 14px; line-height: 1.6; }
        .social-side { flex: 1; }
        .social-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: #eee; border: 1px solid #eee; }
        .social-box { background: #fff; padding: 15px 5px; text-align: center; }
        .social-box i { font-size: 22px; margin-bottom: 5px; }
        .social-box .count { font-size: 14px; font-weight: 700; display: block; }
        .social-box .label { font-size: 11px; color: #999; }
        .social-box:nth-child(1) i { color: #000; }
        .social-box:nth-child(2) i { color: #e1306c; }
        .social-box:nth-child(3) i { color: #4a76a8; }
        .social-box:nth-child(4) i { color: #1769ff; }
        .social-box:nth-child(5) i { color: #e60023; }
        .social-box:nth-child(6) i { color: #f26522; }

        /* --- ADS & SIDEBAR WIDGETS --- */
        .ad-placeholder { background: #f5f5f5; border: 1px solid #ddd; padding: 20px; text-align: center; margin-bottom: 30px; color: #aaa; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100px; }
        .ad-placeholder h4 { font-weight: 400; margin-bottom: 10px; }
        .btn-ad { background: #222; color: #fff; padding: 8px 20px; border-radius: 20px; font-size: 12px; text-transform: uppercase; }
        .subscribe-box { background: #f9f9f9; border: 1px solid #eee; padding: 30px; text-align: center; margin-bottom: 30px; }
        .subscribe-box form { display: flex; margin-top: 15px; }
        .subscribe-box input { flex: 1; padding: 10px; border: 1px solid #ddd; }
        .subscribe-box button { background: #f44336; color: #fff; border: none; padding: 10px 20px; font-weight: 700; }
        .recommended-item { display: flex; gap: 15px; margin-bottom: 15px; }
        .recommended-item img { width: 80px; height: 60px; object-fit: cover; }
        .recommended-item h4 { font-size: 14px; line-height: 1.3; }
        .recommended-item span { font-size: 11px; color: #999; }

        /* --- PAGINATION --- */
        .pagination { display: flex; justify-content: center; gap: 5px; margin: 40px 0; }
        .pagination a { display: flex; justify-content: center; align-items: center; width: 35px; height: 35px; border: 1px solid #ddd; background: #fff; color: #555; font-size: 14px; }
        .pagination a.active { background: #f44336; border-color: #f44336; color: #fff; }
        .pagination a:hover:not(.active) { background: #f0f0f0; }

        /* --- BACK TO TOP --- */
        .back-top { position: fixed; bottom: 20px; right: 20px; background: #ccc; color: #fff; width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; border-radius: 4px; cursor: pointer; display: none; transition: 0.3s; }
        .back-top:hover { background: #999; }

        /* --- RESPONSIVE MEDIA QUERIES --- */
        @media (max-width: 1024px) {
            .row, .hero-grid, .featured-grid, .business-block, .lifestyle-row, .latest-row { flex-direction: column; grid-template-columns: 1fr; }
            .col-side, .social-side, .entertainment-side { width: 100%; }
            .featured-hero { flex-direction: column; }
            .featured-hero-img { min-height: 200px; }
            .featured-sub-grid { grid-template-columns: 1fr 1fr; }
            .movies-block { grid-template-columns: 1fr; }
            .movie-grid { grid-template-columns: 1fr 1fr; }
            .lifestyle-hero { flex-direction: column; }
            .lifestyle-hero img { width: 100%; height: auto; }
        }
        @media (max-width: 768px) {
            .nav-links { display: none; flex-direction: column; position: absolute; top: 55px; left: 0; width: 100%; background: #fff; padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); gap: 10px; }
            .nav-links.active { display: flex; }
            .hamburger { display: block; }
            .featured-sub-grid { grid-template-columns: 1fr; }
            .biz-top-grid { grid-template-columns: 1fr; }
            .lifestyle-list { grid-template-columns: 1fr; }
            .tech-list-item { flex-direction: column; }
            .tech-thumb { width: 100%; height: auto; }
            .latest-item { flex-direction: column; }
            .latest-item img { width: 100%; height: auto; }
            .movie-grid { grid-template-columns: 1fr; }
            .header-ad { display: none; }
            .ticker-text { white-space: normal; }
        }
    .search-suggestions-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 4px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-height: 300px;
    overflow-y: auto;
}
.search-suggestions-dropdown.show {
    display: block;
}
.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}
.search-suggestion-item:last-child {
    border-bottom: none;
}
.search-suggestion-item:hover {
    background: var(--bg);
}
.search-suggestion-img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}
.search-suggestion-img.artist {
    border-radius: 50%;
}
.search-suggestion-info {
    display: flex;
    flex-direction: column;
}
.search-suggestion-title {
    font-weight: 600;
    font-size: 14px;
}
.search-suggestion-sub {
    font-size: 12px;
    color: var(--muted);
}

/* ============================================================
   SKELETON LOADING & ANIMATIONS (Phase 6)
   ============================================================ */

@keyframes pulse {
    0%   { opacity: 1; }
    50%  { opacity: 0.4; }
    100% { opacity: 1; }
}

.skeleton-post {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}
.skeleton-line {
    background: var(--surface-2);
    border-radius: 6px;
    animation: pulse 1.5s ease-in-out infinite;
}
.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-2);
    animation: pulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

/* ============================================================
   SCRIPTURE HOVER TOOLTIP (Phase 6)
   ============================================================ */
.scripture-ref-link {
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline dotted;
    position: relative;
    font-weight: 600;
}
.scripture-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: 280px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 100;
    font-weight: 400;
    font-style: italic;
    white-space: normal;
    pointer-events: none;
}
.scripture-tooltip strong {
    display: block;
    font-style: normal;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 6px;
}
.scripture-ref-link:hover .scripture-tooltip {
    display: block;
}

/* ============================================================
   MOOD PILLS (Phase 6)
   ============================================================ */
.feed-mood-pill {
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.feed-mood-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.feed-mood-pill.active {
    box-shadow: 0 0 0 2px var(--primary);
}

/* ============================================================
   REAL-TIME NOTIFICATION BADGE (Phase 6)
   ============================================================ */
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger, #e53935);
    color: #fff;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s ease-in-out infinite;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.notif-badge.pop {
    transform: scale(1.4);
}

/* ============================================================
   SOWING SEED BUTTON (Phase 6)
   ============================================================ */
.btn-sow-seed {
    transition: all 0.2s ease;
}
.btn-sow-seed:hover {
    background: #218838 !important;
    transform: scale(1.05);
}

/* ============================================================
   POST AUDIO PLAYER (Phase 6)
   ============================================================ */
.post-audio-player audio {
    accent-color: var(--primary);
}







/* ============================================================
   MOBILE SIDEBAR FIXES (ADDED TO OVERRIDE EARLIER RULES)
   ============================================================ */
@media (max-width: 992px) {
    .ms_sidemenu_wrapper {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 260px !important;
        height: 100vh !important;
        background: var(--surface) !important;
        z-index: 10001 !important;
        transition: transform 0.3s ease !important;
        transform: translateX(-100%);
        box-shadow: 4px 0 20px rgba(0,0,0,0.5);
    }
    body.sidebar-open .ms_sidemenu_wrapper {
        transform: translateX(0);
    }
    
    #sidebar-overlay {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0,0,0,0.6) !important;
        z-index: 10000 !important;
        display: none;
        opacity: 0;
        transition: opacity 0.3s ease;
        backdrop-filter: blur(2px);
    }
    body.sidebar-open #sidebar-overlay {
        display: block;
        opacity: 1;
    }
}









/* Added by request */
html.dark [class*="border-gray-"] {
    border-color: #2a2a2a !important;
    background: black;
}


/* Added by request */
html.dark [class*="border-gray-"] {
    border-color: #2a2a2a !important;
    background: black !important;
}


/* Added by request */
html.dark body, body.dark {
    --tw-bg-opacity: 1;
    background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1)) !important;
}

