:root {
    --bg-primary: #111214;
    --bg-secondary: #2b2d31;
    --accent-color: #6781a3;
    --accent-glow: rgba(103, 129, 163, 0.5);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(43, 45, 49, 0.7);
    --glass-border: rgba(255, 255, 255, 0.05);
    --danger: #ef4444;
    --success: #10b981;
    --font-en: 'Inter', sans-serif;
    --font-ar: 'Tajawal', sans-serif;
    --transition: all 0.3s ease;
}

[dir="rtl"] {
    --font-main: var(--font-ar);
}
[dir="ltr"] {
    --font-main: var(--font-en);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: radial-gradient(circle at 15% 50%, rgba(103, 129, 163, 0.08), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(43, 45, 49, 0.5), transparent 25%);
}

/* Glassmorphism Utilities */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.glass-card {
    background: linear-gradient(135deg, rgba(43,45,49,0.8), rgba(30,31,34,0.8));
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px var(--accent-glow);
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    height: 40px;
    border-radius: 50%;
    animation: logoGlowPulse 4s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover {
    transform: scale(1.15) rotate(15deg);
    filter: drop-shadow(0 0 20px rgba(103, 129, 163, 0.8));
}

@keyframes logoGlowPulse {
    0% { filter: drop-shadow(0 0 5px rgba(103, 129, 163, 0.3)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 15px rgba(103, 129, 163, 0.6)); transform: scale(1.05); }
    100% { filter: drop-shadow(0 0 5px rgba(103, 129, 163, 0.3)); transform: scale(1); }
}

.store-name {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.nav-links li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links li a:hover, .nav-links li a.active {
    color: var(--text-main);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links li a.active::after, .nav-links li a:hover::after {
    width: 100%;
}

/* Auth & Profile */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #4a6080);
    color: #fff;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(103, 129, 163, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 129, 163, 0.5);
}

.btn-large {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: #fff;
}

#user-profile {
    position: relative;
}

.profile-trigger img {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.profile-trigger img:hover {
    border-color: var(--accent-color);
    transform: scale(1.05);
}

.profile-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    width: 200px;
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

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

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

.profile-dropdown a {
    text-decoration: none;
    color: var(--text-main);
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
}

.profile-dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

.divider {
    height: 1px;
    background: var(--glass-border);
    margin: 0.5rem 0;
}

#lang-toggle {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

#lang-toggle:hover {
    background: rgba(255,255,255,0.1);
}

.hidden {
    display: none !important;
}

/* Page Sections */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-section {
    animation: fadeIn 0.5s ease;
}

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

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff, #9ca3af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-inline: auto;
}

.floating-elements {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.floating-elements .glass-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 200px;
    font-weight: 600;
}

.floating-elements .glass-card i {
    font-size: 2rem;
    color: var(--accent-color);
}

.card-1 { animation: float 4s ease-in-out infinite; }
.card-2 { animation: float 5s ease-in-out infinite 1s; }
.card-3 { animation: float 6s ease-in-out infinite 2s; }

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Forms & Inputs */
h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.form-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.form-container p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

[dir="rtl"] .input-group i {
    left: auto;
    right: 1rem;
}

.input-group input, .input-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.8rem 1rem 0.8rem 2.5rem;
    color: var(--text-main);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group textarea {
    resize: vertical;
}

[dir="rtl"] .input-group input, [dir="rtl"] .input-group textarea {
    padding: 0.8rem 2.5rem 0.8rem 1rem;
}

.input-group input:focus, .input-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(103, 129, 163, 0.2);
}

