/* Root + base */
:root {
    --primary: #263238;
    --secondary: #263238;
    --hover-color: #c3a3ff;
    --scroll-btn-size: 40px;
    --scroll-btn-bottom: 30px;
    --stack-gap: 12px;
}
body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #f9f5ff, #f0e6ff);
    padding-top: 10px;
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
}

/* Logo sizes */
@media (min-width: 769px) {
    .navbar-brand img {
        height: 30px;
        width: auto;
        margin: 0 auto;
        display: block;
        text-align: center;
    }
}
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
        width: 100%;
    }
    .navbar-brand img {
        width: auto;
        height: 30px;
        max-width: 100%;
    }
}

/* Links */
/* Navbar Links – scope only inside navbar */
.navbar .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 18px !important;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.navbar .nav-link:hover {
    background-color: var(--hover-bg);
    color: #fff !important;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.3s ease;
}
.dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #263238;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}
.dropdown-item:hover {
    background-color: #eceff1;
    border-left: 3px solid #263238;
    color: #263238;
}
.navbar .dropdown-toggle::after {
    display: none !important;
}

@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
    }
    .d-flex.gap-2 {
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
    }
}

/* Enroll glow button */
.btn-enroll {
    position: relative;
    overflow: hidden;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    background: #c3ff00ff;
    color: white;
    border: none;
    z-index: 1;
}
.btn-enroll::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(90deg, #00ff08ff, #c3ff00ff, #ff0000ff);
    background-size: 300% 300%;
    border-radius: 10px;
    z-index: -1;
    animation: glowMove 3s linear infinite;
}
.btn-enroll::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: #263238;
    border-radius: 6px;
    z-index: -1;
}
.btn-enroll:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 247, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: yellow;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes glowMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Focus cleanup */
.nav-link:focus,
.dropdown-toggle:focus {
    outline: none;
    box-shadow: none;
}

/* Hamburger */
.hamburger-icon {
    width: 50px;
    height: 25px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: none;
    background: transparent;
}
.hamburger-icon .bar {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 2px;
    transition: all 0.4s ease-in-out;
}
.hamburger-icon.open .bar:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}
.hamburger-icon.open .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-icon.open .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}
.hamburger-icon:focus {
    outline: none;
    box-shadow: none;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #263238, #263238);
    color: #ffffff;
    padding-top: 80px;
    font-size: 0.9rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}
footer h5 {
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    position: relative;
}
footer h5::before {
    content: "★";
    position: absolute;
    left: -25px;
    color: #ffc107;
    font-size: 1.1rem;
}
footer p,
footer a {
    color: #ccc;
    line-height: 1.7;
}
footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}
footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}
footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}
footer .bottom-footer {
    font-size: 0.85rem;
    color: #aaa;
    padding: 20px 0 0;
}

/* Social buttons */
.footer-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #6f42c1;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(111, 66, 193, 0.28);
    transition: 0.25s ease;
    padding: 0;
    border: none;
}
.footer-social a:hover {
    background: #8b5cf6;
    transform: translateY(-2px);
}
@media (max-width: 768px) {
    .footer-social {
        justify-content: center !important;
    }
}

