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

:root {
    --bg-primary: #050507;
    --bg-card: rgba(16, 16, 20, 0.85);
    --bg-card-hover: rgba(22, 22, 28, 0.95);
    --bg-terminal: #09090c;
    --border-color: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(255, 255, 255, 0.28);
    --border-accent: rgba(255, 255, 255, 0.4);
    
    --text-primary: #ffffff;
    --text-secondary: #9ea3b0;
    --text-muted: #5e6270;
    
    --accent-white: #ffffff;
    --accent-dark: #050507;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    
    --font-heading: 'ADLaM Display', cursive, sans-serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* 3D Perspective Grid Canvas */
.background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    opacity: 0.7;
}

/* Floating Glass Pill Navbar */
.navbar-wrapper {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
    padding: 0 20px;
}

.pill-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 10px 18px;
    max-width: 920px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    transition: border-color 0.25s ease;
}

.pill-navbar:hover {
    border-color: var(--border-hover);
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
}

.brand-icon {
    width: 22px;
    height: 22px;
    stroke: var(--text-primary);
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-style: italic;
    letter-spacing: -0.5px;
}

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

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    padding: 7px 16px;
    border-radius: 9999px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-item:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: var(--text-primary);
    color: var(--accent-dark);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 18px;
    border-radius: 9999px;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    background: #e2e4ea;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.cta-icon {
    width: 14px;
    height: 14px;
    stroke: var(--accent-dark);
}

/* Main Content Wrap */
main {
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero-section {
    min-height: 82vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 24px 60px;
}

.hero-content {
    max-width: 860px;
    margin: 0 auto;
}

/* Nexon Style Typography */
.nexon-title {
    font-family: var(--font-heading);
    font-size: clamp(52px, 8vw, 92px);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -1.5px;
    line-height: 1.05;
    color: var(--text-primary);
    text-shadow: 0 0 35px rgba(255, 255, 255, 0.25);
    margin-bottom: 22px;
}

.title-word {
    display: inline-block;
    margin: 0 6px;
    transform: skewX(-4deg);
}

.nexon-subtitle {
    font-size: clamp(17px, 2.2vw, 21px);
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 36px;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.nexon-pill-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: var(--text-primary);
    color: var(--accent-dark);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    padding: 14px 34px;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nexon-pill-button:hover {
    transform: translateY(-2px);
    background: #f0f0f3;
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.3);
}

.button-icon {
    width: 16px;
    height: 16px;
    stroke: var(--accent-dark);
    fill: var(--accent-dark);
}

/* Builder Section */
.builder-section {
    padding: 40px 24px 100px;
}

.section-container {
    max-width: 1240px;
    margin: 0 auto;
}

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

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 44px);
    font-style: italic;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.section-subtext {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto;
}

/* Builder Grid Layout */
.builder-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 28px;
    align-items: stretch;
}

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

.builder-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Drag & Drop Zone */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 38px 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
    position: relative;
}

.drop-zone:hover, .drop-zone.drag-over {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.05);
}

.file-input-hidden {
    display: none;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-icon {
    width: 42px;
    height: 42px;
    stroke: var(--text-secondary);
    margin-bottom: 6px;
    transition: transform 0.2s ease, stroke 0.2s ease;
}

.drop-zone:hover .upload-icon {
    transform: translateY(-3px);
    stroke: var(--text-primary);
}

.drop-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
}

.drop-subtitle {
    font-size: 13px;
    color: var(--text-muted);
}

.file-badge {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.badge-icon {
    width: 16px;
    height: 16px;
    stroke: var(--text-primary);
}

.file-size-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-green);
    background: rgba(34, 197, 94, 0.15);
    padding: 2px 8px;
    border-radius: 9999px;
}

.hidden {
    display: none !important;
}

/* Config Groups */
.config-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.group-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-secondary);
}

