@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.min.css');

/* ═══════════════════════════════════════════════════════
 *  Bootstrap 5 utility layer — overrides for our dark theme
 * ═══════════════════════════════════════════════════════ */
.btn-primary, .btn-primary:focus {
    background: linear-gradient(135deg, var(--primary), #f43f5e) !important;
    border: none !important;
    color:#fff !important;
    font-weight: 600;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(99,102,241,0.3); }
.badge-status { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge-draft         { background: rgba(148,163,184,0.15); color: #94a3b8; }
.badge-in-review     { background: rgba(59,130,246,0.15); color: #60a5fa; }
.badge-waiting       { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-approved      { background: rgba(16,185,129,0.15); color: #34d399; }
.badge-rejected      { background: rgba(244,63,94,0.15);  color: #fb7185; }
.badge-delivered     { background: rgba(139,92,246,0.15); color: #a78bfa; }
.badge-paid          { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.form-input, .form-control {
    background: var(--input-bg, rgba(255,255,255,0.03)) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
}
.form-input:focus, .form-control:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15) !important;
}

:root {
    /* Primary Colors */
    --primary: #6366f1;
    --primary-rgb: 99, 102, 241;
    --primary-secondary: #8b5cf6;
    --primary-secondary-rgb: 139, 92, 246;

    /* Light Theme Variables (default only) */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-topbar: rgba(255, 255, 255, 0.95);
    --border: rgba(0, 0, 0, 0.08);
    --text-main: #0f172a;
    --text-dim: #334155;
    --text-muted: #64748b;
    --input-bg: #f1f5f9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-main);
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1001;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
        box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    }
    
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.6);
        backdrop-filter: blur(5px);
        z-index: 1000;
    }
    .sidebar.active + .sidebar-overlay {
        display: block;
    }
}

.sidebar-menu {
    flex: 1;
    padding: 0 15px;
    overflow-y: auto;
}

/* Professional Sidebar Footer User Card */
.sidebar-footer {
    padding: 14px 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.sidebar-user-card:hover {
    background: rgba(var(--primary-rgb), 0.06);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
    overflow: hidden;
}

.sidebar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
}

.sidebar-user-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sidebar-user-dots {
    color: var(--text-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.sidebar-logo {
    padding: 25px;
}

.sidebar-logo h3 {
    font-size: 18px;
    font-weight: 800;
}


.menu-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-weight: 700;
    margin: 25px 0 10px 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.nav-link i {
    width: 20px;
    text-align: center;
    font-size: 18px;
}

.nav-link:hover, .nav-link.active {
    background-color: var(--input-bg);
    color: var(--primary);
}

.nav-link.active {
    background-color: rgba(var(--primary-rgb), 0.1);
}

/* Main Layout */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 20px 40px;
    padding-top: 100px; /* Space for fixed topbar */
    background: var(--bg-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .main-content {
        margin-left: 0;
        padding: 20px;
        padding-top: 90px;
    }
}

/* Topbar */
.topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 260px;
    height: 70px;
    background-color: var(--bg-topbar);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
}

@media (max-width: 992px) {
    .topbar {
        left: 0;
        padding: 0 20px;
    }
}

.topbar-left {
    display: flex;
    align-items: center;
}

/* Search bar in topbar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--input-bg);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--text-dim);
    min-width: 220px;
}
.search-bar i { color: var(--text-muted); font-size: 14px; }
.search-bar input {
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-main);
    font-size: 14px;
    width: 160px;
}
.search-bar input::placeholder { color: var(--text-muted); }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

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

.topbar-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topbar-btn:hover {
    background: var(--input-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.menu-toggle-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 20px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--input-bg);
}

/* Grid System */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
}

.main-column, .side-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.stat-info h4 { font-size: 12px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 5px; }
.stat-info h2 { font-size: 28px; font-weight: 800; }

.table-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow-x: auto;
}

table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 15px 20px; font-size: 11px; text-transform: uppercase; color: var(--text-muted); border-bottom: 1px solid var(--border); }
td { padding: 15px 20px; border-bottom: 1px solid var(--border); font-size: 14px; }

/* ---- Status Badges ---- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* In Review — Amber */
.badge-in-review {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Draft — Slate/Muted */
.badge-draft {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Processing — Indigo/Purple */
.badge-processing {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

/* Approved — Emerald Green */
.badge-approved {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Approved by Stores — Sky Blue */
.badge-approved-by-stores {
    background: rgba(14, 165, 233, 0.12);
    color: #0ea5e9;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

/* Delivered — Royal Blue */
.badge-delivered {
    background: rgba(0, 122, 255, 0.12);
    color: #007aff;
    border: 1px solid rgba(0, 122, 255, 0.25);
}

/* Rejected — Red */
.badge-rejected {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.25);
}

/* Takedown — Slate Grey */
.badge-takedown {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
    border: 1px solid rgba(100, 116, 139, 0.25);
}

/* Approved by Partner — Teal */
.badge-approved-by-partner {
    background: rgba(20, 184, 166, 0.12);
    color: #14b8a6;
    border: 1px solid rgba(20, 184, 166, 0.25);
}

/* Rejected by Partner — Orange */
.badge-rejected-by-partner {
    background: rgba(249, 115, 22, 0.12);
    color: #f97316;
    border: 1px solid rgba(249, 115, 22, 0.25);
}

/* Responsive */
@media (max-width: 1200px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .main-content { margin-left: 0; padding: 20px; padding-top: 90px; }
    .topbar { left: 0; padding: 0 20px; }
    .menu-toggle-btn { display: flex; }
}

@media (max-width: 768px) {
    .card-grid { grid-template-columns: 1fr; }
    .topbar-right .search-bar { display: none; }
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Profile Dropdown */
.profile-dropdown {
    position: relative;
    cursor: pointer;
}

/* Ensure topbar profile is always on top and clickable */
.profile-dropdown, .profile-dropdown * {
    z-index: 2200;
    pointer-events: auto;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 240px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1002;
    transform: translateY(10px);
    transition: all 0.2s ease;
    backdrop-filter: blur(20px);
}

.dropdown-menu.active {
    display: block;
    transform: translateY(0);
}

.dropdown-header {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}

.user-avatar-sm {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.user-details {
    display: flex;
    flex-direction: column;
}

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

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-item:hover {
    background: var(--input-bg);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.dropdown-item.logout {
    color: #ff4d4d !important;
}

.dropdown-item.logout:hover {
    background: rgba(255, 77, 77, 0.1);
}

/* Profile Page Styles */
.profile-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 25px;
    align-items: start;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
    position: relative;
    overflow: hidden;
}

.profile-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.profile-photo-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
    margin-bottom: 20px;
    padding: 5px;
    background: linear-gradient(135deg, var(--primary), var(--primary-secondary));
}

.profile-photo-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-card);
}

.photo-upload-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-upload-btn:hover {
    transform: scale(1.1);
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.profile-badge {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    display: inline-block;
}

.info-group {
    margin-bottom: 20px;
}

.info-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.info-label i {
    color: var(--primary);
    font-size: 14px;
}

.info-value {
    background: var(--input-bg);
    border: 1px solid var(--border);
    padding: 14px 18px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 14px;
    width: 100%;
    outline: none;
    transition: all 0.2s ease;
}

.info-value:focus {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

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

.encryption-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
}

.encryption-title i {
    color: var(--primary);
}

.status-badge {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.encryption-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.upload-box {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--border);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-box:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.02);
}

.upload-icon {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 15px;
}

.save-sync-btn {
    margin-top: 30px;
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, var(--primary), var(--primary-secondary));
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

/* Simple modal for compose/send UI */
.ae-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.ae-modal-overlay.active { display: flex; }
.ae-modal {
    width: 720px;
    max-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.ae-modal .modal-row { display:flex; gap:10px; align-items:center; margin-bottom:10px; }
.ae-modal .modal-row label { width:90px; font-size:13px; color:var(--text-muted); }
.ae-modal .form-input { padding:10px 12px; border-radius:8px; }
.ae-modal .modal-body { max-height: 50vh; overflow:auto; margin-bottom:12px; }
.ae-modal .modal-footer { display:flex; gap:8px; justify-content:flex-end; }

.save-sync-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.3);
}

.save-sync-btn.success {
    background: linear-gradient(90deg, #10b981, #059669) !important;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3) !important;
}

@media (max-width: 1200px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Custom Modal Styling ---- */
.custom-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.custom-modal-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 450px;
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 40px 30px;
    position: relative;
    transform: scale(0.9);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.custom-modal-overlay.active .custom-modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    width: 32px; height: 32px;
    background: var(--input-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f43f5e;
    color: #fff;
    transform: rotate(90deg);
}

.modal-header-section {
    text-align: center;
    margin-bottom: 30px;
}

.modal-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.modal-body-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.support-card {
    background: var(--input-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.support-card.clickable {
    cursor: pointer;
}

.support-card.clickable:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    transform: translateY(-2px);
}

.support-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
}

.support-icon.team { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.support-icon.contact { background: rgba(16, 185, 129, 0.1); color: #10b981; }

.support-info h3 {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 2px;
}

.support-info p {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.modal-footer-section {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.modal-footer-section p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---- Takedown Visual Effects ---- */
.takedown-active {
    filter: grayscale(1) blur(4px) !important;
    pointer-events: none !important;
    user-select: none !important;
    opacity: 0.6;
}

.takedown-overlay-message {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    color: var(--text-main);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid #f43f5e;
    box-shadow: 0 0 50px rgba(244, 63, 94, 0.2);
    text-align: center;
    z-index: 999;
    width: 80%;
    max-width: 400px;
    backdrop-filter: blur(10px);
}

.admin-takedown-banner {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid #f43f5e;
    color: #f43f5e;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ---- Modern Details Layout ---- */
.details-container {
    padding-bottom: 50px;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
    align-items: start;
    width: 100%;
}
@media (max-width: 1100px) {
    .details-container { grid-template-columns: 1fr; }
}
.details-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
.details-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}
.details-card .card-header h3 {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
}
.details-card .card-header i {
    font-size: 18px;
    color: var(--primary);
}

.info-box-modern {
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 22px;
    transition: all 0.3s;
}
.info-box-modern:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.02);
}
.info-box-modern label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}
.info-box-modern .value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}
.field-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}
.modern-input {
    width: 100%;
    background: var(--bg-body);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s;
}
.modern-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}
.modern-readonly {
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    padding: 15px 20px;
    border-radius: 12px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
}
.tracklist-modern {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.artist-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 8px;
}
.artist-tag {
    background: linear-gradient(90deg, var(--primary), var(--primary-secondary));
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.track-row-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    padding: 15px 25px;
    border-radius: 12px;
    transition: transform 0.2s;
    margin-bottom: 10px;
}
.track-row-modern:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}
.track-num { font-size: 18px; font-weight: 800; color: var(--text-muted); width: 20px; }
.track-play {
    width: 40px; height: 40px;
    background: #e91e63;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}
.track-info-main { flex: 1; }
.track-title { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 2px; }
.track-meta { font-size: 11px; color: var(--text-muted); }
.track-stats { display: flex; align-items: center; gap: 30px; text-align: right; }
.track-size { font-size: 12px; font-weight: 700; line-height: 1.2; }
.track-size span { font-size: 10px; font-weight: 500; color: var(--text-muted); }
.track-duration { font-size: 14px; font-weight: 700; }

/* Dashboard Components */
.welcome-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s, border-color 0.2s;
}
.mini-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}
.mini-icon {
    width: 45px; height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.mini-info h4 { font-size: 10px; text-transform: uppercase; color: var(--text-muted); font-weight: 800; margin-bottom: 4px; }
.mini-info h2 { font-size: 24px; font-weight: 800; margin: 0; }

.recent-list {
    display: flex;
    flex-direction: column;
}
.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
    flex-wrap: wrap;
    gap: 15px;
}
.list-item:hover { background: rgba(var(--primary-rgb), 0.05); }
.list-item:last-child { border-bottom: none; }

/* Premium Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary), var(--primary-secondary));
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}
.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
    filter: brightness(1.1);
}
.btn-premium:active {
    transform: translateY(0);
}

.btn-secondary-premium {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-secondary-premium:hover {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

/* Rejection Card */
.rejection-notice-card {
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 30px;
    animation: slideInDown 0.5s ease-out;
}
.rejection-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #f43f5e;
    margin-bottom: 15px;
}
.rejection-header i { font-size: 20px; }
.rejection-header h4 { font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: inherit; }
.rejection-content {
    background: rgba(0,0,0,0.2);
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(244, 63, 94, 0.1);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 500;
}
/* Grid Helpers */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}
.two-column-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

/* Grid Adjustments */
@media (max-width: 1200px) {
    .two-column-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .welcome-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    .welcome-section div[style*="display: flex"] {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .stat-cards-mini {
        grid-template-columns: 1fr !important;
    }
    .mini-card { padding: 20px !important; }
    .mini-info h2 { font-size: 20px !important; }
    
    .topbar-left div[style*="font-weight: 700"] {
        display: none; /* Hide page title on very small screens to save space */
    }
}

/* Table Responsiveness */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}
.table-responsive table {
    min-width: 800px;
}

/* Page Header with Actions */
.page-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}
.action-btns {
    display: flex;
    gap: 10px;
    align-items: center;
}

@media (max-width: 768px) {
    .page-header-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-header-actions .action-btns {
        width: 100%;
        justify-content: space-between;
    }
}

/* Temporarily Disabled Premium Modules */
.premium-link, .menu-label-premium { display: none !important; }

