/*
 * Hindu Vivah - Professional Matrimonial Platform
 * Modern & Professional Design
 */

/* Color Palette */
:root {
    --primary-orange: #ff870f;
    --dark-orange: #f96f14;
    --light-orange: #ff9933;
    --accent-yellow: #f9e420;
    --text-dark: #41474b;
    --text-light: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
    --midnight: #050b1f;
    --deep-indigo: #1a1f52;
    --glow-peach: #ff884c;
    --glow-sky: #2cc9ff;
    --glass: rgba(255, 255, 255, 0.12);
}

/* Global Styles */
html {
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    font-family: 'Lato', sans-serif;
    background: var(--white);
    transition: all 0.3s ease-in-out;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

p {
    margin: 0 0 1rem 0;
    line-height: 1.8;
    color: var(--text-dark);
    font-size: 16px;
    letter-spacing: 0.3px;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* Navigation */
.site-navbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
    padding: 0.9rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.site-navbar.scrolled,
.navbar.scrolled {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.site-brand img,
.navbar-brand img {
    height: 55px;
    transition: all 0.3s ease;
}

.site-brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.site-brand__text strong {
    color: var(--text-dark);
    font-size: 1rem;
}

.site-brand__text small {
    color: var(--text-light);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    padding: 0.8rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--dark-orange);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--dark-orange);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 60%;
}

.nav-account {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 999px;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
}

.btn-primary {
    background: var(--dark-orange);
    border: 2px solid var(--dark-orange);
    color: var(--white);
    padding: 8px 25px;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(249, 111, 20, 0.3);
}

/* Hero/Banner Section */
.banner-section {
    background: url('../images/banner.jpg') no-repeat center center;
    background-size: cover;
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
}

.banner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.home-hero {
    padding: 2rem 0 3rem;
}

.home-hero__panel {
    position: relative;
    z-index: 2;
    background: linear-gradient(145deg, rgba(5, 11, 31, 0.7), rgba(20, 31, 82, 0.58));
    border-radius: 34px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.28);
    overflow: hidden;
}

.home-hero__panel::after {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    right: -80px;
    top: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 111, 20, 0.26), transparent 70%);
    pointer-events: none;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.banner-content h1 {
    font-size: 40px;
    font-weight: 500;
    color: var(--white);
    text-transform: none;
    letter-spacing: 0.01em;
    line-height: 1.15;
    margin-bottom: 0.85rem;
    text-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.banner-content h2 {
    color: #ffffff !important;
    display: inline-block;
    padding: 0.35rem 0.8rem;
    background: rgba(0, 0, 0, 0.28);
    border-radius: 10px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.banner-content p {
    font-size: 1.15rem;
    color: var(--white);
    margin: 0 0 1.75rem;
    max-width: 640px;
    line-height: 1.6;
}

.banner-btn {
    padding: 12px 28px;
    border: 2px solid var(--accent-yellow);
    border-radius: 50px;
    color: var(--white);
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    margin: 0 10px;
    display: inline-block;
    transition: all 0.3s ease;
}

.banner-btn:hover {
    background: var(--accent-yellow);
    color: var(--dark-orange);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(249, 228, 32, 0.4);
}

.banner-btn.filled {
    background: var(--accent-yellow);
    color: var(--dark-orange);
}

.banner-btn.filled:hover {
    background: var(--white);
    border-color: var(--white);
}

.hero-summary-card {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 250, 252, 0.94));
    border-radius: 28px;
    padding: 2.1rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(6px);
}

.hero-summary-card__title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #16213d;
}

.hero-summary-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-summary-card__list li {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: #344054;
}

.hero-summary-card__list li:last-child {
    border-bottom: none;
}

.hero-summary-card__list i {
    color: var(--dark-orange);
    margin-top: 0.25rem;
}

/* Feature Cards */
.feature-section {
    padding: 80px 0;
    background: var(--white);
}

.feature-card {
    text-align: center;
    padding: 40px 20px;
    border: none;
    border-radius: 15px;
    background: var(--white);
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card .icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--dark-orange), var(--light-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 35px;
    transition: all 0.3s ease;
}

.feature-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* Membership Plans */
.membership-section {
    padding: 80px 0;
    background: var(--bg-light);
}

