/* ==========================================================================
   PRODUCTION CORE TYPOGRAPHY & FONT SMOOTHING (ALL DEVICES & BROWSERS)
   ========================================================================== */

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

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1e293b;
    overflow-x: hidden;
    min-height: 100vh;
}

.brand,
.brand-serif {
    font-family: 'Playfair Display', Georgia, Cambria, 'Times New Roman', Times, serif;
}

.font-heading {
    font-family: 'Outfit', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tamil-text,
[lang="ta"] {
    font-family: 'Mukta Malar', 'Nunito', 'Plus Jakarta Sans', sans-serif;
}

/* Production Scrollbar Utilities */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* =========================  
   BUTTONS
========================= */

.btn-primary {
    background:
        linear-gradient(90deg,
            #ff6b6b,
            #ee2c6c);
    transition: 0.2s;
}

.btn-primary:hover {
    opacity: 0.92;
}

/* =========================
   FORM INPUTS
========================= */

.form-input {

    width: 100%;

    border: 2px solid #e5e7eb;

    border-radius: 12px;

    padding: 14px 16px;

    color: #374151;

    outline: none;

    transition: 0.2s;

    background: white;
}

.form-input:focus {

    border-color: #ee2c6c;

    box-shadow:
        0 0 0 3px rgba(238, 44, 108, 0.12);
}

/* =========================
   LABEL
========================= */

.label-title {

    font-size: 14px;

    font-weight: 600;

    color: #4b5563;

    margin-bottom: 6px;

    display: block;
}

.required-star {
    color: #ef4444;
    font-weight: bold;
    margin-left: 2px;
}

/* =========================
   SELECT2 SEARCHABLE STYLES
========================= */

.select2-container {
    width: 100% !important;
}

/* SINGLE SELECT */
.select2-container--default .select2-selection--single {
    height: 48px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 8px 14px !important;
    display: flex !important;
    align-items: center !important;
    background-color: #ffffff !important;
    outline: none !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #ee2c6c !important;
    box-shadow: 0 0 0 3px rgba(238, 44, 108, 0.12) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #374151 !important;
    padding-left: 0 !important;
    line-height: normal !important;
    font-size: 14px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    right: 12px !important;
}

/* MULTI SELECT */
.select2-container--default .select2-selection--multiple {
    min-height: 46px !important;
    height: auto !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    padding: 4px 8px !important;
    background-color: #ffffff !important;
    outline: none !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.select2-container--default.select2-container--open .select2-selection--multiple {
    border-color: #ee2c6c !important;
    box-shadow: 0 0 0 3px rgba(238, 44, 108, 0.12) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #ee2c6c !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    padding: 4px 12px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-direction: row-reverse !important;
    gap: 6px !important;
    margin: 2px 4px 2px 0 !important;
    float: none !important;
    box-shadow: 0 1px 3px rgba(238, 44, 108, 0.25) !important;
    line-height: 1.4 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: static !important;
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    font-size: 15px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    opacity: 0.85 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    opacity: 1 !important;
    color: #ffffff !important;
    background: transparent !important;
}

/* INLINE SEARCH INPUT INSIDE MULTI SELECT */
.select2-container--default .select2-selection--multiple .select2-search--inline {
    float: none !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 2px 0 !important;
}

.select2-container--default .select2-selection--multiple .select2-search__field {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 14px !important;
    color: #374151 !important;
    height: 28px !important;
    padding: 0 4px !important;
    margin: 0 !important;
    width: auto !important;
    min-width: 60px !important;
}

/* DROPDOWN MENU */
.select2-dropdown {
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    z-index: 9999 !important;
    background-color: #ffffff !important;
}

.select2-search--dropdown {
    padding: 8px !important;
}

.select2-search--dropdown .select2-search__field {
    outline: none !important;
    border-radius: 8px !important;
    border: 1px solid #d1d5db !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    width: 100% !important;
}

.select2-container--default .select2-results__option {
    padding: 10px 14px !important;
    font-size: 14px !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #ee2c6c !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #fce7f3 !important;
    color: #be185d !important;
    font-weight: 600 !important;
}

/* =========================
   LOGIN PAGE
========================= */

.mobile-box {

    display: flex;

    align-items: center;

    border: 2px solid #f9a8d4;

    border-radius: 12px;

    padding: 14px 16px;

    gap: 10px;

    transition: 0.2s;

    background: white;
}

.mobile-box:focus-within {

    border-color: #ec4899;
}

.mobile-input {

    flex: 1;

    outline: none;

    background: transparent;

    font-size: 16px;

    font-weight: 600;

    color: #374151;
}

/* =========================
   OTP INPUT
========================= */

.otp-input {

    width: 46px;

    height: 56px;

    font-size: 1.5rem;

    text-align: center;

    border: 2px solid #ee2c6c;

    border-radius: 10px;

    outline: none;
}

.otp-input:focus {

    border-color: #ff6b6b;

    box-shadow:
        0 0 0 3px rgba(238, 44, 108, 0.15);
}

/* =========================
   REGISTER PAGE
========================= */

.step-circle {

    width: 32px;

    height: 32px;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

    font-size: 14px;
}

.step-line {

    flex: 1;

    height: 2px;
}

/* =========================
   GENDER & MARITAL STATUS BUTTONS
========================= */

.gender-btn {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 8px 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.25;
    background: #ffffff;
    color: #334155;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
    min-height: 46px;
    box-sizing: border-box;
    width: 100%;
}

.gender-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.gender-btn.active {
    border-color: #ee2c6c;
    background: #fff0f5;
    color: #ee2c6c;
    box-shadow: 0 2px 8px rgba(238, 44, 108, 0.12);
}

/* =========================
   HIDE
========================= */

.hidden {
    display: none;
}

select[multiple] {
    height: 150px;
    overflow-y: auto;
}

#known_lang {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
}

.step-btns {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.step-btns button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
}

#prevBtn {
    background: #e5e7eb;
    color: #111827;
}

#nextBtn {
    background: #db2777;
    color: #fff;
}

