/* Shared auth / home pages — index, login, register */

:root {
    --auth-bg: #0f1419;
    --auth-card: rgba(22, 27, 34, 0.92);
    --auth-card-border: rgba(255, 255, 255, 0.08);
    --auth-text: #f0f3f6;
    --auth-muted: #8b9aab;
    --auth-accent: #3db8cf;
    --auth-accent-hover: #2fa3b8;
    --auth-accent-soft: rgba(61, 184, 207, 0.15);
    --auth-input-bg: rgba(15, 20, 26, 0.6);
    --auth-input-border: rgba(255, 255, 255, 0.1);
    --auth-radius: 12px;
    --auth-radius-sm: 8px;
    --auth-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
    --auth-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.auth-page {
    font-family: var(--auth-font);
    color: var(--auth-text);
    margin: 0;
    min-height: 100vh;
    padding: 24px 16px 48px;
    background-color: var(--auth-bg);
    background-image:
        linear-gradient(160deg, rgba(15, 20, 25, 0.88) 0%, rgba(15, 20, 25, 0.75) 50%, rgba(15, 20, 25, 0.9) 100%),
        url('../images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Top nav */
.nav-links {
    text-align: center;
    margin-bottom: 20px;
}

.nav-links a {
    color: var(--auth-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.45rem 1rem;
    border-radius: var(--auth-radius-sm);
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: var(--auth-text);
    background: rgba(255, 255, 255, 0.06);
}

/* Card */
.auth-page .container.auth-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border: none;
}

.auth-page .form-container {
    background: var(--auth-card);
    border: 1px solid var(--auth-card-border);
    border-radius: var(--auth-radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--auth-shadow);
    backdrop-filter: blur(12px);
}

.auth-page.auth-page--wide .container.auth-container {
    max-width: 480px;
}

.auth-page.auth-page--google-consent .container.auth-container {
    max-width: 520px;
}

.auth-header--compact {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
}

/* Google sign-up consent (post-OAuth) */
.google-consent-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
}

.google-consent-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    min-width: 4.5rem;
}

.google-consent-step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--auth-card-border);
    color: var(--auth-muted);
}

.google-consent-step-label {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--auth-muted);
}

.google-consent-step--done .google-consent-step-icon {
    background: rgba(93, 211, 158, 0.15);
    border-color: rgba(93, 211, 158, 0.4);
    color: #5dd39e;
}

.google-consent-step--done .google-consent-step-label {
    color: #5dd39e;
}

.google-consent-step--current .google-consent-step-icon {
    background: var(--auth-accent-soft);
    border-color: rgba(61, 184, 207, 0.5);
    color: var(--auth-accent);
    box-shadow: 0 0 0 3px rgba(61, 184, 207, 0.15);
}

.google-consent-step--current .google-consent-step-label {
    color: var(--auth-accent);
}

.google-consent-step-line {
    flex: 1 1 2rem;
    height: 2px;
    max-width: 3rem;
    margin: 0 0.35rem 1.1rem;
    background: var(--auth-card-border);
    border-radius: 1px;
}

.google-consent-step-line--active {
    background: linear-gradient(90deg, #5dd39e, var(--auth-accent));
}

.google-account-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--auth-radius-sm);
    border: 1px solid rgba(66, 133, 244, 0.35);
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.12) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.google-account-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #fff;
    color: #4285f4;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.google-account-card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.google-account-card-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--auth-muted);
}

.google-account-card-email {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--auth-text);
    word-break: break-all;
}

.google-account-card-badge {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: #5dd39e;
    white-space: nowrap;
}

.google-account-card-badge i {
    margin-right: 0.2rem;
}

.google-consent-form-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--auth-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.google-consent-form-title i {
    color: var(--auth-accent);
    font-size: 0.95rem;
}

.google-consent-form-lead {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--auth-muted);
}

.legal-consent-block--google {
    margin: 0 0 1.25rem;
    padding: 1.15rem 1.1rem;
    background: rgba(0, 0, 0, 0.22);
    border-color: rgba(61, 184, 207, 0.2);
}

.legal-consent-doc-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--auth-card-border);
}

.legal-doc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--auth-accent);
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(61, 184, 207, 0.35);
    background: var(--auth-accent-soft);
    transition: background 0.15s, border-color 0.15s;
}

.legal-doc-pill:hover {
    background: rgba(61, 184, 207, 0.2);
    border-color: var(--auth-accent);
    color: var(--auth-text);
}

.legal-consent-block--google .terms-checkbox-row + .terms-checkbox-row {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-consent-block--google .terms-checkbox-row label {
    font-size: 0.84rem;
    line-height: 1.45;
}

.google-consent-submit {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.google-consent-cancel {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: none;
}

.google-consent-cancel a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
    color: var(--auth-muted);
}

.google-consent-cancel a:hover {
    color: var(--auth-text);
}

/* Header */
.auth-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--auth-card-border);
}

.brand-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--auth-accent);
    background: var(--auth-accent-soft);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.auth-header h1 {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--auth-text);
    letter-spacing: -0.02em;
}

.auth-header p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--auth-muted);
}

.auth-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
    color: var(--auth-text);
    text-align: center;
}

/* Home features */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: var(--auth-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--auth-card-border);
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
}

.feature-pill i {
    color: var(--auth-accent);
    font-size: 0.75rem;
}

/* Buttons */
.auth-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn {
    display: block;
    width: 100%;
    padding: 0.85rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--auth-radius-sm);
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
    font-family: inherit;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary,
