/* =========================================================
   Zerono — Modern Mobile UI
   CSS PART 1/2
   ========================================================= */

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


/* =========================
   GLOBAL
========================= */

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

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

body {
    font-family:
        'Plus Jakarta Sans',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        sans-serif;

    background: #f8fafc;
    color: #0f172a;

    -webkit-font-smoothing: antialiased;

    transition:
        background-color .25s ease,
        color .25s ease;

    padding-bottom: 110px;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    -webkit-appearance: none;
    appearance: none;
}


/* =========================
   DARK MODE
========================= */

body.dark-mode {
    background: #080c14;
    color: #f8fafc;
}

body.dark-mode .header {
    background: rgba(9,13,22,.92);
    border-color: #1e293b;
}

body.dark-mode .main-content,
body.dark-mode .chat-screen,
body.dark-mode .history-screen,
body.dark-mode .settings-screen,
body.dark-mode .sub-screen {
    background: #080c14;
}

body.dark-mode .sidebar {
    background: #111827;
    border-color: #1f2937;
}

body.dark-mode .google-login-btn {
    background: #111827;
    color: #f8fafc;
    border-color: #334155;
}

body.dark-mode .user-profile-badge {
    background: #1e293b;
    border-color: #334155;
}

body.dark-mode .sidebar-menu a {
    color: #cbd5e1;
}

body.dark-mode .sidebar-menu a.active {
    background: #2e1065;
    color: #c084fc;
}

body.dark-mode .settings-card,
body.dark-mode .plan-card,
body.dark-mode .ai-msg {
    background: #111827;
    border-color: #263244;
}

body.dark-mode .setting-item {
    border-color: #1f2937;
}

body.dark-mode .setting-text h4,
body.dark-mode .page-header-content h2,
body.dark-mode .history-search-box input {
    color: #f8fafc;
}

body.dark-mode .setting-text p,
body.dark-mode .page-header-content p,
body.dark-mode .settings-section-title {
    color: #94a3b8;
}

body.dark-mode .country-select-wrap select {
    background: #1e293b;
    color: #f8fafc;
    border-color: #475569;
}

body.dark-mode .history-search-box {
    background: #111827;
    border-color: #334155;
}

body.dark-mode .history-search-box i {
    color: #94a3b8;
}

body.dark-mode .empty-history h3 {
    color: #f8fafc;
}

body.dark-mode .empty-history p {
    color: #94a3b8;
}

body.dark-mode .chat-box-container {
    background: rgba(8,12,20,.94);
    border-color: #1e293b;
}

body.dark-mode .input-container {
    background: #172033;
    border-color: #334155;
}

body.dark-mode .input-container:focus-within {
    background: #1e293b;
    border-color: #8b5cf6;
}

body.dark-mode .input-container input {
    color: #f8fafc;
}

body.dark-mode .input-container input::placeholder {
    color: #94a3b8;
}

body.dark-mode .image-btn,
body.dark-mode .mic-btn {
    color: #94a3b8;
}

body.dark-mode .custom-modal-box {
    background: #111827;
    color: #f8fafc;
}

body.dark-mode .policy-content {
    color: #cbd5e1;
}


/* =========================
   HEADER
========================= */

.header {
    position: sticky;
    top: 0;
    z-index: 100;

    width: 100%;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        0 18px;

    background:
        rgba(255,255,255,.92);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    border-bottom:
        1px solid #e5eaf0;
}

.menu-btn {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    background: transparent;

    color: #7c3aed;

    font-size: 24px;

    cursor: pointer;

    border-radius: 14px;

    transition:
        transform .15s ease,
        background .15s ease;
}

.menu-btn:active {
    transform: scale(.92);
    background: #f3e8ff;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
}

.brand h1 {
    margin: 0;

    font-size: 26px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: -1px;

    background:
        linear-gradient(
            135deg,
            #00bfff 0%,
            #0072ff 48%,
            #7c3aed 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}

.bot-icon {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}


/* =========================
   SIDEBAR
========================= */

.sidebar {
    position: fixed;

    top: 0;
    left: -310px;

    width: min(292px, 86vw);
    height: 100dvh;

    padding:
        22px 16px;

    display: flex;
    flex-direction: column;

    background: #ffffff;

    box-shadow:
        18px 0 50px rgba(15,23,42,.14);

    z-index: 1000;

    transition:
        left .3s cubic-bezier(.16,1,.3,1);

    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding-bottom: 16px;
    margin-bottom: 12px;

    border-bottom:
        1px solid #eef2f7;
}

.google-login-btn {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border:
        1px solid #dce3eb;

    border-radius: 16px;

    background: #ffffff;
    color: #1e293b;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 3px 12px rgba(15,23,42,.04);

    transition:
        transform .15s ease,
        background .15s ease;
}

.google-login-btn:active {
    transform: scale(.98);
    background: #f8fafc;
}

.google-g {
    color: #4285f4;
    font-size: 22px;
    font-weight: 800;
}

.user-profile-badge {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 10px 12px;

    background: #f8fafc;

    border:
        1px solid #e2e8f0;

    border-radius: 16px;

    cursor: pointer;
}

.profile-avatar {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    color: #ffffff;

    font-size: 15px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            #00c6ff,
            #7c3aed
        );
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.profile-info h4 {
    margin: 0;

    color: #0f172a;

    font-size: 14px;
    font-weight: 700;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.profile-info p {
    margin: 3px 0 0;

    color: #64748b;

    font-size: 11.5px;
    font-weight: 500;
}

.profile-arrow {
    color: #94a3b8;
}


/* Sidebar menu */

.sidebar-menu {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.sidebar-menu a {
    min-height: 50px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding: 0 15px;

    border-radius: 14px;

    text-decoration: none;

    color: #475569;

    font-size: 15px;
    font-weight: 600;

    transition:
        background .15s ease,
        color .15s ease;
}

.sidebar-menu a i {
    width: 22px;
    text-align: center;
    font-size: 18px;
}

.sidebar-menu a.active {
    background: #f3e8ff;
    color: #7c3aed;
}

.sidebar-menu a:active {
    transform: scale(.99);
}

.menu-divider {
    height: 1px;
    margin: 9px 4px;

    background: #edf1f5;
}

.sidebar-footer-trademark {
    margin-top: auto;

    padding:
        18px 8px 8px;

    border-top:
        1px solid #edf1f5;

    text-align: center;

    color: #94a3b8;

    font-size: 11px;

    line-height: 1.5;
}

.sidebar-footer-trademark p {
    margin: 0;
}


/* Overlay */

.overlay {
    position: fixed;
    inset: 0;

    background:
        rgba(15,23,42,.42);

    backdrop-filter:
        blur(4px);

    -webkit-backdrop-filter:
        blur(4px);

    display: none;

    z-index: 900;
}

.overlay.active {
    display: block;
}


/* =========================
   COMMON SCREEN
========================= */

.main-content,
.chat-screen,
.history-screen,
.settings-screen,
.sub-screen {
    width: 100%;
    max-width: 100%;

    padding:
        18px 16px 120px;
}


/* =========================
   WELCOME
========================= */

.welcome-card {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    padding:
        26px 24px;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #e0f2fe 0%,
            #eef2ff 48%,
            #f3e8ff 100%
        );

    border:
        1px solid #dce6f2;

    box-shadow:
        0 10px 30px rgba(79,70,229,.07);
}

.welcome-text {
    min-width: 0;
}

.welcome-text h2 {
    margin: 0 0 8px;

    font-size: 25px;
    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -.7px;

    color: #0f172a;
}

.welcome-text p {
    margin: 0;

    max-width: 260px;

    color: #475569;

    font-size: 15px;
    line-height: 1.5;
}

.welcome-bot-img {
    flex: 0 0 auto;
    font-size: 40px;
}


/* =========================
   CHAT
========================= */

.chat-header-bar {
    display: flex;
    align-items: center;

    gap: 12px;

    min-height: 46px;

    margin-bottom: 14px;
}

.chat-header-bar button,
.back-btn {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid #dbe3ed;

    border-radius: 13px;

    background:
        rgba(255,255,255,.95);

    color: #0f172a;

    font-size: 18px;

    cursor: pointer;

    box-shadow:
        0 3px 12px rgba(15,23,42,.05);
}

.chat-header-bar span {
    font-size: 17px;
    font-weight: 700;
}

.chat-messages {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 12px;

    padding-bottom: 30px;
}

.message {
    max-width: 88%;

    padding:
        12px 16px;

    border-radius: 19px;

    font-size: 15px;
    line-height: 1.6;

    word-break: break-word;
}

.user-msg {
    align-self: flex-end;

    margin-left: auto;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #0072ff,
            #7c3aed
        );

    border-radius:
        20px 20px 5px 20px;

    box-shadow:
        0 5px 16px rgba(124,58,237,.22);
}

.ai-msg {
    align-self: flex-start;

    color: #1e293b;

    background: #ffffff;

    border:
        1px solid #e2e8f0;

    border-radius:
        20px 20px 20px 5px;

    box-shadow:
        0 4px 16px rgba(15,23,42,.04);
}

.user-msg img {
    max-width: 180px !important;
    max-height: 180px !important;

    display: block;

    margin-bottom: 8px;

    object-fit: cover;

    border-radius: 12px;
}


/* =========================
   PAGE HEADER
========================= */

.page-header {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 12px;

    margin:
        8px 0 18px;
}

.page-header-content {
    min-width: 0;
    flex: 1;
}

.page-header-content h2 {
    margin: 0;

    color: #0f172a;

    font-size: 25px;
    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -.7px;
}

.page-header-content p {
    margin:
        6px 0 0;

    color: #475569;

    font-size: 14px;

    line-height: 1.4;
}

.page-header-icon {
    flex: 0 0 auto;

    font-size: 23px;
}


/* =========================================================
   Zerivo — Modern Mobile UI
   CSS PART 2/2
   ========================================================= */


/* =========================
   SETTINGS
========================= */

.settings-screen {
    padding-top: 18px !important;
}

.settings-page-header {
    margin-bottom: 16px;
}


/* Section titles */

.settings-section-title {
    margin:
        18px 0 9px 8px;

    color: #64748b;

    font-size: 13px;

    line-height: 1.25;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .65px;
}


/* First section should stay close to header */

.settings-screen .settings-section-title:first-of-type {
    margin-top: 8px;
}
.setting-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    font-size: 17px;
}

.setting-text {
    min-width: 0;
}

.setting-text h4 {
    margin: 0;

    color: #0f172a;

    font-size: 16px;
    line-height: 1.25;

    font-weight: 700;
}

.setting-text p {
    margin:
        3px 0 0;

    color: #64748b;

    font-size: 12.5px;
    line-height: 1.35;
}

.setting-item-right {
    flex: 0 0 auto;

    color: #0f172a;

    font-size: 17px;
}


/* =========================
   DARK MODE TOGGLE
========================= */

.toggle-switch {
    width: 46px;
    height: 27px;

    flex: 0 0 46px;

    position: relative;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #0072ff,
            #7c3aed
        );

    transition: .2s ease;
}

.toggle-switch::after {
    content: "";

    position: absolute;

    top: 3px;
    right: 3px;

    width: 21px;
    height: 21px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 2px 5px rgba(0,0,0,.2);

    transition: .2s ease;
}

.toggle-switch.off {
    background: #cbd5e1;
}

.toggle-switch.off::after {
    right: 22px;
}


/* =========================
   COUNTRY / CURRENCY
========================= */

.country-card {
    overflow: visible;
}

.country-setting-item {
    min-height: 106px;

    align-items: center;

    padding:
        17px 16px;
}

.country-info {
    flex: 1 1 auto;

    min-width: 0;
}

.country-info .setting-text {
    min-width: 0;
}

.country-info .setting-text h4 {
    white-space: normal;
    overflow-wrap: normal;

    font-size: 16px;
}

.country-info .setting-text p {
    max-width: 155px;

    white-space: normal;
}

.country-icon {
    background: #fef3a8;
    color: #b45309;
}

.country-select-wrap {
    flex: 0 0 48%;
    min-width: 0;
}

.country-select-wrap select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1.5px solid #7c3aed;
    border-radius: 14px;
    outline: none;
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.08);
    transition: all 0.2s ease;
}

