/* ═══════════════════════════════════════════════════════════
   XTROLOGY – Yog AI  |  style.css
   Mobile-First, Bootstrap 5 augmented
═══════════════════════════════════════════════════════════ */

/* ── CSS VARIABLES ────────────────────────────────────── */
:root {
    --saffron: #f97316;
    --saffron-lt: #fff7ed;
    --saffron-mid: #fed7aa;
    --saffron-dk: #ea6a0a;
    --maroon: #7c1d2e;
    --maroon-lt: #fdf2f4;
    --gold: #d97706;
    --gold-lt: #fefce8;
    --indigo: #4338ca;
    --slate: #1e293b;
    --slate-mid: #475569;
    --slate-lt: #94a3b8;
    --slate-xlt: #cbd5e1;
    --bg: #f8f7f5;
    --surface: #ffffff;
    --border: #e8e4de;
    --border-soft: #f1ede7;
    --success: #16a34a;
    --error: #dc2626;
    --warn: #d97706;

    --header-h: 58px;
    --sidebar-w: 240px;
    --radius: 14px;
    --radius-sm: 9px;
    --radius-xs: 6px;
    --shadow: 0 2px 16px rgba(0, 0, 0, .07);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, .10);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, .14);

    --grad-primary: linear-gradient(135deg, var(--saffron), var(--gold));
    --grad-maroon: linear-gradient(135deg, var(--maroon), #a83250);
}

/* ── RESET & BASE ─────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--slate);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    border: none;
    outline: none;
}

input,
select,
textarea {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
}

/* ══════════════════════════════════════════════════════════
   REGISTRATION
══════════════════════════════════════════════════════════ */
.reg-wrapper {
    min-height: 100vh;
    background: linear-gradient(160deg, #fff7ed 0%, #fefce8 50%, #f0f9ff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 16px 40px;
}

.reg-header {
    width: 100%;
    max-width: 480px;
    padding: 28px 0 20px;
    text-align: center;
}

.reg-logo {
    margin-bottom: 24px;
}

.reg-logo-mark {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--maroon);
    letter-spacing: 4px;
}

.reg-logo-sub {
    font-size: 10px;
    letter-spacing: 4px;
    color: var(--saffron);
    text-transform: uppercase;
    font-weight: 500;
}

.reg-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.reg-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
}

.reg-step+.reg-step::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 14px;
    width: 48px;
    height: 2px;
    background: var(--border);
}

.reg-step.done+.reg-step::before,
.reg-step.active+.reg-step::before {
    background: var(--saffron);
}

.reg-step span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border);
    color: var(--slate-lt);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    margin: 0 24px;
}

.reg-step small {
    font-size: 10px;
    color: var(--slate-lt);
}

.reg-step.active span {
    background: var(--saffron);
    color: #fff;
}

.reg-step.done span {
    background: var(--success);
    color: #fff;
}

.reg-step.active small,
.reg-step.done small {
    color: var(--saffron);
}

.reg-body {
    width: 100%;
    max-width: 420px;
}

.reg-step-panel {
    display: none;
    flex-direction: column;
    gap: 16px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 32px 28px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-soft);
    animation: fadeUp .3s ease;
}

.reg-step-panel.active {
    display: flex;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

.reg-icon {
    font-size: 42px;
    text-align: center;
}

.reg-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    color: var(--maroon);
    text-align: center;
    font-weight: 600;
}

.reg-desc {
    font-size: 13px;
    color: var(--slate-mid);
    text-align: center;
}

.reg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.reg-field label {
    font-size: 11.5px;
    color: var(--slate-mid);
    font-weight: 500;
}

.input-with-btn {
    display: flex;
    gap: 8px;
}

.input-with-btn input {
    flex: 1;
}

.reg-field input,
.reg-field select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--slate);
    transition: border-color .18s;
}

.reg-field input:focus,
.reg-field select:focus {
    border-color: var(--saffron);
    background: #fff;
}

.btn-detect {
    padding: 10px 14px;
    background: var(--saffron-lt);
    border: 1.5px solid var(--saffron-mid);
    border-radius: var(--radius-sm);
    color: var(--saffron-dk);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: all .18s;
}

.btn-detect:hover {
    background: var(--saffron);
    color: #fff;
    border-color: var(--saffron);
}

.detect-status {
    font-size: 11.5px;
    color: var(--slate-mid);
    min-height: 16px;
}

