:root {
    /* Full H4rd Premium High-Tech Theme */
    --primary: #ffffff;
    --primary-dark: #f0f0f0;
    --secondary: #0044ff;
    --accent: #00d2ff;
    --success: #00ffa3;
    --warning: #ffb800;
    --error: #ff4d4d;

    --bg-dark: #02040a;
    --bg-darker: #000000;
    --bg-card: rgba(0, 68, 255, 0.08);
    --bg-card-hover: rgba(0, 68, 255, 0.12);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-inverse: #000000;

    --border: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.3);
    --border-accent: rgba(0, 51, 204, 0.3);

    /* Clean Gradients */
    --gradient-primary: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    --gradient-secondary: linear-gradient(135deg, #0033cc 0%, #001a80 100%);
    --gradient-accent: linear-gradient(135deg, #0066ff 0%, #0033cc 100%);
    --gradient-rgb: linear-gradient(90deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #8f00ff, #ff0000);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;

    /* Shadows - Professional Depth */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.7);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.9);
    --shadow-glow: 0 0 40px rgba(0, 68, 255, 0.1);
    --shadow-glow-accent: 0 0 40px rgba(0, 68, 255, 0.25);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Outfit', var(--font-primary);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Effects - Full H4rd Gaming */
/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 51, 204, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-secondary);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
    opacity: 0.2;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--gradient-accent);
    bottom: -250px;
    right: -250px;
    animation-delay: -7s;
    opacity: 0.15;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    top: 50%;
    right: -150px;
    animation-delay: -14s;
    opacity: 0.05;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* RGB Line Animation */
.rgb-line {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-rgb);
    background-size: 200% 100%;
    animation: rainbow 3s linear infinite;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

@keyframes rainbow {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
    position: relative;
    z-index: 1001;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    animation: fadeInDown 0.6s ease-out;
}

.logo svg {
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.4));
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Screens */
.screen {
    display: none;
    width: 100%;
    max-width: 800px;
    animation: fadeIn 0.6s ease-out;
}

.screen.active {
    display: block;
}

/* Welcome Screen */
.welcome-content {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.feature {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-align: left;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out backwards;
}

.feature:nth-child(1) {
    animation-delay: 0.3s;
}

.feature:nth-child(2) {
    animation-delay: 0.4s;
}

.feature:nth-child(3) {
    animation-delay: 0.5s;
}

.feature:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.feature-text h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::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:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-inverse);
    /* Black text on white button */
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 255, 255, 0.3), 0 0 30px rgba(255, 255, 255, 0.2);
    background: white;
    /* Ensure it stays bright */
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Questionnaire */
.questionnaire-content {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 999px;
    transition: width 0.4s ease;
    width: 25%;
}

.progress-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-lg);
}

.question-container {
    min-height: 300px;
    margin-bottom: var(--spacing-lg);
}

.question {
    animation: slideIn 0.4s ease-out;
}

.question h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.question p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.options {
    display: grid;
    gap: var(--spacing-sm);
}

.option {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateX(4px);
}

.option.selected {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.option-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.option-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.input-field::placeholder {
    color: var(--text-muted);
}

textarea.input-field {
    min-height: 120px;
    resize: vertical;
}

.nav-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: space-between;
}

/* Loading Screen */
.loading-content {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto var(--spacing-lg);
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loader-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: var(--secondary);
    animation-delay: -0.5s;
}

