/* Agrawal Biodata — Premium Theme */

:root {
    --maroon-950: #2d0814;
    --maroon-900: #4a0e1f;
    --maroon-800: #6b1530;
    --maroon-700: #8b1a3a;
    --maroon-600: #a32245;
    --maroon-500: #c03055;
    --gold-300: #f5e6b8;
    --gold-400: #e8c96a;
    --gold-500: #d4a84b;
    --gold-600: #b8892f;
    --gold-700: #96701f;
    --rose-50: #fffaf7;
    --rose-100: #fff5ee;
    --rose-200: #fce9df;
    --rose-300: #f5d5c5;
    --rose-400: #e8b4a0;
    --cream: #fffcf8;
    --white: #ffffff;
    --text-primary: #3d1824;
    --text-secondary: #6e4552;
    --text-muted: #9a7080;
    --success: #2d7a4f;
    --error: #b52d2d;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-sm: 0 2px 12px rgba(74, 14, 31, 0.06);
    --shadow-md: 0 8px 28px rgba(74, 14, 31, 0.1);
    --shadow-lg: 0 20px 50px rgba(74, 14, 31, 0.14);
    --shadow-gold: 0 8px 32px rgba(201, 169, 98, 0.32);
    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --font-accent: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 51px;
    --page-gutter: 0.65rem;
    --content-max: 100%;
    --card-gap: 0.7rem;
    --block-gap: 0.75rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-primary);
    background: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background-color: #fffdfb;
    background-image:
        radial-gradient(ellipse 100% 70% at 50% -5%, rgba(255, 228, 235, 0.65) 0%, transparent 55%),
        radial-gradient(ellipse 80% 55% at 8% 45%, rgba(255, 236, 210, 0.42) 0%, transparent 52%),
        radial-gradient(ellipse 80% 55% at 92% 55%, rgba(255, 220, 230, 0.38) 0%, transparent 52%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(255, 245, 220, 0.45) 0%, transparent 50%),
        linear-gradient(180deg, #fffefb 0%, #fff9f6 38%, #fffaf8 72%, #fffdfb 100%);
}

.page-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 28%, rgba(255, 182, 193, 0.14) 0%, transparent 22%),
        radial-gradient(circle at 75% 68%, rgba(232, 201, 106, 0.12) 0%, transparent 24%),
        radial-gradient(circle at 55% 18%, rgba(255, 210, 180, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 40% 82%, rgba(255, 200, 210, 0.11) 0%, transparent 18%);
    animation: vibe-glow 9s ease-in-out infinite;
    pointer-events: none;
}

.page-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cg fill='%23e8a0b0' fill-opacity='0.12'%3E%3Ccircle cx='30' cy='30' r='1.8'/%3E%3Ccircle cx='100' cy='50' r='1.2'/%3E%3Ccircle cx='170' cy='90' r='1.5'/%3E%3Ccircle cx='60' cy='150' r='1.1'/%3E%3Ccircle cx='140' cy='35' r='1'/%3E%3Ccircle cx='20' cy='120' r='0.9'/%3E%3Ccircle cx='180' cy='160' r='1.3'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.vibe-orb,
.vibe-ripple {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform, opacity;
}

.vibe-orb {
    filter: blur(42px);
    animation: vibe-pulse 7s ease-in-out infinite;
}

.vibe-orb--rose {
    width: 340px;
    height: 340px;
    top: 8%;
    left: 12%;
    background: radial-gradient(circle, rgba(255, 190, 200, 0.55) 0%, rgba(255, 210, 220, 0.15) 55%, transparent 72%);
    animation-delay: 0s;
}

.vibe-orb--gold {
    width: 300px;
    height: 300px;
    top: 42%;
    right: 8%;
    background: radial-gradient(circle, rgba(255, 228, 170, 0.5) 0%, rgba(245, 210, 140, 0.12) 55%, transparent 72%);
    animation-delay: -2.5s;
    animation-duration: 8.5s;
}

.vibe-orb--warm {
    width: 380px;
    height: 380px;
    bottom: 5%;
    left: 38%;
    background: radial-gradient(circle, rgba(255, 200, 185, 0.45) 0%, rgba(255, 220, 200, 0.1) 55%, transparent 72%);
    animation-delay: -4.5s;
    animation-duration: 9.5s;
}

.vibe-ripple {
    border: 1px solid rgba(255, 180, 190, 0.22);
    background: radial-gradient(circle, rgba(255, 210, 200, 0.08) 0%, transparent 70%);
    animation: vibe-ripple 10s ease-out infinite;
}

.vibe-ripple--1 {
    width: 120px;
    height: 120px;
    top: 22%;
    left: 48%;
    animation-delay: 0s;
}

.vibe-ripple--2 {
    width: 100px;
    height: 100px;
    top: 58%;
    left: 22%;
    animation-delay: -3.5s;
    animation-duration: 11s;
}

.vibe-ripple--3 {
    width: 110px;
    height: 110px;
    top: 35%;
    right: 20%;
    animation-delay: -6.5s;
    animation-duration: 12s;
    border-color: rgba(232, 201, 106, 0.2);
}

@keyframes vibe-pulse {
    0%, 100% {
        transform: scale(1) translate(0, 0);
        opacity: 0.55;
    }
    50% {
        transform: scale(1.12) translate(6px, -8px);
        opacity: 0.82;
    }
}

@keyframes vibe-ripple {
    0% {
        transform: scale(0.75);
        opacity: 0.45;
    }
    70% {
        opacity: 0.12;
    }
    100% {
        transform: scale(2.8);
        opacity: 0;
    }
}

@keyframes vibe-glow {
    0%, 100% { opacity: 0.75; }
    50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .page-bg::before,
    .vibe-orb,
    .vibe-ripple {
        animation: none;
    }
}

img { max-width: 100%; display: block; }

a {
    color: var(--maroon-700);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--gold-600); }

.container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

.site-header > .container,
.site-footer > .container,
.main-content > .container,
.flash > .container {
    width: 100%;
    max-width: var(--content-max);
}

.main-content {
    flex: 1 0 auto;
    width: 100%;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--maroon-900);
    overflow-wrap: anywhere;
    word-break: break-word;
}

h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 400; letter-spacing: -0.02em; }
h3 { font-size: 1.28rem; font-weight: 400; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 0.65rem;
}

.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--gold-500);
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    margin: 0.75rem 0;
}

.ornament::before,
.ornament::after {
    content: '';
    flex: 1;
    max-width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-400), transparent);
}

.section-head .ornament { margin: 1rem auto; max-width: 280px; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    border-bottom: 1px solid rgba(252, 233, 223, 0.9);
    box-shadow: 0 4px 24px rgba(74, 14, 31, 0.04);
}

.header-backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: rgba(255, 253, 250, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 0.5rem;
}

.brand {
    display: block;
    color: inherit;
    text-decoration: none;
    min-width: 0;
    flex-shrink: 0;
}

.brand:hover { color: inherit; }

.brand-text {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.08;
}

.brand-name,
.brand-tag {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.03em;
    display: block;
    line-height: 1.08;
}

.brand-name {
    font-size: 0.98rem;
    background: linear-gradient(135deg, var(--maroon-950) 0%, var(--maroon-800) 55%, var(--maroon-700) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.brand-tag {
    font-size: 0.98rem;
    font-weight: 500;
    background: linear-gradient(135deg, var(--gold-700) 0%, var(--gold-500) 48%, var(--gold-400) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-top: 0.06rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.32rem 0.55rem;
    border-radius: 50px;
    transition: all var(--transition);
    white-space: nowrap;
    position: relative;
    max-width: 100%;
}

.nav-link > span:not(.nav-badge) { overflow: hidden; text-overflow: ellipsis; }

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--white);
    background: var(--maroon-600);
    border-radius: 50px;
}

.nav-link .icon-inline,
.nav-link > i:first-child {
    font-size: 15px;
    opacity: 0.88;
    line-height: 1;
}

.btn i {
    font-size: 1.1em;
    line-height: 1;
    vertical-align: -0.1em;
}

.icon-inline {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.eyebrow i {
    margin-right: 0.35rem;
    font-size: 0.95em;
    vertical-align: -0.1em;
}

.nav-link:hover {
    color: var(--maroon-800);
    background: var(--rose-100);
}

.nav-link.is-active {
    color: var(--maroon-800);
    background: var(--rose-200);
    font-weight: 600;
}

.nav-link.nav-logout {
    color: var(--maroon-600);
    margin-left: 0.25rem;
}

.nav-link.nav-logout:hover {
    background: rgba(139, 26, 58, 0.08);
    color: var(--maroon-800);
}

.main-nav .btn-primary {
    margin-left: 0.35rem;
    padding: 0.38rem 0.75rem;
    font-size: 14px;
}

.main-nav a.btn {
    color: var(--white);
}

.main-nav a.btn:hover {
    color: var(--white);
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
}

.main-nav a:hover { color: var(--maroon-700); }

/* Register Free CTA — readable text/icons on maroon (beats .main-nav a / .nav-link) */
a.nav-link.nav-link--cta,
.main-nav a.nav-link.nav-link--cta {
    color: var(--white);
    background: linear-gradient(135deg, var(--maroon-800), var(--maroon-700));
    border: 2px solid var(--maroon-800);
    box-shadow: 0 4px 14px rgba(74, 14, 31, 0.18);
    font-weight: 600;
}

a.nav-link.nav-link--cta .icon-inline,
a.nav-link.nav-link--cta > i:first-child,
.main-nav a.nav-link.nav-link--cta .icon-inline,
.main-nav a.nav-link.nav-link--cta > i:first-child {
    color: var(--white);
    opacity: 1;
}

a.nav-link.nav-link--cta span,
.main-nav a.nav-link.nav-link--cta span {
    color: inherit;
}

a.nav-link.nav-link--cta:hover,
a.nav-link.nav-link--cta:focus-visible,
.main-nav a.nav-link.nav-link--cta:hover,
.main-nav a.nav-link.nav-link--cta:focus-visible {
    color: var(--white);
    background: linear-gradient(135deg, var(--maroon-900), var(--maroon-800));
    border-color: var(--maroon-900);
}

/* Mobile nav panel structure (hidden on desktop via display:contents) */
.mobile-nav-head,
.mobile-nav-guest-card {
    display: none;
}

.mobile-nav-links,
.mobile-nav-footer {
    display: contents;
}

.nav-link--mobile-only {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    background: var(--rose-50);
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 6px;
    z-index: 310;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--maroon-800);
    transition: var(--transition);
    margin: 0 auto;
}

.nav-toggle.is-active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-overlay {
    display: none;
}

body.nav-open {
    overflow: hidden;
    touch-action: none;
}

body.nav-open .main-content,
body.nav-open .site-footer,
body.nav-open .flash {
    filter: blur(10px) saturate(0.92);
    pointer-events: none;
    user-select: none;
}

body.nav-open .page-bg {
    filter: blur(6px);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 50px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm { padding: 0.42rem 1.1rem; font-size: 0.8rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 0.95rem; }
.btn-block { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--maroon-800), var(--maroon-600));
    color: var(--white);
    border-color: var(--maroon-700);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--maroon-700), var(--maroon-500));
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border-color: var(--maroon-600);
    color: var(--maroon-800);
}

.btn-outline:hover {
    background: var(--maroon-800);
    color: var(--white);
    border-color: var(--maroon-800);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: none;
}

.btn-ghost:hover { color: var(--maroon-700); }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--maroon-950);
    border-color: var(--gold-400);
    box-shadow: var(--shadow-gold);
    font-weight: 700;
}

.btn-gold:hover {
    color: var(--maroon-950);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(212, 168, 75, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: var(--white);
    border-color: #1da851;
    font-weight: 600;
}

.btn-whatsapp:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
}

/* Flash */
.flash {
    padding: 0.85rem 0;
    font-size: 0.88rem;
    font-weight: 500;
    text-align: center;
}

.flash-success { background: #e6f5ec; color: var(--success); }
.flash-error { background: #fce8e8; color: var(--error); }

/* Hero */
.hero {
    padding: 1rem 0 2rem;
    overflow: hidden;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold-500), var(--gold-400), var(--gold-500), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.hero h1 em {
    font-style: italic;
    color: var(--maroon-600);
}

.hero-lead {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 1.25rem 0 1.75rem;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rose-300);
}

.stat {
    position: relative;
    padding-left: 2.5rem;
}

.stat-icon {
    position: absolute;
    left: 0;
    top: 0.15rem;
    font-size: 1.5rem;
    color: var(--gold-500);
}

.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.85rem;
    color: var(--maroon-800);
}

.stat span {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-visual {
    position: relative;
    min-height: 400px;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--rose-200);
    position: relative;
}

.hero-card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(212, 168, 75, 0.25);
    border-radius: calc(var(--radius-lg) - 4px);
    pointer-events: none;
}

.hero-card-main { padding: 2rem; z-index: 2; }

.hero-card-float {
    position: absolute;
    bottom: 36px;
    left: -24px;
    padding: 1.1rem 1.4rem;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
    background: linear-gradient(135deg, var(--maroon-800), var(--maroon-700));
    color: var(--white);
    border-color: var(--gold-500);
}

.hero-card-float strong { color: var(--gold-300); }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.mini-label {
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold-300);
    margin-bottom: 0.2rem;
}

.profile-preview {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.avatar-ring {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}

.avatar-ring .avatar-portrait {
    --avatar-size: 96px;
    --avatar-ring: 4px;
    display: block;
    width: 100%;
    height: 100%;
}

.profile-preview-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}

.profile-preview-info p {
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.tags {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.65rem;
    flex-wrap: wrap;
}

.tags span, .tag {
    display: inline-block;
    padding: 0.22rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--rose-100);
    color: var(--maroon-700);
    border-radius: 50px;
    border: 1px solid var(--rose-300);
}

/* Sections — tighter spacing */
.section { padding: 2rem 0; }

.section.features {
    background: linear-gradient(180deg, var(--rose-100) 0%, var(--rose-50) 100%);
}

.section.steps {
    background: var(--white);
    border-top: 1px solid var(--rose-200);
    border-bottom: 1px solid var(--rose-200);
}

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 3rem;
}

.section-head p {
    color: var(--text-secondary);
    margin-top: 0.75rem;
    font-size: 0.98rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--white);
    padding: 1.75rem 1.4rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--rose-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold-400);
}

.feature-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.45rem;
    color: var(--maroon-700);
    background: linear-gradient(135deg, var(--rose-100), var(--white));
    border: 1px solid var(--rose-200);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--maroon-800);
}

.feature-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.cta-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 3.25rem;
    background: linear-gradient(135deg, var(--maroon-900) 0%, var(--maroon-700) 50%, var(--maroon-800) 100%);
    border-radius: var(--radius-xl);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gold-500);
    position: relative;
    overflow: hidden;
}

.cta-panel::before {
    content: '✦';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 3rem;
    color: rgba(212, 168, 75, 0.15);
}

.cta-panel h2 { color: var(--white); margin: 0.4rem 0; }
.cta-panel p { color: rgba(255,255,255,0.82); font-size: 0.95rem; }
.cta-panel .eyebrow { color: var(--gold-300); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--rose-200);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-icon-wrap {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--gold-600);
    background: linear-gradient(145deg, var(--maroon-900), var(--maroon-700));
    border-radius: 50%;
    box-shadow: var(--shadow-md);
}

.step-icon-wrap i { color: var(--gold-300); }

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--maroon-700);
    background: var(--rose-100);
    border-radius: 50%;
    margin-bottom: 0.75rem;
    border: 1px solid var(--rose-300);
}

.step h3 { margin-bottom: 0.6rem; color: var(--maroon-800); }
.step p { color: var(--text-secondary); font-size: 0.9rem; }

/* Page head (inner pages — no eyebrow label) */
.page-head {
    margin-bottom: 0.85rem;
    padding-top: 0.35rem;
}

.page-head h1 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    margin: 0;
    line-height: 1.2;
    color: var(--maroon-900);
}

.page-head p {
    color: var(--text-secondary);
    margin-top: 0.35rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

.page-hero {
    padding: 0.4rem 0 0.35rem;
    text-align: left;
    background: transparent;
    border-bottom: none;
    position: relative;
}

.page-hero .container {
    text-align: left;
}

.page-hero::after { display: none; }

.page-hero.compact {
    padding: 0.35rem 0 0.25rem;
}

.page-hero.compact h1 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    margin: 0;
    line-height: 1.2;
}

.page-hero.compact p {
    margin-top: 0.3rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.page-hero.compact + .section,
.page-hero.compact + .section-tight {
    padding-top: 0.45rem;
}

.page-hero p { color: var(--text-secondary); margin-top: 0.35rem; font-size: 0.9rem; }

/* Auth */
.auth-section {
    display: flex;
    justify-content: center;
    padding: 0.75rem 1rem 2.5rem;
}

.auth-card {
    width: min(480px, 100%);
    background: var(--white);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--rose-200);
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--maroon-700), var(--gold-500), var(--maroon-700));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.auth-card-head { text-align: center; margin-bottom: 1.75rem; }
.auth-card-head h1 { font-size: 1.85rem; color: var(--maroon-900); }
.auth-card-head p { color: var(--text-secondary); margin-top: 0.45rem; font-size: 0.9rem; }
.auth-switch { text-align: center; margin-top: 1.25rem; font-size: 0.88rem; color: var(--text-secondary); }

