/* ===== CSS Variables & Design Tokens ===== */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --accent: #f43f5e;
    --accent-light: #fb7185;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;

    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-nav: rgba(255, 255, 255, 0.8);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-inverse: #ffffff;

    --border-light: #e2e8f0;
    --border-medium: #cbd5e1;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    --nav-height: 72px;
    --container-max: 1280px;
}

/* ===== Dark Mode ===== */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #1e293b;
    --bg-card: #1e293b;
    --bg-nav: rgba(15, 23, 42, 0.85);

    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;

    --border-light: #334155;
    --border-medium: #475569;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background var(--transition-base), color var(--transition-base);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Login Page ===== */
.login-page {
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.18), transparent 35%),
        radial-gradient(circle at top right, rgba(244, 63, 94, 0.12), transparent 28%),
        linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
    position: relative;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}

.login-panel {
    width: 100%;
    max-width: 1160px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.login-brand {
    padding: 20px 8px;
}

.login-logo {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.66);
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    color: #111827;
    font-size: 1.8rem;
    margin-bottom: 24px;
}

.login-eyebrow {
    color: #6b7280;
    font-size: 0.88rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.login-brand h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
    color: #0f172a;
}

.login-subtitle {
    max-width: 560px;
    color: #475569;
    font-size: 1.05rem;
}

.login-card {
    position: relative;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border-radius: 32px;
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.16);
    padding: 34px;
}

.login-card-top h2 {
    font-size: 2rem;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
    color: #0f172a;
}

.login-card-top p {
    color: #64748b;
    margin-bottom: 24px;
}

.login-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 18px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-field span {
    color: #334155;
    font-size: 0.92rem;
    font-weight: 600;
}

.login-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 20px;
    min-height: 58px;
    padding: 0 18px;
    transition: all var(--transition-base);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.65);
}

.login-input-wrap:focus-within {
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 0 0 6px rgba(99, 102, 241, 0.08);
}

.login-input-wrap i {
    color: #94a3b8;
    margin-right: 12px;
    width: 16px;
    text-align: center;
}

.login-input-wrap input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    color: #0f172a;
    font-family: inherit;
}

.password-toggle {
    border: none;
    background: none;
    color: #64748b;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.password-toggle:hover {
    background: rgba(15, 23, 42, 0.06);
}

.login-submit {
    margin-top: 8px;
    border: none;
    border-radius: 999px;
    min-height: 56px;
    background: linear-gradient(135deg, #111827 0%, #1e293b 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    transition: all var(--transition-base);
}

.login-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.28);
}

.login-submit:disabled {
    opacity: 0.72;
    cursor: wait;
}

.login-message {
    min-height: 24px;
    margin-top: 14px;
    font-size: 0.92rem;
    font-weight: 500;
    color: #64748b;
}

.login-message.show.success { color: #059669; }
.login-message.show.error { color: #dc2626; }

.login-footer-note {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #64748b;
    font-size: 0.88rem;
}

.login-footer-note span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.login-bg-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(30px);
    opacity: 0.55;
    z-index: 1;
}

.orb-1 {
    width: 280px;
    height: 280px;
    background: rgba(99, 102, 241, 0.18);
    top: 8%;
    left: -60px;
}

.orb-2 {
    width: 360px;
    height: 360px;
    background: rgba(14, 165, 233, 0.14);
    right: -100px;
    top: 18%;
}

.orb-3 {
    width: 240px;
    height: 240px;
    background: rgba(244, 63, 94, 0.14);
    bottom: 6%;
    left: 20%;
}

/* ===== Navigation ===== */
.navbar {
    background: var(--bg-nav);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: background var(--transition-base), border-color var(--transition-base),
                box-shadow var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.logo i {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

.logo-highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 4px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

.nav-links a.active {
    background: var(--primary);
    color: var(--text-inverse);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== Buttons ===== */
.btn {
    padding: 9px 18px;
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

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

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--border-light);
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    color: rgba(255, 255, 255, 0.9);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    transform: translateY(-1px);
}

/* ===== Theme Toggle ===== */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: rgba(99, 102, 241, 0.25);
    background: rgba(99, 102, 241, 0.08);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 0.85rem;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.status-dot.active {
    animation: pulse 2s infinite;
}

/* ===== Hero ===== */
.hero {
    padding: calc(var(--nav-height) + 72px) 0 84px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(99, 102, 241, 0.08), transparent 35%),
        radial-gradient(circle at 80% 30%, rgba(244, 63, 94, 0.06), transparent 30%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.hero-highlight {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    max-width: 720px;
    font-size: 1.08rem;
    color: var(--text-secondary);
    margin-bottom: 34px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 22px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(244, 63, 94, 0.12));
    color: var(--primary);
    font-size: 1.2rem;
}

.stat-content h3 {
    font-size: 1.7rem;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-content p {
    color: var(--text-secondary);
    font-size: 0.92rem;
}

/* ===== Sections ===== */
.projects-section,
.server-section {
    padding: 36px 0 84px;
}

.section-header {
    text-align: center;
    margin-bottom: 28px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.section-header p {
    color: var(--text-secondary);
}

/* ===== Filter Bar ===== */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    border: 1px solid var(--border-light);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-base);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.16);
}

.search-box {
    min-width: min(100%, 320px);
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    padding: 0 16px;
    min-height: 48px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.search-box i {
    color: var(--text-tertiary);
}

.search-box input {
    border: none;
    outline: none;
    flex: 1;
    background: transparent;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* ===== Projects Grid ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(99, 102, 241, 0.18);
}

.project-header {
    padding: 20px;
    color: white;
    position: relative;
    min-height: 132px;
}

.project-icon {
    font-size: 2rem;
    margin-bottom: 14px;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    max-width: 85%;
}

.project-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 8px 12px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.project-content {
    padding: 20px;
}

.project-description {
    color: var(--text-secondary);
    min-height: 52px;
    margin-bottom: 18px;
}

.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.status-online {
    color: var(--success);
}

.status-offline {
    color: var(--error);
}

.project-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===== Loading ===== */
.loading-spinner {
    grid-column: 1 / -1;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-secondary);
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary);
}

/* ===== Server Section ===== */
.server-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}

