/* Shared visual system for landing + app views */
:root {
    --primary: #74ACDF;
    --secondary: #003366;
    --navy: #0a192f;
    --background-light: #fcfcfd;
    --chat-bg: #f8fafc;
    --surface-green-start: #075712;
    --surface-green-mid: #0d3d08;
    --surface-green-end: #011a04;
}

html,
body {
    margin: 0;
    padding: 0;
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.dark .custom-scrollbar::-webkit-scrollbar-thumb {
    background: #334155;
}

.chat-bubble-left {
    border-bottom-left-radius: 4px;
}

.chat-bubble-right {
    border-bottom-right-radius: 4px;
}

.chat-container-height {
    height: calc(100vh - 200px);
    min-height: 560px;
}

.panel-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(2, 6, 23, 0.06);
}

.chat-shell {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 1rem;
    box-shadow: 0 1px 2px rgba(2, 6, 23, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.chat-headline {
    letter-spacing: -0.01em;
}

.dark .panel-card,
.dark .chat-shell {
    background: #0f172a;
    border-color: #334155;
}

@media (max-width: 768px) {
    .chat-container-height {
        height: calc(100dvh - 88px);
        min-height: calc(100dvh - 88px);
    }
}

/* Modal/Auth shared */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(4px);
}

.modal-overlay.modal-open {
    display: flex;
}

.modal-shell {
    width: 100%;
    max-width: 28rem;
    margin: 0 1rem;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 24px 48px rgba(2, 6, 23, 0.18);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-title {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
}

.modal-close {
    display: inline-flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: #64748b;
    transition: all 120ms ease;
}

.modal-close:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #e2e8f0;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #94a3b8;
}

.auth-tab-active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.modal-form {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
}

.input-base {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    color: #0f172a;
}

.input-base:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(116, 172, 223, 0.22);
}

.btn-primary {
    width: 100%;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.btn-primary:hover {
    filter: brightness(0.95);
}

.supporter-club-option {
    border-radius: 0.75rem;
    border: 2px solid transparent;
    background: #f8fafc;
    transition: all 120ms ease;
}

.supporter-club-option:hover {
    border-color: rgba(116, 172, 223, 0.45);
}

.dark .modal-shell {
    border-color: #334155;
    background: #0f172a;
}

.dark .modal-header,
.dark .auth-tabs {
    border-color: #334155;
}

.dark .modal-title {
    color: #f8fafc;
}

.dark .modal-close {
    color: #cbd5e1;
}

.dark .modal-close:hover {
    color: #fff;
    background: #1e293b;
}

.dark .form-label {
    color: #cbd5e1;
}

.dark .input-base {
    border-color: #334155;
    background: #1e293b;
    color: #f8fafc;
}

.dark .auth-tab {
    color: #94a3b8;
}

.dark .supporter-club-option {
    background: #1e293b;
}
