/* YesNoMaybe Styles - v2.69 - Last updated: 2025-12-18 12:40 */
:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-primary: #8b5cf6;
    /* Violet */
    --accent-secondary: #ec4899;
    /* Pink */
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #eab308;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --font-main: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

.app-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 80px 20px 100px;
    /* Top padding for navbar, bottom for scroll */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    /* Default desktop height */
    min-height: 70px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
    max-width: 600px;
    margin: 0 auto;
    margin: 0 auto;
    transition: all 0.3s ease;
    margin: 0 auto;
    transition: all 0.3s ease;
}

/* Desktop Only / Mobile Only utilities */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

/* Mobile Nav Link - specific styling */
.mobile-nav-link {
    font-size: 0.85rem;
    padding: 6px 12px;
    color: var(--text-secondary);
    text-decoration: none;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.nav-btn.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Sections */
.section {
    animation: fadeIn 0.3s ease-out;
}

.section-header {
    margin-bottom: 24px;
    text-align: center;
}

h1,
h2,
h3 {
    font-weight: 600;
    margin-bottom: 8px;
}

/* Welcome Card */
.welcome-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--glass-border);
    margin-top: 40px;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0;
    text-align: left;
}

.step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
}

.step i {
    font-size: 1.2rem;
    color: var(--accent-primary);
    width: 24px;
    text-align: center;
}

/* Buttons */
.primary-btn,
.secondary-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    border: none;
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.1s;
}

.primary-btn {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    margin-top: 12px;
}

.primary-btn:active,
.secondary-btn:active {
    transform: scale(0.98);
}

/* Filters Container */
.filters-container {
    position: sticky;
    top: 120px;
    z-index: 89;
    background: var(--bg-color);
    padding-top: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Filters */
.filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 16px;
    margin-bottom: 16px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) transparent;
    border-bottom: 1px solid var(--glass-border);
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

.filters.expanded {
    flex-wrap: wrap;
    overflow-x: visible;
    height: auto;
}

.filters::-webkit-scrollbar {
    height: 6px;
}

.filters::-webkit-scrollbar-track {
    background: transparent;
}

.filters::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

.filters::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

.filter-btn {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
    cursor: pointer;
    font-family: var(--font-main);
    transition: all 0.2s;
    flex-shrink: 0;
}

.filter-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

/* Expand Button */
.expand-btn {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 2px;
}

.expand-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.expand-btn i {
    transition: transform 0.3s;
}

.expand-btn.expanded i {
    transform: rotate(180deg);
}

/* Question Card */
.question-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.question-category {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.question-id {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 4px;
    border-radius: 4px;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 12px 0;
}

/* Media Toggles */
.media-toggles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.media-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    transition: all 0.2s;
}

.media-btn i {
    font-size: 1.2rem;
}

.media-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Answer Section */
.answer-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.role-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.role-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.role-options {
    display: flex;
    gap: 8px;
}

.option-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--glass-border);
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-btn.yes:hover,
.option-btn.yes.selected,
.option-btn.yes.active {
    border-color: var(--success);
    color: var(--success);
    background: rgba(34, 197, 94, 0.1);
}

.option-btn.no:hover,
.option-btn.no.selected,
.option-btn.no.active {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.option-btn.maybe:hover,
.option-btn.maybe.selected,
.option-btn.maybe.active {
    border-color: var(--warning);
    color: var(--warning);
    background: rgba(234, 179, 8, 0.1);
}

/* Share Section */
.card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.code-display {
    position: relative;
    margin: 16px 0;
}

textarea {
    width: 100%;
    height: 100px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 12px;
    font-family: monospace;
    resize: none;
}

.icon-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Results */
.results-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    padding: 12px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    flex-wrap: wrap;
    justify-content: center;
}

.result-filter-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.result-filter-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.result-filter-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

.filters-container-results {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border-top: 1px solid var(--glass-border);
    margin-top: -12px;
    padding-top: 12px;
}

.results-category-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
    justify-content: flex-start;
    padding-bottom: 4px;
}

.results-category-filters::-webkit-scrollbar {
    display: none;
}

.results-category-filters.expanded {
    flex-wrap: wrap;
    overflow-x: visible;
}

.result-category-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-main);
    font-size: 0.85rem;
    transition: all 0.2s;
}

.result-category-btn.active {
    background: var(--accent-secondary);
    color: white;
    border-color: var(--accent-secondary);
}

.result-category-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