/* =========================
   VERIFIED FIELD LOCK STYLES
========================= */

.verified-lock-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
    padding: 1px 7px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    margin-left: 6px;
}

.verified-lock-overlay {
    position: absolute;
    inset: 0;
    z-index: 25;
    cursor: pointer;
    background: rgba(249, 250, 251, 0.01);
    border-radius: 12px;
}

.verified-locked-field {
    position: relative;
}

.verified-locked-field .form-input,
.verified-locked-field .gender-btn,
.verified-locked-field .select2-selection {
    background-color: #f8fafc !important;
    border-color: #e2e8f0 !important;
    cursor: pointer !important;
    color: #475569 !important;
}

.verified-locked-field .gender-btn.active {
    background-color: #fce7f3 !important;
    border-color: #f472b6 !important;
    color: #db2777 !important;
}

/* =========================
   CARD & SCROLL ANIMATIONS
========================= */

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slideUp {
    animation: slideUpFade 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    will-change: transform, opacity;
}

.profile-card {
    background: #ffffff;
    border-radius: 24px;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

/* ==========================================================================
   SHIMMER SKELETON LOADING WAVE & LIGHT ANIMATIONS
   ========================================================================== */

@keyframes shimmerWaveAnim {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.shimmer-wave {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmerWaveAnim 1.8s infinite linear;
}

@keyframes shimmerLightAnim {
    0%, 100% {
        opacity: 0.55;
    }
    50% {
        opacity: 0.95;
    }
}

.shimmer-light {
    animation: shimmerLightAnim 1.5s ease-in-out infinite;
}

/* ==========================================================================
   NETWORK & INTERNET CONNECTIVITY CHECKER STYLES (UNIVERSAL)
   ========================================================================== */

@keyframes icRadarPulse {
    0% {
        transform: scale(0.92);
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.5);
    }
    70% {
        transform: scale(1.04);
        box-shadow: 0 0 0 18px rgba(244, 63, 94, 0);
    }
    100% {
        transform: scale(0.92);
        box-shadow: 0 0 0 0 rgba(244, 63, 94, 0);
    }
}

@keyframes icSlideDown {
    from {
        transform: translate(-50%, -120%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

@keyframes icSlideUp {
    from {
        transform: translate(-50%, 0);
        opacity: 1;
    }
    to {
        transform: translate(-50%, -120%);
        opacity: 0;
    }
}

.ic-pulse-badge {
    animation: icRadarPulse 2.2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

.ic-toast-enter {
    animation: icSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ic-toast-exit {
    animation: icSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#app-offline-modal {
    z-index: 999999 !important;
}

#app-online-toast {
    z-index: 999999 !important;
}

/* ==========================================================================
   ANIMATED NO-DATA & EMPTY STATE CARD STYLES (UNIVERSAL & CUSTOMIZABLE)
   ========================================================================== */

@keyframes nodataFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

@keyframes nodataGlowPulse {
    0%, 100% {
        box-shadow: 0 10px 25px -5px rgba(238, 44, 108, 0.2), 0 0 0 0 rgba(238, 44, 108, 0.4);
    }
    50% {
        box-shadow: 0 16px 35px -5px rgba(238, 44, 108, 0.35), 0 0 0 12px rgba(238, 44, 108, 0);
    }
}

@keyframes nodataOrbFloat1 {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(15px, -15px) scale(1.2);
        opacity: 0.9;
    }
}

@keyframes nodataOrbFloat2 {
    0%, 100% {
        transform: translate(0px, 0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-15px, 15px) scale(1.25);
        opacity: 0.85;
    }
}

.nodata-card-container {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nodata-card-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(238, 44, 108, 0.12);
}

.nodata-icon-badge {
    animation: nodataFloat 3.6s ease-in-out infinite, nodataGlowPulse 2.8s infinite ease-in-out;
}

.nodata-bg-orb-1 {
    animation: nodataOrbFloat1 7s ease-in-out infinite alternate;
}

.nodata-bg-orb-2 {
    animation: nodataOrbFloat2 8s ease-in-out infinite alternate;
}

/* =========================================================
   TOP NAV & BOTTOM NAV ACTIVE ITEM HIGHLIGHT
========================================================= */
.nav-tab-item {
    color: #64748b !important;
    background: transparent !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
    user-select: none;
}

.nav-tab-item svg {
    color: #64748b !important;
    stroke: currentColor;
    transition: all 0.2s ease !important;
}

.nav-tab-item:not(.active):hover {
    color: #ee2c6c !important;
    background: rgba(238, 44, 108, 0.08) !important;
}

.nav-tab-item:not(.active):hover svg,
.nav-tab-item:not(.active):hover span {
    color: #ee2c6c !important;
}

.nav-tab-item.active {
    background: #ffffff !important;
    color: #ee2c6c !important;
    box-shadow: 0 4px 14px -2px rgba(238, 44, 108, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08) !important;
    font-weight: 900 !important;
}

.nav-tab-item.active,
.nav-tab-item.active *,
.nav-tab-item.active span,
.nav-tab-item.active svg {
    color: #ee2c6c !important;
    stroke: currentColor;
}

.nav-tab-item.active svg {
    transform: scale(1.08);
}

/* Mobile Bottom Nav Tab Styling */
.btm-nav-item {
    color: #94a3b8 !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
}

.btm-nav-item svg {
    color: #94a3b8 !important;
    stroke: currentColor;
    transition: all 0.2s ease !important;
}

.btm-nav-item.active,
.btm-nav-item.active *,
.btm-nav-item.active span,
.btm-nav-item.active svg {
    color: #ee2c6c !important;
    stroke: currentColor;
    font-weight: 800 !important;
}

.btm-nav-item.active svg {
    transform: scale(1.12);
}

/* Safe area for iOS notch */
.h-safe-area-inset-bottom {
    height: env(safe-area-inset-bottom, 0px);
}