@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #050505;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    /* Touch optimization */
    -webkit-tap-highlight-color: rgba(59, 130, 246, 0.2);
    -webkit-touch-callout: none;
}

/* Animated Background Orbs */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    animation: moveBlue 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 60% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 40%);
    animation: moveBlue2 25s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: -1;
}

@keyframes floatOrbs {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes moveBlue {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(5%, 10%) scale(1.1);
    }

    66% {
        transform: translate(-5%, -5%) scale(0.95);
    }
}

@keyframes moveBlue2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(8%, 8%) rotate(180deg);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: rgba(10, 10, 12, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(59, 130, 246, 0.08);
}

.header-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-left {
    justify-self: start;
}

.header-right {
    justify-self: end;
}

.developer-credit {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.nav {
    display: flex;
    justify-content: center;
    gap: 48px;
    justify-self: center;
}

.nav a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.nav a:hover {
    color: #3b82f6;
}

.nav a:hover::after {
    width: 100%;
}

.discord-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #5865F2 0%, #7289DA 100%);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    font-family: 'Inter', sans-serif;
}

.discord-btn:hover {
    background: linear-gradient(90deg, #4752C4 0%, #5B6DAE 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.4);
}

.discord-btn svg {
    width: 18px;
    height: 18px;
}

/* Hero */
.hero {
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.1));
    border: 2px solid rgba(59, 130, 246, 0.5);
    color: #3b82f6;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    animation: pulse-badge 2s ease-in-out infinite, slideDown 0.6s ease-out;
    font-family: 'Poppins', sans-serif;
}

@keyframes pulse-badge {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }

    50% {
        box-shadow: 0 0 30px rgba(59, 130, 246, 0.6);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    margin-bottom: 16px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 40px rgba(59, 130, 246, 0.4));
    font-family: 'Poppins', sans-serif;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 26px;
    color: #cbd5e1;
    margin-bottom: 20px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-description {
    font-size: 20px;
    color: #94a3b8;
    margin-bottom: 60px;
    font-weight: 500;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Inter', sans-serif;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Hero Steps - Quick steps under hero */
.hero-steps {
    margin-top: 60px;
    margin-bottom: 30px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.hero-steps .tutorial-card {
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(10px);
}

.hero-steps .tutorial-card:hover {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-8px);
}

.hero-steps .tutorial-number {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 18px 48px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(59, 130, 246, 0.6);
}

/* App Section */
.app-section {
    padding: 80px 0;
    position: relative;
}

.app-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: fadeIn 0.6s ease-out both;
}

.card:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 40px rgba(59, 130, 246, 0.2),
        inset 0 0 0 1px rgba(59, 130, 246, 0.1);
    transform: translateY(-8px) scale(1.02);
}

.card-header {
    background: transparent;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.header-icon svg {
    color: #3b82f6;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.5));
}

.header-text {
    flex: 1;
}

.card-header h3 {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.header-subtitle {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

.card-body {
    padding: 28px;
    background: transparent;
}

/* Form */
.form-group {
    margin-bottom: 28px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.form-group input:hover {
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(0, 0, 0, 0.5);
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.15),
        0 8px 24px rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
}

.form-group input::placeholder {
    color: #475569;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.checkbox-group:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.checkbox-group label {
    font-size: 15px;
    color: #cbd5e1;
    cursor: pointer;
}

.btn-action {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 8px 24px rgba(59, 130, 246, 0.4),
        0 0 0 0 rgba(59, 130, 246, 0.4);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-action::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-action:hover::before {
    width: 300px;
    height: 300px;
}

.btn-action:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow:
        0 16px 48px rgba(59, 130, 246, 0.6),
        0 0 60px rgba(59, 130, 246, 0.4),
        0 0 0 4px rgba(59, 130, 246, 0.1);
    background: linear-gradient(135deg, #4a8fff, #3b82f6);
    border-color: rgba(59, 130, 246, 0.6);
}

.btn-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.btn-preview {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-preview:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.1);
}

/* Stop Button */
.btn-stop {
    flex: 1;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    padding: 14px;
    border: 2px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-stop:not(:disabled) {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-stop:hover:not(:disabled) {
    background: rgba(239, 68, 68, 0.35);
    border-color: rgba(239, 68, 68, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.5);
}

.btn-stop:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.15);
}

/* Refresh Button */
.btn-refresh {
    flex: 1;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 14px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-refresh:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10000;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes ripple {
    from {
        width: 20px;
        height: 20px;
        opacity: 0.8;
    }

    to {
        width: 600px;
        height: 600px;
        opacity: 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 40px rgba(16, 185, 129, 0.6);
    }
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(59, 130, 246, 0.1);
}

.modal-header h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2 svg {
    color: #3b82f6;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px 32px;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.5);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.7);
}

/* Server Preview Card */
.server-preview-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

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

.server-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.5);
    object-fit: cover;
}

.server-info-header h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}

.server-info-header p {
    color: #94a3b8;
    font-size: 14px;
    margin: 4px 0 0 0;
}

/* Filters */
.preview-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.filter-btn.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
    color: #3b82f6;
}

