@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

body, .portal-shell {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
    /* ══════════════════════════════════════════════════════════════════
       DS001 — INVEETAIRE Official Brand Tokens (Version 1.0)
       Source of truth: /assets/branding/brand-colors.md
    ══════════════════════════════════════════════════════════════════ */

    /* ── INVEETAIRE Brand Colors ── */
    --brand-charcoal:    #232323;  /* Primary: Navigation, Buttons, Headlines */
    --brand-charcoal-90: #3a3a3a;  /* Hover state for charcoal */
    --brand-charcoal-80: #555555;  /* Light charcoal for secondary text/icons */
    --brand-ivory:       #FAF8F3;  /* Background: Pages, Cards, Light sections */
    --brand-ivory-dark:  #F0EBE0;  /* Slightly darker ivory for borders/dividers */
    --brand-ivory-warm:  #F5F0EA;  /* Warm ivory for icon container backgrounds */
    --brand-rose-gold:   #D4A28C;  /* Accent: Active indicators, Premium badges */
    --brand-rose-gold-lt:#F0E0D6;  /* Light rose gold tint for subtle highlights */
    --brand-white:       #FFFFFF;  /* Surface: Card, Modal, Form Controls */

    /* ── Legacy primary token aliases (mapped to brand) ── */
    --color-primary-50:   #F5F0EA; /* ivory-warm */
    --color-primary-100:  #F0EBE0; /* ivory-dark */
    --color-primary-200:  #E8DDD0;
    --color-primary-300:  #D4A28C; /* rose-gold */
    --color-primary-400:  #C48B72;
    --color-primary-500:  #232323; /* charcoal */
    --color-primary-600:  #232323; /* charcoal */
    --color-primary-700:  #3a3a3a;
    --color-primary-850:  #1a1a1a;
    --color-primary-900:  #111111;

    /* ── Secondary / Accent scale (rose gold) ── */
    --color-secondary-50:  #F9F0EC;
    --color-secondary-100: #F0E0D6;
    --color-secondary-300: #D4A28C;
    --color-secondary-500: #C48B72;
    --color-secondary-600: #A8735C;

    --color-accent-50:    #F9F0EC;
    --color-accent-100:   #F0E0D6;
    --color-accent-400:   #D4A28C;
    --color-accent-500:   #C48B72;

    /* ── Brand visual effects ── */
    --brand-gradient:       #232323; /* DS001: solid charcoal replaces gradient */
    --brand-gradient-hover: #3a3a3a; /* DS001: charcoal hover */

    /* ── Shadows (warm charcoal-toned) ── */
    --shadow-sm:     0 1px 2px rgba(35, 35, 35, 0.05);
    --shadow-md:     0 4px 12px -2px rgba(35, 35, 35, 0.07), 0 2px 4px -1px rgba(35, 35, 35, 0.04);
    --shadow-lg:     0 12px 24px -4px rgba(35, 35, 35, 0.08), 0 4px 8px -2px rgba(35, 35, 35, 0.05);
    --shadow-xl:     0 20px 32px -8px rgba(35, 35, 35, 0.10), 0 8px 16px -4px rgba(35, 35, 35, 0.05);
    --shadow-brand:  0 8px 24px -4px rgba(212, 162, 140, 0.20); /* Rose Gold glow */

    /* ── Neutrals (warm-toned to complement ivory) ── */
    --color-neutral-50:   #FAF8F3; /* ivory */
    --color-neutral-100:  #F0EBE0;
    --color-neutral-200:  #E8DDD0;
    --color-neutral-300:  #D0C8BE;
    --color-neutral-400:  #9E9690;
    --color-neutral-500:  #6E6860;
    --color-neutral-600:  #4E4840;
    --color-neutral-700:  #383230;
    --color-neutral-800:  #232323; /* charcoal */
    --color-neutral-900:  #111111;

    /* ── Semantic States (functional only — not brand colors) ── */
    --color-success-50:   #f0fdf4;
    --color-success-500:  #16a34a;
    --color-success-650:  #15803d;

    --color-error-50:     #fef2f2;
    --color-error-500:    #dc2626;
    --color-error-650:    #b91c1c;

    --color-warning-50:   #fffbeb;
    --color-warning-500:  #d97706;
    --color-warning-650:  #b45309;

    --color-info-50:      #f0f9ff;
    --color-info-500:     #0284c7;

    /* ── Layout & Timing ── */
    --transition-speed:   200ms;
    --transition-curve:   cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-sm:   0.25rem;
    --border-radius-md:   0.375rem;
    --border-radius-lg:   0.5rem;
    --border-radius-xl:   0.75rem;
    --border-radius-2xl:  1rem;
    --border-radius-3xl:  1.5rem;
}

