@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Playfair+Display:wght@400;700;800;900&display=swap');

:root {
    --primary: #7c3aed;
    --primary-light: #ede9fe;
    --primary-mid: #a78bfa;
    --accent: #06b6d4;
    --accent-light: #cffafe;
    --gradient-purple: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    --gradient-hero: linear-gradient(160deg, #faf5ff 0%, #ede9fe 40%, #e0f2fe 100%);
    --font-body: 'DM Sans', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --text-muted: #6b7280;
    --border-color: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background: #fff;
    color: #1a1a2e;
    overflow-x: hidden !important;
}

::-webkit-scrollbar {
    width: 5px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #843fef;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a354f6;
}

/* ── Typography ── */
.font-playfair {
    font-family: var(--font-heading);
}

.text-gradient {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ── Gradients & Backgrounds ── */
.bg-gradient-purple {
    background: var(--gradient-purple) !important;
}

.bg-gradient-blue {
    background: var(--gradient-blue) !important;
}

.bg-gradient-hero {
    background: var(--gradient-hero);
}

/* ── Glass Card ── */
.glass-strong {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
}

section {
    position: relative;
    isolation: isolate;
    border-top: 1px solid rgba(124, 58, 237, 0.05);
}

section>.container,
section>.container-fluid {
    position: relative;
    z-index: 1;
}

section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

body>section:nth-of-type(odd):not(.hero-section):not(.cta-section)::before {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.03) 0%, rgba(255, 255, 255, 0) 42%);
}

body>section:nth-of-type(even):not(.hero-section):not(.cta-section)::before {
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.03) 0%, rgba(255, 255, 255, 0) 42%);
}

/* ══════════════════════════════════
       NAVBAR
    ══════════════════════════════════ */
.navbar-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 20px rgba(124, 58, 237, 0.06);
    transition: all 0.4s ease;
}

.navbar-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-brand-icon i {
    color: #fff;
    font-size: 16px;
}

.brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a1a2e;
}

.nav-link-custom {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a2e !important;
    transition: color 0.2s;
}

.nav-link-custom:hover {
    color: var(--primary) !important;
}

.btn-nav-login {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a2e;
    background: transparent;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.btn-nav-login:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-nav-signup {
    background: var(--gradient-purple);
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.45rem 1.4rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
    transition: opacity 0.2s;
    text-decoration: none;
}

.btn-nav-signup:hover {
    opacity: 0.9;
    color: #fff;
}

/* ══════════════════════════════════
       HERO
    ══════════════════════════════════ */
.hero-section {
    padding: 80px 0 80px 0;
    position: relative;
    overflow: hidden;
    background: var(--gradient-hero);
}

.hero-blob-1 {
    position: absolute;
    top: -120px;
    right: -120px;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.07);
    filter: blur(60px);
    pointer-events: none;
}

.hero-blob-2 {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.06);
    filter: blur(60px);
    pointer-events: none;
}

.badge-trusted {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.25);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.1;
    color: #1a1a2e;
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
}

.btn-hero-cta {
    background: var(--gradient-purple);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-hero-cta:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    color: #fff;
}

/* @media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
    }
} */

/* @media (max-width: 991px) {
    .hero-section {
        padding-top: 150px !important;
    }
} */

@media (max-width: 575px) {
    .btn-hero-cta {
        display: flex;
        justify-content: center;
        text-align: center;
        width: 100% !important;
    }

    .hero-section {
        display: flex;
        align-items: center;
        padding-top: 50px !important;
        padding-bottom: 30px !important;
    }

    .tree-label {
        transform: scale(.7);
        margin-top: -15px;
    }
}

/* Avatar group */
.avatar-group {
    display: flex;
}

.avatar-group .av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-purple);
    border: 2px solid #fff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: -10px;
}

.avatar-group .av img,
.tree-avatar img,
.post-avatar img,
.t-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.stars {
    color: #facc15;
    font-size: 0.85rem;
}

.review-text {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Hero image card */
.hero-img-wrap {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(124, 58, 237, 0.2);
}

.hero-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

/* Floating stat cards */
.float-card {
    position: absolute;
    padding: 10px 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 170px;
}

.float-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.float-card p {
    margin: 0;
    line-height: 1.3;
}

.float-card .fc-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1a1a2e;
}

.float-card .fc-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.fc-members {
    left: -30px;
    top: 8%;
}

