@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@400;600;700;800;900&family=Cairo:wght@400;600;700;800;900&display=swap');

/* ==========================================================================
   SlideBot Dashboard Master Stylesheet - PROPAL EXACT EDITION
   True Pitch Black (#000000), Pure White (#ffffff), ProPal Ocean Blue (#0284c7)
   ========================================================================== */

:root {
    /* PROPAL EXACT COLOR SYSTEM */
    --primary: #0284c7;                 /* ProPal Electric Blue / Cyan */
    --primary-h: 199;
    --primary-s: 89%;
    --primary-l: 48%;
    --primary-hover: #0369a1;           /* Deep Ocean Blue */
    --primary-dark: #075985;            /* Dark Navy */
    --primary-light: #38bdf8;           /* Bright Blue Cyan */
    --primary-glow: rgba(2, 132, 199, 0.35);
    --primary-glow-strong: rgba(2, 132, 199, 0.65);

    --secondary: #2563eb;               /* Deep Royal Blue */

    /* PURE PITCH BLACK & DARK CARDS */
    --bg-dark: #000000;                 /* True Pitch Black */
    --bg-surface: #070709;              /* Ultra Dark Surface */
    --bg-card: #0c0d12;                 /* Dark ProPal Card Box */
    --bg-card-hover: #11131a;           /* Slightly lighter hover */
    --card-surface: #0c0d12;
    --card-border: #181a24;
    --border: #1a1c26;                  /* Subtle Dark Border */
    --border-hover: #0284c7;            /* Blue Focus Border */

    /* TYPOGRAPHY */
    --text-primary: #ffffff;            /* Pure Crisp White */
    --text-secondary: #d4d4d8;          /* Light Gray */
    --text-muted: #71717a;              /* Zinc Gray Muted */
    --text-disabled: #52525b;           /* Muted Dark Gray */

    --danger: #ef4444;
    --success: #10b981;
    --warning: #f59e0b;
    --warning-bg: rgba(245, 158, 11, 0.08);
    --warning-border: rgba(245, 158, 11, 0.25);

    --sidebar-w: 270px;
    --header-h: 70px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

/* GLOBAL CUSTOM DARK SCROLLBAR (Eliminate Default Light Browser Scrollbar) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #181920;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #272a38;
}

::-webkit-scrollbar-corner {
    background: #000000;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #181920 #000000;
}

body, body.dark-theme, body.light-mode {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* Subtle ProPal Ambient Glow */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: 
        radial-gradient(circle at 10% 0%, rgba(2, 132, 199, 0.15), transparent 40%),
        radial-gradient(circle at 90% 100%, rgba(37, 99, 235, 0.1), transparent 40%);
    pointer-events: none;
}

.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: 
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: 0.12;
    pointer-events: none;
}

.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* PROPAL SIDEBAR STYLING */
.sidebar {
    width: var(--sidebar-w);
    background: #08080a;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.4s ease;
}

.brand {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #ffffff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
}

/* PROPAL ACTIVE SERVER CARD IN SIDEBAR (PROBOT DESIGN) */
.sidebar-server-card {
    position: relative;
    width: 100%;
    height: 180px;
    margin: 0;
    padding: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, #0284c7 0%, #03528f 45%, #080a13 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: none;
    text-align: left;
}

.sidebar-server-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: none;
}

.server-card-watermark {
    display: none;
}

.server-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) blur(1px);
    z-index: 0;
}

.server-card-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 132, 199, 0.95) 0%, rgba(3, 82, 143, 0.6) 50%, #080a13 100%);
    z-index: 0;
}

.server-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    width: 100%;
    background: linear-gradient(180deg, rgba(8, 10, 19, 0) 0%, rgba(8, 10, 19, 0.92) 100%);
}