button[type="submit"] {
    background: var(--auth-accent);
    color: #0a1620;
    border: none;
}

.btn-primary:hover,
button[type="submit"]:hover {
    background: var(--auth-accent-hover);
    color: #0a1620;
}

.btn-secondary {
    background: transparent;
    color: var(--auth-accent);
    border: 2px solid var(--auth-accent);
}

.btn-secondary:hover {
    background: var(--auth-accent-soft);
    color: var(--auth-text);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    color: var(--auth-muted);
    border: 1px solid var(--auth-card-border);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--auth-text);
}

.button-group {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.button-group .btn,
.button-group button {
    flex: 1;
}

/* Forms */
.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--auth-muted);
}

.input-group input[type="text"],
.input-group input[type="email"],
.input-group input[type="password"],
.input-group input[type="date"] {
    width: 100%;
    padding: 0.75rem 0.9rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--auth-text);
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: var(--auth-radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 3px var(--auth-accent-soft);
}

.input-group input::placeholder {
    color: #5c6b7a;
}

.text-muted {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: var(--auth-muted) !important;
}

.auth-hint {
    text-align: center;
    margin: -0.5rem 0 1.25rem;
    font-size: 0.9rem;
    color: var(--auth-muted);
    line-height: 1.45;
}

/* Terms */
.terms-scroll-container {
    max-height: 140px;
    overflow-y: auto;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--auth-muted);
    background: var(--auth-input-bg);
    border: 1px solid var(--auth-input-border);
    border-radius: var(--auth-radius-sm);
}

.terms-scroll-container p {
    margin: 0 0 0.5rem;
}

.terms-scroll-container ul {
    margin: 0 0 0.5rem;
    padding-left: 1.25rem;
}

.terms-scroll-container strong {
    color: var(--auth-text);
}

.terms-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.terms-checkbox-row input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
    accent-color: var(--auth-accent);
    cursor: pointer;
}

.legal-consent-block {
    margin: 0.5rem 0 1rem;
    padding: 1rem;
    border: 1px solid var(--auth-card-border);
    border-radius: var(--auth-radius-sm);
    background: rgba(0, 0, 0, 0.15);
}

.legal-consent-intro {
    margin: 0 0 0.5rem;
    font-size: 0.88rem;
    color: var(--auth-muted);
}

.legal-consent-links {
    margin: 0 0 0.85rem;
    padding-left: 1.1rem;
    font-size: 0.88rem;
}

.legal-consent-links a {
    color: var(--auth-accent);
}

.home-footer-sep {
    margin: 0 0.35rem;
    color: var(--auth-muted);
}

.oauth-note-sub {
    margin-top: -0.35rem;
    margin-bottom: 0.75rem;
}

.terms-checkbox-row label {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--auth-muted);
    cursor: pointer;
    margin: 0;
}

.terms-checkbox-row label a,
.terms-checkbox-row label a:link,
.terms-checkbox-row label a:visited {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.terms-checkbox-row label a:hover,
.terms-checkbox-row label a:focus {
    color: var(--auth-text);
}

/* Links */
.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--auth-card-border);
    font-size: 0.9rem;
    color: var(--auth-muted);
}

.auth-switch a {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.forgot-password {
    display: block;
    margin-top: 0.85rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--auth-muted);
    text-decoration: none;
}

.forgot-password:hover {
    color: var(--auth-accent);
}

/* Flash messages */
.flashes {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.flashes li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: var(--auth-radius-sm);
    font-size: 0.9rem;
    line-height: 1.4;
}

.flashes .error {
    background: rgba(220, 53, 69, 0.15);
    border-left: 3px solid #dc3545;
    color: #f8d7da;
}

.flashes .success {
    background: rgba(40, 167, 69, 0.15);
    border-left: 3px solid #28a745;
    color: #d4edda;
}

.flashes .info,
.flashes .warning {
    background: var(--auth-accent-soft);
    border-left: 3px solid var(--auth-accent);
    color: var(--auth-text);
}

/* Google OAuth */
.oauth-section {
    margin-bottom: 0.25rem;
    text-align: center;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: #fff;
    color: #1f2937;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--auth-radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: box-shadow 0.2s, background 0.2s;
}

.btn-google:hover {
    background: #f8fafc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: #111;
}

.btn-google-disabled {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.12);
    color: var(--auth-muted);
    border: 1px dashed var(--auth-input-border);
    border-radius: var(--auth-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.85;
    cursor: not-allowed;
}

.btn-google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.oauth-note {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    color: var(--auth-muted);
    line-height: 1.4;
}

.oauth-note-warn {
    color: #e8b86d;
}

.oauth-note-warn code {
    font-size: 0.72rem;
    color: #f0d9a8;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.oauth-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: var(--auth-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.oauth-divider::before,
.oauth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--auth-card-border);
}

.oauth-divider span {
    padding: 0 0.75rem;
}

/* App pages — landing, settings */
.nav-links.app-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.5rem;
}

.nav-links.app-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-links.app-nav a.is-active {
    color: var(--auth-accent);
    background: var(--auth-accent-soft);
}

.info-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--auth-card-border);
    border-radius: var(--auth-radius-sm);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1rem;
}

.info-card:last-child {
    margin-bottom: 0;
}

.info-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.85rem;
    color: var(--auth-text);
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--auth-card-border);
}

.info-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.45rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.info-row + .info-row {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.info-label {
    color: var(--auth-muted);
    font-weight: 500;
}

.info-value {
    color: var(--auth-text);
    text-align: right;
}

.membership-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: var(--auth-accent-soft);
    color: var(--auth-accent);
}