.loader-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: var(--accent);
    animation-delay: -1s;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-title {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.loading-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Results Screen */
.results-content {
    padding: var(--spacing-lg) 0;
}

.results-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.build-summary {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 0.6s ease-out;
}

.build-price {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.price-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.price-value {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.build-description {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.components-list {
    display: grid;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.component-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out backwards;
}

.component-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.component-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
}

.component-info h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.component-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.component-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

.component-reason {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.notes-section {
    background: rgba(0, 51, 204, 0.1);
    border: 1px solid rgba(0, 51, 204, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.notes-section h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.notes-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-sm);
    }

    .questionnaire-content {
        padding: var(--spacing-lg);
    }

    .features {
        grid-template-columns: 1fr;
    }

    .nav-buttons {
        flex-direction: column-reverse;
    }

    .nav-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .component-header {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Cart Page Styles */
.cart-container {
    width: 100%;
    max-width: 900px;
    padding: var(--spacing-lg) 0;
}

.empty-cart {
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

.empty-cart h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.cart-items {
    margin-bottom: var(--spacing-lg);
}

.cart-category {
    margin-bottom: var(--spacing-lg);
}

.category-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    border-bottom: 2px solid var(--border);
}

.cart-item {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: var(--spacing-md);
    align-items: center;
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.item-info h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.item-sku {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    padding: 0.25rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-card);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

.qty-value {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
}

.item-price {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

.remove-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-btn:hover {
    background: var(--error);
    color: white;
    transform: scale(1.1);
}

.cart-summary {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    color: var(--text-secondary);
}

.summary-total {
    border-top: 2px solid var(--border);
    margin-top: var(--spacing-sm);
    padding-top: var(--spacing-md);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-value {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
}

.summary-total .summary-value {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cart-summary .btn {
    width: 100%;
    justify-content: center;
    margin-top: var(--spacing-md);
}

.cart-summary .btn:first-of-type {
    margin-top: var(--spacing-lg);
}

.cart-actions {
    margin-top: var(--spacing-lg);
    text-align: center;
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .item-quantity {
        justify-content: center;
    }

    .item-price {
        text-align: center;
    }

    .remove-btn {
        width: 100%;
    }
}

/* Full H4rd Gaming Enhancements */

/* Tech Pattern Overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(255, 51, 51, 0.03) 2px,
            rgba(255, 51, 51, 0.03) 4px);
    pointer-events: none;
    z-index: 1;
}

/* Enhanced Gaming Glow on Interactive Elements */
.btn-primary,
.option.selected,
.component-card:hover {
    position: relative;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    z-index: -1;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 0.7;
}

/* Gaming-style text glow for headers */
.results-title,
.loading-title {
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.4);
}

/* Enhanced feature cards with gaming border */
.feature {
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--gradient-accent);
    transition: left 0.5s ease;
}

.feature:hover::before {
    left: 100%;
}

/* Gaming-style component cards */
.component-card {
    position: relative;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.component-card:hover {
    border-left-color: var(--primary);
    box-shadow: var(--shadow-md), -4px 0 20px rgba(255, 51, 51, 0.2);
}

/* Pulse animation for primary buttons */
@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 4px 16px rgba(255, 51, 51, 0.5);
    }

    50% {
        box-shadow: 0 4px 24px rgba(255, 51, 51, 0.7), 0 0 30px rgba(255, 51, 51, 0.3);
    }
}

.btn-primary {
    animation: pulse-glow 3s ease-in-out infinite;
}

.btn-primary:hover {
    animation: none;
}

/* Gaming-style scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
}

/* Authentication Styles */
.nav-actions {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

#auth-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-display);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

#auth-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transition: 0.5s;
}

#auth-nav-btn:hover::before {
    left: 100%;
}

#auth-nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow), 0 0 15px rgba(255, 255, 255, 0.1);
}

#auth-nav-btn.logged-in {
    border-color: var(--success);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

.auth-modal {
    width: 100%;
    max-width: 400px;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    position: relative;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.auth-tabs {
    display: flex;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-tab.active {
    color: var(--secondary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.btn-full {
    width: 100%;
    justify-content: center;
    padding: 0.75rem;
    margin-top: 0.5rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: var(--spacing-lg) 0;
    color: var(--text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    padding: 0 1rem;
    font-size: 0.85rem;
}

.auth-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--spacing-lg);
}

#google-signin-btn {
    display: flex;
    justify-content: center;
}

/* Notification Popups */
.notification-overlay {
    z-index: 3000;
}

.notification-modal {
    text-align: center;
    max-width: 450px;
    padding: var(--spacing-xl) var(--spacing-lg);
    border: 1px solid var(--border);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.notification-logo {
    height: 35px;
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
}

.notification-icon {
    margin-bottom: var(--spacing-md);
    display: flex;
    justify-content: center;
}

.type-error .notification-icon {
    color: var(--error);
}

.type-warning .notification-icon {
    color: var(--warning);
}

.type-success .notification-icon {
    color: var(--success);
}

.type-info .notification-icon {
    color: var(--secondary);
}

.notification-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.notification-message {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: var(--spacing-xl);
}

.notification-footer {
    display: flex;
    justify-content: center;
}

.notification-modal .btn-primary {
    min-width: 150px;
    justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════════
   Quick Prompt Chips
   ═══════════════════════════════════════════════════════════════════ */
.quick-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--spacing-md);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.chip-active {
    background: rgba(0, 68, 255, 0.2);
    border-color: var(--secondary);
    color: var(--text-primary);
    box-shadow: 0 0 12px rgba(0, 68, 255, 0.15);
}

.chip-active:hover {
    background: rgba(0, 68, 255, 0.3);
    border-color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════════
   Selection Summary Panel
   ═══════════════════════════════════════════════════════════════════ */
.selection-summary {
    position: fixed;
    top: 80px;
    right: -280px;
    width: 260px;
    background: rgba(2, 4, 10, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    z-index: 100;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
}

.selection-summary.summary-visible {
    right: 20px;
}

.selection-summary h4 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-sm);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.375rem 0;
    gap: 0.5rem;
}

.summary-item .label {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.summary-item .value {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: right;
    word-break: break-word;
}

.summary-item.summary-filled .value {
    color: var(--text-primary);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════
   Cancel Button
   ═══════════════════════════════════════════════════════════════════ */
.btn-cancel {
    margin-top: var(--spacing-lg);
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: var(--error);
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-primary);
    animation: fadeIn 0.3s ease-out;
}

.btn-cancel:hover {
    background: rgba(255, 77, 77, 0.2);
    border-color: var(--error);
    transform: scale(1.02);
}

.btn-cancel span {
    font-weight: 700;
    font-size: 1.1em;
}

/* ═══════════════════════════════════════════════════════════════════
   Character Counter
   ═══════════════════════════════════════════════════════════════════ */
.char-counter {
    text-align: right;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 0.375rem;
}

/* ═══════════════════════════════════════════════════════════════════
   Interpretation Feedback (Results)
   ═══════════════════════════════════════════════════════════════════ */
.interpretation-feedback {
    background: rgba(0, 210, 255, 0.06);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    animation: fadeInUp 0.4s ease-out;
}

.interpretation-feedback h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.interpretation-feedback ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.interpretation-feedback li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.interpretation-feedback li em {
    color: var(--text-muted);
    font-style: italic;
}

.interpretation-feedback p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.feedback-warning {
    background: rgba(255, 184, 0, 0.06);
    border-color: rgba(255, 184, 0, 0.2);
}

.feedback-warning h4 {
    color: var(--warning);
}

/* ═══════════════════════════════════════════════════════════════════
   Mobile Overrides for New Components
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .selection-summary {
        display: none;
    }

    .quick-chips {
        gap: 0.375rem;
    }

    .chip {
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }

    .interpretation-feedback {
        padding: var(--spacing-sm);
    }
}

/* ═══════════════════════════════════════════════════════════════════
   MEJORA 3 — Toggle iOS "Tengo monitor"
   ═══════════════════════════════════════════════════════════════════ */

/* Row que aloja el label + toggle */
.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: border-color 0.25s;
}

.toggle-row:has(input:checked) {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.05);
}

.toggle-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.toggle-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.toggle-label {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.toggle-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* El switch propiamente dicho */
.ios-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
    flex-shrink: 0;
}

.ios-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.ios-slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    transition: background 0.25s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ios-slider::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ios-toggle input:checked+.ios-slider {
    background: #22c55e;
    border-color: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.4);
}

.ios-toggle input:checked+.ios-slider::before {
    transform: translateX(24px);
}

.ios-toggle input:focus-visible+.ios-slider {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ═══════════════════════════════════════════════════════════════════
   MEJORA 1 — Autocomplete + Chips Owned
   ═══════════════════════════════════════════════════════════════════ */

/* Wrapper del input con dropdown */
.autocomplete-wrapper {
    position: relative;
    margin-bottom: 12px;
}

.autocomplete-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

.autocomplete-input:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

.autocomplete-input::placeholder {
    color: var(--text-muted);
}

/* Dropdown */
.suggestion-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    z-index: 500;
    list-style: none;
    padding: 4px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
    animation: dropdownIn 0.15s ease-out;
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: background 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-item:hover,
.suggestion-item.suggestion-active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.suggestion-category {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.suggestion-category strong {
    color: var(--accent);
}

.suggestion-item .sugg-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.suggestion-item .sugg-sku {
    margin-left: auto;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: monospace;
    flex-shrink: 0;
}

/* Chips de componentes ya tengo */
.owned-chips-area {
    margin-bottom: 8px;
    min-height: 0;
}

.owned-chips-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.owned-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 68, 255, 0.18);
    border: 1px solid rgba(0, 110, 255, 0.35);
    border-radius: 999px;
    padding: 5px 12px 5px 14px;
    font-size: 0.85rem;
    color: var(--text-primary);
    animation: chipIn 0.2s ease-out;
    max-width: 260px;
}

@keyframes chipIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chip-remove {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.chip-remove:hover {
    color: #ff4d4d;
}

/* Hint text bajo el input del paso 4 */
.autocomplete-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    padding-left: 2px;
}

/* Separador de secciones dentro del paso 4 */
.step4-section-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 16px 0 8px;
}

/* Responsive para las nuevas features */
@media (max-width: 600px) {
    .toggle-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ios-toggle {
        align-self: flex-start;
    }

    .suggestion-dropdown {
        font-size: 0.85rem;
    }

    .owned-chip {
        max-width: 100%;
    }

    .sugg-price {
        display: none;
    }

    /* en mobile ocultar precio para no saturar */
}

/* ═══════════════════════════════════════════════════════════════════
   Autocomplete v2 — Dropdown de PRODUCTOS con badges
   ═══════════════════════════════════════════════════════════════════ */

/* Cuerpo del ítem: título + badges */
.sugg-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.sugg-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

/* Badges de atributos: AM4, WiFi, DDR4, etc. */
.sugg-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 1px 6px;
    background: rgba(0, 68, 255, 0.2);
    border: 1px solid rgba(0, 110, 255, 0.3);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.3px;
    white-space: nowrap;
    line-height: 1.5;
}

/* Precio alineado a la derecha */
.sugg-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--success);
    white-space: nowrap;
    margin-left: auto;
    padding-left: 8px;
    flex-shrink: 0;
    align-self: flex-start;
    font-family: var(--font-display);
}

/* Estado vacío del dropdown */
.suggestion-empty {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    color: var(--text-muted);
    font-size: 0.88rem;
    cursor: default;
    list-style: none;
}

.suggestion-hint {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.3);
    font-style: italic;
}