/* Presets Bar */
.preset-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.preset-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 0;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.preset-btn.active {
    background: var(--text-primary);
    color: var(--accent-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Toggles Grid */
.toggles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

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

.toggle-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    user-select: none;
    overflow: hidden;
}

.toggle-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.toggle-item input[type="checkbox"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.toggle-item.locked-toggle input[type="checkbox"],
.toggle-item input[type="checkbox"]:disabled {
    cursor: not-allowed;
    pointer-events: none;
}

.toggle-custom {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--text-muted);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    pointer-events: none;
    z-index: 1;
}

.toggle-item input[type="checkbox"]:checked + .toggle-custom {
    background: var(--text-primary);
    border-color: var(--text-primary);
}

.toggle-item input[type="checkbox"]:checked + .toggle-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 3px;
    height: 7px;
    border: solid var(--accent-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.toggle-text {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.15s ease;
    pointer-events: none;
    z-index: 1;
}

.toggle-item input[type="checkbox"]:checked ~ .toggle-text {
    color: var(--text-primary);
}

/* Protection Header Bar & Counters */
.protection-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.protection-counter-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.protection-bulk-actions {
    display: flex;
    gap: 6px;
}

.bulk-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.bulk-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

/* Fast Preset Notice Card */
.fast-preset-badge-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    margin-top: 10px;
    margin-bottom: 8px;
}

.lock-notice-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lock-icon-svg {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.notice-title {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.notice-desc {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Protections Quad Container (2x2 grid) */
.protections-quad-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-height: 480px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
    position: relative;
}

@media (max-width: 680px) {
    .protections-quad-container {
        grid-template-columns: 1fr;
    }
}

.quad-column {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quad-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quad-toggles {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toggle-item.locked-toggle {
    opacity: 0.45;
    cursor: not-allowed;
}

.toggle-item.locked-toggle:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.06);
}

/* Numeric Multipliers Row */
.config-row-multipliers {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 12px;
}

@media (max-width: 768px) {
    .config-row-multipliers {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .config-row-multipliers {
        grid-template-columns: 1fr;
    }
}

.field-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-col label {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-muted);
}

.num-input, .text-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s ease;
}

.num-input:focus, .text-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
}

.num-input:disabled, .text-input:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

/* Build Action Button */
.build-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--text-primary);
    color: var(--accent-dark);
    border: none;
    border-radius: 9999px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
    margin-top: 6px;
}

.build-action-btn:hover:not(:disabled) {
    background: #e6e8ee;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.25);
}

.build-action-btn:disabled {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

.btn-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.build-action-btn.building .btn-icon {
    animation: spin 1s linear infinite;
}

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

/* Terminal / Output Box */
.output-card {
    display: flex;
    flex-direction: column;
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.terminal-action {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: color 0.15s ease;
}

.terminal-action:hover {
    color: var(--text-primary);
}

.terminal-body {
    flex: 1;
    min-height: 290px;
    max-height: 420px;
    background: var(--bg-terminal);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
    font-size: 12px;
    color: #c9d1d9;
    line-height: 1.5;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Download Hub */
.download-hub {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(34, 197, 94, 0.06);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 14px;
    padding: 18px;
    animation: fadeIn 0.3s ease;
}

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

.download-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    width: 28px;
    height: 28px;
    stroke: var(--accent-green);
    flex-shrink: 0;
}

.download-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.download-subtext {
    font-size: 12px;
    color: var(--text-secondary);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dl-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 11px 18px;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.primary-dl {
    background: var(--accent-green);
    color: #031508;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.3);
}

.primary-dl:hover {
    background: #2dd869;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(34, 197, 94, 0.45);
}

.secondary-dl {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
}

.secondary-dl:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.dl-icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}

/* Features Showcase Section */
.features-section {
    padding: 60px 24px 100px;
}

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

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

.feature-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 30px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.card-icon-wrap {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon-wrap svg {
    width: 22px;
    height: 22px;
    stroke: var(--text-primary);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.card-desc {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 36px 24px;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    .nav-links {
        display: none;
    }
}

/* Discord Auth Navbar Elements */
.nav-auth-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-discord-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5865F2;
    color: #ffffff;
    border: none;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-discord-btn:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.4);
}

.discord-icon {
    width: 17px;
    height: 17px;
}

.nav-user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    padding: 4px 12px 4px 5px;
}

.user-avatar-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #5865F2;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.user-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.user-quota-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.user-quota-tag.exhausted {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
    border-color: rgba(239, 68, 68, 0.3);
}

.nav-logout-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 2px;
    transition: color 0.2s ease;
}

.nav-logout-btn:hover {
    color: var(--text-primary);
}

.logout-icon {
    width: 15px;
    height: 15px;
}

/* Identification Banner Card */
.auth-banner-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    backdrop-filter: blur(12px);
    transition: border-color 0.2s ease;
}