/* Global Scroll Down Button */
.scroll-down-btn {
    position: fixed;
    bottom: var(--scroll-btn-bottom);
    right: 25px;
    background: transparent;
    color: #fff;
    font-size: 2rem;
    text-decoration: none;
    border-radius: 50%;
    width: var(--scroll-btn-size);
    height: var(--scroll-btn-size);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    border: 3px solid transparent;
    background-image: linear-gradient(#263238, #263238),
        linear-gradient(90deg, #ff9500ff, #00d9ffff, #00d9ffff, #ff9500ff);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    animation: borderRun 4s linear infinite, bounce 5s infinite;
    cursor: pointer;
}
.scroll-down-btn:hover {
    box-shadow: 0 0 20px rgba(255, 247, 0, 0.6);
}
.scroll-down-btn i {
    font-size: 1rem;
}
@keyframes borderRun {
    0% {
        background-position: 0% 50%, 0 0;
    }
    50% {
        background-position: 100% 50%, 0 0;
    }
    100% {
        background-position: 0% 50%, 0 0;
    }
}
@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* Flash bar (below navbar) */
.global-flash {
    position: fixed;
    left: 0;
    right: 0;
    top: 72px;
    z-index: 2000;
    pointer-events: none;
}
.global-flash .alert {
    pointer-events: auto;
}
.global-flash.hide {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ==== Loader CSS ==== */
.mca-loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: grid;
    place-items: center;
    background: radial-gradient(
        120% 120% at 50% 30%,
        rgba(38, 50, 56, 0.85),
        rgba(18, 24, 27, 0.94) 55%,
        rgba(0, 0, 0, 0.98)
    );
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    transition: opacity 0.35s ease, visibility 0.35s ease;
    opacity: 1;
    visibility: visible;
}
.mca-loader-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.mca-loader {
    position: relative;
    width: 160px;
    height: 160px;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 12px 38px rgba(111, 66, 193, 0.35));
}
.ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    --c1: #6f42c1;
    --c2: #8b5cf6;
    --c3: #00d9ff;
    background: conic-gradient(
        from 0deg,
        var(--c1) 0deg,
        var(--c2) 120deg,
        var(--c3) 240deg,
        var(--c1) 360deg
    );
    mask: radial-gradient(circle at center, transparent 56px, black 58px),
        radial-gradient(circle at center, black 78px, transparent 80px);
    -webkit-mask-composite: source-in, xor;
    mask-composite: intersect;
    animation: spin 3.8s linear infinite, glowPulse 2.2s ease-in-out infinite;
    opacity: 0.95;
}
.ring-outer {
    filter: blur(0.25px) saturate(1.08);
}
.orbit {
    width: 136px;
    height: 136px;
    animation: spin 6.5s linear infinite reverse;
}
.orbit-path {
    opacity: 0.55;
    stroke-dasharray: 226 226;
    stroke-dashoffset: 0;
    animation: sweep 2.8s ease-in-out infinite;
}
.orbit-dot {
    transform-origin: 50px 50px;
    animation: orbit 2.8s ease-in-out infinite;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
    fill: #ffbb00ff;
}
.core {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    background: radial-gradient(
            120% 120% at 30% 20%,
            rgba(255, 255, 255, 0.1),
            rgba(255, 255, 255, 0.02)
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.18),
            rgba(255, 255, 255, 0.06)
        );
    border: 1px solid rgba(255, 255, 255, 0.18);
    position: relative;
    box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.08),
        0 10px 28px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
}
.core::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(139, 92, 246, 0.55),
        rgba(0, 217, 255, 0.35)
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.55;
}
.logo-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 35% 35%,
        #fff,
        #c9c1ff 60%,
        #6f42c1 100%
    );
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.75),
        0 0 36px rgba(0, 217, 255, 0.35);
    animation: breathe 2.2s ease-in-out infinite;
}
.shine {
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.35),
        rgba(255, 255, 255, 0) 40%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0.15)
    );
    mix-blend-mode: screen;
    transform: translateX(-120%);
    animation: shineMove 2.6s linear infinite;
}
.label {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font: 600 12px/1 "Poppins", system-ui, -apple-system, Segoe UI, Roboto,
        Arial;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #e8e6ff;
    opacity: 0.7;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes glowPulse {
    0%,
    100% {
        filter: drop-shadow(0 8px 28px rgba(111, 66, 193, 0.35));
        opacity: 0.95;
    }
    50% {
        filter: drop-shadow(0 12px 42px rgba(0, 217, 255, 0.38));
        opacity: 1;
    }
}
@keyframes orbit {
    0%,
    100% {
        transform: rotate(0deg) translateY(0);
    }
    50% {
        transform: rotate(180deg) translateY(0.5px);
    }
}
@keyframes sweep {
    0%,
    100% {
        stroke-dashoffset: 0;
        opacity: 0.55;
    }
    50% {
        stroke-dashoffset: 226;
        opacity: 0.85;
    }
}
@keyframes breathe {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}
@keyframes shineMove {
    from {
        transform: translateX(-120%);
    }
    to {
        transform: translateX(120%);
    }
}
@media (max-width: 480px) {
    .mca-loader {
        width: 132px;
        height: 132px;
    }
    .core {
        width: 74px;
        height: 74px;
    }
    .label {
        bottom: -24px;
        font-size: 11px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .ring,
    .orbit,
    .orbit-path,
    .orbit-dot,
    .logo-dot,
    .shine {
        animation: none !important;
    }
}

/* Form card polish (from @push) */
.mca-form-card.pro {
    background: radial-gradient(
            100% 120% at 0% 0%,
            rgba(198, 182, 255, 0.25),
            transparent 40%
        ),
        radial-gradient(
            80% 80% at 100% 100%,
            rgba(138, 92, 245, 0.18),
            transparent 50%
        ),
        linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
    border-radius: 1.25rem;
    box-shadow: 0 20px 60px rgba(23, 16, 72, 0.12),
        0 6px 18px rgba(23, 16, 72, 0.08);
    position: relative;
}
.mca-form-card.pro::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 1.3rem;
    background: linear-gradient(
        135deg,
        rgba(138, 92, 246, 0.45),
        rgba(198, 182, 255, 0.35)
    );
    filter: blur(10px);
    opacity: 0.4;
    z-index: -1;
}
.pro-header {
    background: linear-gradient(90deg, #6f42c1, #8a5cf5);
    color: #fff;
}
.has-icon .form-control,
.has-icon .form-select {
    padding-left: 3rem;
    border-radius: 0.9rem;
    border: 1px solid #e9e3ff;
    background: #fff;
    transition: box-shadow 0.25s ease, border-color 0.25s ease,
        transform 0.05s ease;
}
.has-icon .form-control:focus,
.has-icon .form-select:focus {
    border-color: #8a5cf5;
    box-shadow: 0 0 0 4px rgba(138, 92, 245, 0.16);
}
.form-floating > label i {
    position: relative;
    left: 0.15rem;
    opacity: 0.9;
}
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.08) !important;
}
.btn-gradient {
    position: relative;
    overflow: hidden;
    border: 0;
    background: linear-gradient(90deg, #06a888ff, #8a5cf5);
    color: #fff;
    border-radius: 0.9rem;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.3s ease;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 10px 28px rgba(204, 219, 0, 0.35);
}
.btn-gradient .btn-shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(250, 250, 8, 0.38) 50%,
        transparent 100%
    );
    transform: translateX(-100%);
    animation: shine 2.2s infinite linear;
    mix-blend-mode: screen;
}
@keyframes shine {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(100%);
    }
}
@media (max-width: 576px) {
    .mca-form-card .card-body {
        padding: 1.25rem !important;
    }
}

