/* public/css/style.css */

:root {
    --primary: #6366f1;
    --bs-primary: #6366f1;
    --bs-primary-rgb: 99, 102, 241;
    --primary-hover: #4f46e5;
    --secondary: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #0ea5e9;
    --dark: #0f172a;
    --light: #ffffff;

    /* Theme-aware variables */
    --accent-1: #7c3aed; /* Purple */
    --accent-2: #db2777; /* Pink */
    --accent-1-low: rgba(124, 58, 237, 0.15);
    --accent-2-low: rgba(219, 39, 119, 0.1);

    /* Antigravity Dark Theme Colors - Deep Purple Edition (Default) */
    --app-bg: #090810;
    --surface: #13121b;
    --surface-hover: #1e1b29;
    --border: rgba(139, 92, 246, 0.15);
    --glass-bg: rgba(19, 18, 27, 0.85);
    --text-main: #ffffff;
    --text-muted: #94a3b8;

    --shadow: 0 4px 20px -1px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 40px -3px rgba(0, 0, 0, 0.8);

    --premium-gradient: linear-gradient(135deg, #090810 0%, #1e1b29 100%);
    --premium-accent: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);

    --sidebar-width: 100px;
    --navbar-height: 72px;

    --theme-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* THEME: MIDNIGHT (BLUE) */
body.theme-midnight {
    --primary: #3b82f6;
    --bs-primary: #3b82f6;
    --bs-primary-rgb: 59, 130, 246;
    --primary-hover: #2563eb;
    --accent-1: #2563eb;
    --accent-2: #1d4ed8;
    --accent-1-low: rgba(37, 99, 235, 0.2);
    --accent-2-low: rgba(29, 78, 216, 0.15);
    --app-bg: #020617;
    --surface: #0f172a;
    --surface-hover: #1e293b;
    --border: rgba(59, 130, 246, 0.15);
    --glass-bg: rgba(15, 23, 42, 0.85);
    --premium-accent: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}

/* THEME: EMERALD (GREEN) */
body.theme-emerald {
    --primary: #10b981;
    --bs-primary: #10b981;
    --bs-primary-rgb: 16, 185, 129;
    --primary-hover: #059669;
    --accent-1: #10b981;
    --accent-2: #059669;
    --accent-1-low: rgba(16, 185, 129, 0.15);
    --accent-2-low: rgba(5, 150, 105, 0.12);
    --app-bg: #04100b;
    --surface: #0b2118;
    --surface-hover: #112d21;
    --border: rgba(16, 185, 129, 0.15);
    --glass-bg: rgba(11, 33, 24, 0.85);
    --premium-accent: linear-gradient(135deg, #064e3b 0%, #10b981 100%);
}

/* THEME: RUBY (RED) */
body.theme-ruby {
    --primary: #ef4444;
    --bs-primary: #ef4444;
    --bs-primary-rgb: 239, 68, 68;
    --primary-hover: #dc2626;
    --accent-1: #ef4444;
    --accent-2: #991b1b;
    --accent-1-low: rgba(239, 68, 68, 0.15);
    --accent-2-low: rgba(153, 27, 27, 0.12);
    --app-bg: #0f0404;
    --surface: #1a0b0b;
    --surface-hover: #261111;
    --border: rgba(239, 68, 68, 0.15);
    --glass-bg: rgba(26, 11, 11, 0.85);
    --premium-accent: linear-gradient(135deg, #7f1d1d 0%, #ef4444 100%);
}

.transition-theme {
    transition: var(--theme-transition) !important;
}

.bg-surface {
    background-color: var(--surface) !important;
}

.bg-app {
    background-color: var(--app-bg) !important;
}

.text-main {
    color: var(--text-main) !important;
}



.premium-card-header {
    background: var(--premium-gradient);
    position: relative;
    overflow: hidden;
}

.premium-card-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    max-width: 100vw;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--app-bg);
    background-image:
        radial-gradient(at 0% 0%, var(--accent-1-low) 0px, transparent 50%),
        radial-gradient(at 100% 0%, var(--accent-2-low) 0px, transparent 50%),
        radial-gradient(at 100% 100%, var(--accent-1-low) 0px, transparent 50%),
        radial-gradient(at 0% 100%, var(--accent-2-low) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, background-image 0.4s ease, color 0.4s ease;
}

/* Immersive Background Logic - Global Watermark */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('../logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40% auto;
    opacity: 0.05;
    /* Soft watermark look */
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.5s ease;
}

body {
    background-blend-mode: overlay;
}

/* CINEMATIC SWEET SPOT - BALANCED LUMINANCE */
body.bulbs-active {
    background-color: var(--app-bg) !important;
    background-image:
        radial-gradient(at 0% 0%, var(--accent-1) 0px, transparent 70%),
        radial-gradient(at 100% 0%, var(--accent-2) 0px, transparent 70%),
        radial-gradient(at 50% 50%, var(--primary) 0px, transparent 50%),
        radial-gradient(at 100% 100%, var(--accent-1) 0px, transparent 70%),
        radial-gradient(at 0% 100%, var(--accent-2) 0px, transparent 70%),
        radial-gradient(at 80% 25%, var(--accent-1) 0px, transparent 40%),
        radial-gradient(at 25% 75%, var(--accent-2) 0px, transparent 40%);
    background-blend-mode: screen;
}

body.bulbs-active::before {
    opacity: 0.1;
    /* Balanced signature pop */
}

.outfit-font {
    font-family: 'Outfit', sans-serif;
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.fw-800 {
    font-weight: 800;
}

.tracking-tight {
    letter-spacing: -0.025em;
}

/* LAYOUT */
/* Layton Update for Sticky Footer */
.app-body {
    padding-bottom: 60px;
    /* Space for slim sticky footer */
}

/* UNIVERSAL HOLOGRAPHIC GLASS (Footer) */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: rgba(15, 12, 41, 0.45) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-muted);
    backdrop-filter: blur(30px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}

.app-navbar {
    height: var(--navbar-height);
    background: var(--glass-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border) !important;
}

.navbar-toggler {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border) !important;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    color: var(--text-main) !important;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #0f111a !important;
        margin-top: 1rem;
        border-radius: 16px;
        padding: 1rem;
        border: 1px solid var(--border);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
        opacity: 1 !important;
    }
}