/* Warning de hardware obsoleto */
.suggestion-obsolete {
    background: rgba(255, 184, 0, 0.06);
    border-radius: 7px;
    color: var(--warning);
    border: 1px solid rgba(255, 184, 0, 0.15);
}

/* Separador de secciones en el paso 4 */
.step4-section-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 18px 0 10px;
}

.step4-section-divider::before,
.step4-section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
}

/* Zona del toggle monitor (discreta, al fondo) */
.toggle-section {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    opacity: 0.85;
    transition: opacity 0.2s;
}

.toggle-section:hover {
    opacity: 1;
}

/* Ítem activo del dropdown en modo standalone (sin hover) */
.suggestion-item.suggestion-active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}
/* ── Build incompleta (is_functional_build=false) ─────────────────── */
.build-incomplete-banner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(255, 184, 0, 0.08);
    border: 1px solid rgba(255, 184, 0, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 16px 0;
    color: var(--warning, #ffb800);
    font-size: 0.9rem;
    line-height: 1.5;
}
.build-incomplete-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 1px; }
.build-incomplete-hint {
    margin-top: 5px;
    font-size: 0.8rem;
    opacity: 0.75;
    color: var(--text-muted);
}
.build-notes-list {
    margin: 8px 0;
    padding: 10px 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.build-notes-list ul { margin: 0; padding-left: 16px; }

.price-usd {
    font-size: 0.55em;
    font-weight: 400;
    opacity: 0.6;
    margin-left: 8px;
    vertical-align: middle;
    color: var(--text-muted, #aaa);
}

/* ══════════════════════════════════════════════════════════════════
   COMPONENTS SHOWCASE — Bottom overlay on Welcome Screen
   ══════════════════════════════════════════════════════════════════ */

.components-showcase {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 260px;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: opacity 0.5s ease;
}

/* Fade top: blends into the page background */
.showcase-fade-top {
    flex-shrink: 0;
    height: 80px;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, transparent 100%);
}

/* Fade bottom: hides the bottom crop */
.showcase-fade-bottom {
    flex-shrink: 0;
    height: 60px;
    background: linear-gradient(to top, var(--bg-dark) 20%, transparent 100%);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

/* The horizontal row of component images */
.showcase-track {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0;
    padding-bottom: 0;
}

/* Individual component card */
.showcase-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    pointer-events: auto;
    cursor: default;
}

/* Base floating animation */
@keyframes showcaseFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50%       { transform: translateY(-12px) rotate(1deg); }
}
@keyframes showcaseFloatAlt {
    0%, 100% { transform: translateY(-6px) rotate(-1deg); }
    50%       { transform: translateY(6px) rotate(0.5deg); }
}

