* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(160deg, #0c0c0f 0%, #141419 50%, #0f0f12 100%);
    min-height: 100vh;
    color: #fafafa;
    -webkit-font-smoothing: antialiased;
}

.pricing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.pricing-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.pricing-brand-pill,
.pricing-header .pricing-brand-wrap {
    justify-self: start;
}

.pricing-brand-wrap {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
    border: none;
    outline: none;
}

.pricing-brand-wrap:hover,
.pricing-brand-wrap:focus,
.pricing-brand-wrap:visited {
    text-decoration: none;
    border: none;
    outline: none;
}

.pricing-brand-wrap:hover {
    opacity: 0.95;
}

.pricing-header .pricing-auth-links {
    grid-column: 3;
    justify-self: end;
}

.pricing-header-logo {
    justify-self: start;
}

.pricing-header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.pricing-header .pricing-dashboard {
    justify-self: end;
}

/* Auth pages (login, signup): same placement — logo and buttons centered together */
.pricing:has(.pricing-main-auth) .pricing-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
}

.pricing:has(.pricing-main-auth) .pricing-header .pricing-brand-wrap {
    justify-self: unset;
}

.pricing:has(.pricing-main-auth) .pricing-header .pricing-auth-links {
    grid-column: unset;
    justify-self: unset;
    margin-left: 0;
}

/* Membership page: same placement — logo, badge, buttons centered together */
.pricing-header:has(.pricing-header-center) {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
}

.pricing-header:has(.pricing-header-center) .pricing-brand-wrap {
    justify-self: unset;
}

.pricing-header:has(.pricing-header-center) .pricing-auth-links,
.pricing-header:has(.pricing-header-center) .pricing-dashboard {
    grid-column: unset;
    justify-self: unset;
    margin-left: 0;
}

