.fk-day-action {
    margin: 0;
}

.fk-day-action input {
    display: none;
}

.fk-day-start {
    border: 0;
    border-radius: 10px;
    min-width: 118px;
    padding: 12px 18px;
    background: var(--fk-orange);
    color: #272017;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 5px 12px rgba(255, 159, 67, .25);
}

.fk-day-status { min-width: 94px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 11px; border-radius: 999px; font-size: 12px; font-style: normal; font-weight: 800; }
.fk-day-done { background: #e4f7ef; color: var(--fk-dark); }
.fk-day-locked { background: #f2f5f4; color: var(--fk-muted); }
.fk-main > p:empty,
.fk-main > p:has(> br:only-child) { display: none !important; }
.entry-title, .wp-block-post-title, .page-header { display: none !important; }
.fk-main { padding-bottom: 76px; }
.fk-program-link { margin-bottom: 12px; }
.fk-success { transition: opacity .35s ease, transform .35s ease; }
.fk-success.fk-hide { opacity: 0; transform: translateY(-6px); }
.fk-graduate { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; margin-bottom: 14px; background: linear-gradient(135deg,#fff8e8,#fff); border-color: #f0d794; }
.fk-graduate > span { font-size: 42px; }
.fk-graduate p { color: #98721a; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.fk-graduate h2 { margin: 3px 0; }
.fk-cert-locked { max-width: 560px; margin: 30px auto; text-align: center; }
.fk-cert-locked > span { font-size: 48px; }
.fk-certificate-wrap { max-width: 900px; margin: auto; }
.fk-certificate { position: relative; overflow: hidden; text-align: center; padding: 54px 60px; background: #fffdf7; border: 10px double #d2aa47; box-shadow: 0 18px 45px rgba(49,39,13,.12); }
.fk-certificate:before,.fk-certificate:after { content:""; position:absolute; width:170px; height:170px; border:2px solid #e7ca80; transform:rotate(45deg); }
.fk-certificate:before { left:-100px; top:-100px; }
.fk-certificate:after { right:-100px; bottom:-100px; }
.fk-cert-brand { position:relative; z-index:1; display:flex; align-items:center; justify-content:center; gap:11px; margin:0 auto 18px; color:var(--fk-dark); }
.fk-cert-symbol { width:54px; height:54px; display:grid; place-items:center; border-radius:16px; background:linear-gradient(145deg,var(--fk-green),var(--fk-dark)); color:#fff; font-size:28px; font-weight:900; box-shadow:0 7px 18px rgba(11,93,80,.18); }
.fk-cert-brand strong { font-size:27px; letter-spacing:-.04em; }
.fk-cert-brand strong span { color:var(--fk-orange); }
.fk-cert-kicker { color:#a77a18; letter-spacing:.18em; font-size:12px; font-weight:900; }
.fk-certificate h1 { margin:8px 0 28px; font-size:34px; color:var(--fk-dark); }
.fk-certificate h2 { margin:8px 0; font-family:Georgia,serif; font-size:40px; color:#b17d13; }
.fk-cert-line { width:65%; height:1px; background:#d9bd78; margin:8px auto 22px; }
.fk-cert-meta { display:flex; justify-content:center; gap:70px; margin:32px 0; }
.fk-cert-meta span { display:grid; gap:4px; color:var(--fk-muted); }
.fk-cert-meta b { color:var(--fk-text); }
.fk-cert-actions { display:flex; align-items:center; justify-content:center; gap:18px; margin-top:20px; }
.fk-cert-actions a { color:var(--fk-green); font-weight:800; }

.fk-day-start:hover {
    filter: brightness(.96);
    transform: translateY(-1px);
}

.fk-day-start:focus-visible {
    outline: 3px solid rgba(255, 159, 67, .35);
    outline-offset: 2px;
}

.fk-reset-card { margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 22px; border-color: #f1d8be; background: #fffaf4; }
.fk-reset-card p { margin: 0 0 5px; color: #a45b16; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.fk-reset-card h2 { margin: 0 0 7px; font-size: 21px; }
.fk-reset-card span { color: var(--fk-muted); font-size: 13px; }
.fk-reset-card form { flex: 0 0 auto; }
.fk-reset-btn { border: 1px solid #e2a96f; border-radius: 11px; background: #fff; color: #8a470a; padding: 12px 16px; font-weight: 800; cursor: pointer; }
.fk-reset-btn:hover { background: #fff3e6; }

@media (max-width: 650px) {
    .fk-reset-card { align-items: stretch; flex-direction: column; }
    .fk-reset-btn { width: 100%; }
    .fk-graduate { grid-template-columns:auto 1fr; }
    .fk-graduate .fk-btn { grid-column:1/-1; text-align:center; }
    .fk-certificate { padding:36px 18px; border-width:7px; }
    .fk-certificate h1 { font-size:25px; }
    .fk-certificate h2 { font-size:31px; }
    .fk-cert-meta { gap:22px; }
    .fk-cert-actions { flex-direction:column; }
    .fk-day-action {
        grid-column: 2;
    }

    .fk-day-start {
        width: 100%;
        margin-top: 4px;
    }

    .fk-main { padding-top: 16px; padding-bottom: 96px; }
    .fk-page-head { margin-bottom: 16px; }
    .fk-page-head h1 { font-size: 29px; }
    .fk-day { grid-template-columns: 40px minmax(0, 1fr); padding: 14px; }
    .fk-day-action, .fk-day-status { grid-column: 2; justify-self: stretch; width: 100%; }
    .fk-day-status { min-height: 38px; }
    .fk-day span { font-size: 12px; line-height: 1.45; }
    .fk-nav { height: 80px; padding-bottom: env(safe-area-inset-bottom); }
}

/* Official FastingKu logo */
.fk-brand-logo { display:block; width:154px; height:auto; max-height:48px; object-fit:contain; }
.fk-auth-logo { display:block; width:min(235px, 72%); height:auto; margin:0 auto 22px; }
.fk-onboarding-logo { width:min(220px, 64%); }
.fk-cert-logo { display:block; width:205px; height:auto; margin:auto; }

@media (max-width:650px) {
    .fk-brand-logo { width:132px; max-height:42px; }
    .fk-auth-logo { width:min(210px, 78%); }
    .fk-cert-logo { width:175px; }
}

@media print {
    body * { visibility:hidden !important; }
    .fk-certificate,.fk-certificate * { visibility:visible !important; }
    .fk-certificate { position:fixed; inset:0; width:100%; height:100%; box-sizing:border-box; box-shadow:none; display:flex; flex-direction:column; justify-content:center; }
    @page { size:A4 landscape; margin:10mm; }
}

textarea {
    width: 100%;
    border: 1px solid #cadfd8;
    border-radius: 12px;
    background: #fff;
    padding: 13px;
    color: var(--fk-text);
    font: inherit;
    margin-top: 7px;
    resize: vertical;
}

.fk-focus-form, .fk-task-grid { display: grid; gap: 12px; }
.fk-water-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.fk-water-card h3 { margin: 4px 0; }
.fk-water { display: flex; gap: 7px; }
.fk-water button { border: 0; background: #dcebe6; color: #fff; width: 27px; height: 32px; border-radius: 7px; cursor: pointer; }
.fk-water button.filled { background: #42bfe8; }
.fk-task-grid, .fk-quick { grid-template-columns: 1fr 1fr; }
.fk-task { display: flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
.fk-task input { width: 21px; margin: 0; }
.fk-task span { font-size: 24px; }
.fk-task-grid .fk-btn { grid-column: 1 / -1; justify-self: start; }
.fk-quick { display: grid; gap: 12px; margin-top: 14px; }
.fk-quick a { display: flex; align-items: center; gap: 10px; color: var(--fk-text); text-decoration: none; }
.fk-entry-form { max-width: 700px; }
.fk-success { padding: 13px 15px; border-radius: 12px; background: #e4f7ef; color: var(--fk-dark); margin: 15px 0; }
.fk-history { display: grid; gap: 10px; }
.fk-history .fk-card { display: grid; gap: 4px; }
.fk-history time, .fk-history span { color: var(--fk-muted); font-size: 13px; }
.fk-history p { margin: 6px 0 0; }
.fk-empty { background: #fff; border: 1px dashed var(--fk-border); border-radius: 15px; padding: 24px; text-align: center; color: var(--fk-muted); }
.fk-nav { gap: min(6vw, 70px); }
.fk-daily-guide { margin: 14px 0 0; }
.fk-daily-guide > p, .fk-chart-head p { color: var(--fk-green); font-size: 11px; font-weight: 900; letter-spacing: .12em; margin: 0 0 6px; }
.fk-daily-guide h3 { margin: 0 0 7px; }
.fk-daily-guide > span { color: var(--fk-muted); }
.fk-meal { margin-top: 14px; padding: 13px 15px; border-radius: 13px; background: #fff8ee; display: grid; gap: 4px; }
.fk-meal span { color: var(--fk-muted); font-size: 13px; }
.fk-test-form { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--fk-border); }
.fk-test-form small { display: block; margin-top: 6px; color: var(--fk-muted); }
.fk-test-btn { border: 1px solid var(--fk-border); background: #f5faf8; color: var(--fk-dark); border-radius: 10px; padding: 10px 14px; cursor: pointer; font-weight: 700; }
.fk-chart-card { margin-bottom: 18px; }
.fk-chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.fk-chart-head h3 { margin: 0; font-size: 24px; }
.fk-chart-head > span { color: var(--fk-muted); font-size: 12px; }
.fk-bars { height: 190px; display: flex; align-items: flex-end; gap: 10px; margin-top: 22px; padding-top: 15px; border-bottom: 1px solid var(--fk-border); }
.fk-bars > div { height: 100%; flex: 1; min-width: 28px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.fk-bars i { display: block; width: min(34px, 70%); min-height: 35px; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, var(--fk-green), var(--fk-dark)); }
.fk-bars b { font-size: 11px; }
.fk-bars small { color: var(--fk-muted); font-size: 10px; white-space: nowrap; }

@media (max-width: 650px) {
    .fk-top { height: 62px; }
    .fk-brand { font-size: 17px; }
    .fk-brand span { width: 34px; height: 34px; }
    .fk-link { font-weight: 700; }
    .fk-task-grid, .fk-quick { grid-template-columns: 1fr; }
    .fk-water-card { align-items: flex-start; flex-direction: column; }
    .fk-water { width: 100%; justify-content: space-between; }
    .fk-water button { flex: 1; }
    .fk-nav { gap: 0; justify-content: space-around; }
    .fk-nav a { width: 20%; font-size: 10px; }
    .fk-nav a b { font-size: 19px; }
    .fk-bars { overflow-x: auto; }
    .fk-bars > div { min-width: 42px; }
}
