﻿:root {
    /* Backgrounds â€” deep noir layers */
    --bg-primary: #0B0D13;
    --bg-secondary: #12141D;
    --bg-tertiary: #1A1D2B;
    --bg-elevated: #222639;
    --bg-hover: #2A2F45;
    --bg-input: #151825;

    /* Accent â€” purple/violet spectrum */
    --accent-primary: #9B6DFF;
    --accent-secondary: #C084FC;
    --accent-muted: rgba(155, 109, 255, 0.15);
    --accent-glow: rgba(155, 109, 255, 0.35);
    --accent-gradient: linear-gradient(135deg, #9B6DFF 0%, #C084FC 50%, #E879F9 100%);
    --accent-gradient-subtle: linear-gradient(135deg, rgba(155,109,255,0.2) 0%, rgba(192,132,252,0.08) 100%);

    /* Warm CTA */
    --cta-primary: #F59E0B;
    --cta-gradient: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);

    /* Semantic */
    --success: #34D399;
    --success-muted: rgba(52, 211, 153, 0.15);
    --danger: #F87171;
    --danger-muted: rgba(248, 113, 113, 0.15);
    --warning: #FBBF24;
    --warning-muted: rgba(251, 191, 36, 0.15);
    --info: #60A5FA;

    /* Typography */
    --text-primary: #F1F1F6;
    --text-secondary: #A0A3BD;
    --text-muted: #6B6F8D;
    --text-dim: #4A4E6A;

    /* Borders */
    --border-subtle: rgba(155, 109, 255, 0.08);
    --border-default: rgba(155, 109, 255, 0.12);
    --border-hover: rgba(155, 109, 255, 0.25);
    --border-active: rgba(155, 109, 255, 0.5);

    /* Spacing & Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(155, 109, 255, 0.15);
    --shadow-glow-strong: 0 0 50px rgba(155, 109, 255, 0.25);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.15s var(--ease-out);
    --transition-normal: 0.3s var(--ease-out);
    --transition-slow: 0.5s var(--ease-out);

    /* Glass */
    --glass-bg: rgba(18, 20, 29, 0.75);
    --glass-border: rgba(155, 109, 255, 0.1);
    --glass-blur: blur(20px);
}

/* =====================================================
   2. RESET & BASE STYLES
   ===================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: 0.01em;
}

/* Custom scrollbar â€” thin purple */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(155, 109, 255, 0.25);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(155, 109, 255, 0.45);
}

::selection {
    background: rgba(155, 109, 255, 0.3);
    color: #fff;
}

/* =====================================================
   3. APP CONTAINER & LAYOUT
   ===================================================== */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* =====================================================
   4. FLOATING AMBIENT BACKGROUND ELEMENTS
   ===================================================== */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.07;
}

.floating-element:nth-child(1) {
    width: 500px;
    height: 500px;
    background: #9B6DFF;
    top: -150px;
    left: -150px;
    animation: ambientFloat 25s infinite ease-in-out;
}

.floating-element:nth-child(2) {
    width: 600px;
    height: 600px;
    background: #E879F9;
    bottom: -200px;
    right: -150px;
    animation: ambientFloat 30s infinite ease-in-out reverse;
}

.floating-element:nth-child(3) {
    width: 350px;
    height: 350px;
    background: #60A5FA;
    top: 40%;
    left: 25%;
    animation: ambientFloat 20s infinite ease-in-out 5s;
}

@keyframes ambientFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, 40px) scale(1.05); }
    50% { transform: translate(-30px, 80px) scale(0.95); }
    75% { transform: translate(-60px, 20px) scale(1.02); }
}

/* =====================================================
   5. AUTH CONTAINER â€” Login Screen
   ===================================================== */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(155, 109, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(232, 121, 249, 0.06) 0%, transparent 50%),
        var(--bg-primary);
}

/* Subtle grid pattern overlay */
.auth-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(155, 109, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 109, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* =====================================================
   6. AUTH CARD â€” Glass Morphism
   ===================================================== */
.auth-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 460px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.auth-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-strong);
}

/* =====================================================
   7. BRAND HEADER â€” Gradient with Pattern
   ===================================================== */
.brand {
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #1E1148 0%, #2D1B69 50%, #1A1040 100%);
    position: relative;
    overflow: hidden;
}