@media (max-width: 820px) {
    .auth-banner-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

.banner-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.banner-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.discord-card-icon {
    width: 24px;
    height: 24px;
    color: #5865F2;
}

.banner-heading {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.banner-subtext {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.banner-btn {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 9999px;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.primary-discord {
    background: #5865F2;
    color: #ffffff;
}

.primary-discord:hover {
    background: #4752c4;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
}

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

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* Preset Lock Tags */
.preset-btn.locked {
    opacity: 0.55;
    cursor: not-allowed;
    position: relative;
}

.lock-tag {
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 3px;
}

/* Bot Code Modal */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.modal-card {
    background: #111115;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    width: 100%;
    max-width: 480px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-style: italic;
    color: var(--text-primary);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-sub {
    font-size: 13.5px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
}

.code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.45);
    border: 1px dashed rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.bot-code-text {
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.copy-btn {
    background: var(--text-primary);
    color: var(--accent-dark);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.copy-btn:hover {
    background: #e2e4ea;
}

.modal-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.spinner-small {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: #5865F2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.demo-auth-box {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.demo-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.demo-inputs {
    display: flex;
    gap: 8px;
}

.demo-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 12.5px;
    padding: 8px 12px;
    outline: none;
}

.demo-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.demo-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   Smooth Micro-Animations & Interactive Transitions
   ========================================================================== */

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes checkmarkPop {
    0% {
        transform: rotate(45deg) scale(0.4);
        opacity: 0;
    }
    60% {
        transform: rotate(45deg) scale(1.2);
    }
    100% {
        transform: rotate(45deg) scale(1);
        opacity: 1;
    }
}

@keyframes badgePopIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(6px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes dropBreathe {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.25);
        background-color: rgba(255, 255, 255, 0.02);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.65);
        background-color: rgba(255, 255, 255, 0.06);
    }
}

@keyframes pulseGreenDot {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(39, 201, 63, 0.4);
    }
    50% {
        box-shadow: 0 0 8px 2px rgba(39, 201, 63, 0.8);
    }
}

@keyframes btnWorkingPulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.12);
    }
    50% {
        opacity: 0.85;
        box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    }
}

@keyframes revealDownloadHub {
    0% {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Page Element Animation Applications */
.hero-content {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.discord-auth-banner {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.upload-card {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.output-card {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.feature-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.preset-btn {
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.preset-btn:hover:not(.locked) {
    transform: translateY(-1px);
}

.preset-btn:active:not(.locked) {
    transform: translateY(0) scale(0.98);
}

.preset-btn.active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.toggle-item {
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.18s ease;
}

.toggle-item:hover:not(.locked-toggle) {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
}

.toggle-item:active:not(.locked-toggle) {
    transform: scale(0.985);
}

.toggle-item input[type="checkbox"]:checked + .toggle-custom::after {
    animation: checkmarkPop 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.drop-zone.drag-over {
    animation: dropBreathe 1.5s ease-in-out infinite;
    transform: scale(1.01);
}

.file-badge:not(.hidden) {
    animation: badgePopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.dot.green {
    animation: pulseGreenDot 2.4s ease-in-out infinite;
}

.download-hub:not(.hidden) {
    animation: revealDownloadHub 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.modal-overlay:not(.hidden) {
    animation: fadeIn 0.2s ease both;
}

.modal-overlay:not(.hidden) .modal-card {
    animation: scaleIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.build-action-btn {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.build-action-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 255, 255, 0.25);
}

.build-action-btn:active:not(:disabled) {
    transform: translateY(0) scale(0.99);
}

.build-action-btn.building {
    animation: btnWorkingPulse 2s ease-in-out infinite;
}

/* Provenance & Leak Tracer Section */
.tracer-section {
    padding: 60px 20px 100px;
    display: flex;
    justify-content: center;
}

.tracer-card {
    background: rgba(18, 20, 29, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 32px;
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tracer-drop-zone {
    min-height: 180px;
}

.tracer-result-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeIn 0.3s ease both;
}

.tracer-status-banner {
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tracer-status-banner.found {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #4ade80;
}

.tracer-status-banner.not-found {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
}

.tracer-status-banner.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #f87171;
}

.tracer-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
}

.tracer-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tracer-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.tracer-val {
    font-size: 15px;
    color: #ffffff;
    word-break: break-all;
}

.tracer-val.highlight {
    color: #60a5fa;
    font-weight: 600;
}

.tracer-val.font-mono {
    font-family: monospace;
    color: #a78bfa;
}

/* History Section */
.history-section {
    padding: 60px 0;
    position: relative;
    z-index: 10;
}

.history-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.history-status-box {
    text-align: center;
    padding: 36px 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.history-table-wrapper {
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.history-table th {
    padding: 12px 16px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.history-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    vertical-align: middle;
}

.history-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.history-preset-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.history-preset-badge.maximum {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.history-preset-badge.balanced {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.history-preset-badge.fast {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.history-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.history-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.history-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
}

.history-btn.primary {
    background: #ffffff;
    color: #050507;
    border-color: #ffffff;
}

.history-btn.primary:hover {
    background: rgba(255, 255, 255, 0.85);
}

.history-expired {
    font-size: 12px;
    color: var(--text-muted);
}