/* HTMX tab content transitions */
#matches-tab {
    transition: opacity 0.15s ease-in-out;
}
.htmx-request #matches-tab {
    opacity: 0.5;
}

.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: inline-flex;
    align-items: center;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 18px;
    color: var(--text-light);
}

.membership-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.membership-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.membership-card.featured {
    border: 3px solid var(--dark-orange);
    transform: scale(1.05);
}

.membership-card.featured:hover {
    transform: scale(1.08) translateY(-10px);
}

.membership-header {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--dark-orange), var(--primary-orange));
    color: var(--white);
}

.membership-header.basic {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.membership-header.premium {
    background: linear-gradient(135deg, #212529, #495057);
}

.membership-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.membership-header .price {
    font-size: 48px;
    font-weight: 900;
    color: var(--white);
    margin: 20px 0;
}

.membership-header .price small {
    font-size: 16px;
    font-weight: 400;
}

.membership-header .duration {
    font-size: 16px;
    opacity: 0.9;
}

.membership-body {
    padding: 40px 30px;
    background: var(--white);
}

.membership-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.membership-body ul li {
    padding: 12px 0;
    color: var(--text-dark);
    font-size: 15px;
    border-bottom: 1px solid #eee;
}

.membership-body ul li:last-child {
    border-bottom: none;
}

.membership-body ul li i {
    color: #28a745;
    margin-right: 10px;
    font-size: 18px;
}

.btn-membership {
    width: 100%;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-outline-primary {
    border: 2px solid var(--dark-orange);
    color: var(--dark-orange);
}

.btn-outline-primary:hover {
    background: var(--dark-orange);
    color: var(--white);
}

.badge-popular {
    background: var(--accent-yellow);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
    display: inline-block;
}

/* How It Works */
.how-it-works-section {
    padding: 80px 0;
    background: var(--white);
}

.step-card {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--dark-orange), var(--light-orange));
    color: var(--white);
    font-size: 42px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(249, 111, 20, 0.3);
    transition: all 0.3s ease;
}

.step-card:hover .step-number {
    transform: scale(1.1) rotate(5deg);
}

.step-card h5 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.step-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--dark-orange), var(--primary-orange));
    border-radius: 20px;
    text-align: center;
    margin: 80px 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--white);
    font-size: 20px;
    margin-bottom: 30px;
}

