:root {
    --bg: #f4f7fb;
    --bg-deep: #e8f0ff;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --surface-soft: #f7faff;
    --text: #14213d;
    --muted: #63738d;
    --line: rgba(130, 156, 201, 0.22);
    --line-strong: rgba(40, 110, 255, 0.28);
    --brand: #1f6fff;
    --brand-strong: #1148b7;
    --brand-soft: rgba(31, 111, 255, 0.1);
    --accent: #0ea5a4;
    --accent-soft: rgba(14, 165, 164, 0.12);
    --success: #1c9f69;
    --warning: #f59e0b;
    --danger: #ea4b6a;
    --shadow-lg: 0 30px 80px rgba(61, 97, 159, 0.18);
    --shadow-md: 0 18px 45px rgba(86, 114, 168, 0.14);
    --shadow-sm: 0 10px 24px rgba(99, 124, 168, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    color: var(--text);
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(70, 133, 255, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(28, 199, 182, 0.13), transparent 22%),
        linear-gradient(180deg, #fbfdff 0%, #f5f8fe 55%, #eef4fb 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(4px);
}

body::before {
    inset: auto auto 6% -8%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(31, 111, 255, 0.16), transparent 70%);
    animation: floatBlob 12s ease-in-out infinite;
}

body::after {
    inset: 8% -6% auto auto;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(14, 165, 164, 0.14), transparent 72%);
    animation: floatBlob 15s ease-in-out infinite reverse;
}

@keyframes floatBlob {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.06); }
}

a {
    color: var(--brand-strong);
    text-decoration: none;
}

[data-role="admin-only"] {
    display: none;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 68px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(176, 198, 236, 0.24);
    backdrop-filter: blur(24px);
    box-shadow: 0 12px 26px rgba(95, 119, 164, 0.08);
}

.logo {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-strong);
}

.menuBtn,
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, filter 0.22s ease;
    cursor: pointer;
}

.menuBtn {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-sm);
    color: transparent;
    font-size: 0;
}

.menuBtn::before {
    content: "\2630";
    color: var(--brand-strong);
    font-size: 1.12rem;
    line-height: 1;
    font-weight: 900;
}

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

.icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
    font-size: 1rem;
}

#levelMini,
#streakMini {
    position: absolute;
    right: -8px;
    bottom: -8px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-strong), var(--accent));
    color: #fff;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(17, 72, 183, 0.25);
}

.menuBtn:hover,
.icon:hover,
.card:hover,
.miniCard:hover,
.statCard:hover,
.profileCard:hover,
.assistantOrb:hover,
button:hover,
.clearBtn:hover {
    transform: translateY(-3px);
}

#notiBadge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    line-height: 20px;
    text-align: center;
}

.sidebar {
    position: fixed;
    top: 88px;
    left: 20px;
    z-index: 999;
    display: none;
    width: min(300px, calc(100vw - 40px));
    max-height: calc(100vh - 108px);
    overflow-y: auto;
    padding: 18px;
    border-radius: 28px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
    animation: sidebarIn 0.25s ease;
}

