/* Static page — no JavaScript required */

.group\/sidebar-wrapper,
[data-slot="sidebar-wrapper"] {
    --sidebar-width: 16rem;
    --sidebar-width-icon: 3rem;
}

.motion-page,
.motion-page--visible {
    opacity: 1;
    animation: none;
}

.motion-reveal,
.motion-reveal--visible {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Toast notifications */
.app-toast-container {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    display: flex;
    width: 100%;
    max-width: 24rem;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    pointer-events: none;
}

@media (min-width: 640px) {
    .app-toast-container {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}

.app-toast {
    pointer-events: auto;
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 1rem;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border: 1px solid transparent;
}

.app-toast--success {
    background-color: #f0fdf4;
    color: #14532d;
    border-color: #bbf7d0;
}

.app-toast--error {
    background-color: #fef2f2;
    color: #7f1d1d;
    border-color: #fecaca;
}

.app-toast__message {
    flex: 1;
}

.app-toast__close {
    flex-shrink: 0;
    border: 0;
    background: transparent;
    padding: 0;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.6;
    color: inherit;
}

.app-toast__close:hover {
    opacity: 1;
}

.promotion-success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.5rem;
    height: 5.5rem;
    margin: 0 auto 1.5rem;
    flex-shrink: 0;
    border-radius: 9999px;
    background-color: #dcfce7;
    color: #16a34a;
    box-shadow: 0 12px 32px -12px rgb(34 197 94 / 0.35);
}

.promotion-success-icon svg {
    width: 2.25rem;
    height: 2.25rem;
}

.promotion-page-loader-bar {
    position: fixed;
    top: 40%;
    right: 0;
    left: 0;
    z-index: 45;
    display: none;
    padding: 0.375rem 0;
    pointer-events: none;
    transform: translateY(-50%);
}

.promotion-page-loader-bar__inner {
    display: flex;
    justify-content: flex-end;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .promotion-page-loader-bar__inner {
        padding: 0 2rem;
    }
}

.promotion-page-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    background: #ffffff;
    box-shadow: 0 4px 12px -6px rgb(15 23 42 / 0.15);
    opacity: 1;
}

.promotion-page-loader__spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgb(24 101 165 / 0.2);
    border-top-color: #1865a5;
    border-radius: 50%;
    opacity: 1;
    animation: promotion-page-loader-spin 0.7s linear infinite;
}

@keyframes promotion-page-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Join community modal */
[x-cloak] {
    display: none !important;
}

.join-community-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.join-community-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgb(15 23 42 / 0.45);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.join-community-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 28rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    border-radius: 1.5rem;
    background: #ffffff;
    padding: 1.75rem 1.5rem 1.5rem;
    box-shadow: 0 36px 80px -36px rgb(15 23 42 / 0.35);
}

@media (min-width: 640px) {
    .join-community-modal__dialog {
        padding: 2rem 2rem 1.75rem;
    }
}

.join-community-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.join-community-modal__close:hover {
    color: #64748b;
    background: #f1f5f9;
}

.join-community-modal__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 0.25rem;
}

.join-community-modal__logo {
    height: 3.5rem;
    width: auto;
    max-width: min(220px, 70vw);
    object-fit: contain;
}

.join-community-modal__title {
    margin-top: 1.25rem;
    font-size: 1.625rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #162032;
}

.join-community-modal__subtitle {
    margin-top: 0.625rem;
    max-width: 20rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #64748b;
}

.join-community-modal__social-proof {
    margin-top: 0.875rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1865a5;
}

.join-community-modal__form {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.join-community-modal__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.join-community-modal__label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #162032;
}

.join-community-modal__input {
    width: 100%;
    height: 3rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    background: #ffffff;
    padding: 0 0.875rem;
    font-size: 0.9375rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.join-community-modal__input::placeholder {
    color: #94a3b8;
}

.join-community-modal__input:focus {
    border-color: #1865a5;
    box-shadow: 0 0 0 3px rgb(24 101 165 / 0.12);
}

.join-community-modal__input--error {
    border-color: #f87171;
}

.join-community-modal__error {
    font-size: 0.8125rem;
    color: #dc2626;
}

.join-community-modal__error--consent {
    margin-top: -0.5rem;
}

.join-community-modal__consent {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    border-radius: 0.625rem;
    background: #eef4fb;
    padding: 0.875rem;
}

.join-community-modal__checkbox {
    margin-top: 0.125rem;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    accent-color: #1865a5;
}

.join-community-modal__consent-label {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #475569;
    cursor: pointer;
}

.join-community-modal__submit {
    display: inline-flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    height: 3rem;
    border: 0;
    border-radius: 0.625rem;
    background: #1865a5;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

.join-community-modal__submit:hover:not(:disabled) {
    background: #1d4ed8;
}

.join-community-modal__submit:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.join-community-modal__footer {
    text-align: center;
    font-size: 0.8125rem;
    color: #94a3b8;
}