/* Forms */
.form-group { margin-bottom: 1.15rem; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--maroon-800);
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.72rem 1rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    border: 1.5px solid var(--rose-300);
    border-radius: var(--radius-sm);
    background: var(--rose-50);
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--maroon-500);
    box-shadow: 0 0 0 3px rgba(139, 26, 58, 0.12);
    background: var(--white);
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.form-section {
    border: none;
    padding: 0;
    margin-bottom: 2.25rem;
}

.form-section legend {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--maroon-900);
    padding-bottom: 0.6rem;
    margin-bottom: 1.1rem;
    border-bottom: 2px solid var(--gold-400);
    width: 100%;
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    padding-top: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input { width: auto; accent-color: var(--maroon-700); }

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-right: 2.85rem;
}

.password-toggle {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--maroon-700);
    background: rgba(139, 26, 58, 0.08);
    outline: none;
}

.password-toggle i {
    font-size: 1.15rem;
    line-height: 1;
}

.form-group--remember {
    margin-bottom: 0.85rem;
}

.remember-me {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-secondary);
}

.remember-me input {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}

.remember-forgot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.auth-forgot-link {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--maroon-700);
    text-decoration: none;
    white-space: nowrap;
}

.auth-forgot-link:hover {
    color: var(--maroon-900);
    text-decoration: underline;
}

.form-group input[readonly] {
    background: var(--rose-100);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.alert-info {
    background: #eef6ff;
    color: #1e4f7a;
    border: 1px solid #c5dff5;
}

.alert-info code {
    font-family: ui-monospace, monospace;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.auth-otp-hint {
    margin-bottom: 1rem;
}

.auth-otp-hint p {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
}

.alert { padding: 0.9rem 1.15rem; border-radius: var(--radius-sm); margin-bottom: 1.25rem; }
.alert-error { background: #fce8e8; color: var(--error); border: 1px solid #f0c0c0; }
.alert p + p { margin-top: 0.2rem; }

.form-container {
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

.page-shell .form-container,
.page-edit-biodata .form-container--wide {
    max-width: none;
}

.biodata-form {
    background: var(--white);
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--rose-200);
}

.current-photo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold-500);
}

.align-center { align-items: end; }

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.35rem;
}

.dash-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.6rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(252, 233, 223, 0.9);
    box-shadow: 0 8px 28px rgba(74, 14, 31, 0.06);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(6px);
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--maroon-700), var(--gold-500));
}

.dash-card-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--maroon-700);
    background: var(--rose-50);
    border-radius: 10px;
    margin-bottom: 0.85rem;
    border: 1px solid var(--rose-200);
}

.dash-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.dash-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.85rem;
    color: var(--maroon-800);
    line-height: 1.2;
    margin-bottom: 0.45rem;
}

.dash-card p {
    font-size: 0.86rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 0.85rem;
    overflow-wrap: anywhere;
}

.dash-card .btn {
    margin-top: 0.15rem;
    margin-right: 0.35rem;
    margin-bottom: 0.35rem;
}

/* Browse */
.browse-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.filter-panel {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(252, 233, 223, 0.9);
    box-shadow: 0 8px 28px rgba(74, 14, 31, 0.06);
    position: sticky;
    top: calc(var(--header-height) + 12px);
    backdrop-filter: blur(6px);
}

.filter-panel h3,
.filter-panel-modal-head h3 {
    font-size: 1.05rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--gold-400);
    color: var(--maroon-800);
}

.filter-form label {
    color: var(--text-primary);
    font-weight: 600;
}

.filter-form .btn + .btn { margin-top: 0.45rem; }

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.profile-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(252, 233, 223, 0.9);
    box-shadow: 0 8px 32px rgba(74, 14, 31, 0.07);
    transition: all var(--transition);
    backdrop-filter: blur(6px);
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 44px rgba(74, 14, 31, 0.11);
    border-color: var(--gold-400);
}

.profile-card-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.profile-card-photo {
    position: relative;
    aspect-ratio: 4/4.5;
    overflow: hidden;
    background: linear-gradient(165deg, var(--rose-100) 0%, var(--rose-50) 100%);
}

.profile-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.profile-card:hover .profile-card-photo img { transform: scale(1.04); }

.profile-card-body {
    padding: 1.35rem 1.25rem 1.4rem;
}

.profile-card-body h3 {
    font-size: 1.28rem;
    margin-bottom: 0.4rem;
    color: var(--maroon-900);
    line-height: 1.25;
}

.profile-meta {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.profile-detail {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

.profile-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.28rem 0.6rem;
    font-size: 0.68rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--maroon-800), var(--maroon-600));
    color: var(--gold-300);
    border-radius: 50px;
}

.profile-card .tag { margin-top: 0.75rem; }

/* Browse — premium compact profile cards */
.page-browse .profile-grid--compact {
    grid-template-columns: 1fr;
    gap: 0.85rem;
}

.page-browse .profile-card--compact {
    border-radius: var(--radius-lg);
    border: 1px solid rgba(252, 233, 223, 0.95);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 251, 248, 0.96) 100%);
    box-shadow: 0 4px 20px rgba(74, 14, 31, 0.06);
    position: relative;
    overflow: hidden;
}

.page-browse .profile-card--compact::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.page-browse .profile-card--compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(74, 14, 31, 0.1);
    border-color: rgba(212, 168, 75, 0.45);
}

.page-browse .profile-card--compact .profile-card-link {
    display: block;
}

.page-browse .profile-card-cover {
    display: none;
}

.page-browse .profile-card-main {
    display: grid;
    grid-template-columns: 118px 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
}

.page-browse .profile-card--compact .profile-card-photo {
    aspect-ratio: 3 / 4;
    width: 118px;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    border-radius: 12px;
    border: 2px solid rgba(212, 168, 75, 0.5);
    background: var(--rose-50);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(74, 14, 31, 0.08);
    flex-shrink: 0;
}

.page-browse .profile-card--compact .profile-card-photo > img {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    transition: transform 0.45s ease;
}

.page-browse .profile-card--compact .photo-slider--compact {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    min-height: 0;
    max-height: none;
}

.page-browse .profile-card--compact .photo-slider--compact .photo-slider-slide img {
    object-fit: cover;
    object-position: center top;
}

.page-browse .profile-gallery-count {
    position: absolute;
    bottom: 6px;
    right: 6px;
    left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.18rem 0.45rem;
    font-size: 0.58rem;
    font-weight: 600;
    color: var(--white);
    background: rgba(45, 8, 20, 0.72);
    border-radius: 50px;
    backdrop-filter: blur(4px);
}

.page-browse .profile-card--compact .profile-card-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: 0.15rem;
}

.page-browse .profile-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.15rem;
}

.page-browse .profile-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.5rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--maroon-700);
    background: rgba(255, 245, 238, 0.95);
    border: 1px solid rgba(212, 168, 75, 0.35);
    border-radius: 50px;
}

.page-browse .profile-chip--own {
    color: #1f6b42;
    background: rgba(232, 248, 238, 0.95);
    border-color: rgba(31, 107, 66, 0.25);
}

.page-browse .profile-card--compact .profile-card-body h3 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
    line-height: 1.25;
    color: var(--maroon-900);
}

.page-browse .profile-card--compact .profile-meta {
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.page-browse .profile-card--compact .profile-detail--compact {
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 0;
    color: var(--text-secondary);
}

.page-browse .profile-card--compact .tag--gotra {
    margin-top: 0.45rem;
    font-size: 0.68rem;
    padding: 0.16rem 0.55rem;
    align-self: flex-start;
    background: rgba(255, 245, 238, 0.95);
    border: 1px solid var(--rose-200);
    color: var(--maroon-800);
}

.page-browse .profile-card--compact .tag--gotra::before {
    content: '◆ ';
    font-size: 0.55rem;
    opacity: 0.65;
}

.page-browse .profile-card--compact:hover .profile-card-photo img {
    transform: scale(1.04);
}

@media (min-width: 768px) {
    .page-browse .profile-grid--compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .page-browse .profile-card-main {
        grid-template-columns: 124px 1fr;
        gap: 1.05rem;
        padding: 0.95rem 1.05rem;
    }

    .page-browse .profile-card--compact .profile-card-photo {
        width: 124px;
    }
}

@media (min-width: 1200px) {
    .page-browse .profile-grid--compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.1rem;
    }

    .page-browse .profile-card-main {
        grid-template-columns: 132px 1fr;
    }

    .page-browse .profile-card--compact .profile-card-photo {
        width: 132px;
    }

    .page-browse .profile-card--compact .profile-card-body h3 {
        font-size: 1.12rem;
    }
}

@media (max-width: 767px) {
    .page-browse .profile-card-main {
        grid-template-columns: 104px 1fr;
        gap: 0.75rem;
        padding: 0.75rem 0.85rem;
    }

    .page-browse .profile-card--compact .profile-card-photo {
        width: 104px;
    }

    .page-browse .profile-card--compact .profile-card-body h3 {
        font-size: 0.98rem;
    }
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2.25rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    background: rgba(255, 255, 255, 0.88);
    border-radius: var(--radius-md);
    border: 2px dashed var(--rose-300);
    backdrop-filter: blur(6px);
}

.empty-state h3 { margin-bottom: 0.45rem; color: var(--maroon-800); }
.empty-state p { color: var(--text-secondary); margin-bottom: 1.25rem; }

.empty-state-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.empty-state-actions .btn {
    width: 100%;
    justify-content: center;
    margin: 0;
}

.empty-state .empty-icon {
    color: var(--maroon-700);
    font-size: 2rem;
    margin-bottom: 0.65rem;
}

/* Browse filter — mobile modal */
.browse-filter-toggle {
    display: none;
    flex-shrink: 0;
    white-space: nowrap;
}

.browse-filter-modal {
    position: relative;
}

.filter-backdrop {
    display: none;
}

.filter-panel-modal-head {
    display: none;
}

.filter-panel-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 245, 238, 0.95);
    color: var(--maroon-800);
    cursor: pointer;
    font-size: 1.15rem;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.filter-form-actions {
    display: none;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.filter-form-actions .btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

body.browse-filters-open {
    overflow: hidden;
}

/* Profile view */
.profile-view { padding: 0.65rem 0 2rem; }

.profile-header {
    display: grid;
    grid-template-columns: 190px 1fr;
    gap: 2rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(74, 14, 31, 0.08);
    border: 1px solid rgba(252, 233, 223, 0.9);
    backdrop-filter: blur(8px);
    border-top: 4px solid var(--maroon-600);
    margin-bottom: 1.75rem;
}

.profile-header-photo img {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold-500);
    box-shadow: var(--shadow-gold);
}

.profile-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0.45rem 0 0.85rem;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
}

.profile-actions { margin-top: 0.4rem; }

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.detail-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(252, 233, 223, 0.9);
    box-shadow: 0 8px 28px rgba(74, 14, 31, 0.06);
    backdrop-filter: blur(6px);
}

.detail-card.full-width { grid-column: 1 / -1; }

.detail-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--gold-400);
    color: var(--maroon-800);
}

.detail-card dl { display: grid; gap: 0.65rem; }

.detail-card dt {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.detail-card dd {
    font-weight: 500;
    color: var(--maroon-900);
}

.detail-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.92rem;
}

.contact-card {
    background: linear-gradient(135deg, var(--maroon-900), var(--maroon-700));
    color: var(--white);
    border-color: var(--gold-500);
}

.contact-card h3 { color: var(--gold-300); border-color: var(--gold-400); }
.contact-card dt { color: rgba(255,255,255,0.65); }
.contact-card dd { color: var(--white); }
.contact-card a { color: var(--gold-300); }

.profile-back { margin-top: 1.25rem; }

/* Footer — aligned with body container */
.site-footer {
    background: transparent;
    color: var(--text-secondary);
    margin-top: auto;
    position: relative;
    padding: 0;
}

.site-footer > .container {
    padding-bottom: 0.2rem;
}

.footer-panel {
    width: 100%;
    padding: 1.15rem 0 0;
    border-top: 1px solid rgba(252, 233, 223, 0.9);
}

.footer-main {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.25rem 2.25rem;
    align-items: start;
    width: 100%;
    text-align: left;
}

.footer-brand {
    min-width: 0;
}

.footer-brand .brand-footer {
    text-decoration: none;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.footer-about {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 28rem;
    margin: 0;
}

.footer-links-group {
    min-width: 0;
}

.footer-links-group h4 {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--maroon-800);
    margin: 0 0 0.9rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(252, 233, 223, 0.95);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.footer-links-group h4 i {
    font-size: 1.05rem;
    color: var(--gold-600);
    flex-shrink: 0;
}

.footer-links-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.footer-links-group a,
.footer-meta {
    display: grid;
    grid-template-columns: 1.15rem 1fr;
    align-items: start;
    column-gap: 0.55rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.45;
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links-group a > i,
.footer-meta > i {
    font-size: 0.95rem;
    color: var(--gold-600);
    margin-top: 0.12rem;
    justify-self: center;
}

.footer-links-group a span,
.footer-meta span {
    min-width: 0;
    word-break: break-word;
}

.footer-links-group a:hover {
    color: var(--maroon-700);
}

.footer-links-group a:hover i {
    color: var(--maroon-600);
}

.footer-meta {
    cursor: default;
}

.footer-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.footer-trust-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--maroon-800);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(252, 233, 223, 0.95);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(74, 14, 31, 0.04);
}

.footer-trust-badges i {
    color: var(--maroon-700);
    font-size: 0.9em;
}

.footer-links-group--explore h4 {
    margin: 0 0 0.45rem;
    padding-bottom: 0.35rem;
}

.footer-links-group--explore ul {
    gap: 0.22rem;
}

.footer-links-group--explore a {
    font-size: 0.84rem;
    line-height: 1.35;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.3rem 0 0;
    margin-top: 0.45rem;
}

.footer-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.35;
}

.footer-copy i {
    font-size: 0.9em;
    opacity: 0.75;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* My Biodata page */
.section-tight { padding-top: 0.4rem; padding-bottom: 1.15rem; }

.browse-section.section-tight { padding-top: 0.3rem; }

.main-content > .section:first-child,
.main-content > .page-hero:first-child + .section {
    padding-top: 0.35rem;
}

.hero-meta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-meta-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.hero-meta-row i { color: var(--gold-600); }

.my-biodata-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 0;
}

.my-biodata-page { padding-top: 0.35rem; }

.my-biodata-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    margin-bottom: 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(252, 233, 223, 0.9);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(74, 14, 31, 0.07);
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.my-biodata-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--maroon-800), var(--gold-500), var(--maroon-800));
}

.my-biodata-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-700);
    margin: 0 0 0.25rem;
}

.my-biodata-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.my-stat-card {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.75rem 0.85rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(252, 233, 223, 0.9);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(74, 14, 31, 0.05);
    min-width: 0;
}

.my-stat-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--gold-600);
    background: linear-gradient(145deg, var(--rose-50), var(--white));
    border: 1px solid var(--rose-200);
    border-radius: 10px;
}

.my-stat-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.my-stat-text strong {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--maroon-900);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.my-stat-text span {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.my-biodata-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.my-biodata-photo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold-400);
    flex-shrink: 0;
}

.my-biodata-info h1 {
    font-size: 1.55rem;
    margin: 0.15rem 0 0.45rem;
    line-height: 1.2;
}

.my-biodata-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.my-biodata-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill.is-live {
    color: var(--success);
    background: rgba(45, 122, 79, 0.1);
    border: 1px solid rgba(45, 122, 79, 0.25);
}

.status-pill.is-draft {
    color: var(--gold-700);
    background: rgba(184, 137, 47, 0.1);
    border: 1px solid rgba(184, 137, 47, 0.25);
}

.my-biodata-layout {
    display: grid;
    grid-template-columns: minmax(200px, 248px) 1fr;
    gap: 0.85rem;
    align-items: start;
}

.my-biodata-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 12px);
}

.my-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(252, 233, 223, 0.9);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(74, 14, 31, 0.06);
    backdrop-filter: blur(8px);
}