.server-card-icon, .server-card-icon-fallback {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.server-card-icon-fallback {
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.server-card-info {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.server-card-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.server-card-sub {
    font-size: 0.78rem;
    font-weight: 500;
    color: #94a3b8;
    display: block;
    margin-top: 1px;
}

.server-card-arrow {
    color: #cbd5e1;
    font-size: 0.85rem;
    transition: transform 0.25s ease;
    margin-left: auto;
}

/* PROPAL ACTIVE SERVER CARD IN SIDEBAR (EXACT PROBOT MATCH) */
.sidebar-server-card-wrapper {
    position: relative;
    padding: 16px 14px 18px;
    border-bottom: 1px solid rgba(0, 114, 206, 0.35);
    margin-bottom: 12px;
}

.propal-server-dropdown {
    position: absolute;
    top: 0;
    left: calc(100% + 12px);
    width: 340px;
    background: #0b0c10;
    border: 1px solid #1a1b24;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95);
    z-index: 10000;
    pointer-events: auto;
    display: none;
    animation: fadeInDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.propal-server-dropdown.active {
    display: block;
}

@media (max-width: 768px) {
    .propal-server-dropdown {
        left: 0;
        top: calc(100% + 8px);
        width: 100%;
    }
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

.server-dropdown-search {
    position: relative;
    margin-bottom: 14px;
}

.server-dropdown-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #71717a;
    font-size: 13px;
}

.server-dropdown-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid #1e202c !important;
    border-radius: 10px !important;
    padding: 9px 12px 9px 38px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
}

.server-dropdown-search input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2) !important;
    outline: none !important;
}

.server-dropdown-scroll {
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.server-dropdown-scroll::-webkit-scrollbar {
    width: 4px;
}

.server-dropdown-scroll::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 4px;
}

.dropdown-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #71717a;
    margin: 8px 4px 8px;
    letter-spacing: 0.02em;
}

.server-list-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.server-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid transparent;
}

.server-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.server-item.active {
    background: #181920;
    border-color: #272836;
}

.server-item-icon-wrapper {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.server-item-icon, .server-item-fallback {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.server-item-fallback {
    background: #1e202c;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
}

.server-item-icon-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #0b0c10;
}

.server-item-info {
    flex: 1;
    min-width: 0;
}

.server-item-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.server-item-status {
    font-size: 0.72rem;
    font-weight: 600;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 4px;
}

.server-item-status .status-dot {
    font-size: 5px;
}

.server-item-action {
    font-size: 0.72rem;
    font-weight: 600;
    color: #3b82f6;
}

.server-active-check {
    color: #ffffff;
    font-size: 0.85rem;
}

.server-invite-icon {
    color: #52525b;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.server-item.invite-item:hover .server-invite-icon {
    color: #3b82f6;
}

/* PROPAL CATEGORIZED NAV LIST */
.sidebar-scroll-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sidebar-scroll-nav::-webkit-scrollbar {
    width: 4px;
}
.sidebar-scroll-nav::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.nav-category-title {
    font-size: 11px;
    font-weight: 800;
    color: #71717a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 16px 12px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    color: #a1a1aa;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.nav-link i {
    font-size: 1.05rem;
    width: 20px;
    text-align: center;
    color: inherit;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(3, 105, 161, 0.35)) !important;
    border-color: rgba(2, 132, 199, 0.5) !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.25) !important;
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 22px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* PROPAL BADGES (NEW, COMING SOON) */
.badge-new {
    margin-left: auto;
    background: #1e1e24;
    border: 1px solid #2e2e38;
    color: #d4d4d8;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

.badge-soon {
    margin-left: auto;
    background: #18181b;
    border: 1px solid #27272a;
    color: #71717a;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

.badge-premium {
    margin-left: auto;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* PROPAL USER FOOTER STYLING */
.sidebar-user-footer {
    padding: 14px 16px;
    background: #050507;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.sidebar-user-footer img, .sidebar-user-avatar {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    border: 1px solid var(--border) !important;
}

.user-footer-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-footer-name {
    font-weight: 800;
    font-size: 0.88rem;
    color: #ffffff;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-footer-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}

.user-footer-sub::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    flex-shrink: 0;
}

.user-footer-logout {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.user-footer-logout:hover {
    color: #ffffff;
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
}

/* MAIN CONTAINER & HEADER */
.main-container {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 28px 36px;
    width: calc(100% - var(--sidebar-w));
    background: #000000;
}

.header {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

/* PROPAL STATUS BANNER (e.g. Checking module status) */
.propal-status-banner {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.propal-status-banner i {
    font-size: 1.1rem;
}

/* PROPAL CARDS & OVERLAYS */
.server-node, .overview-card, .f-card, .tab-content, .propal-card {
    background: #0c0d12 !important;
    border: 1px solid var(--border) !important;
    border-radius: 18px !important;
    padding: 24px;
    color: #ffffff;
    transition: border-color 0.25s ease;
}

.server-node:hover, .propal-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px var(--primary-glow) !important;
}

/* PROPAL BUTTONS */
.btn-primary, button[style*="background: var(--primary)"] {
    background: var(--primary) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px var(--primary-glow) !important;
    transition: background 0.2s ease !important;
}

.btn-primary:hover, button[style*="background: var(--primary)"]:hover {
    background: var(--primary-hover) !important;
}

/* PROPAL FORM INPUTS & TEXTAREAS */
input[type="text"], input[type="number"], input[type="password"], select, textarea {
    background-color: #07070a !important;
    border: 1px solid #1c1e28 !important;
    color: #ffffff !important;
    font-family: inherit;
    border-radius: 10px !important;
    padding: 12px 16px;
    font-size: 13px;
}

input[type="text"]::placeholder, textarea::placeholder {
    color: #52525b !important;
}

input[type="text"]:focus, input[type="number"]:focus, select:focus, textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
    outline: none !important;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary) !important;
    box-shadow: 0 4px 15px var(--primary-glow) !important;
}

@media (max-width: 1024px) {
    .sidebar { width: 80px; }
    .brand-name, .nav-link span, .nav-category-title, .server-card-info, .server-card-arrow, .user-footer-info, .badge-new, .badge-soon { display: none; }
    .sidebar-server-card { margin: 8px; padding: 8px; }
    .main-container { margin-left: 80px; width: calc(100% - 80px); }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); width: 270px; z-index: 3000; box-shadow: 20px 0 50px rgba(0,0,0,0.8); }
    .sidebar.active { transform: translateX(0); }
    .brand-name, .nav-link span, .nav-category-title, .server-card-info, .server-card-arrow, .user-footer-info, .badge-new, .badge-soon { display: block; }
    .main-container { margin-left: 0; width: 100%; padding: 16px; }
}

.close-sidebar-btn {
    display: none; align-items: center; justify-content: center;
    position: absolute; top: 18px; right: 18px;
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    color: var(--text-muted); cursor: pointer; transition: all 0.2s;
    z-index: 100;
}
.close-sidebar-btn:hover { background: rgba(255,255,255,0.1); color: #ffffff; border-color: var(--primary); }

@media (max-width: 768px) {
    .close-sidebar-btn { display: flex; }
}

/* SIDEBAR OVERLAY FIX */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}
.sidebar-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ==========================================================================
   LANGUAGE SWITCHER & RTL LAYOUT ENGINE
   ========================================================================== */
.lang-switcher-wrapper {
    position: relative;
    display: inline-block;
}

.lang-switch-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-switch-btn:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 150px;
    background: #0c0d12;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
    z-index: 2000;
    backdrop-filter: blur(16px);
}

