:root {
    --ft-radius-lg: 28px;
    --ft-radius-md: 20px;
    --ft-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
    --ft-bg: #f6f8fc;
    --ft-card: #ffffff;
    --ft-text: #0f172a;
    --ft-muted: #64748b;
    --ft-primary: #1d4ed8;
    --ft-accent: #f59e0b;
}

body {
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 34%),
        linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
    color: var(--ft-text);
    font-family: "Plus Jakarta Sans", sans-serif;
    min-height: 100vh;
}

a {
    text-decoration: none;
}

.app-navbar {
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
}

.shadow-soft,
.metric-card,
.fun-card,
.hero-card,
.auth-card,
.info-card,
.child-metric {
    box-shadow: var(--ft-shadow);
}

.hero-card,
.metric-card,
.fun-card,
.auth-card,
.info-card,
.sidebar-card {
    border-radius: var(--ft-radius-lg);
    background: var(--ft-card);
}

.metric-card,
.child-metric {
    padding: 1.25rem;
    height: 100%;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.metric-icon,
.feature-icon,
.child-metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.metric-label,
.child-metric-label,
.tiny-label {
    color: var(--ft-muted);
    font-size: 0.875rem;
}

.metric-value,
.child-metric-value {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.eyebrow-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.auth-page .auth-card,
.auth-page .info-card {
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.form-control,
.form-select {
    border: 1px solid #dbe3ef;
    padding: 0.9rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border: 0;
}

.btn-primary:hover {
    filter: brightness(1.03);
}

.empty-state {
    padding: 1.4rem;
    border-radius: 24px;
    border: 1px dashed rgba(148, 163, 184, 0.6);
    color: var(--ft-muted);
    text-align: center;
    background: rgba(248, 250, 252, 0.7);
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 24px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
}

.blueprint-step {
    padding: 1rem;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.9);
    height: 100%;
}

.timeline-list {
    display: grid;
    gap: 1rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 0.9rem;
    align-items: start;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    margin-top: 0.35rem;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.12);
}

.goal-track {
    width: 100%;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
    overflow: hidden;
}

.goal-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #eab308);
}

.animate-in {
    animation: floatIn 0.55s ease both;
}

.wallet-pocket {
    padding: 1rem;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.95);
    text-align: center;
}

.wallet-pocket-label {
    font-size: 0.85rem;
    color: var(--ft-muted);
}

.wallet-pocket-value {
    font-size: 1rem;
    font-weight: 800;
    margin-top: 0.35rem;
}

.login-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    background: #e2e8f0;
}

.mini-activity-list {
    display: grid;
    gap: 0.9rem;
}

.mini-activity-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

.mini-activity-badge {
    min-width: 74px;
    text-align: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #dbeafe;
    color: #1d4ed8;
}

.avatar-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.9rem;
}

.avatar-picker-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #f8fafc;
    text-align: center;
    cursor: pointer;
}

.avatar-picker-card:has(input:checked) {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.1);
    background: #eff6ff;
}

.avatar-picker-emoji {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: #1d4ed8;
    background: #dbeafe;
}

.avatar-picker-name {
    font-size: 0.85rem;
    font-weight: 700;
}

.child-list {
    display: grid;
    gap: 1rem;
}

.child-summary-card {
    padding: 1rem;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: #f8fafc;
}

.proof-preview-card,
.proof-review-card {
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(191, 219, 254, 0.9);
    background: linear-gradient(180deg, #ffffff, #eff6ff);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.08);
}

.proof-preview-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.proof-preview-title {
    font-weight: 700;
    color: #1e3a8a;
}

.proof-preview-name {
    font-size: 0.82rem;
    color: #475569;
    word-break: break-word;
}

.proof-preview-image,
.proof-review-image {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(191, 219, 254, 0.8);
    background: #dbeafe;
}

.avatar-preview {
    width: 56px;
    height: 56px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed, #3b82f6);
}

.guide-hero {
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.18), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 50%, #eef6ff 100%);
}

.guide-highlight {
    padding: 1.25rem;
    border-radius: 24px;
    background: linear-gradient(135deg, #eff6ff, #fff7ed);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.guide-highlight-icon,
.guide-role-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 0.85rem;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
}

.guide-role-card {
    height: 100%;
    padding: 1.5rem;
    border-radius: 28px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: var(--ft-shadow);
}

.guide-role-card.parent {
    background: linear-gradient(135deg, #ffffff, #eef5ff);
}

.guide-role-card.child {
    background: linear-gradient(135deg, #fffef2, #fff3f8);
}

.guide-steps {
    display: grid;
    gap: 1rem;
}

.guide-step {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    border-radius: 22px;
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.95);
}

.playful-step {
    background: linear-gradient(135deg, #fffdf2, #ffffff);
}

.guide-step-number {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.guide-tip {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 0.95rem;
    font-weight: 500;
}

.guide-tip i {
    font-size: 1.1rem;
}

.guide-tip.child-tip {
    background: #fff7ed;
    color: #9a3412;
}

.guide-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.guide-flow-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
    border: 1px solid rgba(191, 219, 254, 0.9);
}

.guide-flow-arrow {
    color: #94a3b8;
    font-size: 1rem;
}

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

@media (max-width: 767.98px) {
    .display-5,
    .display-6 {
        font-size: 2.15rem;
    }

    .guide-flow {
        align-items: stretch;
    }

    .guide-flow-arrow {
        display: none;
    }
}