/* ══════════════════════════════════════════════════════════════════════
   1. TYPOGRAPHY STANDARDS
   ══════════════════════════════════════════════════════════════════════ */
.font-display {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--color-neutral-900);
}
@media (min-width: 768px) {
    .font-display { font-size: 3.75rem; line-height: 1; }
}

.h1-elegant {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--color-neutral-900);
}
.h2-elegant {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-neutral-900);
}
.h3-elegant {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: var(--color-neutral-900);
}
.h4-elegant {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
    color: var(--color-neutral-800);
}
.paragraph-elegant {
    font-size: 0.875rem;
    line-height: 1.5rem;
    font-weight: 400;
    color: var(--color-neutral-600);
}
@media (min-width: 640px) {
    .paragraph-elegant { font-size: 1rem; line-height: 1.625; }
}

.caption-elegant {
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--color-neutral-500);
}
.text-muted-elegant {
    color: var(--color-neutral-400);
}
.link-elegant {
    color: var(--brand-charcoal);
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-curve);
}
.link-elegant:hover {
    color: var(--brand-rose-gold);
}

/* ══════════════════════════════════════════════════════════════════════
   2. BUTTON SYSTEM
   ══════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: var(--border-radius-xl);
    transition: all var(--transition-speed) var(--transition-curve);
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    user-select: none;
    overflow: hidden;
}
.btn:disabled, .btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button variants */
.btn-primary {
    background-color: var(--brand-charcoal);
    border: 1px solid var(--brand-charcoal);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(35, 35, 35, 0.18);
}
.btn-primary:hover:not(:disabled) {
    background-color: var(--brand-charcoal-90);
    border-color: var(--brand-charcoal-90);
    box-shadow: 0 4px 12px rgba(35, 35, 35, 0.24);
    transform: translateY(-0.5px);
}

.btn-secondary {
    background-color: #ffffff;
    border-color: var(--brand-charcoal);
    color: var(--brand-charcoal);
}
.btn-secondary:hover:not(:disabled) {
    background-color: var(--brand-charcoal);
    border-color: var(--brand-charcoal);
    color: #ffffff;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-neutral-300);
    color: var(--color-neutral-700);
}
.btn-outline:hover:not(:disabled) {
    background-color: var(--color-neutral-50);
    border-color: var(--color-neutral-400);
    color: var(--color-neutral-900);
}

.btn-danger {
    background-color: var(--color-error-500);
    color: #ffffff;
}
.btn-danger:hover:not(:disabled) {
    background-color: var(--color-error-650);
}

.btn-success {
    background-color: var(--color-success-500);
    color: #ffffff;
}
.btn-success:hover:not(:disabled) {
    background-color: var(--color-success-650);
}

/* Button Sizing */
.btn-sm {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    border-radius: var(--border-radius-md);
}
.btn-md {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius-xl);
}
.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 0.875rem;
    border-radius: var(--border-radius-xl);
}

/* Icon standardization */
.btn svg, .btn span.icon {
    width: 1.25rem;
    height: 1.25rem;
    display: inline-block;
    flex-shrink: 0;
}
.btn-sm svg {
    width: 1rem;
    height: 1rem;
}

/* Loading button */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}
.btn-loading::after {
    content: "";
    position: absolute;
    width: 1rem; height: 1rem;
    top: calc(50% - 0.5rem);
    left: calc(50% - 0.5rem);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: ds-spin 0.6s linear infinite;
}
.btn-secondary.btn-loading::after {
    border-top-color: var(--color-neutral-600);
}

/* ══════════════════════════════════════════════════════════════════════
   3. CARD DESIGN SYSTEM
   ══════════════════════════════════════════════════════════════════════ */