.reg-loc-chip {
    background: var(--saffron-lt);
    border: 1px solid var(--saffron-mid);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    color: var(--maroon);
    font-weight: 500;
    text-align: center;
}

.mobile-input-wrap {
    display: flex;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg);
    transition: border-color .18s;
}

.mobile-input-wrap:focus-within {
    border-color: var(--saffron);
    background: #fff;
}

.mobile-prefix {
    padding: 10px 12px;
    background: var(--border-soft);
    color: var(--slate-mid);
    font-size: 13px;
    border-right: 1px solid var(--border);
}

.mobile-input-wrap input {
    border: none;
    background: transparent;
    padding: 10px 14px;
    flex: 1;
    color: var(--slate);
}

.otp-boxes {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.otp-box {
    width: 46px;
    height: 52px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--maroon);
    background: var(--bg);
    transition: border-color .18s;
}

.otp-box:focus {
    border-color: var(--saffron);
    background: #fff;
}

.resend-row {
    text-align: center;
    font-size: 12.5px;
    color: var(--slate-mid);
}

.btn-resend {
    background: none;
    color: var(--saffron);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: underline;
}

.reg-err {
    color: var(--error);
    font-size: 12px;
    text-align: center;
    min-height: 16px;
}

.reg-btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--grad-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .3px;
    box-shadow: 0 3px 12px rgba(249, 115, 22, .3);
    transition: all .2s;
}

.reg-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(249, 115, 22, .4);
}

.reg-btn-primary:disabled {
    opacity: .5;
    transform: none;
}

.reg-btn-ghost {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--slate-mid);
    transition: all .18s;
}

.reg-btn-ghost:hover {
    border-color: var(--saffron);
    color: var(--saffron);
}

.reg-loader {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.reg-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border);
    border-top-color: var(--saffron);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

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

/* ══════════════════════════════════════════════════════════
   APP HEADER
══════════════════════════════════════════════════════════ */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 12px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .07);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

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

.hamburger {
    /*width: 36px;*/
    height: 36px;
    /*border-radius: var(--radius-xs);*/
    /*background: var(--bg);*/
    /*border: 1px solid var(--border);*/
    color: var(--slate-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all .18s;
    padding: 0px!important; 
    margin: 0px!important; 
    border: 0!important; 
    /*outline: 1px solid red;*/
}

.hamburger:hover {
    /*border-color: var(--saffron);*/
    color: var(--saffron);
}

.header-logo {
    line-height: 1;
}

.logo-mark {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--maroon);
    letter-spacing: 3px;
}

.logo-sub {
    display: block;
    font-size: 8.5px;
    letter-spacing: 3px;
    color: var(--saffron);
    text-transform: uppercase;
    font-weight: 500;
}

.header-mobile {
    font-size: 12.5px;
    color: var(--slate-mid);
    font-weight: 500;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 14px;
}

.wallet-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--gold-lt);
    border: 1px solid #fde68a;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--gold);
    white-space: nowrap;
}

.wallet-badge i {
    font-size: 11px;
}

/* ══════════════════════════════════════════════════════════
   APP LAYOUT
══════════════════════════════════════════════════════════ */
.app-layout {
    display: flex;
    padding-top: var(--header-h);
    min-height: 100vh;
}

/* ── SIDEBAR ── */
.app-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h);
    bottom: 0;
    left: 0;
    z-index: 800;
    overflow-y: auto;
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 14px;
    border-bottom: 1px solid var(--border-soft);
}

.su-avatar {
    font-size: 28px;
    color: var(--slate-lt);
}

.su-mobile {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--slate);
}

.su-wallet {
    font-size: 11px;
    color: var(--gold);
    font-weight: 600;
    margin-top: 2px;
}

.sidebar-nav {
    padding: 12px 10px;
    flex: 1;
}

.nav-section-label {
    font-size: 9.5px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--slate-lt);
    padding: 10px 8px 4px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--slate-mid);
    transition: all .15s;
    margin-bottom: 2px;
}

.nav-item i {
    width: 16px;
    text-align: center;
    font-size: 13px;
}

.nav-item:hover {
    background: var(--saffron-lt);
    color: var(--maroon);
}

.nav-item.active {
    background: var(--saffron-lt);
    color: var(--maroon);
    font-weight: 600;
    border-left: 3px solid var(--saffron);
}

.nav-item.disabled {
    opacity: .4;
    pointer-events: none;
}