.country-select-wrap select:focus {
    border-color: #6d28d9;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}



/* =========================
   HISTORY
========================= */

.history-screen {
    padding-bottom: 40px;
}

.history-search-box {
    width: 100%;
    height: 50px;

    display: flex;
    align-items: center;

    gap: 10px;

    padding:
        0 14px;

    margin:
        6px 0 20px;

    background: #ffffff;

    border:
        1px solid #dce3eb;

    border-radius: 15px;

    box-shadow:
        0 4px 15px rgba(15,23,42,.035);
}

.history-search-box i {
    flex: 0 0 auto;

    color: #64748b;

    font-size: 17px;
}

.history-search-box input {
    min-width: 0;
    flex: 1;

    height: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: #0f172a;

    font-size: 14.5px;
}

.history-search-box input::placeholder {
    color: #64748b;
}


/* Empty history */

.empty-history {
    width: 100%;

    padding:
        32px 18px;

    text-align: center;
}

.empty-history-icon {
    width: 54px;
    height: 54px;

    margin:
        0 auto 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;

    color: #7c3aed;

    background: #f3e8ff;

    font-size: 20px;
}

.empty-history h3 {
    margin: 0;

    color: #334155;

    font-size: 16px;

    font-weight: 700;
}

.empty-history p {
    margin:
        7px auto 0;

    max-width: 310px;

    color: #64748b;

    font-size: 13.5px;

    line-height: 1.5;
}


/* History saved item */

.history-item {
    width: 100%;

    margin-bottom: 10px;

    padding:
        14px 16px;

    background: #ffffff;

    border:
        1px solid #e2e8f0;

    border-radius: 16px;

    box-shadow:
        0 3px 12px rgba(15,23,42,.035);
}

.history-item-user {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-item-bot {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2; /* स्टैंडर्ड प्रॉपर्टी */
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* =========================
   SUBSCRIPTION
========================= */

.sub-container {
    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 13px;

    padding-top: 5px;
}

.plan-card {
    width: 100%;

    min-height: 92px;

    display: flex;
    align-items: center;

    gap: 14px;

    padding:
        17px;

    background: #ffffff;

    border:
        1.5px solid #e2e8f0;

    border-radius: 19px;

    cursor: pointer;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        transform .12s ease;
}

.plan-card:active {
    transform: scale(.99);
}

.plan-card.selected {
    background: #faf5ff;

    border-color: #7c3aed;

    box-shadow:
        0 6px 20px rgba(124,58,237,.1);
}

.plan-card input {
    width: 20px;
    height: 20px;

    flex: 0 0 20px;

    accent-color: #7c3aed;
}

.plan-content {
    min-width: 0;
}

.plan-card h4 {
    margin: 0;

    color: #0f172a;

    font-size: 16px;
    line-height: 1.25;

    font-weight: 800;
}

.plan-card p {
    margin:
        5px 0 0;

    color: #64748b;

    font-size: 12.5px;
    line-height: 1.35;
}

.pay-btn {
    width: 100%;

    min-height: 55px;

    margin-top: 3px;

    border: 0;

    border-radius: 17px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #00c6ff,
            #0072ff 50%,
            #7c3aed
        );

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 8px 22px rgba(0,114,255,.25);

    transition:
        transform .15s ease,
        filter .15s ease;
}

.pay-btn:active {
    transform: scale(.98);
}

.pay-btn:hover {
    filter: brightness(1.04);
}

.secure-text {
    margin:
        4px 0 0;

    text-align: center;

    color: #64748b;

    font-size: 12px;
      line-height: 1.5;
}

.fair-use-text {
    margin:
        3px auto 0;

    max-width: 340px;

    text-align: center;

    color: #94a3b8;

    font-size: 10.5px;

    line-height: 1.5;
}


/* =========================
   CHAT INPUT
   IMPORTANT FIX
========================= */

.chat-box-container {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    max-width: 100%;

    padding:
        9px 10px
        calc(9px + env(safe-area-inset-bottom));

    background:
        rgba(248,250,252,.94);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    border-top:
        1px solid rgba(226,232,240,.9);

    z-index: 999;
}


/* The actual pill */

.input-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;

    min-height: 58px;

    display: flex;
    align-items: center;

    gap: 2px;

    padding:
        6px 6px 6px 9px;

    overflow: hidden;

    background:
        #f1f5f9;

    border:
        1.5px solid #dce3eb;

    border-radius: 30px;

    box-shadow:
        0 4px 16px rgba(15,23,42,.04);

    transition:
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.input-container:focus-within {
    background: #ffffff;

    border-color: #8b5cf6;

    box-shadow:
        0 0 0 4px rgba(124,58,237,.08);
}


/* Input MUST shrink */

.input-container input {
    flex:
        1 1 auto;

    min-width:
        0 !important;

    width:
        0 !important;

    max-width:
        100%;

    height: 42px;

    padding:
        0 4px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #0f172a;

    font-size: 15px;
}

.input-container input::placeholder {
    color: #64748b;
}


/* Buttons stay inside */

.image-btn,
.mic-btn {
    width: 38px;
    height: 38px;

    flex:
        0 0 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;

    border-radius: 50%;

    background: transparent;

    color: #64748b;

    font-size: 17px;

    cursor: pointer;
}

.image-btn:active,
.mic-btn:active {
    background: #e2e8f0;
}


/* SEND BUTTON */

.send-btn {
    width: 44px;
    height: 44px;

    flex:
        0 0 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border: 0;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #0072ff,
            #7c3aed
        );

    color: #ffffff;

    font-size: 16px;

    cursor: pointer;

    box-shadow:
        0 5px 14px rgba(124,58,237,.3);

    transition:
        transform .15s ease;
}

.send-btn:active {
    transform: scale(.91);
}


/* Disclaimer */

.disclaimer-text {
    margin:
        5px 0 0;

    text-align: center;

    color: #94a3b8;

    font-size: 10px;

    line-height: 1.35;
}


/* =========================
   IMAGE PREVIEW
========================= */

#selectedImagePreview {
    width: 100% !important;

    max-width: 100% !important;

    margin:
        0 0 7px !important;

    padding:
        7px 9px !important;

    display: none !important;
    align-items: center !important;

    gap: 9px !important;

    background: #ffffff !important;

    border:
        1px solid #e2e8f0 !important;

    border-radius: 13px !important;

    overflow: hidden !important;
}

#selectedImagePreview img {
    width: 45px !important;
    height: 45px !important;

    flex: 0 0 45px;

    border-radius: 9px !important;

    object-fit: cover !important;
}


/* =========================
   MODALS
========================= */

.custom-modal-overlay {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(15,23,42,.48);

    backdrop-filter:
        blur(7px);

    -webkit-backdrop-filter:
        blur(7px);

    z-index: 2000;
}

.custom-modal-box {
    width: 100%;
    max-width: 410px;

    max-height: 86vh;

    overflow-y: auto;

    padding: 23px;

    background: #ffffff;

    border:
        1px solid #e2e8f0;

    border-radius: 22px;

    box-shadow:
        0 25px 60px rgba(15,23,42,.18);
}

.alert-box {
    text-align: center;
}

.modal-icon {
    width: 52px;
    height: 52px;

    margin:
        0 auto 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: #dcfce7;

    font-size: 23px;
}

.error-icon {
    background: #fee2e2;
    color: #ef4444;
}

.custom-modal-box h3 {
    margin:
        0 0 8px;

    font-size: 19px;
}

.custom-modal-box > p {
    margin:
        0 0 18px;

    color: #64748b;

    font-size: 14px;

    line-height: 1.55;
}

.modal-submit-btn {
    width: 100%;

    min-height: 48px;

    padding:
        12px 15px;

    border: 0;

    border-radius: 14px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #0072ff,
            #7c3aed
        );

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.policy-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-bottom: 13px;
}

.policy-modal-header h3 {
    margin: 0;
}

.modal-close-btn {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 11px;

    background: #f1f5f9;

    color: #475569;

    font-size: 17px;

    cursor: pointer;
}

.policy-content {
    color: #475569;

    font-size: 13px;

    line-height: 1.65;

    margin-bottom: 17px;
}

.policy-content h3 {
    margin:
        0 0 10px;

    color: #0f172a;
}

.policy-content p {
    margin:
        0 0 11px;
}


/* =========================
   MARKDOWN
========================= */

.zera-paragraph {
    margin:
        0 0 12px;
}

.zera-heading {
    margin:
        17px 0 9px;

    color: #7c3aed;

    font-size: 18px;

    font-weight: 800;
}

.zera-code {
    margin:
        12px 0;

    padding:
        13px;

    overflow-x: auto;

    border-radius: 13px;

    background: #0f172a;

    color: #e2e8f0;

    font-size: 13px;
}


/* =========================
   SMALL PHONES
========================= */

@media (max-width: 380px) {

    .header {
        padding-left: 12px;
        padding-right: 12px;
    }

    .brand h1 {
        font-size: 23px;
    }

    .main-content,
    .chat-screen,
    .history-screen,
    .settings-screen,
    .sub-screen {
        padding-left: 12px;
        padding-right: 12px;
    }

    .country-setting-item {
        gap: 8px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .country-select-wrap {
        flex-basis: 45%;
    }

    .setting-icon {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    .setting-text h4 {
        font-size: 14px;
    }

    .country-info .setting-text p {
        font-size: 11.5px;
        max-width: 125px;
    }

    .image-btn,
    .mic-btn {
        width: 35px;
        height: 35px;
        flex-basis: 35px;
    }

    .send-btn {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .input-container {
        padding-left: 7px;
        padding-right: 5px;
    }
}


/* =========================================================
   Zerivo SPLASH SCREEN
   ========================================================= */

.splash-screen {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    z-index: 99999;

    opacity: 1;
    visibility: visible;

    transition:
        opacity .45s ease,
        visibility .45s ease;
}

.splash-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-image {
    width: 100%;
    height: 100%;

    object-fit: cover;
    display: block;
}


/* Dark mode splash */

body.dark-mode .splash-screen {
    background: #080c14;
}


/* ====== GEMINI AURA GLOW EFFECT ====== */

.gemini-aura-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 45vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;

    background:
        radial-gradient(
            circle at 20% 10%,
            rgba(74, 222, 128, 0.45),
            transparent 60%
        ),
        radial-gradient(
            circle at 80% 15%,
            rgba(96, 165, 250, 0.45),
            transparent 60%
        ),
        radial-gradient(
            circle at 50% 30%,
            rgba(250, 204, 21, 0.35),
            transparent 65%
        );

    filter: blur(40px);
}

.gemini-aura-glow.active {
    opacity: 1;
    animation:
        auraColorShift 6s infinite alternate ease-in-out;
}

@keyframes auraColorShift {

    0% {
        background:
            radial-gradient(
                circle at 20% 10%,
                rgba(74, 222, 128, 0.5),
                transparent 60%
            ),
            radial-gradient(
                circle at 80% 15%,
                rgba(96, 165, 250, 0.45),
                transparent 60%
            ),
            radial-gradient(
                circle at 50% 30%,
                rgba(250, 204, 21, 0.35),
                transparent 65%
            );

        transform: scale(1);
    }

    50% {
        background:
            radial-gradient(
                circle at 35% 20%,
                rgba(250, 204, 21, 0.5),
                transparent 60%
            ),
            radial-gradient(
                circle at 70% 10%,
                rgba(74, 222, 128, 0.45),
                transparent 60%
            ),
            radial-gradient(
                circle at 50% 25%,
                rgba(96, 165, 250, 0.4),
                transparent 65%
            );

        transform: scale(1.05);
    }

    100% {
        background:
            radial-gradient(
                circle at 15% 15%,
                rgba(96, 165, 250, 0.5),
                transparent 60%
            ),
            radial-gradient(
                circle at 85% 25%,
                rgba(250, 204, 21, 0.45),
                transparent 60%
            ),
            radial-gradient(
                circle at 40% 10%,
                rgba(74, 222, 128, 0.4),
                transparent 65%
            );

        transform: scale(1);
    }
}


/* ================= APPLE FROSTED GLASS UI ================= */

/* हेडर, इनपुट एरिया और कार्ड्स के लिए फ्रॉस्टेड ग्लास इफ़ेक्ट */

.header,
.input-container,
#inputAreaContainer {
    background:
        rgba(255, 255, 255, 0.72) !important;

    backdrop-filter:
        blur(20px) saturate(180%) !important;

    -webkit-backdrop-filter:
        blur(20px) saturate(180%) !important;

    border-top:
        1px solid rgba(255, 255, 255, 0.4) !important;
}

body.dark-mode .header,
body.dark-mode .input-container,
body.dark-mode #inputAreaContainer {
    background:
        rgba(15, 23, 42, 0.75) !important;

    backdrop-filter:
        blur(20px) saturate(180%) !important;

    -webkit-backdrop-filter:
        blur(20px) saturate(180%) !important;

    border-top:
        1px solid rgba(255, 255, 255, 0.08) !important;
}


/* AI मैसेज बबल के लिए स्लीक ग्लास लुक */

.message.bot {
    background:
        rgba(255, 255, 255, 0.85) !important;

    backdrop-filter:
        blur(12px) !important;

    -webkit-backdrop-filter:
        blur(12px) !important;

    border:
        1px solid rgba(255, 255, 255, 0.6) !important;

    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.07) !important;
}

body.dark-mode .message.bot {
    background:
        rgba(30, 41, 59, 0.75) !important;

    backdrop-filter:
        blur(12px) !important;

    -webkit-backdrop-filter:
        blur(12px) !important;

    border:
        1px solid rgba(255, 255, 255, 0.06) !important;

    box-shadow:
        0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
}


/* ================= ACTION BUTTONS (COPY & LISTEN) ================= */

.message-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top:
        1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .message-actions {
    border-top:
        1px solid rgba(255, 255, 255, 0.08);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    background: rgba(124, 58, 237, 0.1);
    color: #7c3aed;
    transition: all 0.2s ease;
}

.action-btn:active {
    transform: scale(0.95);
}

.action-btn.speaking {
    background: #ef4444;
    color: #ffffff;
}


/* सेंड बटन डिसेबल स्टेट */

.send-btn.disabled,
.send-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}


/* ================= PREMIUM FONT ================= */

body,
input,
button,
textarea,
select,
p,
h1,
h2,
h3,
h4,
span,
div {
    font-family:
        'Plus Jakarta Sans',
        -apple-system,
        BlinkMacSystemFont,
        sans-serif;
}


/* आइकन्स को उनका असली फॉन्ट वापस देने के लिए */

.fa,
.fas,
.far,
.fal,
.fad,
.fab,
[class*="fa-"] {
    font-family:
        "Font Awesome 6 Free",
        "Font Awesome 6 Brands",
        FontAwesome !important;
}


/* ================= FIX DARK MODE VISIBILITY ================= */

body.dark-mode .plan-card,
body.dark-mode .plan-card h3,
body.dark-mode #plan1Title,
body.dark-mode #plan2Title,
body.dark-mode .history-item-user,
body.dark-mode .settings-item h4 {
    color: #f8fafc !important;
}

body.dark-mode .plan-card p,
body.dark-mode #plan1Description,
body.dark-mode #plan2Description,
body.dark-mode .history-item-bot,
body.dark-mode .settings-item p {
    color: #94a3b8 !important;
}

body.dark-mode .plan-card {
    background:
        rgba(30, 41, 59, 0.6) !important;

    border:
        1px solid rgba(255, 255, 255, 0.12) !important;
}


/* ================= REAL APPLE LIQUID GLASS EFFECT ================= */

/* हेडर और इनपुट बार पर फ्रॉस्टेड ग्लास */

.header,
#inputAreaContainer,
.bottom-nav {
    background:
        rgba(255, 255, 255, 0.65) !important;

    backdrop-filter:
        blur(25px) saturate(190%) !important;

    -webkit-backdrop-filter:
        blur(25px) saturate(190%) !important;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.4) !important;
}

body.dark-mode .header,
body.dark-mode #inputAreaContainer,
body.dark-mode .bottom-nav {
    background:
        rgba(15, 23, 42, 0.65) !important;

    backdrop-filter:
        blur(25px) saturate(190%) !important;

    -webkit-backdrop-filter:
        blur(25px) saturate(190%) !important;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08) !important;
}


/* AI मैसेज बबल पर असली ग्लास स्किन */

.message.ai-msg {
    background:
        rgba(255, 255, 255, 0.7) !important;

    backdrop-filter:
        blur(16px) saturate(180%) !important;

    -webkit-backdrop-filter:
        blur(16px) saturate(180%) !important;

    border:
        1px solid rgba(255, 255, 255, 0.8) !important;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.04) !important;

    color: #1e293b !important;

    line-height: 1.65;

    font-size: 14.5px;
}

body.dark-mode .message.ai-msg {
    background:
        rgba(30, 41, 59, 0.65) !important;

    backdrop-filter:
        blur(16px) saturate(180%) !important;

    -webkit-backdrop-filter:
        blur(16px) saturate(180%) !important;

    border:
        1px solid rgba(255, 255, 255, 0.1) !important;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.3) !important;

    color: #f1f5f9 !important;
}


/* होम स्क्रीन का कार्ड भी ग्लास लुक में */

