﻿/* UI Components */

.settings-form {
    display: inline-block;
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.settings-form:last-child {
        margin-bottom: 0;
    }

.notification {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    animation: fadeOut 5s forwards;
}

.notification.success {
        background-color: var(--element-hover);
        color: var(--text-primary);
        border: 1px solid var(--border-color);
    }

.notification.error {
        background-color: #ff8200;
        color: #fff;
    }

.notification span {
        font-size: var(--font-size);
        vertical-align: middle;
    }

.centered-panel .settings-form {
        width: auto;
        min-width: 100%;
    }

.about-grid .settings-form h2 {
        font-size: 1rem; 
        color: var(--text-primary);
        font-weight: 400;
        margin-bottom: 1rem;
    }

.about-grid .settings-form p {
            flex-grow: 1; 
        }

.back-section .settings-form {
        display: inline-flex;
        margin-bottom: 0;
    }

/* Notification styling */
/* Modern notification styling with limited width */
/*.notification-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
    height: auto !important;
    min-height: 60px !important;
    background: none !important;
}

.notification-modern {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: slideIn 0.5s ease-out;
    max-width: 450px;*/ /* Limit the width */
    /*width: 90%;*/ /* Take up most of the container but not all */
    /*background-color: var(--bg-primary);*/ /* Use the theme variable instead of white */
/*}

.success-modern {
    border-left: 4px solid #00bf02;*/ /* Signature green */
    /*color: var(--text-primary);
}

.error-modern {
    border-left: 4px solid #e60000;*/ /* Matching red without transparency */
    /*color: var(--text-primary);
}

.notification-icon {
    margin-right: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;*/ /* Prevent icon from shrinking */
/*}

.success-modern .notification-icon {
    color: #00bf02;*/ /* Signature green */
/*}

.error-modern .notification-icon {
    color: #e60000;*/ /* Matching red */
/*}

.notification-content {
    flex: 1;
}

.notification-message {
    font-size: 0.95rem;
    line-height: 1.5;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}*/

/* Auto-hide notification after 6 seconds with a gentler fade */
/*@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    70% {
        opacity: 1;*/ /* Hold full opacity longer */
    /*}

    100% {
        opacity: 0;
    }
}

.notification-modern.auto-hide {
    animation: slideIn 0.5s ease-out, fadeOut 1.5s ease-out 5s forwards;*/ /* Longer fade duration (1.5s) and starts later (5s) */
/*}*/

/* Ocean Profile Markdown Styling - Compact Version */
.ocean-profile {
    line-height: 2;
    font-size: var(--font-size);
    color: var(--text-primary);
    text-align: left !important;
    display: block;
    width: 100%;
}

    .ocean-profile h1,
    .ocean-profile h2,
    .ocean-profile h3,
    .ocean-profile h4 {
        margin: 0.5em 0 0.2em 0;
        font-weight: 600;
        color: var(--text-primary);
        text-align: left !important;
        display: block;
    }

    .ocean-profile h1 {
        font-size: 1.25em;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 0.25em;
        margin-top: 2.5em;
    }

        .ocean-profile h1:first-of-type {
            margin-top: 0;
        }

    .ocean-profile h2 {
        font-size: 1em;
        border-bottom: none;
        font-weight: 500;
        margin-top: 1.5em;
    }

    .ocean-profile h3 {
        font-size: 1em;
        font-weight: 500;
    }

    .ocean-profile h4 {
        font-size: 1em;
    }

    .ocean-profile p {
        margin: 0 0 0.2em 0;
        padding: 0;
        text-align: left !important;
        line-height: 1.3;
    }

    .ocean-profile ul,
    .ocean-profile ol {
        margin: 0.1em 0;
        padding-left: 1.2em;
    }

    .ocean-profile li {
        margin: 0;
        padding: 0;
    }

    .ocean-profile strong {
        font-weight: 600;
        color: var(--text-primary);
    }

    .ocean-profile em {
        font-style: normal;
    }

    .ocean-profile blockquote {
        border-left: 3px solid var(--border-color);
        padding: 0.1em 0 0.1em 0.5em;
        margin: 0.2em 0;
        font-style: normal;
        color: var(--text-secondary);
    }

/* Ensure all content in the profile is left-aligned */
.settings-form div[style*="text-align: center"] .ocean-profile,
.settings-form div[style*="text-align: center"] .ocean-profile * {
    text-align: left !important;
}

/* Target the specific container in Settings.cshtml */
.settings-content .message-text.ocean-profile {
    text-align: left !important;
}

/* Target any parent container that might be centering content */
[style*="text-align: center"] .ocean-profile {
    text-align: left !important;
}



/* Fixed width styling for tier cards */
/*.patient-tier-row {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
}

    .patient-tier-row .tier-card {
        width: 280px !important;
        max-width: 280px !important;
        flex: 0 0 280px !important;
    }

.professional-tier-row {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 1rem !important;
    gap: 1rem !important;
}

    .professional-tier-row .tier-card {
        width: 280px !important;
        max-width: 280px !important;
        flex: 0 0 280px !important;
    }*/



/* Clean 2-Column Settings Layout with proper spacing */
/*.settings-two-column {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 1rem;
    align-items: center;
}*/

.classical-settings-container {
    background-color: var(--bg-primary);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    margin-top: 0rem !important;
    margin-bottom: 1rem;
    width: fit-content; /* Size to contents */
    margin-left: auto; /* Center the container */
    margin-right: auto;
}

.settings-row {
    border-bottom: 1px solid var(--border-color);
}

    .settings-row:last-child {
        border-bottom: none;
    }

.settings-row-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1.5rem 2rem;
}