@keyframes sidebarIn {
    from {
        opacity: 0;
        transform: translateX(-16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.sidebar div {
    padding: 14px 16px;
    border-radius: 16px;
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar div:hover {
    background: var(--brand-soft);
    color: var(--brand-strong);
    transform: translateX(4px);
}

.sidebarContact,
.sidebarContact:hover {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%) !important;
    color: var(--text) !important;
    transform: none !important;
    cursor: default !important;
    border: 1px solid rgba(187, 207, 240, 0.6);
    margin: 8px 0;
}

.sidebarContact h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.sidebarContact p {
    font-size: 0.88rem;
    line-height: 1.6;
}

.content,
.wrapper,
.adminWrap,
.aiWrap,
.chatShell {
    width: min(1180px, calc(100% - 34px));
    margin: 0 auto;
    padding: 18px 0 90px;
}

.dashboardPage,
.morePage,
.chatPage {
    text-align: left;
}

.container {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.loginBox {
    width: min(460px, 100%);
    padding: 34px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.landingPage {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: #f8fbff;
    background:
        radial-gradient(circle at 18% 18%, rgba(18, 214, 255, 0.18), transparent 26%),
        radial-gradient(circle at 80% 12%, rgba(34, 197, 94, 0.16), transparent 22%),
        linear-gradient(135deg, #040714 0%, #07182d 48%, #04120f 100%);
    font-family: "Space Grotesk", sans-serif;
}

.landingPage::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 197, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 197, 255, 0.07) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 50% 42%, black 45%, transparent 92%);
}

.landingShell {
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    align-content: center;
    gap: 18px;
    position: relative;
    z-index: 1;
    padding: 28px 0;
}

.landingHero {
    min-height: min(680px, calc(100vh - 140px));
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    align-items: center;
    gap: 28px;
}

.landingContent h1 {
    margin: 18px 0 12px;
    font-size: clamp(4rem, 12vw, 8.5rem);
    line-height: 0.82;
    letter-spacing: 0;
}

.landingContent p {
    max-width: 58ch;
    margin: 0;
    color: rgba(221, 238, 255, 0.82);
    font-size: clamp(1rem, 2vw, 1.18rem);
    line-height: 1.7;
}

.landingActions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.landingActions button {
    width: auto;
    min-width: 168px;
}

.landingVisual {
    min-height: 520px;
    position: relative;
    display: grid;
    place-items: center;
    perspective: 900px;
}

.holoRing {
    position: absolute;
    width: min(74vw, 430px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(125, 211, 252, 0.34);
    box-shadow:
        inset 0 0 48px rgba(34, 211, 238, 0.08),
        0 0 48px rgba(34, 211, 238, 0.1);
    animation: holoSpin 12s linear infinite;
}

.ringTwo {
    width: min(64vw, 340px);
    transform: rotateX(68deg);
    border-color: rgba(74, 222, 128, 0.3);
    animation-duration: 9s;
    animation-direction: reverse;
}

.holoCore {
    width: clamp(116px, 22vw, 170px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font: 800 clamp(3rem, 8vw, 5.6rem) "Rajdhani", sans-serif;
    background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.34), transparent 28%),
        linear-gradient(135deg, rgba(14, 165, 164, 0.98), rgba(31, 111, 255, 0.92));
    box-shadow: 0 0 58px rgba(34, 211, 238, 0.32), 0 28px 70px rgba(0, 0, 0, 0.32);
}

.holoPanel {
    position: absolute;
    width: min(220px, 46vw);
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(147, 197, 253, 0.26);
    background: rgba(5, 14, 28, 0.72);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(16px);
}

.holoPanel span {
    display: block;
    color: #7dd3fc;
    font: 700 0.78rem "Rajdhani", sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.holoPanel strong {
    display: block;
    margin-top: 6px;
    color: #f8fbff;
}

.panelOne {
    left: 4%;
    top: 18%;
}

.panelTwo {
    right: 0;
    top: 42%;
}

.panelThree {
    left: 18%;
    bottom: 12%;
}

.landingDock {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.landingDock article {
    min-height: 132px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(137, 196, 255, 0.2);
    background: linear-gradient(180deg, rgba(8, 24, 45, 0.8), rgba(5, 16, 31, 0.62));
    backdrop-filter: blur(14px);
}

.landingDock span {
    color: #7dd3fc;
    font-family: "Rajdhani", sans-serif;
    font-weight: 800;
}

.landingDock strong {
    display: block;
    margin-top: 8px;
}

.landingDock p {
    margin: 8px 0 0;
    color: rgba(214, 231, 255, 0.72);
    line-height: 1.55;
}

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

.tag,
.mini,
.mutedText {
    color: var(--muted);
    line-height: 1.6;
}

.grid,
.adminGrid,
.analyticsGrid,
.filterGrid,
.moreGrid {
    display: grid;
    gap: 18px;
}

.grid,
.moreGrid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.adminGrid,
.analyticsGrid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card,
.profileCard,
.miniCard,
.statCard {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card,
.profileCard,
.statCard {
    padding: 16px;
}

.miniCard {
    padding: 14px;
}

.card::before,
.miniCard::before,
.statCard::before {
    content: "";
    position: absolute;
    inset: auto -30px -70px auto;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 111, 255, 0.14), transparent 72%);
    pointer-events: none;
}

.card:hover,
.miniCard:hover,
.statCard:hover,
.profileCard:hover {
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}

.card h1,
.card h2,
.card h3,
.miniCard h1,
.miniCard h2,
.miniCard h3,
.statCard h1,
.statCard h2,
.statCard h3,
.profileCard h1,
.profileCard h2,
.profileCard h3 {
    color: var(--text);
}

.card p,
.miniCard p,
.statCard p,
.profileCard p,
label {
    color: var(--muted);
    line-height: 1.6;
}

.cardLink {
    cursor: pointer;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.lightBadge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

input,
select,
textarea,
button {
    width: 100%;
    font: inherit;
}

input,
select,
textarea {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(175, 194, 226, 0.55);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(31, 111, 255, 0.45);
    box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.12);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

button,
.clearBtn {
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand), #5b96ff);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 18px 34px rgba(31, 111, 255, 0.24);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover,
.clearBtn:hover {
    filter: brightness(1.03);
    box-shadow: 0 22px 36px rgba(31, 111, 255, 0.26);
}

.clearBtn {
    width: auto;
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.lightBtn {
    background: #ffffff;
    color: var(--brand-strong);
}

.ghostBtn {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: none;
}

.darkBtn {
    background: linear-gradient(135deg, #1c2942, #273857);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0;
}

.tab {
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(231, 239, 255, 0.9);
    color: var(--muted);
    font-weight: 700;
    cursor: pointer;
}

.activeTab {
    background: linear-gradient(135deg, var(--brand), #5c96ff);
    color: #fff;
    box-shadow: 0 12px 24px rgba(31, 111, 255, 0.2);
}

.section {
    display: none;
}

.activeSection {
    display: block;
}

.topBar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.searchBar {
    margin-bottom: 14px;
}

.previewImg {
    width: 100%;
    margin-top: 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
}

.cardTitle {
    font-size: 1rem;
    font-weight: 800;
}

.cardMeta {
    margin-top: 8px;
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.6;
}

.notiPanel {
    position: fixed;
    top: 88px;
    right: 20px;
    z-index: 1000;
    display: none;
    width: min(390px, calc(100vw - 32px));
    max-height: 72vh;
    overflow-y: auto;
    padding: 18px;
    border-radius: 28px;
    border: 1px solid rgba(158, 186, 234, 0.4);
    background:
        radial-gradient(circle at top right, rgba(31, 111, 255, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.94));
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
}

.notiItem {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(196, 214, 242, 0.62);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    margin-top: 12px;
}

.overlayPanelHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.overlayEyebrow {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notiItemHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.notiTitle {
    font-weight: 800;
    color: var(--text);
}

.notiNew,
.notiSeen {
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.notiNew {
    background: rgba(234, 75, 106, 0.12);
    color: var(--danger);
}

.notiSeen {
    background: rgba(28, 159, 105, 0.12);
    color: var(--success);
}

.notiMessage {
    margin-top: 8px;
    color: var(--text);
    line-height: 1.5;
}

.notiMeta {
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.76rem;
}

.notiActionBtn {
    margin-top: 10px;
    width: auto;
    min-width: 110px;
}

.notiEmpty,
.streakFooter {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    color: var(--muted);
}

.streakPanel {
    position: fixed;
    top: 88px;
    right: 20px;
    z-index: 1000;
    display: none;
    width: min(390px, calc(100vw - 32px));
    padding: 20px;
    border-radius: 28px;
    border: 1px solid rgba(158, 186, 234, 0.4);
    background:
        radial-gradient(circle at top right, rgba(14, 165, 164, 0.14), transparent 28%),
        radial-gradient(circle at bottom left, rgba(31, 111, 255, 0.14), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(238, 248, 255, 0.94));
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(24px);
}

.streakPill {
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-strong), var(--accent));
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
}

.streakTimeline {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

.streakNode {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(161, 189, 236, 0.6);
    background: rgba(255, 255, 255, 0.88);
    color: var(--brand-strong);
    font-weight: 900;
}

.streakNode.active {
    background: linear-gradient(135deg, var(--brand-strong), var(--accent));
    color: #fff;
    box-shadow: 0 18px 30px rgba(17, 72, 183, 0.22);
}

.streakTrack {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(208, 222, 247, 0.9);
}

.streakTrack span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--brand));
}

.streakCaption {
    margin-top: 12px;
    font-weight: 800;
    color: var(--text);
}

.streakMetricGrid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
}

.streakMetricCard {
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(189, 209, 240, 0.52);
    background: rgba(255, 255, 255, 0.78);
}

.streakMetricCard span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.streakMetricCard strong {
    display: block;
    margin-top: 7px;
    color: var(--text);
}

#timer {
    font-size: clamp(2.6rem, 8vw, 4rem);
    font-weight: 900;
    color: var(--brand-strong);
    letter-spacing: 0.04em;
    animation: timerPulse 2.8s ease-in-out infinite;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.bar {
    height: 12px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(221, 231, 250, 0.9);
}

.fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand), #83b7ff);
}

.chatShell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
}

.chatSidebar,
.chatMain {
    display: grid;
    gap: 18px;
}

.chatWhatsappShell {
    max-width: 980px;
    margin: 0 auto;
}

.chatPanel {
    display: grid;
    gap: 18px;
    padding: 14px;
    border-radius: 26px;
    border: 1px solid rgba(170, 192, 228, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(246, 251, 255, 0.92)),
        radial-gradient(circle at top right, rgba(31, 111, 255, 0.08), transparent 28%);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.chatHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 4px 2px;
}

.chatIdentity {
    display: flex;
    align-items: center;
    gap: 14px;
}

.chatIdentity h1 {
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.chatIdentity p {
    color: var(--muted);
    margin-top: 4px;
}

.chatIdentityIcon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--brand-strong), var(--accent));
    color: #fff;
    font-size: 1.2rem;
    font-weight: 900;
    box-shadow: 0 18px 30px rgba(22, 89, 190, 0.24);
}

.chatHeaderActions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.iconOnlyBtn {
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
}

.aiMiniBtn {
    width: auto;
    min-width: 130px;
}