/* Noise texture overlay on brand */
.brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 50% 0%, rgba(155, 109, 255, 0.2) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Animated grid lines */
.brand::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(155, 109, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(155, 109, 255, 0.06) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridShift 20s linear infinite;
    pointer-events: none;
}

@keyframes gridShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.logo-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(155, 109, 255, 0.3), rgba(192, 132, 252, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #C084FC;
    box-shadow: 0 8px 32px rgba(155, 109, 255, 0.3), inset 0 0 20px rgba(155, 109, 255, 0.1);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(155, 109, 255, 0.2);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.logo-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(155, 109, 255, 0.4), inset 0 0 25px rgba(155, 109, 255, 0.15);
}

.brand h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, #C084FC 60%, #9B6DFF 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.brand p {
    color: rgba(192, 132, 252, 0.7);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* =====================================================
   8. AUTH FORM â€” Inputs & Buttons
   ===================================================== */
.auth-form {
    padding: 2rem 2rem 2.5rem;
    position: relative;
    z-index: 1;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    z-index: 1;
}

.input-with-icon input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.75rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all var(--transition-normal);
    outline: none;
}

.input-with-icon input::placeholder {
    color: var(--text-dim);
}

.input-with-icon input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-muted), var(--shadow-glow);
    background-color: rgba(21, 24, 37, 0.9);
}

.input-with-icon input:focus + .visibility-toggle,
.input-with-icon input:focus ~ .visibility-toggle {
    color: var(--accent-secondary);
}

.visibility-toggle {
    position: absolute;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    transition: color var(--transition-fast);
    z-index: 1;
    padding: 0.001rem;
}

.visibility-toggle:hover {
    color: var(--accent-primary);
}

/* Auth button â€” Premium gradient CTA */
.auth-button {
    width: 100%;
    padding: 0.95rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: all var(--transition-normal);
    margin-top: 0.75rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 20px rgba(155, 109, 255, 0.3);
}

.auth-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.6s ease;
}

.auth-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.auth-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(155, 109, 255, 0.45);
    filter: brightness(1.1);
}

.auth-button:hover::before {
    left: 100%;
}

.auth-button:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.auth-footer {
    margin-top: 1.75rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

.auth-footer p {
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-footer i {
    color: var(--accent-primary);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* =====================================================
   9. DASHBOARD LAYOUT
   ===================================================== */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-primary);
    position: relative;
}

/* =====================================================
   10. SIDEBAR â€” Dark Panel
   ===================================================== */
.sidebar {
    width: 280px;
    background-color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-subtle);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

/* Gradient accent line on right edge */
.sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 1px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(155, 109, 255, 0.3) 30%,
        rgba(192, 132, 252, 0.2) 70%,
        transparent 100%
    );
}

/* =====================================================
   11. USER PANEL
   ===================================================== */
.user-panel {
    padding: 1.25rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    transition: background var(--transition-fast);
}

.user-panel:hover {
    background: rgba(155, 109, 255, 0.04);
}

.user-panel::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(155, 109, 255, 0.15), transparent);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-elevated));
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border-default);
    transition: border-color var(--transition-fast);
}

.user-panel:hover .user-avatar {
    border-color: var(--accent-primary);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
    z-index: 2;
}

.status-indicator.online {
    background-color: var(--success);
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.user-info {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.username {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    color: var(--text-primary);
}

.user-tag {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.logout-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.logout-btn:hover {
    color: var(--danger);
    background-color: var(--danger-muted);
}

/* =====================================================
   12. SERVER LIST
   ===================================================== */
.server-list {
    flex: 1;
    padding: 1.25rem 0.75rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.list-header {
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

.list-header h3 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}

.search-box input {
    width: 100%;
    padding: 0.55rem 0.85rem 0.55rem 2.25rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    transition: all var(--transition-normal);
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-dim);
}

.search-box input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px var(--accent-muted);
    background-color: var(--bg-secondary);
}

.search-box input:focus + i,
.search-box input:focus ~ i {
    color: var(--accent-primary);
}

.servers-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.25rem;
    margin-top: 0.5rem;
}

.server-item {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 2px;
    position: relative;
}

.server-item:hover {
    background-color: rgba(155, 109, 255, 0.06);
}

.server-item.active {
    background-color: var(--accent-muted);
}

/* Active indicator bar */
.server-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    bottom: 25%;
    width: 3px;
    background: var(--accent-gradient);
    border-radius: 0 3px 3px 0;
}