.server-card,
.server-details {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.server-card {
    padding: 22px;
}

.server-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.server-card-header i {
    color: var(--primary);
}

.server-card-header h3 {
    font-size: 1rem;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    border-radius: 999px;
    transition: width var(--transition-slow);
    background: linear-gradient(90deg, #22c55e, #10b981);
}

.progress-fill.level-mid {
    background: linear-gradient(90deg, #f59e0b, #f97316);
}

.progress-fill.level-high {
    background: linear-gradient(90deg, #ef4444, #f43f5e);
}

.progress-info,
.network-status {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.network-status {
    flex-direction: column;
}

.status-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-secondary);
}

.status-value {
    font-weight: 700;
    color: var(--text-primary);
}

.server-details {
    padding: 24px;
}

.server-details h3 {
    margin-bottom: 18px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
}

.detail-item {
    padding: 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
    transition: all var(--transition-base);
}

.detail-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.detail-item.detail-highlight {
    border-left: 3px solid var(--success);
    background: linear-gradient(135deg, var(--bg-tertiary), rgba(16, 185, 129, 0.1));
}

.detail-item.detail-highlight .detail-value {
    color: var(--success);
    font-weight: 600;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.detail-label {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    color: white;
    padding: 72px 0 40px;
    margin-top: 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-description {
    max-width: 720px;
    color: rgba(255,255,255,0.72);
}

.footer-info,
.footer-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.info-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.82);
}

.footer-copyright {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-content {
    width: min(100%, 620px);
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.modal-header,
.modal-body {
    padding: 22px 24px;
}

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

.close-btn {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-body textarea {
    width: 100%;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    resize: vertical;
    min-height: 140px;
    font: inherit;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.modal-actions {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ===== Back To Top ===== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-lg);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1200;
}

/* ===== Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Notification (injected via JS, but base styles here) ===== */
.notification {
    position: fixed;
    top: 84px;
    right: 20px;
    color: white;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2001;
    min-width: 300px;
    max-width: 420px;
    animation: slideInRight 0.3s ease;
    backdrop-filter: blur(10px);
}

.notification-success { background: var(--success); }
.notification-error { background: var(--error); }
.notification-info { background: var(--info); }

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
    flex-shrink: 0;
    margin-left: 8px;
}

.notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== No Results ===== */
.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-tertiary);
}

.no-projects i {
    font-size: 3.5rem;
    margin-bottom: 16px;
    color: var(--border-medium);
}

.no-projects h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===== Mobile Nav Toggle (hamburger) ===== */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.nav-toggle:hover {
    background: var(--bg-tertiary);
}

/* ===== Animations ===== */
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.82; }
}

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

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

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ===== Selection ===== */
::selection {
    background: rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .login-panel {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .nav-container {
        gap: 12px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 10px 0;
    }

    .navbar {
        height: auto;
        min-height: var(--nav-height);
        padding: 8px 0;
    }

    .nav-links,
    .nav-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .hero {
        padding-top: 150px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .hero-stats,
    .details-grid,
    .projects-grid,
    .server-info-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar,
    .footer-actions,
    .footer-info,
    .modal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .login-card {
        padding: 24px;
        border-radius: 24px;
    }

    .login-brand h1 {
        font-size: 2.5rem;
    }
}
