/* MKS Community member app. Standalone page: no CRM stylesheet is loaded here. */
@font-face { font-family: "Mkc Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/baloo2-800-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mkc Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/baloo2-800-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Tokens. Every tint, border and glow follows the brand colour set in Settings (theme); the violet values are
   the fallback for browsers without color-mix(). */
:root {
    --mkc-theme: #7c3aed;
    --mkc-accent: #ec4899;
    --mkc-bg: #f5f3ff;
    --mkc-ink: #1e1b4b;
    --mkc-text: #3f3d56;
    --mkc-muted: #6a6788;
    --mkc-line: #ece8f8;
    --mkc-border: #e4def7;
    --mkc-tint-0: #faf8ff;
    --mkc-tint: #f5f3ff;
    --mkc-tint-2: #ede7fd;
    --mkc-theme-ink: #5b21b6;
    --mkc-ring: rgba(124, 58, 237, .14);
    --mkc-glow: rgba(124, 58, 237, .32);
    --mkc-card: #ffffff;
    --mkc-green: #10b981;
    --mkc-red: #ef4444;
    --mkc-amber: #f59e0b;
    --mkc-sky: #0ea5e9;
    --mkc-radius: 20px;
    --mkc-shadow: 0 1px 2px rgba(30, 27, 75, .05), 0 8px 24px rgba(30, 27, 75, .07);
    --mkc-grad: linear-gradient(135deg, var(--mkc-theme) 0%, var(--mkc-accent) 100%);
    --mkc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    --mkc-font-display: "Mkc Display", var(--mkc-font);
    --mkc-safe-b: env(safe-area-inset-bottom, 0px);
    --mkc-safe-t: env(safe-area-inset-top, 0px);
}
@supports (color: color-mix(in srgb, red 50%, white)) {
    :root {
        --mkc-bg: color-mix(in srgb, var(--mkc-theme) 6%, #fafaff);
        --mkc-line: color-mix(in srgb, var(--mkc-theme) 9%, #fff);
        --mkc-border: color-mix(in srgb, var(--mkc-theme) 16%, #fff);
        --mkc-tint-0: color-mix(in srgb, var(--mkc-theme) 3%, #fff);
        --mkc-tint: color-mix(in srgb, var(--mkc-theme) 7%, #fff);
        --mkc-tint-2: color-mix(in srgb, var(--mkc-theme) 13%, #fff);
        --mkc-theme-ink: color-mix(in srgb, var(--mkc-theme) 72%, #000);
        --mkc-ring: color-mix(in srgb, var(--mkc-theme) 16%, transparent);
        --mkc-glow: color-mix(in srgb, var(--mkc-theme) 34%, transparent);
    }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body.mks-community-app {
    font-family: var(--mkc-font);
    background: var(--mkc-bg); color: var(--mkc-text); font-size: 15px; line-height: 1.45; min-height: 100vh; overscroll-behavior-y: none;
    -webkit-font-smoothing: antialiased;
}
@media (min-width: 600px) {
    body.mks-community-app { background: radial-gradient(circle at 10% 10%, var(--mkc-ring), transparent 40%), radial-gradient(circle at 90% 80%, rgba(236, 72, 153, .1), transparent 40%), var(--mkc-tint-2); }
}
a { color: var(--mkc-theme); text-decoration: none; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.mkc-app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; background: var(--mkc-bg); }
@media (min-width: 600px) { .mkc-app { box-shadow: 0 0 60px rgba(76, 29, 149, .12); } }

.mkc-splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; }
.mkc-splash img { border-radius: 22px; box-shadow: 0 14px 34px var(--mkc-glow); }
.mkc-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--mkc-ring); border-top-color: var(--mkc-theme); animation: mkc-spin .8s linear infinite; }
@keyframes mkc-spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ auth */
.mkc-auth { min-height: 100vh; background: var(--mkc-grad); position: relative; overflow: hidden; padding: calc(40px + var(--mkc-safe-t)) 20px 30px; display: flex; flex-direction: column; }
.mkc-auth::before, .mkc-auth::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.mkc-auth::before { width: 320px; height: 320px; top: -120px; right: -110px; }
.mkc-auth::after { width: 220px; height: 220px; bottom: 120px; left: -120px; background: rgba(255, 255, 255, .09); }
.mkc-auth-brand { position: relative; z-index: 1; color: #fff; text-align: center; margin-bottom: 26px; }
.mkc-auth-logo { width: 76px; height: 76px; border-radius: 22px; background: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); }
.mkc-auth-logo img { width: 100%; height: 100%; object-fit: cover; }
.mkc-auth-brand h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.mkc-auth-brand p { margin: 6px 0 0; opacity: .9; font-size: 15px; }
.mkc-auth-perks { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.mkc-auth-perks span { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .25); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.mkc-auth-card { position: relative; z-index: 1; background: #fff; border-radius: 26px; padding: 22px 20px; box-shadow: 0 24px 60px rgba(30, 27, 75, .25); }
.mkc-auth-switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--mkc-tint-2); border-radius: 14px; padding: 4px; margin-bottom: 18px; }
.mkc-auth-switch button { border: 0; background: transparent; padding: 10px; border-radius: 11px; font-weight: 700; color: var(--mkc-muted); cursor: pointer; }
.mkc-auth-switch button.is-on { background: #fff; color: var(--mkc-ink); box-shadow: 0 2px 8px rgba(30, 27, 75, .08); }
.mkc-auth-card h2 { margin: 0 0 4px; font-size: 20px; color: var(--mkc-ink); }
.mkc-auth-card .mkc-sub { color: var(--mkc-muted); font-size: 14px; margin: 0 0 16px; }
.mkc-auth-foot { position: relative; z-index: 1; text-align: center; color: rgba(255, 255, 255, .9); font-size: 13px; margin-top: 18px; }
.mkc-auth-foot a { color: #fff; font-weight: 700; text-decoration: underline; }

/* ------------------------------------------------------------------ forms */
.mkc-field { margin-bottom: 14px; }
.mkc-field label { display: block; font-size: 13px; font-weight: 700; color: var(--mkc-ink); margin-bottom: 6px; }
.mkc-field label .req { color: var(--mkc-red); }
.mkc-field .mkc-hint { font-size: 12.5px; color: var(--mkc-muted); margin-top: 5px; }
.mkc-input, .mkc-select, .mkc-textarea {
    width: 100%; border: 1.5px solid var(--mkc-border); background: var(--mkc-tint-0); border-radius: 14px; padding: 13px 14px; font-size: 16px; color: var(--mkc-ink);
    outline: none; transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none; appearance: none;
}
.mkc-textarea { min-height: 96px; resize: vertical; font-family: inherit; line-height: 1.45; }
.mkc-input:focus, .mkc-select:focus, .mkc-textarea:focus { border-color: var(--mkc-theme); background: #fff; box-shadow: 0 0 0 4px var(--mkc-ring); }
.mkc-select { background-image: linear-gradient(45deg, transparent 50%, var(--mkc-muted) 50%), linear-gradient(135deg, var(--mkc-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.mkc-money-input { position: relative; }
.mkc-money-input span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--mkc-theme); }
.mkc-money-input .mkc-input { padding-left: 32px; font-weight: 700; }
.mkc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--mkc-text); margin: 6px 0 16px; cursor: pointer; }
.mkc-check input { width: 20px; height: 20px; margin: 0; accent-color: var(--mkc-theme); flex: 0 0 auto; }
.mkc-otp { display: flex; gap: 8px; justify-content: center; margin: 6px 0 16px; }
.mkc-otp input { width: 46px; height: 56px; text-align: center; font-size: 24px; font-weight: 800; border-radius: 14px; border: 1.5px solid var(--mkc-border); background: var(--mkc-tint-0); color: var(--mkc-ink); outline: none; padding: 0; }
.mkc-otp input:focus { border-color: var(--mkc-theme); box-shadow: 0 0 0 4px var(--mkc-ring); background: #fff; }
.mkc-error { background: #fef2f2; color: #b91c1c; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; margin-bottom: 14px; display: flex; gap: 8px; align-items: flex-start; }

/* ------------------------------------------------------------------ buttons */
.mkc-btn {
    border: 0; border-radius: 14px; padding: 13px 18px; font-weight: 700; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--mkc-tint-2); color: var(--mkc-theme); transition: transform .1s, filter .15s, opacity .15s; text-align: center; line-height: 1.2;
}
.mkc-btn:active { transform: scale(.98); }
.mkc-btn[disabled] { opacity: .55; cursor: not-allowed; }
.mkc-btn-primary { background: var(--mkc-grad); color: #fff; box-shadow: 0 8px 20px var(--mkc-glow); }
.mkc-btn-green { background: linear-gradient(135deg, #34d399, #059669); color: #fff; box-shadow: 0 8px 20px rgba(16, 185, 129, .3); }
.mkc-btn-white { background: #fff; color: var(--mkc-theme); box-shadow: 0 4px 14px rgba(30, 27, 75, .12); }
.mkc-btn-glass { background: rgba(255, 255, 255, .2); color: #fff; border: 1px solid rgba(255, 255, 255, .3); }
.mkc-btn-danger { background: #fef2f2; color: #dc2626; }
.mkc-btn-ghost { background: transparent; color: var(--mkc-muted); }
.mkc-btn-block { width: 100%; }
.mkc-btn-sm { padding: 9px 13px; font-size: 13.5px; border-radius: 12px; }
.mkc-link { background: none; border: 0; color: var(--mkc-theme); font-weight: 700; cursor: pointer; padding: 0; }

/* ------------------------------------------------------------------ top bar + nav */
.mkc-top {
    position: sticky; top: 0; z-index: 30; padding: calc(12px + var(--mkc-safe-t)) 16px 12px; background: rgba(245, 243, 255, .86); backdrop-filter: saturate(160%) blur(14px);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.mkc-top-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mkc-top-title h1 { margin: 0; font-size: 19px; font-weight: 800; color: var(--mkc-ink); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkc-top-title small { display: block; color: var(--mkc-muted); font-size: 12.5px; font-weight: 600; }
.mkc-back { width: 40px; height: 40px; border-radius: 13px; border: 0; background: #fff; box-shadow: var(--mkc-shadow); display: inline-flex; align-items: center; justify-content: center; color: var(--mkc-ink); cursor: pointer; flex: 0 0 auto; }
.mkc-icon-btn { position: relative; width: 42px; height: 42px; border-radius: 14px; border: 0; background: #fff; box-shadow: var(--mkc-shadow); display: inline-flex; align-items: center; justify-content: center; color: var(--mkc-ink); cursor: pointer; font-size: 17px; flex: 0 0 auto; }
.mkc-dot { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--mkc-red); color: #fff; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--mkc-bg); }
.mkc-avatar { width: 42px; height: 42px; border-radius: 14px; background: var(--mkc-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex: 0 0 auto; }

.mkc-page { padding: 6px 16px calc(100px + var(--mkc-safe-b)); }
.mkc-page.no-nav { padding-bottom: calc(110px + var(--mkc-safe-b)); }
.mkc-nav {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px; z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px);
    border-top: 1px solid var(--mkc-line); display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px 6px calc(8px + var(--mkc-safe-b)); box-shadow: 0 -8px 30px rgba(76, 29, 149, .08);
}
.mkc-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--mkc-muted); padding: 4px 0; position: relative; }
.mkc-nav a i { width: 44px; height: 32px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; transition: background .2s, color .2s; }
.mkc-nav a.is-on { color: var(--mkc-theme); }
.mkc-nav a.is-on i { background: var(--mkc-grad); color: #fff; box-shadow: 0 6px 14px var(--mkc-glow); }
.mkc-nav .mkc-dot { top: -2px; right: calc(50% - 26px); border-color: #fff; }

/* ------------------------------------------------------------------ cards */
.mkc-card { background: var(--mkc-card); border-radius: var(--mkc-radius); box-shadow: var(--mkc-shadow); padding: 16px; margin-bottom: 14px; }
.mkc-card.flush { padding: 0; overflow: hidden; }
.mkc-sec { display: flex; align-items: baseline; justify-content: space-between; margin: 20px 2px 10px; }
.mkc-sec h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--mkc-ink); letter-spacing: -.01em; }
.mkc-sec a, .mkc-sec button { font-size: 13px; font-weight: 700; }

/* wallet hero */
.mkc-wallet { position: relative; overflow: hidden; border-radius: 26px; padding: 20px; color: #fff; background: var(--mkc-grad); box-shadow: 0 16px 36px var(--mkc-glow); margin-bottom: 14px; }
.mkc-wallet::before { content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%; right: -70px; top: -90px; background: rgba(255, 255, 255, .16); }
.mkc-wallet::after { content: ''; position: absolute; width: 150px; height: 150px; border-radius: 50%; left: -40px; bottom: -80px; background: rgba(255, 255, 255, .1); }
.mkc-wallet > * { position: relative; z-index: 1; }
.mkc-wallet-label { font-size: 13px; font-weight: 600; opacity: .9; display: flex; align-items: center; gap: 6px; }
.mkc-wallet-amount { font-size: 38px; font-weight: 900; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 12px; }
.mkc-wallet-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mkc-wallet-mini { background: rgba(255, 255, 255, .17); border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; padding: 8px 12px; flex: 1 1 0; min-width: 0; }
.mkc-wallet-mini span { display: block; font-size: 11.5px; opacity: .85; font-weight: 600; }
.mkc-wallet-mini b { display: block; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkc-wallet-actions { display: flex; gap: 10px; margin-top: 14px; }
.mkc-wallet-actions .mkc-btn { flex: 1; }

/* pending banner / pinned */
.mkc-banner { border-radius: 18px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 14px; }
.mkc-banner i.lead { font-size: 18px; margin-top: 2px; }
.mkc-banner b { display: block; color: inherit; margin-bottom: 2px; }
.mkc-banner.amber { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.mkc-banner.violet { background: var(--mkc-tint); color: var(--mkc-theme-ink); border: 1px solid var(--mkc-border); }
.mkc-banner.red { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.mkc-banner.green { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.mkc-banner.sky { background: #f0f9ff; color: #075985; border: 1px solid #bae6fd; }

/* level */
.mkc-level { display: flex; align-items: center; gap: 14px; }
.mkc-level-badge { width: 54px; height: 54px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; flex: 0 0 auto; box-shadow: 0 8px 18px rgba(0, 0, 0, .14); }
.mkc-level-info { flex: 1; min-width: 0; }
.mkc-level-info b { color: var(--mkc-ink); font-size: 15px; display: block; }
.mkc-level-info span { color: var(--mkc-muted); font-size: 12.5px; }
.mkc-progress { height: 9px; border-radius: 999px; background: var(--mkc-tint-2); overflow: hidden; margin-top: 8px; }
.mkc-progress > i { display: block; height: 100%; border-radius: 999px; background: var(--mkc-grad); transition: width .6s ease; }
.mkc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mkc-stat { background: var(--mkc-tint-0); border-radius: 14px; padding: 10px; text-align: center; }
.mkc-stat b { display: block; font-size: 17px; color: var(--mkc-ink); font-weight: 800; }
.mkc-stat span { font-size: 11.5px; color: var(--mkc-muted); font-weight: 700; }

/* chips row */
.mkc-chips { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.mkc-chips::-webkit-scrollbar { display: none; }
.mkc-cat { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; text-align: center; cursor: pointer; background: none; border: 0; padding: 0; }
.mkc-cat i { width: 58px; height: 58px; border-radius: 20px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.mkc-cat span { font-size: 12px; font-weight: 700; color: var(--mkc-ink); line-height: 1.2; max-width: 76px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mkc-filter { flex: 0 0 auto; border: 1.5px solid var(--mkc-border); background: #fff; color: var(--mkc-text); border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 13px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.mkc-filter.is-on { background: var(--mkc-ink); border-color: var(--mkc-ink); color: #fff; }

/* task card */
.mkc-task { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--mkc-shadow); margin-bottom: 12px; cursor: pointer; position: relative; overflow: hidden; transition: transform .1s; }
.mkc-task:active { transform: scale(.99); }
.mkc-task.locked { opacity: .7; }
.mkc-task-icon { width: 50px; height: 50px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; flex: 0 0 auto; }
.mkc-task-body { flex: 1; min-width: 0; }
.mkc-task-body b { display: block; color: var(--mkc-ink); font-size: 15px; font-weight: 750; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mkc-task-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--mkc-muted); font-weight: 600; }
.mkc-task-meta span { display: inline-flex; gap: 4px; align-items: center; }
.mkc-reward { flex: 0 0 auto; text-align: right; }
.mkc-reward b { display: inline-block; background: linear-gradient(135deg, #34d399, #059669); color: #fff; font-weight: 900; font-size: 16px; padding: 7px 12px; border-radius: 14px; box-shadow: 0 6px 14px rgba(16, 185, 129, .28); white-space: nowrap; }
.mkc-reward small { display: block; font-size: 11px; color: var(--mkc-muted); font-weight: 700; margin-top: 4px; }
.mkc-ribbon { position: absolute; top: 10px; right: -30px; transform: rotate(35deg); background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; font-size: 10px; font-weight: 900; padding: 3px 34px; letter-spacing: .05em; }
.mkc-new { background: #fdf2f8; color: #be185d; font-size: 10.5px; font-weight: 900; padding: 2px 7px; border-radius: 6px; letter-spacing: .04em; }

/* active work strip */
.mkc-active { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: var(--mkc-shadow); margin-bottom: 10px; cursor: pointer; }
.mkc-timer { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: #fff7ed; color: #c2410c; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mkc-timer.late { background: #fef2f2; color: #b91c1c; }

/* pills */
.mkc-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; background: #f1f5f9; color: #475569; }
.mkc-pill.in_progress { background: #e0f2fe; color: #0369a1; }
.mkc-pill.submitted, .mkc-pill.pending { background: #fef3c7; color: #b45309; }
.mkc-pill.resubmit { background: #ffedd5; color: #c2410c; }
.mkc-pill.approved, .mkc-pill.paid, .mkc-pill.active { background: #dcfce7; color: #15803d; }
.mkc-pill.rejected, .mkc-pill.expired { background: #fee2e2; color: #b91c1c; }

/* hero for task / category */
.mkc-hero { border-radius: 26px; padding: 20px; color: #fff; position: relative; overflow: hidden; margin-bottom: 14px; box-shadow: 0 14px 30px rgba(30, 27, 75, .18); }
.mkc-hero::before { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; right: -60px; top: -70px; background: rgba(255, 255, 255, .16); }
.mkc-hero > * { position: relative; z-index: 1; }
.mkc-hero-cat { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; background: rgba(255, 255, 255, .2); padding: 5px 11px; border-radius: 999px; }
.mkc-hero h2 { margin: 12px 0 6px; font-size: 22px; line-height: 1.25; font-weight: 850; letter-spacing: -.01em; }
.mkc-hero p { margin: 0; opacity: .92; font-size: 14px; }
.mkc-hero-reward { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.mkc-hero-reward b { font-size: 32px; font-weight: 900; letter-spacing: -.02em; line-height: 1; }
.mkc-hero-reward span { font-size: 12.5px; opacity: .9; font-weight: 600; }
.mkc-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.mkc-meta { background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--mkc-shadow); display: flex; gap: 10px; align-items: center; }
.mkc-meta i { width: 36px; height: 36px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--mkc-tint); color: var(--mkc-theme); flex: 0 0 auto; }
.mkc-meta b { display: block; color: var(--mkc-ink); font-size: 14px; }
.mkc-meta span { font-size: 11.5px; color: var(--mkc-muted); font-weight: 700; }
.mkc-rich { font-size: 15px; line-height: 1.6; color: var(--mkc-text); word-wrap: break-word; }
.mkc-rich h2, .mkc-rich h3, .mkc-rich h4 { color: var(--mkc-ink); margin: 14px 0 6px; line-height: 1.3; }
.mkc-rich p { margin: 0 0 10px; }
.mkc-rich ul, .mkc-rich ol { padding-left: 20px; margin: 0 0 10px; }
.mkc-rich li { margin-bottom: 4px; }
.mkc-rich img { border-radius: 14px; height: auto; }
.mkc-rich table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mkc-rich td, .mkc-rich th { border: 1px solid var(--mkc-line); padding: 6px; }
.mkc-steps-title { display: flex; gap: 8px; align-items: center; font-weight: 800; color: var(--mkc-ink); margin: 0 0 10px; font-size: 15px; }
.mkc-samples { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.mkc-samples img { width: 120px; height: 160px; object-fit: cover; border-radius: 14px; flex: 0 0 auto; cursor: zoom-in; border: 1px solid var(--mkc-line); }
.mkc-needs { list-style: none; margin: 0; padding: 0; }
.mkc-needs li { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--mkc-tint-2); font-size: 14px; color: var(--mkc-ink); font-weight: 600; }
.mkc-needs li:first-child { border-top: 0; }
.mkc-needs li i { width: 30px; height: 30px; border-radius: 10px; background: var(--mkc-tint); color: var(--mkc-theme); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.mkc-sticky { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px; z-index: 35; padding: 12px 16px calc(12px + var(--mkc-safe-b)); background: linear-gradient(to top, var(--mkc-bg) 70%, rgba(245, 243, 255, 0)); }
.mkc-sticky .mkc-note { text-align: center; font-size: 13px; color: var(--mkc-muted); margin-bottom: 8px; font-weight: 600; }

/* video */
.mkc-video { border-radius: 18px; overflow: hidden; background: #0f0a2a; margin-bottom: 12px; box-shadow: var(--mkc-shadow); }
.mkc-video-frame { position: relative; padding-top: 56.25%; }
.mkc-video-frame iframe, .mkc-video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mkc-video-cap { padding: 10px 14px; color: #fff; font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: center; background: linear-gradient(90deg, var(--mkc-theme), rgba(236, 72, 153, .9)); }
.mkc-video-poster { position: absolute; inset: 0; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mkc-video-poster span { width: 64px; height: 64px; border-radius: 50%; background: rgba(255, 255, 255, .95); color: var(--mkc-theme); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); padding-left: 4px; }
.mkc-learn-card { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 20px; padding: 14px; box-shadow: var(--mkc-shadow); margin-bottom: 12px; cursor: pointer; }

/* proof form */
.mkc-proof-field { background: #fff; border-radius: 20px; padding: 16px; box-shadow: var(--mkc-shadow); margin-bottom: 12px; }
.mkc-proof-field > label { display: flex; gap: 8px; align-items: center; font-weight: 800; color: var(--mkc-ink); font-size: 14.5px; margin-bottom: 4px; }
.mkc-proof-field > label i { width: 28px; height: 28px; border-radius: 9px; background: var(--mkc-tint); color: var(--mkc-theme); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.mkc-proof-field .mkc-hint { font-size: 12.5px; color: var(--mkc-muted); margin: 0 0 10px; }
.mkc-uploads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mkc-upload-tile { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: var(--mkc-tint); display: flex; align-items: center; justify-content: center; color: var(--mkc-muted); font-size: 12px; text-align: center; }
.mkc-upload-tile img, .mkc-upload-tile video { width: 100%; height: 100%; object-fit: cover; }
.mkc-upload-tile .rm { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(15, 12, 41, .7); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.mkc-upload-tile .bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .7); overflow: hidden; }
.mkc-upload-tile .bar i { display: block; height: 100%; background: var(--mkc-grad); width: 0; transition: width .2s; }
.mkc-upload-tile .file { padding: 8px; word-break: break-all; }
.mkc-upload-add { aspect-ratio: 1 / 1; border-radius: 16px; border: 2px dashed var(--mkc-border); background: var(--mkc-tint-0); color: var(--mkc-theme); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 800; font-size: 12px; cursor: pointer; }
.mkc-upload-add i { font-size: 22px; }
.mkc-upload-add input { display: none; }

/* segmented */
.mkc-seg { display: flex; gap: 6px; background: var(--mkc-tint-2); padding: 5px; border-radius: 16px; margin-bottom: 14px; overflow-x: auto; scrollbar-width: none; }
.mkc-seg::-webkit-scrollbar { display: none; }
.mkc-seg button { flex: 1 0 auto; border: 0; background: transparent; padding: 9px 12px; border-radius: 12px; font-weight: 800; font-size: 13px; color: var(--mkc-muted); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.mkc-seg button.is-on { background: #fff; color: var(--mkc-ink); box-shadow: 0 2px 8px rgba(30, 27, 75, .08); }
.mkc-seg button em { font-style: normal; background: var(--mkc-tint-2); color: var(--mkc-theme); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.mkc-seg button.is-on em { background: var(--mkc-grad); color: #fff; }

/* lists */
.mkc-list { list-style: none; margin: 0; padding: 0; }
.mkc-row { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--mkc-tint-2); }
.mkc-row:first-child { border-top: 0; }
.mkc-row.tap { cursor: pointer; }
.mkc-row-icon { width: 40px; height: 40px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 15px; background: var(--mkc-tint); color: var(--mkc-theme); }
.mkc-row-body { flex: 1; min-width: 0; }
.mkc-row-body b { display: block; color: var(--mkc-ink); font-size: 14.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkc-row-body span { display: block; color: var(--mkc-muted); font-size: 12.5px; }
.mkc-row-body p { margin: 4px 0 0; font-size: 13px; color: var(--mkc-text); }
.mkc-row-end { text-align: right; flex: 0 0 auto; font-weight: 800; }
.mkc-plus { color: #059669; }
.mkc-minus { color: #dc2626; }
.mkc-chev { color: var(--mkc-border); }
.mkc-unread { width: 9px; height: 9px; border-radius: 50%; background: var(--mkc-accent); flex: 0 0 auto; }

/* profile */
.mkc-profile { text-align: center; padding: 22px 16px 18px; background: var(--mkc-grad); border-radius: 26px; color: #fff; position: relative; overflow: hidden; margin-bottom: 14px; box-shadow: 0 14px 30px var(--mkc-glow); }
.mkc-profile::before { content: ''; position: absolute; width: 200px; height: 200px; border-radius: 50%; left: -60px; top: -90px; background: rgba(255, 255, 255, .14); }
.mkc-profile > * { position: relative; }
.mkc-profile .mkc-avatar { width: 76px; height: 76px; border-radius: 26px; font-size: 26px; background: rgba(255, 255, 255, .25); border: 3px solid rgba(255, 255, 255, .5); }
.mkc-profile h2 { margin: 10px 0 2px; font-size: 21px; font-weight: 850; }
.mkc-profile p { margin: 0; opacity: .88; font-size: 13.5px; }
.mkc-lvl-pill { display: inline-flex; gap: 6px; align-items: center; background: #fff; border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 800; margin-top: 10px; }

/* leaderboard */
.mkc-podium { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; align-items: end; margin: 6px 0 16px; }
.mkc-pod { text-align: center; }
.mkc-pod .mkc-avatar { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 6px; font-size: 18px; border: 3px solid #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .15); }
.mkc-pod b { display: block; font-size: 13px; color: var(--mkc-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkc-pod .block { margin-top: 8px; border-radius: 16px 16px 6px 6px; color: #fff; font-weight: 900; font-size: 20px; display: flex; align-items: center; justify-content: center; }
.mkc-pod.p1 .block { height: 96px; background: linear-gradient(180deg, #fbbf24, #d97706); }
.mkc-pod.p2 .block { height: 72px; background: linear-gradient(180deg, #cbd5e1, #64748b); }
.mkc-pod.p3 .block { height: 56px; background: linear-gradient(180deg, #fdba74, #c2410c); }
.mkc-pod.p1 .mkc-avatar { width: 66px; height: 66px; }
.mkc-me-row { background: var(--mkc-tint); }

/* empty + skeleton */
.mkc-empty { text-align: center; padding: 34px 20px; color: var(--mkc-muted); }
.mkc-empty .art { width: 84px; height: 84px; border-radius: 28px; background: var(--mkc-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 14px; box-shadow: 0 12px 26px var(--mkc-glow); }
.mkc-empty b { display: block; color: var(--mkc-ink); font-size: 17px; margin-bottom: 4px; }
.mkc-skel { border-radius: 18px; background: linear-gradient(90deg, var(--mkc-tint-2) 25%, var(--mkc-tint-2) 37%, var(--mkc-tint-2) 63%); background-size: 400% 100%; animation: mkc-shine 1.3s ease infinite; margin-bottom: 12px; }
@keyframes mkc-shine { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* sheet */
.mkc-sheet-backdrop { position: fixed; inset: 0; background: rgba(15, 12, 41, .5); z-index: 90; opacity: 0; transition: opacity .2s; }
.mkc-sheet-backdrop.is-on { opacity: 1; }
.mkc-sheet { position: fixed; left: 50%; bottom: 0; width: 100%; max-width: 560px; transform: translate(-50%, 100%); z-index: 91; background: #fff; border-radius: 28px 28px 0 0; max-height: 92vh; overflow-y: auto; transition: transform .25s cubic-bezier(.2, .8, .2, 1); padding: 10px 18px calc(20px + var(--mkc-safe-b)); }
.mkc-sheet.is-on { transform: translate(-50%, 0); }
.mkc-sheet-grip { width: 42px; height: 5px; border-radius: 999px; background: var(--mkc-border); margin: 0 auto 12px; }
.mkc-sheet h3 { margin: 0 0 4px; font-size: 19px; color: var(--mkc-ink); font-weight: 850; }
.mkc-sheet .mkc-sub { color: var(--mkc-muted); font-size: 13.5px; margin: 0 0 16px; }
.mkc-quick { display: flex; gap: 8px; margin: -4px 0 14px; flex-wrap: wrap; }
.mkc-quick button { border: 1.5px solid var(--mkc-border); background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 800; font-size: 12.5px; color: var(--mkc-theme); cursor: pointer; }
.mkc-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mkc-method { border: 2px solid var(--mkc-border); border-radius: 16px; padding: 12px; cursor: pointer; background: #fff; text-align: left; }
.mkc-method i { color: var(--mkc-theme); font-size: 18px; }
.mkc-method b { display: block; color: var(--mkc-ink); margin-top: 6px; font-size: 14px; }
.mkc-method span { display: block; color: var(--mkc-muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkc-method.is-on { border-color: var(--mkc-theme); background: var(--mkc-tint-0); box-shadow: 0 0 0 3px var(--mkc-ring); }
.mkc-summary { background: var(--mkc-tint-0); border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; font-size: 14px; }
.mkc-summary div { display: flex; justify-content: space-between; padding: 3px 0; }
.mkc-summary div.total { border-top: 1px dashed var(--mkc-border); margin-top: 6px; padding-top: 8px; font-weight: 900; color: var(--mkc-ink); font-size: 16px; }

/* toast + confetti */
.mkc-toast { position: fixed; left: 50%; top: calc(14px + var(--mkc-safe-t)); transform: translate(-50%, -150%); z-index: 100; background: var(--mkc-ink); color: #fff; padding: 12px 18px; border-radius: 16px; font-weight: 700; font-size: 14px; box-shadow: 0 14px 34px rgba(30, 27, 75, .35); transition: transform .3s cubic-bezier(.2, .8, .2, 1); max-width: calc(100% - 28px); text-align: center; }
.mkc-toast.is-on { transform: translate(-50%, 0); }
.mkc-toast.ok { background: linear-gradient(135deg, #10b981, #059669); }
.mkc-toast.err { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.mkc-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; width: 100%; height: 100%; display: none; }
.mkc-celebrate { text-align: center; padding: 10px 6px 4px; }
.mkc-celebrate .big { font-size: 54px; line-height: 1; margin-bottom: 8px; }
.mkc-celebrate b { display: block; font-size: 34px; font-weight: 900; background: var(--mkc-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.mkc-install { display: flex; gap: 12px; align-items: center; background: #1e1b4b; color: #fff; border-radius: 18px; padding: 12px 14px; margin-bottom: 14px; }
.mkc-install i.lead { font-size: 20px; color: var(--mkc-border); }
.mkc-install div { flex: 1; font-size: 13px; }
.mkc-install div b { display: block; font-size: 14px; }

@media (max-width: 360px) {
    .mkc-otp input { width: 40px; height: 50px; font-size: 20px; }
    .mkc-wallet-amount { font-size: 32px; }
    .mkc-uploads { grid-template-columns: repeat(2, 1fr); }
}

/* ------------------------------------------------------------------ 1.2.0: pacing */
.mkc-task.paced { background: linear-gradient(180deg, #fff, var(--mkc-tint-0)); }
.mkc-task.paced .mkc-task-icon { filter: saturate(.55); }
.mkc-reward { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mkc-reward-lock { width: 26px; height: 26px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--mkc-tint); color: var(--mkc-theme); font-size: 12px; }
.mkc-pace-line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mkc-pace-line span { display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--mkc-theme-ink); background: var(--mkc-tint); border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.mkc-pace-line.is-locked .mkc-opens { background: #fff7ed; color: #c2410c; font-variant-numeric: tabular-nums; }
.mkc-pacebox .mkc-pace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mkc-pace-grid > div { background: var(--mkc-tint-0); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.mkc-pace-grid b { display: block; color: var(--mkc-ink); font-size: 16px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkc-pace-grid span { font-size: 11.5px; color: var(--mkc-muted); font-weight: 700; }
.mkc-opens-big { margin: 12px 0; border-radius: 16px; padding: 14px; text-align: center; background: linear-gradient(135deg, #fff7ed, #ffedd5); color: #9a3412; }
.mkc-opens-big span { display: block; font-size: 13px; font-weight: 700; }
.mkc-opens-big b { display: block; font-size: 30px; font-weight: 900; letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin: 4px 0 2px; color: #c2410c; }
.mkc-opens-big small { font-size: 12px; font-weight: 600; opacity: .85; }
.mkc-opens b { font-variant-numeric: tabular-nums; }
.mkc-btn .mkc-opens { display: inline-flex; gap: 5px; align-items: center; }

/* ------------------------------------------------------------------ 1.2.0: platform accounts */
.mkc-plat { width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; font-size: 14px; vertical-align: middle; }
.mkc-sec h3 .mkc-plat { margin-right: 6px; }
.mkc-plat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.mkc-plat-pick { border: 1.5px solid var(--mkc-tint-2); background: #fff; border-radius: 16px; padding: 10px 6px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 12px; font-weight: 700; color: var(--mkc-text); }
.mkc-plat-pick.is-on { border-color: var(--mkc-theme); background: var(--mkc-tint); color: var(--mkc-ink); box-shadow: 0 0 0 3px var(--mkc-ring); }
.mkc-plat-pick span:last-child { text-align: center; line-height: 1.2; }
.mkc-icon-btn.sm { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; margin-left: 6px; }
.mkc-acc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mkc-acc-list li { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--mkc-ink); font-size: 14px; background: var(--mkc-tint-0); border-radius: 12px; padding: 9px 12px; min-width: 0; }
.mkc-acc-list li i { color: var(--mkc-theme); font-size: 12px; }
.mkc-acc-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkc-acc-list li.used { color: var(--mkc-muted); }
.mkc-acc-list li.used i { color: #10b981; }
.mkc-acc-list li em { font-style: normal; font-size: 11.5px; color: #059669; font-weight: 700; }
.mkc-acc-pick { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; border: 1.5px solid var(--mkc-tint-2); background: #fff; border-radius: 16px; padding: 12px; margin-bottom: 8px; cursor: pointer; }
.mkc-acc-pick span:nth-child(2) { flex: 1; min-width: 0; }
.mkc-acc-pick b { display: block; color: var(--mkc-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkc-acc-pick small { color: var(--mkc-muted); font-size: 12px; }
.mkc-acc-used { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 12px 14px; box-shadow: var(--mkc-shadow); margin-bottom: 14px; }
.mkc-acc-used small { display: block; color: var(--mkc-muted); font-size: 12px; font-weight: 700; }
.mkc-acc-used b { color: var(--mkc-ink); word-break: break-all; }

/* ------------------------------------------------------------------ 1.2.0: quiz */
.mkc-quiz-q b { display: block; color: var(--mkc-ink); font-size: 15.5px; line-height: 1.35; margin: 4px 0 12px; }
.mkc-quiz-n { font-size: 11.5px; font-weight: 800; color: var(--mkc-theme); text-transform: uppercase; letter-spacing: .04em; }
.mkc-quiz-opts { display: grid; gap: 8px; }
.mkc-quiz-opt { display: flex; gap: 10px; align-items: center; text-align: left; border: 1.5px solid var(--mkc-tint-2); background: #fff; border-radius: 14px; padding: 11px 12px; cursor: pointer; font-weight: 600; color: var(--mkc-text); }
.mkc-quiz-opt span { width: 26px; height: 26px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--mkc-tint); color: var(--mkc-theme); font-weight: 800; font-size: 12px; flex: 0 0 auto; }
.mkc-quiz-opt.is-on { border-color: var(--mkc-theme); background: var(--mkc-tint); color: var(--mkc-ink); }
.mkc-quiz-opt.is-on span { background: var(--mkc-theme); color: #fff; }
.mkc-quiz-result { text-align: center; padding: 26px 18px; }
.mkc-quiz-result > b { display: block; font-size: 20px; color: var(--mkc-ink); margin-top: 6px; }
.mkc-quiz-score { font-size: 54px; font-weight: 900; line-height: 1; color: var(--mkc-theme); letter-spacing: -.03em; }
.mkc-quiz-score small { font-size: 18px; color: var(--mkc-muted); font-weight: 800; }
.mkc-quiz-result.ok .mkc-quiz-score { color: #059669; }
.mkc-quiz-result.no .mkc-quiz-score { color: #dc2626; }

/* ------------------------------------------------------------------ 1.2.0: id check */
.mkc-kyc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 8px; }
.mkc-kyc-tile { background: #fff; border: 2px dashed var(--mkc-border); border-radius: 18px; padding: 14px 10px; text-align: center; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mkc-kyc-tile input { display: none; }
.mkc-kyc-tile .art { width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--mkc-tint); color: var(--mkc-theme); display: flex; align-items: center; justify-content: center; font-size: 26px; overflow: hidden; margin-bottom: 4px; }
.mkc-kyc-tile .art img { width: 100%; height: 100%; object-fit: cover; }
.mkc-kyc-tile b { color: var(--mkc-ink); font-size: 13px; }
.mkc-kyc-tile small { color: var(--mkc-muted); font-size: 11.5px; font-weight: 600; }
.mkc-kyc-tile.has { border-style: solid; border-color: #a7f3d0; }

/* ------------------------------------------------------------------ 1.2.0: trust, team, help desk */
.mkc-trusted { display: inline-flex; gap: 4px; align-items: center; font-size: 11px; font-weight: 800; color: #047857; background: #d1fae5; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 4px; }
.mkc-code { font-size: 26px; font-weight: 900; letter-spacing: 4px; text-align: center; color: var(--mkc-ink); background: var(--mkc-tint); border: 1.5px dashed var(--mkc-border); border-radius: 16px; padding: 12px; }
.mkc-chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; gap: 8px; }
.mkc-filter.is-on .fa-solid { color: #fff; }
.mkc-attach { display: flex; gap: 8px; align-items: center; justify-content: center; border: 1.5px dashed var(--mkc-border); border-radius: 14px; padding: 12px; color: var(--mkc-theme); font-weight: 700; font-size: 14px; cursor: pointer; }
.mkc-attach input { display: none; }
.mkc-ref { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--mkc-tint-0); color: var(--mkc-ink); font-weight: 700; font-size: 13.5px; }
.mkc-ref i { color: var(--mkc-theme); }
.mkc-chat { display: flex; flex-direction: column; gap: 10px; padding-bottom: 90px; }
.mkc-bubble { max-width: 84%; border-radius: 18px; padding: 10px 13px; font-size: 14.5px; line-height: 1.45; box-shadow: var(--mkc-shadow); word-break: break-word; }
.mkc-bubble.me { align-self: flex-end; background: var(--mkc-grad); color: #fff; border-bottom-right-radius: 6px; }
.mkc-bubble.them { align-self: flex-start; background: #fff; color: var(--mkc-text); border-bottom-left-radius: 6px; }
.mkc-bubble img { display: block; max-width: 100%; border-radius: 12px; margin-top: 8px; cursor: pointer; }
.mkc-bubble a { color: inherit; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; margin-top: 6px; }
.mkc-bubble small { display: block; font-size: 11px; opacity: .75; margin-top: 4px; }
.mkc-bubble small.who { margin: 0 0 4px; font-weight: 800; color: var(--mkc-theme); opacity: 1; }
.mkc-reply { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 560px; z-index: 35; display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px calc(10px + var(--mkc-safe-b)); background: #fff; border-top: 1px solid var(--mkc-line); }
.mkc-reply .mkc-textarea { flex: 1; min-height: 44px; max-height: 120px; margin: 0; resize: none; }
.mkc-reply .mkc-btn { width: 46px; height: 46px; padding: 0; justify-content: center; flex: 0 0 auto; }
.mkc-reply .mkc-icon-btn { flex: 0 0 auto; cursor: pointer; }
.mkc-ask-link { display: inline-flex; gap: 5px; align-items: center; font-size: 12px; font-weight: 700; margin-top: 4px; }

/* ------------------------------------------------------------------ 1.3.0: type, focus, motion */
/* One display face (Baloo 2 by Ek Type, bundled) for money and headings: rewards, balances, scores and screen
   titles. Body text stays in the phone's own font. Countdowns keep the system face for steady digits. */
.mkc-top-title h1, .mkc-wallet-amount, .mkc-wallet-mini b, .mkc-hero h2, .mkc-hero-reward b, .mkc-reward b, .mkc-stat b, .mkc-profile h2,
.mkc-auth-brand h1, .mkc-auth-card h2, .mkc-sec h3, .mkc-sheet h3, .mkc-empty b, .mkc-celebrate b, .mkc-quiz-score, .mkc-code, .mkc-pod .block,
.mkc-pace-grid b, .mkc-summary div.total, .mkc-quiz-result > b, .mkc-start h3 {
    font-family: var(--mkc-font-display); font-weight: 800; letter-spacing: 0;
}
.mkc-top-title h1 { font-size: 21px; line-height: 1.15; padding-top: 2px; }
.mkc-sec h3 { font-size: 18px; line-height: 1.2; }
.mkc-wallet-amount { font-size: 42px; line-height: 1; margin: 8px 0 14px; }
.mkc-hero h2 { font-size: 24px; line-height: 1.15; }
.mkc-hero-reward b { font-size: 36px; line-height: .95; }
.mkc-reward b { font-size: 17px; line-height: 1.1; padding: 8px 12px 6px; }
.mkc-stat b, .mkc-pace-grid b { font-size: 19px; line-height: 1.15; }
.mkc-wallet-mini b { font-size: 17px; line-height: 1.2; }
.mkc-auth-brand h1 { font-size: 30px; line-height: 1.1; }
.mkc-auth-card h2, .mkc-sheet h3 { font-size: 21px; line-height: 1.2; }
.mkc-empty b { font-size: 19px; line-height: 1.2; }
.mkc-profile h2 { font-size: 23px; line-height: 1.15; }

:where(.mkc-app, #mkc-sheet-root) :is(a, button, [tabindex], label.mkc-upload-add, label.mkc-kyc-tile, label.mkc-attach):focus-visible {
    outline: 3px solid var(--mkc-theme); outline-offset: 2px; border-radius: 12px;
}
.mkc-nav a:focus-visible i { outline: 3px solid var(--mkc-theme); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Leaderboard podium: the amount style must not reach the avatar's initials. */
.mkc-pod > span:not(.mkc-avatar) { display: block; font-size: 12.5px; font-weight: 800; color: #059669; }
.mkc-pod > .mkc-avatar { color: #fff; font-weight: 800; }

/* The confirmation toast sits under the top bar, never over a screen title, and is fully gone when hidden. */
.mkc-toast { top: calc(72px + var(--mkc-safe-t)); opacity: 0; visibility: hidden; transform: translate(-50%, -10px); transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1), visibility .2s; pointer-events: none; }
.mkc-toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Offline notice. */
.mkc-offline { position: fixed; left: 50%; transform: translateX(-50%); top: 0; width: 100%; max-width: 560px; z-index: 95; background: #1e1b4b; color: #fff; font-size: 13px; font-weight: 700;
    text-align: center; padding: calc(6px + var(--mkc-safe-t)) 12px 6px; display: none; }
.mkc-offline.is-on { display: block; }
.mkc-offline i { margin-right: 6px; color: #fbbf24; }

/* Getting started: a real sequence, so the steps are numbered. */
.mkc-start { background: #fff; border-radius: var(--mkc-radius); box-shadow: var(--mkc-shadow); padding: 16px; margin-bottom: 14px; }
.mkc-start-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.mkc-start h3 { margin: 0; font-size: 18px; line-height: 1.2; color: var(--mkc-ink); }
.mkc-start-count { font-size: 12.5px; font-weight: 800; color: var(--mkc-theme); background: var(--mkc-tint); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.mkc-start ol { list-style: none; margin: 10px 0 0; padding: 0; counter-reset: step; }
.mkc-start li { counter-increment: step; display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--mkc-line); cursor: pointer; }
.mkc-start li:first-child { border-top: 0; }
.mkc-start li::before { content: counter(step); width: 30px; height: 30px; border-radius: 50%; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px; color: var(--mkc-theme); background: var(--mkc-tint); border: 1.5px solid var(--mkc-border); }
.mkc-start li.done::before { content: '\f00c'; font-family: "Font Awesome 6 Free"; font-weight: 900; background: #10b981; border-color: #10b981; color: #fff; font-size: 12px; }
.mkc-start li div { flex: 1; min-width: 0; }
.mkc-start li b { display: block; color: var(--mkc-ink); font-size: 14.5px; }
.mkc-start li span { display: block; color: var(--mkc-muted); font-size: 12.5px; }
.mkc-start li.done b { color: var(--mkc-muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* Images that fail to load (a deleted file, a bad link) show a calm placeholder instead of a broken icon. */
.mkc-img-missing { display: flex !important; align-items: center; justify-content: center; background: var(--mkc-tint); color: var(--mkc-muted); font-size: 20px; }