.membership-badge.is-premium {
    background: rgba(255, 193, 7, 0.2);
    color: #f0c14b;
}

.app-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.app-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-premium {
    background: linear-gradient(135deg, #f0c14b, #e0a800);
    color: #1a1400;
    border: none;
}

.btn-premium:hover {
    background: linear-gradient(135deg, #f5d06a, #e8b820);
    color: #1a1400;
}

.btn-danger {
    background: rgba(220, 53, 69, 0.2);
    color: #f8a5ae;
    border: 1px solid rgba(220, 53, 69, 0.45);
}

.btn-danger:hover {
    background: rgba(220, 53, 69, 0.35);
    color: #fff;
}

form .btn.btn-primary {
    margin-top: 0.35rem;
}

.danger-zone {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--auth-card-border);
}

.danger-zone h3 {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f08a96;
    margin: 0 0 0.35rem;
}

.danger-zone h3 i {
    color: #e85d5d;
    font-size: 0.9rem;
}

.danger-zone .text-muted {
    margin: 0 0 0.85rem;
    font-size: 0.88rem;
}

.input-group input:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.app-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    padding: 1.5rem;
    align-items: center;
    justify-content: center;
}

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

.app-modal {
    width: 100%;
    max-width: 400px;
    background: var(--auth-card);
    border: 1px solid var(--auth-card-border);
    border-radius: var(--auth-radius);
    padding: 1.75rem;
    box-shadow: var(--auth-shadow);
}

.app-modal h3 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    color: #f08a96;
}

.app-modal p {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--auth-muted);
}

.app-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.app-modal-actions .btn {
    flex: 1;
}

/* Home landing page */
.auth-page.auth-page--home {
    padding: 20px 20px 56px;
    overflow-x: hidden;
    max-width: 100%;
}

.auth-page.auth-page--home .container.auth-container {
    width: 100%;
    max-width: min(1080px, 100%);
    overflow-x: hidden;
}

.auth-page.auth-page--home .form-container {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
}

.nav-links.home-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1080px;
    margin: 0 auto 2.5rem;
    text-align: left;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--auth-text);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.home-brand:hover {
    color: var(--auth-text);
    background: transparent;
}

.home-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--auth-accent), #2a8fa3);
    color: #0a1620;
    font-size: 1.1rem;
    font-weight: 800;
}

.home-nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem 1rem;
}

.home-nav-links a {
    font-size: 0.9rem;
}

.home-nav-cta {
    background: var(--auth-accent) !important;
    color: #0a1620 !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--auth-radius-sm) !important;
    font-weight: 600 !important;
}

.home-nav-cta:hover {
    background: var(--auth-accent-hover) !important;
    color: #0a1620 !important;
}

.home-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 3rem;
    align-items: center;
    margin-bottom: 3.5rem;
}

.home-hero-copy .brand-badge {
    margin-bottom: 1rem;
}

.home-hero-copy h1 {
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
    color: var(--auth-text);
}

.home-lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--auth-muted);
    margin: 0 0 1.25rem;
    max-width: 32rem;
}

.home-audience {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.5rem;
}

.home-audience span {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--auth-muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--auth-card-border);
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.home-hero-actions .btn {
    width: auto;
    min-width: 10.5rem;
    padding: 0.9rem 1.5rem;
}

.home-trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.25rem;
}

.home-trust li {
    font-size: 0.85rem;
    color: var(--auth-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.home-trust i {
    color: var(--auth-accent);
    font-size: 0.8rem;
}

.home-hero-visual {
    position: relative;
}

.home-dashboard {
    background: var(--auth-card);
    border: 1px solid var(--auth-card-border);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--auth-shadow), 0 0 0 1px rgba(61, 184, 207, 0.08);
    transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
}

.home-dashboard-header {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.home-dashboard-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
}

.home-dashboard-header span:first-child {
    background: #ff6b6b;
}

.home-dashboard-header span:nth-child(2) {
    background: #ffc107;
}

.home-dashboard-header span:nth-child(3) {
    background: #51cf66;
}

.home-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.home-stat-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--auth-card-border);
    border-radius: var(--auth-radius-sm);
    padding: 0.9rem 1rem;
}

.home-stat-card--wide {
    grid-column: 1 / -1;
}

.home-stat-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--auth-muted);
    margin-bottom: 0.35rem;
}

.home-stat-value {
    display: block;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--auth-text);
    letter-spacing: -0.02em;
}

.home-stat-unit {
    font-size: 1rem;
    color: var(--auth-muted);
    font-weight: 600;
}

.home-stat-trend {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.home-stat-trend.is-up {
    color: #69db7c;
}

.home-stat-trend.is-neutral {
    color: var(--auth-muted);
    font-weight: 500;
}

.home-payment-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.home-payment-list li {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 0.5rem 0.75rem;
    align-items: center;
    font-size: 0.82rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.home-payment-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.home-payment-list span {
    color: var(--auth-muted);
}

.home-payment-list strong {
    color: var(--auth-text);
    font-weight: 600;
}

.home-payment-list em {
    font-style: normal;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
}

.home-payment-list em.is-paid {
    color: #69db7c;
    background: rgba(105, 219, 124, 0.12);
}

.home-payment-list em.is-pending {
    color: #ffc107;
    background: rgba(255, 193, 7, 0.12);
}

.home-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.home-feature {
    background: var(--auth-card);
    border: 1px solid var(--auth-card-border);
    border-radius: var(--auth-radius);
    padding: 1.5rem 1.35rem;
    transition: border-color 0.2s, transform 0.2s;
}

.home-feature:hover {
    border-color: rgba(61, 184, 207, 0.35);
    transform: translateY(-2px);
}

.home-feature-icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--auth-accent-soft);
    color: var(--auth-accent);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.home-feature h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--auth-text);
}