.card {
    background-color: #ffffff;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--border-radius-xl);
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.card-feature {
    background-color: var(--color-neutral-50);
    border: 1px solid var(--color-neutral-100);
    border-radius: var(--border-radius-xl);
    padding: 1.5rem;
    transition: all var(--transition-speed) var(--transition-curve);
}
.card-feature:hover {
    border-color: var(--brand-rose-gold-lt);
    box-shadow: 0 10px 25px -4px rgba(212, 162, 140, 0.08);
    transform: translateY(-2px);
}

.card-dashboard {
    background-color: #ffffff;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--border-radius-lg);
    padding: 1.25rem;
    box-shadow: 0 2px 4px rgba(148, 163, 184, 0.05);
}

.card-pricing {
    background-color: #ffffff;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--border-radius-2xl);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-speed) var(--transition-curve);
}
.card-pricing:hover {
    border-color: var(--brand-rose-gold-lt);
    box-shadow: 0 16px 40px rgba(212, 162, 140, 0.08);
}
.card-pricing-highlighted {
    border: 2px solid var(--brand-rose-gold);
    box-shadow: var(--shadow-brand);
}

.card-stats {
    background-color: #ffffff;
    border: 1px solid var(--color-neutral-200);
    border-radius: var(--border-radius-md);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-hover {
    transition: all var(--transition-speed) var(--transition-curve);
}
.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* ══════════════════════════════════════════════════════════════════════
   4. FORM DESIGN SYSTEM
   ══════════════════════════════════════════════════════════════════════ */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-neutral-700);
    margin-bottom: 0.375rem;
}

.form-input,
.form-textarea,
.form-select {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-neutral-800);
    background-color: #ffffff;
    border: 1px solid var(--color-neutral-300);
    border-radius: var(--border-radius-md);
    transition: border-color var(--transition-speed) var(--transition-curve),
                box-shadow var(--transition-speed) var(--transition-curve);
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--brand-charcoal);
    box-shadow: 0 0 0 3px rgba(35, 35, 35, 0.10);
}

/* States */
.form-input:disabled,
.form-textarea:disabled,
.form-select:disabled {
    background-color: var(--color-neutral-50);
    color: var(--color-neutral-400);
    border-color: var(--color-neutral-200);
    cursor: not-allowed;
}

.form-input[readonly],
.form-textarea[readonly] {
    background-color: var(--color-neutral-50);
    border-color: var(--color-neutral-200);
    cursor: default;
}

.form-input.is-invalid,
.form-textarea.is-invalid,
.form-select.is-invalid {
    border-color: var(--color-error-500);
}
.form-input.is-invalid:focus,
.form-textarea.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-input.is-valid,
.form-textarea.is-valid,
.form-select.is-valid {
    border-color: var(--color-success-500);
}

.form-error {
    font-size: 0.75rem;
    color: var(--color-error-500);
    margin-top: 0.25rem;
}

/* Checkbox & Radio */
.form-checkbox,
.form-radio {
    width: 1rem; height: 1rem;
    border: 1px solid var(--color-neutral-300);
    border-radius: var(--border-radius-sm);
    color: var(--brand-charcoal);
    background-color: #ffffff;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-curve);
}
.form-radio {
    border-radius: 50%;
}
.form-checkbox:checked,
.form-radio:checked {
    background-color: var(--brand-charcoal);
    border-color: var(--brand-charcoal);
}

/* Custom Switch Toggle */
.form-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 2.5rem; height: 1.25rem;
    background-color: var(--color-neutral-300);
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color var(--transition-speed) var(--transition-curve);
}
.form-toggle-dot {
    position: absolute;
    left: 0.125rem; top: 0.125rem;
    width: 1rem; height: 1rem;
    background-color: #ffffff;
    border-radius: 50%;
    transition: transform var(--transition-speed) var(--transition-curve);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
input:checked + .form-toggle {
    background-color: var(--brand-charcoal);
}
input:checked + .form-toggle .form-toggle-dot {
    transform: translateX(1.25rem);
}

/* ══════════════════════════════════════════════════════════════════════
   5. ALERT STANDARDS
   ══════════════════════════════════════════════════════════════════════ */
.alert {
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius-lg);
    border-width: 1px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}