/* Auth pages: stacked and centered on mobile */
@media (max-width: 768px) {
    .pricing:has(.pricing-main-auth) .pricing-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        padding: 1.25rem 1rem 0;
    }
    .pricing:has(.pricing-main-auth) .pricing-header .pricing-brand-wrap {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    .pricing:has(.pricing-main-auth) .pricing-header .pricing-auth-links {
        grid-column: unset;
        justify-self: unset;
        margin-left: 0;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Membership page: stacked and centered on mobile */
    .pricing-header:has(.pricing-header-center) {
        flex-direction: column;
        padding: 1.25rem 1rem 0;
    }
    .pricing-header:has(.pricing-header-center) .pricing-brand-wrap {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    .pricing-header:has(.pricing-header-center) .pricing-header-center {
        display: flex;
        justify-content: center;
    }
    .pricing-header:has(.pricing-header-center) .pricing-auth-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

/* Brand pill (header + footer) — matches dashboard topbar, Outfit font */
.pricing-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #1a1a1a;
    border-radius: 9999px;
    text-decoration: none;
    color: #fafafa;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.pricing-brand-pill:hover {
    opacity: 0.95;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.pricing-brand-text,
.pricing-brand-by {
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: #e4e4e7;
}

.pricing-brand-pill:hover .pricing-brand-text,
.pricing-brand-pill:hover .pricing-brand-by {
    color: #fafafa;
}

.pricing-brand-adamate-logo {
    height: 16px;
    width: auto;
    opacity: 0.9;
    display: block;
    transition: opacity 0.2s ease;
}

.pricing-brand-pill:hover .pricing-brand-adamate-logo {
    opacity: 1;
}

.pricing-dashboard {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #18181b;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 9999px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pricing-dashboard:hover {
    color: #0f0f12;
    background: #f4f4f5;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.pricing-auth-links {
    display: flex;
    gap: 0.5rem;
}

.pricing-main {
    flex: 1;
    padding: 4rem 2rem 5rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 769px) {
    .pricing-main {
        padding: 2rem 2rem 3rem;
    }
}

.pricing-hero {
    text-align: center;
    margin-bottom: 3.5rem;
}

@media (min-width: 769px) {
    .pricing-hero {
        margin-bottom: 2rem;
    }
}

/* Auth pages: hero text closer to form */
.pricing-main-auth .pricing-hero {
    margin-bottom: 1.25rem;
}

.pricing-main-auth .pricing-hero p {
    margin-bottom: 0.5rem;
}

@media (min-width: 769px) {
    .pricing-main-auth .pricing-hero {
        margin-bottom: 1rem;
    }
}

.pricing-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    background: linear-gradient(180deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-hero p {
    font-size: 1.125rem;
    color: #71717a;
    margin-bottom: 1.5rem;
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 100px;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.08);
}

.pricing-badge-plan {
    font-weight: 700;
    color: #4ade80;
    letter-spacing: 0.02em;
}

.pricing-badge-usage {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #86efac;
    padding: 0.2rem 0.5rem;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 6px;
}

.pricing-badge-header {
    flex-shrink: 0;
    padding: 0.4rem 0.875rem;
    font-size: 0.8125rem;
    gap: 0.625rem;
    justify-content: center;
    text-align: center;
}

.pricing-badge-header .pricing-badge-usage {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 800px) {
    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

.pricing-card {
    position: relative;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(63, 63, 70, 0.8);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: rgba(113, 113, 122, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}

.pricing-card.featured {
    border-color: rgba(59, 130, 246, 0.6);
    background: linear-gradient(180deg, rgba(30, 58, 95, 0.4) 0%, rgba(24, 24, 27, 0.9) 100%);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.pricing-card.featured:hover {
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.5), 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}

.pricing-card.current {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.3);
}

.pricing-card-ribbon {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 100px;
}

.pricing-card-header {
    margin-bottom: 1.5rem;
}

.pricing-card-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fafafa;
}

.pricing-card-price {
    margin-bottom: 0.5rem;
}

.pricing-card-price .amount {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fafafa;
}

.pricing-card-price .period {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #71717a;
}

.pricing-card-sms {
    font-size: 0.875rem;
    color: #a1a1aa;
}

.pricing-card-mms {
    font-size: 0.8125rem;
    color: #71717a;
    margin-top: 0.25rem;
}

.pricing-card-mms-off {
    color: #52525b;
    font-style: italic;
}

.pricing-card-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-card-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
}

.pricing-card-features li.on {
    color: #e4e4e7;
}

.pricing-card-features .icon-check {
    width: 16px;
    height: 16px;
    color: #22c55e;
    flex-shrink: 0;
}

.pricing-card-features .icon-off {
    width: 16px;
    text-align: center;
    color: #52525b;
    flex-shrink: 0;
}

.pricing-card-features li.off {
    color: #52525b;
}

.pricing-card-cta {
    margin-top: auto;
}

.btn {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.45),
                0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-current {
    background: rgba(63, 63, 70, 0.8);
    color: #a1a1aa;
    cursor: default;
    box-shadow: none;
}

.btn-current::before {
    display: none;
}

.btn-ghost {
    background: transparent;
    color: #71717a;
    border: 1px solid rgba(63, 63, 70, 0.8);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-ghost::before {
    display: none;
}

.btn-ghost:hover {
    background: rgba(63, 63, 70, 0.4);
    color: #e4e4e7;
    border-color: rgba(113, 113, 122, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pricing-footer {
    padding: 2rem;
    text-align: center;
}


/* Checkout modal — professional */
.checkout-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    padding: 2rem;
}

.checkout-overlay.active {
    opacity: 1;
    visibility: visible;
}

.checkout-modal {
    background: #18181b;
    border: 1px solid rgba(82, 82, 91, 0.5);
    border-radius: 12px;
    max-width: 720px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (min-width: 1024px) {
    .checkout-modal {
        max-width: 920px;
    }
}

.checkout-overlay.active .checkout-modal {
    opacity: 1;
    transform: translateY(0);
}

.checkout-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #27272a;
}

.checkout-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #71717a;
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s, color 0.15s;
}

.checkout-close:hover {
    background: #27272a;
    color: #fafafa;
}

.checkout-modal-inner {
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    gap: 0;
    min-height: 0;
}

@media (max-width: 640px) {
    .checkout-modal-inner {
        grid-template-columns: 1fr;
    }
}

.checkout-summary {
    padding: 2rem 2rem 2.25rem;
    background: #1c1c1f;
    border-right: 1px solid #27272a;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 769px) {
    .checkout-summary {
        padding: 1.25rem 1.5rem 1.5rem;
        gap: 1rem;
    }
}

@media (max-width: 640px) {
    .checkout-summary {
        border-right: none;
        border-bottom: 1px solid #27272a;
        padding: 1.75rem 1.5rem;
    }
}

.checkout-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #71717a;
    width: fit-content;
}

.checkout-title {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fafafa;
    line-height: 1.3;
}

.checkout-plan-card {
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.checkout-plan-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fafafa;
}

.checkout-plan-price {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #e4e4e7;
}

.checkout-plan-sms {
    font-size: 0.8125rem;
    color: #71717a;
}

.checkout-summary-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkout-summary-features li {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: #a1a1aa;
}

.checkout-summary-features li svg {
    width: 14px;
    height: 14px;
    color: #22c55e;
    flex-shrink: 0;
}

.checkout-secure {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.6875rem;
    color: #52525b;
    letter-spacing: 0.02em;
}

.checkout-secure svg {
    flex-shrink: 0;
    color: #52525b;
}

.checkout-form {
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow-y: auto;
}

@media (min-width: 769px) {
    .checkout-form {
        padding: 1.25rem 1.5rem 1.5rem;
        gap: 0.875rem;
    }
}

@media (max-width: 640px) {
    .checkout-form {
        padding: 1.5rem;
        gap: 1.25rem;
    }
}

.checkout-section-hint {
    font-size: 0.875rem;
    color: #a1a1aa;
    margin: -0.25rem 0 0.5rem;
}

@media (min-width: 769px) {
    .checkout-section-hint {
        margin-bottom: 0.375rem;
    }
}

.checkout-section-title {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #71717a;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkout-card-brands {
    display: flex;
    gap: 0.5rem;
}

.card-brand {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #52525b;
}

.checkout-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 769px) {
    .checkout-section {
        gap: 0.375rem;
    }
}

.checkout-row label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 0.375rem;
}