.home-feature p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--auth-muted);
}

.home-volume-tiers {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.home-volume-tiers-header {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 1.5rem;
}

.home-volume-tiers-header h2 {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--auth-text);
}

.home-volume-tiers-header p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--auth-muted);
}

.home-volume-tier-table {
    margin-top: 0;
}

.home-volume-tiers-note {
    margin: 1rem 0 0;
    font-size: 0.85rem;
    text-align: center;
}

.home-pricing {
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.home-pricing-header--wide {
    text-align: center;
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.home-pricing-layout {
    display: grid;
    grid-template-columns: minmax(260px, 300px) 1fr;
    gap: 1.5rem 2rem;
    align-items: start;
    min-width: 0;
}

.home-pricing-layout > * {
    min-width: 0;
}

.home-pricing-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--auth-text);
    letter-spacing: -0.02em;
}

.home-pricing-header p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--auth-muted);
}

.home-pricing-header strong {
    color: var(--auth-text);
}

.home-pricing-card {
    background: var(--auth-card);
    border: 1px solid rgba(61, 184, 207, 0.35);
    border-radius: var(--auth-radius);
    padding: 1.75rem 1.5rem;
    text-align: center;
    box-shadow: var(--auth-shadow), 0 0 40px rgba(61, 184, 207, 0.08);
}

.home-pricing-trial {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #0a1620;
    background: linear-gradient(135deg, #69db7c, #51cf66);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.65rem;
}

.home-pricing-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--auth-accent);
    margin-bottom: 0.5rem;
}

.home-pricing-formula {
    margin: 0 0 0.35rem;
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--auth-accent);
    letter-spacing: -0.03em;
}

.home-pricing-cap {
    margin: 0 0 1.25rem;
    font-size: 0.92rem;
    color: var(--auth-muted);
    line-height: 1.45;
}

.home-pricing-cap strong {
    color: var(--auth-text);
}

.home-fee-matrix-wrap {
    background: var(--auth-card);
    border: 1px solid var(--auth-card-border);
    border-radius: var(--auth-radius);
    padding: 1.35rem 1.25rem;
    box-shadow: var(--auth-shadow);
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.home-fee-matrix-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--auth-text);
}

.home-fee-matrix-lead {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--auth-muted);
    line-height: 1.45;
}

.home-fee-matrix-scroll {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.home-fee-matrix {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.home-fee-matrix th,
.home-fee-matrix td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--auth-card-border);
    vertical-align: top;
    line-height: 1.4;
}

.home-fee-matrix thead th {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--auth-muted);
    background: rgba(255, 255, 255, 0.03);
}

.home-fee-matrix .th-sub {
    display: block;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #6b7d8f;
    margin-top: 0.15rem;
}

.home-fee-matrix tbody td:first-child {
    font-weight: 600;
    color: var(--auth-text);
    white-space: nowrap;
}

.home-fee-matrix td.col-qmetrics {
    background: var(--auth-accent-soft);
    color: var(--auth-accent);
}

.home-fee-matrix td.col-qmetrics strong {
    font-size: 1rem;
    color: var(--auth-text);
}

.home-fee-matrix .cell-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--auth-accent);
    margin-left: 0.25rem;
}

.home-fee-matrix tbody tr:last-child td {
    border-bottom: none;
}

.home-fee-matrix-disclaimer {
    margin: 0.85rem 0 0;
    font-size: 0.72rem;
    line-height: 1.45;
    color: var(--auth-muted);
}

.home-fee-matrix-disclaimer--top {
    margin: 0 0 0.75rem;
}

.home-pricing-features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    text-align: left;
}

.home-pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--auth-text);
    padding: 0.35rem 0;
}

.home-pricing-features i {
    color: var(--auth-accent);
    margin-top: 0.15rem;
    font-size: 0.75rem;
}

.home-pricing-card .btn {
    width: 100%;
}

.home-stripe-inline {
    white-space: nowrap;
}

.home-stripe-inline .fab.fa-stripe {
    color: #635bff;
    font-size: 1.05em;
    vertical-align: -0.08em;
    margin-right: 0.1em;
}

.home-pricing-note {
    margin: 0.85rem 0 0;
    font-size: 0.75rem;
    color: var(--auth-muted);
    line-height: 1.4;
}

.home-bottom-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(61, 184, 207, 0.12), rgba(61, 184, 207, 0.04));
    border: 1px solid rgba(61, 184, 207, 0.25);
    border-radius: var(--auth-radius);
    padding: 2.25rem 1.5rem;
    margin-bottom: 2rem;
}

.home-bottom-cta h2 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--auth-text);
}

.home-bottom-cta p {
    margin: 0 0 1.25rem;
    color: var(--auth-muted);
    font-size: 0.95rem;
}

.home-bottom-cta .btn {
    display: inline-block;
    width: auto;
    min-width: 11rem;
}

.home-footer {
    text-align: center;
    padding-top: 0.5rem;
}

.home-powered-by-stripe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem !important;
    font-size: 0.78rem;
    color: var(--auth-muted);
    letter-spacing: 0.02em;
}

