:root {
    --bg: #070A12;
    --card: rgba(255, 255, 255, 0.06);
    --card-2: rgba(255, 255, 255, 0.08);
    --card-border: rgba(255, 255, 255, 0.12);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.68);
    --shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
    --radius: 18px;

    --accentA: rgba(120, 80, 255, 1);
    --accentB: rgba(0, 220, 255, 1);

    --danger: rgba(255, 90, 120, 1);
    --success: rgba(60, 220, 150, 1);
}
/* =========================
   Navbar (premium glass)
========================= */
.navbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,10,18,0.65);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner{
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo{
  font-weight: 800;
  letter-spacing: -0.3px;
  font-size: 18px;
}
.logo-accent{
  text-decoration: none;
}

.nav-links{
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links a{
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}
.nav-links a:hover{
  color: rgba(255,255,255,1);
}

/* Small button variant */
.btn.small{
  padding: 8px 12px;
  font-size: 13px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* Optional: make links consistent */
a {
    color: inherit;
}

/* =========================
   Global premium background wrapper
   Put your page content inside <section class="page"> ... </section>
========================= */
.page {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 20px;
    background:
        radial-gradient(1200px 600px at 20% 10%, rgba(120, 80, 255, 0.25), transparent 55%),
        radial-gradient(900px 500px at 80% 30%, rgba(0, 220, 255, 0.18), transparent 55%),
        radial-gradient(900px 500px at 70% 80%, rgba(255, 110, 180, 0.14), transparent 55%),
        var(--bg);
    overflow: hidden;
}

.page-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 30% 30%, black 0%, transparent 60%);
    opacity: 0.25;
}

.blob {
    position: absolute;
    width: 520px;
    height: 520px;
    filter: blur(60px);
    opacity: 0.55;
    border-radius: 999px;
}

.blob-1 {
    left: -160px;
    top: -140px;
    background: rgba(120, 80, 255, 0.75);
}

.blob-2 {
    right: -200px;
    bottom: -160px;
    background: rgba(0, 220, 255, 0.55);
}

/* =========================
   Buttons
========================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border 0.15s ease, opacity .15s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn.primary {
    background: linear-gradient(135deg, var(--accentA), var(--accentB));
    color: #061018;
    box-shadow: 0 14px 40px rgba(0, 220, 255, 0.18);
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 55px rgba(0, 220, 255, 0.22);
}

.btn.ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: var(--text);
}

.btn.ghost:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.09);
}

.btn.block {
    width: 100%;
}

/* =========================
   Cards + forms (login/signup)
========================= */
.shell {
    width: min(1100px, 100%);
    position: relative;
    z-index: 1;
}

.card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-pad {
    padding: 22px;
}

.card-title {
    font-size: 22px;
    letter-spacing: -0.3px;
    margin: 0 0 6px;
}

.card-subtitle {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.5;
    font-size: 14.5px;
}

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

.input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.20);
    color: var(--text);
    outline: none;
}

.input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.input:focus {
    border-color: rgba(0, 220, 255, 0.40);
    box-shadow: 0 0 0 3px rgba(0, 220, 255, 0.10);
}

.helper-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.small-link {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 13px;
    opacity: 0.9;
}

.small-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Flash messages (if your base.html renders them) */
.flash {
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13.5px;
    line-height: 1.4;
}

.flash.error {
    border-color: rgba(255, 90, 120, 0.35);
    background: rgba(255, 90, 120, 0.10);
}

.flash.success {
    border-color: rgba(60, 220, 150, 0.30);
    background: rgba(60, 220, 150, 0.10);
}

/* =========================
   Landing (your existing landing styles, kept)
========================= */
.landing {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 20px;
    background:
        radial-gradient(1200px 600px at 20% 10%, rgba(120, 80, 255, 0.25), transparent 55%),
        radial-gradient(900px 500px at 80% 30%, rgba(0, 220, 255, 0.18), transparent 55%),
        radial-gradient(900px 500px at 70% 80%, rgba(255, 110, 180, 0.14), transparent 55%),
        var(--bg);
    color: var(--text);
    overflow: hidden;
}