.checkout-row input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 9999px;
    color: #fafafa;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
}

.checkout-row input::placeholder {
    color: #52525b;
}

.checkout-row input:hover {
    border-color: #52525b;
}

.checkout-row input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    background: #27272a;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.checkout-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.checkout-row-full {
    grid-column: 1 / -1;
}

.checkout-section-payment .checkout-card-visual {
    background: #1f1f23;
    border: 1px solid #27272a;
    border-radius: 8px;
    overflow: hidden;
}

.checkout-card-stripe {
    height: 28px;
    background: #27272a;
    margin-bottom: 1rem;
}

.checkout-card-fields {
    padding: 0 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.checkout-card-fields .checkout-row input {
    background: #18181b;
    border-color: #3f3f46;
    border-radius: 9999px;
}

.checkout-card-fields .checkout-row input:focus {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.checkout-card-fields #checkoutCardNumber {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.06em;
}

.checkout-submit {
    margin-top: 0.125rem;
    padding: 0.875rem 1.5rem;
    background: #fafafa;
    color: #18181b;
    border: none;
    border-radius: 9999px;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.checkout-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.checkout-submit:hover:not(:disabled) {
    background: #e4e4e7;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.checkout-submit:hover:not(:disabled)::before {
    left: 100%;
}

.checkout-submit:active:not(:disabled) {
    background: #d4d4d8;
    transform: translateY(0);
}

.checkout-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Manage subscription */
.pricing-manage-link {
    margin-top: 1rem;
    font-size: 0.8125rem;
}

.pricing-manage-link a {
    color: #52525b;
    text-decoration: none;
}

.pricing-manage-link a:hover {
    color: #71717a;
    text-decoration: underline;
}

.pricing-manage-section {
    margin-top: 3rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-manage-card {
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(63, 63, 70, 0.8);
    border-radius: 16px;
    padding: 1.5rem 2rem;
}

.pricing-manage-card h2 {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: #fafafa;
}

.pricing-manage-option h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fafafa;
}

.pricing-manage-option p {
    font-size: 0.875rem;
    color: #71717a;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.pricing-manage-easy .btn {
    margin-top: 0;
}

.pricing-manage-divider {
    border: none;
    border-top: 1px solid rgba(63, 63, 70, 0.6);
    margin: 1.25rem 0;
}

.pricing-manage-cancel-link {
    font-size: 0.8125rem;
    color: #71717a;
    text-decoration: none;
}

.pricing-manage-cancel-link:hover {
    color: #a1a1aa;
    text-decoration: underline;
}

/* Cancel overlay */
.cancel-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cancel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cancel-modal {
    position: relative;
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 100%;
}

.cancel-modal .checkout-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.cancel-modal h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #fafafa;
}

.cancel-subtitle {
    font-size: 0.875rem;
    color: #71717a;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.cancel-form-group {
    margin-bottom: 1.25rem;
}

.cancel-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #a1a1aa;
    margin-bottom: 0.5rem;
}

.cancel-form-group .required {
    color: #f87171;
}

.cancel-form-group select,
.cancel-form-group input {
    width: 100%;
    padding: 0.6rem 1rem;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 9999px;
    color: #fafafa;
    font-size: 0.9375rem;
    font-family: inherit;
}

.cancel-form-group input::placeholder,
.cancel-form-group textarea::placeholder {
    color: #52525b;
}