.home-powered-by-stripe .fab.fa-stripe {
    font-size: 2.1rem;
    color: #635bff;
    line-height: 1;
}

.home-footer p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--auth-muted);
}

.home-footer-legal {
    margin-bottom: 0.5rem !important;
}

.home-footer-legal a {
    color: var(--auth-muted);
    text-decoration: none;
    font-size: 0.8rem;
}

.home-footer-legal a:hover {
    color: var(--auth-accent);
    text-decoration: underline;
}

.legal-document {
    max-width: 42rem;
    margin: 0 auto 2rem;
    padding: 1.5rem 1.25rem 0;
    text-align: left;
}

.legal-document-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--auth-text);
}

.legal-document h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: var(--auth-text);
}

.legal-document p,
.legal-document li {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--auth-muted);
    margin: 0 0 0.75rem;
}

.legal-document ul {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
}

.legal-document code {
    font-size: 0.85em;
    color: var(--auth-accent);
}

.legal-document-back {
    margin-top: 2rem !important;
}

.legal-document-back a {
    color: var(--auth-accent);
    text-decoration: none;
    font-weight: 600;
}

.legal-document-back a:hover {
    text-decoration: underline;
}

.legal-document-important {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    font-size: 0.88rem;
    line-height: 1.55;
    border-radius: var(--auth-radius-sm);
    background: rgba(61, 184, 207, 0.08);
    border: 1px solid rgba(61, 184, 207, 0.25);
    color: var(--auth-text);
}

.legal-caps {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--auth-text);
}

/* Storefront (public pay page) */
.auth-page.auth-page--storefront {
    padding-top: 12px;
}

.auth-page.auth-page--storefront .container.auth-container {
    max-width: 560px;
}

.storefront-nav {
    margin-bottom: 1.25rem;
}

.storefront-hero {
    text-align: center;
    margin-bottom: 1.25rem;
}

.storefront-hero h1 {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 0.5rem 0 0.35rem;
    letter-spacing: -0.02em;
}

.storefront-tagline {
    margin: 0;
    font-size: 0.9rem;
    color: var(--auth-muted);
}

.storefront-card {
    margin-top: 0;
}

.storefront-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: var(--auth-radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.storefront-alert--warn {
    background: rgba(255, 193, 7, 0.12);
    border: 1px solid rgba(255, 193, 7, 0.35);
    color: #f0d78c;
}

.storefront-offerings {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.storefront-offering-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--auth-card-border);
    border-radius: var(--auth-radius-sm);
}

.storefront-offering-info strong {
    display: block;
    font-size: 1.05rem;
    color: var(--auth-text);
    margin-bottom: 0.25rem;
}

.storefront-offering-info p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--auth-muted);
    line-height: 1.45;
}

.storefront-offering-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.storefront-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--auth-accent);
}

.btn-pay {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.9rem;
}

.storefront-offering-action form {
    margin: 0;
}

.storefront-empty {
    text-align: center;
    padding: 2rem 1rem 1.5rem;
}

.storefront-empty-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--auth-accent-soft);
    color: var(--auth-accent);
    font-size: 1.35rem;
}

.storefront-empty h2 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    color: var(--auth-text);
}

.storefront-empty p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--auth-muted);
    line-height: 1.55;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

.storefront-footer-note {
    text-align: center;
    margin: 1.25rem 0 0;
    font-size: 0.8rem;
    color: var(--auth-muted);
}

.storefront-footer-note i {
    margin-right: 0.35rem;
    color: var(--auth-accent);
}

.storefront-type-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #f0a8c8;
    background: rgba(240, 168, 200, 0.12);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.35rem;
    vertical-align: middle;
}

.storefront-offering-card--donate .storefront-offering-action {
    flex-direction: column;
    align-items: stretch;
}

.storefront-donate-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    min-width: 10rem;
}

.storefront-donate-input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--auth-input-border);
    border-radius: var(--auth-radius-sm);
    background: var(--auth-input-bg);
    overflow: hidden;
}

.storefront-donate-input-wrap:focus-within {
    border-color: var(--auth-accent);
}

.storefront-donate-currency {
    padding: 0.55rem 0.65rem;
    font-weight: 600;
    color: var(--auth-accent);
    background: rgba(61, 184, 207, 0.08);
    border-right: 1px solid var(--auth-input-border);
}

.storefront-donate-input-wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0.55rem 0.65rem;
    color: var(--auth-text);
    font-size: 1rem;
}

.storefront-donate-input-wrap input:focus {
    outline: none;
}

.storefront-donate-min {
    display: block;
    text-align: center;
    font-size: 0.78rem;
    margin-top: 0.25rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.merchant-offering-price--donate {
    color: #f0a8c8;
}

.storefront-link-row a {
    color: var(--auth-accent);
    word-break: break-all;
}

/* Dashboard polish */
.auth-page.auth-page--app .container.auth-container {
    max-width: 560px;
}

.info-card--highlight {
    border-color: rgba(61, 184, 207, 0.35);
    background: linear-gradient(145deg, rgba(61, 184, 207, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.info-card--highlight h3 i,
.info-card h3 i {
    margin-right: 0.35rem;
    opacity: 0.85;
}

.pay-page-link,
.pay-page-link:link,
.pay-page-link:visited {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--auth-accent);
    text-decoration: none;
    word-break: break-all;
    margin-bottom: 0.5rem;
}

.pay-page-link:hover {
    text-decoration: underline;
}

.dashboard-tip {
    margin: 0.85rem 0 0;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
    border-radius: var(--auth-radius-sm);
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.25);
    color: #e8d9a8;
}

.dashboard-setup-steps {
    margin: 0.75rem 0 1rem;
    padding-left: 1.25rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--auth-muted);
}

.dashboard-setup-steps li {
    margin-bottom: 0.25rem;
}

.dashboard-step-done {
    color: #51cf66;
    margin-right: 0.35rem;
}

.dashboard-fee-note {
    margin: 0.75rem 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--auth-muted);
}

