@import url("https://fonts.googleapis.com/css2?family=Changa:wght@500;700;800&family=Tajawal:wght@400;500;700;800&display=swap");

:root {
    --font-body: "Tajawal", "Segoe UI", sans-serif;
    --font-display: "Changa", "Tajawal", sans-serif;
    --ink: #18243f;
    --ink-soft: #64748b;
    --line: rgba(148, 163, 184, 0.34);
    --panel: rgba(255, 255, 255, 0.82);
    --panel-strong: rgba(255, 255, 255, 0.94);
    --cream: #fff8ea;
    --mango: #ffb703;
    --strawberry: #ff8fab;
    --mint: #7ad9c2;
    --amber-soft: #fffbeb;
    --rose-soft: #ffe4e6;
    --emerald-soft: #d1fae5;
    --shadow: 0 20px 45px rgba(24, 36, 63, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(1200px 520px at 10% -10%, #ffe5c7 0%, transparent 60%),
        radial-gradient(1000px 500px at 100% 0%, #ffd6e0 0%, transparent 58%),
        radial-gradient(850px 420px at 20% 110%, #cbf0ff 0%, transparent 60%),
        var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
select {
    font: inherit;
}

a {
    color: inherit;
}

.site-page {
    min-height: 100vh;
    padding: 20px 16px 28px;
    position: relative;
    z-index: 1;
}

.site-container {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.site-card {
    background: var(--panel);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    border-radius: 32px;
}

.site-dashboard-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}

.site-dashboard-hero::before,
.site-dashboard-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(28px);
    pointer-events: none;
}

.site-dashboard-hero::before {
    width: 130px;
    height: 130px;
    top: -36px;
    right: -28px;
    background: rgba(255, 209, 102, 0.45);
}

.site-dashboard-hero::after {
    width: 120px;
    height: 120px;
    left: 36px;
    bottom: -52px;
    background: rgba(122, 217, 194, 0.3);
}

.site-title,
.hero-heading,
.section-heading,
.side-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 800;
}

.site-title {
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    line-height: 1.15;
}

.site-subtitle {
    margin: 6px 0 0;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

.brand-pill,
.chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 800;
}

.brand-pill {
    padding: 0.45rem 0.8rem;
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #9a3412;
    background: linear-gradient(120deg, #ffe8a3, #ffc9de 60%, #b8f2e6);
}

.site-dashboard-hero__copy {
    display: grid;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.chip {
    padding: 0.38rem 0.82rem;
    font-size: 0.72rem;
    border: 1px solid rgba(146, 166, 196, 0.45);
    background: rgba(255, 255, 255, 0.72);
}

.session-tools {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.session-user {
    padding: 0.6rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.95);
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
}

.page-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.page-stack {
    display: grid;
    gap: 20px;
}

.hero-card,
.side-card,
.content-card {
    padding: 28px;
}

.hero-heading {
    margin-top: 18px;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

.accent-text {
    color: #ff6b6b;
}

.hero-copy,
.body-copy,
.step-copy,
.detail-copy {
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 500;
}

.chip-row,
.button-row,
.badge-row,
.toolbar-row,
.time-slot-grid,
.info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chip-row {
    margin-top: 24px;
}

.button-row {
    margin-top: 28px;
}

.button-primary,
.button-secondary,
.button-tertiary,
.answer-button {
    border: 0;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, opacity 0.18s ease;
}

.button-primary,
.button-secondary,
.button-tertiary {
    padding: 14px 18px;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 800;
}

.button-primary {
    background: #0f172a;
    color: #fff;
}

.button-secondary,
.button-tertiary {
    border: 1px solid var(--line);
    color: #475569;
    background: rgba(255, 255, 255, 0.94);
}

.button-compact {
    padding: 10px 14px;
    font-size: 0.9rem;
}

.button-primary:hover,
.button-secondary:hover,
.button-tertiary:hover,
.answer-button:hover {
    transform: translateY(-1px);
}

.button-primary[disabled],
.button-secondary[disabled],
.button-tertiary[disabled],
.answer-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.side-title,
.section-heading {
    font-size: 2rem;
    line-height: 1.15;
}

.step-list {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.step-card,
.mini-card,
.context-card,
.result-card {
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.step-label,
.mini-label,
.result-label,
.context-label {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff7d00;
}

.step-copy,
.status-note,
.detail-copy {
    margin: 8px 0 0;
}

.status-note {
    margin-top: 20px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
}

.message {
    margin: 0;
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
}

.error-message {
    color: #be123c;
    background: var(--rose-soft);
}

.success-message {
    color: #047857;
    background: var(--emerald-soft);
}

.info-message {
    color: #92400e;
    background: var(--amber-soft);
}

.progress-card {
    padding: 18px;
}

.progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.quiz-progress {
    position: relative;
    height: 13px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(190, 209, 239, 0.8);
}

.quiz-progress__bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mango), var(--strawberry), #7f5af0);
    box-shadow: 0 8px 20px rgba(255, 132, 165, 0.55);
    transition: width 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.content-card {
    display: grid;
    gap: 18px;
}

.body-copy {
    margin: 0;
}

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

.context-card--wide {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.select-control {
    width: 100%;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    color: #334155;
    outline: none;
}

.time-slot-button {
    min-width: 126px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: #fff;
    color: #475569;
    font-size: 0.92rem;
    font-weight: 800;
}

.time-slot-button.is-active {
    border-color: #ff8fab;
    color: #9f1239;
    background: #ffe6ef;
}

.answer-list {
    display: grid;
    gap: 14px;
}

.answer-button {
    width: 100%;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    text-align: right;
}

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

.answer-text {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.7;
}

.answer-pick {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.answer-button:hover {
    border-color: #ff9e6d;
    background: #fff4ea;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.1);
}

.answer-button:hover .answer-pick {
    background: #ffd4b4;
    color: #9a3412;
}

.result-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1.1;
}

.result-name {
    margin: 0;
    color: #e85d75;
    font-size: clamp(1.7rem, 4vw, 2.3rem);
    font-weight: 800;
}

.toolbar-row {
    align-items: center;
}

.detail-block {
    border-radius: 22px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.is-hidden {
    display: none !important;
}

@media (max-width: 900px) {
    .page-grid,
    .context-grid {
        grid-template-columns: 1fr;
    }

    .site-dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}