.settings-row-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    align-items: stretch; /* Both columns stretch to same height */
    padding: 1.5rem 2rem;
}

.settings-label {
    text-align: right;
    border-right: 1px solid var(--border-color);
    padding-right: 1rem;
    display: flex;
    align-items: center; /* Center the text vertically */
    justify-content: flex-end;
    height: 100%; /* Take full height for the border */
    min-height: 100%; /* Ensure it stretches */
}

.settings-section-title {
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--text-primary) !important;
    text-align: right !important;
    line-height: 1 !important;
}

.settings-section-subtitle {
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 0;
    margin-bottom: 0;
    text-align: right;
    line-height: 1.2;
}

.settings-content-area {
    color: var(--text-secondary);
    padding: 0;
    margin: 0;
}

    /* When content area contains forms, don't use flex centering */
    .settings-content-area form {
        width: 100%;
    }

    .settings-content-area .settings-group {
        margin: 0;
    }

    /* Constrain slider widths */
    .settings-content-area input[type="range"] {
        max-width: 300px; /* Limit slider width */
        width: 100%;
    }

    /* Font size and autochat length controls */
    .settings-content-area .settings-group {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    /* Theme and reply length toggles */
    .settings-content-area .theme-toggle {
        max-width: 300px; /* Limit toggle width */
    }

.status-bar .label-frame {
    min-width: fit-content; /* Allow frame to expand as needed */
}

/* Settings-specific spacing - ONLY when status-bar is followed by settings-container */
.status-bar + .settings-container {
    margin-top: 1rem; /* Exact gap only for settings page */
}

.settings-container {
    margin-top: 0; /* Remove all top margin by default */
}

    .settings-container .main-content {
        margin-top: 0; /* Remove any inherited margin */
        padding-top: 0; /* Remove any padding */
    }

.settings-content {
    margin-top: 0; /* Remove top margin */
    padding-top: 0; /* Remove top padding */
}

/*.classical-settings-container {
    margin-top: 0;*/ /* Remove any top margin */
    /*margin-bottom: 1rem;*/ /* Keep bottom margin */
/*}*/

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .settings-row-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .settings-label {
        text-align: center;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 1rem;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .settings-section-title {
        text-align: center !important;
    }
}

/* Membership Settings Container - Single Column Layout */
.membership-settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.classical-settings-container .settings-content-area {
    padding: 2rem;
}

/* Settings Section Subtitle */
.settings-section-subtitle {
    font-size: var(--font-size);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Price Section */
.price-section {
    margin: 0.5rem 0;
}

.membership-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

    .membership-price span {
        font-size: 1rem;
        font-weight: 400;
        color: var(--text-secondary);
    }

/* Membership Action */
.membership-action {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
}

.membership-button {
    min-width: 150px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Current Plan Indicator */
.current-plan-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--bg-tertiary);
}

.current-plan-text {
    font-weight: 600;
    color: var(--text-primary);
}

.current-plan-emoji {
    font-size: 1.2rem;
}

/* No Tiers Message */
.no-tiers-message {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: 0.375rem;
    border: 1px solid var(--border-color);
}

/* Button Group Centering */
.button-group-centered {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .membership-settings-container {
        padding: 0 1rem;
    }

    .membership-price {
        font-size: 1.25rem;
    }
}

.settings-section-title {
    text-align: center !important;
    margin-bottom: .5rem !important;
}

.settings-section-subtitle {
    text-align: center !important;
    margin-bottom: 1rem !important;
}

.tier-card.selected {
    border-color: var(--button);
    background-color: var(--bg-tertiary);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.1), 0 0 25px rgba(37, 99, 235, 0.1);
}