.chatBox {
    height: 560px;
    overflow: auto;
    padding: 14px;
    border-radius: 22px;
    border: 1px solid rgba(170, 192, 228, 0.34);
    background:
        linear-gradient(180deg, rgba(245, 249, 255, 0.96), rgba(238, 246, 255, 0.92)),
        radial-gradient(circle at center, rgba(14, 165, 164, 0.06), transparent 40%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.whatsappChat {
    background-image:
        linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(239, 247, 255, 0.9)),
        linear-gradient(rgba(175, 204, 225, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(175, 204, 225, 0.08) 1px, transparent 1px);
    background-size: auto, 24px 24px, 24px 24px;
}

.message {
    display: flex;
    gap: 12px;
    margin: 14px 0;
    align-items: flex-end;
}

.messageOwn {
    flex-direction: row-reverse;
}

.messageOwn .msgBody {
    border-bottom-right-radius: 8px;
    background: linear-gradient(180deg, #dff6ee 0%, #d4efe6 100%);
}

.messageOwn .msgHead,
.messageOwn .msgTime,
.messageOwn .msgBtns {
    text-align: right;
    justify-content: flex-end;
}

.messageOther .msgBody {
    border-bottom-left-radius: 8px;
}

.chatAvatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(31, 111, 255, 0.16);
}

.msgBody {
    max-width: min(580px, calc(100vw - 140px));
    padding: 10px 12px;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid rgba(203, 220, 243, 0.9);
    box-shadow: 0 12px 28px rgba(102, 126, 170, 0.08);
}

.msg,
.replyBox,
.replyPreview,
.historyItem {
    border: 1px solid rgba(209, 223, 247, 0.84);
    background: rgba(248, 251, 255, 0.94);
}

.msg {
    margin: 10px 0;
    padding: 14px 16px;
    border-radius: 16px;
}

.msgHead {
    color: var(--brand-strong);
    font-size: 0.82rem;
    font-weight: 800;
}

.msgText {
    margin-top: 8px;
    color: var(--text);
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
}

.msgTime {
    margin-top: 8px;
    font-size: 0.74rem;
    color: var(--muted);
}

.msgBtns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--brand-strong);
}

.msgBtns span {
    cursor: pointer;
    font-weight: 700;
}

.replyBox,
.replyPreview {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.8rem;
}

.replyPreview {
    display: none;
}

.chatComposer {
    display: grid;
    gap: 8px;
}

.historyTray {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.historyList {
    display: grid;
    gap: 12px;
}

.historyItem,
.historyEmpty {
    flex: 0 0 auto;
    min-width: 170px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.historyItem:hover {
    transform: translateY(-2px);
    border-color: rgba(31, 111, 255, 0.24);
    box-shadow: var(--shadow-sm);
}

.historyTitle {
    color: var(--text);
    font-weight: 700;
    line-height: 1.4;
}

.historyMeta,
.historyEmpty {
    margin-top: 6px;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.45;
}

.chatInput {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.whatsappInput {
    align-items: stretch;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(182, 201, 235, 0.5);
}

.chatInput textarea {
    min-height: 72px;
    max-height: 160px;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.chatInput textarea:focus {
    box-shadow: none;
}

.sendBtn {
    width: 78px;
    min-width: 78px;
    height: 54px;
    border-radius: 14px;
}

.menu {
    position: fixed;
    display: none;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.menu div {
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
}

.menu div:hover {
    background: var(--surface-soft);
}

.highlight {
    background: rgba(227, 238, 255, 0.88) !important;
    animation: flash 0.8s ease;
}

@keyframes flash {
    0% { transform: scale(0.99); }
    100% { transform: scale(1); }
}

.assistantOrb {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(114, 150, 235, 0.26);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 44px rgba(59, 93, 164, 0.2);
    backdrop-filter: blur(18px);
}

.assistantOrbGlow {
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(31, 111, 255, 0.2), rgba(14, 165, 164, 0.14));
    pointer-events: none;
}

.assistantOrbIcon,
.assistantOrbLabel {
    position: relative;
    z-index: 1;
}

.assistantOrbIcon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-strong), #4f8eff);
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.assistantOrbLabel {
    display: none;
}

.heroCard,
.dashboardHero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
    gap: 22px;
    margin-bottom: 22px;
}

.heroPanel {
    position: relative;
    overflow: hidden;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid rgba(145, 178, 235, 0.32);
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.5), transparent 26%),
        linear-gradient(135deg, #ffffff 0%, #eef5ff 58%, #ddedff 100%);
    box-shadow: var(--shadow-lg);
}

.heroPanel::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -44px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 111, 255, 0.16), transparent 70%);
}

.heroPanel h1 {
    margin-top: 10px;
    font-size: clamp(1.7rem, 4vw, 2.6rem);
    line-height: 1.05;
    max-width: 11ch;
}

.heroMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.heroAside,
.quickStats {
    display: grid;
    gap: 16px;
}

.combinedStatsButton {
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(149, 185, 241, 0.34);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 247, 255, 0.95)),
        linear-gradient(180deg, rgba(31, 111, 255, 0.08), transparent);
    box-shadow: var(--shadow-md);
}

.combinedStatsTop,
.sectionHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.combinedStatsGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.combinedStatsGrid div,
.referMetric,
.aboutList div {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(189, 209, 240, 0.48);
    background: rgba(255, 255, 255, 0.76);
}

.dashboardMetricButtons div {
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.dashboardMetricButtons div:hover,
.dashboardMetricButtons div:focus {
    transform: translateY(-2px);
    border-color: rgba(14, 165, 164, 0.5);
    box-shadow: 0 14px 32px rgba(20, 99, 160, 0.14);
    outline: none;
}

.combinedStatsGrid span,
.referMetric span,
.heroMiniMeta span,
.aboutList span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.combinedStatsGrid strong,
.referMetric strong,
.heroMiniMeta strong,
.aboutList strong {
    display: block;
    margin-top: 8px;
    font-size: 1.05rem;
    color: var(--text);
}

.quickInsight p {
    margin-top: 10px;
}

.heroMiniMeta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(207, 220, 243, 0.8);
}

.dashboardSplit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.dashboardButtons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboardButton {
    min-height: 84px;
    display: grid;
    place-items: center;
    text-align: center;
}

.dashboardButton h3 {
    font-size: 1rem;
}

.pageIntro p {
    margin-top: 10px;
}

.profileHero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
    gap: 14px;
}

.profileMainCard,
.profileTechCard {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(136, 169, 227, 0.34);
    background:
        radial-gradient(circle at top right, rgba(12, 97, 255, 0.14), transparent 26%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 245, 255, 0.92) 58%, rgba(228, 242, 255, 0.9));
    box-shadow: var(--shadow-lg);
}

.profileMainCard {
    padding: 22px;
}

.profileTechCard {
    padding: 16px;
}

.profileMainCard::before,
.profileTechCard::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(transparent 96%, rgba(31, 111, 255, 0.08) 96%),
        linear-gradient(90deg, transparent 96%, rgba(14, 165, 164, 0.06) 96%);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 92%);
}

.profileMainHead,
.profileActionCluster,
.profileIdentityMeta,
.profileSideStack {
    display: grid;
    gap: 12px;
}

.profileMainHead {
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
}

.profileAvatarWrap {
    position: relative;
    width: 116px;
    height: 116px;
    cursor: pointer;
}

.profileAvatarRing {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, rgba(14, 165, 164, 0.9), rgba(31, 111, 255, 0.92), rgba(14, 165, 164, 0.9));
}

.profileAvatar {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 42px rgba(53, 90, 154, 0.22);
}