.fc-photos {
    right: -20px;
    top: 33%;
}

.fc-voice {
    left: -10px;
    bottom: 12%;
}

/* ══════════════════════════════════
       SECTION HELPERS
    ══════════════════════════════════ */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a2e;
}

.section-lead {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
}

/* ══════════════════════════════════
       FAMILY TREE SECTION
    ══════════════════════════════════ */
#tree {
    background: #fff;
}

.tree-bg-blob {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(124, 58, 237, 0.03), transparent);
    pointer-events: none;
}

.tree-canvas {
    position: relative;
    width: 100%;
    height: 420px;
}

.tree-canvas svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tree-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
}

.tree-avatar {
    top: -20px;
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

.tree-label {
    margin-top: 0;
    padding: 5px 12px;
    border-radius: 6px;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
}

.tree-label .tl-name {
    font-size: 0.72rem;
    font-weight: 600;
    color: #1a1a2e;
    white-space: nowrap;
    margin-bottom: 3px;
}

.tree-label .tl-role {
    margin-bottom: 0;
    font-size: 0.62rem;
    color: var(--text-muted);
}

.tree-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-align: center;
}

/* ══════════════════════════════════
       MEMORY SECTION
    ══════════════════════════════════ */
.memory-section {
    background: linear-gradient(to bottom, #fff, #f9f5ff, #fff);
}

.memory-img-wrap {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.12);
}

.recording-card {
    position: absolute;
    bottom: -24px;
    right: -24px;
    padding: 14px 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
}

.rec-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rec-icon i {
    color: #fff;
    font-size: 18px;
}

.wave-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 20px;
}

.wave-bars span {
    display: block;
    width: 3px;
    border-radius: 2px;
    background: var(--primary);
    animation: waveAnim 0.8s ease-in-out infinite alternate;
}

.wave-bars span:nth-child(1) {
    height: 40%;
    animation-delay: 0.0s;
}

.wave-bars span:nth-child(2) {
    height: 60%;
    animation-delay: 0.1s;
}

.wave-bars span:nth-child(3) {
    height: 90%;
    animation-delay: 0.2s;
}

.wave-bars span:nth-child(4) {
    height: 100%;
    animation-delay: 0.3s;
}

.wave-bars span:nth-child(5) {
    height: 85%;
    animation-delay: 0.15s;
}

.wave-bars span:nth-child(6) {
    height: 55%;
    animation-delay: 0.25s;
}

.wave-bars span:nth-child(7) {
    height: 70%;
    animation-delay: 0.05s;
}

.wave-bars span:nth-child(8) {
    height: 65%;
    animation-delay: 0.35s;
}

.wave-bars span:nth-child(9) {
    height: 90%;
    animation-delay: 0.4s;
}

.wave-bars span:nth-child(10) {
    height: 80%;
    animation-delay: 0.12s;
}

.wave-bars span:nth-child(11) {
    height: 50%;
    animation-delay: 0.22s;
}

.wave-bars span:nth-child(12) {
    height: 45%;
    animation-delay: 0.32s;
}

@keyframes waveAnim {
    from {
        transform: scaleY(0.4);
    }

    to {
        transform: scaleY(1);
    }
}

.memory-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    transition: all 0.25s;
    cursor: default;
}

.memory-feature-item:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08);
}

.mf-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.mf-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.mf-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}

/* ══════════════════════════════════
       AI PHOTO SECTION
    ══════════════════════════════════ */
#ai-photos {
    background: linear-gradient(to bottom, #fff, rgba(124, 58, 237, 0.03), #fff);
}

.badge-ai {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 1rem;
}

.ai-feature-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.25s;
}

.ai-feature-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.08);
}

.ai-feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ai-feat-icon i {
    color: #fff;
    font-size: 18px;
}

.ai-feat-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px;
}

.ai-feat-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ══════════════════════════════════
       AI PHOTO RESTORATION SLIDER
    ══════════════════════════════════ */
.compare-card {
    position: relative;
    border-radius: 28px;
    padding: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 24px 60px rgba(124, 58, 237, 0.12);
    overflow: hidden;
}

.compare-frame {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    min-height: 430px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.05), #f8fafc);
}

.loader-container {
    position: relative;
    min-height: 430px;
    width: 100%;
    overflow: hidden;
}