/* Basic tier card structure */
.tier-card {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-primary);
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-color);
    margin-bottom: 1rem;
    box-sizing: border-box;
    overflow: hidden;
    width: 300px;
    max-width: 300px;
}

    .tier-card h3 {
        font-size: 1.25rem;
        color: var(--text-primary);
        margin: 0 0 1rem 0;
        padding: 0;
    }

    .tier-card .price-section {
        display: block;
        text-align: center;
        margin: 0 0 1rem 0;
    }

    /* Selected state */
    .tier-card.selected {
        border-color: var(--button);
        background-color: var(--bg-tertiary);
        box-shadow: 0 0 10px rgba(37, 99, 235, 0.1), 0 0 25px rgba(37, 99, 235, 0.1);
    }

/* Force all tier card elements to behave properly */
.tier-card li,
.tier-card ul li,
div.tier-card ul li,
.settings-container-v2 .tier-card li,
.settings-content .tier-card li {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    width: 260px !important;
    max-width: 260px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: block !important;
    padding-left: 1.5rem !important;
    padding-right: 0.5rem !important;
    margin: 0.5rem 0 !important;
    position: relative !important;
    line-height: 1.3 !important;
    color: var(--text-primary) !important;
}

    .tier-card li:before,
    .tier-card ul li:before {
        content: "•" !important;
        position: absolute !important;
        left: 0.5rem !important;
        top: 0 !important;
        color: var(--text-secondary) !important;
    }

.trait-chart-container {
    /* Forces the container to be a square */
    aspect-ratio: 1 / 1;
    /* Ensures it scales within its parent but doesn't exceed the canvas size */
    width: 100%;
    max-width: 220px;
    /* Let the aspect-ratio property control the height */
    height: auto;
    /* Helps center the canvas if it's smaller than the container */
    margin: 0 auto;
}

    .trait-chart-container canvas {
        /* Make the canvas fill its square container perfectly */
        width: 100% !important;
        height: 100% !important;
    }


/* Spotify Enrichment Opening */
.spotify-opening {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 500px;
}

    .spotify-opening h1 {
        display: block;
        font-size: 1.3rem;
        font-weight: 600;
        margin: 0 0 12px 0;
        color: var(--text-primary);
    }

