/* Import Poppins Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

/* Root Variables */
:root {
    --primary-color: #00d9ff;
    --secondary-color: #00b8d4;
    --accent-color: #0097a7;
    --bg-dark: #f0f9fa;
    --bg-light: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;
    --sidebar-width: 200px;
    --header-height: 60px;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-dark);
    background-color: var(--bg-dark);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    border: none;
    outline: none;
    transition: all 0.3s ease;
}

input, select, textarea {
    font-family: 'Poppins', sans-serif;
    outline: none;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* System Message Banner */
.system-message {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 999;
    animation: slideDown 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.system-message-info {
    background: #e3f2fd;
    border-bottom: 2px solid #2196f3;
    color: #1565c0;
}

.system-message-warning {
    background: #fff3e0;
    border-bottom: 2px solid #ff9800;
    color: #e65100;
}

.system-message-maintenance {
    background: #ffe0b2;
    border-bottom: 2px solid #ff5722;
    color: #bf360c;
}

.system-message-error {
    background: #ffebee;
    border-bottom: 2px solid #f44336;
    color: #c62828;
}

.system-message-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.system-message-content i {
    font-size: 18px;
}

.system-message-close {
    background: rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    opacity: 0.7;
    transition: all 0.2s;
    font-size: 16px;
}

.system-message-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.2);
    transform: scale(1.1);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    background: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #00d9ff 0%, #00b8d4 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
}