.loader {
    border: 5px solid rgba(124, 58, 237, 0.12);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    width: 54px;
    height: 54px;
    animation: spin 1.1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 60;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.before_after {
    min-height: 430px;
    width: 100%;
}

.before_after img {
    display: none;
}

.twentytwenty-horizontal .twentytwenty-handle:before,
.twentytwenty-horizontal .twentytwenty-handle:after,
.twentytwenty-vertical .twentytwenty-handle:before,
.twentytwenty-vertical .twentytwenty-handle:after {
    content: " ";
    display: block;
    background: var(--primary);
    position: absolute;
    z-index: 30;
    -webkit-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.35);
    -moz-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.35);
    box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.35);
}

.twentytwenty-horizontal .twentytwenty-handle:before,
.twentytwenty-horizontal .twentytwenty-handle:after {
    width: 3px;
    height: 9999px;
    left: 50%;
    margin-left: -1.5px;
}

.twentytwenty-vertical .twentytwenty-handle:before,
.twentytwenty-vertical .twentytwenty-handle:after {
    width: 9999px;
    height: 3px;
    top: 50%;
    margin-top: -1.5px;
}

.twentytwenty-before-label,
.twentytwenty-after-label,
.twentytwenty-overlay {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
}

.twentytwenty-before-label,
.twentytwenty-after-label,
.twentytwenty-overlay {
    -webkit-transition-duration: 0.5s;
    -moz-transition-duration: 0.5s;
    transition-duration: 0.5s;
}

.twentytwenty-before-label,
.twentytwenty-after-label {
    -webkit-transition-property: opacity;
    -moz-transition-property: opacity;
    transition-property: opacity;
}

.twentytwenty-before-label:before,
.twentytwenty-after-label:before {
    color: white;
    font-size: 13px;
    letter-spacing: 0.1em;
}

.twentytwenty-before-label:before,
.twentytwenty-after-label:before {
    position: absolute;
    background: rgba(17, 24, 39, 0.38);
    line-height: 38px;
    padding: 0 20px;
    -webkit-border-radius: 999px;
    -moz-border-radius: 999px;
    border-radius: 999px;
}

.twentytwenty-horizontal .twentytwenty-before-label:before,
.twentytwenty-horizontal .twentytwenty-after-label:before {
    top: 50%;
    margin-top: -19px;
}

.twentytwenty-vertical .twentytwenty-before-label:before,
.twentytwenty-vertical .twentytwenty-after-label:before {
    left: 50%;
    margin-left: -45px;
    text-align: center;
    width: 90px;
}

.twentytwenty-left-arrow,
.twentytwenty-right-arrow,
.twentytwenty-up-arrow,
.twentytwenty-down-arrow {
    width: 0;
    height: 0;
    border: 6px inset transparent;
    position: absolute;
}

.twentytwenty-left-arrow,
.twentytwenty-right-arrow {
    top: 50%;
    margin-top: -6px;
}

.twentytwenty-up-arrow,
.twentytwenty-down-arrow {
    left: 50%;
    margin-left: -6px;
}