/* Per-item sizing, offset (partial crop) and animation */
.showcase-item--gpu {
    width: 280px;
    margin-bottom: -80px;
    z-index: 6;
    animation: showcaseFloat 7s ease-in-out infinite;
    animation-delay: 0s;
}
.showcase-item--mobo {
    width: 240px;
    margin-bottom: -100px;
    z-index: 4;
    animation: showcaseFloatAlt 9s ease-in-out infinite;
    animation-delay: -2s;
    margin-left: -40px;
}
.showcase-item--cpu {
    width: 200px;
    margin-bottom: -60px;
    z-index: 7;
    animation: showcaseFloat 6s ease-in-out infinite;
    animation-delay: -1s;
    margin-left: -30px;
    margin-right: -30px;
}
.showcase-item--ram {
    width: 220px;
    margin-bottom: -90px;
    z-index: 4;
    animation: showcaseFloatAlt 8s ease-in-out infinite;
    animation-delay: -3s;
    margin-right: -40px;
}
.showcase-item--ssd {
    width: 180px;
    margin-bottom: -70px;
    z-index: 5;
    animation: showcaseFloat 10s ease-in-out infinite;
    animation-delay: -4s;
}

/* Component image */
.showcase-img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 32px rgba(0, 68, 255, 0.35))
            drop-shadow(0 0 12px rgba(255, 255, 255, 0.05));
    transition: filter 0.4s ease, transform 0.4s ease;
    display: block;
}