.server-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border-subtle);
    transition: border-color var(--transition-fast);
}

.server-item:hover .server-icon {
    border-color: var(--border-hover);
}

.server-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-name {
    font-size: 0.88rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.server-item:hover .server-name {
    color: var(--text-primary);
}

.server-item.active .server-name {
    color: var(--accent-secondary);
}

/* =====================================================
   13. MAIN CONTENT AREA
   ===================================================== */
.main-content {
    flex: 1;
    background-color: var(--bg-primary);
    overflow-y: auto;
    position: relative;
}

.content-header {
    padding: 2rem 2.5rem 0;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.content-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-secondary) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.breadcrumbs .active {
    color: var(--accent-secondary);
    font-weight: 500;
}

.breadcrumbs i {
    font-size: 0.6rem;
    opacity: 0.5;
}

/* =====================================================
   14. CLONER CONTAINER & CARD
   ===================================================== */
.cloner-container {
    padding: 0 2.5rem 2.5rem;
    position: relative;
    z-index: 2;
}

.cloner-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
    position: relative;
}

.cloner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    z-index: 1;
}

/* =====================================================
   15. STEP INDICATOR
   ===================================================== */
.step-indicator {
    display: flex;
    padding: 2rem 2.5rem 0;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    left: 4rem;
    right: 4rem;
    top: 42px;
    height: 2px;
    background: var(--bg-elevated);
    z-index: 1;
}

.step {
    flex: 1;
    position: relative;
    padding-bottom: 2rem;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-default);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    position: relative;
    margin: 0 auto;
    transition: all var(--transition-normal);
    color: var(--text-muted);
}

.step.active .step-number {
    background: var(--accent-gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.step.completed .step-number {
    background: linear-gradient(135deg, var(--success) 0%, #2dd4bf 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(52, 211, 153, 0.3);
}

.step-label {
    position: absolute;
    top: 50px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    padding-top: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step.active .step-label {
    color: var(--accent-secondary);
}

.step.completed .step-label {
    color: var(--success);
}

/* =====================================================
   16. CLONER FORM
   ===================================================== */
.cloner-form {
    padding: 1.5rem 2.5rem 2.5rem;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: formFadeIn 0.4s var(--ease-out);
}

@keyframes formFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group label i {
    font-size: 0.85rem;
    color: var(--accent-primary);
}

.modern-select {
    width: 100%;
    padding: 0.85rem 1rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239B6DFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1rem;
    transition: all var(--transition-normal);
    outline: none;
    cursor: pointer;
}

.modern-select:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-muted);
}

.modern-select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

/* =====================================================
   17. CLONE OPTIONS CARDS
   ===================================================== */
.clone-options {
    margin: 1.5rem 0;
}

.clone-options h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.clone-options h3 i {
    color: var(--accent-primary);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.85rem;
}

.option-card {
    display: block;
    position: relative;
}

.option-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-content {
    padding: 1.25rem;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
    cursor: pointer;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.option-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(155,109,255,0.05), transparent);
    transition: left 0.5s ease;
}

.option-card:hover .option-content::before {
    left: 100%;
}

.option-card:hover .option-content {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm), 0 0 20px rgba(155,109,255,0.08);
}

.option-card input:checked ~ .option-content {
    border-color: var(--accent-primary);
    background: linear-gradient(135deg, rgba(155,109,255,0.08) 0%, rgba(192,132,252,0.04) 100%);
    box-shadow: 0 0 20px rgba(155,109,255,0.1);
}

.option-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.85rem;
    color: var(--accent-primary);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

.option-card input:checked ~ .option-content .option-icon {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.option-card h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 600;
}

.option-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* =====================================================
   18. CONFIRMATION SECTION
   ===================================================== */
.confirmation {
    text-align: center;
    padding: 1.5rem 0 2rem;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--accent-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 2rem;
    border: 1px solid var(--border-default);
    box-shadow: 0 0 40px rgba(155,109,255,0.15);
}

.confirmation h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.confirmation p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.confirmation-details {
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
    border: 1px solid var(--border-subtle);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-subtle);
    align-items: center;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.detail-item strong {
    font-weight: 600;
    text-align: right;
    color: var(--text-primary);
    font-size: 0.88rem;
}