.twentytwenty-container {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    z-index: 0;
    overflow: hidden;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.twentytwenty-container img {
    max-width: 100%;
    position: absolute;
    top: 0;
    display: block;
}

.twentytwenty-container.active .twentytwenty-overlay,
.twentytwenty-container.active :hover.twentytwenty-overlay {
    background: rgba(0, 0, 0, 0);
}

.twentytwenty-container.active .twentytwenty-overlay .twentytwenty-before-label,
.twentytwenty-container.active .twentytwenty-overlay .twentytwenty-after-label,
.twentytwenty-container.active :hover.twentytwenty-overlay .twentytwenty-before-label,
.twentytwenty-container.active :hover.twentytwenty-overlay .twentytwenty-after-label {
    opacity: 0;
}

.twentytwenty-container * {
    -webkit-box-sizing: content-box;
    -moz-box-sizing: content-box;
    box-sizing: content-box;
}

.twentytwenty-before-label {
    opacity: 0;
}

.twentytwenty-before-label:before {
    content: "Before";
}

.twentytwenty-after-label {
    opacity: 0;
}

.twentytwenty-after-label:before {
    content: "After";
}

.twentytwenty-horizontal .twentytwenty-before-label:before {
    left: 10px;
}

.twentytwenty-horizontal .twentytwenty-after-label:before {
    right: 10px;
}

.twentytwenty-vertical .twentytwenty-before-label:before {
    top: 10px;
}

.twentytwenty-vertical .twentytwenty-after-label:before {
    bottom: 10px;
}

.twentytwenty-overlay {
    -webkit-transition-property: background;
    -moz-transition-property: background;
    transition-property: background;
    background: rgba(0, 0, 0, 0);
    z-index: 25;
}

.twentytwenty-overlay:hover {
    background: rgba(0, 0, 0, 0.4);
}

.twentytwenty-overlay:hover .twentytwenty-after-label {
    opacity: 1;
}

.twentytwenty-overlay:hover .twentytwenty-before-label {
    opacity: 1;
}

.twentytwenty-before {
    z-index: 20;
}

.twentytwenty-after {
    z-index: 10;
}

.twentytwenty-handle {
    height: 38px;
    width: 38px;
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -22px;
    margin-top: -22px;
    border: 3px solid var(--primary);
    -webkit-border-radius: 1000px;
    -moz-border-radius: 1000px;
    border-radius: 1000px;
    -webkit-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.35);
    -moz-box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.35);
    box-shadow: 0px 0px 12px rgba(51, 51, 51, 0.35);
    z-index: 40;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
}

.twentytwenty-horizontal .twentytwenty-handle:before {
    bottom: 50%;
    margin-bottom: 22px;
    -webkit-box-shadow: 0 3px 0 var(--primary), 0px 0px 12px rgba(51, 51, 51, 0.35);
    -moz-box-shadow: 0 3px 0 var(--primary), 0px 0px 12px rgba(51, 51, 51, 0.35);
    box-shadow: 0 3px 0 var(--primary), 0px 0px 12px rgba(51, 51, 51, 0.35);
}

.twentytwenty-horizontal .twentytwenty-handle:after {
    top: 50%;
    margin-top: 22px;
    -webkit-box-shadow: 0 -3px 0 var(--primary), 0px 0px 12px rgba(51, 51, 51, 0.35);
    -moz-box-shadow: 0 -3px 0 var(--primary), 0px 0px 12px rgba(51, 51, 51, 0.35);
    box-shadow: 0 -3px 0 var(--primary), 0px 0px 12px rgba(51, 51, 51, 0.35);
}

.twentytwenty-vertical .twentytwenty-handle:before {
    left: 50%;
    margin-left: 22px;
    -webkit-box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.35);
    -moz-box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.35);
    box-shadow: 3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.35);
}

.twentytwenty-vertical .twentytwenty-handle:after {
    right: 50%;
    margin-right: 22px;
    -webkit-box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.35);
    -moz-box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.35);
    box-shadow: -3px 0 0 white, 0px 0px 12px rgba(51, 51, 51, 0.35);
}

.twentytwenty-left-arrow {
    border-right: 6px solid var(--primary);
    left: 50%;
    margin-left: -17px;
}

.twentytwenty-right-arrow {
    border-left: 6px solid var(--primary);
    right: 50%;
    margin-right: -17px;
}

.twentytwenty-up-arrow {
    border-bottom: 6px solid var(--primary);
    top: 50%;
    margin-top: -17px;
}

.twentytwenty-down-arrow {
    border-top: 6px solid var(--primary);
    bottom: 50%;
    margin-bottom: -17px;
}

@media (max-width: 575.98px) {
    .compare-card {
        padding: 10px;
        border-radius: 22px;
    }

    .compare-frame,
    .loader-container,
    .before_after {
        min-height: 300px;
    }
}

/* ══════════════════════════════════
       SOCIAL / PRIVATE NETWORK SECTION
    ══════════════════════════════════ */
.social-section {
    background: linear-gradient(to bottom, #fff, #f9f5ff, #fff);
}

.social-post-card {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.12);
    max-width: 420px;
    margin: 0 auto 3rem;
}

.post-header {
    padding: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient-purple);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.post-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
}

.post-body {
    padding: 14px 18px;
    font-size: 0.875rem;
    line-height: 1.65;
}

.post-media {
    height: 180px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.05), #fdf4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
}

.post-media span {
    font-size: 3rem;
}

.post-media p {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0;
}

