/* 
    ELIEZER INDIA CHRISTIAN MATRIMONY - Design System & Styles
    Brandkit Palette:
    Heritage Forest (Primary): #064B32
    Living Emerald (Secondary): #0B6A44
    Promise Gold (Accent / Rules): #C79628
    Sunlit Gold (Highlight Accent): #F3C94E
    Rose of Love (Emotional Accent): #AA1D4D
    Soft Ivory (Light Background): #FAF7F0
    Deep Forest Dark: #1E2D24
*/

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

:root {
    --primary: #064B32;
    --primary-light: #0B6A44;
    --accent: #AA1D4D;
    --gold: #C79628;
    --gold-light: #F3C94E;
    --cream: #FAF7F0;
    --taupe: #CDB7A0;
    --dark: #1E2D24;
    --white: #FFFFFF;
    --black: #000000;

    --font-heading: 'EB Garamond', serif;
    --font-body: 'Lato', sans-serif;

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(6, 75, 50, 0.2);

    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--cream);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body.no-scroll {
    overflow: hidden;
}


h1,
h2,
h3,
h4,
.heading-font {
    font-family: var(--font-heading);
    color: var(--primary);
    letter-spacing: 0.5px;
}

p {
    color: #555;
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.gold-text {
    color: var(--gold) !important;
}

.bg-cream {
    background-color: var(--cream);
}

.bg-dark {
    background-color: var(--dark);
    color: var(--cream);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(199, 150, 40, 0.1);
    color: var(--gold);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 1.5rem;
    position: relative;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
}

/* Navbar */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.header.scrolled {
    background: var(--cream);
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: inline-flex;
    align-items: center;
}

.logo img {
    height: 60px;
    transition: var(--transition);
}

.header:not(.scrolled) .logo a {
    background: rgba(250, 247, 240, 0.95);
    padding: 6px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.header.scrolled .logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
}

.nav-links i {
    font-size: 1rem;
    transition: var(--transition);
}

.nav-links a:hover i,
.nav-links a.active i {
    color: var(--gold);
    transform: scale(1.2);
    animation: heartBeat 1.5s ease infinite;
    /* Subtle pulse for icons */
}

@keyframes heartBeat {
    0% {
        transform: scale(1.2);
    }

    15% {
        transform: scale(1.4);
    }

    30% {
        transform: scale(1.2);
    }

    45% {
        transform: scale(1.4);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1.2);
    }
}

.header.scrolled .nav-links a {
    color: var(--dark);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 20px;
}


.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: transparent;
    border: none;
    color: var(--white);
    cursor: pointer;
}

.header.scrolled .mobile-toggle {
    color: var(--dark);
}

.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
}

.login-btn:hover {
    background: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
}

.header.scrolled .login-btn {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.header.scrolled .login-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    padding-top: 50px;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(4, 25, 17, 0.95) 0%, rgba(6, 75, 50, 0.45) 100%);
    z-index: -1;
}

.hero-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    margin-top: 4vh;
}

.hero-content {
    max-width: 650px;
    text-align: left;
}

.hero-subtitle-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0.8rem;
}

.decorative-icon {
    color: var(--gold);
    font-size: 1.2rem;
}

.hero-subtitle {
    font-size: clamp(0.75rem, 1.2vw, 1rem);
    font-family: var(--font-heading);
    letter-spacing: clamp(2px, 0.5vw, 4px);
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
    margin: 0;
}

.hero-title {
    font-size: clamp(2rem, 9vw, 6rem);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 350px;
    margin-bottom: 1.5rem;
}

.hero-divider .line {
    height: 1px;
    flex: 1;
    background: rgba(199, 150, 40, 0.4);
}

.hero-divider i {
    color: var(--gold);
}

.hero-desc {
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-watch {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    color: var(--gold);
    border: 1px solid var(--gold);
}

.btn-watch:hover {
    background: rgba(199, 150, 40, 0.1);
    color: var(--gold);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-trust i {
    color: var(--gold);
    font-size: 1.1rem;
}

/* Floating Stats Banner */
.hero-stats-floating {
    margin-top: 5vh;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-stats-floating .stat-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 1;
    justify-content: center;
    text-align: left;
}

.hero-stats-floating .stat-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--white);
}

.hero-stats-floating .stat-info h4 {
    color: var(--white);
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
    font-family: var(--font-heading);
    line-height: 1;
}

.hero-stats-floating .stat-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.85rem;
}

.stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Bottom Wave */
.hero-bottom-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.hero-bottom-wave svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* How It Works - Enhanced Journey Design */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
    margin-top: 5rem;
}

/* Journey Path Line */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    z-index: 0;
    opacity: 0.3;
}

.step-card {
    background: transparent;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.step-icon-wrap {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2.5rem;
}

.step-number {
    position: absolute;
    top: -15px;
    right: -15px;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--cream);
    z-index: -1;
    line-height: 1;
    opacity: 0.8;
    transition: var(--transition);
}

.step-card:hover .step-number {
    color: var(--gold);
    opacity: 0.2;
    transform: scale(1.3) translateY(-10px);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid var(--cream);
    position: relative;
    margin: 0;
    /* Override previous margin */
}

.step-icon::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 1px dashed var(--gold);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    transform: scale(1.2);
}

.step-card:hover .step-icon {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(6, 75, 50, 0.4), var(--shadow-hover);
    border-color: var(--primary);
}


.step-card:hover .step-icon::after {
    opacity: 1;
    transform: scale(1);
    animation: rotateStepIcon 8s linear infinite;
}

@keyframes rotateStepIcon {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.step-card h4 {
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.step-card h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--gold);
    transition: var(--transition);
}

.step-card:hover h4::after {
    width: 60px;
    background: var(--accent);
}

.step-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}


/* Security Section */
.security-section {
    background: #ffffff;
    color: var(--dark);
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(6, 75, 50, 0.05);
    border-bottom: 1px solid rgba(6, 75, 50, 0.05);
}

.security-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.security-text {
    flex: 1;
}

