/* BotVault Premium Theme - "Arcanum" v2.0 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /* Palette Dark Premium */
    --bg-dark: #000000;
    --bg-deep: #0a0a0f;
    --bg-card: #0f0f14;
    --bg-elevated: #141419;
    
    /* Gold Premium Accent */
    --accent-gold: #d4af37;
    --accent-gold-light: #f4d03f;
    --accent-gold-dark: #b8941f;
    --accent-gold-glow: rgba(212, 175, 55, 0.3);
    
    /* Secondary Colors */
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-disabled: #52525b;
    
    /* Glass & Borders */
    --glass-bg: rgba(15, 15, 20, 0.7);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(255, 255, 255, 0.12);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    
    /* Shadows & Glows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.7);
    --glow-gold: 0 0 24px var(--accent-gold-glow);
    --glow-gold-strong: 0 0 32px var(--accent-gold-glow), 0 0 48px var(--accent-gold-glow);
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.2);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(ellipse at 20% 10%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, var(--bg-deep) 0%, var(--bg-dark) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.015em;
    background: linear-gradient(135deg, #ffffff 0%, #d4d4d8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

a:hover {
    color: var(--accent-gold);
}

/* Layout */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px 48px;
}

/* Header */
.launcher-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.launcher-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-gold) 0%, transparent 100%);
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.75rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.logo i {
    color: var(--accent-gold);
    filter: drop-shadow(0 0 12px var(--accent-gold-glow));
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 12px var(--accent-gold-glow)); }
    50% { filter: drop-shadow(0 0 20px var(--accent-gold-glow)); }
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: all var(--transition-base);
    padding: 8px 16px;
    border-radius: 8px;
}

.nav-links a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold-light);
}

/* Grid System */
.server-grid,
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

/* Glass Panels & Cards */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    border-radius: 20px;
    padding: 32px;
}

/* Server Card Premium */
.server-card {
    background: var(--glass-bg);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
    border-radius: 20px;
    transition: all var(--transition-slow);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.server-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.server-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--glow-gold-strong), var(--shadow-xl);
    border-color: var(--accent-gold-glow);
}

.card-media {
    height: 180px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.card-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

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

.server-logo {
    max-height: 120px;
    max-width: 85%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
    transition: transform var(--transition-slow);
    z-index: 1;
}

.server-card:hover .server-logo {
    transform: scale(1.08);
}

.content {
    padding: 24px;
    background: rgba(0, 0, 0, 0.3);
    flex-grow: 1;
}

.server-badges {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.badge {
    padding: 6px 12px;
    border-radius: 24px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    backdrop-filter: blur(8px);
    transition: all var(--transition-base);
}

.badge-owner {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold-light);
    border: 1px solid rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.2);
}

.badge-public {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-private {
    background: rgba(161, 161, 170, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(161, 161, 170, 0.25);
}

/* Account Cards */
.account-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 16px;
    transition: all var(--transition-base);
    position: relative;
}

.account-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-gold);
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: 16px 0 0 16px;
}

.account-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--glass-border-hover);
}

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

.account-card.expanded {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--accent-gold);
    box-shadow: var(--glow-gold), var(--shadow-lg);
}

.account-card.expanded::before {
    opacity: 1;
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.account-name {
    font-weight: 600;
    font-size: 1.15rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.account-name i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.account-actions {
    display: flex;
    gap: 8px;
}

/* Player List */
.player-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 8px;
    transition: all var(--transition-base);
}

.player-item:hover {
    background: rgba(0, 0, 0, 0.35);
    transform: translateX(4px);
}

/* Forms & Inputs */
label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

input[type="text"],
input[type="password"],
input[type="file"],
textarea,
select {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 18px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-base);
    box-sizing: border-box;
    margin-bottom: 24px;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.12), var(--glow-gold);
    background: rgba(0, 0, 0, 0.6);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

/* Buttons Premium */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: #000000;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    font-weight: 800;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-gold), 0 8px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--accent-gold-light) 0%, var(--accent-gold) 100%);
}

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

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border-hover);
    transform: translateY(-1px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
}

.btn-icon {
    padding: 12px;
    aspect-ratio: 1;
    min-width: 44px;
}

/* Modals Premium */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 100%;
    max-width: 520px;
    padding: 48px;
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.95) 0%, rgba(10, 10, 15, 0.98) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--glass-highlight);
    border-radius: 24px;
    box-shadow: var(--shadow-xl), 0 0 80px rgba(0, 0, 0, 0.8);
    transform: scale(0.9) translateY(20px);
    transition: transform var(--transition-bounce);
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
    border-radius: 24px 24px 0 0;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1.75rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.98) 0%, rgba(10, 10, 15, 0.98) 100%);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 16px 24px;
    min-width: 320px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    pointer-events: all;
    transform: translateX(400px);
    animation: slideIn var(--transition-slow) forwards, slideOut var(--transition-slow) 2.7s forwards;
}

@keyframes slideIn {
    to { transform: translateX(0); }
}

@keyframes slideOut {
    to { transform: translateX(400px); opacity: 0; }
}

.toast-success {
    border-left: 3px solid #10b981;
}

.toast-error {
    border-left: 3px solid #ef4444;
}

.toast-info {
    border-left: 3px solid var(--accent-gold);
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: #10b981;
}

.toast-error .toast-icon {
    color: #ef4444;
}

.toast-info .toast-icon {
    color: var(--accent-gold);
}

.toast-message {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Utilities */
.text-muted {
    color: var(--text-secondary);
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Scrollbar Premium */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #27272a 0%, #18181b 100%);
    border-radius: 8px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3f3f46 0%, #27272a 100%);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.animate-slide-up {
    animation: slideUp 0.5s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    .app-container {
        padding: 0 16px 32px;
    }
    
    .launcher-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .server-grid,
    .user-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal-content {
        padding: 32px 24px;
        margin: 20px;
    }
    
    .toast-container {
        right: 12px;
        left: 12px;
    }
    
    .toast {
        min-width: auto;
    }
}