.showcase-item:hover .showcase-img {
    filter: drop-shadow(0 12px 48px rgba(0, 120, 255, 0.6))
            drop-shadow(0 0 20px rgba(255, 255, 255, 0.15));
    transform: scale(1.06) translateY(-6px);
}

/* Ambient glow blob behind each component */
.showcase-glow {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 40px;
    border-radius: 50%;
    filter: blur(28px);
    opacity: 0.55;
    pointer-events: none;
    z-index: -1;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.45; transform: translateX(-50%) scale(1); }
    50%       { opacity: 0.7; transform: translateX(-50%) scale(1.2); }
}

.showcase-glow--blue   { background: #0066ff; }
.showcase-glow--cyan   { background: #00d2ff; }
.showcase-glow--teal   { background: #00ffcc; }
.showcase-glow--purple { background: #7b2fff; }

/* Badge label */
.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.showcase-item:hover .showcase-badge {
    opacity: 1;
    transform: translateY(0);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent);
    animation: blinkDot 2s ease-in-out infinite;
}

@keyframes blinkDot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* Hide showcase on questionnaire / loading / results screens */
body.screen-active .components-showcase {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

body.screen-welcome .components-showcase {
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* Responsive: reduce on smaller screens */
@media (max-width: 900px) {
    .components-showcase {
        height: 200px;
    }
    .showcase-item--gpu  { width: 200px; }
    .showcase-item--mobo { width: 170px; }
    .showcase-item--cpu  { width: 150px; }
    .showcase-item--ram  { width: 160px; }
    .showcase-item--ssd  { width: 130px; }
}

@media (max-width: 600px) {
    .components-showcase {
        height: 150px;
    }
    .showcase-item--gpu  { width: 140px; }
    .showcase-item--mobo { width: 120px; margin-left: -20px; }
    .showcase-item--cpu  { width: 110px; margin-left: -15px; margin-right: -15px; }
    .showcase-item--ram  { width: 120px; margin-right: -20px; }
    .showcase-item--ssd  { width: 100px; }
    .showcase-glow { width: 80px; }
}

/* ════════════════════════════════════════════════════════════════════
   Email Budget Modal
   ════════════════════════════════════════════════════════════════════ */

.email-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.email-modal-overlay.email-modal-visible {
    opacity: 1;
}

.email-modal-overlay.email-modal-visible .email-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.email-modal {
    background: linear-gradient(145deg, #0f0f2e, #1a1a3e);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transform: translateY(20px) scale(0.97);
    opacity: 0;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

/* Header */
.email-modal-header {
    padding: 32px 28px 20px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.email-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0 auto 16px;
    color: var(--primary, #ffffff);
}

.email-modal-header h3 {
    font-family: var(--font-display, 'Rajdhani', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-primary, #ffffff);
}

.email-modal-subtitle {
    color: var(--text-muted, rgba(255,255,255,0.5));
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

/* Body */
.email-modal-body {
    padding: 24px 28px;
}

.email-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.email-input-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary, rgba(255,255,255,0.7));
    letter-spacing: 0.3px;
}

.email-input-field {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: var(--text-primary, #ffffff);
    font-family: var(--font-primary, 'Inter', sans-serif);
    font-size: 1rem;
    transition: all 0.25s ease;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.email-input-field:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.email-input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.email-input-field.email-input-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-6px); }
    75%       { transform: translateX(6px); }
}

.email-input-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1.4;
}

/* Status feedback */
.email-send-status {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: fadeInUp 0.3s ease;
}

.email-status-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.email-status-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Footer */
.email-modal-footer {
    padding: 0 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.email-modal-footer .btn {
    width: 100%;
    justify-content: center;
}

/* Responsive */
@media (max-width: 480px) {
    .email-modal {
        border-radius: 16px;
    }
    .email-modal-header {
        padding: 24px 20px 16px;
    }
    .email-modal-body {
        padding: 20px;
    }
    .email-modal-footer {
        padding: 0 20px 24px;
    }
}