.page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification-btn {
    position: relative;
    background: none;
    font-size: 20px;
    color: var(--text-dark);
    padding: 8px;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.user-avatar {
    width: 35px;
    height: 35px;
    background: var(--text-dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.user-details {
    text-align: right;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    background: var(--bg-light);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    transition: transform 0.3s ease;
    z-index: 999;
}

.sidebar.collapsed {
    transform: translateX(-100%);
}

.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 30px;
    min-height: calc(100vh - var(--header-height));
    transition: margin-left 0.3s ease;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.main-content.expanded {
    margin-left: 0;
}

.sidebar-logo {
    padding: 25px 20px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: white;
    display: none !important; /* Hidden on PC - FORCE HIDE */
}

.sidebar-logo .logo {
    display: flex !important;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.sidebar-logo .logo-icon {
    background: linear-gradient(135deg, #00d9ff 0%, #00b8d4 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

.sidebar-logo .logo span {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 2px;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.new-release-btn {
    width: 100%;
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.new-release-btn:hover {
    background: var(--secondary-color);
}

.sidebar-menu {
    list-style: none;
    padding: 10px 0;
}

.menu-item {
    margin: 2px 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
}

.menu-link:hover {
    background: var(--bg-dark);
    color: var(--primary-color);
}

.menu-link.active {
    background: var(--bg-dark);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.menu-icon {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Chart Section */
.chart-section {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.chart-header {
    margin-bottom: 20px;
}

.chart-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.chart-container {
    position: relative;
    height: 300px;
}

/* Recent Releases */
.releases-section {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.view-all-btn {
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

.release-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.release-item:last-child {
    border-bottom: none;
}

.release-artwork {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.release-info {
    flex: 1;
}

.release-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.release-artist {
    font-size: 13px;
    color: var(--text-muted);
}

.release-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-light);
}

.release-upc {
    font-size: 12px;
    color: var(--text-muted);
}

/* Top Labels Chart */
.labels-chart {
    display: flex;
    align-items: center;
    gap: 30px;
}

.donut-chart {
    width: 150px;
    height: 150px;
}

.labels-list {
    flex: 1;
}

.label-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.label-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.label-name {
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
}

.label-count {
    font-weight: 600;
    color: var(--text-dark);
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.1);
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-secondary {
    background: var(--text-muted);
    color: white;
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #e8f5e9;
    color: var(--success);
}

.badge-warning {
    background: #fff3e0;
    color: var(--warning);
}

.badge-danger {
    background: #ffebee;
    color: var(--danger);
}

.badge-info {
    background: #e3f2fd;
    color: var(--info);
}

.badge-secondary {
    background: #f5f5f5;
    color: var(--text-muted);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-dark);
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 13px;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.data-table tbody tr:hover {
    background: var(--bg-dark);
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf6ff;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Mobile First - Responsive Design */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --sidebar-width: 250px;
        --header-height: 55px;
    }
    
    body {
        font-size: 14px;
    }
    
    /* Show sidebar logo on mobile only */
    .sidebar-logo {
        display: block !important;
    }
    
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        transition: opacity 0.3s ease;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: var(--header-height);
        padding: 15px 10px;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .header {
        left: 0;
        width: 100%;
        padding: 0 10px;
        height: var(--header-height);
    }
    
    .header-left {
        gap: 10px;
    }
    
    .logo {
        display: none;
    }
    
    .page-title {
        font-size: 16px;
        font-weight: 600;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .user-details {
        display: none;
    }
    
    .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .notification-btn {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 18px;
        cursor: pointer;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 22px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .view-all-btn, .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
        font-size: 13px;
    }
    
    table th, table td {
        padding: 10px 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-control, .form-label {
        font-size: 14px;
    }
    
    .auth-container {
        padding: 20px;
        margin: 20px;
    }
    
    .releases-section {
        padding: 15px;
    }
    
    .new-release-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .sidebar-menu {
        padding: 10px;
    }
    
    .menu-link {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    .header {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .page-title {
        font-size: 16px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .form-control {
        font-size: 13px;
    }
}

/* Maintenance Messages */
.maintenance-messages-container {
    position: fixed;
    top: var(--header-height);
    left: var(--sidebar-width);
    right: 0;
    z-index: 999;
    padding: 10px 20px;
    background: var(--bg-dark);
}

.maintenance-message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.maintenance-message i {
    font-size: 18px;
    margin-top: 2px;
}

.maintenance-content {
    flex: 1;
}

.maintenance-content strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.maintenance-content p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.maintenance-info {
    background: #e3f2fd;
    border-left-color: #2196f3;
    color: #1565c0;
}

.maintenance-warning {
    background: #fff3e0;
    border-left-color: #ff9800;
    color: #e65100;
}

.maintenance-success {
    background: #e8f5e9;
    border-left-color: #4caf50;
    color: #2e7d32;
}

.maintenance-danger {
    background: #ffebee;
    border-left-color: #f44336;
    color: #c62828;
}

@media (max-width: 768px) {
    .maintenance-messages-container {
        left: 0;
        padding: 10px;
    }
    
    .maintenance-message {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .maintenance-message i {
        font-size: 16px;
    }
    
    .maintenance-content strong {
        font-size: 13px;
    }
    
    .maintenance-content p {
        font-size: 12px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.p-20 { padding: 20px; }

/* =========================================================
   TEN MUSIC — UNIFIED MODERN DASHBOARD UI
   Shared visual layer for Admin / Label / Sub-label
   ========================================================= */
:root {
    --primary-color: #18b89f;
    --secondary-color: #119b88;
    --accent-color: #0f8f7d;
    --bg-dark: #f5f8fa;
    --bg-light: #ffffff;
    --text-dark: #18212b;
    --text-light: #647180;
    --text-muted: #8a96a3;
    --border-color: #e8edf1;
    --success: #20a779;
    --warning: #f2a23a;
    --danger: #e45757;
    --info: #4f86d9;
    --sidebar-width: 250px;
    --header-height: 72px;
    --card-radius: 18px;
    --card-shadow: 0 8px 28px rgba(25, 42, 55, .055);
}

html { background: var(--bg-dark); }
body {
    background: var(--bg-dark);
    color: var(--text-dark);
    font-size: 14px;
    letter-spacing: -.01em;
}

/* Desktop header */
.header {
    height: var(--header-height);
    padding: 0 28px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #edf1f4;
    box-shadow: 0 1px 0 rgba(20,30,40,.015);
}
.header-left { gap: 14px; }
.header .logo { display: flex; color: #111b25; }
.header .logo-icon {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--primary-color);
    font-size: 12px;
}
.menu-toggle {
    width: 38px; height: 38px; border-radius: 10px;
    color: #34414d; font-size: 18px;
}
.menu-toggle:hover { background: #f1f6f7; }
.page-title { font-size: 18px; font-weight: 700; }
.notification-btn {
    width: 40px; height: 40px; border-radius: 12px;
    color: #53606d; font-size: 18px;
}
.notification-btn:hover { background: #f2f7f7; color: var(--primary-color); }
.notification-badge {
    top: 4px; right: 4px; width: 17px; height: 17px;
    background: var(--primary-color); color: #fff; border: 2px solid #fff;
    font-size: 9px; display: flex; align-items: center; justify-content: center;
}
.user-info { gap: 11px; padding: 5px 8px 5px 6px; border-radius: 12px; }
.user-info:hover { background: #f5f8f9; }
.user-details { text-align: left; }
.user-name { font-size: 13px; }
.user-role { font-size: 11px; color: #8d99a5; }
.user-avatar {
    width: 38px; height: 38px; border-radius: 12px;
    background: #e9f5f2; color: var(--accent-color); font-size: 15px;
}

/* Dark desktop sidebar matching the new TEN design */
.sidebar {
    top: 0;
    height: 100vh;
    width: var(--sidebar-width);
    padding: 0 14px;
    background: linear-gradient(180deg, #101a22 0%, #0d151c 100%);
    border: 0;
    box-shadow: 8px 0 30px rgba(10,20,30,.08);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.12) transparent;
}
.sidebar-logo {
    display: block !important;
    padding: 24px 12px 20px;
    border: 0;
    background: transparent;
    text-align: left;
}
.sidebar-logo .logo { justify-content: flex-start; gap: 11px; }
.sidebar-logo .logo-icon {
    width: auto; min-width: 48px; height: 40px; padding: 0 9px;
    border-radius: 10px; background: transparent;
    color: #fff; font-size: 25px; letter-spacing: -2px;
}
.sidebar-logo .logo span {
    color: #8e9aa5; font-size: 9px; font-weight: 500;
    line-height: 1.25; letter-spacing: .5px;
    max-width: 90px;
}
.sidebar-header { padding: 8px 6px 17px; border: 0; }
.new-release-btn {
    min-height: 46px; padding: 11px 16px;
    background: var(--primary-color); border-radius: 13px;
    box-shadow: 0 8px 18px rgba(24,184,159,.18);
    font-size: 13px; font-weight: 600;
}
.new-release-btn:hover { background: #21c4aa; transform: translateY(-1px); }
.sidebar-menu { padding: 4px 0; }
.menu-item { margin: 4px 0; }
.menu-link {
    min-height: 46px; padding: 11px 14px;
    gap: 13px; color: #9da8b2; border-radius: 12px;
    font-size: 13px; font-weight: 500;
    border-left: 0 !important;
}
.menu-link:hover { background: rgba(255,255,255,.055); color: #fff; }
.menu-link.active {
    background: rgba(24,184,159,.14);
    color: #45d5bd;
    border-left: 0 !important;
    box-shadow: inset 3px 0 0 var(--primary-color);
}
.menu-icon { width: 21px; font-size: 16px; color: inherit; }

/* Content */
.main-content {
    margin-left: var(--sidebar-width);
    margin-top: var(--header-height);
    padding: 30px 32px 42px;
    min-height: calc(100vh - var(--header-height));
}
.main-content > * { max-width: 1480px; margin-left: auto; margin-right: auto; }

/* Universal cards */
.stat-card, .chart-section, .releases-section, .form-container, .detail-section,
.sublabel-earnings-section {
    background: #fff;
    border: 1px solid #edf1f3;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
}
.stat-card { padding: 21px; min-height: 125px; }
.dashboard-grid { gap: 18px; margin-bottom: 22px; }
.stat-value {
    color: var(--text-dark); font-size: 30px; font-weight: 700;
    letter-spacing: -.04em;
}
.stat-label { color: #7d8995; font-size: 12px; margin-top: 4px; }
.chart-section, .releases-section { padding: 22px; margin-bottom: 22px; }
.section-header { margin-bottom: 18px; }
.section-title { font-size: 16px; font-weight: 700; color: #202b36; }
.chart-title { font-size: 15px; font-weight: 700; }
.view-all-btn {
    padding: 7px 12px; background: transparent; color: var(--primary-color);
    border-radius: 9px; font-size: 12px; font-weight: 600;
}
.view-all-btn:hover { background: #eef9f7; }

/* Tables */
.table-responsive { border-radius: 13px; }
.data-table { border-collapse: separate; border-spacing: 0; overflow: hidden; }
.data-table thead { background: #f7f9fa; }
.data-table th {
    padding: 12px 14px; color: #7c8792; font-size: 11px;
    text-transform: uppercase; letter-spacing: .045em; border-bottom: 1px solid #edf1f3;
}
.data-table td { padding: 14px; border-bottom: 1px solid #f0f3f5; color: #35414c; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfdfd; }

/* Forms */
.form-group { margin-bottom: 17px; }
.form-label { margin-bottom: 7px; font-size: 12px; font-weight: 600; color: #53606d; }
.form-control {
    min-height: 44px; padding: 10px 13px; border: 1px solid #e2e8ec;
    border-radius: 11px; background: #fbfcfd; color: #26323d; font-size: 13px;
}
.form-control:hover { border-color: #cfd9de; }
.form-control:focus {
    border-color: rgba(24,184,159,.75);
    box-shadow: 0 0 0 3px rgba(24,184,159,.10);
    background: #fff;
}
.btn {
    min-height: 42px; padding: 9px 16px; border-radius: 11px;
    font-size: 12px; font-weight: 600;
}
.btn-primary { background: var(--primary-color); box-shadow: 0 5px 14px rgba(24,184,159,.14); }
.btn-primary:hover { background: var(--secondary-color); transform: translateY(-1px); }
.btn-secondary { background: #edf1f3; color: #53606d; }
.btn-danger { background: #fff0f0; color: var(--danger); }
.btn-success { background: var(--success); }
.badge { padding: 5px 10px; border-radius: 999px; font-size: 10px; }

/* Alerts */
.alert { border-radius: 12px !important; border: 1px solid transparent; }
.alert-success { background: #eefaf5 !important; color: #167a58 !important; }
.alert-danger { background: #fff1f1 !important; color: #bd3d3d !important; }

/* Detail blocks / list items */
.detail-section { padding: 20px; margin-bottom: 20px; }
.detail-heading { font-size: 15px; font-weight: 700; }
.detail-label { color: #8a96a1; font-size: 11px; }
.detail-value { color: #27333e; font-size: 13px; font-weight: 600; }
.release-item { padding: 14px 4px; border-bottom-color: #edf1f3; }
.release-artwork { width: 52px; height: 52px; border-radius: 12px; }
.release-title { font-size: 13px; }
.release-artist { font-size: 11px; }

/* Desktop two-column helpers */
.main-content [style*="grid-template-columns: 1fr 1fr"],
.main-content [style*="grid-template-columns:1fr 1fr"] { gap: 18px !important; }

/* Mobile */
@media (max-width: 768px) {
    :root { --sidebar-width: 285px; --header-height: 60px; }
    body { font-size: 13px; padding-bottom: 70px; }
    .header {
        height: var(--header-height); padding: 0 12px;
        box-shadow: 0 4px 18px rgba(20,35,45,.055);
    }
    .header-left { flex: 1; min-width: 0; gap: 9px; }
    .header .logo { display: flex; order: 2; }
    .header .logo-icon { width: auto; min-width: 43px; height: 34px; border-radius: 9px; background: transparent; color: #17222b; font-size: 21px; padding: 0; }
    .header .logo span { display: none; }
    .page-title { order: 3; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .menu-toggle { order: 1; width: 38px; height: 38px; background: #f1f6f6; color: #34424c; border-radius: 11px; }
    .header-right { gap: 5px; }
    .notification-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; font-size: 16px; }
    .user-info { padding: 0; }
    .user-details { display: none; }
    .user-avatar { width: 34px; height: 34px; border-radius: 11px; }
    .sidebar {
        top: 0; height: 100vh; width: var(--sidebar-width);
        transform: translateX(-105%); padding: 0 13px;
        box-shadow: 14px 0 35px rgba(0,0,0,.20);
    }
    .sidebar.active { transform: translateX(0); }
    .sidebar-logo { padding-top: 22px; }
    .sidebar-overlay { background: rgba(8,15,20,.55); backdrop-filter: blur(2px); }
    .main-content {
        margin-left: 0; margin-top: var(--header-height);
        padding: 18px 12px 28px; width: 100%; max-width: 100vw;
    }
    .dashboard-grid { grid-template-columns: repeat(2, minmax(0,1fr)) !important; gap: 10px; }
    .stat-card { padding: 15px; min-height: 105px; border-radius: 15px; }
    .stat-value { font-size: 22px; }
    .stat-label { font-size: 10px; line-height: 1.35; }
    .chart-section, .releases-section, .detail-section { padding: 16px; border-radius: 15px; margin-bottom: 14px; }
    .section-title { font-size: 14px; }
    .section-header { flex-direction: row; align-items: center; gap: 8px; }
    .view-all-btn { width: auto; padding: 6px 8px; }
    .table-responsive { margin-left: -2px; margin-right: -2px; }
    table { min-width: 650px; }
    .form-row { grid-template-columns: 1fr !important; }
    .btn { min-height: 40px; }
    .form-control { min-height: 42px; }
    .labels-chart { gap: 16px; }
    .donut-chart { width: 125px; height: 125px; }

    /* Mobile bottom navigation */
    .ten-mobile-nav {
        position: fixed; left: 10px; right: 10px; bottom: 10px; height: 58px;
        display: flex; align-items: center; justify-content: space-around;
        background: rgba(255,255,255,.96); border: 1px solid #e8edef;
        border-radius: 18px; box-shadow: 0 10px 30px rgba(20,35,45,.14);
        z-index: 998;
        backdrop-filter: blur(12px);
    }
    .ten-mobile-nav a {
        flex: 1; height: 100%; display: flex; flex-direction: column;
        align-items: center; justify-content: center; gap: 2px;
        color: #8a96a1; font-size: 9px; font-weight: 500;
    }
    .ten-mobile-nav a i { font-size: 16px; }
    .ten-mobile-nav a.active { color: var(--primary-color); font-weight: 700; }
}

@media (min-width: 769px) {
    .ten-mobile-nav { display: none; }
}

@media (max-width: 480px) {
    .main-content { padding-left: 10px; padding-right: 10px; }
    .dashboard-grid { grid-template-columns: 1fr 1fr !important; }
    .stat-card { padding: 13px; }
    .stat-value { font-size: 20px; }
    .section-title { font-size: 13px; }
}

/* Account dropdown */
.user-menu-wrap{position:relative;z-index:1200}
.user-menu-trigger{border:0;background:transparent;cursor:pointer;display:flex;align-items:center;gap:9px;font:inherit;color:inherit}
.user-menu-chevron{font-size:11px;color:#7b8794;transition:transform .2s ease}
.user-menu-wrap.open .user-menu-chevron{transform:rotate(180deg)}
.user-dropdown{position:absolute;right:0;top:calc(100% + 10px);width:210px;background:#fff;border:1px solid #e7edf0;border-radius:14px;box-shadow:0 14px 35px rgba(15,23,42,.16);padding:7px;opacity:0 !important;visibility:hidden !important;pointer-events:none;transform:translateY(-6px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
.user-dropdown.show,.user-menu-wrap.open .user-dropdown{opacity:1 !important;visibility:visible !important;pointer-events:auto;transform:translateY(0)}
.user-dropdown-item{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:10px;color:#1f2937;text-decoration:none;font-size:14px;font-weight:600}
.user-dropdown-item i{width:18px;text-align:center;color:#68737d}
.user-dropdown-item:hover{background:#f3f8f8}
.user-dropdown-item.danger{color:#d32f2f}
.user-dropdown-item.danger i{color:#d32f2f}
.user-dropdown-divider{height:1px;background:#edf1f3;margin:5px 4px}
@media(max-width:768px){.user-details{display:none}.user-dropdown{right:-5px;width:195px}.user-menu-trigger{padding:0}}

/* V14 responsive analytics + guaranteed closed account menu */
.user-dropdown[hidden]{display:none !important;}
@media (max-width: 768px){
  .analytics-page{padding-top:4px;}
  .analytics-topbar{gap:12px;margin-bottom:14px;}
  .analytics-topbar h2{font-size:23px;}
  .analytics-topbar p{font-size:11px;line-height:1.4;}
  .analytics-actions{width:100%;display:grid;grid-template-columns:1fr auto;gap:8px;}
  .analytics-actions select,.analytics-download{height:40px;min-width:0;font-size:12px;}
  .analytics-stats{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:8px;margin-bottom:12px;}
  .analytics-stat{min-width:0;padding:10px 8px;display:block;border-radius:12px;text-align:left;}
  .analytics-stat-icon{width:34px;height:34px;border-radius:9px;font-size:15px;margin-bottom:7px;}
  .analytics-stat span{font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .analytics-stat strong{font-size:17px;line-height:1.2;}
  .analytics-stat .growth{font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .analytics-grid-two,.analytics-grid-bottom{grid-template-columns:1fr !important;gap:12px;margin-bottom:12px;}
  .analytics-card{padding:13px;border-radius:13px;}
  .analytics-card-head h3,.growth-card h3{font-size:14px;}
  .analytics-card-head p{font-size:10px;}
  .analytics-card-head>span{font-size:10px;}
  .bar-chart-wrap,.trend-chart-wrap{height:210px;}
  .top-song-row{grid-template-columns:22px 40px minmax(0,1fr) auto;gap:7px;padding:9px 2px;}
  .analytics-artwork{width:40px;height:40px;min-width:40px;object-fit:cover;aspect-ratio:1/1;}
  .song-main strong{font-size:11px;}
  .song-main small{font-size:9px;}
  .top-song-row>strong{font-size:10px;}
  .growth-card{padding:15px;}
  .summary-line{font-size:11px;padding:10px 0;}
  .user-menu-wrap{z-index:5000;}
  .user-dropdown{right:0;top:calc(100% + 7px);width:min(220px,calc(100vw - 24px));}
}
@media (max-width: 380px){
  .analytics-actions{grid-template-columns:1fr;}
  .analytics-download{width:100%;}
  .analytics-stat{padding:9px 6px;}
  .analytics-stat strong{font-size:15px;}
  .analytics-stat-icon{width:30px;height:30px;font-size:13px;}
}

/* V15: robust account dropdown + mobile auth sizing */
.user-menu-wrap{position:relative;display:flex;align-items:center;z-index:10001;overflow:visible;}
.user-menu-trigger{position:relative;z-index:10002;white-space:nowrap;}
.user-dropdown{display:none;position:absolute !important;right:0 !important;top:calc(100% + 8px) !important;left:auto !important;width:220px !important;min-width:220px;background:#fff !important;border:1px solid #e5ebef !important;border-radius:14px !important;box-shadow:0 16px 38px rgba(15,23,42,.18) !important;padding:7px !important;opacity:1 !important;visibility:visible !important;transform:none !important;z-index:10003 !important;}
.user-dropdown.show{display:block !important;}
.user-dropdown[hidden]{display:none !important;}
.user-dropdown-item{display:flex !important;align-items:center !important;width:100%;box-sizing:border-box;line-height:1.2;white-space:nowrap;}
@media(max-width:768px){
  .user-dropdown{right:0 !important;top:calc(100% + 8px) !important;width:210px !important;min-width:210px !important;}
}


/* V17: use the same square TEN logo on both login and signup. */
body:not(.login-page) .auth-logo .logo-icon.logo-image {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 0 !important;
    object-fit: cover;
    display: block;
    background: transparent;
}

/* Login is intentionally compact on phones: no artificial outer margin/space. */
@media(max-width:768px){
  body.login-page{min-height:100svh;height:100svh;overflow:hidden;}
  body.login-page .auth-container{min-height:100svh;height:100svh;box-sizing:border-box;margin:0;padding:10px 12px;align-items:center;overflow:hidden;}
  body.login-page .auth-card{box-sizing:border-box;width:100%;max-width:430px;padding:24px 20px;border-radius:14px;max-height:calc(100svh - 20px);overflow:auto;}
  /* Login uses the same TEN green logo treatment as the main dashboard. */
body.login-page .auth-logo .logo {
    color: #111b25;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
body.login-page .auth-logo .logo-icon.logo-image {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 0 !important;
    object-fit: cover;
    display: block;
    background: transparent;
}
body.login-page .auth-logo .logo-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.login-page .auth-logo{margin-bottom:18px;}
  body.login-page .auth-title{font-size:22px;margin-bottom:7px;}
  body.login-page .auth-subtitle{margin-bottom:18px;}
  body.login-page .form-group{margin-bottom:14px;}
  body.login-page .form-control{height:44px;box-sizing:border-box;}
  body.login-page .text-center.mt-20{margin-top:14px;}
}
@media(max-width:380px){
  body.login-page .auth-container{padding:6px 10px;}
  body.login-page .auth-card{padding:18px 16px;max-height:calc(100svh - 12px);}
  body.login-page .auth-logo{margin-bottom:12px;}
  body.login-page .auth-title{font-size:20px;}
  body.login-page .auth-subtitle{margin-bottom:14px;}
  body.login-page .form-group{margin-bottom:11px;}
  body.login-page .form-control{height:42px;}
}


/* FINAL TEN brand mark: square/rounded-square image, never circular. */
.auth-logo .logo img.ten-brand-logo {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    display: block !important;
    flex: 0 0 36px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    clip-path: inset(0 round 8px) !important;
    background: transparent !important;
}
@media (max-width: 480px) {
  .auth-logo .logo img.ten-brand-logo {
    width: 34px !important; height: 34px !important;
    min-width: 34px !important; min-height: 34px !important;
    max-width: 34px !important; max-height: 34px !important;
    flex-basis: 34px !important;
    border-radius: 7px !important;
    clip-path: inset(0 round 7px) !important;
  }
}


/* V18: stable account dropdown - single-column, equal-width menu */
.user-menu-wrap{position:relative !important;display:flex !important;align-items:center !important;z-index:10001 !important;overflow:visible !important;}
.user-menu-trigger{position:relative !important;display:flex !important;align-items:center !important;white-space:nowrap !important;}
.user-dropdown{display:none !important;position:absolute !important;right:0 !important;left:auto !important;top:calc(100% + 8px) !important;width:230px !important;min-width:230px !important;box-sizing:border-box !important;padding:7px !important;margin:0 !important;background:#fff !important;border:1px solid #e5ebef !important;border-radius:14px !important;box-shadow:0 16px 38px rgba(15,23,42,.18) !important;z-index:10003 !important;opacity:1 !important;visibility:visible !important;transform:none !important;}
.user-dropdown.show,.user-menu-wrap.open .user-dropdown{display:block !important;}
.user-dropdown[hidden]{display:none !important;}
.user-dropdown-item{display:flex !important;flex-direction:row !important;align-items:center !important;justify-content:flex-start !important;width:100% !important;min-height:42px !important;box-sizing:border-box !important;padding:10px 12px !important;margin:0 !important;border-radius:10px !important;gap:11px !important;white-space:nowrap !important;}
.user-dropdown-item i{flex:0 0 18px !important;width:18px !important;text-align:center !important;}
.user-dropdown-item span{display:block !important;flex:1 1 auto !important;text-align:left !important;}
.user-dropdown-divider{width:100% !important;box-sizing:border-box !important;}
@media(max-width:768px){.user-dropdown{right:0 !important;width:220px !important;min-width:220px !important;}}