/* UNIVERSAL HOLOGRAPHIC GLASS (Navbar) */
.app-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
    background: rgba(15, 12, 41, 0.55) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.navbar-brand,
.nav-link,
.app-navbar .navbar-text {
    color: var(--text-main);
}

.nav-link:hover {
    color: var(--primary) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--text-muted);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--text-main);
}

.brand-icon {
    width: 32px;
    height: 32px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.layout-wrapper {
    display: flex;
    min-height: calc(100vh - var(--navbar-height));
    padding-top: var(--navbar-height);
}

@media (min-width: 992px) {
    .app-sidebar {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        bottom: 0;
        width: var(--sidebar-width);
        background: rgba(15, 12, 41, 0.4) !important;
        backdrop-filter: blur(30px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
        padding: 2rem 0;
        overflow-y: auto;
        z-index: 1020;
    }

    .app-content {
        margin-left: var(--sidebar-width);
        padding: 2rem;
        width: calc(100% - var(--sidebar-width));
        min-width: 0;
        flex: 1;
    }
}

@media (max-width: 991.98px) {
    .app-content {
        padding: 1rem;
        width: 100%;
        flex: 1;
    }
}

/* Footer & Sidebar Fixes */
/* Footer Fix */


.footer .text-main {
    color: var(--text-main) !important;
}

/* CARDS */
/* FUTURISTIC iOS-GRADE GLASSMORPISM */
.card,
.glass-card {
    background: rgba(20, 20, 27, 0.4) !important;
    backdrop-filter: blur(30px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    position: relative;
    /* overflow: hidden; -- Removed to allow dropdowns to be visible outside the card */
}

.card:hover,
.glass-card:hover {
    background: rgba(30, 30, 40, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-5px) scale(1.005) !important;
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.6),
        inset 0 0 0 1px rgba(255, 255, 255, 0.08) !important;
}

/* Internal Glow effect for Cards */
.card::before,
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.02),
            transparent);
    transition: 0.5s;
    pointer-events: none;
}

.card:hover::before,
.glass-card:hover::before {
    left: 100%;
}

.card-header {
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 1.5rem !important;
}

/* Global Text Hierarchy & Contrast */
.text-muted,
span.text-muted,
small.text-muted,
i.text-muted,
p.text-muted,
.card .text-muted,
.glass-card .text-muted {
    color: #94a3b8 !important;
}