.post-actions {
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.post-action-btn {
    background: none;
    border: none;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: color 0.2s;
    padding: 0;
}

.post-action-btn:hover {
    color: var(--primary);
}

.post-loved {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.feature-icon-card {
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 16px;
    padding: 24px;
    background: #fff;
    transition: all 0.25s;
    height: 100%;
}

.feature-icon-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.08);
}

.fi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.fi-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px;
}

.fi-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ══════════════════════════════════
       HOW IT WORKS
    ══════════════════════════════════ */
.how-section {
    background: linear-gradient(to bottom, #fff, rgba(124, 58, 237, 0.03), #fff);
}

.step-wrap {
    text-align: center;
    position: relative;
}

.step-connector {
    position: absolute;
    top: 48px;
    left: 60%;
    width: 80%;
    border-top: 2px dashed rgba(124, 58, 237, 0.2);
}

.step-icon-box {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.25);
}

.step-icon-box i {
    color: #fff;
    font-size: 36px;
}

.step-number {
    position: absolute;
    top: -8px;
    right: calc(50% - 58px);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 18px;
}

.step-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ══════════════════════════════════
       ALL FEATURES GRID
    ══════════════════════════════════ */
#features {
    background: linear-gradient(to bottom, #fff, #f9f5ff, #fff);
}

.feat-card {
    position: relative;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    transition: all 0.3s;
    overflow: hidden;
    height: 100%;
}

.feat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(6, 182, 212, 0.04));
    opacity: 0;
    transition: opacity 0.3s;
}

.feat-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.1);
}

.feat-card:hover::before {
    opacity: 1;
}

.feat-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.25);
    position: relative;
    z-index: 1;
}

.feat-icon-box i {
    color: #fff;
    font-size: 20px;
}

.feat-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 6px;
    position: relative;
    z-index: 1;
}

.feat-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════
       TESTIMONIALS
    ══════════════════════════════════ */
#testimonials {
    background: linear-gradient(to bottom, #fff, rgba(124, 58, 237, 0.03), #fff);
}

.testimonial-card {
    padding: 32px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    transition: all 0.3s;
    height: 100%;
}

.testimonial-card:hover {
    border-color: rgba(124, 58, 237, 0.2);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.1);
}

.quote-icon {
    color: rgba(124, 58, 237, 0.18);
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.testimonial-text {
    font-size: 0.9rem;
    line-height: 1.75;
    font-style: italic;
    color: rgba(26, 26, 46, 0.8);
}

.testimonial-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: 18px 0 14px;
}

.t-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gradient-purple);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.t-name {
    font-size: 0.875rem;
    font-weight: 600;
    margin: 0;
}

.t-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
}

/* ══════════════════════════════════
       MOBILE APP SECTION
    ══════════════════════════════════ */
.mobile-section {
    background: linear-gradient(to bottom, #fff, #f9f5ff, #fff);
    overflow: hidden;
}

.phone-frame {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(124, 58, 237, 0.2);
    border: 4px solid #fff;
}

.phone-frame img {
    width: 100%;
    display: block;
}

.phone-side {
    transform: rotate(-5deg);
    box-shadow: 0 20px 50px rgba(124, 58, 237, 0.15);
}

.phone-side-right {
    transform: rotate(5deg);
}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    background: #1a1a2e;
    color: #fff;
    border-radius: 12px;
    border: none;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-store:hover {
    opacity: 0.88;
    color: #fff;
}

.btn-store i {
    font-size: 22px;
}

.btn-store-sub {
    font-size: 0.65rem;
    opacity: 0.7;
    line-height: 1;
}

.btn-store-main {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
}

/* ══════════════════════════════════
       CTA SECTION
    ══════════════════════════════════ */
.cta-section {
    position: relative;
    overflow: hidden;
    background: var(--gradient-purple);
}

.cta-blob-1 {
    position: absolute;
    top: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    filter: blur(40px);
}

.cta-blob-2 {
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    filter: blur(50px);
}

.cta-blob-3 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    filter: blur(60px);
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.15;
}

.cta-lead {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 460px;
    margin: 0 auto;
}

.btn-cta-white {
    background: #fff;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.btn-cta-white:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    color: var(--primary);
}

/* ══════════════════════════════════
       FOOTER
    ══════════════════════════════════ */
