/* Panel pengelola mandiri — kerangka, login, dan pengganti gaya bawaan wp-admin */
.tkpp-body {
	margin: 0; background: #ececec; color: #111;
	font: 14px/1.5 "Montserrat", -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
}
.tkpp-body *, .tkpp-body *::before, .tkpp-body *::after { box-sizing: border-box; }
.tkpp-body a { color: #c81d16; }
.tkpp-body .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kerangka */
.tkpp-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.tkpp-side { background: #0f1011; color: #fff; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.tkpp-brand { padding: 24px 22px 20px; border-bottom: 1px solid #222326; }
.tkpp-brand-name { display: block; font-weight: 800; font-size: 18px; line-height: 1.2; }
.tkpp-brand-sub { display: block; color: #8b8f95; font-size: 12px; margin-top: 4px; }
.tkpp-nav { display: flex; flex-direction: column; padding: 14px 12px; gap: 2px; flex: 1; overflow-y: auto; }
.tkpp-nav a { color: #c9ccd1; text-decoration: none; padding: 11px 14px; border-radius: 10px; font-weight: 500; }
.tkpp-nav a:hover { background: #1b1c1e; color: #fff; }
.tkpp-nav a.is-active { background: #e3231b; color: #fff; font-weight: 600; }
.tkpp-user { padding: 16px 22px 22px; border-top: 1px solid #222326; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.tkpp-user span { display: flex; flex-direction: column; color: #8b8f95; }
.tkpp-user b { color: #fff; font-weight: 600; }
.tkpp-user a { color: #fff; border: 1px solid #3a3c40; padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.tkpp-main { padding: 8px 28px 48px; min-width: 0; }
.tkpp-top { display: none; }
.tkpp-main .tkp-wrap { margin: 0; max-width: 1200px; }

/* Pengganti kelas bawaan wp-admin */
.tkpp-body .button {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	font: 500 13px/1 "Montserrat", sans-serif; color: #111; background: #fff;
	border: 1px solid #c9c9c9; border-radius: 999px; padding: 9px 16px; min-height: 36px;
	cursor: pointer; text-decoration: none; white-space: nowrap;
}
.tkpp-body .button:hover { border-color: #111; }
.tkpp-body .button:focus-visible, .tkpp-body a:focus-visible { outline: 2px solid #e3231b; outline-offset: 2px; }
.tkpp-body .button-primary { background: #e3231b; border-color: #e3231b; color: #fff; }
.tkpp-body .button-primary:hover { background: #c81d16; border-color: #c81d16; }
.tkpp-body .button-small { padding: 5px 10px; min-height: 28px; font-size: 12px; }
.tkpp-body .button-large { padding: 12px 24px; min-height: 44px; font-size: 14px; }
.tkpp-body .button.disabled { opacity: .5; pointer-events: none; }
.tkpp-body .button[disabled] { opacity: .6; cursor: wait; }
.tkpp-body input:not([type=checkbox]):not([type=radio]):not([type=color]), .tkpp-body select, .tkpp-body textarea {
	font: 14px "Montserrat", sans-serif; color: #111; background: #fff;
	border: 1px solid #c9c9c9; border-radius: 10px; padding: 9px 12px; min-height: 40px; max-width: 100%;
}
.tkpp-body input:focus, .tkpp-body select:focus, .tkpp-body textarea:focus { outline: 2px solid #e3231b; outline-offset: 0; border-color: transparent; }
.tkpp-body input[type=color] { height: 40px; width: 64px; border: 1px solid #c9c9c9; border-radius: 10px; padding: 2px; background: #fff; }
.tkpp-body .widefat { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e1e1e1; border-radius: 12px; overflow: hidden; }
.tkpp-body .widefat th, .tkpp-body .widefat td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; font-size: 13px; }
.tkpp-body .widefat thead th { background: #f6f6f6; font-weight: 600; color: #444; }
.tkpp-body .widefat tfoot th { background: #f6f6f6; }
.tkpp-body .striped > tbody > tr:nth-child(odd) { background: #fafafa; }
.tkpp-body .notice { background: #fff; border-left: 4px solid #1f8f4e; padding: 2px 14px; margin: 0 0 16px; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.tkpp-body .notice p { margin: 10px 0; }
.tkpp-body .notice-error { border-left-color: #e3231b; }
.tkpp-body details summary { list-style: none; }
.tkpp-body details summary::-webkit-details-marker { display: none; }
.tkpp-body details summary::after { content: " +"; color: #e3231b; }
.tkpp-body details[open] summary::after { content: " −"; }

/* Login */
.tkpp-login {
	min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
	background: #0f1011 var(--tkpp-bg, none) center / cover no-repeat; position: relative;
}
.tkpp-login::before { content: ""; position: absolute; inset: 0; background: rgba(8, 9, 10, .72); }
.tkpp-login-card { position: relative; width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 32px 28px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); }
.tkpp-login-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #e3231b; }
.tkpp-login-card h1 { margin: 6px 0 22px; font-size: 26px; font-weight: 800; line-height: 1.15; }
.tkpp-login-form { display: flex; flex-direction: column; gap: 14px; }
.tkpp-login-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: #444; }
.tkpp-login-form input:not([type=checkbox]) { width: 100%; min-height: 46px !important; }
.tkpp-remember { flex-direction: row !important; align-items: center; gap: 8px !important; }
.tkpp-login-btn {
	display: block; width: 100%; text-align: center; text-decoration: none;
	background: #e3231b; color: #fff !important; border: 0; border-radius: 999px;
	font: 600 15px "Montserrat", sans-serif; padding: 14px; cursor: pointer; margin-top: 4px;
}
.tkpp-login-btn:hover { background: #c81d16; }
.tkpp-login-error { background: #fde8e7; color: #9b1510; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 0 0 16px; }
.tkpp-login-help { margin: 18px 0 0; font-size: 13px; text-align: center; color: #666; }

/* HP: menu samping jadi laci */
@media (max-width: 900px) {
	.tkpp-shell { grid-template-columns: 1fr; }
	.tkpp-side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 30; transform: translateX(-100%); transition: transform .2s ease; }
	.tkpp-open .tkpp-side { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.45); }
	.tkpp-top { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20; background: #0f1011; color: #fff; margin: 0 -16px; padding: 10px 16px; }
	.tkpp-top-name { font-weight: 700; }
	.tkpp-burger { background: none; border: 0; width: 40px; height: 40px; padding: 9px; cursor: pointer; }
	.tkpp-burger span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }
	.tkpp-main { padding: 0 16px 40px; }
	.tkpp-main .tkp-wrap .tkp-head { margin-top: 14px; padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { .tkpp-side { transition: none; } }
.tkpp-body .tkp-card-name { color: #111; }

/* Langganan */
.tkpp-nav a.is-locked { opacity: .55; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tkpp-lock { font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; }
.tkpp-upsell { max-width: 560px; }
.tkpp-upsell h2 { font-size: 20px; margin: 10px 0 8px; }
.tkpp-upsell-tag { display: inline-block; background: #e3231b; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tkpp-bill { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; background: #fff4e5; border: 1px solid #f5c983; color: #6b4300; }
.tkpp-bill p { margin: 0; font-weight: 500; }
.tkpp-bill a { background: #e3231b; color: #fff; text-decoration: none; font-weight: 600; padding: 8px 16px; border-radius: 999px; white-space: nowrap; }
.tkpp-bill-grace, .tkpp-bill-suspended { background: #fdecea; border-color: #f1a49f; color: #8a1712; }
.tkpp-bank { background: #f2f3f5; border-radius: 10px; padding: 12px 14px; font-weight: 500; }

/* Pusat Kendali */
.tkh-st { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; background: #e8f6ee; color: #146c3b; }
.tkh-st-free { background: #eef0f3; color: #4a4f57; }
.tkh-st-due { background: #fff4e5; color: #8a5300; }
.tkh-st-grace { background: #fdecea; color: #a11a14; }
.tkh-st-suspended { background: #1b1c1f; color: #fff; }
.tkh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin-bottom: 16px; }
.tkh-grid > form, .tkh-grid > div > form, .tkh-grid .tkp-panel { margin: 0 0 16px; }
.tkh-narrow { max-width: 820px; }
.tkh-prefix { display: flex; align-items: stretch; border: 1px solid #c9ccd1; border-radius: 8px; overflow: hidden; background: #fff; }
.tkh-prefix i { font-style: normal; color: #6b7078; background: #f2f3f5; padding: 0 10px; display: flex; align-items: center; font-size: 13px; white-space: nowrap; }
.tkh-prefix input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; min-width: 0; }
.tkh-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; align-items: start; }
.tkh-plans > form.tkp-panel { margin: 0; }
.tkh-plan-new { border-style: dashed !important; }
.tkh-plan-del { margin: -8px 0 0; }
.tkp-h2 small { font-size: 13px; font-weight: 500; color: #6b7078; margin-left: 6px; }
.tkh-scroll { overflow-x: auto; }
.tkh-clients td { vertical-align: middle; }
.tkh-actions { white-space: nowrap; text-align: right; }
.tkh-account-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e3e5e8; }
.tkh-end { display: flex; align-items: flex-end; }
@media (max-width: 960px) {
	.tkh-grid { grid-template-columns: 1fr; }
	.tkh-plans { grid-template-columns: 1fr; }
}
.tkpp-body .button-link { background: none; border: 0; padding: 0; font: inherit; font-size: 13px; color: #b3261e; text-decoration: underline; cursor: pointer; }
.tkpp-subpay { display: grid; gap: 8px; } .tkpp-subpay .tkpp-login-btn { display: block; text-align: center; }