.msg {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.msg.success { color: var(--success); }
.msg.error { color: var(--danger); }

/* Rules */
.rules-list {
    list-style: none;
}

.rules-list li {
    padding: 1rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list li i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Filter */
.filter-container {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.glass-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    min-width: 150px;
}

.glass-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(103, 129, 163, 0.2);
}

.glass-select option {
    background: var(--bg-secondary);
    color: var(--text-main);
}

/* Subscriptions Grid */
.subs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.sub-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sub-header i {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.sub-header h3 {
    flex-grow: 1;
    font-size: 1.1rem;
}

.status {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
}

.status.active { background: rgba(16, 185, 129, 0.2); color: var(--success); }
.status.expired { background: rgba(239, 68, 68, 0.2); color: var(--danger); }
.status.frozen { background: rgba(103, 129, 163, 0.2); color: var(--accent-color); }

.sub-details {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.sub-actions {
    display: flex;
    gap: 0.5rem;
}

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

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

.invoices-table th, .invoices-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

[dir="rtl"] .invoices-table th, [dir="rtl"] .invoices-table td {
    text-align: right;
}

.invoices-table th {
    color: var(--text-muted);
    font-weight: 500;
}

.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge.paid { background: rgba(16, 185, 129, 0.2); color: var(--success); }

/* Responsive */
@media (max-width: 992px) {
    #music-dashboard-page > div {
        flex-direction: column !important;
    }
    
    #music-dashboard-page > div > aside {
        width: 100% !important;
        padding: 1rem !important;
        margin-bottom: 0.5rem;
    }
    
    #music-dashboard-page > div > main {
        padding: 1.5rem 1rem !important;
        border-radius: 12px !important;
    }

    .system-commands-container {
        flex-direction: column !important;
    }

    .system-commands-area, .system-categories-sidebar {
        min-width: 100% !important;
        width: 100% !important;
    }
    
    #tab-smart-dist > div:nth-child(2) {
        flex-direction: column-reverse !important;
    }
    
    #tab-smart-dist > div:nth-child(2) > div:first-child {
        width: 100% !important;
        min-width: 100% !important;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 768px) {
    .navbar { padding: 1rem; flex-direction: column; gap: 1rem; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .hero h1 { font-size: 2.2rem; }
    
    .glass-container {
        padding: 1.5rem 1rem;
    }
    
    .subs-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        padding: 1.5rem 1rem !important;
        width: 95% !important;
    }
    
    .form-control-inline {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.8rem;
    }
    
    .form-control-inline label, .form-control-inline .input-wrapper {
        width: 100% !important;
        justify-content: flex-start !important;
    }
    
    .form-control-inline input[type="text"], .form-control-inline select {
        max-width: 100% !important;
    }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal.hidden {
    display: none !important;
}

.modal-content {
    width: 90%;
    max-width: 500px;
    position: relative;
    padding: 2rem;
}

.close-modal {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

[dir="ltr"] .close-modal {
    left: auto;
    right: 1rem;
}

.close-modal:hover {
    color: var(--danger);
}

#preview-banner:hover .edit-overlay,
#avatar-container:hover .edit-overlay {
    opacity: 1 !important;
}

/* Premium Form Controls - Inline */
.form-list {
    display: flex;
    flex-direction: column;
}

.form-control-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.form-control-inline:last-child {
    border-bottom: none;
}

.form-control-inline label {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 40%;
}

.form-control-inline label i {
    color: var(--accent-color);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.form-control-inline .input-wrapper {
    width: 60%;
    display: flex;
    justify-content: flex-end;
}

.form-control-inline input[type="text"],
.form-control-inline select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
    width: 100%;
    max-width: 350px;
}

.form-control-inline input[type="text"]:focus,
.form-control-inline select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(103, 129, 163, 0.15);
    background: rgba(0, 0, 0, 0.5);
}

.form-control-inline input[type="color"] {
    width: 60px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: transparent;
}

/* iOS Style Toggle Switch */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    user-select: none;
    padding: 0.5rem 0;
}

.toggle-switch input {
    display: none;
}