.alert-success {
    background-color: var(--color-success-50);
    border-color: rgba(22, 163, 74, 0.2);
    color: var(--color-success-650);
}
.alert-info {
    background-color: var(--color-info-50);
    border-color: rgba(2, 132, 199, 0.2);
    color: var(--color-info-500);
}
.alert-warning {
    background-color: var(--color-warning-50);
    border-color: rgba(217, 119, 6, 0.2);
    color: var(--color-warning-650);
}
.alert-danger {
    background-color: var(--color-error-50);
    border-color: rgba(220, 38, 38, 0.2);
    color: var(--color-error-650);
}

/* ══════════════════════════════════════════════════════════════════════
   6. BADGES
   ══════════════════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1rem;
    border-radius: 9999px;
    border: 1px solid transparent;
}
.badge-primary {
    background-color: var(--brand-ivory-warm);
    border-color: var(--brand-ivory-dark);
    color: var(--brand-charcoal);
}
.badge-secondary {
    background-color: var(--brand-rose-gold-lt);
    border-color: var(--brand-rose-gold);
    color: var(--brand-charcoal-80);
}
.badge-success {
    background-color: var(--color-success-50);
    border-color: rgba(22, 163, 74, 0.15);
    color: var(--color-success-650);
}
.badge-warning {
    background-color: var(--color-warning-50);
    border-color: rgba(217, 119, 6, 0.15);
    color: var(--color-warning-650);
}
.badge-danger {
    background-color: var(--color-error-50);
    border-color: rgba(220, 38, 38, 0.15);
    color: var(--color-error-650);
}
.badge-neutral {
    background-color: var(--color-neutral-100);
    border-color: var(--color-neutral-200);
    color: var(--color-neutral-600);
}

/* ══════════════════════════════════════════════════════════════════════
   7. TABLE MODULE
   ══════════════════════════════════════════════════════════════════════ */
.table-elegant {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}
.table-elegant th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--color-neutral-500);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--color-neutral-200);
    background-color: var(--color-neutral-50);
}
.table-elegant td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--color-neutral-100);
    color: var(--color-neutral-700);
    vertical-align: middle;
}
.table-elegant tr:last-child td {
    border-bottom: none;
}
.table-elegant tbody tr:hover td {
    background-color: var(--color-neutral-50);
}

/* Pagination Style */
.pagination-elegant {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    margin-top: 1rem;
}

/* ══════════════════════════════════════════════════════════════════════
   8. LOADING & EMPTY STATES
   ══════════════════════════════════════════════════════════════════════ */
/* Skeletons */
.skeleton-pulse {
    background-color: var(--color-neutral-200);
    border-radius: var(--border-radius-md);
    position: relative;
    overflow: hidden;
}
.skeleton-pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
    animation: ds-shimmer 1.5s infinite;
}

.skeleton-card {
    height: 120px;
    width: 100%;
}
.skeleton-table-row {
    height: 48px;
    width: 100%;
    margin-bottom: 0.5rem;
}

/* Spinners */
.spinner-elegant {
    width: 1.5rem; height: 1.5rem;
    border: 2px solid var(--color-neutral-200);
    border-radius: 50%;
    border-top-color: var(--brand-charcoal);
    animation: ds-spin 0.8s linear infinite;
}

/* Empty State Wrapper */
.empty-state-elegant {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    border: 1.5px dashed var(--color-neutral-200);
    border-radius: var(--border-radius-xl);
    background-color: #ffffff;
}
.empty-state-icon {
    font-size: 3rem;
    color: var(--color-neutral-400);
    margin-bottom: 1rem;
}
.empty-state-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-neutral-800);
    margin-bottom: 0.25rem;
}
.empty-state-text {
    font-size: 0.875rem;
    color: var(--color-neutral-500);
    max-w-md: 20rem;
    margin-bottom: 1.25rem;
}

/* Keyframes */
@keyframes ds-spin {
    to { transform: rotate(360deg); }
}
@keyframes ds-shimmer {
    100% { transform: translateX(100%); }
}

/* ══════════════════════════════════════════════════════════════════════
   9. PREMIUM UI STABILIZATION OVERRIDES (QA-001C)
   ══════════════════════════════════════════════════════════════════════ */

/* Custom padding utilities to prevent icon overlapping inside forms */
.pl-10 {
    padding-left: 2.5rem !important;
}
.pr-10 {
    padding-right: 2.5rem !important;
}