.security-graphics {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.main-shield {
    font-size: 10rem;
    color: var(--gold);
    z-index: 2;
    position: relative;
}

.shield-pulse {
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(199, 150, 40, 0.1);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.security-list {
    margin-top: 2rem;
}

.security-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.security-list i {
    color: var(--gold);
}

/* Success Stories */
.stories-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.story-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.story-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.story-content {
    padding: 2.5rem;
    position: relative;
}

.quote-icon {
    font-size: 2rem;
    color: var(--cream);
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
}

.story-content p {
    position: relative;
    z-index: 1;
    font-style: italic;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.story-content h4 {
    margin-bottom: 0;
    font-size: 1.1rem;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-content {
    flex: 1;
}

.about-images {
    flex: 1;
}

.image-grid {
    position: relative;
}

.img-1 {
    width: 80%;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.img-2 {
    width: 60%;
    position: absolute;
    bottom: -20%;
    right: 0;
    border: 10px solid var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

/* Pricing/Plans */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.plan-card {
    background: var(--white);
    padding: 4rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(6, 75, 50, 0.05);
    width: 100%;
    max-width: 350px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card.popular,
.plan-card.highlighted {
    border: 2px solid var(--gold);
    transform: scale(1.05);
    z-index: 1;
}

.popular-badge,
.premium-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--white);
    padding: 0.4rem 1.5rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.plan-name {
    margin-bottom: 1.5rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
}

.plan-price span {
    font-size: 1rem;
    color: #888;
}

.plan-features {
    margin-bottom: 3rem;
}

.plan-features li {
    margin-bottom: 1rem;
    color: #666;
}

/* Footer style */
/* Footer style - Premium Redesign */
.footer {
    background: linear-gradient(135deg, #042519 0%, #02140d 100%);
    color: var(--white);
    padding: 100px 0 40px;
    position: relative;
    border-top: 3px solid var(--gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    letter-spacing: 2px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gold);
}

.footer-logo img {
    background: #FAF7F0;
    padding: 8px 16px;
    border-radius: 12px;
    height: 65px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 2.5rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(199, 150, 40, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(199, 150, 40, 0.2);
}

.footer-col ul li {
    margin-bottom: 1.2rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    display: inline-block;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--gold);
    transform: translateX(8px);
}

.contact-links li {
    display: flex;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contact-links i {
    font-size: 1.1rem;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.powered-link {
    color: var(--gold);
    font-weight: 600;
}

.powered-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Animations */
/* Photo Grid & Slots */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 1.5rem;
}

.photo-slot {
    aspect-ratio: 1/1;
    border: 2px dashed #ddd;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    background: #fdfdfd;
}

.photo-slot:hover {
    border-color: var(--gold);
    background: rgba(199, 150, 40, 0.05);
}

.photo-slot.has-image {
    border-style: solid;
    border-color: var(--primary);
}

.photo-slot i {
    font-size: 1.5rem;
    color: #aaa;
    margin-bottom: 8px;
}

.photo-slot span {
    font-size: 0.75rem;
    color: #888;
    text-align: center;
    padding: 0 5px;
}

.photo-slot.mandatory {
    border-color: rgba(6, 75, 50, 0.2);
}

.slot-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    z-index: 1;
}

.photo-slot.has-image:hover .slot-remove {
    display: flex;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Matches Section Styles */
.matches-wrapper {
    max-width: 1000px;
    margin: 3rem auto 0;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.matches-placeholder {
    padding: 38px 24px 30px;
    background: rgba(250, 247, 240, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    border: 1.5px solid rgba(199, 150, 40, 0.35);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 2px 10px rgba(199, 150, 40, 0.15);
    width: 100%;
    max-width: 390px;
    margin: 20px auto;
    text-align: center;
    box-sizing: border-box;
    animation: cardFadeIn 0.4s ease-out;
}

.empty-icon-wrap {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(199, 150, 40, 0.18) 0%, rgba(6, 75, 50, 0.08) 100%);
    border: 1.5px solid rgba(199, 150, 40, 0.45);
    box-shadow: 0 8px 24px rgba(199, 150, 40, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: var(--gold);
    font-size: 2rem;
}

.placeholder-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px 0;
    letter-spacing: 0.3px;
}

.placeholder-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 auto 24px auto;
    max-width: 290px;
}

.btn-gold-pill {
    background: linear-gradient(180deg, #075237 0%, #033923 100%) !important;
    color: #FAF7F0 !important;
    font-weight: 700 !important;
    border: none !important;
    border-bottom: 2.5px solid #C79628 !important;
    border-radius: 50px !important;
    padding: 13px 34px !important;
    font-size: 0.92rem !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    box-shadow: 0 6px 18px rgba(6, 75, 50, 0.35) !important;
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-gold-pill:hover, .btn-gold-pill:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(199, 150, 40, 0.45) !important;
    filter: brightness(1.08);
}

.card-filigree {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 0.85rem;
    color: #8C6D23;
    margin-top: 24px;
    opacity: 0.92;
}

.card-filigree i {
    font-size: 0.75rem;
    color: var(--gold);
}

.match-card {
    display: flex;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(6, 75, 50, 0.1);
    width: 100%;
    text-align: left;
    border: 1px solid rgba(6, 75, 50, 0.05);
    position: relative;
}

.match-left {
    flex: 1.2;
    position: relative;
    background: #f8f8f8;
    min-height: 450px;
}

.match-right {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Match Carousel */
.match-carousel {
    height: 100%;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-track {
    height: 100%;
    width: 100%;
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-dot.active {
    background: var(--gold);
    transform: scale(1.3);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #064B32;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: var(--gold);
    color: var(--white);
}

.control-prev {
    left: 20px;
}

.control-next {
    right: 20px;
}

/* Match Info */
.match-info h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.detail-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 2rem;
}

.pill {
    background: var(--cream);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary);
    border: 1px solid rgba(6, 75, 50, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pill i {
    color: var(--gold);
    font-size: 0.8rem;
}

/* Match Actions */
.match-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 2rem;
}

.action-btn {
    height: 50px;
    border-radius: 50px;
    border: 1.5px solid #eee;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #555;
    padding: 0 1.5rem;
}

.btn-circle {
    width: 50px;
    padding: 0;
}

.action-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-reveal {
    background: var(--primary);
    color: var(--white);
    border: none;
    flex: 1;
}

.btn-reveal:hover {
    background: var(--primary-light);
    color: var(--white);
}

.btn-like:hover {
    color: #ff4d4d;
    border-color: #ff4d4d;
}

/* Mobile Adjustments for Match Section */
@media (max-width: 768px) {
    .matches-wrapper {
        margin: 2rem 0;
        padding: 0;
    }

    .match-card {
        flex-direction: column;
        border-radius: 15px;
    }

    .match-left {
        min-height: 280px;
        height: 280px;
    }

    .match-right {
        padding: 1.5rem;
    }

    .match-info h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .detail-pills {
        margin-bottom: 1.5rem;
        gap: 6px;
    }

    .pill {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .match-actions {
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 1.5rem;
    }

    .btn-reveal {
        order: 1;
        width: 100%;
        flex: none;
        height: 45px;
    }

    .btn-prev,
    .btn-next,
    .btn-like {
        order: 2;
        flex: 1;
        height: 45px;
    }
}

/* Responsive */
@media (max-width: 992px) {

    .stats-container,
    .steps-grid,
    .stories-wrapper,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .security-container,
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 0;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 999;
        overflow: hidden;
        transition: height 0.6s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        /* Keep flex box for alignment */
    }

    .nav-links.active {
        height: 100%;
    }

    .nav-links a {
        color: var(--white) !important;
        font-size: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered delay for curtain menu links */
    .nav-links.active a:nth-child(1) {
        transition-delay: 0.3s;
    }

    .nav-links.active a:nth-child(2) {
        transition-delay: 0.4s;
    }

    .nav-links.active a:nth-child(3) {
        transition-delay: 0.5s;
    }

    .nav-links.active a:nth-child(4) {
        transition-delay: 0.6s;
    }

    .nav-links.active a:nth-child(5) {
        transition-delay: 0.7s;
    }

    .nav-links.active a:nth-child(6) {
        transition-delay: 0.8s;
    }

    .mobile-toggle {
        display: block;
        z-index: 1000;
        position: relative;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .login-btn {
        display: none !important;
    }

    /* Fix header overlay and z-index issues */
    .header.menu-open .mobile-toggle {
        color: var(--white) !important;
    }

    .header.menu-open .logo {
        position: relative;
        z-index: 1000;
    }

    .header.menu-open .login-btn {
        position: relative;
        z-index: 1000;
        color: var(--white) !important;
        border-color: var(--white) !important;
        background: transparent !important;
    }

    .logo img {
        height: 40px !important;
    }

    .header {
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Footer Mobile Fix */
    .footer {
        padding: 60px 0 110px;
        /* Account for mobile bottom nav */
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem;
        margin-bottom: 40px;
    }

    .footer-col h4 {
        margin-bottom: 2rem;
        font-size: 1.3rem;
        letter-spacing: 3px;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
    }

    .footer-logo img {
        height: 65px;
        margin: 0 auto 1.5rem;
        filter: drop-shadow(0 0 15px rgba(199, 150, 40, 0.3));
    }

    .social-links {
        justify-content: center;
        margin-top: 2rem;
        gap: 1.5rem;
    }

    .social-links a {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.08);
    }

    .footer-col ul li a {
        font-size: 1rem;
        padding: 5px 0;
    }

    .footer-col ul li a:hover {
        transform: scale(1.05);
        color: var(--gold);
    }

    .contact-links li {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 8px;
    }

    .contact-links i {
        margin-top: 0;
        font-size: 1.3rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        padding-top: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 45px;
    }

    .login-btn {
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}


@media (max-width: 576px) {

    .stats-container,
    .steps-grid,
    .stories-wrapper,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        padding-top: 2rem;
        text-align: center;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .hero-subtitle-wrap {
        margin-bottom: 2rem;
    }
}

/* Modal System */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    padding: 0;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 101;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    padding: 0;
    line-height: 1;
}

.close-modal:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

/* Animations from admin that might be useful */
@keyframes modalFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Premium Buttons */
.btn-premium {
    background: linear-gradient(45deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white) !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 15px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(6, 75, 50, 0.2);
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(6, 75, 50, 0.3);
}

.btn-premium-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-premium-outline:hover {
    background: var(--primary);
    color: var(--white) !important;
}

/* Floating Filter Button */
.filter-floating-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(6, 75, 50, 0.4);
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--primary-light);
    box-shadow: 0 15px 40px rgba(6, 75, 50, 0.5);
}

.filter-floating-btn i {
    font-size: 1.2rem;
    color: var(--gold);
}

/* Floating Preferences Button */
.preferences-floating-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: linear-gradient(135deg, var(--gold), #c59b27);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(199, 150, 40, 0.35);
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preferences-floating-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: linear-gradient(135deg, #e5c047, var(--gold));
    box-shadow: 0 15px 40px rgba(199, 150, 40, 0.55);
    color: var(--white);
}

.preferences-floating-btn i {
    font-size: 1.2rem;
    color: var(--white);
    transition: var(--transition);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.preferences-floating-btn:hover i {
    transform: rotate(15deg);
}

/* Preference Match Highlights */
.pref-match-badge {
    background: linear-gradient(135deg, rgba(199, 150, 40, 0.05), rgba(6, 75, 50, 0.03));
    border: 1px dashed rgba(199, 150, 40, 0.6);
    border-radius: 16px;
    padding: 14px 20px;
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--dark);
    animation: modalFadeUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(199, 150, 40, 0.05);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.pref-match-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
}

.pref-match-badge .badge-icon-wrap {
    background: rgba(199, 150, 40, 0.12);
    color: var(--gold);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    border: 1px solid rgba(199, 150, 40, 0.25);
    box-shadow: 0 2px 6px rgba(199, 150, 40, 0.1);
}

.pref-match-badge .badge-content {
    flex: 1;
}

.pref-match-badge .badge-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    display: block;
    margin-bottom: 6px;
}

.pref-match-badge .badge-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #444;
}

.pref-match-badge .badge-features span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    border: 1px solid rgba(199, 150, 40, 0.15);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.pref-match-badge .badge-features i {
    color: var(--primary);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .preferences-floating-btn {
        bottom: 90px;
        left: 20px;
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

/* Filter Modal Specific Styles */
.filter-modal-content {
    max-width: 500px !important;
    max-height: 85vh !important;
    display: flex;
    flex-direction: column;
}

.filter-header {
    background: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.filter-header i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
    display: block;
}

.filter-header h3 {
    margin: 0;
    color: var(--white);
    letter-spacing: 2px;
    font-size: 1.5rem;
}

.filter-form {
    padding: 2.5rem;
    background: var(--white);
    overflow-y: auto;
}

.filter-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.filter-group {
    margin-bottom: 1.8rem;
}

@media (max-width: 576px) {
    .filter-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .filter-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .close-modal {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .filter-header h3 {
        font-size: 1.25rem;
    }
}

.filter-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #eee;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: #fdfdfd;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--gold);
    background: white;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.02);
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 15px;
}

.range-inputs input {
    flex: 1;
}

.range-inputs span {
    color: #999;
    font-weight: 500;
}

.filter-actions {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 15px;
    margin-top: 1rem;
}

.btn-full {
    width: 100%;
}

/* Horoscope Matching Styles */
.horoscope-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    background: var(--white);
    border-radius: 50px;
    display: inline-flex;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--cream);
}

.toggle-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-label i {
    color: var(--gold);
}

/* Switch Styling */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Compatibility Indicator on Card */
.compatibility-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.5s ease;
}

.badge-great {
    background: rgba(255, 77, 77, 0.9);
    color: white;
}

.badge-favorable {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

.badge-not {
    background: rgba(0, 0, 0, 0.6);
    color: white;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .filter-floating-btn {
        bottom: 90px;
        right: 20px;
        padding: 12px 25px;
        font-size: 0.9rem;
        box-shadow: 0 10px 30px rgba(6, 75, 50, 0.5);
    }

    .filter-form {
        padding: 1.5rem;
    }

    .filter-header {
        padding: 2rem 1.5rem;
    }
}

/* Verified Badge */
.verified-tick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: #1D9BF0;
    /* Verified Blue */
    margin-left: 8px;
    vertical-align: middle;
    filter: drop-shadow(0 2px 4px rgba(29, 155, 240, 0.2));
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: help;
}

.verified-tick:hover {
    transform: scale(1.2);
}

.verified-tick svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.verified-badge-inline {
    background: #1D9BF0;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 10px;
    letter-spacing: 0;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: middle;
}

/* Custom Themed Popups & Alerts */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.custom-alert-overlay.active {
    opacity: 1;
    visibility: visible;
}

.custom-alert-card {
    background: white;
    width: 90%;
    max-width: 400px;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--cream);
}

.custom-alert-overlay.active .custom-alert-card {
    transform: scale(1) translateY(0);
}

.custom-alert-icon {
    width: 70px;
    height: 70px;
    background: var(--cream);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    border: 1px solid var(--gold);
}

.custom-alert-title {
    font-family: var(--font-heading);
    color: var(--primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.custom-alert-message {
    color: #666;
    font-size: 1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.custom-alert-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.alert-btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    font-family: var(--font-body);
}

.alert-btn-primary {
    background: var(--primary);
    color: white;
}

.alert-btn-secondary {
    background: #f5f5f5;
    color: #777;
    border: 1px solid #ddd;
}

.alert-btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 75, 50, 0.3);
}

/* Matches Section Theme */
#matches {
    background-color: var(--cream);
    background-image:
        linear-gradient(rgba(250, 247, 240, 0.65), rgba(250, 247, 240, 0.65)),
        url('assets/floral_bg.png');
    background-repeat: repeat;
    background-size: 450px 450px;
    background-position: center top;
}

/* Responsive fixes for new Hero */
@media (max-width: 992px) {
    .hero-stats-floating {
        flex-wrap: wrap;
        gap: 2rem;
        padding: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .hero-stats-floating .stat-item {
        flex: 0 0 45%;
        justify-content: flex-start;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-wrapper {
        align-items: center;
        text-align: center;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 10vh;
    }

    .hero-subtitle-wrap {
        justify-content: center;
    }

    .hero-divider {
        max-width: 250px;
        width: 100%;
        margin: 0 auto 1.5rem auto;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 2rem auto;
    }

    .hero-cta .btn {
        justify-content: center;
        text-align: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-stats-floating {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1rem;
        margin-top: 2rem;
        margin-bottom: 3.5rem;
        padding: 1.5rem 1rem;
        position: relative;
        z-index: 10;
    }

    .hero-stats-floating .stat-item {
        width: 100%;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .hero-stats-floating .stat-icon-wrap {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        margin: 0;
    }

    .hero-stats-floating .stat-info h4 {
        font-size: 1.4rem;
        margin-bottom: 0px;
    }

    .hero-stats-floating .stat-info p {
        font-size: 0.8rem;
    }

    /* Premium Plans Mobile Fixes */
    .pricing-grid {
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .plan-card {
        padding: 2.5rem 1.5rem;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    .plan-card.popular,
    .plan-card.highlighted {
        transform: scale(1);
    }
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
        justify-content: space-around;
        padding: 0.8rem 0;
        z-index: 999;
        border-top: 1px solid rgba(6, 75, 50, 0.05);
    }

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        color: #777;
        font-size: 0.75rem;
        font-weight: 500;
        transition: var(--transition);
        text-decoration: none;
        flex: 1;
    }

    .mobile-bottom-nav .nav-item i {
        font-size: 1.2rem;
        margin-bottom: 2px;
    }

    .mobile-bottom-nav .nav-item.active,
    .mobile-bottom-nav .nav-item:hover {
        color: var(--primary);
    }

    body {
        padding-bottom: 70px;
    }
}

.powered-link {
    font-weight: 700;
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.powered-link:hover {
    color: var(--gold);
}

/* OTP Styles */
#otpTimer {
    font-weight: 500;
    font-size: 0.85rem;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#otpSection {
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        overflow: hidden;
    }

    to {
        opacity: 1;
        max-height: 150px;
    }
}

/* ==========================================================================
   ANDROID & CAPACITOR MOBILE APP STYLING
   ========================================================================== */

.android-app-body {
    background-color: #021810;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
}

/* Central Mobile Shell (Android Device Layout) */
.app-shell {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background-color: #042519;
    background-image: url('homeback.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: scroll;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.55);
}

@media (max-width: 600px) {
    .app-shell {
        max-width: 100%;
        box-shadow: none;
    }
}

/* Android Top App Bar */
.app-top-bar {
    height: 64px;
    background: rgba(250, 247, 240, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(199, 150, 40, 0.22);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.app-brand-lockup {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.app-brand-logo {
    height: 46px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

.app-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.app-brand-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.app-brand-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.app-top-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(199, 150, 40, 0.25);
    background: rgba(6, 75, 50, 0.06);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
}

.app-action-btn:hover, .app-action-btn:active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.05);
}

.app-login-pill, .app-profile-pill {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: var(--transition);
}

.app-login-pill {
    background: linear-gradient(180deg, #075237 0%, #033923 100%);
    color: var(--white);
    border-bottom: 2px solid var(--gold);
    box-shadow: 0 2px 8px rgba(6, 75, 50, 0.25);
}

.app-profile-pill {
    background: rgba(199, 150, 40, 0.15);
    color: var(--primary);
    border: 1px solid var(--gold);
}

/* Main Content Area */
.app-main-content {
    flex: 1;
    position: relative;
    padding-bottom: 80px; /* Space for bottom nav */
}

.app-view {
    display: none;
    animation: appViewFade 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-view.active {
    display: block;
}

@keyframes appViewFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   VIEW 1: MATCHES (SWIPE CARD STACK)
   ========================================================================== */

.swipe-view-header {
    display: none !important;
}

/* Filters and preferences are available in the app header. */
#viewHome .filter-floating-btn,
#viewHome .preferences-floating-btn {
    display: none !important;
}

.swipe-deck-wrapper {
    padding: 18px 16px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.swipe-deck-container {
    width: 100%;
    max-width: 430px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.swipe-stack {
    position: relative;
    width: 100%;
    flex: 0 0 auto;
    height: clamp(340px, calc(100svh - 245px), 640px);
    margin: 0 auto;
}

.swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 26px;
    overflow: hidden;
    background: #164d3b;
    border: 1.5px solid rgba(199, 150, 40, 0.35);
    box-shadow: 0 14px 30px rgba(0, 30, 18, 0.28);
    user-select: none;
    -webkit-user-select: none;
}

.swipe-card.background-card {
    transform: scale(0.95) translateY(12px);
    opacity: 0.75;
    pointer-events: none;
    z-index: 1;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.swipe-card.active-card {
    z-index: 2;
    touch-action: none;
    cursor: grab;
    transform: translate(0px, 0px) rotate(0deg);
}

.swipe-card.active-card:active {
    cursor: grabbing;
}

/* Swipe Photo & Carousel */
.swipe-photo-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.swipe-photo-track {
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.swipe-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
    pointer-events: none;
}

.swipe-photo-bars {
    position: absolute;
    top: 12px;
    left: 14px;
    right: 14px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.photo-bar {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.25s ease;
}

.photo-bar.active {
    background: var(--white);
}

.swipe-tap-left, .swipe-tap-right {
    position: absolute;
    top: 0;
    bottom: 120px;
    width: 35%;
    z-index: 4;
}
.swipe-tap-left { left: 0; }
.swipe-tap-right { right: 0; }

.swipe-card-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(3, 25, 17, 0.95) 0%, rgba(3, 25, 17, 0.6) 45%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

/* Swipe Stamps */
.stamp-badge {
    position: absolute;
    top: 36px;
    padding: 6px 18px;
    border-radius: 10px;
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.1s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stamp-like {
    right: 24px;
    border: 3.5px solid #2ecc71;
    color: #2ecc71;
    transform: rotate(14deg);
    background: rgba(46, 204, 113, 0.15);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.25);
}

.stamp-nope {
    left: 24px;
    border: 3.5px solid var(--accent);
    color: var(--accent);
    transform: rotate(-14deg);
    background: rgba(170, 29, 77, 0.15);
    box-shadow: 0 4px 15px rgba(170, 29, 77, 0.25);
}

/* Card Content Overlay */
.swipe-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: var(--white);
    z-index: 3;
    pointer-events: none;
}

.swipe-card-header {
    margin-bottom: 8px;
}

.swipe-card-name {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.5px;
    margin: 0;
    display: block;
    overflow-wrap: anywhere;
    line-height: 1.18;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.swipe-card-age {
    font-weight: 400;
    opacity: 0.9;
    font-size: 1.4rem;
}

.swipe-card-loc {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    margin: 4px 0 0;
}

.swipe-card-loc i {
    color: var(--gold);
    margin-right: 4px;
}

.swipe-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.swipe-tag {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.swipe-tag i {
    color: var(--gold-light);
    font-size: 0.75rem;
}

.swipe-pref-pill {
    margin-top: 10px;
    background: rgba(199, 150, 40, 0.2);
    border: 1px solid var(--gold);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Action Controls Under the Card */
.swipe-action-dock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 0;
    padding: 12px;
    width: 100%;
    border-radius: 24px;
    background: rgba(250, 247, 240, 0.96);
    border: 1px solid rgba(199, 150, 40, 0.22);
    box-shadow: 0 8px 24px rgba(0, 30, 18, 0.12);
}

.swipe-action-dock .dock-btn {
    width: 100%;
    height: 62px;
    padding: 8px 4px;
    border-radius: 16px;
    flex-direction: column;
    gap: 6px;
    box-shadow: none;
}

.swipe-action-dock .dock-btn span { font: 600 0.7rem var(--font-body); }
.swipe-action-dock .dock-btn i { font-size: 1.25rem; }
.swipe-action-dock .dock-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.swipe-action-dock .dock-btn:disabled { opacity: 0.55; cursor: default; }
.swipe-hint { margin: 14px 0 0; font-size: 0.75rem; color: var(--primary); text-align: center; }
.swipe-card-name .verified-tick { display: inline-flex; vertical-align: middle; margin-left: 6px; }
.swipe-card-img.photo-unavailable { object-fit: cover; }

@media (max-width: 360px) {
    .swipe-deck-wrapper { padding: 14px 12px 20px; }
    .swipe-action-dock { padding: 10px; gap: 6px; }
    .swipe-card-content { padding: 18px; }
    .swipe-card-name { font-size: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
    .swipe-card, .swipe-photo-track, .swipe-action-dock .dock-btn { transition-duration: 0.01ms !important; }
}

.dock-btn {
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.dock-btn:active {
    transform: scale(0.92);
}

.dock-btn-nope {
    width: 58px;
    height: 58px;
    background: var(--white);
    color: var(--accent);
    font-size: 1.4rem;
    border: 1px solid rgba(170, 29, 77, 0.15);
}

.dock-btn-nope:hover {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(170, 29, 77, 0.35);
}

.dock-btn-info {
    width: 46px;
    height: 46px;
    background: var(--white);
    color: var(--gold);
    font-size: 1.15rem;
    border: 1px solid rgba(199, 150, 40, 0.2);
}

.dock-btn-info:hover {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(199, 150, 40, 0.35);
}

.dock-btn-like {
    width: 58px;
    height: 58px;
    background: var(--white);
    color: var(--primary);
    font-size: 1.5rem;
    border: 1px solid rgba(6, 75, 50, 0.15);
}

.dock-btn-like:hover {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(6, 75, 50, 0.35);
}

.dock-btn-reveal {
    border-radius: 50px;
    padding: 0 18px;
    height: 46px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(199, 150, 40, 0.3);
}

.dock-btn-reveal:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(199, 150, 40, 0.45);
}

/* ==========================================================================
   VIEW 2: SUBSCRIPTION & PLANS
   ========================================================================== */

.plans-view-container {
    padding: 20px 16px;
}

.plans-header {
    background: rgba(250, 247, 240, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;
    padding: 22px 18px;
    margin-bottom: 20px;
    border: 1px solid rgba(199, 150, 40, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.user-plan-status-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 20px rgba(6, 75, 50, 0.2);
}

.status-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-plan-name {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}

.status-reveals {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
}

.plans-app-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.plans-trust-strip {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 24px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--primary);
    font-weight: 700;
    background: rgba(250, 247, 240, 0.92);
    padding: 12px 16px;
    border-radius: 50px;
    border: 1px solid rgba(199, 150, 40, 0.25);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.trust-badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   VIEW 3: PROFILE HUB
   ========================================================================== */

.profile-view-container {
    padding: 16px;
}

.app-profile-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(6, 75, 50, 0.08);
    border: 1px solid rgba(6, 75, 50, 0.06);
    margin-bottom: 18px;
    text-align: center;
    position: relative;
    padding-bottom: 20px;
}

.app-profile-cover {
    height: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.app-profile-avatar-wrap {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid var(--white);
    margin: -45px auto 10px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    background: #fff;
}

.app-profile-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-profile-details h3 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--primary);
}

.app-profile-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.app-chip {
    background: var(--cream);
    border: 1px solid rgba(199, 150, 40, 0.3);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.app-menu-group {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(6, 75, 50, 0.05);
    border: 1px solid rgba(6, 75, 50, 0.06);
    margin-bottom: 14px;
}

.app-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    text-decoration: none;
    background: transparent;
    border: none;
    border-bottom: 1px solid #f3ede2;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: var(--transition);
}

.app-menu-item:last-child {
    border-bottom: none;
}

.app-menu-item:hover, .app-menu-item:active {
    background: rgba(6, 75, 50, 0.02);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.menu-item-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dark);
}

.menu-item-sub {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

.menu-item-arrow {
    color: #bbb;
    font-size: 0.85rem;
}

/* ==========================================================================
   ANDROID BOTTOM NAVIGATION BAR
   ========================================================================== */

.app-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 68px;
    background: rgba(250, 247, 240, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(199, 150, 40, 0.22);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

.customer-support-fab {
    position: fixed;
    right: max(18px, calc((100vw - 480px) / 2 + 18px));
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
    z-index: 1100;
    min-width: 54px;
    height: 54px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 27px;
    color: var(--white);
    background: linear-gradient(135deg, var(--accent), #84113a);
    border: 2px solid rgba(243, 201, 78, 0.9);
    box-shadow: 0 8px 22px rgba(170, 29, 77, 0.42);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.2px;
}

.customer-support-fab:hover,
.customer-support-fab:focus-visible {
    color: var(--white);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 11px 26px rgba(170, 29, 77, 0.52);
}

.customer-support-fab i { font-size: 1.18rem; }
.customer-support-fab span { font-size: 0.78rem; }

.app-nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #888;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    transition: var(--transition);
    padding: 6px 0;
}

.nav-tab-indicator {
    width: 44px;
    height: 28px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    background: #AA1D4D; /* Rose of Love */
    color: #FFFFFF;
    font-size: 0.68rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    line-height: 15px;
    border-radius: 10px;
    padding: 0 4px;
    text-align: center;
    border: 1.5px solid #FAF7F0;
    box-shadow: 0 2px 8px rgba(170, 29, 77, 0.45);
    animation: badgePulse 2.5s infinite ease-in-out;
    box-sizing: border-box;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.app-nav-tab.active {
    color: var(--primary);
    font-weight: 700;
}

.app-nav-tab.active .nav-tab-indicator {
    background: rgba(6, 75, 50, 0.12);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Legal pages use the same Android shell, colours and bottom navigation as the app. */
.legal-app { background: #021810; }
.legal-shell { background: var(--cream); min-height: 100dvh; }
.legal-top-bar { padding-top: env(safe-area-inset-top, 0px); height: calc(64px + env(safe-area-inset-top, 0px)); justify-content: flex-start; gap: 10px; }
.legal-top-bar .app-brand-logo { height: 42px; }
.legal-top-bar .app-brand-name { font-size: 1.15rem; }
.legal-header-space, .legal-back { width: 40px; flex: 0 0 40px; }
.legal-back { height: 40px; border: 0; border-radius: 20px; background: rgba(6, 75, 50, .09); color: var(--primary); font-size: 1rem; cursor: pointer; }
.legal-content { padding: 22px 16px calc(94px + env(safe-area-inset-bottom, 0px)); }
.legal-hero { padding: 14px 8px 25px; text-align: center; }
.legal-hero-icon { width: 56px; height: 56px; margin: 0 auto 13px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: var(--gold-light); box-shadow: 0 10px 20px rgba(6, 75, 50, .22); font-size: 1.45rem; }
.legal-eyebrow { margin: 0 0 4px; color: var(--gold); font-size: .66rem; font-weight: 800; letter-spacing: 1.45px; }
.legal-hero h1 { margin: 0; color: var(--primary); font-size: clamp(2rem, 8vw, 2.45rem); line-height: 1.05; }
.legal-hero > p:last-child { margin: 10px auto 0; max-width: 340px; color: #5d675f; font-size: .92rem; line-height: 1.5; }
.legal-updated { display: flex; align-items: center; justify-content: center; gap: 7px; color: #69736b; font-size: .75rem; margin: 0 0 15px; }
.legal-updated i { color: var(--gold); }
.legal-card { overflow: hidden; border: 1px solid rgba(6, 75, 50, .1); border-radius: 20px; background: var(--white); box-shadow: 0 8px 26px rgba(18, 50, 37, .08); }
.legal-section { display: grid; grid-template-columns: 31px 1fr; gap: 12px; padding: 20px 17px; border-bottom: 1px solid rgba(6, 75, 50, .09); }
.legal-section:last-child { border-bottom: 0; }
.legal-section-number { width: 29px; height: 29px; border-radius: 9px; display: grid; place-items: center; background: rgba(199, 150, 40, .15); color: #98700c; font-size: .67rem; font-weight: 900; }
.legal-section h2 { margin: 1px 0 7px; color: var(--primary); font-size: 1.2rem; line-height: 1.1; }
.legal-section p { margin: 0; color: #5b625c; font-size: .87rem; line-height: 1.65; }
.legal-section p a { color: var(--primary); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.legal-support { display: flex; align-items: center; gap: 12px; padding: 15px; margin-top: 18px; border-radius: 16px; background: rgba(6, 75, 50, .08); }
.legal-support > span { width: 37px; height: 37px; border-radius: 12px; display: grid; place-items: center; background: var(--primary); color: var(--gold-light); }
.legal-support div { flex: 1; }
.legal-support strong { display: block; color: var(--primary); font-size: .87rem; }
.legal-support p { margin: 1px 0 0; color: #657067; font-size: .75rem; }
.legal-support a { color: var(--gold); padding: 8px; }
.legal-bottom-nav { padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (min-width: 601px) { .legal-content { max-width: 560px; margin: 0 auto; } }

/* ==========================================================================
   POPUP MODALS (How It Works & Our Calling)
   ========================================================================== */

.how-it-works-modal-content, .our-calling-modal-content {
    max-width: 440px !important;
    border-radius: 24px !important;
    padding: 28px 22px !important;
}

.how-it-works-steps-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.hiw-step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px;
    background: var(--cream);
    border-radius: 14px;
    border: 1px solid rgba(6, 75, 50, 0.06);
}

.hiw-step-num {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hiw-step-body h4 {
    margin: 0 0 3px;
    font-size: 1rem;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.hiw-step-body p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.calling-pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.pillar-box {
    background: var(--cream);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(199, 150, 40, 0.2);
}

/* ==========================================================================
   APP AUTH STARTUP SPLASH GATE
   ========================================================================== */
.app-auth-splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f7f0dc;
    background-image: radial-gradient(ellipse at center, #fffbef 0%, #efe3c2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    overflow: hidden;
}

body.splash-active {
    overflow: hidden;
}

body.splash-active > :not(.app-auth-splash) {
    /* Prevent keyboard interaction with controls behind the splash. */
    visibility: hidden;
}

.app-auth-splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 88%, transparent);
}

/* Keep the portrait artwork intact on tablets and wide desktop screens. */
@media (min-aspect-ratio: 3/4) {
    .splash-video {
        width: auto;
        height: 100%;
        max-width: 100%;
        object-fit: contain;
        -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
        mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    }
}

.splash-loading {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 72px 24px calc(36px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to bottom, rgba(247, 240, 220, 0), rgba(247, 240, 220, 0.94) 56%, #f7f0dc);
    text-align: center;
}

.splash-loading-title {
    margin: 0;
    color: #204a37;
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 4.6vw, 1.65rem);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.02em;
}

.splash-progress {
    width: 112px;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(32, 74, 55, 0.12);
}

.splash-progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #204a37, #be963d);
    transform: scaleX(0);
    transform-origin: left;
}

.splash-active .splash-progress span {
    animation: splashProgress 8s linear forwards;
}

.splash-loading-label {
    color: #53624c;
    font-family: var(--font-body);
    font-size: 0.625rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0;
}

@media (max-height: 500px) {
    .splash-loading {
        gap: 10px;
        padding-top: 36px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .splash-active .splash-progress span { animation: none; transform: scaleX(1); }
    .app-auth-splash { transition: none; }
}

@keyframes splashProgress {
    to { transform: scaleX(1); }
}

/* ==========================================================================
   VIEW: CHATS & REALTIME CONVERSATIONS (REVEALED PROFILES)
   ========================================================================== */

.chat-view-container {
    padding: 16px 14px 24px;
    height: calc(100svh - 132px);
    min-height: 360px;
    display: flex;
    flex-direction: column;
}

.chat-subview {
    display: none;
    flex-direction: column;
    animation: appViewFade 0.25s ease-out;
    min-height: 0;
    flex: 1;
}

#chatListView { overflow-y: auto; }
#chatActiveRoomView { height: 100%; }
.chat-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 12px 4px; color: #fff; }
.chat-section-heading h2 { margin: 0; font-size: 1.05rem; color: #fff; }
.chat-section-heading span { font-size: .72rem; color: rgba(255,255,255,.8); }
.chat-suggestions-list { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; }
.chat-suggestion { flex: 0 0 86px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border: 1px solid rgba(199,150,40,.35); border-radius: 16px; background: #faf7f0; color: var(--primary); cursor: pointer; font-weight: 600; }
.chat-suggestion img { width: 52px; height: 52px; object-fit: cover; border: 2px solid var(--gold); border-radius: 50%; }
.chat-suggestion span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-suggestion:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.chat-list-notice { margin: 0; padding: 12px 14px; border-radius: 12px; background: rgba(4,37,25,.84); color: #fff; font-size: .85rem; }

.chat-subview.active {
    display: flex;
}

.chat-list-header {
    display: none !important;
}

.chat-search-bar {
    position: relative;
    margin-bottom: 12px;
}

.chat-search-bar i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 0.95rem;
    pointer-events: none;
}

.chat-search-bar input {
    width: 100%;
    height: 44px;
    background: rgba(250, 247, 240, 0.95);
    border: 1px solid rgba(199, 150, 40, 0.3);
    border-radius: 50px;
    padding: 0 18px 0 42px;
    font-size: 0.9rem;
    outline: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    font-family: inherit;
    color: #111;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.chat-search-bar input:focus {
    border-color: var(--gold);
    box-shadow: 0 6px 18px rgba(199, 150, 40, 0.25);
}

.chat-faith-banner {
    background: rgba(4, 37, 25, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FAF7F0;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 0.76rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    border: 1px solid rgba(199, 150, 40, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chat-conversations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-conversation-item {
    background: rgba(250, 247, 240, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(199, 150, 40, 0.25);
    border-radius: 18px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.chat-conversation-item:hover, .chat-conversation-item:active {
    transform: translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.chat-conversation-item.has-unread {
    border-color: rgba(170, 29, 77, 0.4);
    background: #FFFFFF;
}

.chat-item-avatar-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.chat-item-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #FAF7F0;
}

.chat-status-dot.online {
    background: #2ecc71;
}

.chat-item-content {
    flex: 1;
    min-width: 0;
}

.chat-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3px;
}

.chat-item-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-item-time {
    font-size: 0.72rem;
    color: #888;
    font-weight: 600;
    flex-shrink: 0;
    margin-left: 8px;
}

.chat-item-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-item-snippet {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    flex: 1;
}

.chat-item-snippet.unread-bold {
    font-weight: 700;
    color: #111;
}

.chat-item-unread-badge {
    background: #AA1D4D;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 10px;
    padding: 0 6px;
    text-align: center;
    margin-left: 8px;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(170, 29, 77, 0.4);
    box-sizing: border-box;
}

/* Screen 2: Active Chat Room */
.chat-room-header {
    background: rgba(250, 247, 240, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 20px;
    border: 1px solid rgba(199, 150, 40, 0.25);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 68px;
    z-index: 10;
}

.chat-back-btn, .chat-profile-shortcut-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(199, 150, 40, 0.3);
    background: rgba(6, 75, 50, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-back-btn:hover, .chat-profile-shortcut-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.chat-header-user {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    min-width: 0;
    padding: 0;
    text-align: left;
    border: 0;
    background: transparent;
}

.chat-avatar-wrap {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    overflow: hidden;
    flex-shrink: 0;
}

.chat-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-header-info {
    min-width: 0;
}

.chat-header-info h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-header-info span {
    font-size: 0.72rem;
    color: #666;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

.chat-messages-container {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 10px 4px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.chat-messages-container::-webkit-scrollbar {
    width: 5px;
}
.chat-messages-container::-webkit-scrollbar-thumb {
    background: rgba(199, 150, 40, 0.4);
    border-radius: 4px;
}

.chat-system-bubble {
    align-self: center;
    background: rgba(4, 37, 25, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(199, 150, 40, 0.35);
    border-radius: 16px;
    padding: 8px 14px;
    font-size: 0.78rem;
    color: #FAF7F0;
    text-align: center;
    max-width: 86%;
    margin: 6px auto;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.chat-bubble {
    position: relative;
    padding: 10px 14px;
    max-width: 78%;
    word-break: break-word;
    animation: messageIn 0.2s ease-out;
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-bubble-outgoing {
    align-self: flex-end;
    background: linear-gradient(135deg, #075237 0%, #033923 100%);
    color: #FAF7F0;
    border-radius: 18px 18px 4px 18px;
    box-shadow: 0 4px 14px rgba(6, 75, 50, 0.25);
    border: 1px solid rgba(199, 150, 40, 0.3);
}

.chat-bubble-incoming {
    align-self: flex-start;
    background: rgba(250, 247, 240, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #111;
    border-radius: 18px 18px 18px 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(199, 150, 40, 0.25);
}

.chat-bubble-text {
    font-size: 0.92rem;
    line-height: 1.45;
}

.chat-bubble-meta {
    font-size: 0.68rem;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-bubble-outgoing .chat-bubble-meta {
    color: rgba(250, 247, 240, 0.7);
    justify-content: flex-end;
}

.chat-bubble-incoming .chat-bubble-meta {
    color: #888;
    justify-content: flex-start;
}

.chat-bubble-meta .read-tick {
    color: var(--gold);
}

.chat-input-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(250, 247, 240, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50px;
    border: 1.5px solid rgba(199, 150, 40, 0.35);
    padding: 6px 8px 6px 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin-top: 8px;
}

.chat-input-bar input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    color: #111;
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(180deg, #075237 0%, #033923 100%);
    color: #C79628;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(6, 75, 50, 0.3);
    border-bottom: 2px solid #C79628;
    flex-shrink: 0;
}

.chat-send-btn:hover, .chat-send-btn:active {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.dock-btn-chat {
    background: linear-gradient(180deg, #075237 0%, #033923 100%) !important;
    border-color: #C79628 !important;
    color: #FAF7F0 !important;
}
.dock-btn-chat i {
    color: #C79628;
}