.toggle-switch .slider {
    position: relative;
    width: 54px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 34px;
    transition: .4s;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: .3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.toggle-switch input:checked + .slider {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.toggle-switch input:checked + .slider:before {
    transform: translateX(24px);
}

.toggle-label {
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 500;
}

.premium-card {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.premium-card-title {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Tags Input Container */
.tags-input-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
    max-width: 350px;
    min-height: 45px;
    transition: all 0.3s ease;
    cursor: text;
    align-items: center;
}

.tags-input-container:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(103, 129, 163, 0.15);
    background: rgba(0, 0, 0, 0.5);
}

.tags-input-container input {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: #fff;
    padding: 0 !important;
    margin: 0 !important;
    flex-grow: 1;
    min-width: 120px;
    font-size: 0.95rem;
}

.tag-badge {
    background: rgba(103, 129, 163, 0.15);
    color: var(--accent-color);
    border: 1px solid rgba(103, 129, 163, 0.3);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

.tag-badge i {
    cursor: pointer;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    transition: 0.2s;
}

.tag-badge i:hover {
    color: #ff4757;
}

/* Custom Select for Servers */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    user-select: none;
    font-family: inherit;
    direction: ltr; /* Keeping image style left-to-right */
    text-align: left;
}

.custom-select-trigger {
    background: transparent;
    border: 1px solid #ff4757; /* Match the red border in the image */
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.3s;
}

.trigger-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.05);
}

.custom-options {
    position: absolute;
    display: none;
    top: 100%;
    left: 0;
    right: 0;
    background: #151515; /* Dark background matching image */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 100;
    max-height: 350px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.custom-select-wrapper.open .custom-options {
    display: block;
}

.custom-select-wrapper.open .custom-select-trigger {
    border-radius: 8px 8px 0 0;
}

.custom-option {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.custom-option img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    background: #333;
}

.custom-option-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.custom-option-name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
}

.custom-option-badges {
    display: flex;
    gap: 0.5rem;
}

.badge-owner {
    background: rgba(0, 102, 255, 0.2);
    color: #3b82f6;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

.badge-admin {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Premium Info Rows for Preview Card */
.info-group {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
    direction: rtl;
}

.info-row {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 20px rgba(255,255,255,0.01);
}

.info-row:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.info-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 500;
}

.info-value {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: bold;
}

.owner-value img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.link-box {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    gap: 1rem;
    border: 1px solid rgba(255,255,255,0.05);
    direction: ltr;
}

.link-text {
    font-family: 'Consolas', monospace;
    color: #6781a3;
    font-size: 0.95rem;
    user-select: all;
    letter-spacing: 0.5px;
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    color: #2ecc71;
    transform: scale(1.15);
}

/* VIP Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
}

.vip-modal {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(103, 129, 163, 0.3);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 20px rgba(103, 129, 163, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.hidden .vip-modal {
    transform: scale(0.8);
}

.vip-modal h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
}

.vip-modal p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-actions button {
    flex: 1;
}

/* Premium Subscription Card Styles */
.premium-sub-card {
    background: linear-gradient(145deg, rgba(20, 24, 33, 0.9), rgba(15, 18, 25, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    padding: 1.8rem;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
}

.premium-sub-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(103, 129, 163, 0.25);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(103, 129, 163, 0.1), inset 0 1px 0 rgba(255,255,255,0.1);
}

.card-glow-container {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    overflow: hidden;
    border-radius: 24px;
    z-index: 0;
    pointer-events: none;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top, rgba(103,129,163,0.08) 0%, transparent 60%);
    opacity: 0.5;
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    transform: scale(0.9);
}

.premium-sub-card:hover .card-glow {
    opacity: 1;
    transform: scale(1);
}

.card-header-premium {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    z-index: 1;
}

.bot-icon-container {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(103, 129, 163, 0.15), rgba(103, 129, 163, 0.02));
    border: 1px solid rgba(103, 129, 163, 0.2);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(103,129,163,0.1), inset 0 0 15px rgba(103,129,163,0.05);
    transition: transform 0.3s ease;
}

.premium-sub-card:hover .bot-icon-container {
    transform: scale(1.05) rotate(-5deg);
}

.bot-info-container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.bot-info-container h3 {
    margin: 0;
    font-size: 1.4rem;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.status-badge {
    align-self: flex-start;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.status-badge.active { background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.1)); color: #2ecc71; border: 1px solid rgba(46, 204, 113, 0.4); }
.status-badge.expired { background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(192, 57, 43, 0.1)); color: #ff4757; border: 1px solid rgba(231, 76, 60, 0.4); }
.status-badge.frozen { background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.1)); color: #6781a3; border: 1px solid rgba(103, 129, 163, 0.4); }

.card-stats-grid {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 1.2rem;
    z-index: 1;
    box-shadow: inset 0 2px 15px rgba(0,0,0,0.3);
}

.stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    position: relative;
}

.stat-box:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background: rgba(255, 255, 255, 0.05);
}

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

.stat-value {
    font-size: 1.1rem;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.time-val { color: #6781a3; text-shadow: 0 0 10px rgba(103, 129, 163, 0.2); }
.code-val { color: #6781a3; font-family: 'Consolas', monospace; letter-spacing: 1px; background: rgba(103,129,163,0.1); padding: 0.1rem 0.6rem; border-radius: 6px; }
.bots-val { color: #e056fd; text-shadow: 0 0 10px rgba(224, 86, 253, 0.2); }

.card-actions-premium {
    margin-top: auto;
    z-index: 1;
}

.manage-btn-premium, .renew-btn-premium {
    width: 100%;
    padding: 1.2rem;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #6781a3, #4a6080);
    box-shadow: 0 8px 20px rgba(103, 129, 163, 0.25);
    border: none;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.manage-btn-premium:hover, .renew-btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(103, 129, 163, 0.4);
}

.dropdown-premium {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    width: 100%;
    background: rgba(20, 20, 25, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
    border-radius: 16px;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    z-index: 100;
}

.dropdown-item-premium {
    background: transparent;
    border: none;
    color: #fff;
    padding: 0.8rem 1rem;
    text-align: right;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.dropdown-item-premium:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(-5px);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin: 0.3rem 0;
}

.danger-item:hover {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

/* Music Dashboard Styles */
.sidebar-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    text-align: right;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}
.sidebar-btn:hover {
    background: rgba(255,255,255,0.05);
    color: #fff;
}
.sidebar-btn.active {
    background: rgba(103, 129, 163, 0.1);
    color: #6781a3;
    border-right: 4px solid #6781a3;
}
.music-tab-content {
    animation: fadeIn 0.3s ease-out;
}

.custom-img-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-img-card:hover {
    background: rgba(255,255,255,0.05);
    border-color: #3498db;
    transform: translateY(-2px);
}

/* System Dashboard Commands CSS */
.sys-cat-btn { background: transparent; border: 1px solid transparent; color: var(--text-muted); padding: 1rem; border-radius: 12px; cursor: pointer; text-align: right; font-weight: bold; font-size: 1.1rem; transition: all 0.3s ease; display: flex; justify-content: space-between; align-items: center; }
.sys-cat-btn:hover { background: rgba(255,255,255,0.05); color: #fff; }
.sys-cat-btn.active { background: rgba(103, 129, 163, 0.1); border-color: rgba(103, 129, 163, 0.3); color: #6781a3; border-right: 4px solid #6781a3; }
.sys-cmd-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; overflow: hidden; transition: all 0.3s ease; margin-bottom: 1rem; }
.sys-cmd-card:hover { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); }
.sys-cmd-header { padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.sys-cmd-body { padding: 0 1.5rem 1.5rem 1.5rem; display: none; border-top: 1px solid rgba(255,255,255,0.05); margin-top: 1rem; padding-top: 1rem; }
.sys-cmd-card.expanded .sys-cmd-body { display: block; }
.sys-cmd-card.expanded { border-color: rgba(103, 129, 163, 0.5); background: rgba(103, 129, 163, 0.05); }
.role-selector { display: flex; flex-direction: column; gap: 0.5rem; }
.role-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.1); padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.9rem; }
.role-badge i.fa-times { cursor: pointer; color: #ff4757; }

/* Tribute.js Custom Dark Theme */
.tribute-container ul { background: #1e1e24 !important; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; box-shadow: 0 5px 20px rgba(0,0,0,0.5); padding: 5px; }
.tribute-container li { color: #fff !important; padding: 8px 12px !important; border-radius: 5px; cursor: pointer; transition: 0.2s; font-family: 'Tajawal', sans-serif; }
.tribute-container li.highlight { background: rgba(103,129,163,0.2) !important; color: #6781a3 !important; }
.tribute-container li:hover { background: rgba(255,255,255,0.1) !important; }

.tribute-container { z-index: 999999 !important; position: absolute; }


@keyframes spin { 100% { transform: rotate(360deg); } }