.welcome-card,
#homeScreen .card,
#homeScreen > div:first-child {
    background:
        rgba(255, 255, 255, 0.75) !important;

    backdrop-filter:
        blur(20px) !important;

    -webkit-backdrop-filter:
        blur(20px) !important;

    border:
        1px solid rgba(255, 255, 255, 0.8) !important;
}

body.dark-mode .welcome-card,
body.dark-mode #homeScreen .card,
body.dark-mode #homeScreen > div:first-child {
    background:
        rgba(30, 41, 59, 0.6) !important;

    backdrop-filter:
        blur(20px) !important;

    -webkit-backdrop-filter:
        blur(20px) !important;

    border:
        1px solid rgba(255, 255, 255, 0.08) !important;
}


/* ================= FIX DARK MODE WELCOME CARD ================= */

body.dark-mode .welcome-card h2,
body.dark-mode .welcome-card h1,
body.dark-mode #homeScreen h2,
body.dark-mode #homeScreen h1,
body.dark-mode #welcomeTitle {
    color: #ffffff !important;

    text-shadow:
        0 2px 10px rgba(0, 0, 0, 0.5);
}

body.dark-mode .welcome-card p,
body.dark-mode #homeScreen p,
body.dark-mode #welcomeDesc {
    color: #cbd5e1 !important;
}


/* कार्ड पर हल्का चमकदार बॉर्डर ताकि वह डार्क में अलग से दिखे */

body.dark-mode .welcome-card,
body.dark-mode #homeScreen > div:first-child {
    background:
        rgba(30, 41, 59, 0.75) !important;

    border:
        1px solid rgba(255, 255, 255, 0.15) !important;

    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4) !important;
}


/* ================= FIX DARK MODE CHAT HISTORY CARDS ================= */

body.dark-mode .history-item {
    background:
        rgba(30, 41, 59, 0.7) !important;

    border:
        1px solid rgba(255, 255, 255, 0.1) !important;

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

body.dark-mode .history-item-user,
body.dark-mode .history-item-user strong {
    color: #ffffff !important;
}

/* ================= OFFLINE BANNER ================= */

.offline-banner {
    position: fixed;
    top: -60px;
    left: 50%;

    transform:
        translateX(-50%);

    width: 90%;
    max-width: 400px;

    background:
        linear-gradient(
            135deg,
            #ef4444,
            #f97316
        );

    color: #ffffff;

    padding:
        10px 16px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    font-size: 13px;
    font-weight: 600;

    box-shadow:
        0 10px 25px rgba(239, 68, 68, 0.4);

    z-index: 99999;

    transition:
        top 0.4s cubic-bezier(
            0.175,
            0.885,
            0.32,
            1.275
        );
}

.offline-banner.show {
    top: 20px;
}


/* ================= MESSAGE ACTION BAR (WITH SHARE) ================= */

.action-btn.share-btn {
    background:
        rgba(16, 185, 129, 0.1);

    color: #10b981;
}

.action-btn.share-btn:active {
    background:
        rgba(16, 185, 129, 0.2);
}


/* AI मैसेज बॉक्स - शार्प और क्रिस्प टेक्स्ट */

.message.ai-msg {
    background: #ffffff !important;

    border:
        1px solid #e2e8f0 !important;

    color: #0f172a !important;

    font-size: 15px;

    line-height:
        1.5 !important;

    padding:
        14px 16px !important;

    border-radius:
        18px 18px 18px 4px !important;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.03) !important;
}


/* डार्क मोड में हाईलाइटेड डार्क बॉक्स और ब्राइट व्हाइट टेक्स्ट */

body.dark-mode .message.ai-msg {
    background:
        #131b2e !important;

    border:
        1px solid rgba(255, 255, 255, 0.12) !important;

    color:
        #f8fafc !important;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4) !important;
}


/* Gemini स्टाइल कॉम्पैक्ट एक्शन बार */

.message-actions {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 10px;

    padding-top: 6px;

    border-top:
        1px solid rgba(0, 0, 0, 0.05);
}

body.dark-mode .message-actions {
    border-top:
        1px solid rgba(255, 255, 255, 0.08);
}


/* बिना टेक्स्ट वाले छोटे गोल ट्रांसपेरेंट बटन्स */

.action-btn {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    border: none;

    background:
        transparent !important;

    color:
        #64748b !important;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    font-size: 14px;

    transition:
        all 0.2s ease;

    padding: 0;
}

.action-btn:active {
    background:
        rgba(124, 58, 237, 0.12) !important;

    color:
        #7c3aed !important;

    transform:
        scale(0.92);
}

body.dark-mode .action-btn {
    color:
        #94a3b8 !important;
}

body.dark-mode .action-btn:active {
    background:
        rgba(255, 255, 255, 0.1) !important;

    color:
        #c084fc !important;
}

.action-btn.speaking {
    background:
        rgba(239, 68, 68, 0.15) !important;

    color:
        #ef4444 !important;
}


/* 1. क्लीन प्रीमियम AI मैसेज बॉक्स */

.message.ai-msg {
    background:
        #ffffff !important;

    border:
        1px solid #e5e7eb !important;

    color:
        #1e293b !important;

    font-style:
        normal !important;

    line-height:
        1.6 !important;
}


/* टेढ़े अक्षरों (Italics) को सामान्य और सीधा रखना */

.message.ai-msg em,
.message.ai-msg i {
    font-style:
        normal !important;

    color:
        #0f172a;

    font-weight:
        500;
}


/* 2. मॉडर्न पल्सिंग 'Thinking' इंडिकेटर */

.thinking-loader {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        10px 16px;

    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.08),
            rgba(59, 130, 246, 0.08)
        );

    border:
        1px solid rgba(124, 58, 237, 0.2);

    border-radius: 20px;

    font-size: 13px;

    font-weight: 600;

    color:
        #7c3aed;
}

.thinking-dots {
    display: inline-flex;

    gap: 4px;
}

.thinking-dots span {
    width: 6px;
    height: 6px;

    background:
        #7c3aed;

    border-radius: 50%;

    animation:
        wave 1.2s infinite ease-in-out both;
}

.thinking-dots span:nth-child(1) {
    animation-delay:
        -0.32s;
}

.thinking-dots span:nth-child(2) {
    animation-delay:
        -0.16s;
}

@keyframes wave {

    0%,
    80%,
    100% {
        transform:
            scale(0);

        opacity:
            0.3;
    }

    40% {
        transform:
            scale(1);

        opacity:
            1;
    }
}


/* 3. गोल ट्रांसपेरेंट ऐक्शन बटन्स (टेक्स्ट ओवरलैप फिक्स) */

.message-actions {
    display: flex !important;

    flex-direction:
        row !important;

    align-items:
        center !important;

    gap:
        12px !important;

    margin-top:
        12px !important;

    padding-top:
        8px !important;

    border-top:
        1px solid #f1f5f9 !important;
}

.action-btn {
    width:
        32px !important;

    height:
        32px !important;

    min-width:
        32px !important;

    max-width:
        32px !important;

    padding:
        0 !important;

    margin:
        0 !important;

    border-radius:
        50% !important;

    border:
        1px solid #e2e8f0 !important;

    background:
        #ffffff !important;

    color:
        #64748b !important;

    display:
        inline-flex !important;

    align-items:
        center !important;

    justify-content:
        center !important;

    cursor:
        pointer;

    font-size:
        14px !important;

    overflow:
        hidden !important;

    white-space:
        nowrap !important;
}

.action-btn i {
    font-size:
        13px !important;

    pointer-events:
        none;
}

.action-btn:active {
    transform:
        scale(0.92);

    background:
        #f8fafc !important;
}


/* 4. ग्रेडिएंट और बोल्ड कंट्री बोर्ड */

.country-modal-content,
#countrySelectModal,
.country-list-container {
    background:
        #ffffff !important;

    border-radius:
        24px !important;

    border:
        2px solid transparent !important;

    background-image:
        linear-gradient(
            white,
            white
        ),
        linear-gradient(
            135deg,
            #7c3aed,
            #3b82f6,
            #06b6d4
        ) !important;

    background-origin:
        border-box !important;

    background-clip:
        padding-box,
        border-box !important;

    box-shadow:
        0 20px 40px rgba(124, 58, 237, 0.15) !important;

    overflow:
        hidden;
}

.country-item {
    font-weight:
        700 !important;

    color:
        #1e293b !important;

    padding:
        12px 18px !important;

    transition:
        all 0.2s ease;
}

.country-item:hover,
.country-item:active {
    background:
        linear-gradient(
            90deg,
            rgba(124, 58, 237, 0.08),
            transparent
        ) !important;

    color:
        #7c3aed !important;

    padding-left:
        22px !important;
}


/* ================= AUTH OVERLAY & USER MESSAGE THUMBNAILS ================= */

.auth-overlay {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100dvh;

    z-index:
        99990;

    background:
        radial-gradient(
            circle at 10% 8%,
            rgba(68, 169, 255, 0.28) 0%,
            transparent 40%
        ),
        radial-gradient(
            circle at 90% 92%,
            rgba(197, 85, 255, 0.25) 0%,
            transparent 45%
        ),
        #ffffff;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;

    justify-content:
        space-between;

    padding:
        16px 22px
        calc(16px + env(safe-area-inset-bottom))
        22px;

    overflow-y:
        auto;

    box-sizing:
        border-box;
}

body.dark-mode .auth-overlay {
    background:
        radial-gradient(
            circle at 10% 8%,
            rgba(29, 78, 216, 0.35) 0%,
            transparent 45%
        ),
        radial-gradient(
            circle at 90% 92%,
            rgba(126, 34, 206, 0.35) 0%,
            transparent 45%
        ),
        #080c14;
}

.auth-top-bar {
    width:
        100%;

    max-width:
        380px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    margin-top:
        6px;
}

.auth-back-btn {
    width:
        40px;

    height:
        40px;

    border-radius:
        50%;

    border:
        1.5px solid #e2e8f0;

    background:
        #ffffff;

    color:
        #0f172a;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    font-size:
        14px;

    cursor:
        pointer;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.04);
}

body.dark-mode .auth-back-btn {
    background:
        #1e293b;

    border-color:
        #334155;

    color:
        #f8fafc;
}

.auth-top-spacer {
    flex:
        1;
}

.auth-theme-pill {
    background:
        rgba(255, 255, 255, 0.85);

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    border:
        1px solid #e2e8f0;

    border-radius:
        24px;

    padding:
        4px 10px;

    display:
        flex;

    gap:
        8px;

    cursor:
        pointer;
}

body.dark-mode .auth-theme-pill {
    background:
        rgba(30, 41, 59, 0.8);

    border-color:
        #334155;
}

.theme-dot {
    font-size:
        14px;

    opacity:
        0.45;
}

.theme-dot.active {
    opacity:
        1;
}

.auth-card-wrap {
    width:
        100%;

    max-width:
        360px;

    margin:
        auto 0;

    display:
        flex;

    flex-direction:
        column;

    align-items:
        center;
}

.auth-logo-text {
    font-size:
        46px;

    font-weight:
        800;

    margin:
        0;

    letter-spacing:
        -1.2px;

    background:
        linear-gradient(
            135deg,
            #00C6FF 0%,
            #0072FF 42%,
            #9333ea 100%
        );

    -webkit-background-clip:
        text;

    -webkit-text-fill-color:
        transparent;

    text-align:
        center;
}

.auth-tagline {
    margin:
        6px 0 20px;

    font-size:
        13px;

    font-weight:
        700;

    text-align:
        center;
}

.tag-smarter {
    color:
        #334155;
}

body.dark-mode .tag-smarter {
    color:
        #cbd5e1;
}

.tag-brighter {
    background:
        linear-gradient(
            90deg,
            #2563eb,
            #db2777
        );

    -webkit-background-clip:
        text;

    -webkit-text-fill-color:
        transparent;
}

.auth-form-view {
    width:
        100%;
}

.auth-heading-group {
    text-align:
        center;

    margin-bottom:
        20px;
}

.auth-heading-group h2 {
    font-size:
        24px;

    font-weight:
        800;

    color:
        #0f172a;

    margin:
        0;
}

body.dark-mode .auth-heading-group h2 {
    color:
        #f8fafc;
}

.auth-heading-group p {
    font-size:
        13.5px;

    color:
        #64748b;

    margin:
        5px 0 0;
}

body.dark-mode .auth-heading-group p {
    color:
        #94a3b8;
}

.auth-field {
    position:
        relative;

    width:
        100%;

    margin-bottom:
        12px;
}

.auth-field input {
    width:
        100%;

    height:
        52px;

    padding:
        0 46px;

    border-radius:
        16px;

    border:
        1.5px solid #e2e8f0;

    background:
        #ffffff;

    color:
        #0f172a;

    font-size:
        14.5px;

    outline:
        none;

    box-sizing:
        border-box;
}

body.dark-mode .auth-field input {
    background:
        #131b2e;

    border-color:
        #2a3852;

    color:
        #f8fafc;
}

.auth-field input:focus {
    border-color:
        #7c3aed;

    box-shadow:
        0 0 0 4px rgba(124, 58, 237, 0.12);
}

.field-icon {
    position:
        absolute;

    left:
        17px;

    top:
        50%;

    transform:
        translateY(-50%);

    color:
        #94a3b8;

    font-size:
        16px;
}

.eye-toggle-btn {
    position:
        absolute;

    right:
        14px;

    top:
        50%;

    transform:
        translateY(-50%);

    border:
        none;

    background:
        transparent;

    color:
        #94a3b8;

    cursor:
        pointer;

    font-size:
        16px;

    padding:
        6px;
}

.forgot-link-box {
    text-align:
        right;

    margin:
        -2px 2px 16px 0;
}

.forgot-link-box a {
    color:
        #2563eb;

    font-size:
        13px;

    font-weight:
        600;

    text-decoration:
        none;
}

.auth-gradient-btn {
    width:
        100%;

    height:
        52px;

    border-radius:
        16px;

    border:
        none;

    background:
        linear-gradient(
            90deg,
            #0099ff 0%,
            #7c3aed 100%
        );

    color:
        #ffffff;

    font-size:
        16px;

    font-weight:
        700;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        10px;

    cursor:
        pointer;

    box-shadow:
        0 8px 22px rgba(124, 58, 237, 0.32);
}

.auth-sep-line {
    display:
        flex;

    align-items:
        center;

    margin:
        18px 0;

    color:
        #94a3b8;

    font-size:
        12px;

    font-weight:
        700;
}

.auth-sep-line::before,
.auth-sep-line::after {
    content:
        '';

    flex:
        1;

    border-bottom:
        1px solid #e2e8f0;
}

body.dark-mode .auth-sep-line::before,
body.dark-mode .auth-sep-line::after {
    border-color:
        #1e293b;
}

.auth-sep-line span {
    padding:
        0 12px;
}