footer {
    background: linear-gradient(to bottom, #f9f5ff, #fff);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
}

.footer-desc {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 260px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
}

.footer-heading {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-link {
    font-size: 15px;
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #1a1a2e;
}

.newsletter-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 8px;
}

.newsletter-input:focus {
    border-color: var(--primary);
}

.btn-newsletter {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: var(--gradient-purple);
    color: #fff;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-newsletter:hover {
    opacity: 0.88;
}

.footer-bottom {
    font-size: 15px;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1.5rem;
    margin-top: 3rem;
}

.footer-bottom i.fa-heart {
    color: #f43f5e;
}

/* ══════════════════════════════════
       RESPONSIVE TWEAKS
    ══════════════════════════════════ */
@media (max-width: 991.98px) {

    .fc-members,
    .fc-photos,
    .fc-voice {
        display: none;
    }

    .step-connector {
        display: none;
    }

    .recording-card {
        position: static;
        margin-top: 16px;
    }

    .phone-side,
    .phone-side-right {
        display: none;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    [data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Utility */
.py-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 992px) {
    .py-section {
        padding-top: 7rem;
        padding-bottom: 7rem;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 991.98px) {
    .py-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (max-width: 575.98px) {
    .py-section {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    footer {
        text-align: center;
    }

    .footer-desc {
        margin: 1rem auto;
    }

    .footer-social {
        justify-content: center;
    }

    .badge-trusted {
        margin-bottom: 0.75rem;
    }
}

/* ══════════════════════════════════
       LOGIN PAGE
══════════════════════════════════ */
.login-page {
    font-family: 'DM Sans', sans-serif;
    color: #1f2340;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.12), transparent 35%),
        radial-gradient(circle at bottom right, rgba(6, 182, 212, 0.08), transparent 32%),
        linear-gradient(180deg, #f8f5ff 0%, #fbfbff 42%, #ffffff 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.login-page .auth-shell {
    min-height: 100vh;
}

.login-page .auth-visual {
    position: relative;
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.68), rgba(124, 58, 237, 0.16) 60%, rgba(255, 255, 255, 0) 100%),
        url('./images/hero-family-gathering.png') center center / cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.login-page .auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.18), transparent 28%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12), transparent 24%);
    pointer-events: none;
}

.login-page .auth-visual-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.login-page .brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    text-decoration: none;
}

.login-page .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(10px);
}

.login-page .brand-lockup span {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.login-page .auth-visual h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.02;
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.login-page .auth-visual p {
    color: rgba(255, 255, 255, 0.84);
    max-width: 30rem;
}

.login-page .avatar-stack {
    display: flex;
    align-items: center;
}

.login-page .avatar-stack .avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.18);
    margin-right: -10px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.15);
}

.login-page .avatar-stack .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.login-page .mini-pill,
.login-page .mini-card {
    position: absolute;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 40px rgba(17, 24, 39, 0.15);
    z-index: 1;
}

.login-page .mini-pill {
    top: 28px;
    right: 28px;
    padding: 0.8rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.login-page .mini-pill .icon-box,
.login-page .mini-card .icon-box {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, 0.2);
}

.login-page .mini-pill p,
.login-page .mini-card p {
    margin: 0;
    color: #fff;
    line-height: 1.2;
}

.login-page .mini-pill .title,
.login-page .mini-card .title {
    font-size: 0.78rem;
    font-weight: 700;
}

.login-page .mini-pill .sub,
.login-page .mini-card .sub {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.78);
}

.login-page .mini-card {
    right: 18px;
    padding: 0.7rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    max-width: 14rem;
}

.login-page .mini-card.card-1 {
    top: 112px;
}

.login-page .mini-card.card-2 {
    top: 252px;
}

.login-page .mini-card.card-3 {
    top: 392px;
}

.login-page .auth-panel {
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(124, 58, 237, 0.08);
}

.login-page .auth-card {
    width: min(100%, 420px);
}

.login-page .auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.15);
    color: #6d28d9;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.login-page .auth-title {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: clamp(2rem, 3vw, 2.9rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.login-page .auth-subtitle {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
}

.btn-auth-google,
.btn-auth-primary {
    height: 52px;
    border-radius: 14px;
    font-weight: 500;
}

.btn-auth-google {
    border: 1px solid rgba(31, 35, 64, 0.12);
    background: #fff;
    color: #1f2340;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.btn-auth-google:hover {
    background: #f8fafc;
    border-color: rgba(124, 58, 237, 0.16);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: #6b7280;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(31, 35, 64, 0.09);
}