.landing-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.landing-inner {
    width: min(1150px, 100%);
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 42px;
    align-items: center;
    z-index: 1;
}

.pill {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.2px;
}

.hero-title {
    margin: 16px 0 10px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.05;
    letter-spacing: -0.7px;
}

.hero-highlight {
    display: block;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 600;
    margin-top: 10px;
}

.hero-subtitle {
    margin: 0 0 22px;
    font-size: 16.5px;
    color: var(--muted);
    line-height: 1.6;
    max-width: 54ch;
}

.hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.hero-stats {
    display: flex;
    gap: 18px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.stat {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-num {
    font-weight: 800;
    font-size: 16px;
}

.stat-label {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 4px;
}

.preview-card {
    position: relative;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.preview-top {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.18);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    opacity: 0.9;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.preview-title {
    margin-left: 8px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.75);
}

.preview-body {
    padding: 16px;
}

.msg {
    display: flex;
    margin: 10px 0;
}

.msg.user {
    justify-content: flex-end;
}

.msg.bot {
    justify-content: flex-start;
}

.bubble {
    max-width: 92%;
    padding: 12px 12px;
    border-radius: 14px;
    line-height: 1.5;
    font-size: 13.5px;
}

.msg.user .bubble {
    background: rgba(120, 80, 255, 0.22);
    border: 1px solid rgba(120, 80, 255, 0.35);
}

.msg.bot .bubble {
    background: rgba(0, 220, 255, 0.12);
    border: 1px solid rgba(0, 220, 255, 0.20);
}

.mini-cards {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.mini {
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.76);
}

.floating-badge {
    position: absolute;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12.5px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    animation: floaty 4.6s ease-in-out infinite;
}

.badge-1 {
    top: 22px;
    right: 22px;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 18px;
    left: 26px;
    animation-delay: 1s;
}

.badge-3 {
    top: 55%;
    right: -6px;
    animation-delay: 2s;
}

@keyframes floaty {

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

    50% {
        transform: translateY(-8px);
    }
}

/* =========================
   Chat page premium UI
========================= */
.chat-shell {
    width: min(1100px, 100%);
    position: relative;
    z-index: 1;
}

.chat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.chat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.18);
}

.chat-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chat-title h2 {
    margin: 0;
    font-size: 16px;
    letter-spacing: -0.2px;
}

.chat-title p {
    margin: 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.68);
}

.chat-box {
    height: 520px;
    overflow: auto;
    padding: 16px;
}

.message {
    margin: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.message strong {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.65);
}

.message.user {
    align-items: flex-end;
}

.message.bot {
    align-items: flex-start;
}

.message .bubble {
    width: fit-content;
    max-width: min(760px, 92%);
    padding: 12px 12px;
    border-radius: 14px;
    line-height: 1.55;
    font-size: 13.5px;
}

.message.user .bubble {
    background: rgba(120, 80, 255, 0.22);
    border: 1px solid rgba(120, 80, 255, 0.35);
}

.message.bot .bubble {
    background: rgba(0, 220, 255, 0.12);
    border: 1px solid rgba(0, 220, 255, 0.20);
}

.chat-form {
    display: flex;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(0, 0, 0, 0.18);
}

.chat-form input {
    flex: 1;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.20);
    color: var(--text);
    outline: none;
}

.chat-form input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.chat-form input:focus {
    border-color: rgba(0, 220, 255, 0.40);
    box-shadow: 0 0 0 3px rgba(0, 220, 255, 0.10);
}

@media (max-width: 980px) {
    .landing-inner {
        grid-template-columns: 1fr;
    }

    .hero-right {
        order: 2;
    }

    .hero-left {
        order: 1;
    }

    .badge-3 {
        display: none;
    }

    .chat-box {
        height: 60vh;
    }
}