.sidebar-active-profile {
    padding: 12px 16px;
    margin: 8px 10px;
    background: var(--saffron-lt);
    border: 1px solid var(--saffron-mid);
    border-radius: var(--radius-sm);
}

.sap-label {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--slate-lt);
    margin-bottom: 4px;
}

.sap-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--maroon);
}

/* Mobile sidebar backdrop */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 799;
}

/* ── MAIN ── */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-w);
    min-height: calc(100vh - var(--header-h));
    padding: 24px;
}

/* ══════════════════════════════════════════════════════════
   SECTIONS
══════════════════════════════════════════════════════════ */
.app-section {
    display: none;
    animation: fadeUp .25s ease;
}

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

.section-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--maroon);
    margin: 0;
}

.section-sub {
    font-size: 12px;
    color: var(--slate-lt);
    margin: 0;
}

.btn-back-section {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--slate-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .18s;
}

.btn-back-section:hover {
    border-color: var(--saffron);
    color: var(--saffron);
}

.btn-add-profile {
    margin-left: auto;
    padding: 8px 18px;
    background: var(--grad-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px;
    box-shadow: 0 3px 10px rgba(249, 115, 22, .25);
    transition: all .18s;
}

.btn-add-profile:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(249, 115, 22, .35);
}

/* ══════════════════════════════════════════════════════════
   PROFILE GRID
══════════════════════════════════════════════════════════ */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.profile-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow);
}

.profile-card:hover {
    border-color: var(--saffron);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249, 115, 22, .15);
}

.pc-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(249, 115, 22, .3);
}

.pc-info {
    flex: 1;
    min-width: 0;
}

.pc-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--slate);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pc-meta {
    font-size: 11.5px;
    color: var(--slate-lt);
    margin-top: 3px;
}

.pc-arrow {
    color: var(--saffron-mid);
    font-size: 13px;
}

.profile-card.add-card {
    border-style: dashed;
    background: transparent;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    min-height: 100px;
    color: var(--slate-lt);
}

.profile-card.add-card:hover {
    border-color: var(--saffron);
    color: var(--saffron);
    background: var(--saffron-lt);
}

.add-card i {
    font-size: 22px;
}

.add-card span {
    font-size: 13px;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   CREATE PROFILE FORM
══════════════════════════════════════════════════════════ */
.form-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    /* max-width: 600px; */
    margin-top: 10px;
}

.form-card-sub {
    font-size: 12.5px;
    color: var(--slate-lt);
    margin-bottom: 20px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 11.5px;
    color: var(--slate-mid);
    font-weight: 500;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--slate);
    transition: border-color .18s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--saffron);
    background: #fff;
}

.form-err {
    color: var(--error);
    font-size: 12px;
    margin-bottom: 12px;
}

.btn-create-profile {
    padding: 12px 28px;
    background: var(--grad-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 3px 12px rgba(249, 115, 22, .3);
    transition: all .2s;
}

.btn-create-profile:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(249, 115, 22, .4);
}

.btn-create-profile:disabled {
    opacity: .5;
    transform: none;
}

/* ══════════════════════════════════════════════════════════
   PROFILE DETAIL TABS
══════════════════════════════════════════════════════════ */
.profile-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    overflow-x: auto;
}

.ptab {
    padding: 10px 22px;
    background: transparent;
    color: var(--slate-mid);
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 7px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all .18s;
    white-space: nowrap;
}

.ptab:hover {
    color: var(--saffron);
}

.ptab.active {
    color: var(--maroon);
    border-bottom-color: var(--saffron);
    font-weight: 700;
}

.ptab-panel {
    display: none;
}

.ptab-panel.active {
    display: block;
}

/* ══════════════════════════════════════════════════════════
   KUNDLI UI
══════════════════════════════════════════════════════════ */
.kundli-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 0;
}

.k-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--saffron);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.kundli-loading p {
    font-size: 13px;
    color: var(--slate-mid);
}

.kundli-err {
    text-align: center;
    padding: 40px;
    color: var(--error);
    font-size: 13px;
}

#kundli-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kundli-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

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

.kc-header {
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--maroon-lt), #fff);
    border-bottom: 1px solid var(--border-soft);
    font-size: 13px;
    font-weight: 700;
    color: var(--maroon);
    display: flex;
    align-items: center;
    gap: 8px;
}

.kc-header i {
    color: var(--saffron);
}

.kc-body {
    padding: 14px 16px;
}

.kd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 12.5px;
}

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