/* =====================================================
   19. FORM ACTION BUTTONS
   ===================================================== */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.prev-step, .next-step {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.prev-step {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
}

.prev-step:hover {
    background-color: var(--bg-elevated);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.next-step {
    background: var(--accent-gradient);
    border: none;
    color: white;
    box-shadow: 0 4px 16px rgba(155,109,255,0.25);
}

.next-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(155,109,255,0.35);
    filter: brightness(1.1);
}

.primary-btn {
    padding: 0.85rem 1.75rem;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 20px rgba(155,109,255,0.3);
    position: relative;
    overflow: hidden;
    font-size: 0.95rem;
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.6s ease;
}

.primary-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(155,109,255,0.4);
    filter: brightness(1.1);
}

.primary-btn:hover::before {
    left: 100%;
}

.primary-btn:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

/* =====================================================
   20. ADVANCED OPTIONS
   ===================================================== */
.advanced-options {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.advanced-options h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
}

.advanced-options h4 i {
    color: var(--accent-primary);
}

.option-item {
    margin-bottom: 0.85rem;
}

.option-item:last-child {
    margin-bottom: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    padding: 0.35rem 0;
}

.checkbox-label:hover {
    color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-dim);
    border-radius: 4px;
    position: relative;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

.checkbox-label:hover .checkmark {
    border-color: var(--accent-primary);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(155,109,255,0.3);
}

.checkbox-label input[type="checkbox"]:checked ~ .checkmark::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

/* =====================================================
   21. STATUS CARD â€” Progress Tracking
   ===================================================== */
.status-card {
    margin-top: 2rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    animation: formFadeIn 0.5s var(--ease-out);
    border: 1px solid var(--border-subtle);
    position: relative;
}

.status-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.status-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-size: 1.15rem;
    border: 1px solid var(--border-default);
}

.status-header h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-container {
    margin-bottom: 1.5rem;
    position: relative;
}

.progress-bar {
    height: 6px;
    background-color: var(--bg-elevated);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 0.5s var(--ease-out);
    box-shadow: 0 0 12px rgba(155,109,255,0.3);
}

.progress-bar.advanced {
    background: var(--accent-gradient);
}

.progress-text {
    position: absolute;
    right: 0;
    top: -22px;
    font-size: 0.78rem;
    color: var(--accent-secondary);
    font-weight: 600;
}

.status-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.3rem 0;
}

.status-item i {
    font-size: 0.95rem;
    width: 18px;
    text-align: center;
}

.status-item i.success { color: var(--success); }
.status-item i.error { color: var(--danger); }
.status-item.pending { color: var(--text-dim); }
.status-item.warning { color: var(--warning); }
.status-item.info { color: var(--accent-primary); }
.status-item .fa-database { color: var(--accent-primary); }
.status-item .fa-users { color: var(--accent-secondary); }
.status-item .fa-message { color: var(--success); }
.status-item .fa-ban { color: var(--danger); }

/* =====================================================
   22. BACKUP DATA CARD
   ===================================================== */
.backup-data-card {
    margin-top: 2rem;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-subtle);
    animation: formFadeIn 0.5s var(--ease-out);
}

.backup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.backup-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.backup-header h3 i {
    color: var(--accent-primary);
}

.download-btn {
    padding: 0.5rem 1.1rem;
    background: linear-gradient(135deg, var(--success) 0%, #2dd4bf 100%);
    color: #0B0D13;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(52, 211, 153, 0.35);
    filter: brightness(1.1);
}

.backup-content {
    max-height: 300px;
    overflow-y: auto;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    font-size: 0.78rem;
    background-color: var(--bg-primary);
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    line-height: 1.7;
}

/* =====================================================
   23. NOTIFICATIONS â€” Glass Toast
   ===================================================== */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 340px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.notification {
    padding: 1rem 1.25rem;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    transform: translateX(120%);
    transition: transform 0.5s var(--ease-spring);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--accent-primary);
}

.notification.show {
    transform: translateX(0);
}

.notification.success { border-left-color: var(--success); }
.notification.error { border-left-color: var(--danger); }
.notification.warning { border-left-color: var(--warning); }

.notification-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
    color: var(--accent-primary);
}

