html,
body,
html body.admin-bar {
    margin-top: 0 !important;
}

#wpadminbar {
    display: none !important;
}

.admin-wrapper {
    display: flex;
    min-height: 100vh;
    max-width: 100%;
}

.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #ffffff;
}

.admin-sidebar.hidden-sidebar {
    transform: translateX(-260px);
}

.admin-main {
    margin-left: 260px;
    padding-top: 64px;
    flex: 1;
    min-height: 100vh;
    min-width: 0;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: radial-gradient(circle at center, #e0e7ff 0%, #f1f5f9 100%);
}

.admin-main header {
    position: fixed;
    top: 0;
    right: 0;
    left: 260px;
    height: 64px;
    z-index: 40;
    background-color: #ffffff !important;
    border-bottom: 1px solid #f1f5f9;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html.sidebar-collapsed .admin-main header {
    left: 72px;
}

.admin-main.expanded header {
    left: 0;
}

@media (max-width: 1024px) {
    .admin-main {
        margin-left: 0 !important;
        padding-top: 64px !important;
    }

    .admin-main header {
        left: 0 !important;
    }
}

@media (min-width: 1025px) {

    html.sidebar-collapsed .admin-sidebar,
    .admin-sidebar.hidden-sidebar {
        width: 72px !important;
        transform: translateX(0) !important;
    }

    html.sidebar-collapsed .admin-sidebar .sidebar-link-text,
    .admin-sidebar.hidden-sidebar .sidebar-link-text {
        display: none !important;
    }

    html.sidebar-collapsed .admin-sidebar .sidebar-section-title,
    .admin-sidebar.hidden-sidebar .sidebar-section-title {
        display: none !important;
    }

    html.sidebar-collapsed .admin-sidebar .sidebar-logo-text,
    .admin-sidebar.hidden-sidebar .sidebar-logo-text {
        display: none !important;
    }

    html.sidebar-collapsed .admin-sidebar div.px-6,
    .admin-sidebar.hidden-sidebar div.px-6 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    html.sidebar-collapsed .admin-sidebar nav a.sidebar-menu-link,
    .admin-sidebar.hidden-sidebar nav a.sidebar-menu-link {
        justify-content: center !important;
        padding: 0.625rem 0 !important;
        gap: 0 !important;
    }

    html.sidebar-collapsed .admin-main,
    .admin-main.expanded {
        margin-left: 72px !important;
    }
}

@media (max-width: 1024px) {
    .admin-sidebar {
        width: 260px !important;
        transform: translateX(-260px) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .admin-sidebar.mobile-open {
        transform: translateX(0) !important;
    }

    .admin-main {
        margin-left: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .admin-main.expanded {
        margin-left: 0 !important;
    }
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 40;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.sidebar-menu-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(148, 163, 184, 1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.sidebar-menu-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-menu-link.active {
    color: #ffffff;
    background: rgba(79, 70, 229, 0.15);
    border-left: 3px solid #818cf8;
}

.sidebar-menu-link .material-icons-two-tone,
.sidebar-menu-link .material-icons {
    font-size: 1.25rem;
    opacity: 0.7;
}

.sidebar-menu-link.active .material-icons-two-tone,
.sidebar-menu-link.active .material-icons {
    opacity: 1;
    color: #818cf8;
}

.sidebar-section-title {
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(100, 116, 139, 0.6);
    padding: 1.25rem 1.25rem 0.5rem;
}

.admin-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 1.5rem;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-card:hover {
    box-shadow: 0 8px 25px -5px rgba(15, 23, 42, 0.06);
}

.stat-widget {
    position: relative;
    overflow: hidden;
}

.stat-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.06;
}

.stat-widget-primary::before {
    background: #4f46e5;
}

.stat-widget-success::before {
    background: #10b981;
}

.stat-widget-warning::before {
    background: #f59e0b;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.admin-btn-primary {
    background: #4f46e5;
    color: #ffffff;
}

.admin-btn-primary:hover {
    background: #4338ca;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transform: translateY(-1px);
}

.admin-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.admin-btn-secondary:hover {
    background: #e2e8f0;
}

.admin-btn-success {
    background: #10b981;
    color: #ffffff;
}

.admin-btn-success:hover {
    background: #059669;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    transform: translateY(-1px);
}

.admin-btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.admin-btn-danger:hover {
    background: #dc2626;
}

.admin-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
}

.admin-btn-lg {
    padding: 0.75rem 1.75rem;
    font-size: 0.875rem;
}

.admin-input,
.admin-select,
.admin-textarea {
    width: 100%;
    padding: 0.625rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #0f172a;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
    border-color: #4f46e5;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

.admin-input:disabled,
.admin-input[readonly] {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

.admin-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.375rem;
}

.admin-form-text {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.admin-alert {
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.admin-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.admin-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.dataTables_wrapper {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    position: relative !important;
}

/* Top controls (length + search) */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    padding: 0.5rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.08);
}

table.dataTable thead th,
table.dataTable thead td {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding: 0.875rem 1rem !important;
    border-bottom: 2px solid #f1f5f9 !important;
    background: #fafbfc;
    white-space: nowrap;
    text-align: center !important;
}

table.dataTable tbody td {
    padding: 0.875rem 1rem !important;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #334155;
    border-bottom: 1px solid #f8fafc !important;
    vertical-align: middle;
    text-align: center !important;
}

#favoritePublishers th:first-child,
#favoritePublishers td:first-child,
#publishers_table th:first-child,
#publishers_table td:first-child,
.dt-left {
    text-align: left !important;
}


table.dataTable tbody tr:hover td {
    background: #f8fafc;
}

table.dataTable,
table.dataTable.no-footer {
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    border: none !important;
    width: 100% !important;
}

table.dataTable.no-footer {
    border-bottom: none !important;
}

table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc {
    cursor: pointer;
}

/* Bottom controls (info + pagination) */
.dataTables_wrapper .dataTables_info {
    font-size: 0.75rem;
    font-weight: 600;
    color: #94a3b8;
    padding-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    margin: 0 0.125rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .page-item:hover .page-link {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-color: #4f46e5 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.active,
.dataTables_wrapper .dataTables_paginate .page-item.active .page-link {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.active a,
.dataTables_wrapper .dataTables_paginate .page-item.active a {
    color: #ffffff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: #ffffff !important;
    color: #64748b !important;
    border-color: #e2e8f0 !important;
}

.dataTables_wrapper .dataTables_processing {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #4f46e5;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    z-index: 10 !important;
}

body.dark-mode .dataTables_wrapper .dataTables_processing {
    background: rgba(30, 41, 59, 0.9) !important;
    color: #818cf8 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

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

.admin-table thead th {
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding: 0.875rem 1rem;
    border-bottom: 2px solid #f1f5f9;
    background: #fafbfc;
    text-align: left;
}

.admin-table tbody td {
    padding: 0.875rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #334155;
    border-bottom: 1px solid #f8fafc;
}

.admin-table tbody tr:hover td {
    background: #f8fafc;
}

.admin-table tfoot th {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #0f172a;
    padding: 0.875rem 1rem;
    border-top: 2px solid #f1f5f9;
    background: #fafbfc;
}

.admin-tab {
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #94a3b8;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.admin-tab:hover {
    color: #475569;
}

.admin-tab.active {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-badge-success {
    background: #f0fdf4;
    color: #166534;
}

.admin-badge-warning {
    background: #fffbeb;
    color: #92400e;
}

.admin-badge-danger {
    background: #fef2f2;
    color: #991b1b;
}

.admin-badge-info {
    background: #eff6ff;
    color: #1e40af;
}

.admin-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08);
    min-width: 180px;
    z-index: 100;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.375rem;
}

.admin-dropdown.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.admin-dropdown a {
    display: block;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.15s;
}

.admin-dropdown a:hover {
    background: #f8fafc;
    color: #4f46e5;
}

.admin-dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0.25rem 0;
}

.table-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.heart-icon {
    cursor: pointer;
    fill: none;
    stroke: #94a3b8;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.heart-icon.favorited {
    fill: #ef4444;
    stroke: #ef4444;
}

.heart-icon:hover {
    opacity: 0.7;
}

.view-more-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    margin-top: 0.3125rem;
    font-size: 0.875rem;
    margin-left: 0.625rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.view-more-btn:hover {
    background: rgba(79, 70, 229, 0.06);
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 800;
    border-radius: 9999px;
    padding: 0 4px;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}

.dropdown-arrow.rotated {
    transform: rotate(180deg);
}

.admin-sidebar nav a.sidebar-menu-link {
    color: #475569 !important;
}

.admin-sidebar nav a.sidebar-menu-link:hover {
    color: #4f46e5 !important;
    background: rgba(79, 70, 229, 0.05) !important;
}

.admin-sidebar nav a.sidebar-menu-link.active {
    color: #4f46e5 !important;
    background: rgba(79, 70, 229, 0.08) !important;
    border-left: 3px solid #4f46e5 !important;
}

.admin-sidebar nav a.sidebar-menu-link i,
.admin-sidebar nav a.sidebar-menu-link .material-icons-two-tone,
.admin-sidebar nav a.sidebar-menu-link .material-icons {
    font-size: 1.25rem !important;
    opacity: 0.70 !important;
    width: 1.25rem !important;
    text-align: center !important;
    color: inherit !important;
    display: inline-block !important;
    transition: opacity 0.2s !important;
}

.admin-sidebar nav a.sidebar-menu-link:hover i,
.admin-sidebar nav a.sidebar-menu-link.active i,
.admin-sidebar nav a.sidebar-menu-link:hover .material-icons-two-tone,
.admin-sidebar nav a.sidebar-menu-link.active .material-icons-two-tone {
    opacity: 1 !important;
    color: #4f46e5 !important;
}

.admin-sidebar .sidebar-section-title {
    color: #94a3b8 !important;
}

.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.page-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-header-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-header-icon-indigo {
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    color: #4f46e5;
}

.page-header-icon-emerald {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #059669;
}

.page-header-icon-amber {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #d97706;
}

.page-header-icon-rose {
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    color: #e11d48;
}

.page-header-icon-sky {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: #0284c7;
}

.page-header-icon-violet {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
    color: #7c3aed;
}

.page-header-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 0.25rem;
    line-height: 1.2;
}

.page-header-subtitle {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #94a3b8;
    margin: 0;
}

.page-header-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: #f1f5f9;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.04em;
    margin-left: 0.5rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-live {
    background: #f0fdf4;
    color: #166534;
}

.status-live::before {
    background: #22c55e;
}

.status-requested {
    background: #eff6ff;
    color: #1e40af;
}

.status-requested::before {
    background: #3b82f6;
}

.status-pending {
    background: #fffbeb;
    color: #92400e;
}

.status-pending::before {
    background: #f59e0b;
}

.status-processing {
    background: #f5f3ff;
    color: #5b21b6;
}

.status-processing::before {
    background: #8b5cf6;
}

.status-approved {
    background: #f0fdf4;
    color: #166534;
}

.status-approved::before {
    background: #16a34a;
}

.status-rejected {
    background: #fef2f2;
    color: #991b1b;
}

.status-rejected::before {
    background: #ef4444;
}

.admin-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.admin-empty-state-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
}

.admin-empty-state-title {
    font-size: 1rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 0.5rem;
}

.admin-empty-state-text {
    font-size: 0.8125rem;
    color: #94a3b8;
    font-weight: 500;
    max-width: 28rem;
    margin: 0 0 1.5rem;
}

.admin-form-section {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.admin-form-section:last-child {
    border-bottom: none;
}

.admin-form-section-title {
    font-size: 0.6875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin-bottom: 1.25rem;
}

.admin-info-grid {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.admin-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
}

.admin-info-row strong {
    color: #0f172a;
    font-weight: 700;
}

.admin-info-row-total {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    padding-top: 0.625rem;
    border-top: 2px solid #f1f5f9;
    margin-top: 0.25rem;
}

.backlinky-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.5rem;
    background: #eef2ff;
    color: #4338ca;
    border-radius: 0.375rem;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
    margin-bottom: 0.2rem;
}

.backlinky-domain-main {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.backlinky-domain a.backlinky-visit-link {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.backlinky-domain a.backlinky-visit-link:hover {
    color: #4f46e5;
}

.backlinky-arrow {
    font-size: 0.75rem;
    color: #94a3b8;
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.admin-card-header-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.price-total-display {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
}

.price-total-label {
    font-size: 0.6875rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.price-total-amount {
    font-size: 2rem;
    font-weight: 800;
    color: #059669;
    letter-spacing: -0.03em;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.action-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.admin-input-group {
    display: flex;
    align-items: stretch;
}

.admin-input-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.875rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 0.75rem 0 0 0.75rem;
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 600;
    flex-shrink: 0;
}

.admin-input-group .admin-input {
    border-radius: 0 0.75rem 0.75rem 0;
    border-left: none;
}

.profile-avatar-ring {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    border: 3px solid #e0e7ff;
    object-fit: cover;
    flex-shrink: 0;
}

.order-success-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
}

.order-success-icon {
    width: 4rem;
    height: 4rem;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: white;
}

body.dark-mode {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

body.dark-mode .admin-main {
    background: #0f172a !important;
}

body.dark-mode .admin-sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    border-right-color: #334155 !important;
}

body.dark-mode .admin-sidebar .sidebar-section-title {
    color: #64748b !important;
}

body.dark-mode .admin-sidebar nav a.sidebar-menu-link {
    color: #94a3b8 !important;
}

body.dark-mode .admin-sidebar nav a.sidebar-menu-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

body.dark-mode .admin-sidebar nav a.sidebar-menu-link.active {
    color: #ffffff !important;
    background: rgba(99, 102, 241, 0.2) !important;
    border-left-color: #6366f1 !important;
}

body.dark-mode .admin-sidebar nav a.sidebar-menu-link i,
body.dark-mode .admin-sidebar nav a.sidebar-menu-link .material-icons-two-tone,
body.dark-mode .admin-sidebar nav a.sidebar-menu-link .material-icons {
    filter: brightness(0) invert(1) !important;
}

body.dark-mode header {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border-bottom-color: #334155 !important;
    backdrop-filter: blur(12px) !important;
}

body.dark-mode header nav a {
    color: #94a3b8 !important;
}

body.dark-mode header nav a:hover {
    color: #818cf8 !important;
    background: rgba(99, 102, 241, 0.1) !important;
}

body.dark-mode header .hover\:bg-slate-100:hover {
    background-color: #1e293b !important;
}

body.dark-mode header .text-slate-400 {
    color: #64748b !important;
}

body.dark-mode header .hover\:text-slate-700:hover {
    color: #f1f5f9 !important;
}

body.dark-mode .admin-dropdown {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .admin-dropdown a {
    color: #cbd5e1 !important;
}

body.dark-mode .admin-dropdown a:hover {
    background-color: #334155 !important;
    color: #818cf8 !important;
}

body.dark-mode .admin-dropdown-divider {
    background-color: #334155 !important;
}

body.dark-mode .admin-card {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}

body.dark-mode .admin-card-header {
    border-bottom-color: #334155 !important;
}

body.dark-mode .admin-card-header-title {
    color: #f1f5f9 !important;
}

body.dark-mode .admin-label {
    color: #94a3b8 !important;
}

body.dark-mode .admin-input,
body.dark-mode .admin-select,
body.dark-mode .admin-textarea {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

body.dark-mode .admin-input:focus,
body.dark-mode .admin-select:focus,
body.dark-mode .admin-textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2) !important;
}

body.dark-mode .admin-input-prefix {
    background-color: #334155 !important;
    border-color: #334155 !important;
    color: #94a3b8 !important;
}

body.dark-mode .admin-input:disabled,
body.dark-mode .admin-input[readonly] {
    background-color: #1e293b !important;
    color: #64748b !important;
}

body.dark-mode .admin-btn-secondary {
    background-color: #334155 !important;
    color: #e2e8f0 !important;
}

body.dark-mode .admin-btn-secondary:hover {
    background-color: #475569 !important;
}

body.dark-mode table.dataTable thead th,
body.dark-mode table.dataTable thead td,
body.dark-mode .admin-table thead th {
    background-color: #0f172a !important;
    color: #94a3b8 !important;
    border-bottom-color: #334155 !important;
}

body.dark-mode table.dataTable tbody td,
body.dark-mode .admin-table tbody td {
    color: #cbd5e1 !important;
    border-bottom-color: #0f172a !important;
}

body.dark-mode table.dataTable tbody tr:hover td,
body.dark-mode .admin-table tbody tr:hover td {
    background-color: #334155 !important;
}

body.dark-mode .dataTables_wrapper .dataTables_length select,
body.dark-mode .dataTables_wrapper .dataTables_filter input {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

body.dark-mode .dataTables_wrapper .dataTables_info {
    color: #64748b !important;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
}

body.dark-mode .dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #ffffff !important;
}

/* Typography, text colors, and details */
body.dark-mode .text-slate-900,
body.dark-mode .text-slate-800,
body.dark-mode .text-slate-700 {
    color: #f1f5f9 !important;
}

body.dark-mode .text-slate-500,
body.dark-mode .text-slate-400 {
    color: #94a3b8 !important;
}

body.dark-mode .page-header-title {
    color: #ffffff !important;
}

body.dark-mode .page-header-subtitle {
    color: #94a3b8 !important;
}

body.dark-mode .page-header-chip {
    background-color: #334155 !important;
    color: #cbd5e1 !important;
}

body.dark-mode .page-header {
    border-bottom-color: #334155 !important;
}

/* Info grid / lists */
body.dark-mode .admin-info-row {
    color: #94a3b8 !important;
}

body.dark-mode .admin-info-row strong {
    color: #f1f5f9 !important;
}

body.dark-mode .admin-info-row-total {
    border-top-color: #334155 !important;
}

body.dark-mode .admin-info-row-total span {
    color: #f1f5f9 !important;
}

body.dark-mode .admin-form-section {
    border-bottom-color: #334155 !important;
}

body.dark-mode .admin-form-section-title {
    color: #64748b !important;
}

body.dark-mode .bg-slate-50,
body.dark-mode .bg-slate-100 {
    background-color: #0f172a !important;
}

body.dark-mode .border-slate-100,
body.dark-mode .border-slate-200 {
    border-color: #334155 !important;
}

body.dark-mode .form-check-label {
    color: #cbd5e1 !important;
}

/* Custom list-group in legacy components */
body.dark-mode .list-group-item {
    background-color: transparent !important;
    color: #cbd5e1 !important;
    border-bottom-color: #334155 !important;
}

body.dark-mode .backlinky-domain a.backlinky-visit-link {
    color: #93c5fd !important;
}

body.dark-mode .backlinky-domain a.backlinky-visit-link:hover {
    color: #818cf8 !important;
}

body.dark-mode .admin-empty-state-icon {
    background-color: #0f172a !important;
    color: #334155 !important;
}

body.dark-mode .admin-empty-state-title {
    color: #f1f5f9 !important;
}

/* Header icon buttons become white in dark mode */
body.dark-mode header .sidebar-toggle-btn,
body.dark-mode header #darkModeToggle {
    color: #ffffff !important;
}

body.dark-mode header .sidebar-toggle-btn:hover,
body.dark-mode header #darkModeToggle:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

body.dark-mode header a[href*="/cart/"] {
    color: #ffffff !important;
}

body.dark-mode header a[href*="/cart/"]:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode header #userDropdownBtn {
    color: #ffffff !important;
}

body.dark-mode header #userDropdownBtn:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode header .dropdown-arrow {
    color: #ffffff !important;
}

body.dark-mode header nav a {
    color: #94a3b8 !important;
}

body.dark-mode header nav a:hover {
    color: #818cf8 !important;
    background-color: rgba(99, 102, 241, 0.1) !important;
}

/* Responsive Improvements for Mobile */
@media (max-width: 768px) {
    /* Main container padding */
    main {
        padding: 1rem !important;
    }
    
    /* Ensure table wrapper scrolls horizontally */
    .table-scroll-wrapper {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
    }
    
    /* Enforce a minimum width on tables in mobile so they scroll instead of shrinking */
    .table-scroll-wrapper table,
    .table-scroll-wrapper .dataTable,
    .table-scroll-wrapper .admin-table {
        min-width: 800px !important;
        width: 100% !important;
    }

    /* Page headers styling on mobile */
    .page-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        padding-bottom: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .page-header-left {
        gap: 0.75rem !important;
        width: 100% !important;
    }
    
    .page-header-left > div:last-child {
        flex: 1 !important;
        min-width: 0 !important;
    }
    
    .page-header-title {
        font-size: 1.25rem !important;
    }
    
    .page-header-subtitle {
        font-size: 0.75rem !important;
    }

    /* Stack Datatable filters / length inputs */
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        display: block !important;
        float: none !important;
        text-align: left !important;
        width: 100% !important;
        margin-bottom: 0.75rem !important;
    }
    
    .dataTables_wrapper .dataTables_filter input {
        width: 100% !important;
        margin-left: 0 !important;
        margin-top: 0.25rem !important;
        box-sizing: border-box !important;
    }
    
    .dataTables_wrapper .dataTables_info,
    .dataTables_wrapper .dataTables_paginate {
        float: none !important;
        text-align: center !important;
        margin-top: 1rem !important;
        width: 100% !important;
    }

    /* Collapse form columns to 1 column on mobile/tablets for better readability */
    .admin-card form .grid.grid-cols-2,
    .admin-card form .grid-cols-2,
    #publisher-filter-form .grid-cols-2,
    .admin-form-section .grid.grid-cols-2,
    .admin-form-section .grid-cols-2 {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

/* Prevent general page horizontal scroll */
html, body {
    overflow-x: hidden !important;
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-height: 3.5rem;
}
.custom-logo-link img.custom-logo {
    max-height: 3.5rem;
    width: auto;
    object-fit: contain;
}