[dir="rtl"] .lang-dropdown-menu {
    right: auto;
    left: 0;
}

.lang-dropdown-menu.active {
    display: block;
    animation: langFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
}

[dir="rtl"] .lang-option {
    text-align: right;
}

.lang-option:hover, .lang-option.active {
    background: var(--primary);
    color: #ffffff;
}

/* RTL OVERRIDES FOR ARABIC MODE */
html[dir="rtl"], html[dir="rtl"] body, html[dir="rtl"] button, html[dir="rtl"] input, html[dir="rtl"] select, html[dir="rtl"] textarea {
    font-family: 'Cairo', 'Alexandria', 'Inter', system-ui, -apple-system, sans-serif !important;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--border);
}

html[dir="rtl"] .main-container {
    margin-left: 0;
    margin-right: var(--sidebar-w);
}

html[dir="rtl"] .propal-server-dropdown {
    left: auto !important;
    right: calc(100% + 12px) !important;
}

@media (max-width: 1024px) {
    html[dir="rtl"] .main-container {
        margin-right: 80px;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    html[dir="rtl"] .main-container {
        margin-right: 0;
    }
    html[dir="rtl"] .sidebar {
        transform: translateX(100%);
    }
    html[dir="rtl"] .sidebar.active {
        transform: translateX(0);
    }
    html[dir="rtl"] .propal-server-dropdown {
        right: 0 !important;
        left: 0 !important;
        top: calc(100% + 8px) !important;
        width: 100% !important;
    }
}

/* ==========================================================================
   MODERN BUTTON SYSTEM (btn-modern, btn-fill, btn-gold, btn-outline)
   ========================================================================== */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 800;
    border-radius: 16px;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-modern:hover {
    transform: translateY(-2px);
    text-decoration: none !important;
}

.btn-modern:active {
    transform: translateY(0);
}

.btn-fill, .btn-modern.btn-fill {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
}

.btn-fill:hover, .btn-modern.btn-fill:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6) !important;
    color: #ffffff !important;
}

.btn-gold, .btn-modern.btn-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
    color: #0f0b00 !important;
    border: 1px solid rgba(251, 191, 36, 0.5) !important;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.4) !important;
}

.btn-gold:hover, .btn-modern.btn-gold:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.6) !important;
    color: #000000 !important;
}

.btn-outline, .btn-modern.btn-outline {
    background: hsla(0,0%,100%,0.03) !important;
    color: var(--text-primary) !important;
    border: 1.5px solid var(--border) !important;
}

.btn-outline:hover, .btn-modern.btn-outline:hover {
    background: hsla(0,0%,100%,0.08) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
}

