:root {
    --ft-bg: #eef6fc;
    --ft-bg-soft: #dceef8;
    --ft-card: #ffffff;
    --ft-primary: #ff8c00;
    --ft-primary-2: #ffb347;
    --ft-primary-3: #ffd08a;
    --ft-accent: #fff7ed;
    --ft-deep: #1e3a5f;
    --ft-success: #22C55E;
    --ft-warning: #F59E0B;
    --ft-danger: #EF4444;
    --ft-text: #1a2b4a;
    --ft-text-sec: #64748b;
    --ft-border: rgba(30, 58, 95, 0.12);
    --ft-shadow: 0 12px 32px rgba(30, 58, 95, 0.1);
    --ft-shadow-lg: 0 20px 48px rgba(30, 58, 95, 0.16);
    --ft-radius: 18px;
    --ft-grad: linear-gradient(90deg, #ff8c00 0%, #ffb347 100%);
    --ft-grad-soft: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    --ft-navy: #1e3a5f;
    --ft-navy-deep: #152a45;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overscroll-behavior-y: auto; }
body {
    margin: 0;
    padding: 0;
    background: var(--ft-bg) !important;
    background-image: linear-gradient(180deg, #f4f9fd 0%, #eef6fc 100%);
    background-attachment: fixed;
    font-family: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: var(--ft-text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body::before, body::after { display: none !important; }
a { text-decoration: none; color: inherit; }
.ft-main {
    padding: 8px 16px 110px;
    max-width: 540px;
    margin: 0 auto;
    min-height: 100vh;
}
.ft-card {
    background: var(--ft-card);
    border-radius: var(--ft-radius);
    box-shadow: var(--ft-shadow);
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid var(--ft-border);
}
.ft-card-title { font-size: 15px; font-weight: 800; color: var(--ft-deep); margin: 0 0 16px; letter-spacing: -.01em; }
.ft-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform .3s ease, box-shadow .3s ease;
}
.ft-btn-primary { background: var(--ft-grad); color: #fff; box-shadow: 0 8px 22px rgba(255, 140, 0, .32); }
.ft-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(255, 140, 0, .4); color: #fff; }
.ft-btn-block { width: 100%; }
.ft-form-group { margin-bottom: 16px; }
.ft-label { display: block; font-size: 13px; font-weight: 700; color: var(--ft-text); margin-bottom: 6px; }
.ft-input, .ft-select {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--ft-border);
    border-radius: 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--ft-text);
    background: var(--ft-bg-soft);
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
    outline: none;
}
.ft-input:focus, .ft-select:focus { border-color: var(--ft-primary); box-shadow: 0 0 0 4px rgba(249, 115, 22, .2); background: #fff; }
.ft-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }
.ft-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ft-table th { padding: 13px 16px; text-align: left; font-weight: 700; color: var(--ft-text-sec); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; background: var(--ft-grad-soft); border-bottom: 1px solid var(--ft-border); white-space: nowrap; }
.ft-table td { padding: 13px 16px; border-bottom: 1px solid var(--ft-border); color: var(--ft-text); white-space: nowrap; }
.ft-table tr:last-child td { border-bottom: none; }
.ft-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; }
.ft-badge-success { background: #DCFCE7; color: #16A34A; }
.ft-badge-danger { background: #FEE2E2; color: #DC2626; }
.ft-badge-warning { background: #FEF3C7; color: #D97706; }
.ft-badge-info { background: var(--ft-bg-soft); color: var(--ft-deep); }

/* ===== Curved bottom nav — exact reference shape ===== */
.ft-bottom-nav {
    --ft-bar: #2d2d2d;
    --ft-bubble: #d4ff33;
    --ft-nav-cut: #eef6fc;
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 28px);
    max-width: 400px;
    z-index: 99;
    height: 70px;
    bottom: max(18px, env(safe-area-inset-bottom));
    border-radius: 15px;
    background: var(--ft-bar);
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    gap: 0;
    overflow: visible;
}
body:has(.fd-page) .ft-bottom-nav,
body:has(.pl-page) .ft-bottom-nav,
body:has(.pm-page) .ft-bottom-nav,
body:has(.ipr-wrap) .ft-bottom-nav {
    --ft-nav-cut: #e8f4dc;
}

/* Lime bubble: half above bar, page-bg border = visible gap/cutout */
.ft-nav-indicator {
    position: absolute;
    top: -50%;
    left: 0;
    width: 70px;
    height: 70px;
    background: var(--ft-bubble);
    border-radius: 50%;
    border: 6px solid var(--ft-nav-cut);
    box-sizing: border-box;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.5s;
    transform: translateX(0);
}

/* Soft U-scoop ears — exact classic geometry */
.ft-nav-indicator::before,
.ft-nav-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: transparent;
    pointer-events: none;
}
.ft-nav-indicator::before {
    left: -22px;
    border-top-right-radius: 20px;
    box-shadow: 0 -10px 0 0 var(--ft-nav-cut);
}
.ft-nav-indicator::after {
    right: -22px;
    border-top-left-radius: 20px;
    box-shadow: 0 -10px 0 0 var(--ft-nav-cut);
}

.ft-bottom-nav.is-nav-init .ft-nav-indicator,
.ft-bottom-nav.is-nav-init .ft-nav-ico {
    transition: none !important;
}
.ft-bottom-nav.is-nav-idle .ft-nav-indicator {
    opacity: 0;
    visibility: hidden;
}

.ft-nav-item {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    height: 100%;
    min-width: 0;
    padding: 0;
    text-decoration: none;
    color: #fff;
}
.ft-nav-item:hover { color: #fff; }

.ft-nav-ico {
    position: relative;
    display: block;
    text-align: center;
    width: 100%;
    line-height: 70px;
    transition: transform 0.5s;
}
.ft-nav-item i {
    font-size: 1.5em;
    line-height: 1;
    color: #fff;
    opacity: 0.85;
    transition: color 0.5s, opacity 0.5s;
}
.ft-nav-item.active .ft-nav-ico {
    transform: translateY(-37px);
}
.ft-nav-item.active i {
    color: #1a1a1a;
    opacity: 1;
}

/* Icon-only like reference */
.ft-nav-lbl {
    display: none;
}
.ft-page-title { font-size: 22px; font-weight: 800; color: var(--ft-deep); margin: 0 0 4px; letter-spacing: -.02em; }
.ft-page-subtitle { font-size: 13px; color: var(--ft-text-sec); margin: 0 0 20px; font-weight: 500; }
.pagination { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; padding: 16px 0; }
.pagination .page-item .page-link { border-radius: 12px; border: 1px solid var(--ft-border); color: var(--ft-text); padding: 9px 14px; font-size: 13px; font-weight: 600; background: var(--ft-card); }
.pagination .page-item.active .page-link { background: var(--ft-grad); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(255, 140, 0, .3); }
.ft-text-success { color: var(--ft-success) !important; }
.ft-text-danger { color: var(--ft-danger) !important; }
.ft-text-primary { color: var(--ft-primary) !important; }
.ft-text-sec { color: var(--ft-text-sec) !important; }
@media (max-width: 768px) {
    .ft-main { padding: 8px 14px 110px; }
    .ft-card { padding: 16px; }
}
@media (max-width: 480px) {
    body { background-attachment: scroll; }
}
@media (max-width: 380px) {
    .ft-bottom-nav {
        width: calc(100% - 20px);
        height: 64px;
        border-radius: 14px;
    }
    .ft-nav-ico { line-height: 64px; }
    .ft-nav-item i { font-size: 1.35em; }
    .ft-nav-indicator {
        width: 64px;
        height: 64px;
        border-width: 5px;
    }
    .ft-nav-indicator::before,
    .ft-nav-indicator::after {
        width: 18px;
        height: 18px;
    }
    .ft-nav-indicator::before {
        left: -20px;
        border-top-right-radius: 18px;
        box-shadow: 0 -9px 0 0 var(--ft-nav-cut);
    }
    .ft-nav-indicator::after {
        right: -20px;
        border-top-left-radius: 18px;
        box-shadow: 0 -9px 0 0 var(--ft-nav-cut);
    }
    .ft-nav-item.active .ft-nav-ico { transform: translateY(-34px); }
}

@media (prefers-reduced-motion: reduce) {
    .ft-btn,
    .ft-nav-item,
    .ft-nav-indicator,
    .ft-nav-ico {
        transition-duration: .01ms !important;
        animation: none !important;
    }
}