/* Info Banner */
.info-banner {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #3b82f6;
    font-size: 15px;
    font-weight: 600;
}

.info-banner svg {
    flex-shrink: 0;
    color: #3b82f6;
}

/* Structure Map */
.structure-map {
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
}

.structure-map h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.structure-tree {
    max-height: 300px;
    overflow-y: auto;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.tree-category {
    margin-bottom: 16px;
}

.tree-category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 8px;
    padding: 8px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 6px;
}

.tree-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #94a3b8;
    font-size: 14px;
    padding: 6px 6px 6px 24px;
    margin: 4px 0;
}

/* Preview List */
.preview-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.preview-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.preview-item:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
}

.preview-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.preview-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    color: #3b82f6;
}

.preview-item-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
}

.preview-item-type {
    color: #64748b;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.loading-text {
    text-align: center;
    color: #64748b;
    padding: 40px;
    font-size: 16px;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.stat {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat:hover {
    background: rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.stat-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.stat-icon svg {
    color: #ffffff;
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stat-value {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
}

/* Progress */
.progress-box {
    margin-bottom: 28px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #94a3b8;
}

.progress-bar-container {
    height: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #3b82f6);
    background-size: 200% 100%;
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 24px rgba(59, 130, 246, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Console Card */
.console-card {
    margin-top: 40px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    position: relative;
}

.console-card:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(-2px);
}

.console-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.console-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
}

.console-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.console-btn:active {
    transform: scale(0.95);
}

.console-btn svg {
    color: #ffffff;
}

.console-btn-stop {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
}

.console-btn-stop:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

.console-btn-stop svg {
    color: #ef4444;
}

.console-btn-refresh {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.console-btn-refresh:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.5);
}

.console-btn-refresh svg {
    color: #10b981;
}

.console-content {
    padding: 24px;
    min-height: 300px;
    max-height: 450px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: transparent;
}

.console-empty {
    color: #475569;
}

.log-entry {
    padding: 8px 12px;
    margin-bottom: 6px;
    border-left: 3px solid rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.05);
    border-radius: 4px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-entry.success {
    color: #10b981;
    border-left-color: #10b981;
    background: rgba(16, 185, 129, 0.05);
}

.log-entry.error {
    color: #ef4444;
    border-left-color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.log-entry.warning {
    color: #f59e0b;
    border-left-color: #f59e0b;
    background: rgba(245, 158, 11, 0.05);
}

.log-entry.info {
    color: #3b82f6;
    border-left-color: #3b82f6;
}

.console-content::-webkit-scrollbar {
    width: 8px;
}

.console-content::-webkit-scrollbar-track {
    background: rgba(15, 15, 15, 0.5);
}

.console-content::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 4px;
}

.console-content::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* Tutorial Section */
.tutorial-section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.section-description {
    text-align: center;
    font-size: 18px;
    color: #94a3b8;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.video-container {
    max-width: 900px;
    margin: 0 auto 60px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.tutorial-card {
    background: rgba(10, 15, 20, 0.6);
    padding: 40px 28px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tutorial-card:hover {
    background: rgba(15, 20, 25, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
}

.tutorial-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #3b82f6;
    color: white;
    border-radius: 50%;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Poppins', sans-serif;
}

.tutorial-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.tutorial-card p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
}

/* Discord Section */
.discord-section {
    padding: 100px 0;
    position: relative;
}

.discord-card {
    background: rgba(10, 15, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.discord-card:hover {
    background: rgba(15, 20, 25, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
}

.discord-content {
    display: flex;
    align-items: center;
    gap: 36px;
}

.discord-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.5));
}

.discord-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.discord-tag {
    font-size: 22px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin-bottom: 6px;
}

.discord-desc {
    font-size: 14px;
    color: #94a3b8;
}

.btn-discord {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #5865F2 0%, #7289DA 100%);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
    border: none;
    font-family: 'Inter', sans-serif;
}

.btn-discord:hover {
    background: linear-gradient(90deg, #4752C4 0%, #5B6DAE 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(88, 101, 242, 0.4);
}

.btn-discord svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.95);
    border-top: 1px solid rgba(59, 130, 246, 0.1);
    padding: 40px 0;
    text-align: center;
}

.footer p {
    font-size: 14px;
    color: #64748b;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive - MOBILE OPTIMIZED */

/* Tablette */
@media (max-width: 1024px) {
    .app-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .tutorial-grid {
        grid-template-columns: 1fr;
    }

    .discord-card {
        flex-direction: column;
        text-align: center;
        gap: 36px;
    }

    .discord-content {
        flex-direction: column;
    }

    .container {
        padding: 0 20px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* Header Mobile */
    .header {
        padding: 12px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 12px;
    }

    .developer-credit {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .nav {
        gap: 16px;
        order: 2;
    }

    .nav a {
        font-size: 13px;
    }

    .discord-btn {
        padding: 8px 16px;
        font-size: 12px;
        order: 1;
    }

    .discord-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Hero Mobile */
    .hero {
        padding: 60px 0 40px;
    }

    .hero-badge {
        font-size: 9px;
        padding: 6px 16px;
        letter-spacing: 1.5px;
    }

    .hero-title {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 20px;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 16px;
        padding: 0 10px;
        line-height: 1.5;
    }

    /* Container Mobile */
    .container {
        padding: 0 16px;
    }

    /* Cards Mobile */
    .card {
        padding: 20px;
    }

    .card-header {
        padding: 16px 20px;
    }

    .card-title {
        font-size: 16px;
    }

    /* Form Mobile */
    .form-group {
        margin-bottom: 16px;
    }

    .form-group label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .form-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    /* Buttons Mobile - Plus grands pour touch */
    .btn-action {
        padding: 16px 24px;
        font-size: 15px;
        width: 100%;
        min-height: 48px;
        /* Recommandation Apple/Google */
        touch-action: manipulation;
    }

    .action-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .action-buttons button {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }

    .btn-preview {
        width: 100%;
        min-height: 48px;
    }

    .stop-clone-btn,
    .refresh-clone-btn {
        min-height: 44px;
    }

    /* Stats Mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 11px;
    }

    /* Progress Bar Mobile */
    .progress-header {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    /* Console Mobile */
    .console {
        max-height: 250px;
    }

    .console-header {
        padding: 12px 16px;
    }

    .console-title {
        font-size: 12px;
    }

    .progress-monitor {
        padding: 12px;
        font-size: 12px;
    }

    .log-entry {
        padding: 8px 12px;
        font-size: 11px;
    }

    /* Modal Mobile */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 20px;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-body {
        padding: 16px;
    }
}

/* Petit Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav a {
        font-size: 12px;
    }

    .stat-value {
        font-size: 20px;
    }

    .card {
        padding: 16px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 36px;
    }

    .modal-content {
        max-height: 85vh;
    }
}

/* ============================================
   LANGUAGE SWITCHER STYLES
   ============================================ */

.lang-switcher {
    position: relative;
    z-index: 1000;
}

.lang-current {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    width: 48px;
    height: 42px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.lang-current:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.lang-switcher.open .lang-current {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

.lang-flag {
    width: 28px;
    height: 20px;
    border-radius: 3px;
    overflow: hidden;
    display: block;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

svg.lang-flag {
    width: 28px;
    height: 20px;
    border-radius: 3px;
}

.lang-code {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.lang-arrow {
    font-size: 10px;
    opacity: 0.7;
    transition: transform 0.3s ease;
    margin-left: 2px;
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(59, 130, 246, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.lang-option:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #ffffff;
    transform: translateX(4px);
}

.lang-option.active {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    font-weight: 600;
}

.lang-option.active::after {
    content: '✓';
    margin-left: auto;
    font-size: 12px;
    opacity: 0.8;
}

.lang-option .lang-flag {
    font-size: 20px;
}

.lang-option .lang-name {
    flex: 1;
}

/* Language Change Notification */
.lang-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 14px 24px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow:
        0 10px 40px rgba(59, 130, 246, 0.4),
        0 0 60px rgba(59, 130, 246, 0.2);
    z-index: 10001;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
}

.lang-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.lang-notification .lang-flag {
    font-size: 22px;
}

/* Mobile Responsive for Language Switcher */
@media (max-width: 768px) {
    .lang-current {
        padding: 8px 10px;
    }

    .lang-code {
        display: none;
    }

    .lang-arrow {
        display: none;
    }

    .lang-dropdown {
        right: -10px;
        min-width: 140px;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out,
        transform 0.3s ease-out;
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes d'animation */
.scroll-animate.from-left {
    transform: translateX(-50px);
}

.scroll-animate.from-left.animate-in {
    transform: translateX(0);
}

.scroll-animate.from-right {
    transform: translateX(50px);
}

.scroll-animate.from-right.animate-in {
    transform: translateX(0);
}

.scroll-animate.scale-in {
    transform: scale(0.8);
}

.scroll-animate.scale-in.animate-in {
    transform: scale(1);
}

/* ============================================
   REAL-TIME VALIDATION
   ============================================ */

.validation-indicator {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: none;
}

.validation-indicator svg {
    width: 14px;
    height: 14px;
}

.validation-indicator.valid {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    animation: validPulse 0.3s ease;
}

.validation-indicator.invalid {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    animation: shake 0.3s ease;
}

.validation-indicator.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.validation-indicator.loading .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes validPulse {
    0% {
        transform: translateY(-50%) scale(0);
    }

    50% {
        transform: translateY(-50%) scale(1.2);
    }

    100% {
        transform: translateY(-50%) scale(1);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    25% {
        transform: translateY(-50%) translateX(-4px);
    }

    75% {
        transform: translateY(-50%) translateX(4px);
    }
}

/* Input avec validation */
.form-group input {
    padding-right: 45px;
    /* Espace pour l'indicateur */
}

.form-group input:focus+.validation-indicator.valid {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.form-group input:focus+.validation-indicator.invalid {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

/* Bouton état ready/not-ready */
.btn-action.ready {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

.btn-action.ready:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    box-shadow: 0 16px 48px rgba(16, 185, 129, 0.6);
}

.btn-action.not-ready {
    opacity: 0.7;
}

/* ============================================
   COUNTER ANIMATIONS
   ============================================ */

.stat-value {
    transition: transform 0.3s ease, color 0.3s ease;
}

.stat-value.counter-pop {
    animation: counterPop 0.3s ease;
    color: #10b981;
}

@keyframes counterPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* Effet glow quand la valeur change */
.stat.updating .stat-value {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

/* ============================================
   NOTIFICATION PERMISSION BANNER (optional)
   ============================================ */

.notification-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 16px 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
    z-index: 9999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.notification-banner.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-banner button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 8px 16px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.notification-banner button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.notification-banner .close-banner {
    background: transparent;
    border: none;
    padding: 4px;
    opacity: 0.7;
}

.notification-banner .close-banner:hover {
    opacity: 1;
}

/* ============================================
   MICRO-INTERACTIONS
   ============================================ */

/* Hover glow effect on cards */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(59, 130, 246, 0.06),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

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

/* Loading dots animation */
.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {

    0%,
    20% {
        content: '.';
    }

    40% {
        content: '..';
    }

    60%,
    100% {
        content: '...';
    }
}

/* Smooth focus transition */
input,
button,
textarea,
select {
    transition: all 0.2s ease;
}

/* Button click ripple effect */
.btn-action::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: translate(-50%, -50%) scale(1);
    transition: none;
}

.btn-action:active::after {
    transform: translate(-50%, -50%) scale(100);
    opacity: 0;
    transition: transform 0.5s, opacity 0.3s;
}/* MODE SELECTOR CARDS */
.mode-label { display: block; font-size: 13px; font-weight: 700; color: #94a3b8; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.mode-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.mode-card { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; padding: 20px; cursor: pointer; transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; overflow: hidden; }
.mode-card:hover { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.3); transform: translateY(-2px); }
.mode-card.active { background: rgba(59, 130, 246, 0.15); border-color: #3b82f6; box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2); }
.mode-card.active::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: #3b82f6; }
.mode-icon { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; transition: all 0.3s ease; }
.mode-card.active .mode-icon { background: #3b82f6; color: white; }
.mode-title { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.mode-desc { font-size: 12px; color: #94a3b8; }
.checkbox-group.disabled { opacity: 0.5; pointer-events: none; filter: grayscale(1); }

.checkbox-group.disabled { opacity: 0.4; background: rgba(0, 0, 0, 0.2); border-color: rgba(255, 255, 255, 0.05); cursor: not-allowed; position: relative; }
.checkbox-group.disabled::after { content: '\2716'; /* Heavy Multiplication X Symbol */ position: absolute; right: 15px; top: 50%; transform: translateY(-50%); font-size: 14px; color: #ef4444; font-weight: bold; text-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
.checkbox-group.disabled input, .checkbox-group.disabled label { cursor: not-allowed; }

/* Enlarged Preview Structure */
#structureTree { max-height: 500px; font-size: 16px; border: 1px solid rgba(59, 130, 246, 0.3); background: rgba(0, 0, 0, 0.4); padding: 20px; border-radius: 12px; }
.tree-category-header { font-size: 18px; font-weight: bold; color: #fff; margin-bottom: 10px; padding: 10px; background: rgba(59, 130, 246, 0.2); border-radius: 8px; }
.tree-channel { padding: 8px 12px; margin-left: 20px; font-size: 15px; color: #cbd5e1; border-left: 2px solid rgba(255, 255, 255, 0.1); transition: all 0.2s; }
.tree-channel:hover { background: rgba(255, 255, 255, 0.05); color: #fff; border-left-color: #3b82f6; translation: translateX(5px); }
