/* ============================================================
   HEARTLOCK — Global Design Tokens (White + Pink Theme)
   ============================================================ */
:root {
    --bg-dark: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.75);
    --primary: #f43f5e;
    --primary-bright: #fb7185;
    --primary-glow: rgba(244, 63, 94, 0.25);
    --secondary: #ec4899;
    --text-main: #111827;
    --text-muted: #6b7280;
    --glass: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(244, 63, 94, 0.15);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    margin: 0;
    padding: 0;
}

body {
    background-color: #fff;
    background-image: linear-gradient(145deg, #fff1f5 0%, #ffffff 50%, #fdf2f8 100%);
    color: var(--text-main);
    font-family: var(--font-main);
    position: relative;
}

/* ── Ambient mesh orbs (soft pink tones) ── */
.mesh-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.mesh-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.14;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    animation: orb-float 20s infinite alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #f43f5e;
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: #ec4899;
    bottom: -5%;
    right: -5%;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: #fb7185;
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes orb-float {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        transform: translate3d(50px, 100px, 0) scale(1.2);
    }
}

/* ── Typography ── */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.text-gradient {
    background: linear-gradient(135deg, #111827 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #fdf2f8;
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ── Text Selection ── */
::selection {
    background: #fbcfe8;
    color: #111827;
}

/* ── Glassmorphism Utility ── */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(244, 63, 94, 0.12);
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(244, 63, 94, 0.06);
}

/* ── Buttons ── */
.btn-premium {
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease, opacity 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-primary-glow {
    background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
    color: #fff;
    box-shadow: 0 8px 25px rgba(244, 63, 94, 0.35);
}

.btn-primary-glow:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 12px 35px rgba(244, 63, 94, 0.5);
    color: #fff;
}

.btn-outline-glow {
    background: rgba(244, 63, 94, 0.06);
    color: var(--primary);
    border: 1.5px solid rgba(244, 63, 94, 0.25);
}

.btn-outline-glow:hover {
    background: rgba(244, 63, 94, 0.12);
    border-color: var(--primary);
    box-shadow: 0 0 18px rgba(244, 63, 94, 0.2);
    color: var(--primary);
}

/* ── Hero Section ── */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
    background: none !important;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 60% 40%, rgba(244, 63, 94, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-main);
    background: none;
    -webkit-text-fill-color: var(--text-main);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* ── Auth Pages ── */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 50px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(244, 63, 94, 0.15);
    border-radius: 32px;
    box-shadow: 0 30px 60px rgba(244, 63, 94, 0.1);
}

.auth-card .title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
    color: var(--text-main);
}

.auth-card .sub-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 24px;
}

.auth-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.auth-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(244, 63, 94, 0.03);
    border: 1.5px solid rgba(244, 63, 94, 0.15);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
}

.auth-input:focus {
    background: rgba(244, 63, 94, 0.05);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.15);
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-card p {
    margin-top: 24px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.auth-card .link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-card .link:hover {
    color: var(--primary-bright);
    text-decoration: underline;
}

/* ── Auth Tabs & Panel Animations ── */
.auth-header-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fb7185, #f43f5e);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.25);
    color: #ffffff;
    font-size: 1.3rem;
}

.auth-tab-row {
    position: relative;
    display: flex;
    border-bottom: 1.5px solid rgba(244, 63, 94, 0.12);
    margin-bottom: 24px;
}

.auth-tab-btn {
    flex: 1;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #9ca3af;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    transition: color 0.25s ease;
    text-align: center;
}

.auth-tab-btn:focus,
.auth-tab-btn:focus-visible,
.auth-tab-btn:active {
    outline: none !important;
    box-shadow: none !important;
}

.auth-tab-btn.active {
    color: var(--primary);
}

.auth-tab-underline {
    position: absolute;
    bottom: -1.5px;
    left: 0;
    width: 50%;
    height: 2.5px;
    border-radius: 2px;
    background: linear-gradient(90deg, #fb7185, #f43f5e);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
    animation: panelIn 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

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

/* ── Google Auth Button (Fixed Dark Text Color) ── */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 20px;
    background: #ffffff;
    border: 1.5px solid rgba(244, 63, 94, 0.15);
    border-radius: 12px;
    color: #374151 !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.btn-google:hover {
    background: #ffffff;
    border-color: rgba(244, 63, 94, 0.35);
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.12);
    color: #111827 !important;
    transform: translateY(-1px);
}