.profileAvatarEdit {
    position: absolute;
    right: -4px;
    bottom: 8px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(19, 35, 70, 0.92);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.profileIdentity h1 {
    margin-top: 10px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    letter-spacing: -0.03em;
}

.profileIdentityMeta {
    margin-top: 10px;
    color: var(--muted);
}

.profileIdentityMeta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profileActionCluster {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    width: min(280px, 100%);
}

.profileSignalGrid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.profileSignalCard {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(173, 199, 236, 0.5);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.profileSignalCard span,
.profileTechTitle,
.profileTechMetric span {
    display: block;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.profileSignalCard strong,
.profileTechMetric strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-size: 1.08rem;
}

.profileSideStack {
    align-content: start;
}

.profileTechTitle {
    margin-bottom: 12px;
}

.profileTechMetric {
    padding: 12px 0;
    border-bottom: 1px solid rgba(201, 218, 243, 0.72);
}

.profileTechMetric:last-of-type {
    border-bottom: 0;
}

.profileActivityList {
    display: grid;
    gap: 8px;
}

.profileActivityItem {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(184, 205, 239, 0.45);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    line-height: 1.45;
}

.referCard {
    background:
        radial-gradient(circle at top right, rgba(245, 189, 60, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 249, 236, 0.96));
}

.referGrid,
.aboutList {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
}

.aboutCard,
.contactCard,
.adminHintCard {
    min-height: 100%;
}

.contactCard p + p {
    margin-top: 10px;
}

.dashboardSectionTitle {
    margin: 6px 0 16px;
    font-size: 1.4rem;
}

.swiping {
    transform: translateX(60px);
}

.fade {
    animation: fadeIn 0.42s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.authPage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px 16px;
    position: relative;
    overflow: hidden;
}

.authTechPage {
    background:
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.22), transparent 22%),
        radial-gradient(circle at 82% 18%, rgba(34, 211, 238, 0.18), transparent 18%),
        radial-gradient(circle at 75% 84%, rgba(16, 185, 129, 0.14), transparent 18%),
        linear-gradient(135deg, #040915 0%, #091628 46%, #03101d 100%);
    font-family: "Space Grotesk", sans-serif;
}

.authSceneGlow {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.65;
    pointer-events: none;
}

.authGlowA {
    width: 280px;
    height: 280px;
    left: -60px;
    top: 60px;
    background: rgba(41, 186, 255, 0.2);
}

.authGlowB {
    width: 320px;
    height: 320px;
    right: -80px;
    bottom: 30px;
    background: rgba(0, 255, 178, 0.12);
}

.authGrid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(130, 156, 201, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 156, 201, 0.08) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
    pointer-events: none;
}

.authWrap {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.singleAuth,
.authTechSingle {
    grid-template-columns: 1fr;
    max-width: 820px;
}

.signupTechWrap {
    grid-template-columns: 0.88fr 1.12fr;
    align-items: stretch;
}

.signupSimpleWrap {
    grid-template-columns: 1fr;
    max-width: 860px;
}

.signupWhitePage {
    min-height: 100vh;
    place-items: start center;
    padding: 24px 16px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 12% 8%, rgba(31, 111, 255, 0.1), transparent 24%),
        radial-gradient(circle at 86% 16%, rgba(14, 165, 164, 0.09), transparent 22%),
        linear-gradient(180deg, #ffffff 0%, #f6f8fc 58%, #eef4fb 100%);
    font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

.signupWhitePage .authSceneGlow,
.signupWhitePage .authGrid {
    display: none;
}

.signupWhitePage .signupTechWrap {
    width: min(1180px, 100%);
    min-height: auto;
    margin-top: 10px;
    align-items: start;
}

.signupWhitePage .signupSimpleWrap {
    width: min(860px, 100%);
}

.signupWhitePage .authCard {
    border-radius: 24px;
    border: 1px solid rgba(189, 209, 240, 0.74);
    box-shadow: var(--shadow-lg);
    backdrop-filter: none;
}

.signupWhitePage .signupDashboardPanel {
    color: var(--text);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 255, 0.94)),
        radial-gradient(circle at top right, rgba(31, 111, 255, 0.1), transparent 34%);
}

.signupWhitePage .authHeroPanel::after,
.signupWhitePage .authGlassCard::before {
    display: none;
}

.signupWhitePage .signupHeroPanel::before {
    border-color: rgba(31, 111, 255, 0.16);
    box-shadow: inset 0 0 44px rgba(31, 111, 255, 0.06);
}

.signupWhitePage .authEyebrow {
    color: var(--brand-strong);
}

.signupWhitePage .signupDashboardPanel h1 {
    color: var(--text);
    letter-spacing: 0;
}

.signupWhitePage .authLead {
    color: var(--muted);
}

.signupWhitePage .signupSignalGrid div {
    border-color: rgba(189, 209, 240, 0.8);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}

.signupWhitePage .signupSignalGrid strong {
    color: var(--text);
}

.signupWhitePage .authStatusStrip span,
.signupWhitePage .authStatusStripDark span {
    color: var(--brand-strong);
    background: var(--brand-soft);
    border-color: rgba(31, 111, 255, 0.16);
}

.signupWhitePage .signupWhiteCard {
    color: var(--text);
    background: #ffffff;
    padding: clamp(20px, 4vw, 34px);
}

.signupWhitePage .authFormCard h2,
.signupWhitePage .authFormCard h3,
.signupWhitePage .signupCard h1,
.signupWhitePage .forgotCard h1 {
    color: var(--text);
    letter-spacing: 0;
}

.signupWhitePage .signupCard h1 {
    max-width: 14ch;
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.02;
}

.signupWhitePage .authPanelChip {
    color: var(--brand-strong);
    background: var(--brand-soft);
}

.signupWhitePage .authTabs {
    margin-top: 16px;
}

.signupWhitePage .authTab {
    background: #f7faff;
    color: var(--brand-strong);
    border-color: rgba(168, 188, 222, 0.76);
}