.notification.success .notification-icon { color: var(--success); }
.notification.error .notification-icon { color: var(--danger); }
.notification.warning .notification-icon { color: var(--warning); }

.notification-content { flex: 1; }

.notification-title {
    font-weight: 600;
    margin-bottom: 0.2rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.notification-message {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.25rem;
    transition: color var(--transition-fast);
}

.notification-close:hover {
    color: var(--text-primary);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.05);
    width: 100%;
}

.notification-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: var(--accent-primary);
    animation: progressBar 3s linear forwards;
}

.notification.success .notification-progress::after { background: var(--success); }
.notification.error .notification-progress::after { background: var(--danger); }
.notification.warning .notification-progress::after { background: var(--warning); }

@keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

/* =====================================================
   24. UTILITY CLASSES
   ===================================================== */
.hidden {
    display: none !important;
}

.fade-in {
    animation: formFadeIn 0.5s var(--ease-out);
}

.shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* =====================================================
   25. RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 992px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
    }

    .sidebar::after {
        display: none;
    }

    .server-list {
        max-height: 200px;
    }

    .content-header {
        padding: 1.5rem 1.25rem 0;
    }

    .cloner-container {
        padding: 0 1.25rem 1.5rem;
    }

    .step-indicator {
        padding: 1.5rem 1.25rem 0;
    }

    .step-indicator::before {
        left: 2rem;
        right: 2rem;
    }

    .cloner-form {
        padding: 1.25rem 1.25rem 1.5rem;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }

    .backup-header {
        flex-direction: column;
        gap: 0.85rem;
        align-items: flex-start;
    }

    .download-btn {
        align-self: stretch;
        justify-content: center;
    }

    .notification-container {
        width: calc(100% - 2rem);
        left: 1rem;
        right: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        border-radius: var(--radius-md);
    }

    .brand {
        padding: 2rem 1.5rem;
    }

    .brand h1 {
        font-size: 1.5rem;
    }

    .auth-form {
        padding: 1.5rem 1.5rem 2rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .prev-step, .next-step, .primary-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =====================================================
   26. SECURITY â€” Anti-Scraping & DevTools Warning
   ===================================================== */
body {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

input, textarea, select {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

body.devtools-detected::after {
    content: '\26A0  DevTools Detected \2014 Please close developer tools to continue';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 13, 19, 0.97);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    z-index: 999999;
    letter-spacing: 0.02em;
    text-align: center;
    padding: 2rem;
    backdrop-filter: blur(20px);
    animation: securityFadeIn 0.3s ease-out;
}

@keyframes securityFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =====================================================
   27. FOCUS & ACCESSIBILITY
   ===================================================== */
button:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Subtle pulse on spinning status icon */
@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.status-icon .fa-spin {
    animation: fa-spin 1.5s linear infinite, statusPulse 2s ease-in-out infinite;
}

/* Gradient text on completion */
.status-header.complete h3 {
    background: linear-gradient(135deg, var(--success) 0%, #2dd4bf 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* Auth card inner glow on hover */
.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(155,109,255,0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.auth-card:hover::before {
    opacity: 1;
}

/* Server item smooth highlight animation */
.server-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-sm);
    background: radial-gradient(circle at center, rgba(155,109,255,0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.server-item:hover::after {
    opacity: 1;
}

/* Input field subtle inner shadow */
.modern-select,
.input-with-icon input,
.search-box input {
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
}

.modern-select:focus,
.input-with-icon input:focus,
.search-box input:focus {
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 0 3px var(--accent-muted);
}

/* Step connector active state */
.step.completed + .step .step-number {
    border-color: var(--accent-primary);
}

/* Option card check indicator */
.option-card input:checked ~ .option-content::after {
    content: '\2713';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 22px;
    height: 22px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.65rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(155,109,255,0.3);
}

/* Button ripple glow on hover */
.auth-button::after,
.primary-btn::after {
    transition: opacity var(--transition-normal);
}

/* Smooth sidebar scroll fade */
.servers-scroll {
    mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 4%, black 92%, transparent 100%);
}

/* Dashboard subtle noise overlay */
.dashboard-container::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(155,109,255,0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(232,121,249,0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Text rendering improvements */
h1, h2, h3, h4, h5, h6 {
    text-rendering: optimizeLegibility;
}

/* Smooth all img loading */
img {
    transition: opacity var(--transition-normal);
}