.text-secondary,
.card .text-secondary,
.glass-card .text-secondary {
    color: #cbd5e1 !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.6) !important;
}

.card .text-primary,
.glass-card .text-primary {
    color: var(--primary) !important;
}

.card .text-success,
.glass-card .text-success {
    color: var(--success) !important;
}

.card .text-danger,
.glass-card .text-danger {
    color: var(--danger) !important;
}

.card .text-warning,
.glass-card .text-warning {
    color: var(--warning) !important;
}

.card .text-info,
.glass-card .text-info {
    color: var(--info) !important;
}

/* BUTTONS */
.btn {
    border-radius: 10px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.4;
}

.btn-sm,
.btn-group-sm > .btn {
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    border-radius: 8px;
}

.btn-lg,
.btn-group-lg > .btn {
    padding: 0.65rem 1.4rem;
    font-size: 0.95rem;
    border-radius: 12px;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-light {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: transparent;
    color: #fff;
}

.btn-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.bg-soft-primary {
    background-color: rgba(99, 102, 241, 0.1) !important;
}

/* SIDEBAR NAV */
.sidebar-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.25rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    margin: 0 0.4rem 0.25rem;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.6rem;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-link i {
    font-size: 1.15rem;
    margin-right: 0;
    margin-bottom: 3px;
    width: auto;
    text-align: center;
    display: block;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.sidebar-link.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
}

.sidebar-section-title {
    font-size: 0.55rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 700;
    margin: 1rem 0.5rem 0.35rem;
    text-align: center;
}

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

.table {
    margin-bottom: 0;
    color: var(--text-main) !important;
    background-color: transparent !important;
    --bs-table-bg: transparent !important;
    --bs-table-hover-bg: rgba(255, 255, 255, 0.03) !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.01) !important;
    --bs-table-border-color: var(--border) !important;
}

.table thead th {
    background: var(--app-bg) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 1.25rem 1.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.table tbody td {
    padding: 1.25rem 1.5rem;
    vertical-align: middle;
    color: var(--text-main) !important;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border) !important;
    background-color: transparent !important;
}

.table-hover tbody tr:hover td {
    background-color: var(--surface-hover) !important;
}

.table-hover tbody tr:hover {
    background-color: transparent !important;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* BADGES */
.badge {
    padding: 0.6em 0.9em;
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* INPUTS */
.form-control,
.form-select {
    background-color: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.form-control:focus,
.form-select:focus {
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--primary) !important;
    color: var(--text-main) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1) !important;
}

/* Explicit Fix for Dropdown Options Visibility on Desktop/Laptop Browsers */
select option {
    background-color: #13121b !important; /* var(--surface) */
    color: #ffffff !important;
    padding: 10px;
}

/* LIVE SUPPORT WIDGET */
.support-widget {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 2000;
}

.support-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--premium-accent);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2002;
}

.support-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

.support-btn.active {
    transform: rotate(45deg);
    background: var(--surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.support-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.5);
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.support-menu {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 300px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2001;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.support-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.support-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    margin-bottom: 8px;
}

.support-option:hover {
    background: var(--surface-hover);
    transform: translateX(4px);
    color: white;
}

.support-option:last-child {
    margin-bottom: 0;
}

.support-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.2rem;
}

.icon-whatsapp {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.icon-telegram {
    background: rgba(0, 136, 204, 0.1);
    color: #0088cc;
}



/* MOBILE OPTIMIZATIONS */
/* MOBILE OPTIMIZATIONS */
@media (max-width: 991.98px) {
    .app-sidebar {
        display: none;
    }

    .app-content {
        padding: 1rem;
        margin-left: 0;
        width: 100%;
    }

    /* Transform Tables to Cards on Mobile */
    .table-responsive {
        overflow: visible !important;
    }

    .table thead {
        display: none;
    }

    .table,
    .table tbody,
    .table tr,
    .table td {
        display: block;
        width: 100%;
    }

    .table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 1.25rem;
        background: var(--surface);
        box-shadow: var(--shadow);
    }

    .table td {
        text-align: right;
        /* Default align right for 'value' look */
        padding: 0.5rem 0 !important;
        border: none !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: auto;
    }

    /* First cell (Primary Info) - Make it prominent and full width */
    .table td:first-child {
        text-align: left;
        justify-content: flex-start;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid var(--border) !important;
        padding-bottom: 0.75rem !important;
    }

    /* Last cell (Actions) - Full width button */
    .table td:last-child {
        margin-top: 0.75rem;
        padding-top: 0.75rem !important;
        border-top: 1px solid var(--border) !important;
        justify-content: center;
    }

    .table td:last-child .btn {
        width: 100%;
    }

    .table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.7rem;
        color: var(--text-muted);
    }

    /* Fix for rows that are already single-cell/layout based (like Details page) */
    .table td[colspan] {
        display: block;
        text-align: left;
        justify-content: normal;
    }

    .table td[colspan]::before {
        display: none;
    }
}

