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

:root {
    --primary: #a855f7; /* Vibrant Purple */
    --primary-hover: #9333ea;
    --accent: #d946ef; /* Neon Magenta */
    --bg-main: #0a0516; /* Deep Cosmic Dark */
    --bg-sidebar: #0f0920; /* Indigo Dark */
    --bg-card: rgba(20, 12, 38, 0.7); /* Glassmorphic Purple Card */
    --text-main: #f3e8ff; /* Light Lavender-White */
    --text-muted: #a78bfa; /* Muted Lavender */
    --border: rgba(168, 85, 247, 0.15); /* Soft Purple border */
    --success: #10b981;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    display: flex;
    min-height: 100vh;
}

/* If the page is a dashboard page (has main-content), make body non-scrollable and main-content scrollable */
body:has(.main-content) {
    overflow: hidden;
    height: 100vh;
}

body:has(.main-content) .main-content {
    height: 100vh;
    overflow-y: auto;
}

/* Beautiful custom scrollbar for main content in dashboard layout */
body:has(.main-content) .main-content::-webkit-scrollbar {
    width: 6px;
}
body:has(.main-content) .main-content::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.25);
    border-radius: 6px;
    transition: background 0.3s;
}
body:has(.main-content) .main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.45);
}
body:has(.main-content) .main-content::-webkit-scrollbar-track {
    background: transparent;
}
/* Firefox support for custom scrollbar */
body:has(.main-content) .main-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(168, 85, 247, 0.25) transparent;
}

/* Top Dashboard Header */
.dash-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 70px;
    background-color: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.header-bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.header-bot-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 0.5px;
}

/* Sidebar Container */
.sidebar-container {
    position: fixed;
    right: 0;
    top: 70px;
    width: 352px;
    height: calc(100vh - 70px);
    display: flex;
    z-index: 100;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Sidebar */
.sidebar {
    width: 280px;
    background-color: var(--bg-sidebar);
    height: 100%;
    position: relative;
    right: auto;
    top: auto;
    overflow-y: auto;
    padding: 1rem 0;
    border-left: 1px solid var(--border);
    z-index: 50;
    /* Custom scrollbar for Firefox */
    scrollbar-width: thin;
    scrollbar-color: var(--bg-card) transparent;
}

.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--bg-card); border-radius: 5px; }

.user-profile {
    text-align: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.user-profile img {
    border-radius: 50%;
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.user-profile h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.user-profile span {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

.nav-section {
    margin-bottom: 1rem;
}

.nav-title {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
    padding: 0 1.25rem;
    margin-bottom: 0.35rem;
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.55;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
}

.nav-title:hover {
    opacity: 0.9;
}

.nav-title i {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-section.collapsed .nav-title i {
    transform: rotate(-90deg); /* تدوير السهم ليشير إلى الجنب عند الإغلاق */
}

.nav-items-wrapper {
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
}

.nav-section.collapsed .nav-items-wrapper {
    max-height: 0;
    opacity: 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    margin: 0.15rem 0.75rem;
}

.nav-item i {
    width: 22px;
    font-size: 1rem;
    margin-left: 8px;
}

.nav-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
}

.nav-item.active {
    background-color: rgba(168, 85, 247, 0.12) !important;
    color: #fff !important;
    border-right: 3px solid var(--primary);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.05);
}

.badge {
    background-color: var(--primary);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: auto;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-right: 352px;
    padding: calc(70px + 2rem) 3rem 2rem 3rem;
    transition: margin-right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed .main-content {
    margin-right: 0 !important;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.topbar h2 {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Overview Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-card h4 {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
}

/* ProBot Style Toggles & Lists */
.settings-list {
    background-color: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

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

.item-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.item-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-edit {
    background-color: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: 0.2s;
}

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

/* Modern Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #80848e;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--success);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* Forms */
.form-panel {
    background-color: var(--bg-card);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.form-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 0.8rem;
    border-radius: 4px;
    font-family: inherit;
    direction: rtl;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-save {
    background-color: var(--success);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.btn-save:hover {
    background-color: #1f944f;
}

/* Utility */
.d-flex { display: flex; align-items: center; gap: 10px; }
.text-primary { color: var(--primary); }

/* Landing Page & Server Selection (Restored & Fixed for RTL) */
.navbar {
    background-color: var(--bg-card);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(168, 85, 247, 0.4);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex-grow: 1;
    width: 100%;
}

.hero {
    text-align: center;
    padding: 5rem 0;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: -webkit-linear-gradient(var(--primary), #d99aeb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card img {
    border-radius: 50%;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    background-color: var(--bg-card);
    margin-top: auto;
}

/* ============================================ */
/*  Server Selection Page - Premium Redesign     */
/* ============================================ */

.servers-page {
    min-height: calc(100vh - 70px);
    padding: 3rem 2rem;
}

.servers-page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.servers-page-header h2 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-main), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.servers-page-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.server-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #e056a0, #7c3aed);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.server-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(155, 89, 182, 0.15),
                0 4px 12px rgba(0,0,0,0.2);
    border-color: rgba(155, 89, 182, 0.25);
}

.server-card:hover::before {
    opacity: 1;
}

.server-card-banner {
    height: 80px;
    background: linear-gradient(135deg, rgba(155,89,182,0.15), rgba(124,58,237,0.1));
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.server-card-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    object-fit: cover;
    transform: translateY(34px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--bg-sidebar);
}

.server-card:hover .server-card-avatar {
    transform: translateY(34px) scale(1.08);
    box-shadow: 0 6px 20px rgba(155,89,182,0.25);
}

.server-card-initials {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    transform: translateY(34px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.server-card:hover .server-card-initials {
    transform: translateY(34px) scale(1.08);
    box-shadow: 0 6px 20px rgba(155,89,182,0.25);
}

.server-card-body {
    padding: 2.8rem 1.2rem 1.2rem;
    text-align: center;
}

.server-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.server-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    padding: 0.55rem 1.3rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    border: none;
    cursor: pointer;
}

.server-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.35);
}

.server-card-btn:active {
    transform: scale(0.97);
}

.servers-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px dashed rgba(255,255,255,0.08);
}

.servers-empty i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    opacity: 0.4;
}

.servers-empty p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============================================ */
/*  Profile Page - Premium Redesign              */
/* ============================================ */

.profile-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.profile-card {
    width: 100%;
    max-width: 560px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.04);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.profile-card-banner {
    height: 100px;
    background: linear-gradient(135deg, var(--primary), #e056a0, #7c3aed);
    background-size: 200% 200%;
    animation: bannerShift 6s ease-in-out infinite;
    position: relative;
}

.profile-card-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-top: -40px;
    position: relative;
    z-index: 2;
}

.profile-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid var(--bg-card);
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.profile-card-user {
    text-align: center;
    padding: 8px 16px 0;
}

.profile-card-user h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
}

.profile-card-user span {
    font-size: 0.85rem;
    color: var(--text-muted);
    direction: ltr;
    display: block;
    margin-top: 2px;
}

.profile-card-body {
    padding: 1.5rem 1.8rem 2rem;
}

.profile-card-body .form-group {
    margin-bottom: 1.5rem;
}

.profile-card-body .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.6rem;
    color: var(--text-main);
    font-size: 0.92rem;
    font-weight: 600;
}

.profile-card-body .form-group label i {
    color: var(--primary);
    font-size: 0.9rem;
}

.profile-card-body .form-control {
    background: var(--bg-sidebar);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.profile-card-body .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(155,89,182,0.15);
    outline: none;
}

.profile-card-body textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.profile-color-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.profile-color-row input[type="color"] {
    height: 44px;
    width: 50px;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    background: var(--bg-sidebar);
    padding: 3px;
    transition: border-color 0.25s ease;
}

.profile-color-row input[type="color"]:hover {
    border-color: var(--primary);
}

.profile-cost-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(155,89,182,0.08);
    padding: 6px 10px;
    border-radius: 8px;
}

.profile-cost-hint strong {
    color: var(--primary);
}

.profile-msg-error {
    color: #ed4245;
    font-size: 0.82rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-msg-success {
    color: #23a559;
    font-size: 0.82rem;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-save-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--success), #1f944f);
    color: white;
    border: none;
    padding: 0.85rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.profile-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(35, 165, 89, 0.3);
}

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

/* ============================================ */
/*  User Avatar Dropdown Menu                    */
/* ============================================ */

.user-avatar-menu {
    position: relative;
}

.avatar-trigger {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.avatar-trigger:hover {
    transform: scale(1.1);
}

.avatar-trigger.active {
    transform: scale(1.05);
}

.avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid transparent;
    background: linear-gradient(var(--bg-card), var(--bg-card)) padding-box,
                linear-gradient(135deg, var(--primary), #e056a0, #56b4e0) border-box;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    display: block;
}

.avatar-trigger:hover .avatar-img {
    box-shadow: 0 0 18px rgba(155, 89, 182, 0.5),
                0 0 40px rgba(155, 89, 182, 0.15);
}

.avatar-trigger.active .avatar-img {
    box-shadow: 0 0 22px rgba(155, 89, 182, 0.6),
                0 0 50px rgba(155, 89, 182, 0.2);
}

.avatar-status-ring {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 14px;
    height: 14px;
    background-color: #23a559;
    border-radius: 50%;
    border: 3px solid var(--bg-card);
    pointer-events: none;
}

/* Dropdown Panel */
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    transform: translateY(8px) scale(0.96);
    width: 300px;
    background: var(--bg-sidebar);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45),
                0 4px 16px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), visibility 0.25s;
    z-index: 1000;
    overflow: hidden;
}

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