/* DS001 — Brand-aligned Hero & Gradient utilities */
.hero-card-gradient {
    background-color: var(--brand-charcoal) !important;
    color: #ffffff !important;
    position: relative;
    box-shadow: var(--shadow-brand) !important;
    border-radius: var(--border-radius-2xl) !important;
    border: none !important;
}

.brand-gradient {
    background-color: var(--brand-charcoal) !important;
}

.brand-text-gradient {
    color: var(--brand-charcoal) !important;
    display: inline-block;
}

/* Focus state — charcoal ring */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--brand-charcoal) !important;
    box-shadow: 0 0 0 3px rgba(35, 35, 35, 0.10) !important;
}

.btn:focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--brand-charcoal) !important;
}

/* Unified Shadows System Overrides */
.card {
    box-shadow: var(--shadow-md) !important;
}
.card-hover:hover {
    box-shadow: var(--shadow-lg) !important;
}
.card-dashboard {
    box-shadow: var(--shadow-sm) !important;
}
.card-pricing:hover {
    box-shadow: var(--shadow-xl) !important;
}
.profile-dropdown {
    box-shadow: var(--shadow-lg) !important;
}
#scanner-modal > div {
    box-shadow: var(--shadow-xl) !important;
}

/* ══════════════════════════════════════════════════════════════════════
   10. COUPLE PORTAL DESIGN SYSTEM UTILITIES (UX008)
   ══════════════════════════════════════════════════════════════════════ */

/**
 * .page-header-icon — Rounded square icon container for page h1 headers.
 * Usage: <span class="page-header-icon"><i class="fa-solid fa-wallet"></i></span>
 */
.page-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    background-color: var(--brand-ivory-warm); /* warm ivory — DS001 */
    border-radius: 0.75rem;
    flex-shrink: 0;
    border: 1px solid var(--brand-ivory-dark);
}
.page-header-icon i {
    color: var(--brand-charcoal); /* charcoal — DS001 */
    font-size: 0.9375rem;
}

/**
 * .section-label — Quiet structural section heading.
 * Usage: <h2 class="section-label">Wedding Categories</h2>
 */
.section-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-neutral-400);
    line-height: 1rem;
}

/**
 * .page-breadcrumb — Quiet breadcrumb above h1.
 * Usage: <div class="page-breadcrumb"><a href="...">Parent</a> / <span>Current</span></div>
 */
.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-charcoal); /* DS001 charcoal */
    margin-bottom: 0.375rem;
}
.page-breadcrumb a {
    color: var(--brand-charcoal);
    text-decoration: none;
    transition: color 0.15s;
}
.page-breadcrumb a:hover {
    color: var(--brand-rose-gold); /* DS001 rose gold hover */
}
.page-breadcrumb span:last-child {
    color: var(--color-neutral-400);
    font-weight: 500;
}
.page-breadcrumb .sep {
    color: var(--color-neutral-300);
    font-weight: 400;
}

/**
 * .page-h1 — Unified h1 style for all Couple Portal pages.
 */
.page-h1 {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: #0f172a; /* slate-900 */
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

/**
 * .page-subtitle — Quiet subtitle below h1.
 */
.page-subtitle {
    font-size: 0.875rem;
    color: var(--color-neutral-500);
    margin-top: 0.375rem;
    margin-left: 0.125rem;
    line-height: 1.4;
}

/**
 * .cp-card — Standard Couple Portal card.
 * Slightly lighter border and softer shadow than .card.
 */
.cp-card {
    background: #ffffff;
    border: 1px solid #f1f5f9; /* slate-100 */
    border-radius: 1rem; /* rounded-2xl */
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

/**
 * .cp-btn-back — Consistent secondary back/cancel button.
 * Provides visible border on white backgrounds.
 */
.cp-btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-neutral-300);
    background-color: #ffffff;
    color: var(--color-neutral-700);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.cp-btn-back:hover {
    background-color: var(--color-neutral-50);
    border-color: var(--color-neutral-400);
    color: var(--color-neutral-900);
}

/**
 * .cp-flash-success / .cp-flash-error
 * Consistent flash message styling across all pages.
 */
.cp-flash-success {
    padding: 1rem;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.cp-flash-error {
    padding: 1rem;
    background-color: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