.login-page .form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(31, 35, 64, 0.72);
    margin-bottom: 0.4rem;
}

.login-page .form-control.auth-input {
    height: 52px;
    border-radius: 14px;
    border-color: rgba(31, 35, 64, 0.12);
    background: rgba(248, 250, 252, 0.9);
    padding-left: 1rem;
    padding-right: 3rem;
    box-shadow: none;
}

.login-page .form-control.auth-input:focus {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.1);
    background: #fff;
}

.login-page .password-wrap {
    position: relative;
}

.login-page .password-toggle {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    padding: 0.25rem;
}

.login-page .password-toggle:hover {
    color: #1f2340;
}

.login-page .btn-auth-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    border: 0;
    color: #fff;
    box-shadow: 0 16px 30px rgba(124, 58, 237, 0.22);
}

.login-page .btn-auth-primary:hover {
    color: #fff;
    opacity: 0.94;
    transform: translateY(-1px);
}

.login-page .auth-footer-link {
    color: #6d28d9;
    text-decoration: none;
    font-weight: 700;
}

.login-page .auth-footer-link:hover {
    text-decoration: underline;
}

@media (max-width: 991.98px) {
    .login-page .auth-panel {
        border-left: 0;
    }
}

@media (max-width: 767.98px) {
    .login-page {
        background:
            radial-gradient(circle at top left, rgba(124, 58, 237, 0.08), transparent 34%),
            rgba(255, 255, 255, 0.92);
    }

    .login-page .auth-panel {
        background:
            radial-gradient(circle at top left, rgba(124, 58, 237, 0.08), transparent 34%),
            rgba(255, 255, 255, 0.92);
    }

    .login-page .auth-card {
        width: 100%;
    }
}

@media (max-width: 575.98px) {

    .login-page .auth-title,
    .login-page .auth-subtitle {
        text-align: center;
    }
}

/* ══════════════════════════════════
       SIGNUP PAGE
══════════════════════════════════ */
.signup-page {
    font-family: 'DM Sans', sans-serif;
    color: #1f2340;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.12), transparent 30%),
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.1), transparent 28%),
        linear-gradient(180deg, #fbfaff 0%, #f6f3ff 54%, #eef4ff 100%);
}

.signup-page .signup-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.signup-page .signup-shell::before,
.signup-page .signup-shell::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(12px);
}

.signup-page .signup-shell::before {
    width: 17rem;
    height: 17rem;
    top: 5%;
    left: -5rem;
    background: rgba(124, 58, 237, 0.08);
}

.signup-page .signup-shell::after {
    width: 14rem;
    height: 14rem;
    right: -3rem;
    bottom: 5%;
    background: rgba(59, 130, 246, 0.08);
}

.signup-page .container {
    position: relative;
    z-index: 1;
}

.signup-page .signup-header {
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
}

.signup-page .signup-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #1f2340;
}

.signup-page .signup-brand:hover {
    color: #1f2340;
}

.signup-page .signup-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.25);
}

.signup-page .signup-brand-mark i {
    font-size: 1.05rem;
}

.signup-page .signup-brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.signup-page .signup-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.05em;
    margin-bottom: 0;
}

.signup-page .signup-subtitle {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
}

.signup-page .signup-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(124, 58, 237, 0.12);
}

.signup-page .signup-card-body {
    padding: clamp(1.5rem, 3vw, 2.75rem);
}

.signup-page .signup-form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(31, 35, 64, 0.72);
    margin-bottom: 0.4rem;
}

.signup-page .form-control.signup-input {
    height: 52px;
    border-radius: 14px;
    border-color: rgba(31, 35, 64, 0.12);
    background: rgba(248, 250, 252, 0.9);
    padding-left: 1rem;
    padding-right: 3rem;
    box-shadow: none;
}

.signup-page .form-control.signup-input:focus {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.1);
    background: #fff;
}

.signup-page .signup-password-wrap {
    position: relative;
}

.signup-page .signup-password-toggle {
    position: absolute;
    top: 50%;
    right: 0.9rem;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #94a3b8;
    padding: 0.25rem;
    line-height: 1;
}

.signup-page .signup-password-toggle:hover {
    color: #1f2340;
}