.dashboard-fee-note a,
.dashboard-fee-note a:link,
.dashboard-fee-note a:visited {
    color: var(--auth-accent);
}

/* App dashboard body links — same accent, not browser purple :visited */
.auth-page--app .form-container a:not(.btn):not(.pay-page-link),
.auth-page--app .form-container a:not(.btn):not(.pay-page-link):link,
.auth-page--app .form-container a:not(.btn):not(.pay-page-link):visited {
    color: var(--auth-accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-page--app .form-container a:not(.btn):not(.pay-page-link):hover,
.auth-page--app .form-container a:not(.btn):not(.pay-page-link):focus {
    color: var(--auth-text);
    text-decoration: underline;
}

.info-card--compact h3 {
    margin-bottom: 0.65rem;
    padding-bottom: 0.5rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.status-pill--ok {
    color: #5dd39e;
}

.status-pill--pending {
    color: #f0d78c;
}

.btn-sm-inline {
    width: auto;
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
}

.merchant-offering-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.merchant-offering-item:last-child {
    border-bottom: none;
}

.merchant-offering-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem 0.75rem;
}

.merchant-offering-price {
    font-weight: 600;
    color: var(--auth-accent);
}

.merchant-offering-hidden {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--auth-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.empty-hint {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--auth-card-border);
}

/* Settings page */
.settings-section-form {
    margin-bottom: 0;
}

.settings-section-form .btn-primary {
    margin-top: 0.25rem;
}

.handle-input-wrap {
    display: flex;
    align-items: stretch;
    border-radius: var(--auth-radius-sm);
    border: 1px solid var(--auth-input-border);
    background: var(--auth-input-bg);
    overflow: hidden;
}

.handle-input-wrap:focus-within {
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 2px var(--auth-accent-soft);
}

.handle-prefix {
    display: flex;
    align-items: center;
    padding: 0 0.65rem 0 0.85rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--auth-accent);
    background: rgba(61, 184, 207, 0.08);
    border-right: 1px solid var(--auth-input-border);
    flex-shrink: 0;
}

.handle-input-wrap input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 0.65rem 0.75rem;
    color: var(--auth-text);
    font-size: 0.95rem;
}

.handle-input-wrap input:focus {
    outline: none;
    box-shadow: none;
}

.handle-status {
    margin: 0.4rem 0 0;
    font-size: 0.85rem;
    min-height: 1.25em;
}

.handle-status.is-ok {
    color: #2e7d4f;
}

.handle-status.is-error {
    color: #c0392b;
}

.pay-page-preview {
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--auth-card-border);
}

.pay-page-preview-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--auth-muted);
    margin-bottom: 0.45rem;
}

.pay-page-preview .pay-page-link {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--auth-accent);
    text-decoration: none;
    word-break: break-all;
    line-height: 1.45;
    margin-bottom: 0.85rem;
    padding: 0.55rem 0.7rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--auth-radius-sm);
    border: 1px solid rgba(61, 184, 207, 0.2);
}

.pay-page-preview .pay-page-link:hover {
    border-color: rgba(61, 184, 207, 0.45);
    background: rgba(61, 184, 207, 0.08);
}

.pay-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pay-page-open-btn,
.pay-page-copy-btn {
    width: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    margin: 0;
}

.pay-page-open-btn {
    flex: 1;
    min-width: 10rem;
    justify-content: center;
}

.settings-inline-form {
    margin-top: 0.65rem;
}

.input-disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.merchant-offerings-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.merchant-offerings-list li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.8rem;
    width: auto;
    display: inline-block;
}

.mt-2 {
    margin-top: 0.75rem;
}

.offering-form .input-group {
    margin-bottom: 0.75rem;
}

.input-group select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--auth-card-border);
    background: rgba(0, 0, 0, 0.25);
    color: var(--auth-text);
    font-size: 0.95rem;
}

.offering-form .btn-primary {
    margin-top: 0.25rem;
}

.dashboard-payments-summary {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--auth-muted);
}

.dashboard-payments-summary strong {
    color: var(--auth-text);
}

.dashboard-payments-scroll {
    overflow-x: auto;
    margin: 0 -0.25rem;
}

.dashboard-payments-table {
    width: 100%;
    min-width: 32rem;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.dashboard-payments-table th {
    text-align: left;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--auth-muted);
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid var(--auth-card-border);
}

.dashboard-payments-table td {
    padding: 0.6rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--auth-text);
    vertical-align: top;
}

.dashboard-payments-table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-payments-date {
    white-space: nowrap;
    color: var(--auth-muted);
    font-size: 0.8rem;
}

.dashboard-payments-amount {
    font-weight: 600;
    white-space: nowrap;
}

.dashboard-payments-note {
    margin: 0.75rem 0 0;
    font-size: 0.78rem;
}

.dashboard-statement-form {
    margin: 0 0 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--auth-card-border);
}