.my-panel-head {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--rose-100);
    background: linear-gradient(180deg, var(--rose-50) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.my-panel-head h2 {
    font-family: var(--font-display);
    font-size: 0.92rem;
    color: var(--maroon-900);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.my-panel-head h2 i { color: var(--gold-600); font-size: 0.95rem; }

.my-panel-body {
    padding: 0.55rem;
}

.my-biodata-formats .format-style-minimal {
    margin: 0;
}

.format-style-minimal {
    width: 100%;
}

.format-minimal-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.format-style-rail-wrap {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.35rem;
}

.format-style-rail {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.format-rail-btn {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rose-200);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    color: var(--maroon-800);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(74, 14, 31, 0.06);
    transition: all var(--transition);
}

.format-rail-btn:hover {
    border-color: var(--gold-400);
    color: var(--maroon-900);
    background: var(--rose-50);
}

.format-rail-btn:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

.format-minimal-list--horizontal {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0.55rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.45rem 0.2rem 0.5rem;
}

.format-minimal-list--horizontal::-webkit-scrollbar {
    display: none;
}

.format-minimal-list--horizontal > li {
    flex: 0 0 auto;
    scroll-snap-align: center;
    width: 96px;
}

.format-minimal-item.format-minimal-item--chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    width: 100%;
    min-height: 114px;
    padding: 0.85rem 0.4rem 0.6rem;
    text-align: center;
    overflow: visible;
    grid-template-columns: unset;
    grid-template-rows: unset;
}

.format-minimal-item--chip .format-minimal-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: auto;
    height: 3px;
    margin: 0;
    align-self: auto;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.format-minimal-item--chip .format-minimal-icon {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    flex-shrink: 0;
}

.format-minimal-item--chip .format-minimal-name {
    position: relative;
    z-index: 1;
    display: block;
    font-size: 0.76rem;
    line-height: 1.25;
    width: 100%;
    padding: 0 0.1rem;
    word-break: break-word;
}

.format-minimal-item--chip .format-minimal-selected {
    position: absolute;
    top: -0.35rem;
    right: -0.2rem;
    padding: 0.18rem 0.42rem;
    font-size: 0.55rem;
    box-shadow: 0 2px 8px rgba(74, 14, 31, 0.12);
}

.format-minimal-item--chip .format-minimal-actions {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.1rem;
}

.format-minimal-item--chip.is-selected {
    border-color: var(--style-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--style-accent) 16%, transparent), 0 6px 18px rgba(74, 14, 31, 0.08);
}

.format-minimal-item:not(.format-minimal-item--chip) {
    display: grid;
    grid-template-columns: 4px 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.75rem;
    border: 1.5px solid var(--rose-200);
    border-radius: var(--radius-md);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 248, 0.94));
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 62px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(74, 14, 31, 0.04);
}

.format-minimal-item.format-minimal-item--chip {
    position: relative;
    border: 1.5px solid var(--rose-200);
    border-radius: var(--radius-md);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 248, 0.94));
    cursor: pointer;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(74, 14, 31, 0.04);
}

.format-minimal-accent {
    align-self: stretch;
    background: var(--style-accent);
    border-radius: 4px 0 0 4px;
    margin: -0.55rem 0 -0.55rem -0.6rem;
    width: 4px;
}

.format-minimal-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.format-minimal-desc {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.format-minimal-item input { display: none; }

.format-minimal-item:hover {
    border-color: color-mix(in srgb, var(--style-accent) 45%, var(--rose-300));
    background: var(--rose-50);
}

.format-minimal-item.is-selected {
    border-color: var(--style-accent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--style-accent) 8%, white), rgba(255, 255, 255, 0.98));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--style-accent) 14%, transparent), 0 8px 22px rgba(74, 14, 31, 0.08);
}

.format-minimal-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--style-accent);
    background: color-mix(in srgb, var(--style-accent) 10%, white);
    border: 1px solid color-mix(in srgb, var(--style-accent) 18%, var(--rose-200));
    border-radius: 11px;
    flex-shrink: 0;
}

.format-minimal-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--maroon-900);
    min-width: 0;
    font-family: var(--font-display);
}

.format-minimal-selected {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.22rem 0.55rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
    background: var(--style-accent);
    border-radius: 50px;
    flex-shrink: 0;
    line-height: 1;
}

.format-minimal-dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--rose-50);
    border: 1px solid var(--rose-200);
    border-radius: 8px;
    text-decoration: none;
    transition: all var(--transition);
    flex-shrink: 0;
}

.format-minimal-dl:hover {
    color: var(--white);
    background: var(--maroon-800);
    border-color: var(--maroon-800);
}

.format-minimal-wa:hover {
    color: var(--white);
    background: #128c7e;
    border-color: #128c7e;
}

.format-minimal-item.is-readonly {
    cursor: default;
}

.my-biodata-formats .format-style-premium {
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    backdrop-filter: none;
}

.my-biodata-formats .format-style-premium::before { display: none; }

.my-biodata-formats .format-style-head {
    display: none;
}

.my-biodata-formats .format-style-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
}

.my-biodata-formats .format-style-card {
    padding: 0.55rem;
    border-radius: var(--radius-sm);
}

.my-biodata-formats .format-card-mockup {
    height: 52px;
}

.my-biodata-formats .format-card-content strong {
    font-size: 0.72rem;
}

.my-biodata-formats .format-card-content small {
    font-size: 0.62rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.my-biodata-formats .format-card-dl {
    font-size: 0.65rem;
    padding: 0.35rem 0.5rem;
    margin-top: 0.35rem;
}

.my-biodata-preview-panel {
    background: var(--white);
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(74, 14, 31, 0.08);
    position: sticky;
    top: calc(var(--header-height) + 12px);
}

.my-biodata-preview-panel .biodata-preview-wrap {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.preview-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.profile-pdf-section {
    margin-top: 1.15rem;
    padding-top: 0;
}

.profile-pdf-head {
    margin-bottom: 1rem;
}

.profile-pdf-head h2 {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.profile-pdf-head p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-pdf-section .format-style-grid {
    grid-template-columns: repeat(3, 1fr);
}

.action-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--maroon-800);
    background: var(--white);
    border: 1.5px solid var(--rose-300);
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}

.action-chip:hover {
    border-color: var(--maroon-500);
    color: var(--maroon-800);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.action-chip-primary {
    background: linear-gradient(135deg, var(--maroon-800), var(--maroon-600));
    color: var(--white);
    border-color: transparent;
}

.action-chip-primary:hover { color: var(--white); }

/* Premium format style picker — Elite-inspired */
.format-style-premium {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(252, 233, 223, 0.9);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: 0 12px 40px rgba(74, 14, 31, 0.07);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.format-style-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--maroon-800), var(--gold-500), var(--maroon-800));
}

.style-picker-embed .format-style-premium {
    padding: 0;
    box-shadow: none;
    background: transparent;
    border: none;
}

.style-picker-embed .format-style-premium::before {
    display: none;
}

.style-picker-embed .format-style-head { display: none; }

.style-picker-embed .format-theme-picker {
    margin: 0;
}

.style-picker-embed .format-style-rail-wrap {
    margin: 0;
}

.style-picker-preview {
    margin-top: 0.85rem;
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 248, 0.94));
    box-shadow: 0 4px 18px rgba(74, 14, 31, 0.05);
}

.biodata-preview-wrap--embed {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.biodata-preview-wrap--embed .biodata-preview-frame {
    height: min(52vh, 440px);
}

.my-theme-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.my-theme-form-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--maroon-900);
}

.my-theme-form-label i {
    color: var(--gold-600);
    font-size: 0.95rem;
}

.my-theme-form-actions {
    display: flex;
    justify-content: flex-end;
}

.my-theme-bar .format-style-rail-wrap {
    width: 100%;
}

.style-picker-embed .format-minimal-list {
    gap: 0.5rem;
}

.style-picker-embed .format-minimal-item--chip {
    min-height: 112px;
}

.style-picker-embed .format-minimal-item--chip:active {
    transform: scale(0.98);
}

.format-style-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.format-style-head-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--gold-400);
    background: linear-gradient(145deg, var(--maroon-900), var(--maroon-700));
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.format-style-head h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--maroon-900);
    margin-bottom: 0.25rem;
}

.format-style-head p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.format-style-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.format-style-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 2px solid var(--rose-200);
    border-radius: var(--radius-md);
    padding: 0.85rem;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.format-style-card input { display: none; }

.format-style-card:hover {
    border-color: color-mix(in srgb, var(--style-accent) 50%, var(--rose-300));
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(74, 14, 31, 0.1);
}

.format-style-card.is-selected {
    border-color: var(--style-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--style-accent) 18%, transparent), 0 16px 40px rgba(74, 14, 31, 0.12);
    background: linear-gradient(180deg, var(--white) 0%, color-mix(in srgb, var(--style-accent) 4%, white) 100%);
}

.format-selected-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
    background: var(--style-accent);
    border-radius: 50px;
}

.format-card-mockup {
    height: 88px;
    border-radius: 8px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--rose-200);
    background: #fafafa;
}

.mockup-bar {
    height: 14px;
    background: var(--style-accent);
    opacity: 0.85;
}

.mockup-body {
    display: flex;
    gap: 6px;
    padding: 8px;
}

.mockup-photo {
    width: 28px;
    height: 36px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--style-accent) 25%, #ddd);
    flex-shrink: 0;
}

.mockup-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}

.mockup-lines span {
    display: block;
    height: 5px;
    border-radius: 2px;
    background: var(--rose-200);
}

.mockup-lines span:nth-child(1) { width: 90%; }
.mockup-lines span:nth-child(2) { width: 70%; }
.mockup-lines span:nth-child(3) { width: 50%; }