/* Google top banner kill + never translate UI */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
.goog-te-banner,
#goog-gt-tt,
.goog-te-balloon-frame,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-l4eHX-hSRGPd {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
}
html,
body {
    top: 0 !important;
    position: static !important;
}

/* Translate button + panel stack */
#mca-translate {
    position: fixed;
    right: 30px;
    bottom: calc(
        var(--scroll-btn-bottom) + var(--scroll-btn-size) + var(--stack-gap)
    );
    z-index: 10050;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 10px;
    transform: none;
}
.mca-trans-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #263238;
    color: #fff;
    border: 0;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
    position: relative;
    isolation: isolate;
}
.mca-trans-btn i {
    font-size: 1.2rem;
    line-height: 1;
}
.mca-trans-btn::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff9500, #00d9ff, #6f42c1, #ff9500);
    background-size: 300% 300%;
    z-index: -1;
    filter: blur(0.6px);
    animation: mcaGlow 3.2s linear infinite;
}
@keyframes mcaGlow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.mca-trans-btn:hover {
    transform: translateY(-2px);
}
.mca-trans-panel {
    width: 220px;
    max-width: 80vw;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.mca-lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.65rem;
}
@media (min-width: 420px) {
    .mca-lang-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
.btn-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.65rem;
    border-radius: 999px;
    width: 100%;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    color: #263238;
    background: #fff;
    border: 1px solid #cfd8dc;
    position: relative;
    overflow: hidden;
    transition: transform 0.12s ease, box-shadow 0.25s ease,
        border-color 0.2s ease;
}
.btn-chip::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    z-index: 0;
    background: linear-gradient(90deg, #ff9500, #00d9ff, #6f42c1, #ff9500);
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.btn-chip:hover {
    transform: translateY(-1px);
    border-color: #b0bec5;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.btn-chip:hover::before {
    opacity: 0.35;
    animation: mcaGlow 3.2s linear infinite;
}
.btn-chip.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(90deg, #263238, #263238);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}
.btn-chip.is-active::before {
    opacity: 0;
    animation: none;
}
#google_translate_element {
    display: none !important;
}
#google_translate_element .goog-te-gadget,
#google_translate_element .goog-te-gadget > span,
.goog-logo-link {
    display: none !important;
}
.notranslate,
.notranslate * {
    -webkit-user-select: text;
    user-select: text;
}
@media (max-width: 768px) {
    #mca-translate {
        right: 30px;
        bottom: calc(var(--scroll-btn-bottom) + var(--scroll-btn-size) + 8px);
    }
    .mca-trans-btn {
        width: 30px;
        height: 30px;
    }
} /* ✅ यहाँ मैंने Mobile Query बंद कर दी है, ताकि नीचे का कोड ग्लोबल हो जाए */

