﻿* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

.wrap {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px;
}

.grid {
    display: grid;
    gap: 14px;
}

.card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 16px;
}

h1, h2, h3 {
    margin: 0 0 10px;
}

.sub {
    opacity: 0.9;
    margin: 0 0 10px;
}

.note, .hint {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
}

.tbl {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

    .tbl th, .tbl td {
        border-bottom: 1px solid rgba(255,255,255,0.12);
        padding: 10px 8px;
        text-align: left;
    }

.examples {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .examples li {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.10);
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

.exLeft {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .exLeft .tr {
        opacity: 0.85;
    }

.exBtns {
    display: flex;
    gap: 8px;
    align-self: start;
}

.asrOut {
    grid-column: 1 / -1;
    opacity: 0.9;
    font-size: 14px;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,0.10);
    margin-right: 8px;
}

.miss {
    text-decoration: underline;
}

.btn {
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
}

    .btn:hover {
        background: rgba(255,255,255,0.12);
    }

    .btn.mini {
        padding: 6px 10px;
        border-radius: 10px;
    }

    .btn.active {
        outline: 2px solid rgba(255,255,255,0.35);
    }

.q {
    padding: 12px;
    border-radius: 12px;
    background: rgba(0,0,0,0.18);
    margin-bottom: 10px;
}

    .q h4 {
        margin: 0 0 8px;
        font-size: 16px;
    }

.opt {
    display: block;
    width: 100%;
    text-align: left;
    margin: 8px 0;
}

.feedback {
    margin-top: 8px;
    opacity: 0.95;
}

.aiBox {
    margin-top: 10px;
    display: grid;
    gap: 10px;
}

.lbl {
    font-size: 14px;
    opacity: 0.9;
}

.select, .ta {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(0,0,0,0.20);
    color: #e5e7eb;
    padding: 10px 12px;
}

select option {
    background: rgb(23 30 44 / 87%);
}

.aiOut {
    white-space: pre-wrap;
    padding: 12px;
    border-radius: 12px;
    background: rgba(0,0,0,0.18);
    min-height: 56px;
}

.langRow {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.footer {
    opacity: 0.75;
    margin-top: 14px;
    text-align: center;
}

.gateForm {
    display: grid;
    gap: 10px;
}

.alert {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255,80,80,0.18);
    border: 1px solid rgba(255,80,80,0.25);
}

a.btn {
    text-decoration: none;
    display: inline-block;
}


@media (min-width: 860px) {
    .grid {
        grid-template-columns: 1.35fr 1fr;
    }

        .grid > section:nth-child(3) {
            grid-column: 1 / -1;
        }
}

:root {
    --accent1: #7c3aed; /* purple */
    --accent2: #22c55e; /* green */
    --accent3: #06b6d4; /* cyan */
    --accent4: #f59e0b; /* amber */
    --cardBorder: rgba(255,255,255,0.10);
    --cardGlow: rgba(124,58,237,0.18);
}

/* Background aurora */
body {
    background: radial-gradient(900px 500px at 20% 10%, rgba(124,58,237,0.25), transparent 60%), radial-gradient(800px 500px at 80% 30%, rgba(6,182,212,0.18), transparent 60%), radial-gradient(900px 650px at 60% 90%, rgba(34,197,94,0.16), transparent 60%), linear-gradient(180deg, #0b1220 0%, #070b14 100%);
    overflow-x: hidden;
}

/* A floating stars layer (behind everything) */
.bgStars {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

/* Keep your content above stars */
.wrap {
    position: relative;
    z-index: 1;
}

/* Cards: more depth and glow */
.card {
    border: 1px solid var(--cardBorder);
    box-shadow: 0 12px 35px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04) inset, 0 0 22px var(--cardGlow);
    backdrop-filter: blur(10px);
}

    /* Card hover pop */
    .card:hover {
        transform: translateY(-2px);
        transition: transform 160ms ease, box-shadow 160ms ease;
        box-shadow: 0 16px 45px rgba(0,0,0,0.42), 0 0 0 1px rgba(255,255,255,0.06) inset, 0 0 30px rgba(6,182,212,0.16);
    }

/* Buttons: gradient accent */
.btn {
    border: 1px solid rgba(255,255,255,0.18);
    background: linear-gradient(90deg, rgba(124,58,237,0.85), rgba(6,182,212,0.75));
    box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

    .btn:hover {
        filter: brightness(1.06);
    }

    /* Mini buttons: softer, but still colorful */
    .btn.mini {
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.16);
        box-shadow: none;
    }

        .btn.mini.active {
            background: linear-gradient(90deg, rgba(245,158,11,0.85), rgba(34,197,94,0.75));
            border-color: rgba(255,255,255,0.22);
        }

/* Cute header sticker (CSS only) */
.headerSticker {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: radial-gradient(circle at 30% 35%, rgba(255,255,255,0.70), rgba(255,255,255,0) 55%), linear-gradient(135deg, rgba(245,158,11,0.85), rgba(124,58,237,0.85));
    box-shadow: 0 14px 28px rgba(0,0,0,0.35), 0 0 22px rgba(245,158,11,0.20);
    position: relative;
    flex: 0 0 auto;
}

    .headerSticker::before {
        content: "★";
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        font-size: 26px;
        color: rgba(255,255,255,0.95);
        text-shadow: 0 6px 18px rgba(0,0,0,0.35);
    }

/* Dashboard grid tweak so it feels more balanced */
.grid {
    gap: 18px;
}

/* Make titles pop a bit */
h1, h2 {
    text-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

header.card {
    margin-bottom: 25px;
}

/* Cute cursor (desktop only) */
@media (hover: hover) and (pointer: fine) {
    html, body {
        cursor: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'>\
  <circle cx='12' cy='12' r='6' fill='%23ffffff' fill-opacity='0.85'/>\
  <circle cx='12' cy='12' r='3.5' fill='%237c3aed' fill-opacity='0.85'/>\
  <path d='M22 6 L24 10 L28 12 L24 14 L22 18 L20 14 L16 12 L20 10 Z' fill='%23f59e0b' fill-opacity='0.9'/>\
</svg>") 6 6, auto;
    }

    a, button, .btn, .select, input, textarea, label {
        cursor: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'>\
  <path d='M10 3 L22 15 L16.8 16.2 L19 25 L16 26 L13.8 17.2 L10 21 Z' fill='%23ffffff' fill-opacity='0.92'/>\
  <path d='M22 6 L24 10 L28 12 L24 14 L22 18 L20 14 L16 12 L20 10 Z' fill='%2306b6d4' fill-opacity='0.9'/>\
</svg>") 10 3, pointer;
    }
}

body { background: none; }

body::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 20% 10%, rgba(124,58,237,0.25), transparent 60%),
    radial-gradient(800px 500px at 80% 30%, rgba(6,182,212,0.18), transparent 60%),
    radial-gradient(900px 650px at 60% 90%, rgba(34,197,94,0.16), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #070b14 100%);
}


/* Animated aurora movement */
body::after{
  content:"";
  position: fixed;
  inset: -35%;
  z-index: -1;
  pointer-events: none;

  background:
    radial-gradient(700px 520px at 20% 20%, rgba(124,58,237,0.32), transparent 60%),
    radial-gradient(740px 560px at 80% 30%, rgba(6,182,212,0.26), transparent 60%),
    radial-gradient(900px 650px at 55% 85%, rgba(34,197,94,0.22), transparent 60%),
    radial-gradient(820px 620px at 30% 75%, rgba(245,158,11,0.18), transparent 60%);

  background-size: 140% 140%;
  background-position: 0% 0%;
  filter: blur(22px) saturate(1.35);
  opacity: 0.95;

  animation: auroraShift 10s ease-in-out infinite alternate;
  transform: translate3d(0,0,0);
}

@keyframes auroraShift{
  0%{
    background-position: 0% 0%;
    filter: blur(22px) saturate(1.35) hue-rotate(0deg);
  }
  50%{
    background-position: 55% 35%;
    filter: blur(22px) saturate(1.55) hue-rotate(14deg);
  }
  100%{
    background-position: 100% 70%;
    filter: blur(22px) saturate(1.45) hue-rotate(28deg);
  }
}

@media (prefers-reduced-motion: reduce){
  body::after{ animation: none; }
}


/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
    body::after {
        animation: none;
    }
}