.kd-label {
    color: var(--slate-mid);
}

.kd-val {
    font-weight: 600;
    color: var(--slate);
}

.sign-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--saffron-lt);
    border: 1px solid var(--saffron-mid);
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--maroon);
}

.sign-badge .sign-symbol {
    font-size: 18px;
}

.kundli-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.kundli-table th {
    padding: 8px 12px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: var(--slate-lt);
    background: #f8f7f5;
    border-bottom: 1px solid var(--border);
}

.kundli-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--slate);
}

.kundli-table tr:last-child td {
    border-bottom: none;
}

.kundli-table tr:hover td {
    background: var(--saffron-lt);
}

.planet-icon {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
}

.planet-icon i {
    color: var(--saffron);
    font-size: 11px;
}

.retro-tag {
    background: #fee2e2;
    color: var(--error);
    font-size: 10px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 99px;
}

.dasha-current {
    background: linear-gradient(135deg, var(--saffron-lt), var(--gold-lt));
    border: 1px solid var(--saffron-mid);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 12px;
}

.dasha-planet {
    font-size: 15px;
    font-weight: 700;
    color: var(--maroon);
}

.dasha-period {
    font-size: 11.5px;
    color: var(--slate-mid);
    margin-top: 3px;
}

.dasha-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dasha-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px;
    background: var(--bg);
    border-radius: var(--radius-xs);
    font-size: 12px;
}

.dasha-item-planet {
    font-weight: 600;
    color: var(--slate);
}

.dasha-item-dates {
    color: var(--slate-mid);
}

.yoga-item,
.dosha-item {
    padding: 10px 14px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-xs);
    margin-bottom: 8px;
    background: var(--bg);
}

.yoga-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--maroon);
}

.yoga-desc {
    font-size: 12px;
    color: var(--slate-mid);
    margin-top: 3px;
}

.dosha-present {
    border-left: 3px solid var(--error);
}

.dosha-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--error);
}

/* ══════════════════════════════════════════════════════════
   CHAT EMBED LOADING
══════════════════════════════════════════════════════════ */
.embed-loading {
    max-width: 420px;
    margin: 40px auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-md);
}

.el-steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.el-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    opacity: .4;
    transition: opacity .3s;
}

.el-step.active {
    opacity: 1;
}

.el-step.done {
    opacity: 1;
}

.el-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-mid);
    flex-shrink: 0;
    transition: background .3s, color .3s;
}

.el-step.active .el-icon {
    background: var(--saffron-lt);
    color: var(--saffron);
}

.el-step.done .el-icon {
    background: #dcfce7;
    color: var(--success);
}

.el-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate);
}

.el-sub {
    font-size: 11.5px;
    color: var(--slate-lt);
    margin-top: 2px;
}

.el-progress-wrap {
    height: 4px;
    background: var(--border-soft);
    border-radius: 99px;
    overflow: hidden;
    margin: 4px 0 0 40px;
}

.el-progress-bar {
    height: 100%;
    border-radius: 99px;
    background: var(--grad-primary);
    transition: width .4s ease;
}

.el-final {
    text-align: center;
    font-size: 12.5px;
    font-weight: 500;
    margin-top: 16px;
    min-height: 18px;
}

/* ══════════════════════════════════════════════════════════
   CHAT UI
══════════════════════════════════════════════════════════ */
.chat-wrap {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--header-h) - 100px);
    min-height: 400px;
}

.chat-msgs {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 0 16px;
    scroll-behavior: smooth;
}

.msg-wrap {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-width: 78%;
    animation: fadeUp .2s ease;
}

.msg-wrap.user {
    align-self: flex-end;
    align-items: flex-end;
}

.msg-wrap.ai {
    align-self: flex-start;
    align-items: flex-start;
}

.msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--grad-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.bubble {
    padding: 10px 15px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.6;
    word-break: break-word;
}

.msg-wrap.user .bubble {
    background: var(--grad-primary);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.msg-wrap.ai .bubble {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    color: var(--slate);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .05);
}

.msg-time {
    font-size: 10px;
    color: var(--slate-lt);
    padding: 0 4px;
}

.typing-bubble {
    display: flex;
    gap: 5px;
    padding: 12px 16px;
}

.typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--saffron-mid);
    animation: bob 1.1s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: .18s;
}

.typing-dot:nth-child(3) {
    animation-delay: .36s;
}

@keyframes bob {

    0%,
    60%,
    100% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-6px);
    }
}

