/* Baank design system — colour tokens and shared component styles */

:root {
    --f-accent:          #1A9A87;
    --f-accent-rgb:      26, 154, 135;
    --f-indigo:          #5B6BA0;
    --f-indigo-rgb:      91, 107, 160;
    --f-red:             #EB6060;
    --f-red-rgb:         235, 96, 96;
    --f-green:           #3A9B72;
    --f-green-rgb:       58, 155, 114;
    --f-amber:           #FBAB2E;
    --f-amber-rgb:       251, 171, 46;

    --f-grouped-bg:      #F2F2F7;
    --f-secondary-bg:    #FFFFFF;
    --f-secondary-label: #8E8E93;
    --f-tertiary-label:  #C7C7CC;
    --f-separator:       #E5E5EA;
    --f-label:           #1C1C1E;
}

/* Card */
.f-card {
    background: var(--f-secondary-bg);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.02);
}

/* Pill badge */
.f-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Primary button */
.f-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 14px;
    background: var(--f-accent);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}
.f-btn:hover   { background: #178a78; color: #fff; }
.f-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Section header */
.f-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--f-secondary-label);
}
.f-section-header a {
    font-weight: 400;
    color: var(--f-accent);
    text-decoration: none;
}

/* Icon circle */
.f-icon-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
}

/* Bottom tab bar */
.f-tab-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--f-separator);
    display: flex;
    justify-content: space-around;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    z-index: 1000;
}
.f-tab-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: var(--f-tertiary-label);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    flex: 1;
    padding: 2px 0;
    transition: color 0.15s;
}
.f-tab-bar a.active {
    color: var(--f-accent);
}
.f-tab-bar a i {
    font-size: 1.35rem;
}

/* Mobile-first centering — app never wider than 430px */
.f-app-frame {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100dvh;
    background: var(--f-grouped-bg);
    position: relative;
}

/* Progress bar track */
.f-progress-track {
    height: 6px;
    border-radius: 999px;
    background: rgba(var(--f-accent-rgb), 0.1);
    overflow: hidden;
}
.f-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--f-accent), var(--f-green));
    transition: width 0.4s ease;
}