.result-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--glass-border);
}

.result-header {
    margin-bottom: 16px;
}

.result-header h3 {
    font-size: 1rem;
    margin: 0;
}

/* Partner Results - flex layout for side-by-side comparison */
.result-content-partner {
    display: flex;
    flex-direction: row;
    /* Row layout: comparisons on left, percentage on right */
    gap: 20px;
    align-items: flex-start;
}

/* Global Results - full width for bar charts */
.result-content-global {
    width: 100%;
}

.result-comparisons {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comparison-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comparison-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 0;
}

.comparison-result {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
}

.comparison-result span {
    font-size: 0.9rem;
}

.result-percentage {
    flex-shrink: 0;
}

.percentage-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    border: 3px solid;
}

.percentage-circle.percentage-100 {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.percentage-circle.percentage-50 {
    background: rgba(234, 179, 8, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.percentage-circle.percentage-0 {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.result-percentage {
    align-self: flex-end;
}

/* Increase top padding for mobile to account for taller navbar */
.app-container {
    padding-top: 140px;
}

/* Visibility Utilities */
.mobile-only {
    display: block !important;
}

.desktop-only {
    display: none !important;
}

/* Mobile Navigation */
.navbar {
    height: auto;
    flex-wrap: wrap;
    padding: 8px 16px;
    gap: 8px;
}

.mobile-nav-link {
    margin-left: auto;
    /* Push to right */
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
}

.nav-links {
    width: 100%;
    order: 3;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    justify-content: space-between;
    gap: 8px;
}

.nav-links .nav-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
}

.nav-links .nav-btn.active {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-primary);
    font-weight: 600;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    max-width: 100%;
    max-height: 90vh;
}

.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

/* Media Toggles Compact */
.media-toggles-compact {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
}

.media-btn-compact {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.media-btn-compact:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

/* Answer Section Vertical */
.answer-section-vertical {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 16px;
}

.role-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Cloud & Sync Styles */
.cloud-connect-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-weight: 600;
    margin-top: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.cloud-connect-btn:hover {
    background: rgba(139, 92, 246, 0.2);
}

.cloud-id-badge {
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-family: monospace;
    letter-spacing: 1px;
    margin-left: auto;
    border: 1px solid var(--glass-border);
}

/* Global Stats Traffic Light Visuals */
.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 700;
    position: relative;
    padding: 4px;
}


.stat-item.yes {
    color: var(--success);
}

.stat-item.no {
    color: var(--danger);
}

.stat-item.maybe {
    color: var(--warning);
}

/* Circle highlight for "My Answer" logic */
.stat-item.my-answer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: currentColor;
    /* Uses the text color (green/red/yellow) */
    opacity: 0.15;
    z-index: 0;
}

/* Slider Component (Am I Normal?) */
.slider-container {
    margin: 20px 0;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.slider-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

input[type=range] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

/* Toggle Switch (Partner vs Global) */
.view-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 24px;
    padding: 4px;
    margin-bottom: 20px;
    position: relative;
}

.toggle-option {
    flex: 1;
    text-align: center;
    padding: 8px;
    cursor: pointer;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s;
    z-index: 1;
}

.toggle-option.active {
    background: var(--accent-primary);
    color: white;
    font-weight: 600;
}

.card-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 16px 0;
}

/* Sticky Filters */
.filter-type-container {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 4px;
    justify-content: center;
}

.filter-type-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: var(--font-main);
    transition: all 0.2s;
}

.filter-type-btn.active {
    background: var(--accent-secondary);
    color: white;
    border-color: var(--accent-secondary);
}

/* Stats Card */
.stats-card {
    margin-bottom: 24px;
    background: rgba(30, 41, 59, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 16px;
    font-size: 0.9rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.stat-item.active {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-primary);
}

.stat-item i {
    font-size: 1.1rem;
}

/* New Match Icons */
.match-thinking {
    color: var(--warning);
}

.match-crying {
    color: var(--danger);
}

/* Import My Answers */
#import-my-answers-container {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

.link-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    text-decoration: underline;
    cursor: pointer;
    font-size: 0.9rem;
    margin-top: 12px;
    display: block;
    width: 100%;
    text-align: center;
}

/* Footer */
.app-footer {
    margin-top: 60px;
    padding: 32px 20px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-copyright i {
    color: var(--accent-secondary);
}

/* Static Pages */
.static-page-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
}