:root {
    --fab-size: 40px;
    --fab-gap: 10px;
    --accent: #61dafb;
    --glass-grad: radial-gradient(
            900px 360px at -20% 130%,
            rgba(97, 218, 251, 0.12),
            transparent 60%
        ),
        radial-gradient(
            800px 300px at 120% -20%,
            rgba(139, 92, 246, 0.1),
            transparent 60%
        ),
        linear-gradient(180deg, #0f172a 0%, #0b1220 100%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --surface: #ffffff;
    --chip-bg: rgba(97, 218, 251, 0.12);
    --chip-bd: rgba(97, 218, 251, 0.35);
    --chip-fg: #0b7285;
}

/* Gemini Floating Button */
.gemini-fab {
    position: fixed;
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    min-width: 56px;
    border-radius: 50px;
    background: #ffffff;
    cursor: pointer;
    overflow: hidden;
    bottom: 30px;
    right: 20px; /* Adjusted Position */
    border: 2px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: linear-gradient(#fff, #fff),
        linear-gradient(45deg, #61dafb, #a78bfa, #61dafb);
    background-size: 200% 100%;
    animation: shimmerBorder 3s linear infinite;
    box-shadow: 0 6px 20px rgba(97, 218, 251, 0.3);
    transition: all 0.3s ease-in-out;
}
@media (max-width: 991px) {
    .gemini-fab,
    html.in-app-view .gemini-fab {
        bottom: 80px;
        right: 15px;
    }
}
@keyframes shimmerBorder {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}
.gemini-fab i {
    font-size: 24px;
    color: #8b5cf6;
    flex-shrink: 0;
}
.gemini-fab-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    margin-left: 0;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    transition: all 0.3s ease-in-out;
}
.gemini-fab.expanded {
    min-width: 240px;
    padding: 0 20px;
}
.gemini-fab.expanded .gemini-fab-text {
    max-width: 250px;
    opacity: 1;
    margin-left: 10px;
}
.gemini-fab:active {
    transform: scale(0.95);
}

/* =========================================
   PROFESSIONAL GEMINI CHAT DRAWER
   ========================================= */

/* Drawer Width Adjustment */
.gemini-drawer {
    width: 100%;
    max-width: 400px;
    border-left: none;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

/* Chat History Area */
.chat-history-wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin; /* Firefox */
}

/* Chat Rows (Layout) */
.chat-row {
    display: flex;
    gap: 8px;
    align-items: flex-end; /* Avatar at bottom */
    width: 100%;
    animation: fadeInUp 0.3s ease;
}
.model-row {
    justify-content: flex-start;
}
.user-row {
    justify-content: flex-end;
}

/* Avatar Container (White Circle for Logo) */
.chat-avatar {
    width: 36px;
    height: 36px;
    background: #ffffff; /* White background */
    border-radius: 50%;
    display: flex; /* Center logo */
    align-items: center;
    justify-content: center;
    padding: 4px; /* Thora padding taki logo kinare na sate */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    border: 1px solid #e0e0e0; /* Halki border */
}

/* Avatar Image Styling */
.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Chat Bubbles (Design) */
.chat-bubble {
    padding: 10px 16px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 0.92rem;
    line-height: 1.5;
    word-wrap: break-word;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Model Bubble Style */
.model-bubble {
    background: #ffffff;
    color: #333;
    border-bottom-left-radius: 4px; /* Pointy edge */
    border: 1px solid #eef0f3;
}

/* User Bubble Style */
.user-bubble {
    background: linear-gradient(135deg, #263238, #37474f);
    color: #fff;
    border-bottom-right-radius: 4px; /* Pointy edge */
}

/* Input Footer Area */
.chat-footer {
    background: #ffffff;
    position: relative;
    z-index: 10;
}

/* The "Capsule" Input Bar */
.input-capsule {
    display: flex;
    align-items: center;
    background: #f0f2f5;
    border-radius: 30px;
    padding: 4px 6px 4px 15px; /* Left padding text ke liye, right button ke liye */
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.input-capsule:focus-within {
    background: #fff;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

/* Input Field */
.input-capsule input {
    flex-grow: 1;
    background: transparent;
    font-size: 0.95rem;
    color: #333;
    padding: 8px 0;
}
.input-capsule input:focus {
    outline: none;
}

/* Send Button (Circle) */
.btn-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #6f42c1, #8b5cf6);
    color: white;
    display: grid;
    place-items: center;
    flex-shrink: 0; /* Button dabega nahi */
    transition: transform 0.2s ease;
    cursor: pointer;
    margin-left: 8px;
}
.btn-send:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(111, 66, 193, 0.3);
}
.btn-send:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Typing Animation Dots */
.typing-indicator span {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #aaa;
    border-radius: 50%;
    margin: 0 2px;
    animation: typing 1.4s infinite ease-in-out both;
}
.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}
.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%,
    80%,
    100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* App-Only Styles */
html.in-app-view .navbar.fixed-top {
    display: none !important;
}
html.in-app-view body {
    padding-top: 0 !important;
}
html.in-app-view [id] {
    scroll-margin-top: 12px;
}
#app-bottom-nav.mca-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--glass-grad);
    border-top: var(--glass-border);
    backdrop-filter: saturate(1.1) blur(8px);
    -webkit-backdrop-filter: saturate(1.1) blur(8px);
    z-index: 1030;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}
html.in-app-view #app-bottom-nav.mca-bottom-nav {
    display: flex;
    align-items: center;
    justify-content: space-between; /* items ko evenly spread karega */
    padding: 4px 10px 8px; /* ⬅️ left/right padding */
    column-gap: 6px; /* icons ke beech thoda gap */
}

html.in-app-view main {
    padding-bottom: 84px;
}
html.in-app-view #app-bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 8px 4px !important;
    margin: 0 2px; /* ⬅️ har button ke dono side se 2px space */
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.2;
    gap: 4px;
    transition: transform 0.15s ease;
    color: rgba(255, 255, 255, 0.7) !important;
    background: none !important;
}