/* ── Gender Selection ── */
.modern-gender-group {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.gender-btn {
    flex: 1;
    position: relative;
}

.gender-btn input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.gender-label {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: rgba(244, 63, 94, 0.03);
    border: 1.5px solid rgba(244, 63, 94, 0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    margin-bottom: 0 !important;
    color: var(--text-main);
}

.gender-btn input:checked+.gender-label {
    background: rgba(244, 63, 94, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.15);
}

/* ── CTA Group ── */
.hero-cta-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Sections ── */
section {
    padding: 100px 0;
}

.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: block;
    text-align: center;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    text-align: center;
    margin-bottom: 60px;
}

/* ── How-It-Works Steps ── */
.step-card {
    padding: 40px;
    text-align: center;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.5s ease, box-shadow 0.5s ease, background 0.5s ease;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: rgba(244, 63, 94, 0.4) !important;
    box-shadow: 0 20px 50px rgba(244, 63, 94, 0.14) !important;
    background: rgba(255, 255, 255, 0.95) !important;
}

.step-card:hover .step-icon {
    transform: rotate(10deg) scale(1.1);
    background: var(--primary);
    color: #fff;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: rgba(244, 63, 94, 0.08);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--primary);
    transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
}

.step-number {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    transition: all 0.3s ease;
}

/* ── Feature Rows ── */
.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
    transition: opacity 0.5s ease;
}

.feature-image-container {
    flex: 1;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-image-container::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 80%;
    background: var(--primary);
    filter: blur(80px);
    opacity: 0;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: opacity 0.6s ease;
}

.feature-image-container:hover::after {
    opacity: 0.12;
}

.feature-image {
    width: 100%;
    border-radius: 32px;
    border: 1.5px solid rgba(244, 63, 94, 0.12);
    box-shadow: 0 20px 50px rgba(244, 63, 94, 0.08);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.6s ease, box-shadow 0.6s ease;
}

.feature-image-container:hover .feature-image {
    transform: scale(1.03) translateY(-10px);
    border-color: rgba(244, 63, 94, 0.3);
}

.badge-premium {
    position: absolute;
    bottom: -20px;
    right: -20px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1.5px solid rgba(244, 63, 94, 0.25);
    border-radius: 100px;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.1);
    transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    z-index: 10;
}

.feature-image-container:hover .badge-premium {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #f43f5e, #ec4899);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
}

/* ── Reveal Animations (Progressive Enhancement — default visible) ── */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.js-animated {
    opacity: 0;
    transform: translateY(30px);
}

.reveal.js-animated.active {
    opacity: 1;
    transform: translateY(0);
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

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

    .feature-row,
    .feature-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {
    #hero {
        padding-top: 100px;
        height: auto;
        min-height: 100vh;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 80px 12px;
    }

    .auth-card {
        padding: 24px;
        border-radius: 24px;
    }
}

/* ==========================================================================
   VARIATION 2A: CRISP PURE WHITE PILL TOAST NOTIFICATIONS (SoulsNote Theme)
   ========================================================================== */
#toast-container {
    position: fixed !important;
    top: 24px !important;
    right: 24px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 12px !important;
    max-width: 440px !important;
    width: auto !important;
    pointer-events: none !important;
}

#toast-container>div {
    pointer-events: auto !important;
    background: #ffffff !important;
    border-radius: 9999px !important; /* Pure Pill Capsule */
    padding: 10px 18px 10px 14px !important;
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(255, 77, 121, 0.06) !important;
    display: grid !important;
    grid-template-columns: 36px 1fr 26px !important;
    grid-template-rows: auto !important;
    align-items: center !important;
    column-gap: 12px !important;
    row-gap: 2px !important;
    border: 1px solid rgba(255, 180, 204, 0.5) !important;
    width: auto !important;
    min-width: 280px !important;
    max-width: 420px !important;
    height: auto !important;
    min-height: 52px !important;
    max-height: 72px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    background-image: none !important;
    transition: box-shadow 0.25s ease, transform 0.25s ease !important;
    overflow: hidden !important;
    animation: slideInToast 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