/* Global Gateways Table Layout */
#servicesTable {
    table-layout: fixed;
    width: 100%;
}

#servicesTable th,
#servicesTable td {
    overflow: hidden;
    text-overflow: ellipsis;
    /* white-space: nowrap; - Removed to allow wrapping if preferred, or keep for single line */
    vertical-align: middle;
}

/* Specific column targeting if needed, though inline styles handle percentages now */
#servicesTable td:first-child .text-main {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.dropdown-menu {
    z-index: 9999 !important;
}

/* ===== SKELETON LOADERS (4.1) ===== */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.04) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.04) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
    color: transparent !important;
    user-select: none;
    pointer-events: none;
}

.skeleton * {
    visibility: hidden;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 6px;
}

.skeleton-text.lg {
    height: 20px;
    width: 60%;
}

.skeleton-text.sm {
    height: 12px;
    width: 40%;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-card {
    background: rgba(20, 20, 27, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 16px;
}

.skeleton-btn {
    height: 44px;
    border-radius: 12px;
    width: 120px;
}

.skeleton-row {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

@keyframes skeleton-shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ===== TOAST NOTIFICATIONS (4.2) ===== */
.toast-container {
    position: fixed;
    top: calc(var(--navbar-height) + 12px);
    right: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    width: calc(100% - 32px);
    pointer-events: none;
}

.toast-notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 16px;
    background: rgba(20, 20, 27, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    pointer-events: auto;
    animation: toastSlideIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transform: translateX(120%);
    opacity: 0;
}

.toast-notification.toast-removing {
    animation: toastSlideOut 0.35s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.toast-notification .toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.toast-notification .toast-body {
    flex: 1;
    min-width: 0;
}

.toast-notification .toast-title {
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 2px;
    color: #f1f5f9;
}

.toast-notification .toast-message {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
    word-wrap: break-word;
}

.toast-notification .toast-close {
    background: none;
    border: none;
    color: #475569;
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}

.toast-notification .toast-close:hover {
    color: #fff;
}

.toast-notification .toast-progress {
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.toast-notification .toast-progress-bar {
    height: 100%;
    border-radius: 3px;
    animation: toastProgress var(--toast-duration, 5s) linear forwards;
}

/* Toast types */
.toast-success .toast-icon {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.toast-success .toast-progress-bar {
    background: #10b981;
}

.toast-error .toast-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.toast-error .toast-progress-bar {
    background: #ef4444;
}

.toast-warning .toast-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.toast-warning .toast-progress-bar {
    background: #f59e0b;
}

.toast-info .toast-icon {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
}

.toast-info .toast-progress-bar {
    background: #6366f1;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

@keyframes toastProgress {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

@media (max-width: 576px) {
    .toast-container {
        right: 8px;
        max-width: calc(100% - 16px);
    }

    .toast-notification {
        padding: 12px 14px;
        border-radius: 12px;
    }
}

/* PREMIUM COMPONENTS */
.text-primary-gradient {
    background: linear-gradient(45deg, #2b59ff, #5078ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary-gradient {
    background: linear-gradient(45deg, #2b59ff, #5078ff) !important;
    border: 0 !important;
    color: white !important;
}

.btn-primary-gradient:hover {
    background: linear-gradient(45deg, #1e4de8, #4168e8) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(43, 89, 255, 0.4);
}

.btn-modern {
    border-radius: 12px !important;
    font-weight: 800 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-modern:active { 
    transform: scale(0.98); 
}

.no-caret::after {
    display: none !important;
}

.dropdown-menu.glass-card {
    background: rgba(15, 12, 41, 0.7) !important;
    backdrop-filter: blur(25px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
    border-radius: 20px !important;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6) !important;
    animation: dropdownFade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.theme-dot {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent !important;
}

.theme-dot:hover {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(255,255,255,0.2) !important;
}