/* Dropdown Banner */
.dropdown-banner {
    height: 60px;
    background: linear-gradient(135deg, var(--primary), #e056a0, #7c3aed);
    background-size: 200% 200%;
    animation: bannerShift 6s ease-in-out infinite;
    position: relative;
}

@keyframes bannerShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* User Info Section */
.dropdown-user-info {
    padding: 0 16px 12px;
    text-align: center;
    position: relative;
}

.dropdown-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-sidebar);
    margin-top: -32px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dropdown-username {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 6px;
    letter-spacing: -0.01em;
}

.dropdown-tag {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 2px;
    direction: ltr;
}

/* Divider */
.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    margin: 4px 14px;
}

/* Dropdown Links */
.dropdown-links {
    padding: 4px 8px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
    margin: 2px 0;
    direction: rtl;
}

.dropdown-item i:first-child {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.dropdown-item span {
    flex: 1;
}

.dropdown-arrow {
    font-size: 0.7rem;
    opacity: 0;
    transform: translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(155, 89, 182, 0.12);
    color: var(--text-main);
    transform: translateX(-2px);
}

.dropdown-item:hover .dropdown-arrow {
    opacity: 0.7;
    transform: translateX(0);
}

.dropdown-item:active {
    transform: scale(0.98) translateX(-2px);
}

/* Logout Item */
.dropdown-logout {
    margin: 4px 8px 8px;
    color: #ed4245;
    border-radius: 8px;
}

.dropdown-logout:hover {
    background: rgba(237, 66, 69, 0.12);
    color: #ff6669;
    transform: translateX(-2px);
}

/* Dropdown enter animation for items */
.user-dropdown.show .dropdown-item {
    animation: slideIn 0.3s ease forwards;
    opacity: 0;
}

.user-dropdown.show .dropdown-links .dropdown-item:nth-child(1) { animation-delay: 0.05s; }
.user-dropdown.show .dropdown-links .dropdown-item:nth-child(2) { animation-delay: 0.1s; }
.user-dropdown.show .dropdown-logout { animation-delay: 0.15s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .user-dropdown {
        width: 260px;
        left: 0;
        right: auto;
        margin: 0;
        transform: translateY(8px) scale(0.96);
    }
    
    .user-dropdown.show {
        transform: translateY(0) scale(1);
    }

    .server-grid {
        grid-template-columns: 1fr;
    }

    .profile-card {
        margin: 0 0.5rem;
    }
}

/* ============================================ */
/*  Server Rail (ProBot-style right sidebar)     */
/* ============================================ */

.server-rail {
    position: relative;
    right: auto;
    top: auto;
    width: 72px;
    height: 100%;
    background-color: #1a1b1e;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    border-left: 1px solid rgba(255,255,255,0.04);
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.server-rail::-webkit-scrollbar {
    display: none;
}

.rail-server {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    cursor: pointer;
    transition: border-radius 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
                transform 0.2s ease,
                box-shadow 0.25s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.rail-server img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: border-radius 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rail-server:hover {
    border-radius: 16px;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(155, 89, 182, 0.25);
}

.rail-server.rail-active {
    border-radius: 16px;
}

.rail-server-initials {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #36393f, #4f545c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    border-radius: inherit;
    transition: background 0.3s ease, border-radius 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rail-server:hover .rail-server-initials {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
}

.rail-server.rail-active .rail-server-initials {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
}

/* Active pill indicator */
.rail-active-pill {
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 32px;
    background: linear-gradient(to bottom, var(--primary), var(--accent)) !important;
    border-radius: 4px 0 0 4px;
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 0 8px var(--primary);
}

/* Tooltip */
.rail-server::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #111214;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    direction: rtl;
}

.rail-server::before {
    content: '';
    position: absolute;
    right: calc(100% + 2px);
    top: 50%;
    transform: translateY(-50%) translateX(4px);
    border: 6px solid transparent;
    border-right-color: #111214;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 200;
}

.rail-server:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.rail-server:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* ============================================ */
/*  Hamburger Button                             */
/* ============================================ */

.hamburger-btn {
    display: flex;
    position: relative;
    z-index: 200;
    width: 42px;
    height: 42px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.hamburger-btn:hover {
    background: var(--bg-sidebar);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2.5px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
                opacity 0.2s ease,
                width 0.25s ease;
}

/* Hamburger → X animation */
.hamburger-active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger-active .hamburger-line:nth-child(2) {
    opacity: 0;
    width: 0;
}

.hamburger-active .hamburger-line:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 45;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.overlay-show {
    opacity: 1;
}

/* ============================================ */
/*  Responsive - Settings page layout            */
/* ============================================ */

@media (max-width: 1024px) {
    .dash-header {
        height: 60px;
        padding: 0 1rem;
    }
    
    .header-bot-name {
        font-size: 1.15rem;
    }
    
    .header-bot-avatar {
        width: 34px;
        height: 34px;
    }

    .hamburger-btn {
        width: 38px;
        height: 38px;
        padding: 8px;
    }

    .sidebar-container {
        top: 60px;
        width: 352px;
        height: calc(100vh - 60px);
        transform: translateX(100%);
    }

    .sidebar-container.open {
        transform: translateX(0);
    }

    .server-rail {
        transform: none !important;
        height: 100% !important;
    }

    .sidebar {
        transform: none !important;
        height: 100% !important;
    }

    .sidebar-overlay {
        display: block;
        pointer-events: none;
    }

    .sidebar-overlay.overlay-show {
        pointer-events: all;
    }

    .main-content {
        margin-right: 0;
        padding: calc(60px + 2rem) 1.5rem 2rem 1.5rem;
    }
}

@media (max-width: 640px) {
    .sidebar-container {
        width: 316px; /* 56px rail + 260px sidebar */
    }

    .server-rail {
        width: 56px;
        padding: 8px 0;
        gap: 6px;
    }

    .rail-server {
        width: 40px;
        height: 40px;
    }

    .sidebar {
        width: 260px;
    }

    .main-content {
        margin-right: 0;
        padding: calc(60px + 4rem) 1rem 1.5rem 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .settings-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* ============================================ */
/*  Profile Redesign & Market CSS               */
/* ============================================ */

.profile-layout-container {
    max-width: 1100px;
    margin: 2rem auto;
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
    align-items: flex-start;
}

.profile-preview-section {
    flex: 1;
    min-width: 320px;
    position: sticky;
    top: 90px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.profile-config-section {
    flex: 1.5;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.section-title-glow {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
}

/* Discord Profile Card Mimic (800x800 absolute pixel coordinates layout) */
.profile-preview-wrapper {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    border-radius: 30px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    background: #1e103c;
    margin: 0 auto;
}

.canvas-preview-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    background: #2c1e54;
    border-radius: 30px;
    transform: scale(0.55);
    transform-origin: top left;
    box-sizing: border-box;
    font-family: 'Tajawal', Arial, sans-serif;
    overflow: hidden;
    direction: ltr;
    text-align: left;
}

.canvas-banner {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 740px;
    height: 250px;
    border-radius: 20px;
    background-color: #5e2590;
    background-size: cover;
    background-position: center;
    transition: background 0.3s ease;
}

.canvas-avatar-wrap {
    position: absolute;
    top: 190px;
    left: 70px;
    width: 180px;
    height: 180px;
    z-index: 2;
}

.canvas-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid #2c1e54;
    background-color: #1e103c;
    box-sizing: border-box;
}

.canvas-rep-pill {
    position: absolute;
    top: 280px;
    left: 270px;
    width: 100px;
    height: 35px;
    border-radius: 15px;
    background: #6b32c9;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-username {
    position: absolute;
    top: 325px;
    left: 270px;
    color: #ffffff;
    font-size: 36px;
    font-weight: bold;
}

.canvas-header-about {
    position: absolute;
    top: 405px;
    left: 60px;
    color: #a193c7;
    font-size: 18px;
    font-weight: bold;
}

.canvas-text-about {
    position: absolute;
    top: 435px;
    left: 60px;
    color: #ffffff;
    font-size: 16px;
    width: 400px;
    line-height: 1.4;
    word-break: break-all;
    white-space: pre-line;
}

.canvas-header-stats {
    position: absolute;
    top: 535px;
    left: 60px;
    color: #a193c7;
    font-size: 18px;
    font-weight: bold;
}

.canvas-stat-line {
    position: absolute;
    left: 60px;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.canvas-level { top: 590px; }
.canvas-rank { top: 636px; }
.canvas-xp { top: 686px; }

.canvas-emoji {
    display: inline-block;
    width: 25px;
    text-align: center;
}

.canvas-emoji.yellow { color: #f1c40f; font-size: 24px; margin-right: 10px; }
.canvas-emoji.blue { color: #3498db; font-size: 20px; margin-right: 10px; margin-left: 2px; }
.canvas-emoji.red { color: #e74c3c; font-size: 14px; margin-right: 14px; margin-left: 4px; }

.canvas-xp-container {
    position: absolute;
    top: 740px;
    left: 60px;
    width: 350px;
    height: 25px;
    border-radius: 12px;
    background: #1e103c;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-xp-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #8342e4;
    border-radius: 12px;
}

.canvas-xp-text {
    position: relative;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    z-index: 2;
}

.canvas-header-nof {
    position: absolute;
    top: 405px;
    left: 520px;
    color: #a193c7;
    font-size: 18px;
    font-weight: bold;
}

.canvas-nof-box {
    position: absolute;
    top: 450px;
    left: 520px;
    width: 220px;
    height: 50px;
    border-radius: 10px;
    background: #1e103c;
    display: flex;
    align-items: center;
    padding-left: 20px;
    box-sizing: border-box;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
}

.canvas-header-badges {
    position: absolute;
    top: 535px;
    left: 520px;
    color: #a193c7;
    font-size: 18px;
    font-weight: bold;
}

.canvas-badges-grid {
    position: absolute;
    top: 588px;
    left: 520px;
    width: 220px;
    height: 150px;
    display: grid;
    grid-template-columns: repeat(2, 44px);
    gap: 16px;
}

.canvas-badge-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.canvas-badge-circle.empty {
    background: #1e103c;
}

.preview-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 1rem;
    background: rgba(255,255,255,0.02);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.04);
    line-height: 1.4;
}

/* Marketplace Advanced Features */
.market-toolbar {
    background-color: var(--bg-sidebar);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.toolbar-search {
    flex: 1;
    min-width: 220px;
    position: relative;
    display: flex;
    align-items: center;
}

.toolbar-search i {
    position: absolute;
    right: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.toolbar-search input {
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 8px 36px 8px 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.88rem;
}

.toolbar-selects {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.toolbar-select {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toolbar-select label {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.toolbar-select select {
    background-color: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 8px 24px 8px 12px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
}

.like-btn-floating {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(24, 25, 28, 0.65);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.like-btn-floating:hover {
    background: rgba(24, 25, 28, 0.85);
    transform: scale(1.05);
}

.like-btn-floating.liked {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.35);
}

.bg-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    border-top: 1px dashed rgba(255,255,255,0.04);
    padding-top: 8px;
}

.bg-stat-lbl {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bg-stat-lbl.earnings {
    color: var(--success);
}

.action-buttons-group {
    display: flex;
    gap: 6px;
    width: 100%;
}

.gift-btn-icon {
    background: #8e44ad;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.gift-btn-icon:hover {
    background: #9b59b6;
}

.card-gift-form {
    display: none;
    gap: 6px;
    margin-top: 8px;
    border-top: 1px dashed rgba(255,255,255,0.04);
    padding-top: 8px;
}

.card-gift-form.show {
    display: flex;
}

.gift-send-btn {
    background-color: var(--primary);
    border: none;
    color: white;
    width: 32px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

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

.download-bg-btn {
    background-color: #3b3e45;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.78rem;
    text-decoration: none;
    transition: background 0.2s;
}

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

.delete-bg-btn.icon-only {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    padding: 0;
}

.control-row {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
}

/* Premium Tabs */
.premium-tabs {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--bg-sidebar);
    padding: 6px;
    border-radius: 12px;
    gap: 5px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.03);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--text-main);
    background-color: rgba(255,255,255,0.02);
}

.tab-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.3);
}

/* Tab contents */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeInTab 0.35s ease forwards;
}

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

.premium-form {
    background: var(--bg-sidebar);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 1.25rem;
}

.form-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 8px;
}

.field-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.text-ltr {
    direction: ltr;
    text-align: left;
}

.profile-save-btn.secondary {
    background: linear-gradient(135deg, var(--primary), #8e44ad);
}

.profile-save-btn.secondary:hover {
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.25);
}

.alert-box {
    margin-bottom: 1rem;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 500;
}

/* Badges Grid and Cards */
.shop-header-info {
    margin-bottom: 1.5rem;
}

.shop-header-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
}

.shop-header-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.badges-grid-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.badge-item-card {
    background-color: var(--bg-sidebar);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.badge-item-card:hover {
    transform: translateY(-2px);
    border-color: rgba(155, 89, 182, 0.15);
}

.badge-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.badge-item-details {
    flex-grow: 1;
}

.badge-item-details h4 {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 700;
}

.badge-price-tag {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
    display: inline-block;
}

.badge-price-tag.auto-tag {
    color: var(--primary);
    background: rgba(155, 89, 182, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

.badge-item-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.badge-action-btn {
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

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

.badge-action-btn.buy-btn:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.25);
}

.badge-action-btn.toggle-btn {
    background-color: #2f3136;
    color: var(--text-muted);
}

.badge-action-btn.toggle-btn:hover {
    background-color: #3b3e45;
    color: var(--text-main);
}

.badge-action-btn.toggle-btn.active {
    background-color: var(--success);
    color: white;
}

.badge-action-btn.toggle-btn.active:hover {
    background-color: #1f944f;
    box-shadow: 0 4px 12px rgba(35, 165, 89, 0.25);
}

/* Owner editing layout */
.owner-badge-edit {
    display: flex;
    gap: 5px;
    align-items: center;
}

.price-edit-wrap {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 2px 6px;
    width: 100px;
    transition: all 0.2s ease;
}

.price-edit-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.2);
}

.price-edit-input {
    background: none !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 0.82rem;
    font-weight: 700;
    width: 42px;
    text-align: center;
    padding: 4px 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.price-edit-lbl {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: bold;
}

.price-save-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    border: none !important;
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.price-save-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 0 8px var(--primary);
}

/* Background Section */
.upload-section-card {
    border: 1px dashed rgba(155, 89, 182, 0.25);
    background: rgba(155, 89, 182, 0.02);
}

.file-input-style {
    padding: 6px 10px;
    cursor: pointer;
}

.bg-market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.bg-market-card {
    background: linear-gradient(135deg, rgba(30, 25, 45, 0.5) 0%, rgba(15, 12, 22, 0.7) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.bg-market-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 12px 30px rgba(155, 89, 182, 0.4);
}

.bg-card-preview-wrap {
    position: relative;
    height: 120px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.bg-card-preview-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.bg-market-card:hover .bg-card-preview-img {
    transform: scale(1.12);
}

.bg-card-info {
    padding: 14px 14px 8px 14px;
    flex-grow: 1;
}

.bg-card-info h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bg-card-author {
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 4px;
}

.bg-price {
    font-size: 0.85rem;
    font-weight: bold;
    color: var(--primary);
    display: block;
}

.bg-card-stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px 12px 14px;
    flex-wrap: wrap;
}

.bg-stat-lbl {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.2s ease;
}

.bg-stat-lbl i {
    font-size: 0.75rem;
}

.bg-stat-lbl:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.bg-stat-lbl.earnings {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.2);
}

.bg-stat-lbl.earnings:hover {
    background: rgba(46, 204, 113, 0.2);
}

.bg-card-actions {
    padding: 12px 14px 14px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bg-card-actions .badge-action-btn {
    width: 100%;
}

.badge-action-btn.gift-btn {
    background: linear-gradient(135deg, #ec407a, #d81b60);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(216, 27, 96, 0.3);
    transition: all 0.3s ease;
}

.badge-action-btn.gift-btn:hover {
    background: linear-gradient(135deg, #f48fb1, #ec407a);
    box-shadow: 0 6px 18px rgba(216, 27, 96, 0.5);
    transform: translateY(-1px);
}

.active-badge-tag {
    font-size: 0.78rem;
    color: var(--success);
    font-weight: bold;
    text-align: center;
    display: block;
    padding: 4px;
}

.uploader-bg-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 5px;
    border-top: 1px dashed rgba(255,255,255,0.05);
    padding-top: 5px;
}

.uploader-bg-controls .owner-badge-edit {
    justify-content: space-between;
}

.uploader-bg-controls .owner-badge-edit input {
    flex-grow: 1;
}

.delete-bg-btn {
    background-color: #ed4245;
    border: none;
    color: white;
    padding: 4px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background-color 0.2s ease;
    font-family: inherit;
    font-weight: bold;
}

.delete-bg-btn:hover {
    background-color: #c03537;
}

/* Toast Notifications */
.toast-notif {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #18191c;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.toast-notif.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notif.success {
    border-right: 5px solid var(--success);
}

.toast-notif.success i {
    color: var(--success);
}

.toast-notif.error {
    border-right: 5px solid #ed4245;
}

.toast-notif.error i {
    color: #ed4245;
}

/* Responsive container */
@media (max-width: 860px) {
    .profile-layout-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .profile-preview-section {
        position: static;
        width: 100%;
        min-width: 0 !important; /* Prevents overflow on smaller devices */
        padding: 1.25rem;
    }
    
    .profile-preview-wrapper {
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .profile-layout-container {
        padding: 0 0.5rem;
    }
    
    .profile-preview-section {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding: 4rem 0.5rem 1.5rem 0.5rem !important;
    }
    
    .profile-layout-container {
        padding: 0;
        gap: 1rem;
    }
    
    .profile-preview-section {
        padding: 0.75rem;
        border-radius: 12px;
    }
    
    .profile-preview-wrapper {
        border-radius: 20px;
    }
}

/* ==========================================================================
   Phase 2: Avatar Frames, Daily Spin & Leaderboard Podium CSS
   ========================================================================== */

/* 1. Avatar Frames */
.canvas-frame {
    position: absolute;
    top: -2px;
    left: -2px;
    width: 184px;
    height: 184px;
    border-radius: 50%;
    pointer-events: none;
    box-sizing: border-box;
    z-index: 3;
    transition: all 0.3s ease;
}

.canvas-frame.neon_purple {
    border: 12px solid #9b59b6;
    box-shadow: 0 0 20px rgba(155, 89, 182, 0.75), inset 0 0 15px rgba(155, 89, 182, 0.5);
}

.canvas-frame.fire_glow {
    border: 12px solid #e74c3c;
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.75), inset 0 0 15px rgba(231, 76, 60, 0.5);
    animation: firePulse 1.5s infinite alternate ease-in-out;
}

@keyframes firePulse {
    0% {
        box-shadow: 0 0 15px rgba(231, 76, 60, 0.6), inset 0 0 10px rgba(231, 76, 60, 0.4);
        border-color: #e74c3c;
    }
    100% {
        box-shadow: 0 0 28px rgba(230, 126, 34, 0.9), inset 0 0 20px rgba(230, 126, 34, 0.6);
        border-color: #e67e22;
    }
}

.canvas-frame.royal_gold {
    border: 12px solid #f1c40f;
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.75), inset 0 0 15px rgba(241, 196, 15, 0.5);
    animation: goldShine 2s infinite ease-in-out;
}

@keyframes goldShine {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.25) drop-shadow(0 0 8px rgba(241, 196, 15, 0.8)); }
    100% { filter: brightness(1); }
}

.canvas-frame.rainbow {
    border: 12px solid transparent;
    background: linear-gradient(#2c1e54, #2c1e54) padding-box,
                linear-gradient(90deg, #e74c3c, #f1c40f, #2ecc71, #3498db, #9b59b6, #e74c3c) border-box;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    animation: rainbowShift 3s infinite linear;
}

@keyframes rainbowShift {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}


/* 2. Daily Spin Wheel Layout */
.spin-section-container {
    background: var(--bg-sidebar);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.spin-wheel-wrapper {
    position: relative;
    width: 320px;
    max-width: 100%;
    aspect-ratio: 1/1;
    height: auto;
    margin: 20px auto;
}

.wheel-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 35px rgba(155, 89, 182, 0.25), 0 0 2px rgba(255, 255, 255, 0.15);
    border: 6px solid #1e103c;
    background: #23124d;
    transition: transform 5s cubic-bezier(0.1, 0.8, 0.1, 1);
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #ff4757;
    z-index: 10;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
}

.wheel-center-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, #ffffff 0%, #a193c7 70%, #1e103c 100%);
    border-radius: 50%;
    border: 4px solid #1e103c;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.spin-btn {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 71, 87, 0.35);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 15px;
    font-family: inherit;
}

.spin-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 71, 87, 0.5);
}

.spin-btn:active:not(:disabled) {
    transform: translateY(1px);
}

.spin-btn:disabled {
    background: #3b3e45;
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.spin-reward-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: rgba(24, 25, 28, 0.95);
    backdrop-filter: blur(8px);
    border: 2px solid var(--primary);
    border-radius: 16px;
    padding: 25px;
    color: white;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.spin-reward-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.spin-reward-popup h4 {
    font-size: 1.4rem;
    color: #f1c40f;
    margin-bottom: 10px;
}

.spin-reward-popup p {
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.spin-reward-popup .claim-ok-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.spin-reward-popup .claim-ok-btn:hover {
    background: var(--primary-hover);
}


/* 3. Leaderboard Styles */
.leaderboard-layout {
    max-width: 1100px;
    margin: 0 auto;
}

/* Podium Design */
.leaderboard-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    margin: 40px 0 50px 0;
    padding: 0 10px;
}

.podium-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 200px;
    position: relative;
}

.podium-avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
}

.podium-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--bg-card);
    object-fit: cover;
    border: 4px solid var(--border);
    transition: transform 0.3s;
}

.podium-crown {
    position: absolute;
    top: -24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.podium-crown.gold { color: #f1c40f; animation: floatCrown 2s infinite alternate ease-in-out; }
.podium-crown.silver { color: #bdc3c7; }
.podium-crown.bronze { color: #d35400; }

@keyframes floatCrown {
    0% { transform: translate(-50%, 0); }
    100% { transform: translate(-50%, -6px); }
}

.podium-pedestal {
    width: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.podium-slot.first .podium-pedestal {
    height: 190px;
    border-color: rgba(241, 196, 15, 0.35);
    box-shadow: 0 15px 40px rgba(241, 196, 15, 0.12);
}
.podium-slot.first .podium-avatar {
    width: 110px;
    height: 110px;
    border-color: #f1c40f;
    box-shadow: 0 0 25px rgba(241, 196, 15, 0.3);
}

.podium-slot.second .podium-pedestal {
    height: 150px;
    border-color: rgba(189, 195, 199, 0.3);
}
.podium-slot.second .podium-avatar {
    border-color: #bdc3c7;
    box-shadow: 0 0 15px rgba(189, 195, 199, 0.2);
}

.podium-slot.third .podium-pedestal {
    height: 120px;
    border-color: rgba(211, 84, 0, 0.3);
}
.podium-slot.third .podium-avatar {
    border-color: #d35400;
    box-shadow: 0 0 15px rgba(211, 84, 0, 0.2);
}

.podium-rank-badge {
    position: absolute;
    top: -12px;
    background: #18191c;
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    border: 2px solid var(--border);
}
.podium-slot.first .podium-rank-badge { border-color: #f1c40f; background-color: #f1c40f; color: #1e1f22; }
.podium-slot.second .podium-rank-badge { border-color: #bdc3c7; background-color: #bdc3c7; color: #1e1f22; }
.podium-slot.third .podium-rank-badge { border-color: #d35400; background-color: #d35400; color: #1e1f22; }

.podium-username {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.podium-slot.first .podium-username {
    font-size: 1.1rem;
}

.podium-value {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.podium-value strong {
    color: #fff;
    font-size: 1.05rem;
}

/* Leaderboard List Table */
.leaderboard-search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    background-color: var(--bg-sidebar);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 15px;
}

.leaderboard-search-bar input {
    flex-grow: 1;
    background-color: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
}

.leaderboard-search-bar select {
    background-color: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px 20px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.leaderboard-table-container {
    background-color: var(--bg-sidebar);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 14px;
    overflow-x: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.leaderboard-table th {
    background-color: rgba(255,255,255,0.02);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.leaderboard-table td {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    color: var(--text-main);
    font-size: 0.95rem;
    vertical-align: middle;
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

.leaderboard-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.01);
}

.leaderboard-user-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.leaderboard-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-card);
}

.leaderboard-rank-num {
    font-weight: bold;
    color: var(--text-muted);
    font-size: 1.05rem;
    width: 30px;
    display: inline-block;
    text-align: center;
}

.leaderboard-table tr:nth-child(1) .leaderboard-rank-num { color: #f1c40f; font-size: 1.3rem; }
.leaderboard-table tr:nth-child(2) .leaderboard-rank-num { color: #bdc3c7; font-size: 1.2rem; }
.leaderboard-table tr:nth-child(3) .leaderboard-rank-num { color: #d35400; font-size: 1.15rem; }

.leaderboard-value-col {
    font-weight: bold;
}

.leaderboard-level-badge {
    background: rgba(155, 89, 182, 0.12);
    color: var(--primary);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
}

.leaderboard-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: rgba(255,255,255,0.015);
    border-top: 1px solid rgba(255,255,255,0.03);
}

.page-btn {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    font-size: 0.82rem;
    transition: 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.page-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .leaderboard-podium {
        flex-direction: column;
        align-items: center;
        gap: 35px;
    }
    .podium-slot {
        width: 100%;
        max-width: 250px;
    }
    .podium-slot.first .podium-pedestal,
    .podium-slot.second .podium-pedestal,
    .podium-slot.third .podium-pedestal {
        height: auto;
        padding: 15px 10px;
        border-radius: 12px;
    }
}

/* User Avatar & Separator in Server Rail */
.rail-separator {
    width: 32px;
    height: 2px;
    background-color: #35363c;
    margin: 8px 0;
    border-radius: 1px;
}

.rail-user-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: border-radius 0.2s ease, transform 0.2s ease;
    object-fit: cover;
}

.rail-server.user-avatar-rail-btn {
    border: 2px solid transparent;
}

.rail-server.user-avatar-rail-btn:hover {
    border-color: var(--primary);
}

.rail-server.user-avatar-rail-btn:hover .rail-user-avatar {
    border-radius: 35%;
}

/* Custom Glow & Glassmorphism Styles (Phase 3) */
.glass-card {
    background: var(--bg-card) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

body {
    background-image: radial-gradient(circle at 10% 20%, rgba(168, 85, 247, 0.06) 0%, transparent 45%),
                      radial-gradient(circle at 90% 80%, rgba(217, 70, 239, 0.05) 0%, transparent 45%) !important;
    background-attachment: fixed;
}

/* Glowing Neon Button */
.neon-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.neon-btn:hover {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5), 0 0 30px rgba(217, 70, 239, 0.3);
    transform: translateY(-2px);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--text-main) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Pulse animation for active indicator */
@keyframes neon-pulse {
    0% { box-shadow: 0 0 5px rgba(168, 85, 247, 0.2); }
    50% { box-shadow: 0 0 15px rgba(168, 85, 247, 0.6); }
    100% { box-shadow: 0 0 5px rgba(168, 85, 247, 0.2); }
}

.pulse-glow {
    animation: neon-pulse 2s infinite ease-in-out;
}

/* Improved Server Rail background */
.server-rail {
    background-color: var(--bg-sidebar) !important;
    border-left: 1px solid var(--border) !important;
}

.rail-separator {
    background-color: var(--border) !important;
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
}

.stat-card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3) !important;
}

.settings-list {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    backdrop-filter: blur(8px);
}

.settings-item {
    border-bottom: 1px solid var(--border) !important;
}

.form-panel {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.navbar {
    background-color: rgba(15, 9, 32, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border) !important;
}

/* Responsive adjustments for Profile & Leaderboard pages (Phase 4) */
@media (max-width: 860px) {
    .profile-preview-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2rem;
    }
    .profile-layout-container {
        margin: 1rem auto;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .premium-tabs {
        flex-direction: column;
        width: 100%;
        padding: 8px;
    }
    
    .tab-btn {
        width: 100%;
        padding: 12px;
        font-size: 0.85rem;
    }
    
    .leaderboard-search-bar {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }
    
    .leaderboard-search-bar input,
    .leaderboard-search-bar select {
        width: 100%;
    }
    
    .leaderboard-table th,
    .leaderboard-table td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
    }
}

/* Fragmented Profile Column & Card Styles (Phase 5) */
.profile-config-column {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.profile-config-card {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px;
    padding: 1.8rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-config-card:hover {
    border-color: rgba(168, 85, 247, 0.25) !important;
    box-shadow: 0 10px 30px rgba(168, 85, 247, 0.08);
}

@media (max-width: 640px) {
    .profile-config-card {
        padding: 1.2rem;
    }
}

/* ===== Profile Navigation Cards (Quick Links Grid) ===== */
.profile-nav-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-nav-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.profile-nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-nav-card:hover {
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateX(-4px);
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.12);
}

.profile-nav-card:hover::before {
    opacity: 1;
}

.profile-nav-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.profile-nav-info {
    flex: 1;
    min-width: 0;
}

.profile-nav-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 4px;
}

.profile-nav-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.profile-nav-arrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.profile-nav-card:hover .profile-nav-arrow {
    transform: translateX(-4px);
    color: var(--primary);
}

/* Toast container for sub-pages */
.toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-main);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: auto;
}

.toast-item.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-item.success i { color: #2ecc71; }
.toast-item.error i { color: #e74c3c; }

@media (max-width: 640px) {
    .profile-nav-card {
        padding: 12px 14px;
        gap: 12px;
    }
    .profile-nav-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .profile-nav-info h4 {
        font-size: 0.9rem;
    }
    .profile-nav-info p {
        font-size: 0.75rem;
    }
}

/* ===== Admin Dashboard Styles ===== */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 2rem;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.stat-icon.users {
    background: linear-gradient(135deg, #3498db, #2980b9);
    box-shadow: 0 4px 14px rgba(52, 152, 219, 0.4);
}

.stat-icon.circulation {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    box-shadow: 0 4px 14px rgba(241, 196, 15, 0.4);
}

.stat-icon.pending {
    background: linear-gradient(135deg, #e67e22, #d35400);
    box-shadow: 0 4px 14px rgba(230, 126, 34, 0.4);
}

.stat-icon.market {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    box-shadow: 0 4px 14px rgba(155, 89, 182, 0.4);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-title {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-top: 4px;
}

.admin-tabs-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 24px;
    margin-top: 1.5rem;
}

.admin-tab-buttons {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-tab-buttons::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 10px 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    color: var(--text-main);
    border-color: rgba(168, 85, 247, 0.3);
    background: rgba(168, 85, 247, 0.05);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.admin-panel-split {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

/* Badge and status indicators */
.pending-badge-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.approved-badge-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.rejected-badge-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.no-items-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px 20px;
    border: 2px dashed var(--border);
    border-radius: 16px;
    color: var(--text-muted);
    width: 100%;
}

.no-items-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
    color: var(--primary);
}

.no-items-placeholder p {
    font-size: 1rem;
    font-weight: 500;
}

/* Premium Modal Styles */
.premium-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 8, 16, 0.85);
    backdrop-filter: blur(8px);
}

.modal-content-wrapper {
    position: relative;
    background: linear-gradient(145deg, #1d172e, #0e0b16);
    border: 1px solid rgba(155, 89, 182, 0.3);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(155, 89, 182, 0.2);
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    padding: 28px;
    z-index: 2;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.premium-modal.active .modal-content-wrapper {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

.gift-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.gift-glow-icon {
    font-size: 2.8rem;
    color: #ec407a;
    text-shadow: 0 0 20px rgba(236, 64, 122, 0.6);
    margin-bottom: 12px;
    animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(236, 64, 122, 0.4)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px rgba(236, 64, 122, 0.8)); }
}

.gift-modal-header h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
}

.gift-modal-header p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.gift-preview-container {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.gift-preview-banner {
    height: 100px;
    background-size: cover;
    background-position: center;
    background-color: #5e2590;
}

.gift-preview-info {
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.gift-preview-info h4 {
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 700;
    margin: 0;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gift-preview-info span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
}

.gift-price-badge {
    background: rgba(155, 89, 182, 0.15);
    border: 1px solid rgba(155, 89, 182, 0.3);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.input-glow {
    border: 1px solid rgba(155, 89, 182, 0.2);
    background: rgba(0, 0, 0, 0.2) !important;
    color: #ffffff !important;
    font-size: 1.1rem !important;
    letter-spacing: 1px;
    transition: all 0.3s ease !important;
}

.input-glow:focus {
    border-color: #ec407a !important;
    box-shadow: 0 0 15px rgba(236, 64, 122, 0.3) !important;
}

.gift-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.modal-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
}

.modal-btn.cancel-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

.modal-btn.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-btn.confirm-btn {
    background: linear-gradient(135deg, #ec407a, #d81b60);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(216, 27, 96, 0.4);
}

.modal-btn.confirm-btn:hover {
    background: linear-gradient(135deg, #f48fb1, #ec407a);
    box-shadow: 0 6px 20px rgba(216, 27, 96, 0.6);
}

/* ==========================================
   Premium Subscription Page Styles
   ========================================== */

:root {
  --orange: #f39c12;
  --light-green: #2ecc71;
  --bs-blue: #3498db;
  --red: #e74c3c;
}

/* Custom Alert Notifications (Style classes requested by user) */
.style_container__f18GI {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 12px;
  border: 2px solid;
  gap: 10px;
  margin-bottom: 1.5rem;
  align-items: center;
  transition: all 0.3s ease;
}
.style_container__f18GI > span {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.style_icon__eq_V8 {
  font-size: 1.2rem;
}
.style_warning__R5GcO {
  border-color: var(--orange);
  background-color: rgba(243, 156, 18, 0.1);
  color: #fff;
}
.style_icon-warning__hIfSl {
  color: var(--orange);
}
.style_success__yQu56 {
  border-color: var(--light-green);
  background-color: rgba(46, 204, 113, 0.1);
  color: #fff;
}
.style_icon-success__tQ7Hh {
  color: var(--light-green);
}
.style_info__WFpBB {
  border-color: var(--bs-blue);
  background-color: rgba(52, 152, 219, 0.1);
  color: #fff;
}
.style_icon-info__n6Hpu {
  color: var(--bs-blue);
}
.style_error__SAJVn {
  border-color: var(--red);
  background-color: rgba(231, 76, 60, 0.1);
  color: #fff;
}
.style_icon-error__QvyKK {
  color: var(--red);
}
.style_close__7KryQ {
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-muted);
}
.style_close__7KryQ i {
  padding-top: 2px;
  font-size: 1.2rem;
  transition: color 0.2s ease-in-out;
}
.style_close__7KryQ i:hover {
  opacity: 0.8;
  color: #fff;
}

/* Pricing Page Structure */
.pricing-title {
  font-size: 2.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  text-align: center;
}
.pricing-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.6;
}

.pricing-switcher-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}
.pricing-switcher-container .fieldset {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30px;
  padding: 4px;
  border: 1px solid var(--border);
  width: 240px;
}
.pricing-switcher-container .fieldset input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.pricing-switcher-container .fieldset label {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 2;
  transition: color 0.3s ease;
}
.pricing-switcher-container .fieldset input[type="radio"]:checked + label {
  color: #fff;
}
.pricing-switcher-container .fieldset .switch {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 4px;
  width: calc(50% - 4px);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 26px;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#yearly-1:checked ~ .switch {
  transform: translateX(-100%); /* Since layout direction is RTL */
}

.pricing-container {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-bottom: 4rem;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2rem;
  width: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.4);
}
.pricing-card-featured {
  border: 2px solid var(--primary);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.15);
}
.pricing-card-featured::before {
  content: "موصى به";
  position: absolute;
  top: 20px;
  left: -35px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 4px 35px;
  font-size: 0.75rem;
  font-weight: 800;
  transform: rotate(-45deg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.pricing-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.pricing-card-type {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.pricing-card-price {
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  margin: 1rem 0 0.25rem 0;
  display: flex;
  align-items: baseline;
}
.pricing-card-header small {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.pricing-card-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  min-height: 45px;
}
.pricing-card-features {
  width: 100%;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-bottom: 2.5rem;
}
.pricing-card-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: right;
}
.pricing-card-features li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
}
.pricing-card-features li i {
  color: var(--light-green);
  font-size: 1.1rem;
}
.pricing-card-footer {
  width: 100%;
  margin-top: auto;
}
.pricing-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}
.pricing-btn-regular {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid var(--border);
}
.pricing-btn-regular:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}
.pricing-btn-featured {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}
.pricing-btn-featured:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

/* ============================================ */
/*  Premium Revamp CSS Extension                */
/* ============================================ */

/* Reveal Animations */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Glowing Buttons */
.neon-btn {
    position: relative;
    overflow: hidden;
}
.neon-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.5s;
    opacity: 0;
}
.neon-btn:hover::after {
    opacity: 1;
    left: 120%;
}

.discord-brand-btn {
    background: #5865F2 !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}
.discord-brand-btn:hover {
    background: #4752C4 !important;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
    transform: translateY(-3px);
}

/* Stats Section CSS */
.stats-section {
    padding: 6rem 0;
    position: relative;
}
.stats-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.stat-card-premium {
    background: rgba(20, 12, 38, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.stat-card-premium:hover {
    transform: translateY(-5px);
    border-color: rgba(217, 70, 239, 0.4);
    box-shadow: 0 10px 25px rgba(217, 70, 239, 0.15);
}
.stat-icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin: 0 auto 1.2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(168, 85, 247, 0.1);
    color: var(--primary);
    border: 1px solid rgba(168, 85, 247, 0.2);
}
.stat-card-premium:nth-child(2) .stat-icon-wrapper {
    color: var(--accent);
    background: rgba(217, 70, 239, 0.1);
    border-color: rgba(217, 70, 239, 0.2);
}
.stat-card-premium:nth-child(3) .stat-icon-wrapper {
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.2);
}
.stat-card-premium:nth-child(4) .stat-icon-wrapper {
    color: #23a559;
    background: rgba(35, 165, 89, 0.1);
    border-color: rgba(35, 165, 89, 0.2);
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 700;
}

/* Discord UI Interactive Showcase Simulator */
.showcase-section {
    padding: 6rem 0;
}
.showcase-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}
.showcase-tab-btn {
    background: rgba(20, 12, 38, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}
.showcase-tab-btn:hover, .showcase-tab-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.discord-window-wrapper {
    max-width: 900px;
    margin: 0 auto;
    background: #313338;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 480px;
}
.discord-header-bar {
    background: #1e1f22;
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    justify-content: space-between;
}
.discord-dots {
    display: flex;
    gap: 6px;
}
.discord-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.discord-dot.red { background: #ff5f56; }
.discord-dot.yellow { background: #ffbd2e; }
.discord-dot.green { background: #27c93f; }
.discord-win-title {
    font-size: 0.75rem;
    color: #949ba4;
    direction: ltr;
}

.discord-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.discord-channels-sidebar {
    width: 220px;
    background: #2b2d31;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-left: 1px solid #1f2023;
}
@media (max-width: 768px) {
    .discord-channels-sidebar {
        display: none;
    }
}
.discord-channel-item {
    padding: 6px 8px;
    border-radius: 4px;
    color: #949ba4;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}
.discord-channel-item.active {
    background: #35373c;
    color: #dbdee1;
}
.discord-channel-item i {
    font-size: 1rem;
}

.discord-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: #313338;
}
.discord-chat-header {
    height: 48px;
    border-bottom: 1px solid #1f2023;
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: #dbdee1;
    font-weight: 700;
    gap: 8px;
}
.discord-messages-scroll {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.discord-message {
    display: flex;
    gap: 16px;
}
.discord-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}
.discord-msg-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.discord-msg-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.discord-msg-username {
    font-weight: 700;
    color: #f2f3f5;
    font-size: 0.95rem;
}
.discord-msg-bot-badge {
    background: #5865F2;
    color: #fff;
    font-size: 0.65rem;
    padding: 1px 4px;
    border-radius: 3px;
    font-weight: 700;
}
.discord-msg-time {
    color: #949ba4;
    font-size: 0.75rem;
}
.discord-msg-text {
    color: #dbdee1;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Discord Embed formatting */
.discord-embed {
    background: #2b2d31;
    border-right: 4px solid var(--primary);
    border-radius: 4px;
    padding: 12px;
    margin-top: 6px;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: right;
}
.discord-embed-title {
    color: #00a8fc;
    font-weight: 700;
    font-size: 0.95rem;
}
.discord-embed-desc {
    color: #dbdee1;
    font-size: 0.9rem;
    line-height: 1.4;
}
.discord-embed-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
}
.discord-embed-field-title {
    color: #949ba4;
    font-size: 0.75rem;
    font-weight: 700;
}
.discord-embed-field-value {
    color: #dbdee1;
    font-size: 0.85rem;
}
.discord-embed-footer {
    color: #949ba4;
    font-size: 0.75rem;
    margin-top: 4px;
}

.discord-input-container {
    padding: 0 16px 24px 16px;
}
.discord-mock-input {
    background: #383a40;
    border-radius: 8px;
    padding: 11px 16px;
    color: #949ba4;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.discord-mock-input i {
    font-size: 1.1rem;
    cursor: pointer;
}

/* FAQ / Accordion Section CSS */
.faq-section {
    padding: 6rem 0;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
.faq-item {
    background: rgba(20, 12, 38, 0.4);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
.faq-item:hover {
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.05);
}
.faq-question {
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: #fff;
    user-select: none;
    transition: color 0.25s ease;
}
.faq-question:hover {
    color: var(--text-muted);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.15);
}
.faq-answer.open {
    max-height: 250px;
}
.faq-answer-content {
    padding: 1.2rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    border-top: 1px solid rgba(168, 85, 247, 0.08);
}
.faq-icon {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    color: var(--primary);
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Call to Action Section (CTA) */
.cta-section {
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-glass-card {
    max-width: 1000px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(20, 12, 38, 0.7), rgba(10, 5, 22, 0.9));
    border: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}
.cta-glass-card::before {
    content: '';
    position: absolute;
    top: -50%; right: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
    pointer-events: none;
    z-index: -1;
}
.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
}
.cta-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.7;
}

/* Premium Revamped Footer */
.premium-footer {
    background: #06030e;
    border-top: 1px solid rgba(168, 85, 247, 0.15);
    padding: 5rem 2rem 2rem 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}
.footer-logo-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.footer-logo-col .logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
@media (max-width: 992px) {
    .footer-logo-col .logo {
        justify-content: center;
    }
}
.footer-logo-col .logo i {
    color: var(--primary);
}
.footer-logo-col p {
    line-height: 1.7;
    max-width: 320px;
}
@media (max-width: 992px) {
    .footer-logo-col p {
        margin: 0 auto;
    }
}
.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 0.5rem;
}
@media (max-width: 992px) {
    .footer-social-links {
        justify-content: center;
    }
}
.footer-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}
.footer-social-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-3px);
}
.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: right;
}
@media (max-width: 992px) {
    .footer-links-col {
        text-align: center;
    }
}
.footer-links-col h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 0;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}
.footer-links a:hover {
    color: #fff;
}
.footer-bottom-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
@media (max-width: 768px) {
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
    }
    
    /* Discord Window Mobile Responsive */
    .discord-window-wrapper {
        height: 400px;
    }
    .discord-chat-header {
        font-size: 0.9rem;
        height: 40px;
        padding: 0 12px;
    }
    .discord-messages-scroll {
        padding: 12px;
        gap: 12px;
    }
    .discord-message {
        gap: 10px;
    }
    .discord-user-avatar {
        width: 32px;
        height: 32px;
    }
    .discord-msg-username {
        font-size: 0.85rem;
    }
    .discord-msg-text {
        font-size: 0.85rem;
    }
    .discord-embed {
        max-width: 100%;
        padding: 10px;
    }
    .discord-embed-title {
        font-size: 0.85rem;
    }
    .discord-embed-desc {
        font-size: 0.8rem;
    }
    .discord-embed-field-title {
        font-size: 0.7rem;
    }
    .discord-embed-field-value {
        font-size: 0.75rem;
    }
    .discord-mock-input {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    /* Stats grid mobile responsive */
    .stats-grid-premium {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    .stat-card-premium {
        padding: 2rem 1.2rem;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    
    /* FAQ mobile responsive */
    .faq-container {
        padding: 0 1rem;
    }
    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
    }
    .faq-answer-content {
        padding: 1rem;
        font-size: 0.85rem;
    }
    
    /* CTA Mobile Responsive */
    .cta-glass-card {
        padding: 3rem 1.5rem;
        border-radius: 16px;
        margin: 0 1rem;
    }
    .cta-title {
        font-size: 1.8rem;
    }
    .cta-desc {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    /* Showcase Tabs mobile responsiveness */
    .showcase-tabs {
        gap: 8px;
        padding: 0 1rem;
    }
    .showcase-tab-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        flex: 1 1 40%;
    }
    
    /* General Landing Page Hero responsive changes */
    .hero-title {
        font-size: 2.2rem !important;
    }
    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 1rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        padding: 0 1.5rem;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    .hero-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .showcase-tab-btn {
        flex: 1 1 100%;
    }
    .hero-title {
        font-size: 1.8rem !important;
    }
}

/* ============================================ */
/*  Glassmorphic Glow, Color & Aurora Upgrades  */
/* ============================================ */

/* Glass Card styling */
.glass-card {
    background: rgba(20, 12, 38, 0.45) !important;
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease;
}
.glass-card:hover {
    border-color: rgba(217, 70, 239, 0.45) !important;
    box-shadow: 0 10px 25px rgba(217, 70, 239, 0.2) !important;
}

/* Text contrast and layout readability improvements */
:root {
    --text-muted: #cbd5e1; /* Slate gray replaces light lavender for secondary text */
}

p, .feature-card p, .hero-subtitle, .stat-label, .pricing-description, .discord-win-title, .footer-logo-col p, .cta-desc {
    color: #cbd5e1 !important; /* Extremely high contrast on dark indigo backgrounds */
}

/* Aurora animation for backgrounds */
.nebula-1 {
    animation: floatNebula1 25s infinite alternate ease-in-out !important;
}
.nebula-2 {
    animation: floatNebula2 30s infinite alternate ease-in-out !important;
}

@keyframes floatNebula1 {
    0% {
        transform: translate(0, 0) scale(1);
        background: radial-gradient(circle, rgba(168, 85, 247, 0.45) 0%, transparent 70%);
    }
    50% {
        transform: translate(80px, 50px) scale(1.25);
        background: radial-gradient(circle, rgba(217, 70, 239, 0.5) 0%, transparent 70%);
    }
    100% {
        transform: translate(-50px, 100px) scale(0.95);
        background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, transparent 70%);
    }
}

@keyframes floatNebula2 {
    0% {
        transform: translate(0, 0) scale(1.15);
        background: radial-gradient(circle, rgba(217, 70, 239, 0.35) 0%, transparent 70%);
    }
    50% {
        transform: translate(-100px, -60px) scale(0.9);
        background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 70%);
    }
    100% {
        transform: translate(60px, -20px) scale(1.1);
        background: radial-gradient(circle, rgba(217, 70, 239, 0.45) 0%, transparent 70%);
    }
}

/* ============================================ */
/*  System Status Monitor Tab Styles            */
/* ============================================ */
.system-monitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}
.monitor-card {
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.monitor-card h4 {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 700;
}
.gauge-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gauge-ring {
    transform: rotate(-90deg);
}
.gauge-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 8px;
}
.gauge-ring-fill {
    fill: none;
    stroke-width: 8px;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s ease, stroke 0.8s ease;
}
.gauge-value {
    position: absolute;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
}
.gauge-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}
.monitor-metric-wrapper {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}
.metric-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}
.pulse-glow-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    animation: pulseGlow 1.5s infinite alternate ease-in-out;
}
@keyframes pulseGlow {
    0% { transform: scale(0.9); box-shadow: 0 0 10px currentColor; opacity: 0.7; }
    100% { transform: scale(1.1); box-shadow: 0 0 20px currentColor; opacity: 1; }
}