.signupWhitePage .authTab.active {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.signupWhitePage .authLabel {
    color: #334765;
}

.signupWhitePage .authFormCard input {
    color: var(--text);
    background: #f9fbff;
    border: 1px solid rgba(168, 188, 222, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.signupWhitePage .authFormCard input::placeholder {
    color: #8a9ab3;
}

.signupWhitePage .authFormCard input:focus {
    border-color: rgba(31, 111, 255, 0.72);
    box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.12);
    transform: none;
}

.signupWhitePage .otpPanel {
    margin-top: 22px;
    padding: 22px;
    border: 2px solid rgba(31, 111, 255, 0.24);
    border-radius: 22px;
    background:
        linear-gradient(180deg, #ffffff, #f8fbff),
        radial-gradient(circle at top right, rgba(31, 111, 255, 0.08), transparent 34%);
    box-shadow: 0 18px 46px rgba(86, 114, 168, 0.12);
}

.signupWhitePage .otpPanelLocked {
    opacity: 1;
    border-style: solid;
    background: #ffffff;
}

.signupWhitePage .otpPanelReady {
    border-color: rgba(28, 159, 105, 0.55);
    box-shadow: 0 20px 52px rgba(28, 159, 105, 0.12);
}

.signupWhitePage .otpSentText {
    color: var(--muted);
    font-weight: 700;
}

.signupWhitePage .otpTimer {
    color: var(--brand-strong);
    padding: 8px 10px;
    border-radius: 999px;
    background: var(--brand-soft);
}

.signupWhitePage .otpBoxes {
    gap: 12px;
}

.signupWhitePage .otpBoxes .otpDigit {
    min-height: 62px;
    color: var(--text);
    background: #ffffff;
    border: 2px solid rgba(31, 111, 255, 0.32);
    border-radius: 14px;
    font-size: 1.7rem;
    box-shadow: 0 12px 24px rgba(99, 124, 168, 0.1);
}

.signupWhitePage .otpBoxes .otpDigit:disabled {
    opacity: 1;
    background: #eef3fb;
    border-style: dashed;
}

.signupWhitePage .otpBoxes .otpDigit:focus {
    transform: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(31, 111, 255, 0.14), 0 12px 26px rgba(31, 111, 255, 0.12);
}

.signupWhitePage .otpBoxes.otpComplete .otpDigit {
    border-color: rgba(28, 159, 105, 0.7);
    box-shadow: 0 0 0 4px rgba(28, 159, 105, 0.12);
}

.signupWhitePage .authSwitch {
    color: var(--muted);
}

.signupWhitePage .authSwitch a {
    color: var(--brand-strong);
}

.authCard {
    padding: 28px;
    border-radius: 28px;
    border: 1px solid rgba(126, 160, 214, 0.26);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(22px);
}

.authHero {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(4, 17, 37, 0.92), rgba(8, 31, 62, 0.82)),
        radial-gradient(circle at top right, rgba(68, 211, 255, 0.24), transparent 32%);
    position: relative;
}

.authHeroPanel::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 22px;
    border: 1px solid rgba(122, 197, 255, 0.16);
    pointer-events: none;
}

.signupHeroPanel {
    overflow: hidden;
}

.signupHeroPanel::before {
    content: "";
    position: absolute;
    width: 280px;
    aspect-ratio: 1;
    right: -92px;
    bottom: -80px;
    border-radius: 50%;
    border: 1px solid rgba(125, 211, 252, 0.28);
    box-shadow: inset 0 0 54px rgba(34, 211, 238, 0.08), 0 0 52px rgba(34, 211, 238, 0.12);
    pointer-events: none;
}

.signupSignalGrid {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.signupSignalGrid div {
    padding: 15px;
    border-radius: 18px;
    border: 1px solid rgba(125, 211, 252, 0.18);
    background: rgba(6, 19, 38, 0.58);
}

.signupSignalGrid span {
    display: block;
    color: #7dd3fc;
    font: 800 0.78rem "Rajdhani", sans-serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.signupSignalGrid strong {
    display: block;
    margin-top: 6px;
    color: #f8fbff;
}

.authEyebrow {
    margin: 0;
    font-family: "Rajdhani", sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #7dd3fc;
}

.authHero h1,
.signupCard h1,
.forgotCard h1 {
    margin-top: 10px;
    margin-bottom: 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.authLead {
    margin: 0;
    max-width: 58ch;
    color: rgba(222, 236, 255, 0.86);
    line-height: 1.65;
}

.authLeadDark {
    color: #4e6287;
}

.authMetrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.authMetrics article {
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(10, 29, 57, 0.88), rgba(8, 21, 42, 0.66));
    border: 1px solid rgba(123, 186, 239, 0.16);
}

.authMetrics strong,
.authStatusStrip span,
.authPanelChip {
    font-family: "Rajdhani", sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.authMetrics span {
    display: block;
    margin-top: 6px;
    color: rgba(214, 231, 255, 0.78);
    font-size: 0.92rem;
}

.authLinks {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.authLinks button,
.authActionRow button {
    width: auto;
    min-width: 170px;
}

.authStatusStrip {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.authStatusStrip span {
    padding: 8px 12px;
    border-radius: 999px;
    color: #d7ebff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(137, 198, 255, 0.18);
    font-size: 0.8rem;
}

.authStatusStripDark span {
    color: #1f4067;
    background: rgba(22, 92, 196, 0.08);
    border-color: rgba(22, 92, 196, 0.14);
}

.authFormCard {
    color: #e8f3ff;
    background:
        linear-gradient(180deg, rgba(10, 22, 42, 0.88), rgba(6, 15, 30, 0.82)),
        radial-gradient(circle at 18% 0%, rgba(61, 204, 255, 0.16), transparent 34%);
}

.authGlassCard {
    position: relative;
}

.authGlassCard::before {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 22px;
    border: 1px solid rgba(151, 180, 223, 0.28);
    pointer-events: none;
}

.authFormCard h2,
.authFormCard h3,
.signupCard h1,
.forgotCard h1 {
    color: #f7fbff;
}

.authPanelHead {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.authPanelHeadSub {
    margin-top: 2px;
}

.authPanelChip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(103, 232, 249, 0.12);
    color: #a7f3ff;
    font-size: 0.8rem;
}

.authTabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.authTab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(31, 111, 255, 0.14);
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    text-decoration: none;
    font-weight: 700;
}

.authTab.active {
    background: var(--brand);
    color: #ffffff;
    border-color: var(--brand);
}

.authFieldGrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.authFieldWide {
    grid-column: 1 / -1;
}

.authFields {
    margin-top: 16px;
}

.authLabel {
    display: inline-block;
    margin-bottom: 8px;
    color: #a8c7f7;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.authFormCard input {
    color: #eef7ff;
    background: rgba(8, 18, 35, 0.78);
    border-color: rgba(132, 180, 236, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.12);
}

.authFormCard input::placeholder {
    color: rgba(184, 204, 235, 0.6);
}

.authFormCard input:focus {
    border-color: rgba(103, 232, 249, 0.72);
    box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.13), 0 0 26px rgba(34, 211, 238, 0.12);
    transform: translateY(-1px);
}

.authLeadDark,
.authSwitch {
    color: #a8bbda;
}

.authSwitch a {
    color: #7dd3fc;
}

.inlineOtpControl {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 10px;
    align-items: stretch;
}

.otpSendButton,
.miniOtpButton {
    min-width: 0;
    white-space: nowrap;
}

.otpPanel {
    margin-top: 18px;
    padding: 18px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(7, 19, 38, 0.72), rgba(9, 25, 48, 0.52));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    animation: fadeIn 0.28s ease;
}

.otpPanelLocked {
    border-style: dashed;
    opacity: 0.82;
}

.otpPanelReady {
    border-color: rgba(34, 211, 238, 0.44);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 34px rgba(34, 211, 238, 0.09);
}

.otpSentText {
    margin: 6px 0 0;
    color: #a8bbda;
    font-size: 0.9rem;
    line-height: 1.45;
}

.otpPanelHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.otpPanelActions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.otpTimer {
    color: #9ee8ff;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.otpTimer.expired {
    color: #fecdd3;
}

.otpBoxes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.otpBoxes .otpDigit {
    aspect-ratio: 1;
    padding: 0;
    text-align: center;
    font-size: 1.45rem;
    font-weight: 800;
    border-radius: 16px;
    border-color: rgba(132, 180, 236, 0.3);
    background: rgba(3, 9, 20, 0.72);
}

.otpBoxes .otpDigit:disabled {
    opacity: 0.46;
    cursor: not-allowed;
}

.otpBoxes .otpDigit:focus {
    transform: translateY(-3px) scale(1.02);
}

.otpBoxes.otpComplete .otpDigit {
    border-color: rgba(74, 222, 128, 0.58);
    box-shadow: 0 0 22px rgba(74, 222, 128, 0.12);
}

.toastTray {
    position: fixed;
    right: 18px;
    top: 18px;
    z-index: 2000;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 28px));
}

.toast {
    padding: 13px 15px;
    border-radius: 16px;
    color: #f8fbff;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: rgba(9, 20, 38, 0.92);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
    animation: toastIn 0.24s ease;
}

.toastSuccess {
    border-color: rgba(74, 222, 128, 0.34);
}

.toastError {
    border-color: rgba(251, 113, 133, 0.4);
}

.toastLeaving {
    opacity: 0;
    transform: translateY(-8px);
}

.isLoading {
    opacity: 0.78;
    cursor: wait;
}

button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.otpIncomplete {
    opacity: 0.82;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.authActionRow {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.authFormCard input + input,
.authFormCard input + button,
.authFormCard button + p,
.authFields input + input {
    margin-top: 12px;
}

.authDivider {
    height: 1px;
    margin: 22px 0;
    background: linear-gradient(90deg, transparent, rgba(91, 132, 198, 0.34), transparent);
}

.authNotice {
    margin-top: 14px;
    min-height: 22px;
    font-weight: 700;
    color: var(--brand);
}

.authNotice.error {
    color: #d13d67;
}

.authNotice.success {
    color: #187e59;
}

.authSwitch {
    margin-top: 18px;
    color: var(--muted);
}

.compactPage {
    display: grid;
    gap: 12px;
}

.compactCard {
    padding: 14px;
}

.pageTopbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.pageTopbarActions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pageBackBtn {
    min-width: 72px;
}

.reviewList {
    display: grid;
    gap: 12px;
}

.reviewCard,
.reviewAdminCard {
    display: grid;
    gap: 10px;
}

.reviewHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.reviewBody {
    color: var(--text);
    line-height: 1.5;
}

.reviewMeta {
    color: var(--muted);
    font-size: 0.78rem;
}

.reviewReply {
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(189, 209, 240, 0.48);
    background: rgba(247, 251, 255, 0.88);
}

.reviewReplyTitle {
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--brand-strong);
}

.globalBackButton {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1190;
    width: auto;
    min-width: 68px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand-strong);
    border: 1px solid rgba(170, 190, 226, 0.8);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    text-align: left;
    border-bottom: 1px solid rgba(218, 227, 243, 0.9);
}

th {
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.02em;
}

@media (max-width: 1024px) {
    .landingHero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .landingVisual {
        min-height: 430px;
    }

    .heroCard,
    .dashboardHero,
    .dashboardSplit,
    .chatShell,
    .authWrap,
    .signupTechWrap,
    .profileHero {
        grid-template-columns: 1fr;
    }

    .dashboardButtons {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .referGrid,
    .aboutList,
    .authMetrics,
    .authFieldGrid,
    .landingDock {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .topbar {
        min-height: 72px;
        padding: 12px 16px;
    }

    .content,
    .wrapper,
    .adminWrap,
    .aiWrap,
    .chatShell {
        width: min(100% - 22px, 1180px);
        padding-top: 18px;
        padding-bottom: 100px;
    }

    .card,
    .miniCard,
    .profileCard,
    .statCard,
    .heroPanel,
    .authCard,
    .chatPanel,
    .combinedStatsButton,
    .profileMainCard,
    .profileTechCard {
        padding: 20px;
        border-radius: 24px;
    }

    .authActionRow,
    .authPanelHead,
    .otpPanelHead {
        flex-direction: column;
        align-items: stretch;
    }

    .otpPanelActions {
        justify-content: space-between;
    }

    .signupWhitePage {
        padding: 12px;
    }

    .signupWhitePage .signupTechWrap {
        margin-top: 0;
    }

    .signupWhitePage .signupHeroPanel {
        display: none;
    }

    .profileMainHead {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .profileActionCluster,
    .profileSignalGrid {
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .dashboardButtons,
    .combinedStatsGrid {
        grid-template-columns: 1fr 1fr;
    }

    .chatBox {
        height: 460px;
    }

    .assistantOrb {
        right: 16px;
        bottom: 16px;
    }
}

@media (max-width: 560px) {
    .topIcons {
        gap: 8px;
    }

    .icon,
    .menuBtn {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    #levelMini,
    #streakMini {
        right: -6px;
        bottom: -6px;
    }

    .grid,
    .adminGrid,
    .analyticsGrid,
    .filterGrid,
    .moreGrid,
    .dashboardButtons,
    .combinedStatsGrid,
    .dashboardSplit,
    .profileSignalGrid,
    .profileActionCluster {
        grid-template-columns: 1fr;
    }

    .topBar,
    .chatInput,
    .combinedStatsTop,
    .sectionHead,
    .chatHeader {
        flex-direction: column;
        align-items: stretch;
    }

    .msgBody {
        max-width: 100%;
    }

    .sendBtn {
        width: 100%;
        height: auto;
        min-width: 0;
    }

    .historyTray {
        display: grid;
    }

    .historyItem,
    .historyEmpty,
    .authLinks button {
        width: 100%;
    }

    .landingShell {
        width: min(100% - 22px, 1180px);
        align-content: start;
    }

    .landingContent h1 {
        font-size: clamp(3.5rem, 18vw, 5.8rem);
    }

    .landingActions button {
        width: 100%;
    }

    .landingVisual {
        min-height: 360px;
    }

    .holoPanel {
        width: min(190px, 58vw);
        padding: 12px;
    }

    .panelOne {
        left: 0;
        top: 12%;
    }

    .panelTwo {
        right: 0;
        top: 48%;
    }

    .panelThree {
        left: 8%;
        bottom: 6%;
    }

    .authActionRow button,
    .inlineOtpControl {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .otpBoxes {
        gap: 7px;
    }

    .otpBoxes .otpDigit {
        border-radius: 12px;
        font-size: 1.18rem;
    }

    .signupWhitePage .otpPanel {
        padding: 16px;
    }

    .signupWhitePage .otpBoxes {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 6px;
    }

    .signupWhitePage .otpBoxes .otpDigit {
        min-height: 44px;
        border-radius: 10px;
        font-size: 1.2rem;
    }
}

/* --------------------------------------------------------------------------
   StudyOS monochrome executive theme
   A formal black-and-white visual layer for every existing page.
-------------------------------------------------------------------------- */
:root {
    --bg: #f5f5f3;
    --bg-deep: #e9e9e6;
    --surface: rgba(255, 255, 255, 0.94);
    --surface-strong: #ffffff;
    --surface-soft: #f1f1ef;
    --surface-invert: #080808;
    --text: #0a0a0a;
    --muted: #616161;
    --muted-strong: #3b3b3b;
    --line: rgba(10, 10, 10, 0.12);
    --line-strong: rgba(10, 10, 10, 0.24);
    --brand: #0a0a0a;
    --brand-strong: #000000;
    --brand-soft: rgba(0, 0, 0, 0.06);
    --accent: #2f2f2f;
    --accent-soft: rgba(0, 0, 0, 0.05);
    --success: #171717;
    --warning: #383838;
    --danger: #050505;
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.14);
    --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.11);
    --shadow-sm: 0 10px 24px rgba(0, 0, 0, 0.08);
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --control-height: 48px;
    --container-max: 1180px;
}

html {
    background: #f5f5f3;
}

body,
.authPage,
.landingPage,
.signupWhitePage {
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(245, 245, 243, 0.98) 46%, rgba(239, 239, 236, 0.98) 100%),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px 78px),
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.02) 0 1px, transparent 1px 78px);
}