html.in-app-view #app-bottom-nav .nav-link i {
    font-size: 20px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.15s ease;
}
html.in-app-view #app-bottom-nav .nav-link span {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.15s ease;
}
html.in-app-view #app-bottom-nav .nav-link.active,
html.in-app-view #app-bottom-nav .nav-link:hover {
    transform: translateY(-2px);
    color: #fff !important;
}
html.in-app-view #app-bottom-nav .nav-link.active i,
html.in-app-view #app-bottom-nav .nav-link:hover i {
    color: var(--accent) !important;
}
html.in-app-view #app-bottom-nav .nav-link.active span,
html.in-app-view #app-bottom-nav .nav-link:hover span {
    color: #fff !important;
}
.offcanvas-bottom-nav {
    height: auto;
    max-height: 70vh;
    background: var(--glass-grad);
    color: #fff;
    border-top: var(--glass-border);
    backdrop-filter: saturate(1.1) blur(8px);
    -webkit-backdrop-filter: saturate(1.1) blur(8px);
}
.offcanvas-bottom-nav .offcanvas-header {
    color: #fff;
    border-bottom: var(--glass-border);
}
.offcanvas-bottom-nav .offcanvas-title {
    font-weight: 600;
}
.offcanvas-bottom-nav .btn-close {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}
.offcanvas-bottom-nav .list-group-item {
    background: transparent;
    color: #eee;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 1.25rem;
}
.offcanvas-bottom-nav .list-group-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.offcanvas-bottom-nav .list-group-item i {
    width: 24px;
    margin-right: 8px;
    color: var(--accent);
}