.format-preview-traditional .mockup-bar { background: #8b1a3a; }
.format-preview-elegant .mockup-bar { background: #b8892f; }
.format-preview-modern .mockup-bar { background: #4f46e5; }
.format-preview-classic .mockup-bar { background: #4a5568; }
.format-preview-royal .mockup-bar { background: linear-gradient(90deg, #6b1530, #d4a84b); }
.format-preview-heritage .mockup-bar { background: #96701f; }

.format-style-card.is-readonly { cursor: default; }
.format-style-card.is-readonly:hover { transform: none; }

.format-card-content {
    text-align: center;
    flex: 1;
}

.format-card-icon {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--style-accent);
    background: color-mix(in srgb, var(--style-accent) 10%, white);
    border-radius: 10px;
}

.format-card-content strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--maroon-900);
    margin-bottom: 0.2rem;
}

.format-card-content small {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.format-card-dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    margin-top: 0.65rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--maroon-700);
    background: var(--rose-50);
    border: 1px solid var(--rose-200);
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition);
}

.format-card-dl:hover {
    background: var(--maroon-800);
    color: var(--white);
    border-color: var(--maroon-800);
}

.form-section-premium legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-section-premium legend i {
    color: var(--gold-600);
    font-size: 1.1em;
}

.biodata-preview-wrap {
    background: var(--white);
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.preview-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(90deg, var(--maroon-900), var(--maroon-800));
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.88rem;
}

.preview-toolbar i { color: var(--gold-400); margin-right: 0.25rem; }
.preview-toolbar strong { color: var(--gold-300); }

.preview-toolbar--compact {
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
}

.preview-toolbar-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.preview-toolbar-label strong {
    font-family: var(--font-display);
    font-size: 0.88rem;
    color: var(--gold-300);
}

.preview-toolbar--compact .btn-sm {
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
}

.preview-toolbar .btn-outline {
    border-color: rgba(255,255,255,0.35);
    color: var(--white);
    background: transparent;
}

.preview-toolbar .btn-outline:hover {
    background: rgba(255,255,255,0.12);
    color: var(--white);
}

.biodata-preview-frame {
    width: 100%;
    height: 780px;
    border: none;
    background: #fff;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Responsive */
@media (min-width: 769px) {
    :root {
        --page-gutter: 0.9rem;
        --header-height: 54px;
    }

    .header-inner {
        gap: 0.65rem;
    }

    .main-nav {
        margin-left: auto;
        flex-wrap: nowrap;
        gap: 0.15rem;
    }

    .nav-link {
        padding: 0.3rem 0.48rem;
        font-size: 13px;
    }
}

@media (min-width: 1200px) {
    :root {
        --page-gutter: 1rem;
    }

    .dashboard-grid,
    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.65rem;
    }

    .page-browse .profile-grid--compact {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .dash-card,
    .profile-card,
    .feature-card {
        min-height: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .dashboard-grid,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .profile-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.35rem;
    }

    .page-browse .profile-grid--compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }
}

@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .browse-layout { grid-template-columns: 1fr; }
    .filter-panel { position: static; }
    .profile-details-grid { grid-template-columns: 1fr 1fr; }
    .format-style-grid { grid-template-columns: repeat(2, 1fr); }

    .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1.75rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-about {
        max-width: 36rem;
    }
}

@media (min-width: 769px) and (max-width: 1150px) {
    .main-nav { gap: 0.1rem; flex-shrink: 1; }
    .nav-link {
        padding: 0.42rem 0.5rem;
        font-size: 14px;
        gap: 0.35rem;
    }
    .brand-name,
    .brand-tag { font-size: 0.92rem; }
}

@media (min-width: 769px) {
    .nav-link--cta {
        display: inline-flex;
        width: auto;
        margin-left: 0.35rem;
        padding: 0.38rem 0.85rem;
        font-size: 14px;
        min-height: 0;
        border-radius: 50px;
        color: var(--white);
        background: linear-gradient(135deg, var(--maroon-800), var(--maroon-700));
        border: 2px solid transparent;
        box-shadow: 0 4px 14px rgba(74, 14, 31, 0.15);
    }

    .nav-link--cta .icon-inline,
    .nav-link--cta > i:first-child {
        width: auto;
        height: auto;
        padding: 0;
        font-size: 1.1em;
        color: var(--white);
        background: transparent;
        border: none;
        border-radius: 0;
    }

    .nav-link--cta:hover {
        color: var(--white);
        transform: translateY(-1px);
    }

    .filter-panel-modal-head {
        display: block;
        padding: 0;
        margin-bottom: 0;
        border: none;
    }

    .filter-panel-close {
        display: none;
    }

    .filter-panel-modal-head h3 {
        font-size: 1.05rem;
        margin-bottom: 1.1rem;
        padding-bottom: 0.65rem;
        border-bottom: 2px solid var(--gold-400);
        color: var(--maroon-800);
    }

    .browse-filter-modal {
        position: relative;
        z-index: auto;
    }

    .filter-form-actions {
        display: flex;
    }

    .browse-filter-apply {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 42px;
        --page-gutter: 0.55rem;
        --card-gap: 0.45rem;
        --block-gap: 0.5rem;
        --radius-sm: 4px;
        --radius-md: 6px;
        --radius-lg: 8px;
        --radius-xl: 10px;
    }

    .brand-name,
    .brand-tag { font-size: 0.88rem; }

    .nav-overlay {
        display: block;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 280;
        background: rgba(255, 251, 248, 0.55);
        backdrop-filter: blur(14px) saturate(1.15);
        -webkit-backdrop-filter: blur(14px) saturate(1.15);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.32s ease, visibility 0.32s ease, backdrop-filter 0.32s ease;
    }

    .nav-overlay.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 350;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: linear-gradient(180deg, #fffdfb 0%, #fff8f3 42%, #fffaf7 100%);
        padding: 0.75rem 0.7rem 1rem;
        gap: 0;
        border: none;
        border-radius: 0;
        box-shadow: -8px 0 32px rgba(74, 14, 31, 0.08);
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(100%);
        transition: opacity 0.3s ease, transform 0.34s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
    }

    .mobile-nav-head,
    .mobile-nav-links,
    .mobile-nav-footer {
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
    }

    .mobile-nav-head {
        padding: 0.15rem 0.2rem 0.65rem;
        margin-bottom: 0.15rem;
        border-bottom: 1px solid rgba(252, 233, 223, 0.9);
    }

    .mobile-nav-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        margin: 0;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: var(--gold-700);
    }

    .mobile-nav-eyebrow i {
        font-size: 0.85rem;
        color: var(--gold-600);
    }

    .mobile-nav-lead {
        margin: 0.35rem 0 0;
        font-size: 0.88rem;
        font-weight: 600;
        color: var(--maroon-900);
        line-height: 1.35;
        font-family: var(--font-display);
    }

    .mobile-nav-links {
        gap: 0.35rem;
        padding: 0.65rem 0 0.65rem;
        flex: 1 1 auto;
    }

    .mobile-nav-footer {
        margin-top: auto;
        gap: 0.35rem;
        padding-top: 0.65rem;
        border-top: 1px solid rgba(252, 233, 223, 0.95);
    }

    .mobile-nav-guest-card {
        display: block;
        padding: 0.7rem 0.8rem;
        border-radius: var(--radius-md);
        background: linear-gradient(135deg, rgba(255, 248, 242, 0.98), rgba(255, 255, 255, 0.94));
        border: 1px solid rgba(212, 168, 75, 0.28);
        box-shadow: 0 4px 16px rgba(74, 14, 31, 0.05);
    }

    .mobile-nav-guest-card p {
        margin: 0;
        display: flex;
        align-items: flex-start;
        gap: 0.45rem;
        font-size: 0.78rem;
        line-height: 1.45;
        color: var(--text-secondary);
    }

    .mobile-nav-guest-card i {
        color: var(--gold-600);
        font-size: 1rem;
        flex-shrink: 0;
        margin-top: 0.05rem;
    }

    .nav-link--mobile-only {
        display: flex;
    }

    .main-nav::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--maroon-800), var(--gold-500), var(--maroon-700));
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        padding: 0.72rem 0.85rem;
        border-radius: var(--radius-md);
        width: 100%;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--maroon-900);
        background: rgba(255, 255, 255, 0.82);
        border: 1px solid rgba(252, 233, 223, 0.9);
        box-shadow: 0 2px 10px rgba(74, 14, 31, 0.04);
        text-decoration: none;
        position: relative;
    }

    .nav-link--cta {
        color: var(--white);
        background: linear-gradient(135deg, var(--maroon-800), var(--maroon-700));
        border-color: var(--maroon-800);
        box-shadow: 0 6px 18px rgba(74, 14, 31, 0.18);
        min-height: 46px;
        justify-content: center;
    }

    .nav-link--cta .icon-inline,
    .nav-link--cta > i:first-child {
        color: var(--white);
        background: rgba(255, 255, 255, 0.14);
        border-color: rgba(255, 255, 255, 0.22);
    }

    .nav-link--cta:hover {
        color: var(--white);
        background: linear-gradient(135deg, var(--maroon-900), var(--maroon-800));
        border-color: var(--maroon-900);
    }

    .nav-link .icon-inline,
    .nav-link > i:first-child {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        color: var(--maroon-800);
        background: linear-gradient(145deg, var(--rose-50), var(--white));
        border: 1px solid var(--rose-200);
        border-radius: 10px;
        opacity: 1;
        flex-shrink: 0;
    }

    .nav-link:hover:not(.nav-link--cta),
    .nav-link.is-active:not(.nav-link--cta) {
        background: linear-gradient(135deg, rgba(255, 245, 238, 0.98), rgba(255, 255, 255, 0.95));
        border-color: rgba(212, 168, 75, 0.45);
        color: var(--maroon-900);
    }

    .nav-link.nav-link--cta .icon-inline,
    .nav-link.nav-link--cta > i:first-child {
        color: var(--white);
        background: rgba(255, 255, 255, 0.14);
        border-color: rgba(255, 255, 255, 0.22);
    }

    .nav-link.is-active {
        border-left: 3px solid var(--gold-500);
        padding-left: calc(0.9rem - 2px);
    }

    .main-nav .btn-primary {
        display: none;
    }

    .nav-profile-block {
        display: block;
        order: unset;
        margin-top: 0;
        padding-top: 0;
    }

    .main-nav .nav-user {
        width: 100%;
        justify-content: flex-start;
        padding: 0.7rem 0.85rem;
        border-radius: var(--radius-md);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 248, 242, 0.94));
        border: 1px solid rgba(212, 168, 75, 0.35);
        box-shadow: 0 6px 20px rgba(74, 14, 31, 0.08);
    }

    .main-nav .nav-user .avatar-portrait--sm {
        --avatar-size: 48px;
        --avatar-ring: 3px;
    }

    .main-nav .nav-user-meta {
        display: flex;
    }

    .main-nav .nav-user-name {
        max-width: 12rem;
        font-size: 0.9rem;
    }

    .nav-link.nav-logout {
        order: unset;
        margin-left: 0;
        margin-top: 0;
        border-top: none;
        padding-top: 0.72rem;
        background: rgba(255, 255, 255, 0.72);
        color: var(--maroon-700);
    }

    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 380;
    }

    body.nav-open .brand {
        position: relative;
        z-index: 380;
    }

    body.nav-open .site-header {
        z-index: 360;
        box-shadow: 0 4px 20px rgba(74, 14, 31, 0.08);
    }

    body.nav-open .header-backdrop {
        background: rgba(255, 253, 251, 0.98);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .section { padding: 1.75rem 0; }
    .section-tight { padding-top: 0.85rem; padding-bottom: 1rem; }
    .hero { padding: 1.5rem 0 1.75rem; }
    .page-hero { padding: 0.3rem 0 0.2rem; }
    .page-hero.compact { padding: 0.25rem 0 0.15rem; }
    .page-hero.compact + .section,
    .page-hero.compact + .section-tight { padding-top: 0.35rem; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .feature-grid { grid-template-columns: 1fr; gap: 0.85rem; }
    .feature-card { padding: 1.25rem 1rem; }

    .steps-grid { grid-template-columns: 1fr; gap: 0.85rem; }
    .step { padding: 1.25rem 1rem; }

    .cta-panel { flex-direction: column; text-align: center; padding: 1.5rem 1rem; }
    .cta-panel .btn { width: 100%; }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 1.35rem;
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-about {
        max-width: 100%;
    }

    .footer-panel {
        padding-top: 1rem;
    }

    .footer-bottom {
        margin-top: 0.35rem;
        padding-top: 0.25rem;
    }

    .site-footer > .container {
        padding-bottom: 0.15rem;
    }

    .profile-header { grid-template-columns: 1fr; text-align: center; padding: 1.25rem; }
    .profile-header-photo img { margin: 0 auto; width: 140px; height: 140px; }
    .profile-details-grid { grid-template-columns: 1fr; gap: 0.85rem; }
    .profile-view { padding: 1.25rem 0 2rem; }

    .hero-stats { flex-direction: column; gap: 0.75rem; }
    .stat { padding-left: 2.25rem; }

    .format-style-grid { grid-template-columns: 1fr; }
    .format-style-premium { padding: 1rem; }
    .biodata-preview-frame { height: 480px; }

    .my-biodata-actions { flex-direction: column; width: 100%; }
    .my-biodata-actions .btn { width: 100%; justify-content: center; }
    .my-biodata-hero { flex-direction: column; align-items: stretch; }
    .my-biodata-sidebar { position: static; }
    .my-biodata-preview-panel { position: static; }
    .my-biodata-stats { grid-template-columns: repeat(2, 1fr); }
    .my-biodata-layout { grid-template-columns: 1fr; }
    .my-biodata-formats .format-style-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-pdf-section .format-style-grid { grid-template-columns: 1fr; }
    .format-style-grid { grid-template-columns: repeat(2, 1fr); }
    .action-chip { justify-content: center; width: 100%; }

    .browse-layout { gap: 1rem; }

    .browse-filter-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }

    .browse-filter-modal {
        position: fixed;
        inset: 0;
        z-index: 500;
        pointer-events: none;
        visibility: hidden;
    }

    .browse-filter-modal.is-open {
        pointer-events: auto;
        visibility: visible;
    }

    .filter-backdrop {
        display: block;
        position: absolute;
        inset: 0;
        background: rgba(45, 8, 20, 0.55);
        opacity: 0;
        transition: opacity 0.28s ease;
    }

    .browse-filter-modal.is-open .filter-backdrop {
        opacity: 1;
    }

    .browse-filter-modal .filter-panel {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 1;
        max-height: min(88vh, 720px);
        margin: 0;
        padding: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        transform: translateY(105%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 -12px 40px rgba(74, 14, 31, 0.2);
        opacity: 1;
        pointer-events: auto;
    }

    .browse-filter-modal.is-open .filter-panel {
        transform: translateY(0);
    }

    .filter-panel-modal-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.85rem 1rem 0.65rem;
        border-bottom: 1px solid rgba(252, 233, 223, 0.95);
        flex-shrink: 0;
    }

    .filter-panel-close {
        display: inline-flex;
    }

    .filter-panel-modal-head h3 {
        margin: 0;
        padding: 0;
        border: none;
        font-size: 1rem;
        color: var(--maroon-800);
    }

    .browse-filter-modal .filter-form {
        overflow-y: auto;
        padding: 0.85rem 1rem 1.15rem;
        -webkit-overflow-scrolling: touch;
        flex: 1 1 auto;
    }

    .filter-form-actions {
        display: flex;
    }

    .profile-grid { grid-template-columns: 1fr; gap: 0.85rem; }

    .page-browse .profile-grid--compact {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .auth-section { padding: 0.65rem 0 2rem; }
    .auth-card { padding: 1.25rem; }

    .biodata-form { padding: 1.25rem; }

    .nav-link { white-space: normal; }
    .nav-link > span:not(.nav-badge) { white-space: normal; }
}

@media (max-width: 480px) {
    :root {
        --page-gutter: 0.5rem;
        --card-gap: 0.38rem;
        --block-gap: 0.42rem;
        --radius-sm: 3px;
        --radius-md: 5px;
        --radius-lg: 7px;
        --radius-xl: 9px;
    }

    .brand-name,
    .brand-tag { font-size: 0.84rem; }
    .dash-card strong { font-size: 1.4rem; }

    .quick-actions-row {
        gap: 0.3rem;
    }

    .quick-action {
        padding: 0.48rem 0.1rem;
        font-size: 0.64rem;
    }

    .quick-action i {
        font-size: 1rem;
    }
}

/* Auth — easy registration/login */
.auth-section { padding: 0.75rem 0 2.5rem; }

.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
    max-width: 920px;
    margin: 0 auto;
}

.auth-split-info {
    background: linear-gradient(145deg, var(--maroon-900), var(--maroon-700));
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
}

.auth-split-info h1 { color: var(--white); font-size: 2rem; margin: 0.5rem 0; }
.auth-split-info p { color: rgba(255,255,255,0.8); font-size: 0.92rem; line-height: 1.6; }
.auth-split-info .eyebrow { color: var(--gold-300); }

.auth-steps {
    list-style: none;
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.auth-steps li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.85);
}

.auth-steps i { color: var(--gold-400); }

.auth-card-modern {
    padding: 1.75rem;
    border-radius: var(--radius-lg);
}

.auth-card-modern .form-group label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.label-opt { font-weight: 400; color: var(--text-muted); font-size: 0.78rem; }

.form-group input,
.form-group select,
.form-group textarea {
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Overlap prevention */
.profile-card-body h3,
.request-body h3,
.chat-list-top strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-subtitle,
.profile-meta,
.request-meta,
.hero-meta-row {
    overflow-wrap: anywhere;
}

.header-inner { min-width: 0; }
.main-nav { min-width: 0; }

.btn.disabled {
    pointer-events: none;
    opacity: 0.75;
}

/* Tabs */
.tab-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--white);
    border: 1.5px solid var(--rose-200);
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--maroon-800);
    border-color: var(--maroon-500);
    background: var(--rose-50);
}

.badge {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--white);
    background: var(--maroon-600);
    border-radius: 50px;
}

/* Requests */
.request-list { display: flex; flex-direction: column; gap: 0.75rem; }

.request-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.request-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-400);
}

.request-body { min-width: 0; }
.request-body h3 { font-size: 1.05rem; margin-bottom: 0.2rem; font-family: var(--font-body); font-weight: 600; }
.request-meta { font-size: 0.82rem; color: var(--text-muted); }
.request-msg { font-size: 0.88rem; color: var(--text-secondary); margin: 0.4rem 0; font-style: italic; }

.status-pill {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    background: var(--rose-100);
    color: var(--maroon-700);
}

.request-actions form,
.request-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }

/* Chat */
.chat-list { display: flex; flex-direction: column; gap: 0.5rem; }

.chat-list-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.85rem 1rem;
    background: var(--white);
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

.chat-list-item:hover { border-color: var(--maroon-400); box-shadow: var(--shadow-sm); }
.chat-list-item.has-unread { border-color: var(--maroon-500); background: var(--rose-50); }

.chat-list-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-list-body { min-width: 0; }
.chat-list-top { display: flex; justify-content: space-between; gap: 0.5rem; align-items: baseline; }
.chat-list-top time { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }
.chat-list-body p { font-size: 0.84rem; color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.chat-unread {
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--white);
    background: var(--maroon-600);
    border-radius: 50%;
}

.chat-page { padding: 0.45rem 0 1rem; }

.chat-container {
    max-width: 720px;
    background: var(--white);
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    min-height: 420px;
    max-height: calc(100vh - var(--header-height) - 2rem);
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(90deg, var(--maroon-900), var(--maroon-800));
    color: var(--white);
}

.chat-header-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold-400); }
.chat-header-info { flex: 1; min-width: 0; }
.chat-header-info strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-header-info span { font-size: 0.75rem; color: var(--gold-300); }

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    background: var(--rose-50);
}

.chat-bubble {
    max-width: 82%;
    padding: 0.65rem 0.85rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.chat-bubble.mine {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--maroon-800), var(--maroon-600));
    color: var(--white);
    border-bottom-right-radius: 4px;
}

.chat-bubble.theirs {
    align-self: flex-start;
    background: var(--white);
    border: 1px solid var(--rose-200);
    border-bottom-left-radius: 4px;
}

.chat-bubble time { display: block; font-size: 0.68rem; opacity: 0.7; margin-top: 0.25rem; }

.chat-compose {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid var(--rose-200);
    background: var(--white);
}

.chat-compose input {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--rose-300);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.chat-locked {
    padding: 2.5rem 1.5rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.empty-icon { font-size: 2.5rem; color: var(--gold-500); margin-bottom: 0.5rem; }

.interest-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}

.interest-input {
    flex: 1;
    min-width: 160px;
    padding: 0.55rem 0.85rem;
    border: 1.5px solid var(--rose-300);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.88rem;
}

.inline-form { display: inline; }

/* Browse — search toolbar */
.page-browse .quick-search-bar {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 248, 0.94));
    border: 1px solid rgba(252, 233, 223, 0.95);
    border-radius: var(--radius-lg);
    padding: 0.6rem 0.65rem 0.65rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 8px 24px rgba(74, 14, 31, 0.06);
    position: relative;
}

.page-browse .quick-search-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--maroon-800), var(--gold-500), var(--maroon-700));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.page-browse .quick-search-toolbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
}

.page-browse .quick-search-field {
    min-width: 0;
}

.page-browse .quick-search-field--gender {
    flex: 1 1 auto;
}

.page-browse .quick-search-field--query {
    width: 100%;
}

.page-browse .quick-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    width: 100%;
    padding: 0 0.85rem;
    min-height: 42px;
    border: 1.5px solid rgba(212, 168, 75, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: inset 0 1px 2px rgba(74, 14, 31, 0.04);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.page-browse .quick-search-input-wrap:focus-within {
    border-color: rgba(139, 26, 58, 0.45);
    box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.16);
}

.page-browse .quick-search-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    color: var(--maroon-700);
    font-size: 1rem;
    line-height: 1;
}

.page-browse .quick-search-bar input[type="search"] {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 0.55rem 0;
    border: none;
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.86rem;
    color: var(--text-primary);
    background: transparent;
    box-shadow: none;
}

.page-browse .quick-search-bar input[type="search"]:focus {
    outline: none;
    box-shadow: none;
}

.page-browse .quick-search-bar input[type="search"]::placeholder {
    color: var(--text-muted);
}

.page-browse .quick-search-bar select {
    width: 100%;
    min-height: 42px;
    padding: 0 2rem 0 0.85rem;
    border: 1.5px solid rgba(212, 168, 75, 0.35);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--maroon-800);
    background: rgba(255, 255, 255, 0.96) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b1530' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
    appearance: none;
    box-shadow: inset 0 1px 2px rgba(74, 14, 31, 0.04);
}

.page-browse .browse-filter-toggle {
    flex-shrink: 0;
    min-height: 42px;
    padding: 0 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border-color: rgba(139, 26, 58, 0.28);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 2px 8px rgba(74, 14, 31, 0.05);
}

.page-browse .browse-filter-toggle:hover {
    border-color: var(--maroon-700);
    background: var(--maroon-800);
    color: var(--white);
}

.page-browse .browse-live-hint {
    display: none;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-left: auto;
    white-space: nowrap;
}

@media (min-width: 769px) {
    .page-browse .quick-search-bar {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.55rem;
        padding: 0.65rem 0.75rem;
    }

    .page-browse .quick-search-field--query {
        flex: 1 1 auto;
        order: 1;
    }

    .page-browse .quick-search-toolbar {
        flex: 0 0 auto;
        width: auto;
        order: 2;
    }

    .page-browse .quick-search-field--gender {
        flex: 0 0 auto;
    }

    .page-browse .quick-search-field--gender select {
        width: auto;
        min-width: 138px;
    }

    .page-browse .browse-live-hint {
        display: inline-flex;
    }
}

.browse-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-500);
    animation: browse-pulse 0.9s ease-in-out infinite;
}

@keyframes browse-pulse {
    0%, 100% { opacity: 0.35; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1); }
}

.browse-results {
    transition: opacity 0.2s ease;
    min-height: 120px;
}

.browse-results.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.browse-truncated-note {
    margin-top: 0.85rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}

.browse-filter-form .filter-form .btn-block {
    margin-top: 0.35rem;
}

.quick-actions-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.65rem;
}

.quick-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--maroon-800);
    background: var(--white);
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition);
    text-align: center;
    flex-wrap: wrap;
}