.dashboard-statement-fields {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.dashboard-statement-field {
    margin-bottom: 0;
    flex: 1 1 140px;
    min-width: 120px;
}

.dashboard-statement-field input[type="date"] {
    width: 100%;
}

.dashboard-statement-btn {
    flex: 0 0 auto;
    margin-bottom: 0;
    white-space: nowrap;
}

.dashboard-statement-hint {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
}

.payment-status-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: capitalize;
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
}

.payment-status-succeeded {
    color: #5dd39e;
}

.payment-status-pending {
    color: var(--auth-muted);
}

.auth-page.auth-page--home .flashes {
    margin-bottom: 1.5rem;
}

.home-desktop-only {
    display: block;
}

.home-mobile-only {
    display: none;
}

.home-mobile-cards {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

.home-mobile-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--auth-card-border);
    border-radius: var(--auth-radius-sm);
    padding: 0.85rem 1rem;
}

.home-mobile-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    margin-bottom: 0.35rem;
}

.home-mobile-card-meta {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--auth-text);
}

.home-mobile-card-fee {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--auth-accent);
    white-space: nowrap;
}

.home-mobile-card-vs {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--auth-muted);
}

.home-mobile-card--tier {
    border-color: rgba(61, 184, 207, 0.25);
}

@media (max-width: 900px) {
    .home-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-width: 0;
    }

    .home-hero-copy {
        min-width: 0;
    }

    .home-hero-visual {
        order: 2;
        max-width: 100%;
        overflow: hidden;
    }

    .home-hero-copy {
        order: 1;
    }

    .home-dashboard {
        transform: none;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .home-features {
        grid-template-columns: 1fr;
    }

    .home-pricing-layout {
        grid-template-columns: 1fr;
    }

    .home-volume-tiers-header {
        text-align: left;
    }

    .home-volume-tiers,
    .home-pricing,
    .home-bottom-cta {
        max-width: 100%;
        min-width: 0;
    }

    .nav-links.home-nav-bar {
        max-width: 100%;
    }

}