.static-page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.static-page-content h2 {
    font-size: 1.5rem;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.static-page-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.static-page-content ul {
    margin: 16px 0 16px 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.static-page-content ul li {
    margin-bottom: 8px;
}

.static-page-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.static-page-content a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.static-page-content a:hover {
    color: var(--accent-secondary);
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 32px;
}

/* About Page Specific */
.about-hero {
    text-align: center;
    padding: 40px 0;
}

.hero-icon {
    font-size: 4rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 500;
}

.how-it-works {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 32px 0;
}

.step-card {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.step-card h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.step-card p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Sponsor Page Specific */
.sponsor-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 32px 0;
}

.sponsor-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sponsor-card i {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.sponsor-card h3 {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.sponsor-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.sponsor-benefits {
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 16px;
    margin-bottom: 8px;
}

.benefits-list {
    text-align: left;
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.benefits-list li {
    font-size: 0.9rem;
}

.donation-btn {
    margin: 16px 0 8px;
}

.donation-note {
    font-size: 0.75rem;
    color: var(--warning);
    font-style: italic;
}

.other-support {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.support-item {
    text-align: center;
    padding: 20px;
}

.support-item i {
    font-size: 2rem;
    color: var(--accent-secondary);
    margin-bottom: 12px;
}

.support-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.support-item p {
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--glass-border);
}

/* Responsive */
@media (max-width: 600px) {
    .static-page-content h1 {
        font-size: 2rem;
    }

    .sponsor-options {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
}

/* =========================================
   Landing Page Styles (Moved from index.html)
   ========================================= */

.landing-hero {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #6366f1, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.hero-features {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.feature-badge {
    background: var(--card-bg);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature-badge i {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    grid-column: 1 / -1;
}

.surveys-grid {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    grid-template-rows: auto 1fr;
}

.survey-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.survey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.survey-header {
    margin-bottom: 1rem;
}

.survey-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.survey-card.intimacy .survey-icon {
    color: #f43f5e;
}

.survey-card.lifegoals .survey-icon {
    color: #3b82f6;
}

.survey-card.values .survey-icon {
    color: #8b5cf6;
}

.survey-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.question-count {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.survey-description {
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.survey-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--bg-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.survey-btn {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.survey-btn:hover {
    background: var(--accent-secondary);
}

.landing-how-it-works {
    max-width: 1000px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
}

.landing-how-it-works h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
}

.landing-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.landing-step {
    position: relative;
    padding: 2rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.landing-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-primary);
}

.landing-step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 0;
}

.landing-step-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.landing-step h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.landing-step p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.privacy-promise {
    background: var(--card-bg);
    max-width: 800px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
}

.privacy-promise i {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1rem;
}

.privacy-promise h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.privacy-promise p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.landing-link-btn {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.landing-link-btn:hover {
    color: var(--accent-secondary);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .surveys-grid {
        grid-template-columns: 1fr;
    }

    /* Share Page Global Section */
    .global-share-section {
        margin-top: 32px;
        padding-top: 24px;
        border-top: 1px solid var(--glass-border);
    }

    .global-id-card {
        background: linear-gradient(135deg, #8B5CF6, #6D28D9);
        /* Purplish */
        color: white;
        padding: 20px;
        border-radius: var(--radius-md);
        text-align: center;
        margin: 16px 0;
        box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .global-id-number {
        font-family: var(--font-mono);
        font-size: 2rem;
        font-weight: 700;
        letter-spacing: 4px;
        margin: 8px 0;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .global-actions {
        display: flex;
        gap: 12px;
    }

    /* 6-Digit Sync Input */
    .sync-partner-section {
        margin-top: 24px;
        background: var(--card-bg);
        padding: 16px;
        border-radius: var(--radius-md);
        border: 1px solid var(--glass-border);
    }

    .otp-container {
        display: flex;
        gap: 8px;
        justify-content: center;
        margin: 12px 0;
    }

    .otp-input {
        width: 40px;
        height: 48px;
        font-size: 1.2rem;
        text-align: center;
        border-radius: 8px;
        border: 1px solid var(--glass-border);
        background: rgba(0, 0, 0, 0.3);
        color: var(--text-primary);
        font-family: var(--font-mono);
        outline: none;
        transition: all 0.2s;
    }

    .otp-input:focus {
        border-color: var(--accent-primary);
        box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
    }

    /* Chrome/Safari strip spin buttons */
    .otp-input::-webkit-outer-spin-button,
    .otp-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .otp-input[type=number] {
        -moz-appearance: textfield;
        -webkit-appearance: none;
        appearance: none;
    }

    /* Global Stats Bars */
    .global-comparison-row {
        transition: background 0.2s;
    }

    .global-comparison-row:last-child {
        border-bottom: none !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* Success/Warning/Danger Backgrounds for Bars */
    :root {
        --success-bg: rgba(76, 175, 80, 0.15);
        --warning-bg: rgba(255, 193, 7, 0.15);
        --danger-bg: rgba(244, 67, 54, 0.15);
    }

    /* Ensure Nav Buttons in Toggle look active */
    .nav-btn.toggle-option.active {
        background: var(--accent-primary);
        color: white;
        border-color: var(--accent-primary);
        box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
    }

    .nav-btn.toggle-option {
        background: var(--card-bg);
        border: 1px solid var(--glass-border);
        color: var(--text-secondary);
        font-weight: 600;
    }

    /* Global Stats Design (User Request) */
    .global-role-row {
        margin-bottom: 20px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--glass-border);
    }

    .global-role-row:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .global-question-text {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 12px;
        color: var(--text-primary);
    }

    .global-stats-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .stat-group {
        display: flex;
        gap: 12px;
    }

    .stat-circle {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        /* Circle */
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        font-weight: 600;
        border: 2px solid transparent;
        color: var(--text-secondary);
        background: rgba(255, 255, 255, 0.05);
        /* Subtle default bg */
    }

    /* Specific Colors */
    .y-circle {
        color: var(--success);
        border-color: var(--success);
    }

    .n-circle {
        color: var(--danger);
        border-color: var(--danger);
    }

    .m-circle {
        color: var(--warning);
        border-color: var(--warning);
    }

    /* Selected State (Shaded In) */
    .y-circle.selected {
        background: var(--success);
        color: white;
    }

    .n-circle.selected {
        background: var(--danger);
        color: white;
    }

    .m-circle.selected {
        background: var(--warning);
        color: #333;
    }

    /* Dark text for contrast on yellow */

    .my-answer-display {
        font-size: 1.5rem;
        font-weight: 800;
        margin-left: 16px;
        color: var(--text-primary);
    }

    .my-answer-display.Y {
        color: var(--success);
    }

    .my-answer-display.N {
        color: var(--danger);
    }

    .my-answer-display.M {
        color: var(--warning);
    }

    /* --- Global Stats Circles Design (v2.38 - CORRECTED) --- */

    /* Override old styles and create new layout */
    .global-card .role-block {
        margin-bottom: 16px;
        border: 1px solid var(--glass-border);
        border-radius: 12px;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.2);
    }

    .global-card .role-block:last-child {
        margin-bottom: 0;
    }

    .global-card .question-text-row {
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.03);
        font-size: 1rem;
        font-weight: 500;
        color: var(--text-primary);
    }

    .global-card .stats-content-row {
        padding: 16px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .global-card .global-group {
        display: flex;
        gap: 16px;
        align-items: flex-start;
    }

    .global-card .stat-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
    }

    .global-card .stat-item.inactive {
        opacity: 0.5;
    }

    .global-card .stat-circle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.9rem;
        border: 2px solid transparent;
        transition: all 0.3s;
    }

    .global-card .stat-pct {
        font-size: 0.8rem;
        font-weight: 600;
    }

    /* Y Colors */
    .global-card .stat-item.y .stat-circle {
        border-color: var(--success);
        color: var(--success);
    }

    .global-card .stat-item.y .stat-pct {
        color: var(--success);
    }

    .global-card .stat-item.y.active .stat-circle {
        background: var(--success);
        color: #1e2028;
    }

    /* N Colors */
    .global-card .stat-item.n .stat-circle {
        border-color: var(--danger);
        color: var(--danger);
    }

    .global-card .stat-item.n .stat-pct {
        color: var(--danger);
    }

    .global-card .stat-item.n.active .stat-circle {
        background: var(--danger);
        color: white;
    }

    /* M Colors */
    .global-card .stat-item.m .stat-circle {
        border-color: var(--warning);
        color: var(--warning);
    }

    .global-card .stat-item.m .stat-pct {
        color: var(--warning);
    }

    .global-card .stat-item.m.active .stat-circle {
        background: var(--warning);
        color: #1e2028;
    }

    /* "You" Section */
    .global-card .my-answer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        border-left: 1px solid var(--glass-border);
        padding-left: 16px;
        margin-left: 16px;
    }

    .global-card .my-label {
        font-size: 0.75rem;
        color: var(--text-secondary);
        font-weight: 500;
    }

}

/* ========================================
   Bar Chart Global Stats Design
   ======================================== */

/* Role blocks */
.global-card .role-block {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
}

.global-card .role-block.giver-block {
    background: rgba(0, 0, 0, 0.6);
}

.global-card .role-block.receiver-block {
    background: rgba(0, 0, 0, 0.4);
    /* Darker background */
}

.global-card .role-block:last-child {
    margin-bottom: 0;
}

/* Question text - MUST span full width above bar charts */
.global-card .question-text-row {
    width: 100%;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    box-sizing: border-box;
}

/* Bar row container - 3 COLUMN LAYOUT */
.global-card .bar-row {
    display: grid;
    grid-template-columns: auto 50% 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 1px;
    min-height: 24px;
}

.global-card .bar-row:last-child {
    margin-bottom: 0;
}

/* Column 1: Bar label (Y, N, M) - auto width */
.global-card .bar-label {
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    color: var(--text-primary);
}

/* Column 2: Bar container - exactly 50% of total width */
.global-card .bar-container {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

/* Column 3: Bar stats - takes remaining space */
.global-card .bar-stats {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Bars */
.global-card .bar {
    height: 100%;
    transition: width 0.3s ease;
    min-width: 2px;
    /* Show at least a tiny bar even at 0% */
}

.global-card .bar-yes {
    background: var(--success);
}

.global-card .bar-no {
    background: var(--danger);
}

.global-card .bar-maybe {
    background: var(--warning);
}

/* Percentage and count text */
.global-card .bar-percentage,
.global-card .bar-count {
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.global-card .yes-text {
    color: var(--success);
}

.global-card .no-text {
    color: var(--danger);
}

.global-card .maybe-text {
    color: var(--warning);
}

/* "You" indicator */
.global-card .you-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
    color: var(--text-primary);
}

.global-card .you-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid var(--text-primary);
}

/* Fill the circle with color based on answer type */
.global-card .you-indicator.yes .you-circle {
    background: var(--success);
    border-color: var(--success);
}

.global-card .you-indicator.no .you-circle {
    background: var(--danger);
    border-color: var(--danger);
}

.global-card .you-indicator.maybe .you-circle {
    background: var(--warning);
    border-color: var(--warning);
}

/* Go to Top Button */
.go-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    background: var(--accent-primary);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
}

.go-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.go-to-top:hover {
    transform: translateY(-5px);
    background: var(--accent-secondary);
}

/* Message Sharing Components */
.share-container {
    padding: 20px 0;
}

.share-section {
    margin-bottom: 40px;
}

.share-section h2 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.share-section p {
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.message-grid {
    display: grid;
    gap: 16px;
}

.message-box {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 16px;
    position: relative;
    transition: all 0.2s;
}

.message-box:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.message-text {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.message-meta {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
}

.copy-btn.copied {
    background: var(--success);
    border-color: var(--success);
}

.heart-icon {
    color: var(--danger);
}

/* Category Filter Pill Stats */
.pill-stats {
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    opacity: 0.9;
    font-weight: normal;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.filter-btn.active .pill-stats {
    background: rgba(255, 255, 255, 0.2);
}
/* Sync Indicator */
.sync-indicator { width: 32px; height: 32px; background: rgba(99, 102, 241, 0.2); border: 1px solid var(--glass-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent-primary); cursor: pointer; transition: all 0.2s; margin: 0 8px; font-size: 1rem; } .sync-indicator:hover { background: var(--accent-primary); color: white; transform: scale(1.1); } .sync-indicator.pulse { animation: sync-pulse 2s infinite; } @keyframes sync-pulse { 0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(99, 102, 241, 0); } 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); } }

.you-indicator.unsynced { opacity: 0.7; font-style: italic; } .you-indicator.last-known { opacity: 0.5; margin-left: 10px; font-size: 0.8rem; }


.gradient-divider { height: 1px; background: linear-gradient(to right, transparent, var(--accent-primary), var(--accent-secondary), transparent); margin: 40px 0; opacity: 0.5; border: none; } .global-share-section h3 { font-size: 1.5rem; margin-bottom: 12px; color: var(--text-primary); } .danger-btn { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #ef4444 !important; transition: all 0.2s; } .danger-btn:hover { background: #ef4444; color: white !important; }