.quick-action:hover {
    border-color: var(--maroon-500);
    color: var(--maroon-800);
    box-shadow: var(--shadow-sm);
}

/* Setup page */
.setup-panel-wrap {
    max-width: 640px;
}

.setup-panel {
    background: var(--white);
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-md);
}

.setup-panel h1 {
    font-size: 1.85rem;
    margin-bottom: 1rem;
}

.setup-msg {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
    font-size: 0.92rem;
    line-height: 1.55;
}

.setup-msg-ok { color: var(--success); }
.setup-msg-err { color: var(--error); }

.setup-panel .btn { margin-top: 1rem; }

/* Full biodata preview page */
.preview-page-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.biodata-preview-frame--page {
    height: min(82vh, 900px);
}

@media (min-width: 769px) {
    .dash-card {
        padding: 1.85rem 1.65rem;
    }

    .profile-card-body {
        padding: 1.35rem;
    }
}

/* ── Mobile card UI (must follow base card rules) ── */
@media (max-width: 768px) {
    .form-container { max-width: 100%; }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: var(--card-gap);
    }

    .dash-card {
        padding: 0.85rem 0.75rem;
        border-radius: var(--radius-md);
    }

    .dash-card strong { font-size: 1.45rem; }

    .dash-card .btn {
        width: 100%;
        justify-content: center;
        margin-right: 0;
    }

    .dash-card .btn + .btn { margin-top: 0.35rem; }

    .quick-actions-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.35rem;
    }

    .quick-action {
        position: relative;
        flex-direction: column;
        gap: 0.22rem;
        padding: 0.52rem 0.15rem;
        font-size: 0.68rem;
        line-height: 1.1;
        min-height: 0;
    }

    .quick-action i {
        font-size: 1.05rem;
        line-height: 1;
    }

    .quick-action .badge {
        position: absolute;
        top: 0.15rem;
        right: 0.15rem;
        min-width: 14px;
        height: 14px;
        padding: 0 3px;
        font-size: 0.55rem;
        line-height: 14px;
    }

    .page-browse .quick-search-bar {
        padding: 0.55rem 0.6rem 0.6rem;
        margin-bottom: var(--card-gap);
        gap: 0.4rem;
    }

    .page-browse .quick-search-input-wrap {
        min-height: 40px;
        padding: 0 0.75rem;
    }

    .page-browse .quick-search-bar input[type="search"] {
        font-size: 0.82rem;
    }

    .page-browse .quick-search-bar select {
        min-height: 40px;
        font-size: 0.78rem;
    }

    .page-browse .browse-filter-toggle {
        min-height: 40px;
        padding: 0 0.7rem;
        font-size: 0.76rem;
    }

    .filter-panel {
        padding: 0.7rem 0.65rem;
        border-radius: var(--radius-md);
    }

    .profile-card,
    .profile-card--compact {
        border-radius: var(--radius-md);
    }

    .profile-card-body {
        padding: 0.75rem 0.8rem 0.85rem;
    }

    .detail-card {
        padding: 0.85rem 0.75rem;
        border-radius: var(--radius-md);
    }

    .empty-state {
        padding: 1.35rem 0.75rem;
        border-radius: var(--radius-md);
    }

    .empty-state p {
        margin-bottom: 0.85rem;
    }

    .empty-state-actions {
        max-width: 100%;
    }

    .feature-card,
    .step {
        border-radius: var(--radius-md);
    }

    .my-biodata-hero {
        padding: 0.7rem 0.65rem;
        border-radius: var(--radius-md);
    }

    .my-biodata-info h1 { font-size: 1.25rem; }

    .my-stat-card {
        padding: 0.65rem 0.7rem;
        border-radius: var(--radius-sm);
    }

    .my-panel,
    .my-biodata-preview-panel {
        border-radius: var(--radius-md);
    }

    .my-panel-head { padding: 0.85rem 0.9rem 0.75rem; }

    .my-panel-body { padding: 0.75rem; }

    .format-style-premium {
        padding: 0.85rem;
        border-radius: var(--radius-md);
    }

    .format-style-card {
        padding: 0.65rem;
        border-radius: var(--radius-sm);
    }

    .preview-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        padding: 0.65rem 0.85rem;
    }

    .preview-toolbar-actions {
        width: 100%;
    }

    .preview-toolbar-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .biodata-preview-frame { height: min(62vh, 520px); }

    .pagination { flex-wrap: wrap; gap: 0.75rem; }

    /* Auth — stack info + form as one card */
    .auth-section {
        padding: 0.5rem var(--page-gutter) 1.5rem;
        align-items: stretch;
    }

    .auth-split {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-lg);
        overflow: hidden;
        border: 1px solid var(--rose-200);
        box-shadow: var(--shadow-lg);
        background: var(--white);
    }

    .auth-split-info {
        padding: 1.1rem 1rem 1rem;
        text-align: left;
        border-radius: 0;
    }

    .auth-split-info h1 {
        font-size: 1.4rem;
        margin: 0.35rem 0 0.4rem;
    }

    .auth-split-info p {
        font-size: 0.84rem;
        line-height: 1.5;
    }

    .auth-steps {
        margin-top: 0.85rem;
        gap: 0.45rem;
        align-items: flex-start;
    }

    .auth-steps li { font-size: 0.8rem; }

    .auth-card-modern {
        width: 100%;
        max-width: 100%;
        padding: 1rem 0.95rem 1.15rem;
        border: none;
        border-radius: 0;
        box-shadow: none;
    }

    .auth-split .auth-card {
        width: 100%;
        max-width: 100%;
    }

    .auth-card-modern::before {
        height: 3px;
    }

    .auth-card-modern .form-group { margin-bottom: 0.9rem; }

    .auth-card-modern .form-group input {
        padding: 0.78rem 0.9rem;
        font-size: 16px;
        min-height: 44px;
    }

    .auth-card-modern .btn-block { min-height: 46px; }

    .auth-switch { font-size: 0.84rem; margin-top: 1rem; }

    .biodata-form {
        padding: 1rem 0.9rem;
        border-radius: var(--radius-md);
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Requests & chat cards */
    .request-card {
        grid-template-columns: 52px 1fr;
        grid-template-areas:
            "avatar body"
            "actions actions";
        gap: var(--card-gap);
        text-align: left;
        padding: 0.7rem 0.65rem;
        align-items: start;
        border-radius: var(--radius-md);
    }

    .request-avatar {
        grid-area: avatar;
        width: 52px;
        height: 52px;
        margin: 0;
    }

    .request-body { grid-area: body; }

    .request-actions {
        grid-area: actions;
        width: 100%;
        justify-content: stretch;
        gap: 0.45rem;
    }

    .request-actions .btn { flex: 1; justify-content: center; }

    .chat-list-item {
        grid-template-columns: 44px 1fr auto;
        padding: 0.65rem 0.6rem;
        border-radius: var(--radius-md);
        gap: var(--card-gap);
    }

    .chat-list-avatar {
        width: 44px;
        height: 44px;
    }

    .chat-container {
        border-radius: var(--radius-md);
        min-height: 70vh;
    }

    .chat-compose {
        padding: 0.65rem;
        gap: 0.45rem;
    }

    .chat-compose input {
        font-size: 16px;
        min-height: 44px;
    }

    .profile-header {
        padding: 1rem 0.9rem;
        border-radius: var(--radius-md);
        gap: 1rem;
    }

    .profile-actions {
        flex-direction: column;
        width: 100%;
    }

    .profile-actions .btn,
    .profile-actions form,
    .profile-actions .interest-form {
        width: 100%;
    }

    .profile-actions .btn { justify-content: center; }

    .interest-form { flex-direction: column; width: 100%; }
    .interest-input { width: 100%; font-size: 16px; min-height: 44px; }

    .tab-bar { gap: 0.35rem; }

    .tab-btn {
        flex: 1;
        justify-content: center;
        min-height: 40px;
        font-size: 0.82rem;
        padding: 0.5rem 0.65rem;
    }

    .setup-panel {
        padding: 1.25rem 1rem;
        border-radius: var(--radius-md);
    }

    .setup-panel h1 { font-size: 1.45rem; }

    .cta-panel {
        border-radius: var(--radius-md);
    }
}

@media (max-width: 480px) {
    .my-biodata-stats {
        grid-template-columns: 1fr;
    }

    .auth-steps { display: none; }

    .auth-split-info { padding: 0.95rem 0.85rem 0.85rem; }

    .auth-split-info h1 { font-size: 1.28rem; }

    .quick-actions-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .request-actions {
        flex-direction: column;
    }

    .request-actions .btn { width: 100%; }
}

/* Photos — cover, gallery, upload UI */
.form-section-lead {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin: -0.35rem 0 1rem;
    line-height: 1.5;
}

.photo-upload-block {
    margin-bottom: 1.15rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--rose-100);
}

.photo-upload-block:last-of-type {
    border-bottom: none;
    margin-bottom: 0.75rem;
}

.photo-upload-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--maroon-800);
    margin-bottom: 0.45rem;
}

.photo-upload-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.photo-preview--cover {
    width: min(100%, 220px);
    height: 72px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid var(--gold-400);
}

.photo-preview--cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview--profile {
    display: inline-flex;
}

.gallery-existing {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.gallery-thumb {
    position: relative;
    width: 72px;
    cursor: pointer;
}

.gallery-thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--rose-200);
}

.gallery-thumb-remove {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.65rem;
    color: var(--maroon-700);
    text-align: center;
}

.profile-cover {
    height: 160px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    margin-bottom: -2rem;
    box-shadow: 0 8px 28px rgba(74, 14, 31, 0.08);
}

.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header--with-cover {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.profile-gallery {
    margin: 1.25rem 0;
}

.profile-gallery h2 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--maroon-900);
}

.profile-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.65rem;
}

.profile-gallery-item {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--rose-200);
    aspect-ratio: 1;
}

.profile-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-gallery-item:hover img {
    transform: scale(1.04);
}

/* ── My Biodata premium ── */
.my-premium-hero {
    position: relative;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(252, 233, 223, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(74, 14, 31, 0.09);
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.my-premium-cover {
    height: 120px;
    position: relative;
    overflow: hidden;
}

.my-premium-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-premium-cover-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(255, 255, 255, 0.95) 100%);
}

.my-premium-hero-body {
    padding: 1.15rem 1.35rem;
}

.my-premium-hero-body--cover {
    margin-top: -2.5rem;
    position: relative;
    z-index: 1;
}

.my-premium-photo-wrap {
    position: relative;
    flex-shrink: 0;
}

.my-premium-photo {
    width: 88px;
    height: 88px;
    border-width: 4px;
    box-shadow: 0 8px 24px rgba(74, 14, 31, 0.12);
}

.my-photo-badge {
    position: absolute;
    bottom: 2px;
    right: -4px;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.15rem 0.45rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--white);
    background: var(--maroon-800);
    border-radius: 50px;
    border: 2px solid var(--white);
}

.my-style-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--maroon-800);
    background: linear-gradient(135deg, var(--rose-50), var(--white));
    border: 1px solid var(--gold-400);
    border-radius: 50px;
}

.my-share-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--rose-100);
}

.share-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition);
    border: 1.5px solid transparent;
}

.share-chip--pdf {
    color: var(--maroon-950);
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    box-shadow: var(--shadow-gold);
}

.share-chip--pdf:hover {
    color: var(--maroon-950);
    transform: translateY(-1px);
}

.share-chip--wa {
    color: var(--white);
    background: linear-gradient(135deg, #25d366, #128c7e);
}

.share-chip--wa:hover {
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.3);
}

.share-chip--ghost {
    color: var(--maroon-800);
    background: var(--white);
    border-color: var(--rose-300);
}

.share-chip--ghost:hover {
    border-color: var(--maroon-500);
    color: var(--maroon-800);
}

.my-panel--premium .my-panel-head p {
    margin: 0.2rem 0 0;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.my-biodata-layout {
    grid-template-columns: minmax(240px, 300px) 1fr;
}

.preview-toolbar--premium small {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 400;
    margin-left: 0.25rem;
}

.format-card-actions {
    display: flex;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.format-card-dl,
.format-card-wa {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.68rem;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: all var(--transition);
}

.format-card-dl {
    color: var(--maroon-800);
    background: var(--rose-50);
    border: 1px solid var(--rose-200);
}

.format-card-dl:hover {
    background: var(--maroon-800);
    color: var(--white);
    border-color: var(--maroon-800);
}

.format-card-wa {
    color: var(--white);
    background: #128c7e;
    border: 1px solid #0f7a6e;
}

.format-card-wa:hover {
    background: #25d366;
    color: var(--white);
}

/* ── Profile view premium ── */
.profile-view--premium {
    padding: 0.5rem 0 2.5rem;
}

.profile-view-container {
    max-width: none;
}

.profile-view-hero-grid {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.35rem 1.5rem;
    align-items: start;
}

.profile-view-gallery {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--gold-400);
    background: var(--rose-50);
    box-shadow: 0 8px 28px rgba(74, 14, 31, 0.1);
}

.photo-slider--profile-view {
    width: 100%;
    height: 320px;
    border-radius: 12px;
    background: #f8f4f1;
}

.photo-slider--profile-view .photo-slider-slide img {
    object-fit: contain;
    object-position: center center;
    background: #f8f4f1;
}

.profile-hero-info--aligned {
    padding: 0.25rem 0;
    min-width: 0;
}

.profile-hero-info--aligned h1 {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    line-height: 1.2;
    word-break: break-word;
}

.profile-location-line {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0 0 0.65rem;
}

.profile-quick-facts--stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.profile-quick-facts--stacked span {
    width: 100%;
    line-height: 1.45;
    word-break: break-word;
}

.profile-details-grid--premium .detail-card dd {
    word-break: break-word;
    line-height: 1.5;
}

.profile-details-grid--premium .detail-card dl {
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .profile-view-hero-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .profile-view-gallery {
        max-width: 280px;
        margin: 0 auto;
        width: 100%;
    }

    .photo-slider--profile-view {
        height: 280px;
    }

    .profile-hero-info--aligned {
        text-align: center;
    }

    .profile-quick-facts--stacked {
        align-items: center;
    }

    .profile-tags {
        justify-content: center;
    }

    .profile-location-line {
        justify-content: center;
    }
}

.profile-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.profile-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--maroon-800);
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--rose-200);
    transition: all var(--transition);
}

.profile-back-link:hover {
    border-color: var(--maroon-500);
    color: var(--maroon-800);
}

.profile-top-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.profile-top-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
    border-radius: 50%;
    border: 1.5px solid var(--rose-200);
    background: rgba(255, 255, 255, 0.9);
    color: var(--maroon-800);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
}

.profile-top-chip--pdf:hover {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--maroon-950);
}

.profile-top-chip--wa {
    color: #128c7e;
}

.profile-top-chip--wa:hover {
    background: #25d366;
    border-color: #25d366;
    color: var(--white);
}

.profile-top-chip.is-active {
    background: var(--maroon-800);
    border-color: var(--maroon-800);
    color: var(--white);
}

.profile-hero-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(252, 233, 223, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(74, 14, 31, 0.1);
    overflow: hidden;
    margin-bottom: 1rem;
}

.profile-hero-cover {
    height: 140px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--maroon-900), var(--maroon-700) 50%, var(--gold-600));
}

.profile-hero-cover--placeholder {
    background: linear-gradient(135deg, #5c1228 0%, #8b1a3a 45%, #c9a227 100%);
}

.profile-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-hero-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(74, 14, 31, 0.15) 0%, rgba(74, 14, 31, 0.55) 100%);
}

.profile-hero-body {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1.25rem;
    padding: 0 1.5rem 1rem;
    margin-top: -3.5rem;
    position: relative;
    z-index: 1;
    align-items: end;
}

.profile-hero-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--gold-400);
    box-shadow: 0 12px 32px rgba(74, 14, 31, 0.2);
    background: var(--white);
}

.profile-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-700);
    margin: 0 0 0.25rem;
}

.profile-hero-info h1 {
    font-size: 1.75rem;
    margin: 0 0 0.35rem;
    line-height: 1.15;
}

.profile-quick-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    margin: 0.65rem 0;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

.profile-quick-facts span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.profile-quick-facts i {
    color: var(--gold-600);
}

.tag--views,
.tag--style {
    background: linear-gradient(135deg, var(--rose-50), var(--white));
    border: 1px solid var(--rose-200);
}

.profile-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.5rem 1.25rem;
    border-top: 1px solid var(--rose-100);
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.profile-action-bar .profile-cta {
    flex: 1;
    min-width: 140px;
    justify-content: center;
}

.interest-form--premium {
    flex: 1;
    min-width: min(100%, 320px);
}

.profile-section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(74, 14, 31, 0.05);
    position: sticky;
    top: calc(var(--header-height) + 8px);
    z-index: 5;
    backdrop-filter: blur(8px);
}

.profile-section-nav a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--maroon-800);
    text-decoration: none;
    border-radius: 50px;
    transition: all var(--transition);
    white-space: nowrap;
}