/* Console Box styling */
.console-box-wrapper {
    background: #110c1c;
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.console-header {
    background: #181226;
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.console-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.console-dot.red { background: #ff5f56; }
.console-dot.yellow { background: #ffbd2e; }
.console-dot.green { background: #27c93f; }
.console-terminal {
    height: 220px;
    padding: 16px;
    overflow-y: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    direction: ltr;
}
.console-line {
    color: #dbdee1;
    line-height: 1.4;
    word-break: break-all;
}
.console-line.system { color: #5865F2; }
.console-line.success { color: #2ecc71; }
.console-line.warn { color: #f1c40f; }
.console-line.error { color: #e74c3c; }
.console-line.info { color: #a855f7; }

/* ═══════════════════════════════════════════════ */
/*  LTR LAYOUT SYSTEM ADJUSTMENTS                */
/* ═══════════════════════════════════════════════ */
html[dir="ltr"] {
    text-align: left;
}

html[dir="ltr"] body {
    direction: ltr;
}

/* Sidebar Container LTR positioning */
html[dir="ltr"] .sidebar-container {
    right: auto;
    left: 0;
}

html[dir="ltr"] .sidebar-container.collapsed {
    transform: translateX(-100%);
}

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

html[dir="ltr"] .server-rail {
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.04);
}

/* Main Content margin shift */
html[dir="ltr"] .main-content {
    margin-right: 0;
    margin-left: 352px;
    transition: margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html[dir="ltr"] body.sidebar-collapsed .main-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Active sidebar link borders and icons */
html[dir="ltr"] .nav-item i {
    margin-left: 0;
    margin-right: 8px;
}

html[dir="ltr"] .nav-item.active {
    border-right: none;
    border-left: 3px solid var(--primary);
}

/* Server Rail Active Pill orientation */
html[dir="ltr"] .rail-active-pill {
    right: auto;
    left: 0;
    border-radius: 0 4px 4px 0;
}

/* Server Rail Tooltip LTR positioning */
html[dir="ltr"] .rail-server::after {
    right: auto;
    left: calc(100% + 14px);
    transform: translateY(-50%) translateX(-6px);
    direction: ltr;
}

html[dir="ltr"] .rail-server::before {
    right: auto;
    left: calc(100% + 2px);
    transform: translateY(-50%) translateX(-4px);
    border-right-color: transparent;
    border-left-color: #111214;
}

html[dir="ltr"] .rail-server:hover::after,
html[dir="ltr"] .rail-server:hover::before {
    transform: translateY(-50%) translateX(0);
}