.auth-google-btn {
    width:
        100%;

    height:
        50px;

    border-radius:
        16px;

    border:
        1.5px solid #e2e8f0;

    background:
        #ffffff;

    color:
        #1e293b;

    font-size:
        14.5px;

    font-weight:
        700;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        12px;

    cursor:
        pointer;
}

body.dark-mode .auth-google-btn {
    background:
        #131b2e;

    border-color:
        #2a3852;

    color:
        #f8fafc;
}

.google-svg {
    width:
        20px;

    height:
        20px;
}

.auth-switch-caption {
    text-align:
        center;

    margin-top:
        20px;

    font-size:
        13.5px;

    color:
        #64748b;
}

.auth-switch-caption a {
    color:
        #7c3aed;

    font-weight:
        700;

    text-decoration:
        none;

    margin-left:
        4px;
}

.auth-legal-footer { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; font-size: 12px; }
.auth-legal-footer a { color: #94a3b8; text-decoration: none; }
.legal-pipe { color: #cbd5e1; }

/* USER CHAT THUMBNAILS */
.user-msg-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 12px;
    max-width: 85%;
    align-self: flex-end;
    margin-left: auto;
}
.user-img-grid { display: flex; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; justify-content: flex-end; }
.user-img-card { width: 65px; height: 65px; border-radius: 12px; object-fit: cover; border: 1.5px solid rgba(255, 255, 255, 0.85); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
.user-text-pill { background: linear-gradient(135deg, #0072ff, #7c3aed); color: #ffffff; padding: 10px 16px; border-radius: 20px 20px 5px 20px; font-size: 15px; line-height: 1.5; word-break: break-word; }

/* Terms & Privacy को Auth स्क्रीन के ऊपर लाने के लिए */
#policyModal, #alertModal {
    z-index: 999999 !important;
}

/* CUTE DATE PICKER MODAL */
.cute-date-box {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border-radius: 28px !important;
    border: 2px solid rgba(124, 58, 237, 0.2) !important;
    box-shadow: 0 25px 60px rgba(124, 58, 237, 0.25) !important;
    padding: 22px !important;
    max-width: 320px !important;
}

body.dark-mode .cute-date-box {
    background: rgba(19, 27, 46, 0.95) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.date-header-cute {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.date-badge {
    font-size: 15px;
    font-weight: 800;
    color: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
}

body.dark-mode .date-badge {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.15);
}

.cute-picker-grid {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.picker-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.picker-col label {
    font-size: 11.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
}

.picker-col select {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    outline: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

body.dark-mode .picker-col select {
    background: #0f172a;
    border-color: #334155;
    color: #f8fafc;
}

.picker-col select:focus {
    border-color: #7c3aed;
}

.cute-set-btn {
    width: 100%;
    height: 48px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, #00C6FF, #7c3aed);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.3);
    transition: transform 0.15s ease;
}

.cute-set-btn:active {
    transform: scale(0.97);
}

/* =========================
   NEW CHAT LIST UI (STORIES, TABS, BADGES)
========================== */
.chat-list-screen {
    padding: 10px 16px 100px;
    background: #f8fafc;
    min-height: 100vh;
}

/* Header */
.chat-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.header-actions { display: flex; gap: 12px; }
.icon-btn {
    width: 42px; height: 42px;
    border-radius: 50%; border: none;
    background: #ffffff; color: #0f172a;
    font-size: 16px; box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.icon-btn.create-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

/* Stories */
.stories-container {
    display: flex; gap: 16px; overflow-x: auto;
    padding-bottom: 10px; margin-bottom: 15px;
}
.stories-container::-webkit-scrollbar { display: none; }
.story-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    min-width: 65px;
}
.story-avatar {
    width: 65px; height: 65px; border-radius: 50%;
    position: relative; padding: 3px;
}
.story-avatar.has-story {
    background: linear-gradient(45deg, #f9a8d4, #c084fc, #3b82f6);
}
.story-avatar img, .ai-avatar-box {
    width: 100%; height: 100%; border-radius: 50%;
    border: 3px solid #f8fafc; object-fit: cover;
}
.story-avatar.plus-icon {
    background: #e2e8f0; border: 2px dashed #94a3b8;
    display: flex; justify-content: center; align-items: center;
    color: #64748b; font-size: 20px;
}
.online-dot {
    position: absolute; bottom: 2px; right: 2px;
    width: 14px; height: 14px; background: #10b981;
    border: 3px solid #f8fafc; border-radius: 50%;
}
.story-item span { font-size: 12px; font-weight: 600; color: #475569; }

/* Tabs */
.chat-tabs {
    display: flex; justify-content: space-between;
    background: #ffffff; padding: 5px; border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); margin-bottom: 20px;
}
.tab-btn {
    flex: 1; padding: 10px 0; border: none; background: transparent;
    border-radius: 15px; font-size: 13.5px; font-weight: 700;
    color: #64748b; cursor: pointer; transition: 0.3s;
}
.tab-btn.active {
    background: linear-gradient(135deg, #0072ff, #7c3aed);
    color: white; box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.badge {
    background: #7c3aed; color: white; padding: 2px 6px;
    border-radius: 10px; font-size: 10px; margin-left: 4px;
}
.tab-btn.active .badge { background: white; color: #7c3aed; }

/* Chats List */
.chats-container { display: flex; flex-direction: column; gap: 4px; }
.chat-list-item {
    display: flex; align-items: center; gap: 14px;
    padding: 12px; border-radius: 20px; transition: 0.2s;
}
.chat-list-item:active { background: #f1f5f9; }
.chat-list-item.pinned { background: #f3e8ff; }
.chat-avatar { width: 54px; height: 54px; position: relative; border-radius: 50%; }
.chat-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ai-avatar-box { background: #e0e7ff; display: flex; justify-content: center; align-items: center; font-size: 24px; }
.group-avatar { background: #e2e8f0; display: flex; justify-content: center; align-items: center; color: #475569; font-size: 20px; }

/* Chat Text Details */
.chat-info { flex: 1; min-width: 0; }
.chat-name-row, .chat-msg-row {
    display: flex; justify-content: space-between; align-items: center;
}
.chat-name-row h4 {
    margin: 0; font-size: 15px; font-weight: 700; color: #0f172a;
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-time { font-size: 11px; font-weight: 600; color: #94a3b8; }
.chat-msg-row p {
    margin: 4px 0 0; font-size: 13.5px; color: #64748b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 80%;
}

/* Badges & Tags */
.official-tag {
    background: #e0e7ff; color: #4338ca; font-size: 10px;
    padding: 2px 6px; border-radius: 6px; font-weight: 800; text-transform: uppercase;
}
.premium-tag {
    background: linear-gradient(90deg, #f3e8ff, #e0e7ff); border: 1px solid #c084fc;
    color: #7c3aed; font-size: 10px; padding: 2px 8px; border-radius: 10px; font-weight: 800;
}
.text-purple { color: #7c3aed; }
.unread-count {
    background: #7c3aed; color: white; width: 22px; height: 22px;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%; font-size: 11px; font-weight: 700;
}
.gray-badge { background: #94a3b8; }
.pin-icon { color: #64748b; font-size: 12px; transform: rotate(45deg); }
.msg-icons { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 12px; }

/* =========================
   FLOATING BOTTOM NAVIGATION
========================== */
.floating-nav {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 380px;
    height: 65px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 35px; /* Curved Rectangle / Pill shape */
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.15);
    z-index: 1000;
    padding: 0 10px;
}

body.dark-mode .floating-nav {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-item {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #94a3b8;
    width: 60px;
    height: 100%;
    cursor: pointer;
    transition: 0.3s ease;
}

.nav-item i {
    font-size: 20px;
    transition: 0.3s ease;
}

.nav-item span {
    font-size: 10px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(5px);
    transition: 0.3s ease;
    display: none; /* जगह बचाने के लिए छुपाया */
}

/* Active State (जब बटन दबा हो) */
.nav-item.active {
    color: #7c3aed;
}

.nav-item.active i {
    transform: translateY(-2px);
    text-shadow: 0 4px 10px rgba(124, 58, 237, 0.4);
}

body.dark-mode .nav-item.active {
    color: #c084fc;
}

/* =========================
   ULTRA COMPACT CHAT UI FIX
========================== */
/* टॉप हेडर की मार्जिन कम की */
.chat-list-header { margin-bottom: 12px !important; }

/* स्टोरीज़ का साइज और छोटा किया */
.story-avatar { width: 50px !important; height: 50px !important; padding: 2px !important; }
.story-avatar.plus-icon { font-size: 16px !important; }
.story-item span { font-size: 10.5px !important; }
.stories-container { gap: 12px !important; margin-bottom: 12px !important; }

/* चैट टैब्स (All, Unread) को पतला किया */
.chat-tabs { padding: 4px !important; margin-bottom: 12px !important; }
.tab-btn { padding: 8px 0 !important; font-size: 12.5px !important; }

/* चैट लिस्ट के आइटम्स को पास-पास किया */
.chat-list-item { padding: 6px 10px !important; gap: 12px !important; margin-bottom: 4px !important; }
.chat-avatar { width: 44px !important; height: 44px !important; }
.chat-name-row h4 { font-size: 14px !important; }
.chat-time { font-size: 10.5px !important; }
.chat-msg-row p { font-size: 12px !important; margin-top: 2px !important; }
.official-tag, .premium-tag { font-size: 9px !important; padding: 2px 6px !important; }
.unread-count { width: 18px !important; height: 18px !important; font-size: 9px !important; }

/* =========================
   NEW HOME SCREEN UI
========================== */
.home-greeting-area {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 24px; padding-top: 10px;
}
.greeting-text h2 { margin: 0; font-size: 26px; font-weight: 800; color: #0f172a; }
.greeting-text p { margin: 4px 0 0; font-size: 15px; color: #64748b; font-weight: 600; }
.ai-glow-circle {
    width: 60px; height: 60px; border-radius: 50%;
    background: linear-gradient(135deg, #e0e7ff, #f3e8ff);
    display: flex; justify-content: center; align-items: center;
    font-size: 30px; box-shadow: 0 10px 25px rgba(124, 58, 237, 0.2);
}

/* Ask Banner */
.ask-anything-banner {
    background: #ffffff; border-radius: 24px; padding: 18px 20px;
    display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04); cursor: pointer;
    border: 1px solid #f1f5f9; transition: transform 0.2s;
}
.ask-anything-banner:active { transform: scale(0.97); }
.banner-icon { color: #7c3aed; font-size: 24px; }
.banner-text { flex: 1; }
.banner-text h3 { margin: 0; font-size: 17px; color: #0f172a; }
.banner-text p { margin: 2px 0 0; font-size: 13px; color: #64748b; }
.banner-arrow {
    width: 40px; height: 40px; border-radius: 50%; background: #7c3aed;
    color: white; display: flex; justify-content: center; align-items: center;
}

/* Quick Actions */
.quick-actions-scroll {
    display: flex; gap: 10px; overflow-x: auto; margin-bottom: 24px; padding-bottom: 5px;
}
.quick-actions-scroll::-webkit-scrollbar { display: none; }
.action-chip {
    background: #ffffff; border: 1px solid #e2e8f0; border-radius: 20px;
    padding: 10px 16px; font-size: 13px; font-weight: 600; color: #475569;
    white-space: nowrap; box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

/* Motivation Card */
.motivation-card {
    background: linear-gradient(135deg, #f8fafc, #e0f2fe);
    border-radius: 20px; padding: 22px; margin-bottom: 16px;
    position: relative; overflow: hidden;
}
.quote-icon { font-size: 24px; color: #bae6fd; margin-bottom: 12px; }
.motivation-card h3 { margin: 0; font-size: 17px; color: #334155; line-height: 1.4; position: relative; z-index: 2; }
.card-line { width: 40px; height: 4px; background: #3b82f6; border-radius: 2px; margin-top: 14px; }

/* Goal Card */
.goal-card {
    background: #ffffff; border-radius: 20px; padding: 18px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.03); border: 1px solid #f1f5f9;
}
.goal-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.goal-icon {
    width: 36px; height: 36px; border-radius: 10px; background: #f3e8ff;
    color: #7c3aed; display: flex; justify-content: center; align-items: center; font-size: 16px;
}
.goal-text-area { flex: 1; }
.goal-text-area h4 { margin: 0; font-size: 15px; color: #0f172a; }
.goal-text-area p { margin: 2px 0 0; font-size: 12px; color: #64748b; }
.goal-progress-text { font-size: 14px; font-weight: 700; color: #7c3aed; }
.progress-bar-bg { width: 100%; height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #7c3aed, #c084fc); border-radius: 4px; }

/* Dark Mode Support */
body.dark-mode .greeting-text h2, body.dark-mode .banner-text h3, body.dark-mode .goal-text-area h4 { color: #f8fafc; }
body.dark-mode .ask-anything-banner, body.dark-mode .goal-card, body.dark-mode .action-chip {
    background: #111827; border-color: #1f2937;
}
body.dark-mode .motivation-card { background: linear-gradient(135deg, #111827, #1e3a8a); }

/* =========================================
   PERFECT LIQUID GLASS SUBSCRIPTION (CLEAN)
========================================= */
.sub-screen {
    position: relative !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: radial-gradient(circle at 90% 10%, #ede9fe 0%, #f8fafc 45%, #ffffff 100%) !important;
    padding: 50px 18px 90px 18px !important;
    box-sizing: border-box !important;
}

.sub-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    width: 100%;
}

.sub-glass-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.liquid-back-btn {
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.9); border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 16px rgba(148, 163, 184, 0.15); 
    display: flex; align-items: center; justify-content: center;
    color: #1e293b; font-size: 16px; cursor: pointer;
}

.sub-header-titles { flex: 1; margin-left: 14px; }
.sub-header-titles h2 { font-size: 24px; font-weight: 800; color: #0f172a; margin: 0; }
.sub-header-titles p { font-size: 13.5px; color: #64748b; margin: 2px 0 0; font-weight: 500; }

.liquid-crown-badge {
    width: 50px; height: 50px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(243,232,255,0.6));
    border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 10px 24px rgba(124,58,237,0.16);
    display: flex; align-items: center; justify-content: center; font-size: 20px; color: #7c3aed;
}

.liquid-plan-card {
    width: 100% !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, 0.65); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px; 
    padding: 18px 20px; 
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 25px rgba(148, 163, 184, 0.08); 
    display: flex; 
    align-items: center; 
    gap: 16px;
    cursor: pointer; 
    transition: all 0.25s ease;
}

.liquid-plan-card.active {
    border: 2px solid #a855f7; background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(245,243,255,0.8));
    box-shadow: 0 14px 30px rgba(168, 85, 247, 0.18);
}

.radio-outer { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cbd5e1; display: flex; align-items: center; justify-content: center; }
.liquid-plan-card.active .radio-outer { border-color: #7c3aed; }
.liquid-plan-card.active .radio-inner { width: 12px; height: 12px; border-radius: 50%; background: #7c3aed; }

.plan-details { flex: 1; }
.plan-name-row { display: flex; align-items: center; gap: 10px; }
.plan-name-row h4 { margin: 0; font-size: 16px; font-weight: 700; color: #0f172a; }
.tag-popular { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 12px; background: #ede9fe; color: #7c3aed; }
.plan-details p { margin: 4px 0 0; font-size: 13px; color: #64748b; font-weight: 500; }

.liquid-main-btn {
    width: 100%; height: 62px; margin-top: 10px; border-radius: 32px;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 40%, #c084fc 100%);
    box-shadow: 0 16px 36px rgba(99, 102, 241, 0.35), inset 0 2px 6px rgba(255,255,255,0.6);
    display: flex; align-items: center; justify-content: center; position: relative; color: #ffffff; cursor: pointer; transition: transform 0.2s;
}
.liquid-main-btn:active { transform: scale(0.98); }
.btn-text { font-size: 17px; font-weight: 700; letter-spacing: 0.2px; text-shadow: 0 1px 3px rgba(0,0,0,0.15); }
.btn-pill-arrow {
    position: absolute; right: 8px; width: 46px; height: 46px; border-radius: 50%;
    background: rgba(255,255,255,0.24); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.4);
    display: flex; align-items: center; justify-content: center; color: #ffffff; font-size: 16px;
}

.sub-legal-note { text-align: center; margin-top: 8px; }
.sub-legal-note p { font-size: 12.5px; color: #64748b; margin: 0; font-weight: 600; }
.sub-legal-note span { font-size: 11.5px; color: #94a3b8; margin-top: 4px; display: block; }


/* =========================
   EDIT PROFILE SCREEN CSS (FINAL FIX)
========================== */
.profile-screen {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100dvh; 
    z-index: 99999;
    padding: 16px 20px 140px 20px !important; 
    overflow-y: auto !important; 
    -webkit-overflow-scrolling: touch;
    background: radial-gradient(circle at top left, rgba(237, 233, 254, 0.85), transparent 45%), 
                radial-gradient(circle at top right, rgba(224, 231, 255, 0.85), transparent 45%), #f8fafc;
}

.profile-header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px;
}
.profile-back-btn {
    width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid #e2e8f0; 
    background: rgba(255,255,255,0.9); font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.profile-header h2 { margin: 0; font-size: 22px; font-weight: 800; color: #0f172a; }
.profile-save-btn {
    background: linear-gradient(135deg, #0072ff, #7c3aed); color: white; border: none; 
    padding: 10px 22px; border-radius: 24px; font-weight: 700; font-size: 15px; cursor: pointer;
    box-shadow: 0 6px 16px rgba(124,58,237,0.25);
}
.profile-subtitle { text-align: center; color: #64748b; font-size: 13px; font-weight: 500; margin: 0 0 20px; }

.profile-pic-container { text-align: center; margin-bottom: 22px; }
.profile-pic-ring {
    position: relative; display: inline-block; padding: 3px; border-radius: 50%; 
    background: linear-gradient(135deg, #a855f7, #3b82f6); box-shadow: 0 8px 20px rgba(124,58,237,0.15);
}
.profile-pic-ring img { 
    width: 90px; height: 90px; border-radius: 50%; border: 3px solid white; 
    object-fit: cover; display: block; 
}
.camera-badge {
    position: absolute; bottom: 0; right: 0; background: #ffffff; width: 32px; height: 32px; 
    border-radius: 50%; display: flex; justify-content: center; align-items: center; color: #7c3aed; font-size: 13px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.12); border: 2px solid white;
}
.pic-hint { color: #64748b; font-size: 12.5px; margin: 8px 0 0; font-weight: 500; }

.profile-input-card {
    background: rgba(255,255,255,0.8); backdrop-filter: blur(12px); border-radius: 20px; padding: 14px 18px; margin-bottom: 10px; 
    border: 1.5px solid #ffffff; box-shadow: 0 6px 20px rgba(15,23,42,0.03); display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.profile-input-card.bio-card { align-items: flex-start; }
.icon-left { font-size: 18px; color: #475569; }
.icon-right { color: #94a3b8; font-size: 13px; }
.input-box { flex: 1; }
.input-box label { display: block; margin: 0; font-size: 10.5px; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.input-box input { border: none; background: transparent; outline: none; width: 100%; font-size: 15px; font-weight: 700; color: #0f172a; margin-top: 2px; padding: 0; }
.input-box textarea { border: none; background: transparent; outline: none; width: 100%; font-size: 13.5px; font-weight: 600; color: #334155; margin-top: 2px; resize: none; font-family: inherit; line-height: 1.35; }
.char-count { display: block; text-align: right; font-size: 10px; color: #94a3b8; font-weight: 700; margin-top: 2px; }

.profile-premium-card {
    background: linear-gradient(135deg, rgba(243, 232, 255, 0.9), rgba(224, 231, 255, 0.9)); 
    backdrop-filter: blur(12px);
    border-radius: 20px; padding: 14px 18px; border: 1.5px solid #ffffff; box-shadow: 0 8px 25px rgba(124, 58, 237, 0.1); 
    display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px;
}
.premium-crown-icon {
    background: linear-gradient(135deg, #a855f7, #3b82f6); width: 40px; height: 40px; border-radius: 50%; 
    display: flex; justify-content: center; align-items: center; color: white; font-size: 16px; box-shadow: 0 4px 12px rgba(124,58,237,0.25);
}
.premium-text { flex: 1; }
.premium-text h4 { margin: 0; font-size: 15px; color: #7c3aed; font-weight: 800; }
.premium-text p { margin: 2px 0 0; font-size: 11.5px; color: #64748b; font-weight: 600; }

/* =========================================
   FIXED PREMIUM CHAT SCREEN STYLING
========================================= */
.active-chat-screen {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #f8fafc !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

.chat-win-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 16px !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    width: 100% !important;
    flex-shrink: 0 !important;
}

.chat-win-user-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.chat-back-btn {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    border: 1px solid #e2e8f0 !important;
    background: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #0f172a !important;
}

.chat-win-avatar-wrap {
    position: relative !important;
    width: 40px !important;
    height: 40px !important;
}

.chat-win-avatar-wrap img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.chat-online-dot {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    width: 10px !important;
    height: 10px !important;
    background: #10b981 !important;
    border: 2px solid white !important;
    border-radius: 50% !important;
}

.chat-win-user-info h4 {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.chat-win-user-info p {
    margin: 2px 0 0 !important;
    font-size: 11px !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

.chat-prem-tag {
    background: linear-gradient(90deg, #f3e8ff, #e0e7ff) !important;
    border: 1px solid #c084fc !important;
    color: #7c3aed !important;
    font-size: 9.5px !important;
    padding: 1px 6px !important;
    border-radius: 8px !important;
    font-weight: 800 !important;
}

.chat-win-actions {
    display: flex !important;
    gap: 10px !important;
}

.chat-top-icon-btn {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 1px solid #e2e8f0 !important;
    background: white !important;
    color: #475569 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

/* Messages container */
.chat-win-messages {
    flex: 1 !important;
    width: 100% !important;
    padding: 16px !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    background: #f8fafc !important;
}

.chat-date-pill {
    align-self: center !important;
    background: rgba(0,0,0,0.06) !important;
    padding: 4px 12px !important;
    border-radius: 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    margin-bottom: 6px !important;
}

.msg-bubble-row {
    display: flex !important;
    gap: 10px !important;
    max-width: 80% !important;
}

.msg-bubble-row.incoming {
    align-self: flex-start !important;
}

.msg-bubble-row.outgoing {
    align-self: flex-end !important;
    flex-direction: row-reverse !important;
}

.msg-content-box {
    padding: 12px 16px !important;
    border-radius: 18px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
}

.incoming .msg-content-box {
    background: #ffffff !important;
    color: #0f172a !important;
    border-radius: 18px 18px 18px 4px !important;
    border: 1px solid #e2e8f0 !important;
}

.outgoing .msg-content-box {
    background: linear-gradient(135deg, #0072ff, #7c3aed) !important;
    color: #ffffff !important;
    border-radius: 18px 18px 4px 18px !important;
}

.msg-time {
    display: block !important;
    font-size: 10px !important;
    margin-top: 4px !important;
    text-align: right !important;
    opacity: 0.75 !important;
    font-weight: 600 !important;
}

/* Footer Input Bar */
.chat-win-footer {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)) 16px !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    flex-shrink: 0 !important;
}

.chat-footer-icon-btn {
    background: transparent !important;
    border: none !important;
    font-size: 20px !important;
    color: #64748b !important;
    cursor: pointer !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.chat-input-pill {
    flex: 1 !important;
    height: 44px !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 22px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 14px !important;
}

.chat-input-pill input {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    outline: none !important;
    font-size: 14px !important;
    color: #0f172a !important;
}

.chat-send-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: none !important;
    background: linear-gradient(135deg, #0072ff, #7c3aed) !important;
    color: white !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25) !important;
}


#activeChatScreen {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* =========================================================
   ZORENO FINAL CLEAN NAVIGATION & EXPLORE
   ========================================================= */

/* 1. Bottom 4-Tabs Navigation Hamesha Visible */
#bottomNav.floating-nav {
    position: fixed !important;
    left: 50% !important;
    bottom: 16px !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 99999 !important;
}

#bottomNav.floating-nav .nav-item {
    display: flex !important;
    visibility: visible !important;
}

/* Keyboard khulte hi nav hide hoga */
body.keyboard-open #bottomNav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 2. Zoreno Brand Gradient Header (Original Image 26992 Match) */
.brand-title-wrap h1.brand-gradient-text,
.search-header-brand {
    margin: 0 !important;
    font-size: 30px !important;
    font-weight: 900 !important;
    letter-spacing: -1px !important;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #c084fc 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

/* 3. Compact Slim Explore Card (Niche ke content ko nahi dabayega) */
.explore-banner-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 243, 255, 0.82) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 20px !important;
    padding: 12px 14px !important;
    margin-bottom: 10px !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.05) !important;
}

body.dark-mode .explore-banner-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.explore-title {
    margin: 0 !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
}
body.dark-mode .explore-title { color: #f8fafc !important; }

.explore-subtitle {
    margin: 2px 0 8px 0 !important;
    font-size: 11.5px !important;
    color: #64748b !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
}
body.dark-mode .explore-subtitle { color: #94a3b8 !important; }

/* 4. Search Bar & Clickable Send Button */
.explore-search-pill {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 24px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 4px 0 12px !important;
    position: relative !important;
    z-index: 5 !important;
}

body.dark-mode .explore-search-pill {
    background: #111827 !important;
    border-color: #334155 !important;
}

.explore-glass-icon {
    color: #64748b !important;
    font-size: 14px !important;
    margin-right: 8px !important;
    flex-shrink: 0 !important;
}

.explore-search-pill input {
    flex: 1 !important;
    min-width: 0 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    padding: 0 !important;
}

body.dark-mode .explore-search-pill input { color: #f8fafc !important; }

.explore-arrow-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    border-radius: 50% !important;
    border: none !important;
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10 !important;
    pointer-events: auto !important;
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3) !important;
    flex-shrink: 0 !important;
}

.explore-arrow-btn:active {
    transform: scale(0.92) !important;
}

/* 5. In-App Web Search Screen */
.web-search-screen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    background: #f8fafc !important;
    z-index: 990 !important;
    padding: 14px 16px 95px 16px !important;
    display: none;
    flex-direction: column !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

body.dark-mode .web-search-screen {
    background: #080c14 !important;
}

.web-search-top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 12px !important;
    flex-shrink: 0 !important;
}

.search-input-pill-wrap {
    height: 48px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 26px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 6px 0 14px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04) !important;
    flex-shrink: 0 !important;
}

body.dark-mode .search-input-pill-wrap {
    background: #111827 !important;
    border-color: #334155 !important;
}

.search-submit-purple-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.search-filter-tabs {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
    margin-bottom: 12px !important;
    flex-shrink: 0 !important;
}
.search-filter-tabs::-webkit-scrollbar { display: none; }

.s-tab {
    padding: 6px 14px !important;
    border-radius: 18px !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
}

.s-tab.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

.search-results-scroll {
    flex: 1 !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding-bottom: 20px !important;
}
.search-results-scroll::-webkit-scrollbar { display: none; }

.knowledge-result-card {
    background: linear-gradient(145deg, #ffffff, #faf5ff) !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 14px !important;
}
body.dark-mode .knowledge-result-card { background: #111827 !important; border-color: #1f2937 !important; }

.k-header-row { display: flex !important; justify-content: space-between !important; align-items: center !important; gap: 10px !important; margin-bottom: 10px !important; }
.k-header-row h3 { margin: 0 !important; font-size: 18px !important; font-weight: 800 !important; }
.k-thumb-img { width: 100px !important; height: 65px !important; border-radius: 12px !important; object-fit: cover !important; }

.web-result-item {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 12px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
body.dark-mode .web-result-item { background: #111827 !important; border-color: #1f2937 !important; }
.res-title { font-size: 14.5px !important; font-weight: 800 !important; color: #1d4ed8 !important; text-decoration: none !important; }
.res-snippet { font-size: 12px !important; color: #475569 !important; line-height: 1.4 !important; margin: 0 !important; }

/* =========================================================
   ZORENO NATIVE SEARCH & UI FIXES
   ========================================================= */

/* 1. स्प्लैश स्क्रीन पर बॉटम बार न दिखे */
#splashScreen {
    z-index: 999999 !important;
}

/* 2. सर्च स्क्रीन हेडर और गोल बटन्स */
.search-nav-circle-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

.search-nav-circle-btn.purple-accent-btn {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    color: #ffffff !important;
    border: none !important;
}

/* 3. सर्च इनपुट बार (चौकोर बॉर्डर पूरी तरह खत्म) */
.search-input-pill-wrap {
    height: 50px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 28px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 6px 0 16px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.05) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.search-input-pill-wrap input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 15px !important;
    color: #0f172a !important;
    padding: 0 !important;
    margin: 0 !important;
}

.search-submit-purple-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    max-width: 38px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    border: none !important;
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

/* 4. शॉपिंग ग्रिड कार्ड्स (Amazon/Flipkart/Myntra लुक) */
.shopping-horizontal-scroll {
    display: flex !important;
    gap: 12px !important;
    overflow-x: auto !important;
    padding: 6px 0 14px 0 !important;
    margin-bottom: 10px !important;
}
.shopping-horizontal-scroll::-webkit-scrollbar { display: none; }

.native-shop-card {
    min-width: 140px !important;
    max-width: 140px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 18px !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03) !important;
    cursor: pointer !important;
}

.native-shop-card img {
    width: 100% !important;
    height: 110px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
}

.native-shop-price {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #16a34a !important;
}

.native-shop-title {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.native-shop-store {
    font-size: 10.5px !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

/* =========================================================
   ZORENO NATIVE SEARCH PILL & BUTTON BORDER CLEANUP
   ========================================================= */

/* 1. हेडर बटन्स (बैक और एडिट) को हमेशा गोल रखना */
.web-search-top-bar button,
.search-nav-circle-btn,
.icon-round-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #ffffff !important;
    outline: none !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 2. इनपुट बार से चौकोर डिब्बा और कट का निशान पूरी तरह हटाना */
.search-input-pill-wrap {
    height: 52px !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 30px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 6px 0 16px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.05) !important;
    box-sizing: border-box !important;
}

.search-input-pill-wrap input,
#liveGoogleInput {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 15px !important;
    color: #0f172a !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.search-clear-btn {
    border: none !important;
    background: transparent !important;
    color: #94a3b8 !important;
    font-size: 16px !important;
    padding: 6px 8px !important;
    cursor: pointer !important;
    outline: none !important;
}

.search-submit-purple-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    border-radius: 50% !important;
    border: none !important;
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
}

/* 3. डायरेक्ट वेबसाइट / नेविगेशन कार्ड स्टाइल */
.direct-site-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 16px !important;
    margin-bottom: 12px !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    cursor: pointer !important;
}

.direct-site-info {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.direct-site-icon {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 22px !important;
}

/* 4. Google Maps कार्ड */
.maps-preview-card {
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    margin-bottom: 14px !important;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05) !important;
}

.maps-preview-card iframe {
    width: 100% !important;
    height: 180px !important;
    border: none !important;
}

.maps-info-footer {
    padding: 14px 16px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* =========================================================
   EXPLORE ARROW BUTTON CLICK & KEYBOARD BAR HIDE FIX
   ========================================================= */

/* Button ko input ke upar top layer par laana taaki click turant lage */
.explore-search-pill {
    position: relative !important;
}

.explore-arrow-btn {
    position: relative !important;
    z-index: 9999 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
}

/* Typing karte waqt floating nav bar screen se gayab rahega */
body.keyboard-open #bottomNav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Arrow button click fix */
.explore-arrow-btn {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 9999 !important;
    cursor: pointer !important;
}

/* Typing ke waqt bottom bar hide */
body.keyboard-open #bottomNav {
    display: none !important;
}


/* =========================================================
   FOCUS SPRINT EXPANDABLE TRACK & CLEAN RUNNER FIX
   ========================================================= */

.focus-sprint-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(245, 243, 255, 0.85) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 24px !important;
    padding: 14px 16px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.06) !important;
}

body.dark-mode .focus-sprint-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.sprint-header-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 10px !important;
}

.sprint-title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}
body.dark-mode .sprint-title { color: #f8fafc !important; }

.sprint-subtitle {
    margin: 2px 0 0 0 !important;
    font-size: 11.5px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}
body.dark-mode .sprint-subtitle { color: #94a3b8 !important; }

.sprint-timer-display {
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #4338ca !important;
    letter-spacing: -0.5px !important;
}
body.dark-mode .sprint-timer-display { color: #818cf8 !important; }

/* Main White Pill Wrap (अंदर सब लॉक रहेगा) */
.sprint-control-pill-wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 26px !important;
    height: 44px !important;
    padding: 3px 4px 3px 6px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    position: relative !important;
}
body.dark-mode .sprint-control-pill-wrap {
    background: #111827 !important;
    border-color: #334155 !important;
}

/* 4 Presets Group */
.sprint-presets-group {
    display: flex !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    transition: all 0.3s ease !important;
}

/* टाइमर चालू होते ही प्रीसेट्स स्मूथली गायब होंगे */
.sprint-control-pill-wrap.running .sprint-presets-group {
    display: none !important;
}

.preset-pill-btn {
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    padding: 5px 8px !important;
    border-radius: 14px !important;
    cursor: pointer !important;
    line-height: 1 !important;
}
body.dark-mode .preset-pill-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

.preset-pill-btn.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
    color: #ffffff !important;
    border-color: transparent !important;
}

/* Track Area (टाइमर चलते ही पूरी चौड़ाई ले लेगा) */
.sprint-mini-track {
    flex: 1 !important;
    height: 100% !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 10px 0 8px !important;
}

/* YouTube Video Style Line */
.sprint-progress-track-line {
    width: 100% !important;
    height: 4px !important;
    background: #e2e8f0 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}
body.dark-mode .sprint-progress-track-line { background: #334155 !important; }

.sprint-progress-fill-blue {
    height: 100% !important;
    width: 0%;
    background: linear-gradient(90deg, #2563eb, #7c3aed) !important;
    border-radius: 4px !important;
    transition: width 0.3s linear !important;
}

/* Compact Rabbit (16px, बिना बड़े धुएँ के) */
.sprint-brown-rabbit {
    position: absolute !important;
    left: 0%;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 16px !important;
    line-height: 1 !important;
    z-index: 2 !important;
    transition: left 0.3s linear !important;
    user-select: none !important;
}

.sprint-brown-rabbit.hopping {
    animation: bunnyHop 0.35s infinite alternate ease-in-out !important;
}

@keyframes bunnyHop {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -65%) scale(1.08); }
}

.sprint-flag-icon {
    position: absolute !important;
    right: -2px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 14px !important;
    line-height: 1 !important;
    z-index: 1 !important;
}

/* Compact Go / Pause Button (पिल के अंदर बंद रहेगा) */
.sprint-go-gradient-btn {
    height: 36px !important;
    padding: 0 12px !important;
    border-radius: 18px !important;
    border: none !important;
    background: linear-gradient(135deg, #1e3a8a, #4338ca) !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(67, 56, 202, 0.25) !important;
}

.sprint-go-gradient-btn:active {
    transform: scale(0.95) !important;
}


/* Timer Display & Reset Button Alignment */
.sprint-timer-action-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.sprint-reset-btn {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    border: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    color: #64748b !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: transform 0.2s ease, background 0.2s ease !important;
}

.sprint-reset-btn:active {
    transform: rotate(-90deg) scale(0.9) !important;
    background: #ede9fe !important;
    color: #7c3aed !important;
}

body.dark-mode .sprint-reset-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

/* =========================================================
   VIBRANT PREMIUM UI & HEADER REDESIGN (IMAGE 27400 MATCH)
   ========================================================= */

/* 1. Dull White Background Hata Kar Vibrant Mesh Aura */
body, 
.chat-list-screen {
    background: 
        radial-gradient(circle at 10% 5%, rgba(192, 132, 252, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 90% 8%, rgba(129, 140, 248, 0.3) 0%, transparent 45%),
        radial-gradient(circle at 50% 95%, rgba(224, 231, 255, 0.5) 0%, transparent 50%),
        #f8f9ff !important;
}

body.dark-mode, 
body.dark-mode .chat-list-screen {
    background: 
        radial-gradient(circle at 10% 5%, rgba(124, 58, 237, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 90% 8%, rgba(59, 130, 246, 0.2) 0%, transparent 45%),
        #090d16 !important;
}

/* 2. Top Search Header Full-Width Layout */
.chat-list-header-modern {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 14px !important;
    padding-top: 4px !important;
}

.top-search-field-pill {
    flex: 1 !important;
    height: 48px !important;
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(18px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 26px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 16px !important;
    gap: 12px !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.05) !important;
}

body.dark-mode .top-search-field-pill {
    background: rgba(26, 34, 53, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.top-search-field-pill i {
    color: #64748b !important;
    font-size: 15px !important;
}

.top-search-field-pill input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 14px !important;
    color: #0f172a !important;
    font-weight: 500 !important;
}

body.dark-mode .top-search-field-pill input {
    color: #f8fafc !important;
}

.top-compose-circle-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    border-radius: 50% !important;
    border: none !important;
    background: linear-gradient(135deg, #7c3aed, #9333ea) !important;
    color: #ffffff !important;
    font-size: 17px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35) !important;
    transition: transform 0.15s ease !important;
}

.top-compose-circle-btn:active {
    transform: scale(0.92) !important;
}

/* 3. Bottom Navigation Bar With Labels & Indicator */
#bottomNav.floating-nav {
    height: 68px !important;
    border-radius: 36px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.12) !important;
    padding: 0 12px !important;
}

body.dark-mode #bottomNav.floating-nav {
    background: rgba(19, 27, 46, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45) !important;
}

.nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 3px !important;
    color: #94a3b8 !important;
    position: relative !important;
    width: 65px !important;
    height: 100% !important;
}

.nav-item i {
    font-size: 19px !important;
    transition: transform 0.2s ease !important;
}

/* Labels ko show karna */
.nav-item span {
    display: block !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    transform: none !important;
    letter-spacing: 0.1px !important;
}

.nav-item.active {
    color: #7c3aed !important;
}

body.dark-mode .nav-item.active {
    color: #c084fc !important;
}

/* Active Tab Underline Indicator */
.nav-item.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 6px !important;
    width: 20px !important;
    height: 3px !important;
    background: #7c3aed !important;
    border-radius: 3px !important;
}

body.dark-mode .nav-item.active::after {
    background: #c084fc !important;
}

/* =========================================================
   SLEEK COMPACT HEADER & SLIM CHAT ITEMS FIX
   ========================================================= */

/* Extra purane buttons ko screen se hatana */
.chat-list-header,
.icon-btn.create-btn {
    display: none !important;
}

/* 1. Sleek Compact Top Search Header */
.chat-list-header-modern {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
    padding-top: 2px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.top-search-field-pill {
    flex: 1 !important;
    height: 42px !important; /* Slim compact height */
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 22px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 14px !important;
    gap: 10px !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.04) !important;
}

body.dark-mode .top-search-field-pill {
    background: rgba(26, 34, 53, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.top-search-field-pill i {
    color: #64748b !important;
    font-size: 14px !important;
}

.top-search-field-pill input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
    font-weight: 500 !important;
    padding: 0 !important;
}

body.dark-mode .top-search-field-pill input {
    color: #f8fafc !important;
}

.top-compose-circle-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 50% !important;
    border: none !important;
    background: linear-gradient(135deg, #7c3aed, #9333ea) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3) !important;
    flex-shrink: 0 !important;
}

/* 2. Chat Profiles ko Slim & Clean banana (Chauda-pan khatam) */
.chats-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.chat-list-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 8px 10px !important; /* Compact padding */
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 2px !important;
}

body.dark-mode .chat-list-item {
    background: rgba(30, 41, 59, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

.chat-avatar {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    position: relative !important;
}

.chat-avatar img,
.bot-circle-avatar {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.chat-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.chat-name-row h4 {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.chat-time {
    font-size: 11px !important;
    color: #94a3b8 !important;
}

.chat-msg-row p {
    font-size: 12.5px !important;
    color: #64748b !important;
    margin: 2px 0 0 0 !important;
}


/* =========================================================
   FOCUS MUSIC AMBIENT PLAYER (IMAGE 27413 MATCH)
   ========================================================= */

.tools-screen {
    width: 100% !important;
    min-height: 100vh !important;
    padding: 16px 16px 120px 16px !important;
    box-sizing: border-box !important;
    display: none;
    flex-direction: column !important;
    background: 
        radial-gradient(circle at 10% 5%, rgba(192, 132, 252, 0.4) 0%, transparent 45%),
        radial-gradient(circle at 90% 12%, rgba(129, 140, 248, 0.35) 0%, transparent 45%),
        radial-gradient(circle at 50% 90%, rgba(224, 231, 255, 0.6) 0%, transparent 50%),
        #f6f8fe !important;
}

body.dark-mode .tools-screen {
    background: 
        radial-gradient(circle at 10% 5%, rgba(124, 58, 237, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 90% 12%, rgba(59, 130, 246, 0.2) 0%, transparent 45%),
        #090d16 !important;
}

/* 1. Music Top Bar */
.music-top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 16px !important;
}

.music-circle-icon-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #475569 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.06) !important;
}

body.dark-mode .music-circle-icon-btn {
    background: rgba(30, 41, 59, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

.music-top-center {
    text-align: center !important;
}

.music-main-title {
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 900 !important;
    color: #0f172a !important;
    letter-spacing: -0.5px !important;
}
body.dark-mode .music-main-title { color: #f8fafc !important; }

.music-sub-title {
    margin: 2px 0 0 0 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #64748b !important;
}
body.dark-mode .music-sub-title { color: #94a3b8 !important; }

/* 2. Glassy Hero Player Card */
.music-hero-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 243, 255, 0.88) 100%) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 28px !important;
    padding: 18px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 12px 36px rgba(124, 58, 237, 0.08) !important;
}

body.dark-mode .music-hero-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.music-hero-header {
    display: flex !important;
    gap: 16px !important;
    margin-bottom: 14px !important;
}

.music-cover-art {
    width: 82px !important;
    height: 82px !important;
    border-radius: 18px !important;
    object-fit: cover !important;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.15) !important;
}

.music-hero-details {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.music-title-fav-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.music-title-fav-row h3 {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}
body.dark-mode .music-title-fav-row h3 { color: #f8fafc !important; }

.music-heart-btn {
    border: none !important;
    background: transparent !important;
    font-size: 18px !important;
    color: #94a3b8 !important;
    cursor: pointer !important;
}
.music-heart-btn.liked { color: #ec4899 !important; }

/* Dynamic Equalizer Visualizer */
.music-waveform-bars {
    display: flex !important;
    align-items: flex-end !important;
    gap: 3px !important;
    height: 32px !important;
}

.music-waveform-bars span {
    flex: 1 !important;
    width: 3px !important;
    height: 8px;
    border-radius: 4px !important;
    background: linear-gradient(180deg, #c084fc, #7c3aed) !important;
    transition: height 0.15s ease !important;
}

.music-waveform-bars.playing span {
    animation: waveJump 0.8s infinite ease-in-out alternate !important;
}

.music-waveform-bars.playing span:nth-child(2n) { animation-delay: 0.15s !important; }
.music-waveform-bars.playing span:nth-child(3n) { animation-delay: 0.3s !important; }
.music-waveform-bars.playing span:nth-child(4n) { animation-delay: 0.45s !important; }

@keyframes waveJump {
    0% { height: 6px; }
    50% { height: 28px; }
    100% { height: 12px; }
}

/* Progress Slider */
.music-progress-wrapper {
    margin-bottom: 14px !important;
}

.music-progress-rail {
    width: 100% !important;
    height: 5px !important;
    background: #e2e8f0 !important;
    border-radius: 4px !important;
    position: relative !important;
    cursor: pointer !important;
}
body.dark-mode .music-progress-rail { background: #334155 !important; }

.music-progress-bar-fill {
    height: 100% !important;
    width: 0%;
    background: linear-gradient(90deg, #8b5cf6, #ec4899) !important;
    border-radius: 4px !important;
}

.music-progress-thumb-knob {
    position: absolute !important;
    top: 50% !important;
    left: 0%;
    transform: translate(-50%, -50%) !important;
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    background: #7c3aed !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 6px rgba(124, 58, 237, 0.4) !important;
}

.music-time-display-row {
    display: flex !important;
    justify-content: space-between !important;
    margin-top: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #94a3b8 !important;
}

/* Controls */
.music-controls-row {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 28px !important;
}

.music-ctrl-btn {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(241, 245, 249, 0.9) !important;
    color: #475569 !important;
    font-size: 15px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.15s !important;
}

body.dark-mode .music-ctrl-btn {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}

.music-ctrl-btn:active { transform: scale(0.9) !important; }

.music-main-play-btn {
    width: 60px !important;
    height: 60px !important;
    border-radius: 50% !important;
    border: none !important;
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
    color: #ffffff !important;
    font-size: 20px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4) !important;
    transition: transform 0.15s ease !important;
}
.music-main-play-btn:active { transform: scale(0.92) !important; }

/* 3. 10 Tracks 2-Column Grid */
.music-sound-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
}

.sound-card-pill {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 24px !important;
    padding: 14px 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.25s ease !important;
}

body.dark-mode .sound-card-pill {
    background: rgba(30, 41, 59, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
}

.sound-card-icon-box {
    font-size: 18px !important;
    color: #64748b !important;
    display: flex !important;
    align-items: center !important;
}

.sound-card-title-box {
    flex: 1 !important;
    min-width: 0 !important;
}

.sound-card-title-box h4 {
    margin: 0 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
body.dark-mode .sound-card-title-box h4 { color: #f1f5f9 !important; }

.sound-card-action-box {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: rgba(241, 245, 249, 0.8) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    color: #64748b !important;
}

/* Active Highlight Card (Purple-Pink Gradient) */
.sound-card-pill.active {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35) !important;
    transform: translateY(-2px) !important;
}

.sound-card-pill.active .sound-card-icon-box { color: #ffffff !important; }
.sound-card-pill.active .sound-card-title-box h4 { color: #ffffff !important; font-weight: 800 !important; }
.sound-card-pill.active .sound-card-action-box {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* Mini Wave Bars Inside Active Button */
.mini-playing-waves {
    display: flex !important;
    align-items: flex-end !important;
    gap: 2px !important;
    height: 12px !important;
}
.mini-playing-waves span {
    width: 2.5px !important;
    height: 4px;
    background: #ffffff !important;
    border-radius: 2px !important;
    animation: miniWave 0.6s infinite alternate ease-in-out !important;
}
.mini-playing-waves span:nth-child(2) { animation-delay: 0.2s !important; }
.mini-playing-waves span:nth-child(3) { animation-delay: 0.4s !important; }

@keyframes miniWave {
    0% { height: 3px; }
    100% { height: 12px; }
}

/* Music Seekbar Touch Target Bada Karna */
.music-progress-rail {
    padding: 10px 0 !important; /* Touch lagna aasan ho jayega */
    background-clip: content-box !important;
    height: 4px !important;
    cursor: pointer !important;
    touch-action: none !important;
}

/* Chat Screen Slim & Compact Fit */
.chat-list-screen {
    padding: 10px 14px 100px 14px !important;
}

.chat-list-item {
    padding: 8px 10px !important;
    gap: 10px !important;
}

.chat-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
}

.chat-name-row h4 {
    font-size: 14px !important;
}

.chat-msg-row p {
    font-size: 12px !important;
}

/* =========================================================
   FINAL UI FIX: SUBSCRIPTION, FOCUS MUSIC & SETTINGS
   ========================================================= */

/* 1. SUBSCRIPTION (₹199 PLUS CARD SLIM & SINGLE LINE FIX) */
.liquid-plan-card {
    padding: 14px 16px !important;
    gap: 12px !important;
    border-radius: 22px !important;
}

.plan-name-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
}

.plan-name-row h4 {
    font-size: 14.5px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.tag-popular {
    font-size: 10.5px !important;
    padding: 2px 8px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.plan-details p {
    font-size: 12px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 4px 0 0 0 !important;
}


/* 2. FOCUS MUSIC (GRID OVERFLOW & SEEKBAR LINE FIX) */
.music-progress-rail {
    width: 100% !important;
    height: 6px !important;
    padding: 0 !important;
    background: #e2e8f0 !important;
    background-clip: border-box !important;
    border-radius: 6px !important;
    position: relative !important;
    margin: 10px 0 6px 0 !important;
}

.music-progress-bar-fill {
    height: 100% !important;
    border-radius: 6px !important;
}

.music-sound-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.sound-card-pill {
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px 12px !important;
    border-radius: 20px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

.sound-card-icon-box {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 50% !important;
    background: rgba(241, 245, 249, 0.9) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
}

.sound-card-pill.active .sound-card-icon-box {
    background: rgba(255, 255, 255, 0.22) !important;
}

.sound-card-title-box {
    flex: 1 !important;
    min-width: 0 !important;
}

.sound-card-title-box h4 {
    font-size: 12.5px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    word-break: break-word !important;
    margin: 0 !important;
}

.sound-card-action-box {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    flex-shrink: 0 !important;
}


/* 3. SETTINGS SCREEN (CARDS & HORIZONTAL ALIGNMENT FIX) */
.settings-card {
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.95) !important;
    border-radius: 22px !important;
    padding: 4px 14px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.05) !important;
}

body.dark-mode .settings-card {
    background: rgba(17, 24, 39, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.setting-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 12px 2px !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    cursor: pointer !important;
}

.setting-item:last-child {
    border-bottom: none !important;
}

.setting-item-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.country-setting-item {
    min-height: auto !important;
    padding: 12px 2px !important;
}

/* =========================================================
   FOCUS MUSIC: 1-SCREEN LOCK & CLEAN TEXT WRAP FIX
   ========================================================= */

/* 1. Poori Music Screen ko 1 Frame me Lock Karna (No Scroll) */
#toolsScreen.tools-screen {
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 100dvh !important;
    padding: 10px 14px 92px 14px !important; /* Bottom nav ke theek upar tak fit */
    overflow: hidden !important;
    display: none;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
}

/* 2. Compact Top Header */
.music-top-bar {
    margin-bottom: 6px !important;
    flex-shrink: 0 !important;
}

.music-circle-icon-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 14px !important;
}

.music-main-title {
    font-size: 20px !important;
    line-height: 1.1 !important;
}

.music-sub-title {
    font-size: 11.5px !important;
    margin-top: 1px !important;
}

/* 3. Sleek Compact Hero Player Card */
.music-hero-card {
    padding: 12px 14px !important;
    margin-bottom: 8px !important;
    border-radius: 22px !important;
    flex-shrink: 0 !important;
}

.music-hero-header {
    gap: 12px !important;
    margin-bottom: 8px !important;
    align-items: center !important;
}

.music-cover-art {
    width: 60px !important;
    height: 60px !important;
    border-radius: 14px !important;
}

.music-title-fav-row h3 {
    font-size: 15.5px !important;
}

.music-waveform-bars {
    height: 22px !important;
    margin-top: 4px !important;
}

.music-progress-wrapper {
    margin-bottom: 8px !important;
}

.music-progress-rail {
    margin: 6px 0 4px 0 !important;
    height: 5px !important;
}

.music-controls-row {
    gap: 22px !important;
}

.music-ctrl-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 13px !important;
}

.music-main-play-btn {
    width: 44px !important;
    height: 44px !important;
    font-size: 16px !important;
}

/* 4. 10 Music Cards Grid (5 Rows x 2 Columns Screen Fit) */
.music-sound-grid {
    flex: 1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(5, 1fr) !important;
    gap: 7px !important;
    width: 100% !important;
    min-height: 0 !important;
}

.sound-card-pill {
    height: 100% !important;
    max-height: 48px !important;
    padding: 6px 10px !important;
    border-radius: 16px !important;
    gap: 8px !important;
    margin: 0 !important;
}

.sound-card-icon-box {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    font-size: 13px !important;
}

/* Aksharon ka beech se tootna (Stor-m) band karna */
.sound-card-title-box {
    flex: 1 !important;
    min-width: 0 !important;
}

.sound-card-title-box h4 {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    white-space: normal !important;
    margin: 0 !important;
}

.sound-card-action-box {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    font-size: 9.5px !important;
}

/* =========================================================
   MUSIC WAVEFORM POLISH & CUTE BLUE-PURPLE COUNTRY MODAL
   ========================================================= */

/* 1. Pause hone par bhi Waveform Dots ke bajay Sundar Bars dikhenge */
.music-waveform-bars {
    height: 26px !important;
    align-items: center !important;
    gap: 3.5px !important;
}

.music-waveform-bars span:nth-child(5n+1) { height: 10px; }
.music-waveform-bars span:nth-child(5n+2) { height: 20px; }
.music-waveform-bars span:nth-child(5n+3) { height: 14px; }
.music-waveform-bars span:nth-child(5n+4) { height: 24px; }
.music-waveform-bars span:nth-child(5n+5) { height: 12px; }

/* Music Cards ko natural bhara hua look dena aur Night Campfire fit karna */
.sound-card-pill {
    max-height: 54px !important;
    padding: 8px 10px !important;
    border-radius: 18px !important;
    gap: 7px !important;
}

.sound-card-title-box h4 {
    font-size: 11.2px !important;
    line-height: 1.15 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}


/* 2. Cute Curved Blue-Purple Country Trigger Button */
.cute-country-trigger {
    width: 100% !important;
    height: 44px !important;
    padding: 0 14px !important;
    border-radius: 22px !important;
    border: none !important;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #9333ea 100%) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.32) !important;
    transition: transform 0.15s ease !important;
}

.cute-country-trigger:active {
    transform: scale(0.96) !important;
}

.cute-country-trigger span {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}


/* 3. Cute Curved Country Modal Box (Blue-Purple Theme) */
.cute-country-modal-box {
    max-width: 340px !important;
    padding: 18px !important;
    border-radius: 28px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(25px) !important;
    -webkit-backdrop-filter: blur(25px) !important;
    border: 2px solid rgba(124, 58, 237, 0.25) !important;
    box-shadow: 0 24px 60px rgba(124, 58, 237, 0.28) !important;
    display: flex !important;
    flex-direction: column !important;
    max-height: 75vh !important;
}

body.dark-mode .cute-country-modal-box {
    background: rgba(15, 23, 42, 0.96) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
}

.country-modal-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 12px !important;
}

.country-title-pill {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(124, 58, 237, 0.15)) !important;
    color: #7c3aed !important;
    font-size: 14px !important;
    font-weight: 800 !important;
}

body.dark-mode .country-title-pill {
    color: #c084fc !important;
}

.country-search-pill {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    height: 42px !important;
    padding: 0 14px !important;
    border-radius: 22px !important;
    background: #f1f5f9 !important;
    border: 1.5px solid #e2e8f0 !important;
    margin-bottom: 12px !important;
}

body.dark-mode .country-search-pill {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.country-search-pill i {
    color: #7c3aed !important;
    font-size: 14px !important;
}

.country-search-pill input {
    flex: 1 !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 13.5px !important;
    color: #0f172a !important;
}

body.dark-mode .country-search-pill input {
    color: #f8fafc !important;
}

.world-country-scroll-list {
    flex: 1 !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding-right: 2px !important;
    max-height: 50vh !important;
}

.world-country-option {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    border-radius: 18px !important;
    background: rgba(248, 250, 252, 0.8) !important;
    border: 1.5px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

body.dark-mode .world-country-option {
    background: rgba(30, 41, 59, 0.6) !important;
}

.world-country-option.active {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28) !important;
}

.wc-left {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.wc-flag {
    font-size: 22px !important;
}

.wc-text h5 {
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

body.dark-mode .wc-text h5 {
    color: #f8fafc !important;
}

.world-country-option.active .wc-text h5,
.world-country-option.active .wc-text span,
.world-country-option.active .wc-radio {
    color: #ffffff !important;
}

.wc-text span {
    font-size: 11px !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

.wc-radio {
    font-size: 16px !important;
    color: #94a3b8 !important;
}

.liquid-main-btn {
    padding-right: 45px !important;
}

.liquid-main-btn .btn-text {
    font-size: 15px !important;
    white-space: nowrap !important;
}

/* =========================================================
   COMPLETE DARK MODE MASTER FIX (ALL SCREENS UNIFORM)
   ========================================================= */

/* 1. SUBSCRIPTION / PLANS SCREEN DARK MODE FIX */
body.dark-mode #subScreen.sub-screen {
    background: 
        radial-gradient(circle at 90% 10%, rgba(124, 58, 237, 0.25) 0%, transparent 45%),
        radial-gradient(circle at 10% 85%, rgba(37, 99, 235, 0.2) 0%, transparent 45%),
        #090d16 !important;
}

body.dark-mode .sub-header-titles h2 {
    color: #f8fafc !important;
}

body.dark-mode .sub-header-titles p {
    color: #94a3b8 !important;
}

body.dark-mode .liquid-back-btn,
body.dark-mode .back-btn,
body.dark-mode .profile-back-btn {
    background: rgba(30, 41, 59, 0.9) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

body.dark-mode .liquid-crown-badge {
    background: rgba(30, 41, 59, 0.9) !important;
    border: 1.5px solid rgba(168, 85, 247, 0.35) !important;
    color: #c084fc !important;
}

body.dark-mode .liquid-plan-card {
    background: rgba(17, 24, 39, 0.82) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .liquid-plan-card.active {
    background: linear-gradient(135deg, rgba(30, 27, 75, 0.92), rgba(59, 7, 100, 0.78)) !important;
    border: 2px solid #a855f7 !important;
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.25) !important;
}

/* Light aur Dark dono mode me Amount hamesha saaf dikhega */
.plan-name-row h4,
#plan1Title,
#plan2Title {
    color: #0f172a !important;
}

body.dark-mode .plan-name-row h4,
body.dark-mode #plan1Title,
body.dark-mode #plan2Title {
    color: #ffffff !important;
}

body.dark-mode .plan-details p,
body.dark-mode #plan1Description,
body.dark-mode #plan2Description {
    color: #cbd5e1 !important;
}

body.dark-mode .tag-popular {
    background: rgba(168, 85, 247, 0.22) !important;
    color: #e9d5ff !important;
}


/* 2. CHATS / HOME SCREEN DARK MODE FIX */
body.dark-mode .chat-tabs {
    background: rgba(17, 24, 39, 0.88) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-mode .tab-btn {
    color: #94a3b8 !important;
}

body.dark-mode .tab-btn.active {
    color: #ffffff !important;
}

body.dark-mode .chat-name-row h4 {
    color: #f8fafc !important;
}

body.dark-mode .chat-msg-row p {
    color: #94a3b8 !important;
}

body.dark-mode .chat-list-item.pinned {
    background: rgba(124, 58, 237, 0.14) !important;
    border-color: rgba(168, 85, 247, 0.28) !important;
}

body.dark-mode .group-avatar {
    background: #1e293b !important;
    color: #cbd5e1 !important;
}


/* 3. FOCUS MUSIC DARK MODE FIX */
body.dark-mode .sound-card-icon-box,
body.dark-mode .sound-card-action-box {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
}

body.dark-mode .sound-card-pill.active {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #ec4899 100%) !important;
    border-color: transparent !important;
}

body.dark-mode .sound-card-pill.active .sound-card-icon-box,
body.dark-mode .sound-card-pill.active .sound-card-action-box {
    background: rgba(255, 255, 255, 0.24) !important;
    color: #ffffff !important;
}


/* 4. SETTINGS & PROFILE DARK MODE FIX */
body.dark-mode .setting-item {
    border-bottom-color: rgba(255, 255, 255, 0.07) !important;
}

body.dark-mode .setting-item-right {
    color: #94a3b8 !important;
}

body.dark-mode .profile-screen {
    background: 
        radial-gradient(circle at top left, rgba(124, 58, 237, 0.22), transparent 45%),
        #090d16 !important;
}

body.dark-mode .profile-header h2,
body.dark-mode .input-box input,
body.dark-mode .input-box textarea {
    color: #f8fafc !important;
}

body.dark-mode .profile-input-card {
    background: rgba(17, 24, 39, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

/* =========================================================
   LIVE USERNAME SEARCH DROPDOWN & AI CHAT AFFILIATE UI
   ========================================================= */

.live-user-search-dropdown {
    display: none;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(124, 58, 237, 0.25);
    border-radius: 22px;
    padding: 10px;
    margin-bottom: 14px;
    box-shadow: 0 14px 34px rgba(124, 58, 237, 0.14);
    z-index: 50;
}

body.dark-mode .live-user-search-dropdown {
    background: rgba(17, 24, 39, 0.95);
    border-color: rgba(168, 85, 247, 0.3);
}

.user-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-search-item:active {
    background: rgba(124, 58, 237, 0.1);
}

.user-search-item img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

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

.us-info h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

body.dark-mode .us-info h5 {
    color: #f8fafc;
}

.us-info span {
    font-size: 12px;
    color: #7c3aed;
    font-weight: 700;
}

.us-msg-btn {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    border: none;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.user-search-empty {
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

/* AI Chat Screen & Affiliate Recommendation Card */
#chatScreen.chat-screen {
    min-height: 100dvh;
    padding: 14px 14px 130px 14px !important;
}

body.dark-mode .chat-header-bar span {
    color: #f8fafc !important;
}

body.dark-mode .message.ai-msg strong {
    color: #e9d5ff !important;
}

.ai-affiliate-card {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(237, 233, 254, 0.7), rgba(224, 242, 254, 0.7));
    border: 1.5px solid rgba(124, 58, 237, 0.25);
    cursor: pointer;
}

body.dark-mode .ai-affiliate-card {
    background: linear-gradient(135deg, rgba(46, 16, 101, 0.55), rgba(30, 58, 138, 0.45));
    border-color: rgba(168, 85, 247, 0.35);
}

.aff-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #7c3aed;
    margin-bottom: 4px;
}

body.dark-mode .aff-badge {
    color: #c084fc;
}

.aff-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.aff-body h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}

body.dark-mode .aff-body h5 {
    color: #f8fafc;
}

.aff-body p {
    margin: 2px 0 0;
    font-size: 11px;
    color: #475569;
}

body.dark-mode .aff-body p {
    color: #cbd5e1;
}

.aff-body button {
    background: #7c3aed;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

/* =========================================================
   BOTTOM NAVIGATION & CHAT UI PERMANENT FIX
   ========================================================= */

#bottomNav.floating-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 99999 !important;
}

body.keyboard-open #bottomNav.floating-nav {
    display: none !important;
}

.active-chat-screen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    background: #f8fafc !important;
    display: flex !important;
    flex-direction: column !important;
}

body.dark-mode .active-chat-screen {
    background: #080c14 !important;
}

/* =========================================================
   LOGOUT & PROFILE PIC UPLOAD STYLING
   ========================================================= */
.setting-item:active {
    background: rgba(239, 68, 68, 0.08);
}
.profile-pic-ring {
    position: relative;
    transition: transform 0.2s ease;
}
.profile-pic-ring:active {
    transform: scale(0.96);
}

.custom-dropdown-menu button:hover {
    background: #f1f5f9 !important;
}
body.dark-mode .custom-dropdown-menu {
    background: #1e293b !important;
    color: #f8fafc !important;
}
body.dark-mode .custom-dropdown-menu button {
    color: #f8fafc !important;
}
body.dark-mode .custom-dropdown-menu button:hover {
    background: #334155 !important;
}

/* =========================================================
   NEW AI CHAT & WHATSAPP-STYLE DM INTERFACE (27600 & 27602)
   ========================================================= */

/* 1. AI Chat Top Header (Image 27602 Match) */
.ai-chat-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 10px 4px 14px 4px !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
}

.ai-topbar-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.3px !important;
    margin-right: auto !important;
}
body.dark-mode .ai-topbar-title {
    color: #ffffff !important;
}

.ai-topbar-actions {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.ai-topbar-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(148, 163, 184, 0.25) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    color: #1e293b !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}
body.dark-mode .ai-topbar-btn {
    background: rgba(30, 41, 59, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f8fafc !important;
}

/* AI Welcome Row with Sparkle Avatar */
.ai-greeting-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-top: 8px !important;
}

.ai-sparkle-avatar {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #311068, #4c1d95) !important;
    color: #e9d5ff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28) !important;
}

.ai-greeting-bubble {
    flex: 1 !important;
    max-width: 82% !important;
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(124, 58, 237, 0.18) !important;
    border-radius: 20px !important;
    padding: 14px 18px !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05) !important;
}
body.dark-mode .ai-greeting-bubble {
    background: rgba(23, 29, 48, 0.92) !important;
    border-color: rgba(168, 85, 247, 0.22) !important;
}

.ai-greeting-top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 6px !important;
}

.ai-greeting-top h4 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}
body.dark-mode .ai-greeting-top h4 {
    color: #ffffff !important;
}

.ai-greeting-top span {
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
}

.ai-greeting-bubble p {
    margin: 0 !important;
    font-size: 14.5px !important;
    color: #475569 !important;
}
body.dark-mode .ai-greeting-bubble p {
    color: #cbd5e1 !important;
}

/* 2. Friend DM Header Compact Fix (Image 27600 Match) */
.chat-win-header {
    padding: 10px 12px !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
}
body.dark-mode .chat-win-header {
    background: rgba(15, 23, 42, 0.92) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

.chat-win-user-info {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

.chat-win-text-meta {
    flex: 1 !important;
    min-width: 0 !important;
}

.chat-win-name-line {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
}

#activeChatName {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 125px !important;
}
body.dark-mode #activeChatName {
    color: #f8fafc !important;
}

.chat-prem-tag {
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, #f3e8ff, #ede9fe) !important;
    border: 1px solid #c084fc !important;
    color: #7c3aed !important;
    font-size: 10px !important;
    padding: 2px 8px !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

#activeChatStatus {
    margin: 2px 0 0 0 !important;
    font-size: 11.5px !important;
    color: #64748b !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.chat-win-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
}

/* 3. Dropdown Menu Styling */
.custom-dropdown-menu {
    position: absolute !important;
    right: 0 !important;
    top: 46px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.16) !important;
    padding: 6px !important;
    z-index: 99999 !important;
    min-width: 155px !important;
}
body.dark-mode .custom-dropdown-menu {
    background: #1e293b !important;
    border-color: #334155 !important;
}

.custom-dropdown-menu button {
    width: 100% !important;
    text-align: left !important;
    background: transparent !important;
    border: none !important;
    padding: 9px 12px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    color: #0f172a !important;
    cursor: pointer !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* 4. 3D Empty Chat State (Image 27600 Match) */
.dm-empty-state-wrap {
    margin: auto !important;
    text-align: center !important;
    padding: 30px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.dm-3d-bubbles-box {
    position: relative !important;
    width: 150px !important;
    height: 115px !important;
    margin-bottom: 18px !important;
}

.dm-bubble-big {
    position: absolute !important;
    left: 12px !important;
    top: 10px !important;
    width: 96px !important;
    height: 68px !important;
    background: linear-gradient(145deg, #ffffff, #e9d5ff) !important;
    border-radius: 22px 22px 22px 6px !important;
    box-shadow: 0 14px 28px rgba(124, 58, 237, 0.16), inset 0 2px 6px #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
}

.dm-bubble-big span,
.dm-bubble-small span {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #7c3aed, #6366f1) !important;
}

.dm-bubble-small {
    position: absolute !important;
    right: 12px !important;
    bottom: 10px !important;
    width: 68px !important;
    height: 48px !important;
    background: linear-gradient(145deg, #f5f3ff, #ddd6fe) !important;
    border-radius: 18px 18px 4px 18px !important;
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.2), inset 0 2px 4px #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
}
.dm-bubble-small span {
    width: 6px !important;
    height: 6px !important;
    opacity: 0.75 !important;
}

.dm-empty-state-wrap h3 {
    margin: 0 !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}
body.dark-mode .dm-empty-state-wrap h3 {
    color: #f8fafc !important;
}

.dm-empty-state-wrap p {
    margin: 6px 0 0 0 !important;
    font-size: 13.5px !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.chat-footer-plus-btn {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04) !important;
}
body.dark-mode .chat-footer-plus-btn {
    background: #1e293b !important;
    border-color: #334155 !important;
    color: #cbd5e1 !important;
}

/* =========================================================
   REWARDED AD POPUP STYLING (IMAGE 27866 EXACT MATCH)
   ========================================================= */
.rewarded-ad-card {
    position: relative !important;
    width: 100% !important;
    max-width: 345px !important;
    background: linear-gradient(180deg, #f3e8ff 0%, #ffffff 38%, #ffffff 100%) !important;
    border-radius: 32px !important;
    padding: 26px 22px 24px 22px !important;
    text-align: center !important;
    box-shadow: 0 25px 65px rgba(15, 23, 42, 0.35), 0 0 0 1.5px rgba(255, 255, 255, 0.9) !important;
    margin-top: 30px !important;
    overflow: visible !important;
}

.rewarded-close-btn {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: none !important;
    background: rgba(148, 163, 184, 0.25) !important;
    color: #475569 !important;
    font-size: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.rewarded-robot-hero {
    position: relative !important;
    width: 120px !important;
    height: 105px !important;
    margin: -58px auto 10px auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.robot-head-3d {
    width: 86px !important;
    height: 68px !important;
    border-radius: 38px !important;
    background: radial-gradient(circle at 30% 25%, #ffffff, #e2e8f0 70%, #cbd5e1) !important;
    box-shadow: 0 12px 25px rgba(124, 58, 237, 0.22), inset 0 3px 6px #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #ffffff !important;
}

.robot-visor {
    width: 62px !important;
    height: 38px !important;
    border-radius: 22px !important;
    background: #0f172a !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 14px !important;
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.4) !important;
}

.robot-eye {
    width: 12px !important;
    height: 7px !important;
    border-top: 3px solid #60a5fa !important;
    border-radius: 50% 50% 0 0 !important;
    filter: drop-shadow(0 0 4px #38bdf8) !important;
}

.robot-glowing-heart {
    font-size: 36px !important;
    margin-top: -16px !important;
    filter: drop-shadow(0 6px 14px rgba(236, 72, 153, 0.55)) !important;
    animation: heartPulse 1.5s infinite alternate ease-in-out !important;
}

.floating-heart {
    position: absolute !important;
    font-size: 16px !important;
}
.floating-heart.h-left { left: 4px !important; top: 8px !important; }
.floating-heart.h-right { right: 4px !important; top: 14px !important; }

@keyframes heartPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.rewarded-main-title {
    margin: 4px 0 10px 0 !important;
    font-size: 22px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    color: #0f172a !important;
}

.gradient-chat-highlight {
    background: linear-gradient(90deg, #2563eb, #7c3aed, #9333ea) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.rewarded-sub-desc {
    margin: 0 0 18px 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.rewarded-sub-desc strong {
    color: #7c3aed !important;
    font-weight: 800 !important;
}

.rewarded-info-banner {
    background: #f5f3ff !important;
    border: 1.5px solid #ede9fe !important;
    border-radius: 20px !important;
    padding: 14px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 18px !important;
    text-align: left !important;
}

.clapper-3d-icon {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    border-radius: 14px !important;
    background: linear-gradient(135deg, #3b82f6, #7c3aed) !important;
    color: #ffffff !important;
    font-size: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.28) !important;
    transform: rotate(-8deg) !important;
}

.rewarded-banner-text span {
    display: block !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

.rewarded-banner-text h4 {
    margin: 2px 0 0 0 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #6d28d9 !important;
}

.watch-ad-gradient-btn {
    width: 100% !important;
    height: 54px !important;
    border-radius: 28px !important;
    border: none !important;
    background: linear-gradient(90deg, #0066ff 0%, #5b21b6 50%, #7c3aed 100%) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    box-shadow: 0 10px 26px rgba(91, 33, 182, 0.38) !important;
    transition: transform 0.15s ease !important;
}

.watch-ad-gradient-btn:active {
    transform: scale(0.97) !important;
}

/* --- SCREEN OVERLAP FIX --- */
.chat-screen, .history-screen, .settings-screen, .sub-screen, .active-chat-screen, .tools-screen, .profile-screen {
    background: #f8fafc;
    z-index: 500;
}
body.dark-mode .chat-screen, body.dark-mode .history-screen, body.dark-mode .settings-screen, 
body.dark-mode .sub-screen, body.dark-mode .active-chat-screen, body.dark-mode .tools-screen, body.dark-mode .profile-screen {
    background: #080c14;
}

/* --- DARK MODE TOGGLE ANIMATION FIX --- */
.toggle-switch {
    width: 48px;
    height: 26px;
    border-radius: 20px;
    background: linear-gradient(135deg, #0072ff, #7c3aed);
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}
.toggle-switch.off {
    background: #cbd5e1;
}
body.dark-mode .toggle-switch.off {
    background: #475569;
}
.toggle-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 22px; /* ON Position */
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: left 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.toggle-switch.off::after {
    left: 3px; /* OFF Position */
}