.btn-cta {
    background: var(--white);
    color: var(--dark-orange);
    padding: 15px 50px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 18px;
    border: 3px solid var(--white);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    background: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Footer */
.site-footer {
    background: linear-gradient(135deg, #0b1228, #1a2248);
    color: var(--white);
    padding: 4.5rem 0 1.5rem;
}

.site-footer__top {
    display: grid;
    grid-template-columns: minmax(280px, 1.5fr) minmax(180px, 1fr) minmax(220px, 1fr);
    gap: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    align-items: start;
}

.site-footer h5 {
    color: var(--white);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1rem;
}

.site-footer__brand {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.site-footer__top > div:nth-child(2) {
    justify-self: center;
}

.site-footer__top > div:nth-child(3) {
    justify-self: end;
    text-align: right;
}

.site-footer__copy,
.site-footer__links a,
.site-footer__meta li,
.site-footer__legal a {
    color: rgba(255, 255, 255, 0.74);
}

.site-footer__links li + li,
.site-footer__meta li + li {
    margin-top: 0.65rem;
}

.site-footer__meta li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.site-footer__top > div:nth-child(3) .site-footer__meta li {
    justify-content: flex-end;
}

.site-footer__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.site-footer__social a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.site-footer__social a:hover,
.site-footer__links a:hover,
.site-footer__legal a:hover {
    color: var(--white);
}

.site-footer__bottom {
    padding-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.site-footer__legal {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 768px) {
    .site-brand__text {
        display: none;
    }

    .banner-section {
        min-height: 500px;
    }

    .home-hero__panel {
        padding: 2rem 1.5rem;
    }

    .banner-content h1 {
        font-size: 31px;
    }

    .banner-content p {
        font-size: 18px;
    }

    .banner-btn {
        padding: 10px 30px;
        font-size: 16px;
        margin: 5px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .membership-card.featured {
        transform: scale(1);
    }

    .step-number {
        width: 70px;
        height: 70px;
        font-size: 32px;
    }

    .site-footer__top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .site-footer__top > div:nth-child(2),
    .site-footer__top > div:nth-child(3) {
        justify-self: start;
        text-align: left;
    }

    .site-footer__top > div:nth-child(3) .site-footer__meta li,
    .site-footer__social {
        justify-content: flex-start;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Loading States */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

/* Additional Sections from Original Design */

/* Service Area Section */
.service-area-section {
    padding: 80px 0;
    background: var(--white);
}

.section-heading {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.glitch-line {
    width: 80px;
    height: 3px;
    background: var(--text-dark);
    margin: 0 auto 30px;
}

.glitch-line.orange {
    background: var(--dark-orange);
}

.glitch-line.white {
    background: var(--white);
}

.highlight-text {
    font-size: 20px;
    color: var(--dark-orange);
    margin-top: 30px;
}

/* Find Special Section */
.find-special-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.process-card {
    text-align: center;
    padding: 40px 20px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.process-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.process-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--dark-orange), var(--light-orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.process-card:hover .process-icon {
    transform: scale(1.1) rotate(5deg);
}

.process-icon img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1);
}

.process-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.process-card p {
    font-size: 16px;
    color: var(--text-light);
}

/* Privacy Section */
.privacy-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark-orange), var(--primary-orange));
    color: var(--white);
}

.privacy-section h4 {
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
}

.privacy-list li {
    font-size: 18px;
    padding: 15px 0;
    color: var(--white);
}

.privacy-list li i {
    color: var(--accent-yellow);
    margin-right: 15px;
    font-size: 20px;
}

/* Description Section */
.desc-section {
    padding: 80px 0;
    background: var(--white);
}

.desc-section p {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-dark);
}

.desc-section .lead {
    font-size: 18px;
    font-weight: 500;
}

/* Call to Action Section */
.callto-section {
    padding: 100px 0;
    background: url('../images/back.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
}

.callto-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.callto-section .container {
    position: relative;
    z-index: 2;
}

.callto-section h4 {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 30px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* Dashboard, profile, matches, and membership layouts */
.eyebrow {
    display: inline-flex;
    letter-spacing: 0.4em;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.dashboard-page, .profile-section, .matches-section, .subscription-page {
    background: var(--bg-light);
}

.dashboard-hero {
    background: linear-gradient(135deg, rgba(5, 11, 31, 0.96), rgba(17, 24, 71, 0.92), rgba(255, 129, 79, 0.85));
    color: var(--white);
    border-radius: 32px;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2rem;
}

.dashboard-hero h1,
.dashboard-hero h2,
.dashboard-hero h3,
.dashboard-hero p,
.dashboard-hero span,
.dashboard-hero li,
.profile-hero h1,
.profile-hero h2,
.profile-hero h3,
.profile-hero p,
.profile-hero span,
.profile-hero li,
.matches-hero h1,
.matches-hero h2,
.matches-hero h3,
.matches-hero p,
.matches-hero span,
.matches-hero li,
.subscription-hero h1,
.subscription-hero h2,
.subscription-hero h3,
.subscription-hero p,
.subscription-hero span,
.subscription-hero li {
    color: inherit;
}

.dashboard-copy {
    max-width: 40rem;
}

.dashboard-copy h1 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin-bottom: 1rem;
}

.dashboard-copy p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.hero-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.hero-stat {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 1.2rem 1.4rem;
    backdrop-filter: blur(8px);
}

.hero-stat span {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.65rem;
}

.hero-stat strong {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.dashboard-actions {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.action-card {
    background: var(--white);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.action-card::before {
    content: '';
    position: absolute;
    inset: auto -20% -55% auto;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(249, 111, 20, 0.16), transparent 68%);
}

.action-card__icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(249, 111, 20, 0.12);
    color: var(--dark-orange);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.action-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.action-card__link {
    font-weight: 700;
    color: var(--dark-orange);
}

.profile-section {
    padding: 4rem 0 5rem;
}

.profile-hero,
.matches-hero,
.subscription-hero {
    background: linear-gradient(135deg, rgba(5, 11, 31, 0.96), rgba(17, 24, 71, 0.92), rgba(255, 129, 79, 0.85));
    color: var(--white);
    border-radius: 32px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.profile-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.profile-card {
    background: var(--white);
    border-radius: 28px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.profile-card--search {
    background-size: cover;
    background-position: left top;
    background-repeat: no-repeat;
}

.profile-card--search-empty {
    background: linear-gradient(135deg, rgba(249, 111, 20, 0.16), rgba(255, 255, 255, 0.96));
}

.profile-card--summary {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    align-items: center;
}

.profile-card__media img {
    width: 180px;
    height: 220px;
    object-fit: cover;
    border-radius: 24px;
}

.profile-card__placeholder {
    width: 180px;
    height: 220px;
    border-radius: 24px;
    background: rgba(249, 111, 20, 0.12);
    color: var(--dark-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.profile-card__body h2 {
    margin-bottom: 0.5rem;
}

.profile-card__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.chip {
    background: rgba(5, 11, 31, 0.06);
    color: var(--text-dark);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-card--details {
    padding: 1.5rem;
    position: relative;
}

.search-result__surface {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.profile-card--details h3 {
    margin-bottom: 0.75rem;
}

.search-result__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.search-result__title {
    font-size: 0.98rem;
    line-height: 1.3;
    margin: 0;
}

.search-result__meta {
    color: var(--text-light);
    font-size: 0.82rem;
    margin-bottom: 0.7rem;
}

.search-result__content {
    max-width: 56%;
    margin-left: auto;
    min-width: 0;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 0.7rem 0.85rem;
}

.search-result__actions {
    margin-top: 0.85rem;
    display: flex;
    justify-content: flex-end;
}

.search-result__button {
    min-width: 118px;
    padding: 0.45rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 12px;
}

.verified-shield {
    width: 30px;
    height: 36px;
    flex: 0 0 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff4c2, #f1bf2d);
    color: #8b5e00;
    border: 1px solid rgba(171, 119, 0, 0.26);
    box-shadow: 0 8px 18px rgba(171, 119, 0, 0.18);
    font-size: 1rem;
}

.verified-shield--card {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 2;
}

@media (max-width: 575px) {
    .search-result__surface {
        min-height: 168px;
    }

    .search-result__content {
        max-width: 76%;
    }
}

.profile-card--details p {
    color: var(--text-light);
}

.matches-section {
    padding: 4rem 0 5rem;
}

.matches-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.matches-tabs .nav-link {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.matches-tabs .nav-link.active,
.matches-tabs .nav-link:hover {
    background: var(--white);
    color: var(--text-dark);
}

.match-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.75rem;
}

.matches-card {
    background: var(--white);
    border-radius: 28px;
    padding: 1.75rem;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.match-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.match-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.match-card__top {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.match-card__top h3 {
    margin-bottom: 0.25rem;
}

.match-card__note {
    color: var(--text-light);
}

.match-card__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.match-card__actions.justify-end {
    justify-content: flex-end;
}

.match-card__actions .btn {
    white-space: nowrap;
}

.match-status {
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.match-status--pending {
    background: rgba(249, 111, 20, 0.15);
    color: var(--dark-orange);
}

.match-status--accepted,
.match-status--confirmed {
    background: rgba(16, 185, 129, 0.2);
    color: #22c55e;
}

.match-status--rejected,
.match-status--blocked {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.match-status--focused {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.subscription-hero {
    background: linear-gradient(135deg, rgba(6, 11, 38, 0.98), rgba(17, 26, 74, 0.95));
    color: var(--white);
    border-radius: 32px;
    padding: 2.75rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.subscription-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.subscription-card {
    background: var(--white);
    border-radius: 24px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.subscription-card .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-light);
}

.payment-card {
    padding: 2rem;
    margin-top: 1.5rem;
}

.payment-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.07);
    padding-bottom: 0.75rem;
}

.payment-line:last-child {
    border-bottom: none;
}

.payment-line strong {
    display: block;
    font-size: 1rem;
}

.payment-line .badge {
    letter-spacing: 0.1em;
    padding: 0.35rem 0.9rem;
}

.inner-shell {
    background:
        radial-gradient(circle at top left, rgba(232, 168, 76, 0.15), transparent 28%),
        linear-gradient(180deg, rgba(248, 246, 241, 0.88), rgba(255, 255, 255, 0.98));
}

.inner-intro {
    padding: 1rem 0 2.25rem;
}

.inner-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9a6a20;
    font-weight: 700;
}

.inner-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin: 0.75rem 0 0.6rem;
    line-height: 1.08;
}

.inner-lead {
    color: var(--text-light);
    max-width: 42rem;
    margin-bottom: 0;
    font-size: 1.02rem;
}

.inner-highlight {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 238, 0.96));
    border: 1px solid rgba(154, 106, 32, 0.14);
    border-radius: 24px;
    padding: 1.35rem 1.4rem;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.inner-highlight__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.inner-highlight__meta {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.inner-surface {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 28px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.inner-surface__body {
    padding: 2.25rem;
}

.inner-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 2rem;
}

.inner-step {
    border-radius: 20px;
    padding: 1rem 1.1rem 1.05rem;
    background: rgba(244, 239, 228, 0.75);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.inner-step--active {
    background: linear-gradient(135deg, rgba(154, 106, 32, 0.12), rgba(255, 255, 255, 0.95));
    border-color: rgba(154, 106, 32, 0.22);
    box-shadow: 0 12px 30px rgba(154, 106, 32, 0.08);
}

.inner-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
}

.inner-step--active .inner-step__number {
    background: #9a6a20;
    color: var(--white);
}

.inner-step h2,
.inner-step h3,
.inner-step h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.inner-step p {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.inner-form-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 247, 242, 0.96));
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.04);
}

.inner-form-section + .inner-form-section {
    margin-top: 1.2rem;
}

.inner-form-section__title {
    font-size: 1.08rem;
    margin-bottom: 0.35rem;
}

.inner-form-section__copy {
    color: var(--text-light);
    margin-bottom: 1.15rem;
}

.inner-form-hint {
    background: linear-gradient(135deg, rgba(6, 11, 38, 0.98), rgba(17, 26, 74, 0.95));
    color: var(--white);
    border-radius: 24px;
    padding: 1.6rem;
    height: 100%;
    position: sticky;
    top: 1.5rem;
    box-shadow: 0 18px 38px rgba(6, 11, 38, 0.22);
}

.inner-form-hint h2,
.inner-form-hint h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.inner-form-hint p,
.inner-form-hint li,
.inner-form-hint .small {
    color: rgba(255, 255, 255, 0.78);
}

.inner-form-hint ul {
    margin-bottom: 0;
    padding-left: 1rem;
}

.inner-form-hint li + li {
    margin-top: 0.55rem;
}

.inner-surface .form-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #253046;
    margin-bottom: 0.45rem;
}

.inner-surface .form-control,
.inner-surface .form-select {
    min-height: 50px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    padding: 0.8rem 0.95rem;
    box-shadow: none;
}

.inner-surface textarea.form-control {
    min-height: 132px;
}

.inner-surface .form-control:focus,
.inner-surface .form-select:focus {
    border-color: rgba(249, 111, 20, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(249, 111, 20, 0.12);
}

.inner-surface .errorlist {
    list-style: none;
    padding: 0;
    margin: 0.45rem 0 0;
    color: #b42318;
    font-size: 0.86rem;
}

.inner-actions {
    margin-top: 1.4rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    background: rgba(249, 247, 242, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 1rem 1.1rem;
}

.inner-actions .text-muted,
.inner-actions .small {
    margin-bottom: 0;
}

.panel-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.panel-nav .nav-link {
    border: none;
    border-radius: 999px;
    background: rgba(244, 239, 228, 0.8);
    color: var(--text-dark);
    padding: 0.8rem 1.15rem;
    font-weight: 600;
}

.panel-nav .nav-link.active,
.panel-nav .nav-link:hover,
.panel-nav .nav-link:focus {
    background: linear-gradient(135deg, rgba(154, 106, 32, 0.18), rgba(255, 255, 255, 0.98));
    color: #7a4f14;
}

.panel-nav__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.65rem;
    height: 1.65rem;
    margin-left: 0.5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 0.8rem;
}

.panel-nav .nav-link.active .panel-nav__count {
    background: rgba(154, 106, 32, 0.18);
}

.connection-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.connection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.25rem;
    border-radius: 20px;
    background: rgba(248, 246, 241, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.connection-item__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.connection-item__meta {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 0;
}

.connection-item__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.empty-state-soft {
    border-radius: 22px;
    padding: 1.5rem;
    background: rgba(248, 246, 241, 0.92);
    color: var(--text-light);
    border: 1px dashed rgba(15, 23, 42, 0.12);
}

.matches-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.matches-summary-card {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
    padding: 1.25rem 1.35rem;
}

.matches-summary-card .label {
    display: block;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
    margin-bottom: 0.55rem;
}

.matches-summary-card strong {
    display: block;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 0.45rem;
}

.matches-summary-card p {
    color: var(--text-light);
    font-size: 0.92rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.matches-workspace {
    overflow: hidden;
}

.matches-workspace__tabs {
    padding: 0 1.25rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, rgba(251, 249, 244, 0.98), rgba(255, 255, 255, 0.98));
}

.matches-workspace__body {
    padding: 1.25rem 1.25rem 1.5rem;
}

.matches-dashboard-tabs {
    border-bottom: none;
    gap: 0.35rem;
}

.matches-dashboard-tabs .nav-link {
    border: none;
    border-radius: 16px 16px 0 0;
    padding: 1rem 1.05rem 0.9rem;
    color: var(--text-light);
    font-weight: 700;
    background: transparent;
}

.matches-dashboard-tabs .nav-link:hover,
.matches-dashboard-tabs .nav-link:focus {
    color: var(--text-dark);
    background: rgba(15, 23, 42, 0.03);
}

.matches-dashboard-tabs .nav-link.active {
    color: var(--text-dark);
    background: var(--white);
    box-shadow: inset 0 3px 0 #f96f14;
}

.matches-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.55rem;
    height: 1.55rem;
    margin-left: 0.45rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    font-size: 0.78rem;
}

.matches-dashboard-tabs .nav-link.active .matches-tab-count {
    background: rgba(249, 111, 20, 0.14);
    color: #9a4f0a;
}

.matches-table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: rgba(248, 246, 241, 0.65);
    --bs-table-hover-bg: rgba(249, 111, 20, 0.04);
}

.matches-table thead th {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--text-light);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    padding: 0.95rem 1rem;
}

.matches-table tbody td {
    padding: 1rem;
    border-color: rgba(15, 23, 42, 0.06);
    vertical-align: middle;
}

.matches-table__primary {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.15rem;
}

.matches-table__secondary {
    color: var(--text-light);
    font-size: 0.9rem;
}

.matches-table__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.wizard-card {
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(251, 250, 247, 0.98));
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16) !important;
}

.wizard-card .card-body {
    position: relative;
}

.wizard-card .card-body::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, #f9e420, #f96f14);
}

ul.errorlist,
.errorlist {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    color: #dc3545 !important;
}

ul.errorlist li,
.errorlist li,
.errorlist *,
ul.errorlist * {
    color: #dc3545 !important;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-heading {
        font-size: 32px;
    }

    .privacy-section h4 {
        font-size: 28px;
    }

    .callto-section h4 {
        font-size: 32px;
    }

    .process-icon {
        width: 100px;
        height: 100px;
    }

    .process-card h3 {
        font-size: 20px;
    }

    .dashboard-hero,
    .profile-hero,
    .matches-hero,
    .subscription-hero {
        flex-direction: column;
        padding: 2rem;
    }

    .dashboard-hero {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .dashboard-actions {
        grid-template-columns: 1fr;
    }

    .profile-grid,
    .subscription-grid,
    .match-grid {
        grid-template-columns: 1fr;
    }

    .profile-card--summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .matches-tabs {
        justify-content: center;
    }

    .match-card__actions {
        flex-wrap: wrap;
    }

    .payment-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .inner-surface__body {
        padding: 1.35rem;
    }

    .inner-steps {
        grid-template-columns: 1fr;
    }

    .inner-form-section {
        padding: 1.15rem;
    }

    .inner-form-hint {
        position: static;
    }

    .connection-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .matches-workspace__tabs,
    .matches-workspace__body {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .matches-dashboard-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .matches-dashboard-tabs .nav-link {
        white-space: nowrap;
    }
}
