/* ==========================================================================
   Sanjora Matrimony - Best CSS (Pixel-Perfect Alignment & Overlay)
   ========================================================================== */

:root {
    --primary-maroon: #7A0016;
    --dark-maroon: #4A000D;
    --accent-gold: #D4AF37;
    --light-gold: #F4E8C1;
    --bg-cream: #FFFDF9;
    --text-dark: #333333;
    --text-muted: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display', Georgia, serif;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center { text-align: center; }
.mt-30 { margin-top: 30px; }

/* Grid Utilities */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.btn-primary { 
    background: var(--primary-maroon); 
    color: #fff; 
    box-shadow: 0 4px 10px rgba(122, 0, 22, 0.3);
}
.btn-primary:hover { 
    background: var(--dark-maroon); 
    transform: translateY(-2px);
}
.btn-secondary { background: var(--primary-maroon); color: #fff; }
.btn-gold { background: linear-gradient(135deg, #E6CA65, #B58A29); color: #4A000D; }
.btn-search { 
    background: linear-gradient(135deg, #E6CA65, #B58A29); 
    color: #4A000D; 
    padding: 10px 25px;
    height: 40px;
}

/* Section Titles */
.section-title {
    text-align: center;
    color: var(--primary-maroon);
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
}
.section-title::after {
    content: "❖ ♥ ❖";
    display: block;
    font-size: 0.8rem;
    color: var(--accent-gold);
    margin-top: 5px;
}
.section-title.light { color: #fff; }

/* --------------------------------------------------------------------------
   HERO SECTION (Split Layout: Logo/Content Left, Photo Right)
   -------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 720px;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 30px;
}

.logo-area { margin-bottom: 22px; }

.heart-logo {
    width: 250px;
    height: auto;
    margin-bottom: -18px;
}

.brand-name {
    font-family: 'Berkshire Swash', 'Playfair Display', Georgia, serif;
    font-size: 4.6rem;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1.1;
    background: linear-gradient(180deg, #C4213B 0%, var(--primary-maroon) 55%, var(--dark-maroon) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.brand-tagline {
    letter-spacing: 8px;
    color: var(--accent-gold);
    font-size: 1.15rem;
    font-weight: bold;
    display: block;
    margin-top: 4px;
}
.sub-motto {
    color: var(--primary-maroon);
    font-size: 1.2rem;
    margin: 10px 0 0;
}
.hero-content h2 {
    color: var(--primary-maroon);
    font-size: 2.6rem;
    font-weight: 700;
    margin-top: 36px;
}
.hero-content p {
    color: var(--text-muted);
    margin: 10px 0 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.25rem;
}

.hero-content .btn-primary {
    font-size: 1.05rem;
    padding: 15px 34px;
}

/* --------------------------------------------------------------------------
   SEARCH SECTION
   -------------------------------------------------------------------------- */
.search-section {
    background: linear-gradient(180deg, var(--primary-maroon), var(--dark-maroon));
    padding: 25px 0 30px;
    margin: -30px 20px 20px 20px;
    border-radius: 12px;
    position: relative;
    z-index: 3;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.search-form {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 15px;
    padding: 0 20px;
}

.form-group { 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
    color: #fff; 
    font-family: 'Poppins', sans-serif; 
    font-size: 0.85rem; 
}

.form-group label { margin-bottom: 6px; font-weight: 500; }

.form-group select, .form-group input {
    padding: 0 12px;
    height: 40px;
    border-radius: 5px;
    border: none;
    outline: none;
    font-size: 0.9rem;
}

.age-inputs { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    background: #fff; 
    border-radius: 5px; 
    padding: 0 8px;
    height: 40px;
}

.age-inputs input { 
    text-align: center; 
    border: none; 
}

.age-inputs span { color: #333; }

/* --------------------------------------------------------------------------
   FEATURES SECTION
   -------------------------------------------------------------------------- */
.features-section { padding: 60px 0; }
.feature-card { text-align: center; font-family: 'Poppins', sans-serif; }
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--accent-gold);
    background: var(--light-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--primary-maroon);
    font-size: 1.4rem;
}
.feature-card h3 { font-size: 0.95rem; color: var(--primary-maroon); margin-bottom: 8px; }
.feature-card p { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }

/* --------------------------------------------------------------------------
   SUCCESS STORIES
   -------------------------------------------------------------------------- */
.stories-section { padding: 40px 0 60px; background: #FFFBF5; }
.story-card {
    background: #fff;
    padding: 22px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
}
.story-card img {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
}
.story-body { flex: 1; }
.story-card p { font-size: 0.85rem; color: var(--text-muted); font-style: italic; margin-bottom: 12px; line-height: 1.5; font-family: 'Poppins', sans-serif; }
.story-author { font-weight: bold; color: var(--primary-maroon); font-size: 0.85rem; text-align: right; font-family: 'Poppins', sans-serif; }
.story-author i { color: var(--primary-maroon); margin-left: 4px; }

/* --------------------------------------------------------------------------
   HOW IT WORKS
   -------------------------------------------------------------------------- */
.how-it-works { padding: 60px 0; background: #FFFDF8; }
.steps-wrapper { position: relative; }
.step-card { text-align: center; font-family: 'Poppins', sans-serif; position: relative; }
.step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 37px;
    left: calc(50% + 45px);
    width: calc(100% - 90px);
    border-top: 2px dashed var(--accent-gold);
    z-index: 0;
}
.step-icon {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 1px dashed var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
    z-index: 1;
    font-size: 1.7rem;
    color: var(--primary-maroon);
    background: #fff;
}
.step-num {
    position: absolute;
    bottom: -2px;
    right: 2px;
    background: var(--accent-gold);
    color: #fff;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.step-card h3 { font-size: 0.95rem; color: var(--primary-maroon); margin-bottom: 8px; }
.step-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.4; }

/* --------------------------------------------------------------------------
   CTA SECTION
   -------------------------------------------------------------------------- */
.cta-section {
    background: linear-gradient(135deg, var(--dark-maroon), var(--primary-maroon));
    color: #fff;
    padding: 40px 0;
    margin: 20px;
    border-radius: 15px;
}
.cta-section p { color: var(--accent-gold); font-size: 1.1rem; }
.cta-section h2 { font-size: 2rem; margin: 10px 0 20px; }

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
footer { background: var(--dark-maroon); color: #fff; padding: 50px 0 20px; font-family: 'Poppins', sans-serif; font-size: 0.85rem; }
.footer-logo { font-family: Georgia, serif; font-size: 1.8rem; color: #fff; margin-bottom: 15px; }
.footer-logo span { font-size: 0.7rem; display: block; letter-spacing: 2px; color: var(--accent-gold); }
.footer-col p { color: #ccc; line-height: 1.6; }
.footer-col h4 { color: #fff; margin-bottom: 15px; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #ccc; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: var(--accent-gold); }
.social-links { margin-top: 15px; }
.social-links a { color: #fff; margin-right: 12px; font-size: 1.1rem; text-decoration: none; }

.footer-bottom { 
    text-align: center; 
    border-top: 1px solid rgba(255,255,255,0.1); 
    padding-top: 20px; 
    margin-top: 40px; 
    color: #aaa; 
}

/* --------------------------------------------------------------------------
   SITE NAV
   -------------------------------------------------------------------------- */
.site-nav {
    background: #fff;
    border-bottom: 1px solid rgba(122, 0, 22, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 20px; }
.nav-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.nav-brand img { width: 40px; height: auto; }
.nav-brand span {
    font-family: 'Berkshire Swash', 'Playfair Display', serif;
    font-size: 1.5rem;
    background: linear-gradient(180deg, #C4213B 0%, var(--primary-maroon) 55%, var(--dark-maroon) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.nav-links { display: flex; gap: 26px; list-style: none; font-family: 'Poppins', sans-serif; font-size: 0.92rem; }
.nav-links a { color: var(--text-dark); text-decoration: none; font-weight: 500; transition: 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--primary-maroon); }
.nav-auth { display: flex; align-items: center; gap: 16px; font-family: 'Poppins', sans-serif; }
.nav-auth .link-login { color: var(--primary-maroon); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.3rem; color: var(--primary-maroon); cursor: pointer; }
.nav-user { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-dark); text-decoration: none; }
.nav-user .mini-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-maroon), var(--dark-maroon));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.85rem; font-family: 'Poppins', sans-serif;
}
.nav-logout { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; }
.nav-logout:hover { color: var(--primary-maroon); }

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-outline { border: 1.5px solid var(--primary-maroon); color: var(--primary-maroon); background: transparent; }
.btn-outline:hover { background: var(--primary-maroon); color: #fff; }
.btn-block { flex: 1; }
.btn-block-full { width: 100%; }

/* --------------------------------------------------------------------------
   PAGE BANNER
   -------------------------------------------------------------------------- */
.page-banner {
    background: linear-gradient(135deg, var(--dark-maroon), var(--primary-maroon));
    color: #fff;
    padding: 46px 0 36px;
    text-align: center;
}
.page-banner h1 { font-size: 2.2rem; margin-bottom: 8px; }
.page-banner p { font-family: 'Poppins', sans-serif; color: var(--light-gold); font-size: 0.9rem; }
.breadcrumb { margin-top: 12px; font-size: 0.82rem; font-family: 'Poppins', sans-serif; }
.breadcrumb a { color: #fff; text-decoration: none; opacity: 0.8; }
.breadcrumb a:hover { opacity: 1; }
.breadcrumb .sep { margin: 0 6px; opacity: 0.6; }

/* --------------------------------------------------------------------------
   RESULTS BAR + PROFILE LISTING
   -------------------------------------------------------------------------- */
.results-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin: 34px 0 20px; font-family: 'Poppins', sans-serif; color: var(--text-muted); font-size: 0.9rem;
}
.results-bar select {
    padding: 8px 12px; border: 1px solid #eee; border-radius: 6px;
    font-family: 'Poppins', sans-serif; font-size: 0.85rem; color: var(--text-dark);
}

.profiles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 20px; }
.profile-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    text-align: center;
    padding: 26px 20px 22px;
    position: relative;
    transition: 0.25s ease;
    border: 1px solid rgba(212, 175, 55, 0.15);
}
.profile-card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(122, 0, 22, 0.12); }
.profile-avatar {
    width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700;
    color: #fff; border: 3px solid var(--accent-gold);
}
.avatar-1 { background: linear-gradient(135deg, #7A0016, #B3253B); }
.avatar-2 { background: linear-gradient(135deg, #B58A29, #D4AF37); }
.avatar-3 { background: linear-gradient(135deg, #4A000D, #7A0016); }
.avatar-4 { background: linear-gradient(135deg, #9C3350, #7A0016); }
.verified-tag {
    position: absolute; top: 16px; right: 16px; color: #2E9E5B; font-size: 1.15rem;
}
.profile-card h3 { font-size: 1.08rem; color: var(--primary-maroon); margin-bottom: 3px; }
.profile-id { font-size: 0.7rem; color: var(--accent-gold); font-family: 'Poppins', sans-serif; letter-spacing: 1px; margin-bottom: 10px; }
.profile-meta {
    font-size: 0.82rem; color: var(--text-muted); font-family: 'Poppins', sans-serif;
    margin-bottom: 4px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.profile-meta i { color: var(--accent-gold); width: 14px; }
.profile-actions { display: flex; gap: 10px; margin-top: 16px; }

.connect-btn[data-state="pending"] { background: var(--light-gold); color: var(--dark-maroon); cursor: default; box-shadow: none; }
.connect-btn[data-state="connected"] { background: #2E9E5B; color: #fff; }
.connect-btn[data-state="connected"]:hover { background: #25824A; }

.pagination { display: flex; justify-content: center; gap: 8px; margin: 30px 0 60px; font-family: 'Poppins', sans-serif; }
.pagination a {
    width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--primary-maroon); text-decoration: none; border: 1px solid #eee; font-size: 0.9rem;
}
.pagination a.active { background: var(--primary-maroon); color: #fff; border-color: var(--primary-maroon); }
.pagination a:hover:not(.active) { background: var(--light-gold); }

.no-results { text-align: center; padding: 60px 20px; font-family: 'Poppins', sans-serif; color: var(--text-muted); display: none; }
.no-results i { font-size: 2.4rem; color: var(--accent-gold); margin-bottom: 14px; display: block; }

/* --------------------------------------------------------------------------
   PROFILE DETAILS PAGE
   -------------------------------------------------------------------------- */
.profile-detail-header { background: #fff; padding: 40px 0; border-bottom: 1px solid #F1E6D8; }
.pd-header-inner { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.pd-avatar {
    width: 130px; height: 130px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-maroon), var(--dark-maroon));
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 2.8rem; font-family: 'Playfair Display', serif; font-weight: 700;
    border: 4px solid var(--accent-gold);
}
.pd-info h1 { font-size: 1.8rem; color: var(--primary-maroon); display: inline-flex; align-items: center; gap: 10px; }
.pd-info h1 i { font-size: 1.2rem; color: #2E9E5B; }
.pd-info .pd-sub { font-family: 'Poppins', sans-serif; color: var(--text-muted); margin: 8px 0 12px; font-size: 0.92rem; }
.pd-info .pd-sub i { color: var(--accent-gold); margin-right: 5px; }
.pd-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-tag {
    background: var(--light-gold); color: var(--dark-maroon); font-family: 'Poppins', sans-serif;
    font-size: 0.75rem; padding: 5px 12px; border-radius: 20px; font-weight: 600;
}
.pd-actions { margin-left: auto; display: flex; gap: 12px; }

.pd-body { padding: 40px 0 60px; }
.pd-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 26px; align-items: start; }
.pd-card { background: #fff; border-radius: 14px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); padding: 26px 28px; margin-bottom: 24px; }
.pd-card h2 { color: var(--primary-maroon); font-size: 1.2rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--light-gold); }
.pd-card p.about { font-family: 'Poppins', sans-serif; color: var(--text-muted); line-height: 1.75; font-size: 0.94rem; }
.detail-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; font-family: 'Poppins', sans-serif; font-size: 0.9rem; }
.detail-list .label { display: block; color: var(--accent-gold); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.detail-list .value { color: var(--text-dark); font-weight: 500; }
.pd-side .pd-card { text-align: center; }
.pd-contact-locked { filter: blur(4px); user-select: none; }
.pd-lock-note { font-family: 'Poppins', sans-serif; font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; line-height: 1.5; }
.pd-lock-note i { color: var(--accent-gold); display: block; font-size: 1.4rem; margin-bottom: 8px; }

/* --------------------------------------------------------------------------
   AUTH PAGES (REGISTER / LOGIN)
   -------------------------------------------------------------------------- */
.auth-section { min-height: calc(100vh - 62px); display: flex; }
.auth-visual {
    flex: 0 0 42%;
    background: linear-gradient(135deg, var(--dark-maroon), var(--primary-maroon));
    color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 50px 30px; position: relative; overflow: hidden;
}
.auth-visual .logo-badge {
    background: #fff; border-radius: 50%; width: 140px; height: 140px;
    display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.auth-visual .logo-badge img { width: 100px; }
.auth-visual h2 { font-size: 1.7rem; margin-bottom: 10px; }
.auth-visual p { font-family: 'Poppins', sans-serif; color: var(--light-gold); font-size: 0.92rem; max-width: 300px; line-height: 1.6; }
.auth-visual .auth-quote {
    margin-top: 36px; font-style: italic; font-family: 'Playfair Display', serif;
    font-size: 1.05rem; color: #fff; opacity: 0.9; max-width: 300px;
}

.auth-form-panel { flex: 1; display: flex; align-items: center; justify-content: center; padding: 50px 30px; }
.auth-box { width: 100%; max-width: 460px; }
.auth-box h1 { color: var(--primary-maroon); font-size: 1.8rem; margin-bottom: 6px; }
.auth-box .auth-sub { font-family: 'Poppins', sans-serif; color: var(--text-muted); margin-bottom: 28px; font-size: 0.9rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; font-family: 'Poppins', sans-serif; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.field input, .field select {
    width: 100%; padding: 12px 14px; border: 1.5px solid #eee; border-radius: 8px;
    font-size: 0.9rem; font-family: 'Poppins', sans-serif; outline: none; transition: 0.2s;
}
.field input:focus, .field select:focus { border-color: var(--accent-gold); }
.field-check { display: flex; align-items: flex-start; gap: 8px; font-size: 0.82rem; font-family: 'Poppins', sans-serif; color: var(--text-muted); margin-bottom: 22px; }
.field-check input { margin-top: 3px; }
.field-check a { color: var(--primary-maroon); text-decoration: none; font-weight: 600; }

.auth-switch { text-align: center; margin-top: 22px; font-family: 'Poppins', sans-serif; font-size: 0.88rem; color: var(--text-muted); }
.auth-switch a { color: var(--primary-maroon); font-weight: 600; text-decoration: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #ccc; font-size: 0.8rem; font-family: 'Poppins', sans-serif; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #eee; }
.form-error {
    background: #FDEDEE; color: #B3253B; font-family: 'Poppins', sans-serif; font-size: 0.85rem;
    padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; display: none; align-items: center; gap: 8px;
}
.flash-messages { padding-top: 16px; }
.flash-messages .form-error { display: flex; }
.form-error.flash-success, .form-error.flash-info { background: #E9F7EF; color: #1E7E45; }
.form-error.flash-error { background: #FDEDEE; color: #B3253B; }

/* --------------------------------------------------------------------------
   RESPONSIVE LAYOUT BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .search-form { flex-wrap: wrap; }
    .form-group { min-width: 45%; }
    .brand-name { font-size: 2.8rem; }
    .heart-logo { width: 100px; }
    .profiles-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-grid { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-form-panel { flex: 1; }
}

@media (max-width: 768px) {
    .hero-section { min-height: 560px; }
    .hero-bg { object-position: 75% center; }
    .hero-content {
        flex: 1 1 auto;
        max-width: 92%;
        padding: 28px 22px;
        background: rgba(255, 253, 249, 0.88);
        border-radius: 16px;
        backdrop-filter: blur(2px);
    }
    .search-section { margin: 20px 10px; }
    .form-group { min-width: 100%; }
    .step-card:not(:last-child)::after { display: none; }
    .story-card { flex-direction: column; align-items: center; text-align: center; }
    .story-author { text-align: center; }
    .nav-links, .nav-auth .link-login, .nav-auth .btn { display: none; }
    .nav-toggle { display: block; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; padding: 16px 24px; gap: 16px; box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    }
    .nav-auth.open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 16px 24px; box-shadow: 0 8px 16px rgba(0,0,0,0.08); }
    .pd-header-inner { flex-direction: column; text-align: center; }
    .pd-actions { margin-left: 0; }
    .pd-tags { justify-content: center; }
}

@media (max-width: 600px) {
    .grid-6, .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .profiles-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .detail-list { grid-template-columns: 1fr; }
}