body::before,
body::after,
.authSceneGlow,
.authGrid,
.landingPage::before {
    display: none !important;
}

::selection {
    background: #111111;
    color: #ffffff;
}

a {
    color: #000000;
    font-weight: 750;
    text-underline-offset: 3px;
}

a:hover {
    text-decoration: underline;
}

:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.72);
    outline-offset: 3px;
}

.content,
.wrapper,
.adminWrap,
.aiWrap,
.chatShell,
.boardContainer,
.landingShell,
.authWrap {
    width: min(100% - 32px, var(--container-max));
}

.topbar {
    min-height: 72px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 18px 44px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(18px);
}

.logo {
    color: #000000;
    font-size: 1.05rem;
    font-weight: 950;
    letter-spacing: 0.14em;
}

.menuBtn,
.icon,
.clearBtn,
.ghostBtn,
.lightBtn,
.darkBtn,
button,
.tab,
.sendBtn,
.otpSendButton,
.miniOtpButton {
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 850;
    letter-spacing: 0;
}

.menuBtn,
.icon {
    background: #ffffff;
    border: 1px solid var(--line-strong);
    box-shadow: none;
    color: #0a0a0a;
}

.menuBtn::before {
    color: #000000;
}

.menuBtn:hover,
.icon:hover,
.clearBtn:hover,
.ghostBtn:hover,
.lightBtn:hover,
.darkBtn:hover,
button:hover,
.tab:hover,
.sendBtn:hover,
.dashboardMetricButtons div:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.menuBtn:active,
.icon:active,
button:active,
.clearBtn:active,
.tab:active {
    transform: translateY(0);
}