#toast-container > div[style*="display: none"],
#toast-container > div[style*="display:none"] {
    display: none !important;
}

#toast-container>div.hiding-toast,
.hiding-toast {
    animation: fadeOutToast 0.3s cubic-bezier(0.4, 0, 1, 1) forwards !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

@keyframes slideInToast {
    from {
        opacity: 0;
        transform: translateX(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes fadeOutToast {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
}

#toast-container>div:hover {
    box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(255, 77, 121, 0.1) !important;
    transform: translateY(-2px) !important;
}

/* Vibrant Icon Badge */
#toast-container>div::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome', sans-serif;
    font-weight: 900;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1rem !important;
    color: #ffffff !important;
    flex-shrink: 0 !important;
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    justify-self: center !important;
    box-sizing: border-box !important;
}

#toast-container>.toast-success::before {
    content: '\f00c';
    background: #10b981 !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3) !important;
}

#toast-container>.toast-error::before {
    content: '\f00d';
    background: #f43f5e !important;
    box-shadow: 0 4px 10px rgba(244, 63, 94, 0.3) !important;
}

#toast-container>.toast-info::before {
    content: '\f0c5';
    background: #0ea5e9 !important;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3) !important;
}

#toast-container>.toast-warning::before {
    content: '\f071';
    background: #f59e0b !important;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3) !important;
}

#toast-container .toast-title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    color: #0f172a !important; /* Sharp, high contrast */
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    margin: 0 !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: center !important;
}

#toast-container .toast-message {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 0.88rem !important;
    color: #374151 !important; /* Clear dark slate text */
    font-weight: 500 !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
    margin: 0 !important;
    grid-column: 2 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
}

/* When a non-empty title exists, push message to row 2 */
#toast-container>div:has(.toast-title:not(:empty)) .toast-message {
    grid-row: 2 !important;
    font-size: 0.82rem !important;
    color: #64748b !important;
}

/* Circular Close Button */
#toast-container .toast-close-button {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    color: #94a3b8 !important;
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 0.75rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
    flex-shrink: 0 !important;
    position: static !important;
    float: none !important;
    grid-column: 3 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    justify-self: center !important;
    opacity: 1 !important;
    text-shadow: none !important;
    line-height: 1 !important;
    padding: 0 !important;
    font-weight: 400 !important;
    box-sizing: border-box !important;
}

#toast-container .toast-close-button:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Remove default progress bar for clean pill curve */
#toast-container>div>.toast-progress {
    display: none !important;
}

@media (max-width: 768px) {
    #toast-container {
        top: 16px !important;
        right: 16px !important;
        left: 16px !important;
        width: auto !important;
        max-width: none !important;
    }

    #toast-container>div {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

/* ==========================================================================
   MODERN IN-FORM ALERT BANNERS (Above Input Fields)
   ========================================================================== */
.form-alert-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 20px;
    animation: fadeInDown 0.3s ease;
    text-align: left;
}

.form-alert-error {
    background: rgba(255, 46, 99, 0.1) !important;
    border: 1px solid rgba(255, 46, 99, 0.4) !important;
    color: #ff2e63 !important;
    box-shadow: 0 4px 15px rgba(255, 46, 99, 0.15);
}

.form-alert-error .alert-icon {
    font-size: 1.15rem;
    color: #ff2e63;
    flex-shrink: 0;
}

.form-alert-success {
    background: rgba(16, 185, 129, 0.1) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #10b981 !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.form-alert-success .alert-icon {
    font-size: 1.15rem;
    color: #10b981;
    flex-shrink: 0;
}

.form-alert-info {
    background: rgba(59, 130, 246, 0.1) !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    color: #3b82f6 !important;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.15);
}

.form-alert-info .alert-icon {
    font-size: 1.15rem;
    color: #3b82f6;
    flex-shrink: 0;
}

.form-alert-banner .alert-content {
    flex: 1;
    line-height: 1.45;
}