.profile-section-nav a:hover {
    background: var(--rose-100);
    color: var(--maroon-900);
}

.profile-details-grid--premium {
    gap: 1rem;
}

.detail-card--premium {
    position: relative;
    padding-top: 1.25rem;
}

.detail-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--gold-600);
    background: linear-gradient(145deg, var(--rose-50), var(--white));
    border: 1px solid var(--rose-200);
    border-radius: 12px;
    margin-bottom: 0.65rem;
}

.detail-card-icon--light {
    color: var(--gold-300);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.detail-text-block {
    margin-bottom: 1rem;
}

.detail-text-block:last-child {
    margin-bottom: 0;
}

.detail-text-block h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin: 0 0 0.35rem;
}

.profile-gallery--premium {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin: 1rem 0;
    box-shadow: 0 8px 28px rgba(74, 14, 31, 0.06);
}

.profile-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
}

.profile-section-head h2 {
    font-size: 1.15rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--maroon-900);
}

.profile-section-head span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.profile-pdf-section--premium {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-lg);
    padding: 1.35rem;
    margin-top: 1rem;
    box-shadow: 0 12px 40px rgba(74, 14, 31, 0.07);
}

.profile-pdf-section--premium .profile-pdf-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.25rem;
}

.profile-pdf-head-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: var(--gold-400);
    background: linear-gradient(145deg, var(--maroon-900), var(--maroon-700));
    border-radius: 12px;
}

.profile-pdf-section--premium .profile-pdf-head h2 {
    font-size: 1.25rem;
    margin: 0 0 0.2rem;
}

.profile-pdf-section--premium .profile-pdf-head p {
    margin: 0;
    font-size: 0.84rem;
}

.profile-pdf-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.profile-mobile-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--rose-200);
    box-shadow: 0 -8px 32px rgba(74, 14, 31, 0.1);
    backdrop-filter: blur(10px);
    gap: 0.45rem;
    align-items: center;
}

.profile-mobile-bar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 1;
    padding: 0.65rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    text-decoration: none;
    border: 1.5px solid var(--rose-300);
    color: var(--maroon-800);
    background: var(--white);
}

.profile-mobile-bar-btn--primary {
    flex: 2;
    background: linear-gradient(135deg, var(--maroon-800), var(--maroon-600));
    color: var(--white);
    border-color: transparent;
}

.profile-mobile-bar-btn--wa {
    flex: 0 0 48px;
    color: var(--white);
    background: #25d366;
    border-color: #25d366;
    font-size: 1.2rem;
}

.page-profile-premium .main-content {
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .my-premium-hero-body {
        padding: 1rem;
    }

    .my-biodata-profile {
        flex-direction: column;
        align-items: flex-start;
    }

    .my-share-strip .share-chip span {
        display: none;
    }

    .share-chip {
        padding: 0.55rem 0.7rem;
    }

    .my-biodata-layout {
        grid-template-columns: 1fr;
    }

    .profile-hero-body {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 0;
        padding: 0 1rem 0.75rem;
    }

    .profile-hero-body--no-photo {
        padding: 1rem 1rem 0.5rem;
    }

    .profile-hero-info h1 {
        font-size: 1.4rem;
    }

    .profile-quick-facts {
        justify-content: center;
    }

    .profile-tags {
        justify-content: center;
    }

    .profile-action-bar {
        padding: 0.85rem 1rem 1rem;
    }

    .profile-action-bar .btn-lg {
        width: 100%;
        justify-content: center;
    }

    .interest-form--premium {
        flex-direction: column;
    }

    .profile-pdf-section--premium .profile-pdf-head {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-pdf-head-icon {
        margin: 0 auto;
    }

    .profile-pdf-quick {
        justify-content: center;
    }

    .profile-section-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .profile-details-grid--premium {
        grid-template-columns: 1fr;
    }

    .profile-mobile-bar {
        display: flex;
    }

    .page-profile-premium .site-footer {
        padding-bottom: 4.5rem;
    }

    .format-minimal-item:not(.format-minimal-item--chip) {
        grid-template-columns: 4px 28px minmax(0, 1fr) auto auto;
    }

    .format-minimal-list--horizontal > li {
        width: 88px;
    }

    .format-minimal-item.format-minimal-item--chip {
        min-height: 108px;
        padding-top: 0.8rem;
    }

    .format-rail-btn {
        width: 28px;
        height: 28px;
    }

    .format-minimal-desc {
        display: none;
    }
}

/* ── Photo slider (my.php, view.php, browse cards) ── */
.photo-slider {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--rose-100), var(--rose-50));
    isolation: isolate;
}

.photo-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.photo-slider-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
}

.photo-slider-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.photo-slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.photo-slider--hero {
    height: 200px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.my-premium-hero .photo-slider--hero {
    border-radius: 0;
}

.photo-slider--gallery {
    height: 300px;
    border-radius: var(--radius-md);
    border: 1px solid var(--rose-200);
}

.photo-slider--compact {
    position: absolute;
    inset: 0;
    height: 100%;
}

.photo-slider-btn {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--maroon-800);
    box-shadow: 0 4px 14px rgba(74, 14, 31, 0.15);
    cursor: pointer;
    transition: all var(--transition);
    opacity: 0;
}

.photo-slider:hover .photo-slider-btn,
.photo-slider:focus-within .photo-slider-btn {
    opacity: 1;
}

.photo-slider-btn:hover {
    background: var(--maroon-800);
    color: var(--white);
}

.photo-slider-prev { left: 8px; }
.photo-slider-next { right: 8px; }

.photo-slider--compact .photo-slider-btn {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    opacity: 1;
    background: rgba(45, 8, 20, 0.55);
    color: var(--white);
}

.photo-slider--compact .photo-slider-prev { left: 4px; }
.photo-slider--compact .photo-slider-next { right: 4px; }

.photo-slider--compact .photo-slider-footer {
    padding: 0.2rem 0.35rem;
    background: linear-gradient(180deg, transparent, rgba(45, 8, 20, 0.55));
}

.photo-slider--compact .photo-slider-dots {
    gap: 0.2rem;
}

.photo-slider--compact .photo-slider-dot {
    width: 5px;
    height: 5px;
}

.photo-slider--compact .photo-slider-counter {
    display: none;
}

.photo-slider-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    background: linear-gradient(180deg, transparent, rgba(45, 8, 20, 0.5));
}

.photo-slider-dots {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.photo-slider-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: all var(--transition);
}

.photo-slider-dot.is-active {
    background: var(--gold-400);
    transform: scale(1.15);
}

.photo-slider-counter {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.04em;
}

.my-premium-hero-body--cover,
.my-premium-hero-body {
    padding: 1.15rem 1.35rem;
}

.my-biodata-profile--no-photo {
    width: 100%;
}

.profile-hero-body--no-photo {
    display: block;
    padding: 1.15rem 1.5rem 0.75rem;
    margin-top: 0;
}

.profile-hero-body--no-photo .profile-hero-info h1 {
    font-size: 1.65rem;
}

@media (max-width: 768px) {
    .photo-slider--hero {
        height: 180px;
    }

    .photo-slider--gallery {
        height: 240px;
    }

    .photo-slider-btn {
        opacity: 1;
    }
}

/* ── My Biodata — hero grid + theme dropdown ── */
.page-my-biodata .my-premium-hero {
    overflow: visible;
}

.my-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 240px);
    gap: 1.25rem;
    padding: 1.25rem 1.35rem;
    align-items: stretch;
}

.my-hero-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.my-hero-main h1 {
    font-size: 1.65rem;
    margin: 0.2rem 0 0.5rem;
    line-height: 1.15;
}

.my-hero-gallery {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 10px 32px rgba(74, 14, 31, 0.12);
    border: 3px solid var(--gold-400);
    background: var(--rose-100);
    min-height: 240px;
}

.photo-slider--side {
    width: 100%;
    height: 100%;
    min-height: 240px;
    border-radius: 0;
}

.photo-slider--side .photo-slider-slide img {
    object-position: center top;
}

.my-biodata-workspace {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.my-overview-panel {
    margin-bottom: 1rem;
    padding: 1.15rem 1.25rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(252, 233, 223, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px rgba(74, 14, 31, 0.06);
}

.my-section-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--maroon-900);
    margin: 0 0 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid var(--gold-400);
}

.my-section-title i {
    color: var(--gold-600);
}

.my-stats-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.65rem;
}

.my-stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.8rem 0.9rem;
    min-height: 72px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 248, 0.94));
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-md);
    min-width: 0;
}

.my-stat-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    line-height: 1.3;
}

.my-stat-label i {
    color: var(--gold-600);
    font-size: 0.85rem;
}

.my-stat-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--maroon-900);
    line-height: 1.35;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1200px) {
    .my-stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.my-theme-bar {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(252, 233, 223, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 28px rgba(74, 14, 31, 0.06);
    overflow: visible;
    padding: 0.85rem 0.9rem;
}

.theme-dropdown-panel {
    padding: 1.15rem 1.25rem;
}

.theme-dropdown-head {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--rose-100);
}

.theme-dropdown-head-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--gold-400);
    background: linear-gradient(145deg, var(--maroon-900), var(--maroon-700));
    border-radius: 10px;
}

.theme-dropdown-head h2 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--maroon-900);
    margin: 0 0 0.15rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.theme-dropdown-head p {
    margin: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.theme-dropdown-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.theme-dropdown-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.theme-dropdown-field-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--maroon-800);
}

.theme-select {
    position: relative;
    flex: none;
    width: 100%;
    min-width: 0;
    max-width: none;
}

.theme-select-trigger {
    width: 100%;
    display: grid;
    grid-template-columns: 4px 36px 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
    text-align: left;
    background: var(--white);
    border: 1.5px solid var(--rose-300);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.theme-select-trigger:hover,
.theme-select-trigger[aria-expanded="true"] {
    border-color: var(--maroon-500);
    box-shadow: 0 4px 16px rgba(74, 14, 31, 0.08);
}

.theme-select-accent {
    align-self: stretch;
    border-radius: 3px;
    margin: -0.65rem 0 -0.65rem -0.75rem;
    width: 4px;
}

.theme-select-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: var(--maroon-800);
    background: var(--rose-50);
    border-radius: 10px;
    border: 1px solid var(--rose-200);
}

.theme-select-text {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.theme-select-text strong {
    font-size: 0.9rem;
    color: var(--maroon-900);
}

.theme-select-text small {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.theme-select-chevron {
    font-size: 1.15rem;
    color: var(--text-muted);
    transition: transform var(--transition);
}

.theme-select-trigger[aria-expanded="true"] .theme-select-chevron {
    transform: rotate(180deg);
}

.theme-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 50;
    list-style: none;
    margin: 0;
    padding: 0.35rem;
    max-height: 280px;
    overflow-y: auto;
    background: var(--white);
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(74, 14, 31, 0.14);
}

.theme-select-option {
    width: 100%;
    display: grid;
    grid-template-columns: 4px 32px 1fr auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.6rem;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background var(--transition);
}

.theme-select-option:hover {
    background: var(--rose-50);
}

.theme-select-option.is-selected {
    background: linear-gradient(90deg, var(--rose-50), var(--white));
}

.theme-select-option-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--maroon-800);
    background: var(--rose-50);
    border-radius: 8px;
}

.theme-select-option-text {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    min-width: 0;
}

.theme-select-option-text strong {
    font-size: 0.82rem;
    color: var(--maroon-900);
}

.theme-select-option-text small {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.theme-select-check {
    color: var(--maroon-700);
    font-size: 1rem;
}

.theme-dropdown-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    padding-top: 0.15rem;
    border-top: 1px solid var(--rose-100);
}

.page-my-biodata .my-biodata-preview-panel {
    position: static;
}

@media (max-width: 768px) {
    .my-hero-grid {
        grid-template-columns: 1fr;
        padding: 0.75rem 0.55rem;
    }

    .my-hero-gallery {
        order: -1;
        min-height: 200px;
        max-width: 220px;
        margin: 0 auto;
        width: 100%;
    }

    .photo-slider--side {
        min-height: 200px;
    }

    .my-hero-main h1 {
        font-size: 1.35rem;
        text-align: center;
        margin-bottom: 0.35rem;
    }

    .my-hero-main {
        align-items: center;
        text-align: center;
    }

    .my-hero-main .my-biodata-eyebrow {
        justify-content: center;
        margin-bottom: 0.1rem;
    }

    .page-my-biodata .my-biodata-meta > span:nth-child(3) {
        max-width: 9rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .page-my-biodata .my-biodata-meta {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, max-content));
        justify-content: center;
        justify-items: center;
        gap: 0.32rem 0.55rem;
        width: 100%;
        max-width: 19rem;
        margin: 0 auto;
        font-size: 0.84rem;
    }

    .page-my-biodata .my-biodata-meta > span {
        gap: 0.28rem;
        white-space: nowrap;
    }

    .page-my-biodata .status-pill {
        padding: 0.18rem 0.5rem;
    }

    .page-my-biodata .my-style-pill {
        padding: 0.18rem 0.48rem;
    }

    .page-my-biodata .my-share-strip {
        justify-content: center;
        gap: 0.35rem;
        margin-top: 0.6rem;
        padding-top: 0.6rem;
    }

    .page-my-biodata .share-chip {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
    }

    .page-my-biodata .my-biodata-preview-panel {
        margin-left: -0.15rem;
        margin-right: -0.15rem;
        border-radius: var(--radius-sm);
        border-left: none;
        border-right: none;
    }

    .page-my-biodata .my-biodata-preview-panel .preview-toolbar {
        padding: 0.5rem 0.55rem;
    }

    .page-my-biodata .biodata-preview-frame {
        height: min(58vh, 500px);
    }

    .theme-dropdown-form {
        flex-direction: column;
        align-items: stretch;
    }

    .theme-dropdown-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* Nav user avatar */
.nav-user {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    flex-shrink: 0;
    border: 1px solid rgba(252, 233, 223, 0.95);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 248, 0.92));
    padding: 0.2rem 0.55rem 0.2rem 0.2rem;
    border-radius: 50px;
    box-shadow: 0 2px 12px rgba(74, 14, 31, 0.08);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.nav-user:hover,
.nav-user.is-active {
    transform: translateY(-1px);
    border-color: rgba(212, 168, 75, 0.55);
    box-shadow: 0 6px 18px rgba(74, 14, 31, 0.12);
}

.nav-user .avatar-portrait {
    display: block;
}

.nav-user .avatar-portrait--sm {
    --avatar-size: 36px;
    --avatar-ring: 2px;
}

.nav-user-meta {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    min-width: 0;
    line-height: 1.2;
}

.nav-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--maroon-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 9rem;
}

.nav-user-role {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nav-profile-block {
    display: contents;
}

@media (min-width: 769px) {
    .nav-user {
        padding: 0.15rem;
        margin-left: 0.3rem;
    }

    .nav-user-meta {
        display: none !important;
    }

    .nav-user .avatar-portrait--sm {
        --avatar-size: 34px;
    }
}

/* Dashboard user hero */
.dash-user-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.35rem 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(252, 233, 223, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(74, 14, 31, 0.08);
}

.dash-user-avatar {
    position: relative;
    flex-shrink: 0;
}

.dash-user-avatar .avatar-portrait {
    display: block;
}

.dash-user-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-700);
    margin: 0 0 0.25rem;
}

.dash-user-info h1 {
    font-size: 1.55rem;
    margin: 0 0 0.35rem;
    line-height: 1.15;
}

.dash-user-email {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.84rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.dash-user-lead {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin: 0;
}

.dash-completion {
    margin-top: 0.35rem;
}

.dash-completion-bar {
    width: min(220px, 100%);
    height: 6px;
    background: var(--rose-200);
    border-radius: 50px;
    overflow: hidden;
    margin: 0.35rem 0;
}

.dash-completion-bar span {
    display: block;
    height: 100%;
    width: var(--pct, 0%);
    background: linear-gradient(90deg, var(--maroon-700), var(--gold-500));
    border-radius: 50px;
}

.dash-completion small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.dash-user-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.dash-card-meta {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: -0.25rem;
}

.dash-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.35rem;
}

.publish-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin: 0.85rem 0 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(139, 30, 63, 0.18);
    background: linear-gradient(135deg, rgba(255, 251, 248, 0.98), rgba(255, 245, 238, 0.95));
}

.publish-banner-text strong {
    display: block;
    font-size: 1rem;
    color: var(--maroon);
    margin-bottom: 0.2rem;
}

.publish-banner-text p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    max-width: 42rem;
}

.publish-hint {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.publish-biodata-form {
    display: inline-flex;
}

.form-actions .publish-biodata-form,
.dash-card-actions .publish-biodata-form,
.publish-banner .publish-biodata-form {
    margin: 0;
}

.my-share-strip .publish-biodata-form .btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: none;
}

