/* ============ UI COMPONENTS ============ */
/* ============ BUTTONS ============ */
        .btn {
            border: none;
            border-radius: 16px;
            font-family: var(--font-body);
            font-weight: 700;
            font-size: 15px;
            padding: 16px 22px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 9px;
            transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
            width: 100%;
        }

        .btn:active {
            transform: scale(.97);
        }

        .btn-primary {
            background: var(--grad-primary);
            color: #fff;
            box-shadow: 0 12px 22px -8px rgba(123, 44, 191, 0.55);
        }

        .btn-gold {
            background: var(--grad-gold);
            color: #3B2A00;
            box-shadow: 0 12px 22px -8px rgba(244, 180, 0, 0.5);
        }

        .btn-outline {
            background: var(--surface);
            color: var(--primary);
            border: 1.6px solid var(--border);
            box-shadow: none;
        }

        .btn-ghost {
            background: transparent;
            color: var(--primary);
            box-shadow: none;
            padding: 12px;
        }

        .btn-sm {
            width: fit-content;
            padding: 11px 16px;
            font-size: 13.5px;
            border-radius: 13px;
        }

        .btn-danger {
            background: var(--error-bg);
            color: var(--error);
            box-shadow: none;
        }

        .btn:disabled {
            opacity: .45;
            cursor: not-allowed;
            transform: none;
        }

        .btn-row {
            display: flex;
            gap: 12px;
        }

        .link-txt {
            color: var(--primary);
            font-weight: 700;
            cursor: pointer;
        }

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

        /* ============ FORM ELEMENTS ============ */
        .field {
            margin-bottom: 18px;
        }

        .field label {
            display: block;
            font-size: 13px;
            font-weight: 700;
            color: var(--text);
            margin-bottom: 8px;
        }

        .field .hint {
            font-size: 11.5px;
            color: var(--text-faint);
            margin-top: 6px;
            display: block;
        }

        .input,
        .textarea {
            width: 100%;
            border: 1.6px solid var(--border);
            background: var(--surface);
            border-radius: 14px;
            padding: 14px 16px;
            font-size: 14.5px;
            color: var(--text);
            outline: none;
            transition: border-color .15s ease, box-shadow .15s ease;
        }

        .input::placeholder,
        .textarea::placeholder {
            color: var(--text-faint);
        }

        .input:focus,
        .textarea:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-light);
        }

        .textarea {
            resize: none;
            min-height: 96px;
        }

        .input-icon-wrap {
            position: relative;
        }

        .input-icon-wrap .input {
            padding-left: 44px;
            padding-right: 44px;
        }

        .input-icon-wrap i.leading {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-faint);
            font-size: 14px;
            pointer-events: none;
        }

        .input-icon-wrap .trailing-btn {
            position: absolute;
            right: 8px;
            top: 50%;
            transform: translateY(-50%);
            width: 34px;
            height: 34px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: none;
            border: none;
            color: var(--text-faint);
            cursor: pointer;
            font-size: 14px;
            z-index: 5;
            padding: 0;
            border-radius: 8px;
            transition: color 0.15s ease, background 0.15s ease;
        }

        .input-icon-wrap .trailing-btn:hover {
            color: var(--primary);
            background: rgba(0,0,0,0.04);
        }

        .row-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .err-msg {
            color: var(--error);
            font-size: 12px;
            font-weight: 600;
            margin-top: 6px;
            display: none;
        }

        .field.has-error .input {
            border-color: var(--error);
            background: var(--error-bg);
        }

        .field.has-error .err-msg {
            display: block;
        }

        /* 2026 Modern Form Validation Styling */
        .input-error,
        input.input-error,
        .input-icon-wrap.input-error {
            border-color: var(--error) !important;
            background-color: rgba(214, 69, 69, 0.04) !important;
            box-shadow: 0 0 0 3.5px rgba(214, 69, 69, 0.18) !important;
            animation: inputShake 0.35s ease-in-out;
        }

        @keyframes inputShake {

            0%,
            100% {
                transform: translateX(0);
            }

            20%,
            60% {
                transform: translateX(-4px);
            }

            40%,
            80% {
                transform: translateX(4px);
            }
        }

        /* SPA Reload Splash Bypass */
        html.bypassing-splash #scr-splash {
            display: none !important;
        }

        html.bypassing-splash .screen {
            animation: none !important;
        }

        /* Custom dropdown */
        .dd {
            position: relative;
        }

        .dd-trigger {
            width: 100%;
            border: 1.6px solid var(--border);
            background: var(--surface);
            border-radius: 14px;
            padding: 14px 16px;
            font-size: 14.5px;
            color: var(--text);
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            user-select: none;
        }

        .dd-trigger.placeholder {
            color: var(--text-faint);
        }

        .dd-trigger i {
            color: var(--primary);
            font-size: 12px;
            transition: transform .2s ease;
        }

        .dd.open .dd-trigger {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-light);
        }

        .dd.open .dd-trigger i {
            transform: rotate(180deg);
        }

        .dd-menu {
            list-style: none;
            margin: 8px 0 0;
            padding: 8px;
            position: absolute;
            left: 0;
            right: 0;
            top: 100%;
            background: var(--surface);
            border-radius: 16px;
            box-shadow: var(--shadow-pop);
            z-index: 80;
            max-height: 230px;
            overflow-y: auto;
            display: none;
            border: 1px solid var(--border);
        }

        .dd-menu::-webkit-scrollbar {
            width: var(--scrollbar-width);
        }

        .dd-menu::-webkit-scrollbar-track {
            background: var(--scrollbar-track);
            border-radius: 10px;
        }

        .dd-menu::-webkit-scrollbar-thumb {
            background: var(--scrollbar-thumb);
            border-radius: 10px;
        }

        .dd.open .dd-menu {
            display: block;
            animation: ddPop .18s ease;
        }

        @keyframes ddPop {
            from {
                opacity: 0;
                transform: translateY(-6px);
            }

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

        .dd-menu li {
            padding: 11px 12px;
            border-radius: 11px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            color: var(--text);
        }

        .dd-menu li:hover,
        .dd-menu li.active {
            background: var(--primary-light);
            color: var(--primary-dark);
            font-weight: 700;
        }

        .dd-menu li i {
            color: var(--primary);
            font-size: 12px;
        }

        /* Toggle switch */
        .toggle-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 16px;
            background: var(--surface);
            border: 1.6px solid var(--border);
            border-radius: 14px;
            margin-bottom: 16px;
        }

        .toggle-row .tlabel {
            font-size: 13.5px;
            font-weight: 700;
        }

        .toggle-row .tsub {
            font-size: 11.5px;
            color: var(--text-muted);
            font-weight: 500;
            margin-top: 2px;
        }

        .toggle {
            width: 46px;
            height: 27px;
            border-radius: 20px;
            background: #DED5EC;
            position: relative;
            border: none;
            cursor: pointer;
            flex-shrink: 0;
            transition: background .2s ease;
        }

        .toggle::after {
            content: '';
            position: absolute;
            top: 3px;
            left: 3px;
            width: 21px;
            height: 21px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 2px 5px rgba(0, 0, 0, .25);
            transition: transform .2s ease;
        }

        .toggle.on {
            background: var(--grad-primary);
        }

        .toggle.on::after {
            transform: translateX(19px);
        }

        /* Custom checkbox */
        .check-row {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            cursor: pointer;
            padding: 2px 0;
        }

        .checkbox {
            width: 21px;
            height: 21px;
            border-radius: 7px;
            border: 1.8px solid var(--border);
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--surface);
            transition: all .15s ease;
            margin-top: 1px;
        }

        .checkbox.on {
            background: var(--grad-primary);
            border-color: var(--primary);
        }

        .checkbox i {
            font-size: 11px;
            color: #fff;
            opacity: 0;
            transform: scale(.6);
            transition: all .12s ease;
        }

        .checkbox.on i {
            opacity: 1;
            transform: scale(1);
        }

        .check-row span {
            font-size: 13px;
            color: var(--text-muted);
            line-height: 1.5;
        }

        /* Radio pill (community) */
        .pill-radio {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            border: 1.6px solid var(--border);
            border-radius: 14px;
            margin-bottom: 10px;
            cursor: pointer;
            background: var(--surface);
        }

        .pill-radio.active {
            border-color: var(--primary);
            background: var(--primary-light);
        }

        .pill-radio .rname {
            font-size: 14px;
            font-weight: 700;
        }

        .radio-dot {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            border: 1.8px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
        }

        .pill-radio.active .radio-dot {
            border-color: var(--primary);
        }

        .radio-dot::after {
            content: '';
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--grad-primary);
            opacity: 0;
            transform: scale(.5);
            transition: all .15s ease;
        }

        .pill-radio.active .radio-dot::after {
            opacity: 1;
            transform: scale(1);
        }

        /* ============ CUSTOM DATE PICKER ============ */
        .datefield {
            position: relative;
        }

        .datefield .input {
            cursor: pointer;
            padding-left: 44px;
        }

        .datefield i.leading {
            position: absolute;
            left: 16px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary);
            font-size: 14px;
            pointer-events: none;
        }

        .cal-pop {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: var(--surface);
            border-radius: 18px;
            box-shadow: var(--shadow-pop);
            border: 1px solid var(--border);
            padding: 16px;
            z-index: 90;
            display: none;
        }

        .cal-pop.open {
            display: block;
            animation: ddPop .18s ease;
        }

        .cal-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 12px;
        }

        .cal-head .cal-title {
            font-weight: 800;
            font-size: 14px;
        }

        .cal-nav {
            width: 30px;
            height: 30px;
            border-radius: 9px;
            border: none;
            background: var(--primary-light);
            color: var(--primary-dark);
            cursor: pointer;
        }

        .cal-selects {
            display: flex;
            gap: 8px;
            margin-bottom: 10px;
        }

        .cal-selects select {
            flex: 1;
            border: 1.4px solid var(--border);
            border-radius: 10px;
            padding: 7px 8px;
            font-size: 12.5px;
            font-weight: 700;
            color: var(--primary-dark);
            background: var(--surface);
        }

        .cal-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 3px;
            text-align: center;
        }

        .cal-grid .dow {
            font-size: 10.5px;
            font-weight: 800;
            color: var(--text-faint);
            padding: 5px 0;
        }

        .cal-grid .day {
            font-size: 12.5px;
            padding: 8px 0;
            border-radius: 9px;
            cursor: pointer;
            color: var(--text);
            font-weight: 600;
        }

        .cal-grid .day:hover {
            background: var(--primary-light);
        }

        .cal-grid .day.muted {
            color: var(--text-faint);
            opacity: .4;
        }

        .cal-grid .day.selected {
            background: var(--grad-primary);
            color: #fff;
            font-weight: 800;
        }

        /* ============ CARDS ============ */
        .card {
            background: var(--surface);
            border-radius: var(--radius-md);
            padding: 18px;
            box-shadow: var(--shadow-card);
        }

        .progress-dots {
            display: flex;
            align-items: center;
            gap: 6px;
            margin: 2px 0 20px;
        }

        .progress-dots .seg {
            height: 5px;
            flex: 1;
            border-radius: 6px;
            background: var(--border);
            overflow: hidden;
        }

        .progress-dots .seg i {
            display: block;
            height: 100%;
            width: 0;
            background: var(--grad-primary);
            border-radius: 6px;
            transition: width .4s ease;
        }

        .progress-dots .seg.done i {
            width: 100%;
        }

        .progress-dots .seg.current i {
            width: 55%;
        }

        /* ============ BOTTOM TAB BAR ============ */
        .tabbar {
            position: sticky;
            position: fixed;
            bottom: 0;
            z-index: 60;
            margin-top: auto;
            background: rgba(255, 255, 255, 0.92);
            backdrop-filter: blur(14px);
            border-radius: 24px 24px 0 0;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
            display: flex;
            justify-content: space-around;
            align-items: center;
            padding: 10px 6px;
            border-top: 1px solid rgba(0, 0, 0, 0.04);
            width: 100%;
        }

        .tabbar .tab {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            background: none;
            border: none;
            color: var(--text-faint);
            font-size: 10.5px;
            font-weight: 700;
            cursor: pointer;
            padding: 6px 10px;
            border-radius: 14px;
            flex: 1;
        }

        .tabbar .tab i {
            font-size: 17px;
        }

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

        .tabbar .tab.active i {
            transform: translateY(-1px);
        }

        .tabbar .tab.fab {
            position: relative;
            top: -18px;
        }

        .tabbar .tab.fab .fabcircle {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: var(--grad-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 19px;
            box-shadow: 0 10px 20px -6px rgba(123, 44, 191, 0.6);
            margin-bottom: 2px;
        }

        /* ============ MODAL / POPUP ============ */
        .modal-backdrop {
            position: fixed;
            inset: 0;
            background: rgba(32, 20, 48, 0.55);
            backdrop-filter: blur(3px);
            z-index: 200;
            display: none;
            align-items: flex-end;
            justify-content: center;
        }

        .modal-backdrop.open {
            display: flex;
            animation: fadeBg .25s ease;
        }

        @keyframes fadeBg {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .modal-sheet {
            width: 100%;
            max-width: 600px;
            background: var(--surface);
            border-radius: 28px 28px 0 0;
            padding: 28px 24px 30px;
            box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.2);
            transform: translateY(30px);
            animation: sheetUp .32s cubic-bezier(.22, .68, .36, 1) forwards;
            max-height: 86%;
            overflow-y: auto;
        }

        .modal-sheet::-webkit-scrollbar {
            width: var(--scrollbar-width);
        }

        .modal-sheet::-webkit-scrollbar-track {
            background: var(--scrollbar-track);
            border-radius: 10px;
        }

        .modal-sheet::-webkit-scrollbar-thumb {
            background: var(--scrollbar-thumb);
            border-radius: 10px;
        }

        @keyframes sheetUp {
            to {
                transform: translateY(0);
            }
        }

        .modal-center {
            align-items: center;
        }

        .modal-card {
            width: 92%;
            max-width: 380px;
            background: var(--surface);
            border-radius: 26px;
            padding: 30px 24px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
            text-align: center;
            transform: scale(.92);
            opacity: 0;
            animation: cardPop .3s cubic-bezier(.22, .68, .36, 1) forwards;
        }

        @keyframes cardPop {
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

        .modal-handle {
            width: 42px;
            height: 5px;
            background: var(--border);
            border-radius: 6px;
            margin: 0 auto 18px;
        }

        .modal-icon-circle {
            width: 74px;
            height: 74px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 18px;
            font-size: 30px;
        }

        /* ============ TOAST ============ */
        .toast {
            position: fixed;
            top: 24px;
            left: 50%;
            transform: translateX(-50%) translateY(-24px);
            background: rgba(34, 22, 50, 0.95);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            color: #fff;
            padding: 13px 18px;
            border-radius: 18px;
            font-size: 13.5px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 12px;
            box-shadow: 0 16px 36px -8px rgba(34, 22, 50, 0.65), 0 0 0 1px rgba(240, 228, 250, 0.15);
            border: 1px solid rgba(157, 78, 221, 0.35);
            z-index: 9999;
            opacity: 0;
            pointer-events: none;
            transition: all .32s cubic-bezier(.22, .68, .36, 1);
            white-space: normal !important;
            word-break: break-word;
            max-width: min(92vw, 440px);
            width: max-content;
            line-height: 1.45;
        }

        .toast i {
            color: var(--accent);
            font-size: 16px;
            flex-shrink: 0;
        }

        .toast #toastMsg {
            flex: 1;
            min-width: 0;
            word-break: break-word;
            white-space: normal;
        }

        .toast.show {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
            pointer-events: auto;
        }

        /* ============ MISC COMPONENTS ============ */
        .otp-boxes {
            display: flex;
            gap: 12px;
            justify-content: center;
            margin: 24px auto 12px;
            max-width: 280px;
        }

        .otp-boxes input {
            width: 52px;
            height: 58px;
            text-align: center;
            font-size: 24px;
            font-weight: 800;
            border-radius: 14px;
            border: 1.8px solid var(--border);
            color: var(--primary-dark);
            background: var(--surface);
            transition: all 0.15s ease;
        }

        .otp-boxes input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-light);
            outline: none;
        }

        .avatar-upload {
            width: 112px;
            height: 112px;
            padding: 2px;
            border-radius: 50%;
            margin: 6px auto 8px;
            position: relative;
            background: var(--primary-light);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px dashed var(--secondary);
            cursor: pointer;
        }

        .avatar-upload img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 50%;
        }

        .avatar-upload i {
            font-size: 24px;
            color: var(--primary);
        }

        .avatar-upload .cam {
            position: absolute;
            bottom: 2px;
            right: 2px;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: var(--grad-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 12px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
        }

        .avatar-upload .cam i {
            color: white;
            font-size: 12px;
        }

        .sib-card,
        .hobby-card {
            background: var(--surface);
            border: 1.6px solid var(--border);
            border-radius: 14px;
            padding: 6px 12px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 12px;
            transition: border-color .18s ease, box-shadow .18s ease;
        }

        .sib-card:focus-within,
        .hobby-card:focus-within {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-light);
        }

        .sib-card .input,
        .hobby-card .input {
            flex: 1;
            border: none !important;
            outline: none !important;
            padding: 8px 8px !important;
            background: transparent !important;
            box-shadow: none !important;
            font-size: 14px;
            color: var(--text);
            min-width: 0;
        }

        .sib-card .input:focus,
        .hobby-card .input:focus,
        .sib-card .input:focus-visible,
        .hobby-card .input:focus-visible {
            outline: none !important;
            box-shadow: none !important;
            border: none !important;
        }

        .sib-remove,
        .hobby-remove {
            width: 32px;
            height: 32px;
            border-radius: 10px;
            background: var(--error-bg);
            color: var(--error);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
        }

        .add-dashed {
            width: 100%;
            border: 1.8px dashed var(--secondary);
            color: var(--primary);
            background: var(--primary-light);
            border-radius: 14px;
            padding: 12px;
            font-weight: 700;
            font-size: 13px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .search-bar {
            display: flex;
            align-items: center;
            gap: 10px;
            background: var(--surface);
            border: 1.6px solid var(--border);
            border-radius: 16px;
            padding: 13px 16px;
            box-shadow: var(--shadow-card);
        }

        .search-bar input {
            border: none;
            outline: none;
            flex: 1;
            font-size: 14px;
            background: transparent;
        }

        .search-bar i {
            color: var(--text-faint);
        }

        .seg-toggle {
            display: flex;
            background: var(--surface);
            border-radius: 16px;
            padding: 5px;
            box-shadow: var(--shadow-card);
            gap: 4px;
        }

        .seg-toggle button {
            flex: 1;
            border: none;
            background: none;
            padding: 11px 0;
            border-radius: 12px;
            font-weight: 800;
            font-size: 13.5px;
            color: var(--text-muted);
            cursor: pointer;
            transition: all .2s ease;
        }

        .seg-toggle button.active {
            background: var(--grad-primary);
            color: #fff;
            box-shadow: 0 6px 14px -6px rgba(123, 44, 191, 0.5);
        }

        .hero-tile {
            border-radius: 20px;
            padding: 20px;
            position: relative;
            overflow: hidden;
            color: #fff;
            min-height: 112px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            cursor: pointer;
        }

        .hero-tile.girls {
            background: linear-gradient(135deg, #7B2CBF, #B36BE0);
        }

        .hero-tile.boys {
            background: linear-gradient(135deg, #5A189A, #7B2CBF);
        }

        .hero-tile .htitle {
            font-family: var(--font-display);
            font-size: 19px;
            font-weight: 600;
        }

        .hero-tile .hsub {
            font-size: 11.5px;
            opacity: .85;
            margin-top: 3px;
        }

        .hero-tile i.deco {
            position: absolute;
            right: -6px;
            bottom: -10px;
            font-size: 64px;
            opacity: .18;
        }

        .hero-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin: 16px 0 16px;
        }
        /* Skeleton Shimmer Loading Cards */
        .skeleton-card {
            background: var(--surface);
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-card);
            margin-bottom: 16px;
        }

        .skeleton-card .skeleton-img {
            height: 210px;
            width: 100%;
        }

        .skeleton-card .skeleton-body {
            padding: 14px 16px;
        }

        .skeleton-line {
            background: #ede8f5;
            border-radius: 6px;
        }

        .shimmer {
            background: linear-gradient(90deg, #ede8f5 0%, #f9f7fc 50%, #ede8f5 100%);
            background-size: 200% 100%;
            animation: shimmerEffect 1.5s infinite;
        }

        @keyframes shimmerEffect {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        .profile-card {
            background: var(--surface);
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-card);
            margin-bottom: 16px;
            cursor: pointer;
        }

        .profile-card .pimg-wrap {
            position: relative;
            height: 210px;
            overflow: hidden;
            background: var(--primary-light);
        }

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

        .profile-card .verified-chip {
            position: absolute;
            left: 12px;
            top: 12px;
            background: rgba(46, 157, 98, .92);
            color: #fff;
            font-size: 10.5px;
            font-weight: 800;
            padding: 5px 10px;
            border-radius: 20px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .profile-card .fav-btn {
            position: absolute;
            right: 12px;
            top: 12px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, .92);
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            color: var(--error);
            font-size: 15px;
            cursor: pointer;
        }

        .profile-card .fav-btn.active i {
            font-weight: 900;
        }

        .profile-card .fav-btn i {
            font-weight: 400;
        }

        .profile-card .fav-btn.active i:before {
            content: "\f004";
            font-weight: 900;
        }

        .profile-card .pbody {
            padding: 15px 16px 17px;
        }

        .profile-card .pname {
            font-family: var(--font-display);
            font-size: 18px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .profile-card .ploc {
            font-size: 12.5px;
            color: var(--text-muted);
            margin-top: 2px;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .pmeta-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
            margin: 12px 0 14px;
        }

        .pmeta-grid .m {
            font-size: 12px;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .pmeta-grid .m i {
            color: var(--primary);
            width: 14px;
            text-align: center;
        }

        .profile-card .vbtn {
            width: 100%;
            background: var(--primary-light);
            color: var(--primary-dark);
            border: none;
            border-radius: 13px;
            padding: 11px;
            font-weight: 800;
            font-size: 13px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .full-hero {
            position: relative;
            height: 290px;
            overflow: hidden;
        }

        .full-hero img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .full-hero .grad {
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(20, 10, 32, .75) 100%);
        }

        .full-hero .fh-top {
            position: absolute;
            top: 16px;
            left: 16px;
            right: 16px;
            display: flex;
            justify-content: space-between;
            z-index: 2;
        }

        .full-hero .fh-top .icon-btn {
            background: rgba(255, 255, 255, .92);
        }

        .full-hero .fh-bottom {
            position: absolute;
            left: 20px;
            right: 20px;
            bottom: 16px;
            color: #fff;
            z-index: 2;
        }

        .full-hero .fh-bottom .fname {
            font-family: var(--font-display);
            font-size: 25px;
            font-weight: 600;
        }

        .full-hero .fh-bottom .floc {
            font-size: 13px;
            opacity: .9;
            margin-top: 4px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .verified-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: rgba(46, 157, 98, .9);
            padding: 5px 12px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 800;
            margin-top: 10px;
        }

        .detail-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 0;
            border-bottom: 1px solid var(--border);
        }

        .detail-row:last-child {
            border-bottom: none;
        }

        .detail-row .dlabel {
            font-size: 12.5px;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .detail-row .dlabel i {
            color: var(--primary);
            width: 14px;
        }

        .detail-row .dval {
            font-size: 13.5px;
            font-weight: 700;
            color: var(--text);
            text-align: right;
        }

        .chip-row {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 6px;
        }

        .chip {
            background: var(--primary-light);
            color: var(--primary-dark);
            padding: 7px 13px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
        }

        .contact-btn-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-top: 8px;
        }

        .contact-btn {
            border-radius: 15px;
            padding: 13px;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            font-weight: 800;
            font-size: 12.5px;
            cursor: pointer;
            border: none;
        }

        .contact-btn.wa {
            background: #E7F5EC;
            color: #1D7A44;
        }

        .contact-btn.call {
            background: var(--primary-light);
            color: var(--primary-dark);
        }

        .contact-btn i {
            font-size: 17px;
        }

        .contact-locked-box {
            background: linear-gradient(135deg, #FFFDF7 0%, #FEF8EC 100%);
            border: 1.5px solid #F6D884;
            border-left: 4.5px solid #DDA200;
            border-radius: 14px;
            padding: 14px 16px;
            margin: 8px 0 16px;
            box-shadow: 0 4px 14px -6px rgba(217, 119, 6, 0.12);
        }

        .contact-unlocked-banner {
            background: #E7F5EC;
            border: 1.5px solid #A7F3D0;
            border-radius: 14px;
            padding: 12px 14px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .faq-item {
            border-bottom: 1px solid var(--border);
            padding: 15px 0;
            cursor: pointer;
        }

        .faq-item .faq-q {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 700;
            font-size: 13.5px;
            gap: 10px;
        }

        .faq-item .faq-q i {
            color: var(--primary);
            transition: transform .2s ease;
            font-size: 12px;
            flex-shrink: 0;
        }

        .faq-item.open .faq-q i {
            transform: rotate(180deg);
        }

        .faq-item .faq-a {
            max-height: 0;
            overflow: hidden;
            transition: max-height .25s ease;
            font-size: 12.8px;
            color: var(--text-muted);
            line-height: 1.6;
        }

        .faq-item.open .faq-a {
            max-height: 200px;
            padding-top: 10px;
        }

        .step-item {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            margin-bottom: 22px;
        }

        .step-item .snum {
            width: 36px;
            height: 36px;
            border-radius: 11px;
            background: var(--grad-primary);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 13px;
            flex-shrink: 0;
            margin-top: 2px;
            box-shadow: 0 8px 16px -6px rgba(123, 44, 191, 0.5);
        }

        .step-item .stitle {
            font-weight: 800;
            font-size: 14px;
        }

        .step-item .sdesc {
            font-size: 12.5px;
            color: var(--text-muted);
            margin-top: 3px;
            line-height: 1.5;
            word-break: break-word;
        }

        .menu-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 15px 4px;
            cursor: pointer;
            border-bottom: 1px solid var(--border);
        }

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

        .menu-item .micon {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            background: var(--primary-light);
            color: var(--primary-dark);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 15px;
            flex-shrink: 0;
        }

        .menu-item .mtxt {
            flex: 1;
            font-weight: 700;
            font-size: 14px;
        }

        .menu-item .msub {
            font-size: 11px;
            color: var(--text-faint);
            font-weight: 500;
            margin-top: 2px;
        }

        .menu-item i.chev {
            color: var(--text-faint);
            font-size: 12px;
        }

        .menu-item.danger .micon {
            background: var(--error-bg);
            color: var(--error);
        }

        .menu-item.danger .mtxt {
            color: var(--error);
        }

        .notif-item {
            display: flex;
            gap: 12px;
            padding: 14px 0;
            border-bottom: 1px solid var(--border);
        }

        .notif-item .nicon {
            width: 38px;
            height: 38px;
            border-radius: 50%;
            background: var(--primary-light);
            color: var(--primary-dark);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            flex-shrink: 0;
        }

        .notif-item .ntxt {
            font-size: 13px;
            font-weight: 700;
        }

        .notif-item .nsub {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 3px;
        }

        .notif-item .ntime {
            font-size: 10.5px;
            color: var(--text-faint);
            margin-top: 5px;
            font-weight: 700;
        }

        .notif-item.unread .nicon {
            background: var(--grad-primary);
            color: #fff;
        }

        .notif-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent);
            flex-shrink: 0;
            margin-top: 5px;
        }

        .report-opt {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 13px 14px;
            border: 1.6px solid var(--border);
            border-radius: 14px;
            margin-bottom: 10px;
            cursor: pointer;
        }

        .report-opt.active {
            border-color: var(--primary);
            background: var(--primary-light);
        }

        .email-mock {
            background: var(--surface);
            border-radius: 18px;
            border: 1px solid var(--border);
            overflow: hidden;
            box-shadow: var(--shadow-card);
        }

        .email-mock .em-head {
            background: #F5F0FB;
            padding: 14px 16px;
            border-bottom: 1px solid var(--border);
        }

        .email-mock .em-head .subj {
            font-weight: 800;
            font-size: 13.5px;
        }

        .email-mock .em-head .from {
            font-size: 11.5px;
            color: var(--text-muted);
            margin-top: 4px;
        }

        .email-mock .em-body {
            padding: 18px 16px;
            font-size: 13px;
            line-height: 1.7;
            color: var(--text);
        }

        .email-mock .em-body .cta {
            margin-top: 16px;
        }

        .badge-plan {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--grad-gold);
            color: #3B2A00;
            padding: 6px 14px;
            border-radius: 20px;
            font-weight: 800;
            font-size: 11.5px;
        }

        .empty-state {
            text-align: center;
            padding: 60px 20px;
        }

        .empty-state i {
            font-size: 44px;
            color: var(--secondary);
            opacity: .5;
            margin-bottom: 16px;
        }

        .empty-state h3 {
            font-family: var(--font-display);
            font-size: 18px;
            margin: 0 0 8px;
        }

        .empty-state p {
            font-size: 13px;
            color: var(--text-muted);
            max-width: 240px;
            margin: 0 auto 20px;
        }

        .stat-strip {
            display: flex;
            background: var(--surface);
            border-radius: 16px;
            box-shadow: var(--shadow-card);
            padding: 14px;
            margin-bottom: 18px;
        }

        .stat-strip .s {
            flex: 1;
            text-align: center;
            border-right: 1px solid var(--border);
        }

        .stat-strip .s:last-child {
            border-right: none;
        }

        .stat-strip .s b {
            display: block;
            font-family: var(--font-display);
            font-size: 19px;
            color: var(--primary-dark);
        }

        .stat-strip .s small {
            font-size: 10px;
            color: var(--text-muted);
            font-weight: 700;
        }

        .logo-badge {
            width: 100%;
            height: 100%;
        }

        .spin {
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to {
                transform: rotate(360deg);
            }
        }

        .skeleton {
            background: linear-gradient(90deg, var(--border) 25%, #F6F1FB 37%, var(--border) 63%);
            background-size: 400% 100%;
            animation: shimmer 1.4s ease infinite;
        }

        @keyframes shimmer {
            0% {
                background-position: 100% 0;
            }

            100% {
                background-position: 0 0;
            }
        }

        /* small screen tightening */
        @media (max-width:400px) {
            .screen-pad {
                padding: 16px 16px 100px;
            }

            .h-xl {
                font-size: 24px;
            }

            .hero-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .row-2 {
                grid-template-columns: 1fr;
                gap: 8px;
            }

            .contact-btn-row {
                grid-template-columns: 1fr 1fr;
                gap: 8px;
            }

            .stat-strip {
                padding: 10px;
            }

            .stat-strip .s b {
                font-size: 16px;
            }

            .profile-card .pimg-wrap {
                height: 180px;
            }

            .full-hero {
                height: 220px;
            }
        }

        /* mobile first - full width always */
        @media (max-width:767px) {
            .app-container {
                max-width: 100%;
                margin: 0;
                border-radius: 0;
                min-height: 100vh;
            }

            .tabbar {
                border-radius: 0;
                padding: 8px 4px;
            }
        }

        /* Tablet and above */
        @media (min-width:768px) and (max-width:1024px) {
            .app-container {
                max-width: 100%;
                margin: 0 auto;
            }

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

        /* Large desktop */
        @media (min-width:1025px) {
            .app-container {
                max-width: 100%;
                margin: 0 auto;
            }
        }

        /* ==============================================================================
           REAL-TIME CHAT TOAST NOTIFICATION & BADGE SYSTEM
           ============================================================================== */
        .chat-toast-banner {
            position: fixed;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            z-index: 99999;
            width: calc(100% - 32px);
            max-width: 440px;
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(123, 44, 191, 0.18);
            border-radius: 18px;
            box-shadow: 0 16px 36px -10px rgba(74, 20, 140, 0.28), 0 4px 12px rgba(0, 0, 0, 0.06);
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            cursor: pointer;
            animation: chatToastSlideIn 0.38s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
            transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
        }

        .chat-toast-banner:hover {
            transform: translateX(-50%) translateY(-2px);
            box-shadow: 0 20px 42px -10px rgba(74, 20, 140, 0.35);
        }

        .chat-toast-banner.dismissing {
            animation: chatToastSlideOut 0.25s ease forwards;
        }

        @keyframes chatToastSlideIn {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-30px) scale(0.94);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0) scale(1);
            }
        }

        @keyframes chatToastSlideOut {
            from {
                opacity: 1;
                transform: translateX(-50%) translateY(0) scale(1);
            }
            to {
                opacity: 0;
                transform: translateX(-50%) translateY(-25px) scale(0.92);
            }
        }

        .chat-toast-avatar {
            width: 44px;
            height: 44px;
            border-radius: 13px;
            object-fit: cover;
            border: 2px solid #fff;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
            flex-shrink: 0;
        }

        .chat-toast-body {
            flex: 1;
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .chat-toast-header {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .chat-toast-title {
            font-size: 13.5px;
            font-weight: 800;
            color: var(--text-heading, #1f1430);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .chat-toast-tag {
            font-size: 9.5px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            background: linear-gradient(135deg, #7B2CBF, #9D4EDD);
            color: #fff;
            padding: 2px 6px;
            border-radius: 6px;
            flex-shrink: 0;
        }

        .chat-toast-text {
            font-size: 12px;
            color: var(--text-muted, #665b75);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            line-height: 1.35;
        }

        .chat-toast-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }

        .chat-toast-reply-btn {
            background: var(--grad-primary);
            color: #fff;
            border: none;
            border-radius: 10px;
            padding: 6px 12px;
            font-size: 11.5px;
            font-weight: 700;
            font-family: inherit;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
            box-shadow: 0 4px 12px rgba(123, 44, 191, 0.35);
            transition: all 0.15s ease;
        }

        .chat-toast-reply-btn:hover {
            transform: scale(1.04);
            filter: brightness(1.08);
        }

        .chat-toast-close-btn {
            background: rgba(0, 0, 0, 0.05);
            border: none;
            width: 28px;
            height: 28px;
            border-radius: 8px;
            color: var(--text-faint, #9488a5);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            transition: all 0.15s ease;
        }

        .chat-toast-close-btn:hover {
            background: rgba(0, 0, 0, 0.1);
            color: var(--text, #333);
        }

        /* --- Unread Badge Styles --- */
        .home-inbox-badge {
            position: absolute;
            top: -2px;
            right: -3px;
            min-width: 17px;
            height: 17px;
            padding: 0 4px;
            border-radius: 10px;
            background: linear-gradient(135deg, #e63946, #d90429);
            color: #fff;
            font-size: 9.5px;
            font-weight: 800;
            line-height: 17px;
            text-align: center;
            box-shadow: 0 2px 6px rgba(230, 57, 70, 0.5);
            border: 2px solid #fff;
            pointer-events: none;
            box-sizing: content-box;
        }

        .tabbar .tab {
            position: relative;
        }

        .tab-badge {
            position: absolute;
            top: 4px;
            right: calc(50% - 20px);
            min-width: 16px;
            height: 16px;
            padding: 0 4px;
            border-radius: 9px;
            background: linear-gradient(135deg, #e63946, #d90429);
            color: #fff;
            font-size: 9.5px;
            font-weight: 800;
            line-height: 16px;
            text-align: center;
            box-shadow: 0 2px 6px rgba(230, 57, 70, 0.45);
            border: 1.5px solid #fff;
            box-sizing: content-box;
        }

        .desktop-sidebar .ds-item {
            position: relative;
        }

        .ds-badge {
            position: absolute;
            top: 5px;
            right: 10px;
            min-width: 16px;
            height: 16px;
            padding: 0 4px;
            border-radius: 9px;
            background: linear-gradient(135deg, #e63946, #d90429);
            color: #fff;
            font-size: 9.5px;
            font-weight: 800;
            line-height: 16px;
            text-align: center;
            box-shadow: 0 2px 6px rgba(230, 57, 70, 0.45);
            border: 1.5px solid #fff;
            box-sizing: content-box;
        }

        .seg-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 17px;
            height: 17px;
            padding: 0 5px;
            border-radius: 9px;
            background: linear-gradient(135deg, #e63946, #d90429);
            color: #fff;
            font-size: 10px;
            font-weight: 800;
            margin-left: 6px;
            vertical-align: middle;
            box-shadow: 0 2px 5px rgba(230, 57, 70, 0.35);
        }

        .chat-thread-unread-pill {
            min-width: 20px;
            height: 20px;
            padding: 0 6px;
            border-radius: 10px;
            background: var(--grad-primary);
            color: #fff;
            font-size: 10.5px;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 3px 8px rgba(123, 44, 191, 0.35);
            flex-shrink: 0;
            margin-left: 8px;
        }