#levelMini,
#streakMini,
#notiBadge {
    background: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.sidebar,
.notiPanel,
.streakPanel,
.menu {
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.sidebar div,
.menu div,
.historyItem {
    color: var(--muted-strong);
    border-radius: var(--radius-sm);
}

.sidebar div:hover,
.menu div:hover,
.historyItem:hover {
    background: #0a0a0a;
    color: #ffffff;
}

.card,
.miniCard,
.statCard,
.profileCard,
.heroPanel,
.heroAside,
.combinedStatsButton,
.profileMainCard,
.profileTechCard,
.chatPanel,
.authCard,
.landingDock article,
.holoPanel,
.referMetric,
.profileSignalCard,
.reviewAdminCard,
.otpPanel,
.toast,
.facultyModal_modalPanel__9jSPE {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--text);
}

.card,
.miniCard,
.statCard,
.profileCard,
.profileMainCard,
.profileTechCard,
.combinedStatsButton,
.chatPanel,
.authCard {
    position: relative;
    overflow: hidden;
}

.card::before,
.miniCard::before,
.statCard::before,
.profileMainCard::before,
.profileTechCard::before,
.combinedStatsButton::before,
.chatPanel::before,
.authCard::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #000000, rgba(0, 0, 0, 0.12));
    opacity: 0.85;
}

.card:hover,
.miniCard:hover,
.statCard:hover,
.profileCard:hover,
.profileMainCard:hover,
.profileTechCard:hover,
.combinedStatsButton:hover,
.holoPanel:hover,
.landingDock article:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 0, 0, 0.28);
    box-shadow: var(--shadow-md);
}

h1,
h2,
h3,
h4,
.cardTitle,
.profileTechTitle,
.historyTitle,
.notiTitle,
.reviewReplyTitle {
    color: #050505;
    letter-spacing: 0;
}

p,
.mini,
.mutedText,
.cardMeta,
.chatIdentity p,
.historyEmpty,
.reviewMeta,
.notiMeta,
.otpSentText,
.authLead,
.authLeadDark,
.pageIntro p,
.quickInsight p {
    color: var(--muted);
}

.badge,
.lightBadge,
.authPanelChip,
.streakPill,
.notiSeen,
.notiNew,
.toastSuccess,
.toastError {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    min-height: 28px;
    padding: 6px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #ffffff;
    color: #111111;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: none;
}

.lightBadge,
.notiNew,
.toastSuccess {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.notiSeen,
.toastError {
    background: #f4f4f2;
    color: #2b2b2b;
}

button,
.sendBtn,
.darkBtn,
.otpSendButton,
#loginButton,
#signupVerifyButton,
#forgotVerifyButton,
#resetPasswordButton {
    min-height: var(--control-height);
    border: 1px solid #000000;
    background: #000000;
    color: #ffffff;
    box-shadow: none;
}

button:hover,
.sendBtn:hover,
.darkBtn:hover,
.otpSendButton:hover,
#loginButton:hover,
#signupVerifyButton:hover,
#forgotVerifyButton:hover,
#resetPasswordButton:hover {
    background: #242424;
    border-color: #242424;
}

.clearBtn,
.ghostBtn,
.lightBtn,
.pageBackBtn,
.miniOtpButton {
    min-height: 42px;
    border: 1px solid var(--line-strong);
    background: #ffffff;
    color: #000000;
}

.clearBtn:hover,
.ghostBtn:hover,
.lightBtn:hover,
.pageBackBtn:hover,
.miniOtpButton:hover {
    background: #f1f1ef;
    color: #000000;
}

button:disabled,
.miniOtpButton:disabled {
    background: #d8d8d5;
    border-color: #d8d8d5;
    color: #777777;
    box-shadow: none;
    cursor: not-allowed;
}

input,
textarea,
select,
.searchBar,
.authFormCard input,
.signupWhitePage .authFormCard input,
.chatInput textarea {
    min-height: var(--control-height);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #050505;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.04);
    font-family: inherit;
}

textarea {
    min-height: 118px;
}

input::placeholder,
textarea::placeholder,
.authFormCard input::placeholder,
.signupWhitePage .authFormCard input::placeholder {
    color: #8b8b8b;
}

input:focus,
textarea:focus,
select:focus,
.searchBar:focus,
.authFormCard input:focus,
.signupWhitePage .authFormCard input:focus,
.chatInput textarea:focus {
    border-color: #000000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
    outline: none;
}

label,
.authLabel,
.authEyebrow,
.overlayEyebrow {
    color: #1a1a1a;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.tabs,
.authTabs {
    gap: 8px;
    padding: 6px;
    background: #eeeeeb;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.tab,
.authTab,
.signupWhitePage .authTab {
    color: #3e3e3e;
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
}

.activeTab,
.authTab.active,
.signupWhitePage .authTab.active {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.sectionHead,
.pageTopbar,
.combinedStatsTop,
.chatHeader,
.profileMainHead,
.authPanelHead,
.otpPanelHead {
    gap: 16px;
}

.dashboardHero,
.profileHero,
.dashboardSplit,
.analyticsGrid,
.adminGrid,
.gameGrid,
.moreGrid,
.grid,
.dashboardButtons,
.combinedStatsGrid,
.profileSignalGrid,
.profileActionCluster,
.referGrid,
.aboutList {
    gap: 16px;
}

.dashboardHero,
.profileHero {
    align-items: stretch;
}

.heroPanel {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 246, 244, 0.96)),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.04) 0 1px, transparent 1px 44px);
}