/* Edit biodata form — premium tight layout */
.page-edit-biodata .edit-hero {
    padding: 0.35rem 0 0.5rem;
}

.page-edit-biodata .section-tight {
    padding-top: 0.25rem;
    padding-bottom: 0.85rem;
}

.edit-hero-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(255, 251, 248, 0.92));
    border: 1px solid rgba(252, 233, 223, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 6px 22px rgba(74, 14, 31, 0.06);
    position: relative;
    overflow: hidden;
}

.edit-hero-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--maroon-800), var(--gold-500), var(--maroon-700));
}

.edit-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gold-700);
    margin: 0 0 0.25rem;
}

.edit-hero-inner h1 {
    font-size: 1.45rem;
    margin: 0 0 0.25rem;
}

.edit-hero-inner p {
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.edit-completion {
    text-align: right;
    min-width: 120px;
}

.edit-completion strong {
    font-size: 1.35rem;
    color: var(--maroon-800);
}

.edit-completion-bar {
    width: 140px;
    height: 6px;
    background: var(--rose-200);
    border-radius: 50px;
    overflow: hidden;
    margin: 0.35rem 0 0.25rem auto;
}

.edit-completion-bar span {
    display: block;
    height: 100%;
    width: var(--pct, 0%);
    background: linear-gradient(90deg, var(--maroon-700), var(--gold-500));
}

.edit-completion small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.edit-form-layout {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: var(--block-gap);
    align-items: start;
}

.edit-section-nav {
    position: sticky;
    top: calc(var(--header-height) + 8px);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 14px rgba(74, 14, 31, 0.05);
}

.edit-section-nav a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--maroon-800);
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.edit-section-nav a:hover,
.edit-section-nav a.is-active {
    background: linear-gradient(135deg, var(--rose-50), var(--white));
    border-color: var(--rose-200);
    color: var(--maroon-900);
}

.edit-section-nav a.is-active {
    border-left: 3px solid var(--gold-500);
    padding-left: calc(0.5rem - 2px);
}

.form-container--wide {
    max-width: none;
}

.biodata-form--premium {
    padding: 1.1rem 1.15rem 1.2rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 248, 0.94));
    border: 1px solid rgba(252, 233, 223, 0.95);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(74, 14, 31, 0.07);
    position: relative;
    overflow: hidden;
}

.page-edit-biodata .biodata-form--premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--maroon-800), var(--gold-500), var(--maroon-700));
}

.form-section-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--rose-100);
    border-radius: var(--radius-md);
    padding: 0.95rem 1rem 1.05rem;
    margin-bottom: var(--block-gap);
    scroll-margin-top: calc(var(--header-height) + 12px);
    box-shadow: 0 2px 10px rgba(74, 14, 31, 0.04);
}

.form-section-card legend {
    font-family: var(--font-display);
    font-size: 1.02rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--rose-100);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    color: var(--maroon-900);
}

.form-section-card legend i {
    color: var(--gold-600);
}

.profile-context-box {
    display: flex;
    gap: 0.65rem;
    padding: 0.7rem 0.85rem;
    margin-bottom: var(--block-gap);
    background: linear-gradient(135deg, var(--rose-50), var(--white));
    border: 1px solid var(--rose-200);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--gold-500);
}

.page-edit-biodata .form-group {
    margin-bottom: 0.85rem;
}

.page-edit-biodata .form-row {
    gap: 0.65rem;
}

.page-edit-biodata .form-section-lead {
    margin: -0.2rem 0 0.75rem;
    font-size: 0.8rem;
}

.page-edit-biodata .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.35rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--rose-100);
}

.page-edit-biodata .form-actions .btn-lg {
    padding: 0.7rem 1.25rem;
    font-size: 0.92rem;
}

.profile-context-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--maroon-700);
    background: var(--white);
    border-radius: 10px;
    border: 1px solid var(--rose-200);
}

.profile-context-box strong {
    display: block;
    font-size: 0.88rem;
    color: var(--maroon-900);
    margin-bottom: 0.2rem;
}

.profile-context-box p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.field-live {
    color: var(--maroon-700) !important;
    font-weight: 600;
}

.photo-preview--cover,
.photo-preview--profile,
.gallery-thumb img {
    border-radius: 10px;
}

.photo-preview--profile img {
    border-radius: 10px;
}

.gallery-thumb img {
    border: 1px solid var(--rose-200);
}

/* Photo cards — small round corners, fit height */
/* Browse card photo inset — see main block above */

.my-hero-gallery {
    min-height: 190px;
    max-height: 210px;
    border-radius: 10px;
    border-width: 2px;
}

.photo-slider--side {
    min-height: 190px;
    max-height: 210px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .dash-user-hero {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .dash-user-avatar {
        margin: 0 auto;
    }

    .dash-user-actions {
        justify-content: center;
    }

    .dash-completion-bar {
        margin-left: auto;
        margin-right: auto;
    }

    .edit-form-layout {
        grid-template-columns: 1fr;
        gap: var(--card-gap);
    }

    .edit-hero-inner {
        padding: 0.75rem 0.7rem;
        border-radius: var(--radius-md);
    }

    .edit-hero-inner h1 {
        font-size: 1.22rem;
    }

    .edit-section-nav {
        position: static;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0.35rem;
        gap: 0.25rem;
        border-radius: var(--radius-sm);
    }

    .edit-section-nav a {
        white-space: nowrap;
        font-size: 0.7rem;
        padding: 0.38rem 0.5rem;
    }

    .edit-section-nav a.is-active {
        border-left: none;
        border-bottom: 2px solid var(--gold-500);
        padding-left: 0.5rem;
    }

    .edit-completion {
        text-align: left;
        width: 100%;
    }

    .edit-completion-bar {
        margin-left: 0;
        width: 100%;
        max-width: 160px;
    }

    .biodata-form--premium {
        padding: 0.7rem 0.65rem 0.8rem;
        border-radius: var(--radius-md);
    }

    .form-section-card {
        padding: 0.75rem 0.7rem 0.85rem;
        margin-bottom: var(--card-gap);
        border-radius: var(--radius-sm);
    }

    .form-section-card legend {
        font-size: 0.92rem;
        margin-bottom: 0.55rem;
        padding-bottom: 0.4rem;
    }

    .profile-context-box {
        padding: 0.6rem 0.65rem;
        margin-bottom: var(--card-gap);
    }

    .page-edit-biodata .form-group {
        margin-bottom: 0.7rem;
    }

    .page-edit-biodata .form-actions {
        flex-direction: column;
        padding-top: 0.65rem;
    }

    .page-edit-biodata .form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .my-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theme-dropdown-actions .btn {
        flex: 1 1 calc(50% - 0.25rem);
        justify-content: center;
    }
}

/* ── Circular portrait avatar ── */
.avatar-portrait {
    --avatar-size: 72px;
    --avatar-ring: 3px;
    position: relative;
    display: inline-flex;
    width: var(--avatar-size);
    height: var(--avatar-size);
    flex-shrink: 0;
}

.avatar-portrait--xs { --avatar-size: 34px; --avatar-ring: 2px; }
.avatar-portrait--sm { --avatar-size: 40px; --avatar-ring: 2px; }
.avatar-portrait--md { --avatar-size: 72px; --avatar-ring: 3px; }
.avatar-portrait--lg { --avatar-size: 88px; --avatar-ring: 4px; }

.avatar-portrait__ring {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: var(--avatar-ring);
    background: linear-gradient(145deg, #f0d78c 0%, #d4a84b 38%, #a32245 100%);
    box-shadow:
        0 4px 16px rgba(74, 14, 31, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.avatar-portrait__media {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle at 50% 28%, #fffaf5 0%, #f5e6d8 52%, #dfc9b0 100%);
    position: relative;
}

.avatar-portrait__media::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(74, 14, 31, 0.07);
    pointer-events: none;
    z-index: 1;
}

.avatar-portrait__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 14%;
    transform: scale(1.12);
    filter: contrast(1.07) saturate(1.1) brightness(1.03);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.avatar-portrait__media--initial {
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-portrait__initial {
    font-weight: 700;
    color: var(--maroon-800);
    line-height: 1;
}

.avatar-portrait--xs .avatar-portrait__initial { font-size: 0.82rem; }
.avatar-portrait--sm .avatar-portrait__initial { font-size: 0.95rem; }
.avatar-portrait--md .avatar-portrait__initial { font-size: 1.5rem; }
.avatar-portrait--lg .avatar-portrait__initial { font-size: 1.75rem; }

.avatar-portrait__badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: calc(var(--avatar-size) * 0.34);
    height: calc(var(--avatar-size) * 0.34);
    min-width: 20px;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--avatar-size) * 0.16);
    color: var(--white);
    background: linear-gradient(145deg, var(--maroon-700), var(--maroon-900));
    border-radius: 50%;
    border: 2px solid var(--white);
    box-shadow: 0 2px 8px rgba(74, 14, 31, 0.25);
    z-index: 2;
}

.request-avatar,
.chat-list-avatar,
.chat-header-avatar {
    object-fit: cover;
    object-position: center 14%;
    background: radial-gradient(circle at 50% 28%, #fffaf5, #dfc9b0);
    filter: contrast(1.05) saturate(1.08) brightness(1.02);
    box-shadow: 0 2px 10px rgba(74, 14, 31, 0.12);
}

.request-avatar,
.chat-list-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--gold-400);
}

.chat-header-avatar {
    border: 2px solid var(--gold-400);
}

/* ── Global tight mobile spacing (all pages) ── */
@media (max-width: 768px) {
    .section {
        padding: 1.15rem 0;
    }

    .section-tight {
        padding-top: 0.3rem;
        padding-bottom: 0.75rem;
    }

    .profile-grid,
    .profile-grid--compact,
    .profile-details-grid,
    .feature-grid,
    .steps-grid {
        gap: var(--card-gap);
    }

    .dash-user-hero,
    .my-overview-panel,
    .my-theme-bar,
    .my-biodata-preview-panel,
    .my-premium-hero,
    .profile-view-hero,
    .profile-view-card,
    .hero-card,
    .cta-panel,
    .format-style-premium,
    .theme-dropdown-panel {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }

    .dash-user-hero {
        padding: 0.85rem 0.7rem;
        margin-bottom: var(--card-gap);
    }

    .my-overview-panel,
    .my-theme-bar {
        padding: 0.75rem 0.65rem;
        margin-bottom: var(--card-gap);
    }

    .my-stat-item {
        padding: 0.65rem 0.6rem;
        min-height: 64px;
    }

    .my-stats-grid {
        gap: var(--card-gap);
    }

    .profile-view--premium {
        padding: 0.35rem 0 1.25rem;
    }

    .profile-view-hero-grid {
        padding: 0.75rem 0.65rem;
        gap: var(--card-gap);
    }

    .page-browse .profile-grid--compact {
        gap: var(--card-gap);
    }

    .flash .container {
        padding-left: var(--page-gutter);
        padding-right: var(--page-gutter);
    }
}

@media (max-width: 480px) {
    .dash-user-hero,
    .my-overview-panel,
    .my-theme-bar,
    .edit-hero-inner,
    .biodata-form--premium,
    .dash-card,
    .detail-card,
    .filter-panel,
    .quick-search-bar,
    .request-card,
    .chat-list-item,
    .auth-split,
    .setup-panel {
        padding-left: 0.55rem;
        padding-right: 0.55rem;
    }

    .biodata-form--premium {
        padding: 0.6rem 0.55rem 0.7rem;
    }

    .form-section-card {
        padding: 0.65rem 0.58rem 0.75rem;
    }
}

/* ── Premium landing page ── */
.page-landing .landing-hero {
    position: relative;
    padding: 1.35rem 0 1.65rem;
    overflow: hidden;
}

.page-landing .hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 1rem;
    align-items: stretch;
}

.page-landing .landing-hero-glow {
    position: absolute;
    top: -10%;
    right: -8%;
    width: min(52vw, 520px);
    height: min(52vw, 520px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 210, 180, 0.35) 0%, rgba(255, 228, 200, 0.08) 55%, transparent 72%);
    pointer-events: none;
}

.page-landing .hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 1.45rem 1.35rem;
    height: 100%;
    border-radius: calc(var(--radius-xl) + 4px);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(255, 251, 248, 0.86));
    border: 1px solid rgba(252, 233, 223, 0.95);
    box-shadow:
        0 28px 72px rgba(74, 14, 31, 0.11),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.page-landing .landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.28rem 0.75rem;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(255, 248, 242, 0.98), rgba(255, 255, 255, 0.92));
    border: 1px solid rgba(212, 168, 75, 0.35);
    color: var(--gold-700);
    font-weight: 700;
    letter-spacing: 0.08em;
}

.page-landing .landing-eyebrow i {
    color: var(--gold-600);
}

.page-landing .landing-ornament {
    margin: 0.5rem 0 0.65rem;
}

.page-landing .hero-lead {
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 34rem;
    margin: 0.65rem 0 0.85rem;
}

.page-landing .hero-actions {
    margin-bottom: 1.1rem;
}

.page-landing .landing-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.page-landing .landing-hero-actions .btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
    justify-content: center;
}

.page-landing .landing-hero-actions .btn-primary {
    flex: 1 1 100%;
}

.page-landing .landing-trust-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.55rem;
    margin: 0 0 1rem;
    padding: 0;
}

.page-landing .hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.45rem);
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.page-landing .hero h1 em {
    font-style: italic;
    background: linear-gradient(135deg, var(--maroon-800), var(--maroon-600));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.page-landing .landing-trust-list li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--maroon-800);
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(252, 233, 223, 0.95);
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(74, 14, 31, 0.04);
}

.page-landing .landing-trust-list i {
    color: var(--gold-600);
    font-size: 0.9rem;
}

.page-landing .landing-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(252, 233, 223, 0.95);
}

.page-landing .landing-stats .stat {
    padding-left: 1.85rem;
    min-width: 0;
}

.page-landing .landing-stats .stat strong {
    font-size: 1.55rem;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.page-landing .landing-stats .stat span {
    font-size: 0.68rem;
    line-height: 1.3;
}

.page-landing .landing-hero-extras {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-top: 0.85rem;
    min-height: 0;
}

.page-landing .landing-extras-title {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0 0 0.45rem;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--maroon-800);
}

.page-landing .landing-extras-title i {
    color: var(--gold-600);
}

.page-landing .landing-quick-search,
.page-landing .landing-popular,
.page-landing .landing-mini-steps {
    padding: 0.65rem 0.7rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(252, 233, 223, 0.95);
    box-shadow: 0 4px 14px rgba(74, 14, 31, 0.04);
}

.page-landing .landing-search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.45rem;
}

.page-landing .landing-search-form input {
    width: 100%;
    min-width: 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.82rem;
    border: 1px solid rgba(252, 233, 223, 0.95);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text-primary);
}

.page-landing .landing-search-form input:focus {
    outline: none;
    border-color: rgba(212, 168, 75, 0.55);
    box-shadow: 0 0 0 3px rgba(212, 168, 75, 0.15);
}

.page-landing .landing-search-form .btn {
    white-space: nowrap;
}

.page-landing .landing-popular-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.page-landing .landing-popular-chips a {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--maroon-700);
    text-decoration: none;
    background: var(--rose-100);
    border: 1px solid var(--rose-300);
    border-radius: 50px;
    transition: background var(--transition), border-color var(--transition);
}

.page-landing .landing-popular-chips a:hover {
    background: #fff;
    border-color: rgba(212, 168, 75, 0.45);
}

.page-landing .landing-mini-steps {
    list-style: none;
    margin: 0;
    display: grid;
    gap: 0.4rem;
}

.page-landing .landing-mini-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.55rem;
}

.page-landing .landing-mini-steps li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--maroon-800);
    background: linear-gradient(145deg, var(--rose-100), #fff);
    border: 1px solid var(--rose-300);
    border-radius: 50%;
}

.page-landing .landing-mini-steps strong {
    display: block;
    font-size: 0.78rem;
    color: var(--maroon-800);
    line-height: 1.2;
}

.page-landing .landing-mini-steps small {
    display: block;
    font-size: 0.66rem;
    color: var(--text-muted);
    line-height: 1.25;
}

.page-landing .landing-visual-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 0;
    height: 100%;
}

.page-landing .hero-visual {
    min-height: 0;
    height: 100%;
}

.page-landing .landing-featured {
    position: relative;
    padding: 0.85rem 0.9rem 0.9rem;
    border-radius: calc(var(--radius-xl) + 2px);
    box-shadow: 0 20px 52px rgba(74, 14, 31, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
    border: 1px solid rgba(252, 233, 223, 0.95);
    overflow: hidden;
}

.page-landing .landing-featured::before {
    display: none;
}

.page-landing .landing-featured__top {
    margin-bottom: 0.7rem;
}

.page-landing .landing-featured__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.58rem;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--maroon-800);
    background: linear-gradient(135deg, rgba(255, 248, 242, 0.98), #ffffff);
    border: 1px solid rgba(212, 168, 75, 0.42);
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(74, 14, 31, 0.06);
}

