:root {
    --bg-base: #09090b;
    --bg-surface: #18181b;
    --bg-surface-hover: #27272a;
    --border: #27272a;
    --border-hover: #3f3f46;
    --text-main: #fafafa;
    --text-muted: #a1a1aa;
    --primary: #5865F2;
    --primary-hover: #4752C4;
    --success: #10b981;
    --success-hover: #059669;
    --danger: #ef4444;
    --radius-lg: 12px;
    --radius-md: 8px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

/* Typography */
h1, h2, h3, h4 {
    color: var(--text-main);
    font-weight: 600;
    letter-spacing: -0.025em;
}

/* Utilities */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

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

.btn-success {
    background-color: var(--success);
    color: white;
}
.btn-success:hover {
    background-color: var(--success-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border-color: var(--border);
}
.btn-secondary:hover {
    background-color: var(--bg-surface-hover);
    border-color: var(--border-hover);
}

.input-field {
    width: 100%;
    padding: 10px 12px;
    background-color: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
}

.label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* Dashboard Layout */
.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 32px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand span {
    background: linear-gradient(to right, #5865F2, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    background-color: var(--bg-base);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.user-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.user-profile-details h4 {
    font-size: 0.875rem;
    margin: 0;
}
.user-profile-details span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.nav-item:hover {
    background-color: var(--bg-surface-hover);
    color: var(--text-main);
}

.nav-item.active {
    background-color: rgba(88, 101, 242, 0.1);
    color: var(--primary);
}

.nav-item.logout {
    margin-top: auto;
    color: var(--danger);
}
.nav-item.logout:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.main-content {
    flex: 1;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.header-title {
    margin-bottom: 40px;
}

.header-title h1 {
    font-size: 1.875rem;
    margin-bottom: 8px;
}
.header-title p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Server Cards */
.server-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.server-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.server-card:hover {
    border-color: var(--border-hover);
}

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

.server-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.server-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-muted);
    object-fit: cover;
}

.server-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-main);
}

.server-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 9999px;
}

.status-active {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.status-inactive {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

/* Settings Layout */
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px;
}

@media (max-width: 900px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

.settings-panel {
    background-color: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.settings-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.settings-panel-header h3 {
    font-size: 1rem;
    margin: 0;
}

.settings-panel-header svg {
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 12px;
}

.invite-overlay {
    padding: 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(9, 9, 11, 0.5);
}

.invite-overlay p {
    color: var(--text-muted);
}

/* -------------------------------------
   LANDING PAGE (INDEX) STYLES
------------------------------------- */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 60px;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(88, 101, 242, 0.15) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-badge {
    background: rgba(88, 101, 242, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(88, 101, 242, 0.2);
}

.hero-section h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    line-height: 1.1;
    max-width: 800px;
}

.hero-section h1 span {
    background: linear-gradient(135deg, #5865F2, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.125rem;
    border-radius: 12px;
}

/* Landing Features */
.features-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.features-section h2 {
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    background: linear-gradient(180deg, rgba(24, 24, 27, 0.8) 0%, rgba(24, 24, 27, 0.4) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(88, 101, 242, 0.3);
    box-shadow: 0 10px 40px rgba(88, 101, 242, 0.1);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background: rgba(88, 101, 242, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Footer */
.landing-footer {
    border-top: 1px solid var(--border);
    padding: 40px;
    text-align: center;
    color: var(--text-muted);
}

/* Tabs UI */
.tabs-container {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background-color: var(--bg-surface);
}
.tab-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}
.tab-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-main);
}
.tab-btn.active {
    background: var(--primary);
    color: white;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