/* SweetAlert Fixes */
.mca-swal .swal2-title {
    font-weight: 700;
    letter-spacing: 0.2px;
}
.mca-swal .swal2-confirm {
    background: #6f42c1 !important;
}
.mca-toast.swal2-popup.swal2-toast {
    font-family: "Poppins", sans-serif;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* === APP BOTTOM NAV ICONS PATCH === */

/* 1. Home Icon - Cyan Blue */
html.in-app-view #app-bottom-nav .nav-link:nth-child(1) i {
    color: #00d9ff !important;
}

/* 2. About Icon - Warm Orange */
html.in-app-view #app-bottom-nav .nav-link:nth-child(2) i {
    color: #ff9f43 !important;
}

/* 3. Courses Icon - Deep Purple */
html.in-app-view #app-bottom-nav .nav-link:nth-child(3) i {
    color: #a55eea !important;
}

/* 4. Login Icon - Soft Red/Pink */
html.in-app-view #app-bottom-nav .nav-link:nth-child(4) i {
    color: #ff6b6b !important;
}

/* 5. Contact Icon - Bright Green */
html.in-app-view #app-bottom-nav .nav-link:nth-child(5) i {
    color: #1dd1a1 !important;
}

/* === ANIMATION EFFECT === */
/* जब लिंक एक्टिव हो या होवर करें, तो आइकॉन थोड़ा ऊपर उछलेगा */
html.in-app-view #app-bottom-nav .nav-link.active i,
html.in-app-view #app-bottom-nav .nav-link:hover i {
    transform: translateY(-4px) scale(1.2); /* थोड़ा ऊपर और बड़ा */
    filter: drop-shadow(0 0 5px currentColor); /* ग्लो इफेक्ट */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* बाउंस इफेक्ट */
}

/* =========================================
   OFFCANVAS MENU ICONS COLOR PATCH
   (Matching Parent Category Colors)
   ========================================= */

/* 1. About Menu (#appNavAbout) -> Orange Theme */
#appNavAbout .list-group-item i {
    color: #ff9f43 !important;
}
/* होवर करने पर टेक्स्ट भी थोड़ा कलरफुल हो जाए */
#appNavAbout .list-group-item:hover {
    color: #ffdfb0 !important; /* लाइट ऑरेंज */
}

/* 2. Courses Menu (#appNavCourses) -> Purple Theme */
#appNavCourses .list-group-item i {
    color: #a55eea !important;
}
#appNavCourses .list-group-item:hover {
    color: #d1c4e9 !important; /* लाइट पर्पल */
}

/* 3. Login Menu (#appNavLogin) -> Red/Pink Theme */
#appNavLogin .list-group-item i {
    color: #ff6b6b !important;
}
#appNavLogin .list-group-item:hover {
    color: #ffcdd2 !important; /* लाइट रेड */
}

/* === APP BOTTOM NAV SMOOTHNESS FIX === */

/* 1. GPU Acceleration for Offcanvas */
.offcanvas-bottom {
    will-change: transform;
    transform: translate3d(0, 100%, 0);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    bottom: 0 !important;
    z-index: 2050 !important;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    height: auto !important;
    max-height: 85vh;
}

/* 2. Bottom Nav Button Styling */
.mca-bottom-nav {
    z-index: 1040;
}

/* 2. Bottom Nav Item Styling – anchor + button same */
html.in-app-view #app-bottom-nav.mca-bottom-nav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 0; /* sab item ka width equal */
    padding: 8px 0 !important;
    margin: 0 4px; /* left-right equal space */
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    gap: 4px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7) !important;
    background: none !important;
    border: 0;
    outline: none !important;
    box-shadow: none !important;
}

html.in-app-view #app-bottom-nav.mca-bottom-nav .nav-link i {
    font-size: 20px;
    line-height: 1;
}

html.in-app-view #app-bottom-nav.mca-bottom-nav .nav-link span {
    font-size: 0.7rem;
}