.heroPanel::after,
.profileTechCard::before,
.authHeroPanel::after,
.signupHeroPanel::before,
.authGlassCard::before,
.signupWhitePage .authGlassCard::before,
.signupWhitePage .signupHeroPanel::before {
    background: linear-gradient(90deg, #000000, rgba(0, 0, 0, 0.06));
}

.heroPanel h1,
.landingContent h1,
.profileIdentity h1,
.forgotCard h1,
.signupWhitePage .forgotCard h1,
.signupWhitePage .signupCard h1 {
    color: #000000;
    text-shadow: none;
}

.dashboardMetricButtons div,
.profileSignalCard,
.referMetric,
.authMetrics article,
.signupSignalGrid div,
.streakMetricCard,
.aboutList div {
    background: #f7f7f5;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    color: #111111;
}

.dashboardMetricButtons div:focus,
.dashboardMetricButtons div:hover,
.aboutList div:hover,
.referMetric:hover,
.profileSignalCard:hover {
    border-color: #000000;
    background: #ffffff;
}

.dashboardMetricButtons span,
.profileTechMetric span,
.profileSignalCard span,
.referMetric span,
.aboutList span,
.authMetrics span,
.signupSignalGrid span,
.streakMetricCard span {
    color: #6b6b6b;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.dashboardMetricButtons strong,
.profileTechMetric strong,
.profileSignalCard strong,
.referMetric strong,
.aboutList strong,
.authMetrics strong,
.signupSignalGrid strong,
.streakMetricCard strong {
    color: #000000;
}

.bar {
    height: 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #e4e4e1;
    overflow: hidden;
}

.fill {
    background: linear-gradient(90deg, #000000, #4a4a4a);
    border-radius: inherit;
}

#timer {
    color: #000000;
    font-weight: 950;
    letter-spacing: 0;
}

.landingPage {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(5, 5, 5, 0.94), rgba(21, 21, 21, 0.92)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 92px);
}

.landingShell {
    color: #ffffff;
}

.landingHero {
    min-height: calc(100vh - 72px);
}

.landingContent h1,
.landingContent p {
    color: #ffffff;
}

.landingContent p {
    color: rgba(255, 255, 255, 0.76);
}

.landingActions button:first-child {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
}

.landingActions .lightBtn {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.42);
    color: #ffffff;
}

.landingVisual,
.holoRing,
.holoCore,
.holoPanel,
.landingDock article {
    border-color: rgba(255, 255, 255, 0.22);
}

.holoRing {
    background: transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.holoCore {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.holoPanel,
.landingDock article {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    backdrop-filter: blur(18px);
}

.holoPanel span,
.landingDock span,
.landingDock p {
    color: rgba(255, 255, 255, 0.66);
}

.holoPanel strong,
.landingDock strong {
    color: #ffffff;
}

.authWrap,
.signupTechWrap,
.signupSimpleWrap,
.signupWhitePage .signupTechWrap,
.signupWhitePage .signupSimpleWrap {
    min-height: 100vh;
}

.authCard,
.signupWhitePage .authCard,
.signupWhitePage .signupWhiteCard {
    border: 1px solid rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-lg);
}

.authFormCard,
.signupWhitePage .signupWhiteCard {
    max-width: 760px;
}

.authNotice {
    border-radius: var(--radius-sm);
}

.authNotice.error {
    border: 1px solid #000000;
    background: #f4f4f2;
    color: #000000;
}

.authNotice.success {
    border: 1px solid #000000;
    background: #000000;
    color: #ffffff;
}

.otpPanel,
.signupWhitePage .otpPanel {
    background: #f8f8f6;
}

.otpPanelLocked {
    opacity: 0.66;
}

.otpPanelReady {
    background: #ffffff;
    border-color: #000000;
}

.otpBoxes .otpDigit,
.signupWhitePage .otpBoxes .otpDigit {
    aspect-ratio: 1;
    min-height: 50px;
    text-align: center;
    font-weight: 950;
}

.otpBoxes.otpComplete .otpDigit,
.signupWhitePage .otpBoxes.otpComplete .otpDigit {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.chatWhatsappShell,
.chatMain,
.chatSidebar {
    min-width: 0;
}

.chatPanel {
    background: #ffffff;
}

.chatHeader {
    background: #0a0a0a;
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 14px;
}

.chatIdentity h1,
.chatIdentity p {
    color: #ffffff;
}

.chatIdentity p {
    color: rgba(255, 255, 255, 0.68);
}

.chatIdentityIcon,
.chatAvatar {
    background: #ffffff;
    color: #000000;
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.chatBox,
.whatsappChat,
.historyTray,
.historyList {
    background:
        linear-gradient(180deg, #f7f7f5, #eeeeeb),
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px 14px);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.messageOwn .msgBody {
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

.messageOther .msgBody,
.msgBody {
    background: #ffffff;
    color: #111111;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.msgHead,
.msgTime,
.msgBtns span {
    color: inherit;
    opacity: 0.72;
}

.replyPreview {
    background: #f4f4f2;
    border-left: 4px solid #000000;
    color: #111111;
}

.chatInput,
.whatsappInput {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.assistantOrb {
    background: #000000;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.assistantOrbGlow {
    background: rgba(0, 0, 0, 0.18);
}

.assistantOrbIcon {
    background: #ffffff;
    color: #000000;
}

.profileAvatarWrap {
    border-radius: 50%;
}

.profileAvatarRing {
    border-color: #000000;
    box-shadow: none;
}

.profileAvatar {
    border: 4px solid #ffffff;
    filter: grayscale(100%);
}

.profileAvatarEdit {
    background: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.profileIdentityMeta span,
.profileActivityItem {
    background: #f4f4f2;
    border: 1px solid var(--line);
    color: #222222;
}

.profileTechMetric:last-of-type {
    border-bottom: 0;
}

.adminHintCard {
    background: #0a0a0a;
    color: #ffffff;
}

.adminHintCard h3,
.adminHintCard p {
    color: #ffffff;
}

.reviewAdminCard,
.reviewReply {
    background: #ffffff;
    border: 1px solid var(--line);
}

.reviewReply {
    border-left: 4px solid #000000;
}

table {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #ffffff;
}

th {
    background: #f1f1ef;
    color: #111111;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

td,
th {
    border-bottom: 1px solid var(--line);
}

tr:hover td {
    background: #fafaf8;
}

.previewImg,
img {
    filter: grayscale(100%);
}

.previewImg:hover,
.profileAvatar:hover,
.chatAvatar:hover {
    filter: grayscale(0%);
}

.globalBackButton {
    background: #ffffff;
    border: 1px solid var(--line-strong);
    color: #000000;
}

.streakNode {
    background: #ffffff;
    border: 1px solid var(--line);
}

.streakNode.active {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.streakTrack {
    background: #e3e3df;
}

.streakTrack span {
    background: #000000;
}

.toast {
    border-color: var(--line-strong);
}

.toastSuccess {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.toastError {
    background: #ffffff;
    border-color: #000000;
    color: #000000;
}

.swiping,
.fade {
    animation-duration: 0.42s;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

@media (max-width: 768px) {
    .content,
    .wrapper,
    .adminWrap,
    .aiWrap,
    .chatShell,
    .boardContainer,
    .landingShell,
    .authWrap {
        width: min(100% - 20px, var(--container-max));
    }

    .card,
    .miniCard,
    .profileCard,
    .statCard,
    .heroPanel,
    .authCard,
    .chatPanel,
    .combinedStatsButton,
    .profileMainCard,
    .profileTechCard {
        border-radius: var(--radius-md);
        padding: 18px;
    }

    .topbar {
        min-height: 66px;
        padding: 10px 14px;
    }

    .logo {
        font-size: 0.95rem;
        letter-spacing: 0.1em;
    }

    .tabs,
    .authTabs {
        overflow-x: auto;
        justify-content: flex-start;
    }

    .tab,
    .authTab {
        white-space: nowrap;
    }

    .landingHero {
        min-height: auto;
        padding: 30px 0;
    }

    .landingContent h1 {
        font-size: clamp(3rem, 17vw, 5rem);
    }

    .chatHeader {
        padding: 12px;
    }
}