.signup-page .btn-signup-primary {
    min-height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    border: 0;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(124, 58, 237, 0.22);
    transition: all 0.2s ease;
}

.signup-page .btn-signup-primary:hover {
    color: #fff;
    opacity: 0.94;
    transform: translateY(-1px);
}

.signup-page .signup-footer-link {
    color: #6d28d9;
    text-decoration: none;
    font-weight: 700;
}

.signup-page .signup-footer-link:hover {
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .signup-page {
        background:
            radial-gradient(circle at top left, rgba(124, 58, 237, 0.08), transparent 30%),
            radial-gradient(circle at top right, rgba(59, 130, 246, 0.07), transparent 24%),
            rgba(255, 255, 255, 0.96);
    }

    .signup-page .signup-shell {
        padding: 1.5rem 0;
    }

    .signup-page .signup-card {
        border-radius: 24px;
    }
}

@media (max-width: 575.98px) {

    .signup-page .signup-title,
    .signup-page .signup-subtitle {
        text-align: center;
    }

    .signup-page .signup-brand {
        justify-content: center;
    }

    .signup-page .signup-footer-row {
        flex-direction: column;
        align-items: stretch;
    }

    .signup-page .btn-signup-primary {
        width: 100%;
    }
}

/* ══════════════════════════════════
       FORGOT PASSWORD PAGE
══════════════════════════════════ */
.forgot-page {
    font-family: 'DM Sans', sans-serif;
    color: #1f2340;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.12), transparent 30%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.1), transparent 28%),
        linear-gradient(180deg, #fbfaff 0%, #f4f0ff 55%, #eef4ff 100%);
}

.forgot-page .forgot-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.forgot-page .container {
    position: relative;
    z-index: 1;
}

.forgot-page .forgot-top {
    max-width: 30rem;
    margin-left: auto;
    margin-right: auto;
}

.forgot-page .forgot-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #1f2340;
}

.forgot-page .forgot-brand:hover {
    color: #1f2340;
}

.forgot-page .forgot-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    box-shadow: 0 14px 30px rgba(124, 58, 237, 0.25);
}

.forgot-page .forgot-brand-mark i {
    font-size: 1.05rem;
}

.forgot-page .forgot-brand-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.forgot-page .forgot-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 28px;
    box-shadow: 0 30px 70px rgba(124, 58, 237, 0.12);
    padding: clamp(1.75rem, 3vw, 2.75rem);
}

.forgot-page .forgot-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    margin-top: 0.25rem;
}

.forgot-page .forgot-icon-wrap i {
    font-size: 2rem;
}

.forgot-page .forgot-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.forgot-page .forgot-subtitle {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 26rem;
}

.forgot-page .forgot-form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(31, 35, 64, 0.72);
    margin-bottom: 0.4rem;
}

.forgot-page .form-control.forgot-input {
    height: 52px;
    border-radius: 14px;
    border-color: rgba(31, 35, 64, 0.12);
    background: rgba(248, 250, 252, 0.9);
    padding-left: 1rem;
    box-shadow: none;
}

.forgot-page .form-control.forgot-input:focus {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.1);
    background: #fff;
}

.forgot-page .btn-forgot-primary {
    min-height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
    border: 0;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 16px 30px rgba(124, 58, 237, 0.22);
    transition: all 0.2s ease;
}

.forgot-page .btn-forgot-primary:hover {
    color: #fff;
    opacity: 0.94;
    transform: translateY(-1px);
}

.forgot-page .forgot-back-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease;
    width: 100%;
}

.forgot-page .forgot-back-link:hover {
    color: #1f2340;
}

@media (max-width: 767.98px) {
    .forgot-page {
        background:
            radial-gradient(circle at top left, rgba(124, 58, 237, 0.08), transparent 30%),
            radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.07), transparent 24%),
            rgba(255, 255, 255, 0.96);
    }

    .forgot-page .forgot-shell {
        padding: 1.5rem 0;
    }

    .forgot-page .forgot-card {
        border-radius: 24px;
    }
}

@media (max-width: 575.98px) {

    .forgot-page .forgot-top,
    .forgot-page .forgot-title,
    .forgot-page .forgot-subtitle {
        text-align: center;
    }

    .forgot-page .forgot-brand {
        justify-content: center;
    }

    .forgot-page .forgot-back-link {
        justify-content: center;
    }
}