@media (max-width: 768px) {
    body.auth-page {
        padding: 10px 12px 24px;
    }

    .auth-page .form-container {
        padding: 1.15rem 1rem;
    }

    .auth-header {
        margin-bottom: 0.85rem;
        padding-bottom: 0.75rem;
    }

    .auth-header h1 {
        font-size: 1.2rem;
        margin-bottom: 0.35rem;
    }

    .auth-header p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .brand-badge {
        font-size: 0.62rem;
        padding: 0.25rem 0.55rem;
        margin-bottom: 0.45rem;
    }

    .info-card {
        padding: 0.75rem 0.85rem;
        margin-bottom: 0.6rem;
    }

    .info-card h3 {
        font-size: 0.82rem;
        margin-bottom: 0.45rem;
        padding-bottom: 0.4rem;
    }

    .info-row {
        font-size: 0.8rem;
        padding: 0.3rem 0;
    }

    .dashboard-fee-note,
    .dashboard-tip,
    .dashboard-setup-steps {
        font-size: 0.78rem;
    }

    .dashboard-setup-steps {
        margin: 0.5rem 0 0.65rem;
        padding-left: 1.1rem;
        line-height: 1.45;
    }

    .pay-page-link {
        font-size: 0.82rem;
        margin-bottom: 0.4rem;
    }

    .btn {
        padding: 0.55rem 0.85rem;
        font-size: 0.85rem;
    }

    .home-desktop-only {
        display: none !important;
    }

    .home-mobile-only {
        display: flex !important;
    }

    .home-mobile-cards.home-mobile-only {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
    }

    .home-fee-matrix-wrap .home-mobile-card:nth-child(n + 3) {
        display: none;
    }

    .home-volume-tiers {
        display: none;
    }

    body.auth-page.auth-page--home {
        padding: 8px 10px 20px;
    }

    body.auth-page.auth-page--home .form-container {
        padding: 0;
    }

    body.auth-page.auth-page--home .nav-links.home-nav-bar {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.35rem;
        margin-bottom: 0.65rem;
        padding: 0;
    }

    body.auth-page.auth-page--home .home-brand {
        font-size: 0.9rem;
        gap: 0.4rem;
    }

    body.auth-page.auth-page--home .home-brand-mark {
        width: 1.65rem;
        height: 1.65rem;
        font-size: 0.85rem;
        border-radius: 7px;
    }

    body.auth-page.auth-page--home .home-nav-links {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        margin-left: auto;
        flex-shrink: 0;
    }

    body.auth-page.auth-page--home .home-nav-links a:not(.home-nav-cta) {
        font-size: 0.78rem;
        padding: 0.25rem 0.4rem;
    }

    body.auth-page.auth-page--home .home-nav-cta {
        padding: 0.35rem 0.55rem !important;
        font-size: 0.72rem !important;
        white-space: nowrap;
    }

    .home-br-desktop {
        display: none;
    }

    .home-hero {
        margin-bottom: 1rem;
        gap: 0;
    }

    .home-hero-visual {
        display: none;
    }

    .home-hero-copy .brand-badge {
        margin-bottom: 0.45rem;
    }

    .home-hero-copy h1 {
        font-size: 1.35rem;
        line-height: 1.12;
        margin-bottom: 0.45rem;
    }

    .home-lead {
        font-size: 0.8rem;
        line-height: 1.45;
        margin-bottom: 0.55rem;
    }

    .home-audience {
        display: none;
    }

    .home-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.45rem;
        margin-bottom: 0.65rem;
    }

    .home-hero-actions .btn {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
        padding: 0.5rem 0.65rem;
        font-size: 0.8rem;
    }

    .home-trust {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .home-trust li {
        width: 100%;
        font-size: 0.72rem;
        line-height: 1.35;
    }

    .home-trust i {
        font-size: 0.68rem;
    }

    .home-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
        margin-bottom: 1rem;
    }

    .home-feature {
        padding: 0.55rem 0.45rem;
        border-radius: var(--auth-radius-sm);
    }

    .home-feature:hover {
        transform: none;
    }

    .home-feature-icon {
        width: 1.65rem;
        height: 1.65rem;
        font-size: 0.72rem;
        margin-bottom: 0.35rem;
        border-radius: 7px;
    }

    .home-feature h2 {
        font-size: 0.72rem;
        margin-bottom: 0.2rem;
        line-height: 1.2;
    }

    .home-feature p {
        font-size: 0.65rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .home-pricing {
        margin-bottom: 1rem;
        padding: 0.5rem 0;
    }

    .home-pricing-header--wide {
        margin-bottom: 0.75rem;
    }

    .home-pricing-header--wide h2 {
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
        line-height: 1.25;
    }

    .home-pricing-header--wide p {
        font-size: 0.78rem;
        line-height: 1.4;
    }

    .home-pricing-layout {
        gap: 0.65rem;
    }

    .home-pricing-card {
        padding: 0.85rem 0.75rem;
    }

    .home-pricing-formula {
        font-size: 1.65rem;
    }

    .home-pricing-cap {
        font-size: 0.78rem;
        margin-bottom: 0.65rem;
    }

    .home-pricing-features {
        margin-bottom: 0.75rem;
    }

    .home-pricing-features li {
        font-size: 0.75rem;
        padding: 0.2rem 0;
    }

    .home-pricing-note {
        font-size: 0.68rem;
        margin-top: 0.5rem;
    }

    .home-fee-matrix-wrap {
        padding: 0.65rem 0.6rem;
    }

    .home-fee-matrix-title {
        font-size: 0.85rem;
        margin-bottom: 0.15rem;
    }

    .home-fee-matrix-lead,
    .home-fee-matrix-disclaimer--top {
        display: none;
    }

    .home-mobile-card {
        padding: 0.5rem 0.55rem;
    }

    .home-mobile-card-meta {
        font-size: 0.68rem;
    }

    .home-mobile-card-fee {
        font-size: 0.75rem;
    }

    .home-mobile-card-vs {
        font-size: 0.65rem;
        line-height: 1.3;
        margin-top: 0.2rem;
    }

    .home-mobile-card-top {
        gap: 0.25rem;
    }

    .home-bottom-cta {
        padding: 0.85rem 0.75rem;
        margin-bottom: 0.75rem;
    }

    .home-bottom-cta h2 {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .home-bottom-cta p {
        font-size: 0.75rem;
        margin-bottom: 0.55rem;
    }

    .home-bottom-cta .btn {
        min-width: 0;
        padding: 0.5rem 1rem;
        font-size: 0.82rem;
    }

    .home-footer {
        padding-top: 0.25rem;
    }

    .home-footer p {
        font-size: 0.68rem;
        margin: 0.25rem 0;
    }

    .home-powered-by-stripe {
        font-size: 0.68rem;
        margin-bottom: 0.4rem !important;
    }
}

@media (max-width: 480px) {
    body.auth-page {
        padding: 8px 10px 20px;
    }

    body.auth-page.auth-page--home {
        padding: 6px 8px 16px;
    }

    .home-hero-copy h1 {
        font-size: 1.2rem;
    }

    .home-lead {
        font-size: 0.76rem;
    }

    .home-feature h2 {
        font-size: 0.68rem;
    }

    .home-feature p {
        -webkit-line-clamp: 2;
    }

    .home-pricing-header--wide h2 {
        font-size: 0.98rem;
    }

    .home-pricing-formula {
        font-size: 1.45rem;
    }

    .auth-page .form-container {
        padding: 1rem 0.85rem;
    }

    .auth-header h1 {
        font-size: 1.1rem;
    }

    .button-group {
        flex-direction: column;
    }

    .info-row {
        flex-direction: column;
        gap: 0.2rem;
    }

    .info-value {
        text-align: left;
    }

    .google-consent-steps {
        padding: 0;
        gap: 0;
    }

    .google-consent-step-icon {
        width: 2rem;
        height: 2rem;
        font-size: 0.85rem;
    }

    .google-consent-step-label {
        font-size: 0.65rem;
    }

    .google-consent-step-line {
        min-width: 0.75rem;
        flex: 1;
    }

    .google-account-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .storefront-offering-card {
        flex-direction: column;
        align-items: stretch;
    }

    .storefront-offering-action {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .storefront-offering-action .btn-pay,
    .storefront-donate-form .btn-pay {
        width: 100%;
        justify-content: center;
    }

    .storefront-donate-form {
        width: 100%;
    }

    .dashboard-statement-fields {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-statement-field,
    .dashboard-statement-btn {
        flex: 1 1 auto;
        width: 100%;
    }

    .dashboard-statement-btn {
        justify-content: center;
    }

    .pay-page-actions {
        flex-direction: column;
    }

    .pay-page-open-btn,
    .pay-page-copy-btn {
        width: 100%;
        justify-content: center;
    }

    .merchant-offerings-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal-document {
        padding-left: 0;
        padding-right: 0;
    }

    .legal-document-header h1 {
        font-size: 1.45rem;
    }

    .home-stripe-inline {
        white-space: normal;
    }

    body.auth-page.auth-page--home .home-hero-copy h1 {
        font-size: 1.15rem;
    }
}