.page-landing .landing-featured__badge i {
    color: var(--gold-600);
    font-size: 0.85rem;
}

.page-landing .landing-featured__profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(252, 233, 223, 0.95);
}

.page-landing .landing-featured__photo {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
}

.page-landing .landing-featured__photo .avatar-portrait {
    --avatar-size: 72px;
    --avatar-ring: 3px;
    display: block;
    width: 100%;
    height: 100%;
}

.page-landing .landing-featured__photo .avatar-portrait__media img {
    font-size: 0;
    color: transparent;
}

.page-landing .landing-featured__identity {
    min-width: 0;
    flex: 1;
}

.page-landing .landing-featured__name {
    margin: 0 0 0.4rem;
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--maroon-900);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.page-landing .landing-featured__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.page-landing .landing-featured__chips span {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.55rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--maroon-700);
    background: var(--rose-100);
    border: 1px solid var(--rose-300);
    border-radius: 50px;
    line-height: 1.2;
}

.page-landing .landing-featured__facts {
    list-style: none;
    margin: 0.7rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}

.page-landing .landing-featured__facts li {
    display: grid;
    gap: 0.12rem;
    padding: 0.42rem 0.55rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 251, 248, 0.95);
    border: 1px solid rgba(252, 233, 223, 0.9);
}

.page-landing .landing-featured__fact-label {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.page-landing .landing-featured__fact-label i {
    font-size: 0.78rem;
    color: var(--gold-600);
}

.page-landing .landing-featured__fact-value {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--maroon-800);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.page-landing .landing-privacy-note {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold-700);
}

.page-landing .landing-featured--empty,
.page-landing .landing-recent-empty {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.page-landing .landing-match-avatar-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--maroon-800), var(--maroon-600));
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 700;
}

.profile-card--limited .profile-card-body {
    padding: 0.85rem 1rem;
}

.profile-detail--limited {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.page-landing .landing-visual-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.page-landing .landing-match-card,
.page-landing .landing-quote-card,
.page-landing .landing-recent-card {
    padding: 0.85rem 0.9rem;
}

.page-landing .landing-card-label {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.55rem;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-700);
}

.page-landing .landing-match-card {
    background: linear-gradient(145deg, var(--maroon-900), var(--maroon-700));
    color: #fff;
    border-color: rgba(212, 168, 75, 0.45);
}

.page-landing .landing-match-card .landing-card-label {
    color: var(--gold-300);
}

.page-landing .landing-match-avatars {
    display: flex;
    margin-bottom: 0.55rem;
}

.page-landing .landing-match-avatar {
    width: 40px;
    height: 40px;
    margin-left: -8px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.page-landing .landing-match-avatar:first-child {
    margin-left: 0;
}

.page-landing .landing-match-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-landing .landing-match-text {
    font-size: 0.82rem;
    line-height: 1.45;
    margin: 0 0 0.65rem;
    color: rgba(255, 255, 255, 0.9);
}

.page-landing .landing-match-text strong {
    color: var(--gold-300);
}

.page-landing .landing-match-card .btn {
    width: 100%;
    justify-content: center;
}

.page-landing .landing-quote-card blockquote {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-secondary);
    font-style: italic;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.page-landing .landing-quote-card cite {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 600;
    color: var(--maroon-700);
}

.page-landing .landing-recent-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
}

.page-landing .landing-recent-head h4 {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.88rem;
    color: var(--maroon-800);
}

.page-landing .landing-recent-link {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--maroon-700);
    text-decoration: none;
}

.page-landing .landing-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
}

.page-landing .landing-recent-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.55rem;
    padding: 0.45rem 0.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 251, 248, 0.9);
    border: 1px solid rgba(252, 233, 223, 0.9);
}

.page-landing .landing-recent-thumb {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(252, 233, 223, 0.95);
    margin-top: 0.1rem;
}

.page-landing .landing-recent-meta {
    min-width: 0;
}

.page-landing .landing-recent-meta strong {
    display: block;
    font-size: 0.8rem;
    color: var(--maroon-800);
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.page-landing .landing-recent-meta span {
    display: block;
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin-top: 0.1rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.page-landing .landing-recent-role {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.66rem;
    font-style: normal;
    font-weight: 600;
    line-height: 1.35;
    color: var(--maroon-700);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.page-landing .landing-highlights {
    padding: 0.55rem 0 0.15rem;
}

.page-landing .landing-highlights-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.page-landing .landing-highlights-grid li {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(252, 233, 223, 0.95);
    box-shadow: 0 6px 18px rgba(74, 14, 31, 0.05);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.page-landing .landing-highlights-grid li i {
    color: var(--gold-600);
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.page-landing .landing-highlights-grid strong {
    font-size: 0.82rem;
    color: var(--maroon-800);
}

.page-landing .landing-features,
.page-landing .landing-steps {
    padding-top: 1.35rem;
    padding-bottom: 1.35rem;
}

.page-landing .section-head {
    margin-bottom: 1.35rem;
}

.page-landing .landing-features {
    background: linear-gradient(180deg, rgba(255, 245, 238, 0.65) 0%, rgba(255, 251, 248, 0.35) 100%);
}

.page-landing .landing-features .section-head .eyebrow,
.page-landing .landing-steps .section-head .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.page-landing .landing-features .section-head .eyebrow i,
.page-landing .landing-steps .section-head .eyebrow i {
    color: var(--gold-600);
}

.page-landing .feature-card,
.page-landing .step {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 248, 0.92));
    border: 1px solid rgba(252, 233, 223, 0.92);
    box-shadow: 0 12px 36px rgba(74, 14, 31, 0.07);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.page-landing .feature-card:hover,
.page-landing .step:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 44px rgba(74, 14, 31, 0.11);
    border-color: rgba(212, 168, 75, 0.4);
}

.page-landing .feature-icon,
.page-landing .step-icon-wrap {
    background: linear-gradient(145deg, rgba(255, 248, 242, 0.98), #ffffff);
    border-color: rgba(212, 168, 75, 0.28);
    box-shadow: 0 6px 18px rgba(74, 14, 31, 0.06);
}

.page-landing .landing-steps {
    background: #fff;
}

.page-landing .landing-cta .cta-panel {
    background: linear-gradient(135deg, var(--maroon-950) 0%, var(--maroon-800) 48%, var(--maroon-700) 100%);
    border: 1px solid rgba(212, 168, 75, 0.38);
    box-shadow: 0 24px 60px rgba(74, 14, 31, 0.24);
    border-radius: calc(var(--radius-lg) + 4px);
}

.page-landing .landing-cta .cta-panel::before {
    opacity: 0.45;
}

.page-landing .hero-actions .btn-lg {
    min-height: 48px;
    padding-left: 1.1rem;
    padding-right: 1.1rem;
    box-shadow: 0 8px 24px rgba(74, 14, 31, 0.12);
}

.page-landing .hero-actions .btn-primary.btn-lg {
    box-shadow: 0 10px 28px rgba(74, 14, 31, 0.2);
}

@media (max-width: 1024px) {
    .page-landing .hero-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .page-landing .hero-content {
        height: auto;
    }

    .page-landing .hero-visual {
        display: block;
        min-height: auto;
        width: 100%;
    }

    .page-landing .landing-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .page-landing .landing-hero-actions .btn {
        width: 100%;
        flex: none;
        justify-content: center;
    }

    .page-landing .landing-highlights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .page-landing .landing-hero {
        padding: 0.85rem 0 1rem;
    }

    .page-landing .landing-hero-glow {
        display: none;
    }

    .page-landing .hero-content {
        padding: 1rem 0.85rem;
        border-radius: var(--radius-lg);
    }

    .page-landing .hero h1 {
        font-size: clamp(1.5rem, 6.8vw, 1.95rem);
        line-height: 1.22;
        letter-spacing: -0.025em;
        hyphens: manual;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .page-landing .hero-lead {
        font-size: 0.88rem;
        line-height: 1.55;
        margin: 0.5rem 0 0.7rem;
    }

    .page-landing .landing-ornament {
        margin: 0.35rem 0 0.5rem;
    }

    .page-landing .landing-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 0.85rem;
    }

    .page-landing .landing-hero-actions .btn {
        width: 100%;
        min-height: 44px;
        margin: 0;
        justify-content: center;
        white-space: normal;
        text-align: center;
        line-height: 1.25;
    }

    .page-landing .landing-hero-actions .btn-lg {
        min-height: 44px;
        padding: 0.65rem 0.85rem;
        font-size: 0.86rem;
    }

    .page-landing .landing-visual-row {
        grid-template-columns: 1fr;
    }

    .page-landing .landing-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .page-landing .landing-stats .stat {
        padding-left: 0;
        padding-top: 0.15rem;
        text-align: center;
    }

    .page-landing .landing-stats .stat-icon {
        position: static;
        display: block;
        margin: 0 auto 0.2rem;
        font-size: 1.15rem;
    }

    .page-landing .landing-stats .stat strong {
        font-size: 1.1rem;
    }

    .page-landing .landing-stats .stat span {
        font-size: 0.58rem;
        line-height: 1.25;
        display: block;
    }

    .page-landing .landing-trust-list {
        gap: 0.35rem;
    }

    .page-landing .landing-trust-list li {
        font-size: 0.7rem;
        padding: 0.28rem 0.55rem;
    }

    .page-landing .landing-hero-extras {
        margin-top: 0.65rem;
        gap: 0.5rem;
    }

    .page-landing .landing-featured__name {
        font-size: 1rem;
    }

    .page-landing .landing-highlights-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
    }

    .page-landing .landing-search-form {
        grid-template-columns: 1fr;
    }

    .page-landing .landing-search-form .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-landing .hero-content {
        padding: 0.85rem 0.7rem;
    }

    .page-landing .landing-hero-actions .btn-lg {
        font-size: 0.82rem;
        padding: 0.6rem 0.75rem;
    }

    .page-landing .landing-stats .stat strong {
        font-size: 1rem;
    }

    .page-landing .landing-stats .stat span {
        font-size: 0.54rem;
    }

    .page-landing .landing-featured {
        padding: 0.75rem 0.7rem 0.8rem;
    }

    .page-landing .landing-match-card,
    .page-landing .landing-quote-card,
    .page-landing .landing-recent-card {
        padding: 0.75rem 0.7rem;
    }
}

/* ── Premium polish — shared cards ── */
.page-landing .hero {
    padding: 1rem 0 1.25rem;
}

.page-landing .hero-card:not(.landing-match-card) {
    border-radius: var(--radius-xl);
    box-shadow: 0 28px 70px rgba(74, 14, 31, 0.14);
    background: linear-gradient(180deg, #ffffff, #fffaf7);
}

.page-landing .hero-card.landing-match-card {
    background: linear-gradient(145deg, var(--maroon-900), var(--maroon-700));
    color: #fff;
    border-color: rgba(212, 168, 75, 0.45);
}

.page-landing .hero-card.landing-match-card .landing-card-label,
.page-landing .hero-card.landing-match-card .landing-match-text,
.page-landing .hero-card.landing-match-card .landing-match-text strong {
    color: rgba(255, 255, 255, 0.92);
}

.page-landing .hero-card.landing-match-card .landing-match-text strong {
    color: var(--gold-300);
}

.page-landing .hero-card.landing-match-card .btn-gold {
    width: 100%;
    justify-content: center;
}

.page-landing .cta-panel {
    background: linear-gradient(135deg, var(--maroon-900), var(--maroon-700));
    border: 1px solid rgba(212, 168, 75, 0.35);
    box-shadow: 0 20px 50px rgba(74, 14, 31, 0.22);
}

.site-header {
    box-shadow: 0 6px 28px rgba(74, 14, 31, 0.05);
}

.dash-card,
.my-overview-panel,
.my-premium-hero,
.my-theme-bar,
.my-biodata-preview-panel,
.profile-hero-card,
.detail-card--premium,
.setup-panel {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.96), rgba(255, 251, 248, 0.92));
}

/* Auth info panel — dark gradient; do not inherit shared light card background */
.auth-split-info {
    background: linear-gradient(145deg, var(--maroon-900), var(--maroon-700));
    color: var(--white);
}

.auth-split-info h1 {
    color: var(--white);
}

.auth-split-info p {
    color: rgba(255, 255, 255, 0.85);
}

.auth-split-info .eyebrow {
    color: var(--gold-300);
}

.auth-split-info .eyebrow i {
    color: var(--gold-300);
}

.auth-split-info .auth-steps li {
    color: rgba(255, 255, 255, 0.88);
}

.auth-split-info .auth-steps i {
    color: var(--gold-400);
}

.my-theme-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
    align-items: center;
    padding-top: 0.15rem;
    border-top: 1px solid var(--rose-100);
    margin-top: 0.15rem;
}

.my-theme-form-actions .btn {
    min-height: 38px;
}

.my-theme-form-actions .btn-sm {
    padding: 0.48rem 0.85rem;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .my-theme-form-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .my-theme-form-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .my-theme-form-actions .btn-primary {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .my-theme-form-actions {
        grid-template-columns: 1fr;
    }
}

/* ── Sitewide tight spacing — reduce empty gaps on member pages ── */
.page-dashboard .section-tight,
.page-browse .section-tight,
.page-my-biodata .section-tight,
.page-edit-biodata .section-tight {
    padding-top: 0.45rem;
    padding-bottom: 0.95rem;
}

.page-landing .feature-card {
    padding: 1.35rem 1.05rem;
}

.page-landing .step {
    padding: 1.35rem 1.1rem;
}

.page-landing .cta-panel {
    padding: 2rem 2rem;
    gap: 1.25rem;
}

.page-landing .landing-cta {
    padding-top: 1rem;
    padding-bottom: 1.25rem;
}

.dash-user-hero {
    margin-bottom: 0.75rem;
}

.quick-actions-row {
    margin-bottom: 0.75rem;
}

.dashboard-grid {
    gap: 0.75rem;
}

.browse-layout {
    gap: 0.85rem;
}

.my-premium-hero {
    margin-bottom: 0.75rem;
}

.my-overview-panel {
    margin-bottom: 0.75rem;
}

/* Sitewide — prevent text clipping in cards and align inner panels to page gutter rhythm */
.dash-card p,
.dash-card strong,
.feature-card p,
.profile-card p,
.profile-card h3,
.nav-user-name {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-about,
.footer-links-group a span,
.footer-meta span {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ── Mobile sharp corners (all divs) ── */
@media (max-width: 768px) {
    div {
        border-radius: var(--radius-sm);
    }

    .dash-card,
    .detail-card,
    .hero-card,
    .feature-card,
    .step,
    .profile-card,
    .profile-card--compact,
    .request-card,
    .chat-list-item,
    .empty-state,
    .auth-card,
    .auth-split,
    .setup-panel,
    .filter-panel,
    .quick-search-bar,
    .dash-user-hero,
    .my-overview-panel,
    .my-theme-bar,
    .my-biodata-hero,
    .my-stat-card,
    .my-panel,
    .my-biodata-preview-panel,
    .publish-banner,
    .cta-panel,
    .form-section-card,
    .biodata-form,
    .biodata-form--premium,
    .edit-hero-inner,
    .profile-view-card,
    .profile-view-hero,
    .profile-context-box,
    .chat-container,
    .chat-bubble,
    .mobile-nav-guest-card,
    .landing-featured,
    .landing-match-card,
    .landing-quote-card,
    .landing-recent-card,
    .format-style-premium,
    .format-style-card,
    .theme-dropdown-panel,
    .alert,
    .flash-message,
    .my-stat-item,
    .profile-view-hero-grid,
    .preview-toolbar,
    .photo-slider--side {
        border-radius: var(--radius-md);
    }

    .dash-card-icon,
    .profile-card-icon {
        border-radius: var(--radius-sm);
    }

    .avatar-portrait,
    .avatar-portrait-wrap,
    .request-avatar,
    .request-avatar img,
    .chat-list-avatar,
    .chat-header-avatar,
    .share-chip,
    .badge,
    .nav-badge,
    .photo-slider-dot,
    .step-num,
    .chat-unread-dot,
    .dash-user-avatar .avatar-portrait,
    .quick-action .badge {
        border-radius: 50%;
    }

    .nav-overlay,
    .filter-backdrop,
    .browse-filter-modal,
    .auth-card-modern,
    .auth-split-info,
    .main-nav {
        border-radius: 0;
    }

    .btn,
    button,
    .quick-action,
    .action-chip,
    .browse-filter-toggle,
    input,
    select,
    textarea {
        border-radius: var(--radius-md);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .page-bg::before,
    .page-bg::after,
    .vibe-orb,
    .vibe-ripple,
    .hero-card-float,
    .reveal {
        animation: none !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

.page-landing .landing-features,
.page-landing .landing-steps,
.page-landing .landing-cta {
    content-visibility: auto;
    contain-intrinsic-size: 1px 520px;
}