.spotify-profile {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

    .spotify-profile .profile-label {
        color: var(--text-secondary);
    }

    .spotify-profile .profile-name {
        font-weight: 600;
        color: var(--text-primary);
    }

.spotify-ocean {
    display: block;
    margin-bottom: 12px;
}

.ocean-pill {
    display: inline-block;
    background: var(--signature-blue);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: monospace;
}

.spotify-intro {
    display: block;
    color: var(--text-primary);
    line-height: 1.5;
    margin: 0 0 16px 0;
    font-size: 0.95rem;
}

.spotify-connect {
    display: block;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
}

    .spotify-connect p {
        display: block;
        margin: 0 0 10px 0;
        color: var(--text-secondary);
        font-size: 0.85rem;
    }

.spotify-result {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 0.5rem 0;
}

    .spotify-result h3 {
        margin: 0 0 0.5rem 0;
        color: var(--text-primary);
    }

    .spotify-result p {
        margin: 0.5rem 0;
        color: var(--text-secondary);
    }

    .spotify-result .seed-info {
        font-size: 0.85rem;
        font-style: italic;
        color: var(--text-muted);
    }

    .spotify-result .green-button {
        margin-top: 1rem;
        display: inline-block;
    }

/* Careers Enrichment */
.careers-opening,
.careers-results {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 0.5rem 0;
}

    .careers-opening h1,
    .careers-results h3 {
        margin: 0 0 1rem 0;
        color: var(--text-primary);
        font-size: 1.25rem;
    }

.careers-profile {
    margin-bottom: 0.5rem;
}

.careers-ocean {
    margin-bottom: 1rem;
}

.careers-intro {
    color: var(--text-secondary);
    margin: 0;
}

.results-summary {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.career-match {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

    .career-match:last-child {
        margin-bottom: 0;
    }

.match-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.fit-score {
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
}

    .fit-score.excellent {
        background: rgba(34, 197, 94, 0.2);
        color: #22c55e;
    }

    .fit-score.good {
        background: rgba(59, 130, 246, 0.2);
        color: #3b82f6;
    }

    .fit-score.moderate {
        background: rgba(234, 179, 8, 0.2);
        color: #eab308;
    }

.career-name {
    font-weight: 500;
    color: var(--text-primary);
}

.match-explanation {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.match-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .match-tags .tag {
        background: var(--bg-tertiary, var(--bg-secondary));
        color: var(--text-muted);
        padding: 0.2rem 0.5rem;
        border-radius: 0.25rem;
        font-size: 0.75rem;
    }

.word-cloud-container {
    width: 100%;
    max-width: 650px;
    margin: 1rem auto;
    display: flex;
    justify-content: center;
}

    .word-cloud-container canvas {
        max-width: 100%;
        height: auto;
    }

/* Video Card - Inline chat component */
.video-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    max-width: 140px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

    .video-card:hover {
        border-color: var(--button-hover);
    }

.video-card-thumbnail {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 9 / 16; /* YouTube Shorts are vertical */
}

    .video-card-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.video-card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

.video-card:hover .video-card-play {
    background: rgba(0, 0, 0, 0.85);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card-play svg {
    width: 24px;
    height: 24px;
    fill: white;
    margin-left: 3px; /* Optical centering for play icon */
}

.video-card-title {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Video Lightbox */
.video-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .video-lightbox.active {
        opacity: 1;
        visibility: visible;
    }

.video-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    aspect-ratio: 9 / 16; /* Shorts aspect ratio */
}

    .video-lightbox-content iframe {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 0.5rem;
    }

.video-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .video-lightbox-close svg {
        width: 24px;
        height: 24px;
        stroke: white;
        stroke-width: 2;
    }

    .video-lightbox-close:hover svg {
        stroke: var(--text-secondary);
    }

/* Click outside to close */
.video-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

/* Responsive: constrain height on mobile landscape */
@media (max-height: 500px) {
    .video-lightbox-content {
        max-height: 80vh;
        width: auto;
    }
}

/* Signup Gate - Inline form for anonymous user upgrade */

.signup-gate {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    max-width: 320px;
    margin: 1rem auto;
}

.signup-gate-header {
    text-align: center;
    margin-bottom: 1rem;
}

    .signup-gate-header h3 {
        color: var(--text-primary);
        font-size: 1.1rem;
        font-weight: 500;
        margin: 0 0 0.5rem 0;
    }

    .signup-gate-header p {
        color: var(--text-secondary);
        font-size: 0.9rem;
        margin: 0;
        line-height: 1.4;
    }

.signup-gate-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.signup-gate-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-main);
    box-sizing: border-box;
}

    .signup-gate-input:focus {
        outline: none;
        border-color: var(--button-hover);
    }

    .signup-gate-input::placeholder {
        color: var(--text-secondary);
        opacity: 0.7;
    }

.signup-gate-submit {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--button);
    border: none;
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    transition: background 0.2s ease;
}

    .signup-gate-submit:hover {
        background: var(--button-hover);
    }

    .signup-gate-submit:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.signup-gate-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

    .signup-gate-divider span {
        color: var(--text-secondary);
        font-size: 0.85rem;
    }

    .signup-gate-divider::before,
    .signup-gate-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border-color);
    }

.signup-gate-google {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    font-family: var(--font-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

    .signup-gate-google:hover {
        background: var(--element-hover);
        border-color: var(--button-hover);
    }

    .signup-gate-google svg {
        width: 18px;
        height: 18px;
    }

.signup-gate-skip {
    text-align: center;
    margin-top: 0.5rem;
}

    .signup-gate-skip button {
        background: none;
        border: none;
        color: var(--text-secondary);
        font-size: 0.85rem;
        cursor: pointer;
        text-decoration: underline;
        font-family: var(--font-main);
    }

        .signup-gate-skip button:hover {
            color: var(--text-primary);
        }

/* Modal overlay for the gate */
.signup-gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .signup-gate-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .signup-gate-overlay .signup-gate {
        max-width: 360px;
        margin: 0;
        animation: slideUp 0.3s ease;
    }

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close button for modal */
.signup-gate-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

    .signup-gate-close:hover {
        color: var(--text-primary);
    }

    .signup-gate-close svg {
        width: 20px;
        height: 20px;
    }

/* Make the gate container relative for close button positioning */
.signup-gate-overlay .signup-gate {
    position: relative;
}