.chat-input-bar {
    background: var(--surface);
    /* border-top: 1px solid var(--border); */
    padding: 3px 0;
    flex-shrink: 0;
}

.chat-wallet-note {
    font-size: 11px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.chat-input-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.chat-input-row textarea {
    flex: 1;
    resize: none;
    max-height: 120px;
    padding: 10px 15px;
    border: 1.5px solid var(--border);
    border-radius: 22px;
    background: var(--bg);
    color: var(--slate);
    font-size: 13.5px;
    line-height: 1.45;
    transition: border-color .18s;
}

.chat-input-row textarea:focus {
    border-color: var(--saffron);
    background: #fff;
}

.chat-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--grad-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(249, 115, 22, .3);
    transition: all .18s;
}

.chat-send-btn:hover {
    transform: scale(1.08);
}

.chat-send-btn:disabled {
    opacity: .4;
    transform: none;
}

/* ══════════════════════════════════════════════════════════
   PROCESSING MODAL
══════════════════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.visible {
    display: flex;
}

.modal-box {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
}

.modal-head {
    background: #f8fafc;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    color: var(--slate);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-head i {
    color: var(--saffron);
}

.modal-body-inner {
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.proc-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: .4;
    transition: opacity .3s;
}

.proc-step.active,
.proc-step.done {
    opacity: 1;
}

.proc-step-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.proc-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-mid);
    flex-shrink: 0;
    transition: background .3s, color .3s;
}

.proc-step.active .proc-icon {
    background: var(--saffron-lt);
    color: var(--saffron);
}

.proc-step.done .proc-icon {
    background: #dcfce7;
    color: var(--success);
}

.proc-step.error .proc-icon {
    background: #fee2e2;
    color: var(--error);
}

.proc-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate);
}

.proc-sub {
    font-size: 11.5px;
    color: var(--slate-lt);
    margin-top: 2px;
}

.proc-bar-wrap {
    height: 4px;
    background: var(--border-soft);
    border-radius: 99px;
    overflow: hidden;
    margin-left: 40px;
}

.proc-bar {
    height: 100%;
    border-radius: 99px;
    background: var(--grad-primary);
    transition: width .4s ease;
}

.proc-final {
    text-align: center;
    font-size: 12.5px;
    font-weight: 500;
    min-height: 18px;
}

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-item {
    background: var(--slate);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn .3s ease;
    max-width: 320px;
}

.toast-item.success {
    background: var(--success);
}

.toast-item.error {
    background: var(--error);
}

.toast-item.warn {
    background: var(--warn);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(60px);
    }

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

/* ══════════════════════════════════════════════════════════
   NO PROFILE NOTE
══════════════════════════════════════════════════════════ */
.no-profile-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 60px 20px;
    text-align: center;
    color: var(--slate-lt);
}

.no-profile-note i {
    font-size: 44px;
}

.no-profile-note p {
    font-size: 14px;
}

.no-profile-note button {
    padding: 9px 24px;
    background: var(--grad-primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */

/* Mobile: sidebar hidden by default */
@media (max-width: 991.98px) {
    .app-sidebar {
        transform: translateX(-100%);
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .app-main {
        margin-left: 0;
    }

    .chat-wrap {
        height: calc(100vh - var(--header-h) - 140px);
    }
}

@media (max-width: 767.98px) {
    .app-main {
        padding: 16px 14px;
    }

    .form-grid-2 {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .section-title {
        font-size: 18px;
    }

    .kundli-row {
        grid-template-columns: 1fr;
    }

    .profile-tabs {
        gap: 0;
    }

    .ptab {
        padding: 9px 14px;
        font-size: 13px;
    }

    .otp-box {
        width: 40px;
        height: 48px;
        font-size: 18px;
    }

    .reg-step-panel {
        padding: 24px 20px;
    }
}

@media (max-width: 479.98px) {
    :root {
        --header-h: 54px;
    }

    .header-mobile {
        display: none;
    }

    .logo-mark {
        font-size: 15px;
    }

    .otp-boxes {
        gap: 7px;
    }

    .otp-box {
        width: 36px;
        height: 44px;
        font-size: 16px;
    }

    .wallet-badge {
        padding: 4px 10px;
        font-size: 11.5px;
    }
}

/* Sticky chat input on mobile */
@media (max-width: 767.98px) {
    .chat-input-bar {
        position: sticky;
        bottom: 0;
        background: var(--surface);
    }
}