.cancel-form-group textarea {
    width: 100%;
    padding: 0.6rem 1rem;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 1.25rem;
    color: #fafafa;
    font-size: 0.9375rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.cancel-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.cancel-actions .btn-ghost,
.cancel-actions .btn-danger {
    border-radius: 9999px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cancel-actions .btn-ghost {
    background: transparent;
    color: #a1a1aa;
    border: 1px solid #3f3f46;
}

.cancel-actions .btn-ghost:hover {
    background: #27272a;
    color: #fafafa;
    transform: translateY(-1px);
}

.cancel-actions .btn-danger {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.4);
}

.cancel-actions .btn-danger:hover {
    background: rgba(248, 113, 113, 0.3);
    transform: translateY(-1px);
}

/* Toast & Confirm (dark theme) */
.toast {
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    font-size: 0.9375rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: toastIn 0.3s ease;
}
.toast-success { background: linear-gradient(135deg, #22c55e, #047857); }
.toast-error { background: linear-gradient(135deg, #f87171, #991b1b); }
.toast-warning { background: linear-gradient(135deg, #f59e0b, #92400e); }
.toast-info { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.toast-out { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
    to { transform: translateX(100%); opacity: 0; }
}
.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.confirm-dialog {
    background: #18181b;
    border: 1px solid #27272a;
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 400px;
    width: 100%;
}
.confirm-dialog p {
    margin: 0 0 1.25rem 0;
    color: #fafafa;
    line-height: 1.5;
}
.confirm-dialog-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}
.confirm-dialog-actions .btn-secondary,
.confirm-dialog-actions .btn-primary,
.confirm-dialog-actions .btn-danger {
    border-radius: 9999px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.confirm-dialog-actions .btn-secondary {
    background: #27272a;
    color: #a1a1aa;
    border: 1px solid #3f3f46;
}
.confirm-dialog-actions .btn-secondary:hover {
    background: #3f3f46;
    color: #fafafa;
    transform: translateY(-1px);
}
.confirm-dialog-actions .btn-primary {
    background: #3b82f6;
    color: #fff;
    border: none;
}
.confirm-dialog-actions .btn-primary:hover {
    transform: translateY(-1px);
}
.confirm-dialog-actions .btn-danger {
    background: rgba(248, 113, 113, 0.2);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.4);
}
.confirm-dialog-actions .btn-danger:hover {
    transform: translateY(-1px);
}

/* Auth pages (signup, login) — match membership design */
.pricing-main-auth {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
}

@media (min-width: 769px) {
    .pricing-main-auth {
        padding-top: 1.5rem;
    }
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(63, 63, 70, 0.8);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    transition: all 0.3s ease;
}

@media (min-width: 769px) {
    .auth-card {
        padding: 1.5rem;
    }
}

.auth-card:hover {
    border-color: rgba(113, 113, 122, 0.6);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.5);
}

.auth-error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: #fca5a5;
    padding: 0.625rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

@media (min-width: 769px) {
    .auth-error {
        margin-bottom: 0.75rem;
        padding: 0.5rem 1rem;
    }
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 769px) {
    .auth-form {
        gap: 0.875rem;
    }
}

.auth-section {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.auth-section label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #a1a1aa;
}

.auth-section input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: #27272a;
    border: 1px solid #3f3f46;
    border-radius: 9999px;
    color: #fafafa;
    font-size: 0.9375rem;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s;
}

.auth-section input::placeholder {
    color: #52525b;
}

.auth-section input:hover {
    border-color: #52525b;
}

.auth-section input:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    background: #27272a;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.auth-submit {
    margin-top: 0.5rem;
    border-radius: 9999px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Auth card primary button — match dashboard send button (softer blue) */
.auth-card .btn-primary,
.auth-card .auth-submit.btn-primary {
    background: #fff;
    color: #18181b;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.auth-card .btn-primary:hover,
.auth-card .auth-submit.btn-primary:hover {
    background: #f4f4f5;
    color: #0f0f12;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.auth-switch {
    text-align: center;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(63, 63, 70, 0.6);
    font-size: 0.9375rem;
    color: #71717a;
}

@media (min-width: 769px) {
    .auth-switch {
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

.auth-switch a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Multistep signup */
.auth-step {
    animation: authStepIn 0.25s ease;
}

@keyframes authStepIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-step-question {
    font-size: 1.125rem;
    font-weight: 600;
    color: #fafafa;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.auth-form-step .auth-section {
    margin-bottom: 0;
}

.auth-step-error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: #fca5a5;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-step-error[hidden] {
    display: none;
}

.auth-step-divider {
    text-align: center;
    margin: 1.25rem 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #71717a;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 9999px;
    color: #18181b;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-google:hover {
    background: #f4f4f5;
    border-color: rgba(255, 255, 255, 0.6);
    color: #0f0f12;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.auth-google-icon {
    flex-shrink: 0;
}

.auth-step-back {
    display: block;
    width: 100%;
    margin: 1rem auto 0;
    padding: 0.875rem 1.25rem;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 9999px;
    color: #18181b;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.auth-step-back:hover {
    color: #0f0f12;
    background: #f4f4f5;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}
