/* ── Tokens ── */
:root {
    --green: #1a7a3c;
    --green-dark: #145f2e;
    --green-light: #e8f5ee;
    --amber: #f5a623;
    --amber-light: #fff8ec;
    --slate: #1a1f2e;
    --slate-mid: #4a5568;
    --muted: #8a96a8;
    --bg: #f4f6f9;
    --surface: #ffffff;
    --border: #e8ecf1;
    --danger: #e53935;
    --font-display: "Barlow Condensed", sans-serif;
    --font-body: "Inter", sans-serif;
    --header-h: 60px;
    --nav-h: 64px;
    --shell-w: 430px;
}

/* ── Reset & base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #777777; /* desktop gutters */
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--slate);
    -webkit-font-smoothing: antialiased;
}
#app-title {
    font-size: 24px;
    letter-spacing: 0.2em;
    color: #d3e7ff;
    text-decoration: none;
}
.text-shadow-drop-center {
    -webkit-animation: text-shadow-drop-center 0.6s both;
    animation: text-shadow-drop-center 0.6s both;
}

.color-blue {
    color: #073e6a !important;
}
/* ----------------------------------------------
 * Generated by Animista on 2026-6-13 16:27:4
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * @animation text-shadow-drop-center
 * ----------------------------------------
 */
@-webkit-keyframes text-shadow-drop-center {
    0% {
        text-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
    }
    100% {
        text-shadow: 0 0 18px rgba(156, 183, 224, 0.8);
    }
}
@keyframes text-shadow-drop-center {
    0% {
        text-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
    }
    100% {
        text-shadow: 0 0 18px rgba(156, 183, 224, 0.8);
    }
}

/* ── Phone shell — centres the app on desktop ── */
#app-shell {
    position: relative;
    width: 100%;
    max-width: var(--shell-w);
    min-height: 95dvh;
    margin: 0 auto;
    background: #0c2e4a;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── Top header ── */
#app-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--shell-w);
    height: var(--header-h);
    background: #0f3a5e;
    border-bottom: 1px solid #54778a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 100;
}
.bg-mblue {
    background: #0f3a5e;
}
.card-greyish {
    position: relative;
}

.card-greyish::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 30, 30, 0.5);
    pointer-events: none;
}

.app-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--slate);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.app-logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0052b1;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-body);
    letter-spacing: 0.06em;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #c8e2ff;
    border: 2px solid #0052b1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #0052b1;
    text-decoration: none;
    flex-shrink: 0;
}

/* ── Main content area ── */
#app-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding-top: var(--header-h);
    padding-bottom: calc(var(--nav-h) + 8px);
}

.page-inner {
    padding: 16px 16px 8px;
}

/* ── Flash messages ── */
.flash-stack {
    padding: 12px 16px 0;
}

.flash-item {
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

.flash-item.success {
    background: var(--green-light);
    color: var(--green-dark);
}
.flash-item.error {
    background: #fdecea;
    color: var(--danger);
}
.flash-item.warning {
    background: var(--amber-light);
    color: #8a6000;
}
.flash-item.info {
    background: #e8f0fe;
    color: #1a56c4;
}

/* ── Bottom nav ── */
#app-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--shell-w);
    height: var(--nav-h);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: stretch;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.nav-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    position: relative;
    transition: color 160ms ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-tab i {
    font-size: 22px;
    line-height: 1;
    transition: transform 160ms ease;
}

.nav-tab:hover {
    color: var(--slate-mid);
}

/* Signature: sliding green underline (VAR line) */
.nav-tab::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 28px;
    height: 3px;
    background: #083255;
    border-radius: 0 0 3px 3px;
    transition: transform 200ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-tab.active {
    color: #083255;
}

.nav-tab.active::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-tab.active i {
    transform: translateY(-1px);
}

/* ── Shared card style ── */
.app-card {
    background: var(--surface);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 12px;
}

.app-card-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ── Section title ── */
.section-title {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 800;
    color: var(--slate);
    letter-spacing: -0.01em;
    margin: 0 0 4px;
    line-height: 1.1;
}

.section-sub {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 16px;
}

/* ── Amber accent pill ── */
.pill-amber {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--amber);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    font-family: var(--font-body);
}

/* ── Green CTA button ── */
.btn-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #0052b1;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 13px 20px;
    width: 100%;
    cursor: pointer;
    transition:
        background 140ms ease,
        transform 100ms ease;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.btn-app:hover {
    background: var(--green-dark);
    color: #fff;
}
.btn-app:active {
    transform: scale(0.98);
}

.btn-app-outline {
    background: transparent;
    border: 1.5px solid #0052b1;
    color: #0052b1;
}

.btn-app-outline:hover {
    background: var(--green-light);
    color: #0052b1;
}

/* ── Desktop hint bar above shell ── */
.desktop-hint {
    display: none;
    text-align: center;
    font-size: 11px;
    color: #8a96a8;
    padding: 12px 0 6px;
    font-family: var(--font-body);
    letter-spacing: 0.04em;
}

@media (min-width: 500px) {
    .desktop-hint {
        display: block;
    }
}

.btn-predict {
    background: linear-gradient(135deg, #0052b1, #0077ff);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 82, 177, 0.25);
    transition: all 0.25s ease;
}

.btn-predict:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 82, 177, 0.35);
    color: white;
}

.btn-predict:active {
    transform: translateY(0);
}

.btn-predict:focus {
    box-shadow: 0 0 0 4px rgba(0, 82, 177, 0.2);
}

/* HERO SECTION */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    background: radial-gradient(circle at top, #ffffff 0%, #eef4ff 100%);
}

.hero-content {
    max-width: 700px;
}

/* TITLE */
.hero h1 {
    font-size: 42px;
    color: #0052b1;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

/* TEXT */
.hero p {
    font-size: 18px;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* MAIN BUTTON */
.btn-hero {
    display: inline-block;
    background: linear-gradient(135deg, #0052b1, #007bff);
    color: white;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 82, 177, 0.25);
    transition: all 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-3px);
    color: #adbef7;

    box-shadow: 0 14px 35px rgba(0, 82, 177, 0.35);
}

/* LOGIN TEXT */
.login-text {
    margin-top: 20px;
    font-size: 14px;
    color: #555;
}

.login-text a {
    color: #0052b1;
    font-weight: 600;
    text-decoration: none;
}

.login-text a:hover {
    text-decoration: underline;
}

.premium-card {
    position: relative;
    background: #111827;
    color: white;
    border-radius: 10px 10px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
    z-index: 1;
}
.footer-card {
    border-radius: 0 0 10px 10px !important;
}

.premium-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;

    background: linear-gradient(90deg, #0c9da7, #0c9da7);
    filter: blur(10px);
    opacity: 0.35;
    z-index: -1;
}
.card-body-dark {
    background: linear-gradient(145deg, #132741 0%, #111827 55%, #111e49 100%);
    border-radius: inherit;
}
