/* ==========================================================================
   Noken Core — Dashboard My Account (gaya aplikasi, terang/gelap)
   ========================================================================== */

/* 1. Token warna ------------------------------------------------------------ */
.nk-acc {
	--nk-accent: #3b82f6;
	--nk-grad-from: #8b5cf6;
	--nk-grad-to: #3b82f6;
	--nk-dark-bg: #0a0f2c;
	--nk-light-bg: #f1f5f9;
	--nk-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--nk-font-head: var(--nk-font);

	--bg-body: var(--nk-light-bg);
	--bg-sidebar: #ffffff;
	--bg-header: rgba(255, 255, 255, .8);
	--bg-card: #ffffff;
	--bg-card-hover: #f8fafc;
	--bg-input: #f1f5f9;
	--bg-dropdown: #ffffff;
	--text-primary: #1e293b;
	--text-secondary: #64748b;
	--text-muted: #94a3b8;
	--border-color: #e2e8f0;
	--border-sidebar: #e2e8f0;
	--accent: var(--nk-accent);
	--accent-bg: color-mix(in srgb, var(--nk-accent) 10%, #fff);
	--shadow-card: 0 1px 3px rgba(0, 0, 0, .05);
	--shadow-dropdown: 0 10px 25px -5px rgba(0, 0, 0, .15);
	--grid: #eef2f7;
	--point-bg: #ffffff;
	--r: 16px;

	font-family: var(--nk-font);
	color: var(--text-primary);
	background-color: var(--bg-body);
	-webkit-font-smoothing: antialiased;
	transition: background-color .3s ease, color .3s ease;
}
.nk-dark .nk-acc {
	--bg-body: var(--nk-dark-bg);
	--bg-sidebar: var(--nk-dark-bg);
	--bg-header: color-mix(in srgb, var(--nk-dark-bg) 80%, transparent);
	--bg-card: rgba(30, 41, 59, .4);
	--bg-card-hover: rgba(30, 41, 59, .6);
	--bg-input: color-mix(in srgb, var(--nk-dark-bg) 70%, #3b4a7a);
	--bg-dropdown: #0f172a;
	--text-primary: #ffffff;
	--text-secondary: #cbd5e1;
	--text-muted: #94a3b8;
	--border-color: rgba(255, 255, 255, .08);
	--border-sidebar: rgba(30, 58, 138, .3);
	--accent: color-mix(in srgb, var(--nk-accent) 85%, #fff);
	--accent-bg: color-mix(in srgb, var(--nk-accent) 20%, transparent);
	--shadow-card: 0 8px 32px rgba(0, 0, 0, .3);
	--shadow-dropdown: 0 10px 25px -5px rgba(0, 0, 0, .6);
	--grid: rgba(255, 255, 255, .05);
	--point-bg: var(--nk-dark-bg);
	color-scheme: dark;
}
.nk-acc *, .nk-acc *::before, .nk-acc *::after { box-sizing: border-box; }
.nk-acc h1, .nk-acc h2, .nk-acc h3, .nk-acc h4 { font-family: var(--nk-font-head); color: var(--text-primary); margin: 0; line-height: 1.3; }
.nk-acc a { color: var(--accent); text-decoration: none; }
.nk-acc img { max-width: 100%; height: auto; }
.nk-acc .nk-ico { flex-shrink: 0; display: inline-block; vertical-align: middle; }
.nk-acc .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

.nk-acc ::-webkit-scrollbar { width: 6px; height: 6px; }
.nk-acc ::-webkit-scrollbar-track { background: transparent; }
.nk-acc ::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

/* Pola garis halus (mode gelap) */
.nk-bglines {
	position: fixed; inset: 0; pointer-events: none; opacity: 0; z-index: 0; transition: opacity .3s;
	background-image:
		repeating-linear-gradient(45deg, rgba(59, 130, 246, .03) 0, rgba(59, 130, 246, .03) 1px, transparent 1px, transparent 20px),
		repeating-linear-gradient(-45deg, rgba(59, 130, 246, .03) 0, rgba(59, 130, 246, .03) 1px, transparent 1px, transparent 20px);
}
.nk-dark .nk-bglines { opacity: 1; }
.nk-acc--inline .nk-bglines { position: absolute; }

/* 2. Kerangka --------------------------------------------------------------- */
body.nk-acc--app { margin: 0; height: 100vh; overflow: hidden; }
body.nk-acc--app.admin-bar { height: calc(100vh - 32px); }
.nk-shell { position: relative; display: flex; height: 100%; min-height: 0; }
body.nk-acc--app .nk-shell { height: 100vh; }
body.nk-acc--app.admin-bar .nk-shell { height: calc(100vh - 32px); }
.nk-acc--inline.nk-shell { min-height: 82vh; height: auto; max-width: 1480px; margin: 24px auto 48px; border: 1px solid var(--border-color); border-radius: 22px; overflow: hidden; box-shadow: 0 20px 50px rgba(15, 23, 42, .08); }

/* Sidebar */
.nk-side { position: relative; z-index: 20; width: 256px; flex-shrink: 0; display: flex; flex-direction: column; background: var(--bg-sidebar); border-right: 1px solid var(--border-sidebar); transition: background-color .3s, border-color .3s, transform .3s; }
.nk-side__brand { height: 80px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--border-sidebar); }
.nk-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text-primary) !important; min-width: 0; }
.nk-brand__mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--nk-accent); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--nk-accent) 35%, transparent); }
.nk-brand__name { font-family: var(--nk-font-head); font-size: 19px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nk-brand__logo { max-height: 40px; width: auto; }
.nk-side__close { display: none !important; }
.nk-side__nav { flex: 1; overflow-y: auto; padding: 24px 16px; display: grid; align-content: start; gap: 4px; }
.nk-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; font-weight: 500; font-size: 14px; color: var(--text-secondary) !important; transition: all .2s ease; }
.nk-link:hover { background: var(--bg-card-hover); color: var(--text-primary) !important; }
.nk-link.is-active { background: linear-gradient(90deg, color-mix(in srgb, var(--nk-accent) 92%, #fff) 0%, var(--nk-accent) 100%); color: #fff !important; box-shadow: 0 4px 15px color-mix(in srgb, var(--nk-accent) 40%, transparent); }
.nk-link__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px; font-style: normal; font-weight: 700; line-height: 20px; text-align: center; background: #ef4444; color: #fff; }

.nk-upgrade { position: relative; overflow: hidden; margin: 16px; padding: 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(49, 46, 129, .85), rgba(30, 58, 138, .85)); border: 1px solid rgba(29, 78, 216, .5); }
.nk-upgrade__glow { position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: rgba(59, 130, 246, .3); filter: blur(24px); }
.nk-upgrade__title { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: #fbbf24; }
.nk-upgrade__title strong { color: #fff; font-size: 14px; }
.nk-upgrade p { margin: 0 0 12px; font-size: 12px; line-height: 1.6; color: #bfdbfe; }
.nk-upgrade__btn { display: block; padding: 8px; border-radius: 8px; text-align: center; font-size: 12px; font-weight: 600; color: #fff !important; background: #2563eb; box-shadow: 0 8px 18px rgba(30, 58, 138, .5); transition: background .2s; }
.nk-upgrade__btn:hover { background: #3b82f6; }

.nk-profile { position: relative; padding: 16px; border-top: 1px solid var(--border-sidebar); }
.nk-profile__btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 4px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; text-align: left; border-radius: 12px; font: inherit; }
.nk-profile__btn:hover { background: var(--bg-card-hover); }
.nk-profile__av { width: 40px; height: 40px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--nk-accent) 50%, transparent); }
.nk-profile__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nk-profile__txt strong { font-size: 14px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nk-profile__txt small { font-size: 12px; color: var(--text-muted); }

/* Dropdown */
.nk-dropdown { position: absolute; z-index: 9999; right: 0; top: calc(100% + 8px); width: 240px; padding: 6px 0; background: var(--bg-dropdown); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: var(--shadow-dropdown); opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.95); transition: all .2s cubic-bezier(.4, 0, .2, 1); pointer-events: none; }
.nk-dropdown--up { top: auto; bottom: calc(100% - 4px); left: 16px; right: 16px; width: auto; transform: translateY(10px) scale(.95); }
[data-nk-dropdown].is-open .nk-dropdown { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.nk-dropdown__item { display: flex; align-items: center; gap: 12px; margin: 2px 6px; padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--text-secondary) !important; transition: all .15s; }
.nk-dropdown__item:hover { background: var(--accent-bg); color: var(--accent) !important; }
.nk-dropdown__item.is-danger:hover { background: rgba(239, 68, 68, .1); color: #ef4444 !important; }

.nk-side-overlay { display: none; }

/* Main */
.nk-main { position: relative; z-index: 10; flex: 1; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.nk-header { flex-shrink: 0; height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; background: var(--bg-header); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-sidebar); transition: background-color .3s, border-color .3s; }
.nk-header__left { flex: 1; display: flex; align-items: center; gap: 16px; min-width: 0; }
.nk-header__right { display: flex; align-items: center; gap: 12px; }
.nk-burger { display: none !important; }
.nk-search { position: relative; width: 100%; max-width: 448px; }
.nk-search .nk-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.nk-search input { width: 100%; padding: 10px 16px 10px 44px; border-radius: 12px; font-size: 14px; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-primary); transition: all .3s; font-family: inherit; }
.nk-search input::placeholder { color: var(--text-muted); }
.nk-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }

.nk-iconbtn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--text-secondary) !important; cursor: pointer; transition: .2s; }
.nk-iconbtn:hover { color: var(--text-primary) !important; }
.nk-iconbtn--box { background: var(--bg-input); border: 1px solid var(--border-color); }
.nk-iconbtn--box:hover { border-color: var(--accent); color: var(--accent) !important; }
.nk-dot { position: absolute; top: -4px; right: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #ef4444; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; border: 2px solid var(--bg-sidebar); }

.nk-theme { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg-input); border: 1px solid var(--border-color); }
.nk-theme__btn { display: grid; place-items: center; padding: 6px 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--text-secondary); cursor: pointer; transition: all .2s; }
.nk-theme__btn:hover { background: var(--bg-card-hover); color: var(--accent); }
.nk-theme__btn.is-active { background: var(--accent-bg); color: var(--accent); border-color: var(--accent); }

.nk-btn-grad { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 24px; border: 0; border-radius: 12px; color: #fff !important; font-size: 14px; font-weight: 600; background: linear-gradient(90deg, var(--nk-grad-from) 0%, var(--nk-grad-to) 100%); box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--nk-grad-from) 60%, transparent); transition: all .3s; cursor: pointer; white-space: nowrap; }
.nk-btn-grad:hover { filter: brightness(.95); box-shadow: 0 0 20px color-mix(in srgb, var(--nk-grad-from) 50%, transparent); }
.nk-btn-soft { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border-radius: 12px; font-weight: 500; font-size: 14px; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-secondary) !important; transition: .2s; }
.nk-btn-soft:hover { border-color: var(--accent); color: var(--accent) !important; }
.nk-btn-block { width: 100%; padding: 12px; }
.nk-btn-sm { padding: 6px 12px; font-size: 12px; }

.nk-content { flex: 1; overflow-y: auto; padding: 24px; scroll-behavior: smooth; container: nkmain / inline-size; }
.nk-acc--inline .nk-content { overflow: visible; }

/* 3. Kartu & grid ------------------------------------------------------------ */
.nk-card { background: var(--bg-card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: var(--r); box-shadow: var(--shadow-card); transition: all .3s ease; }
.nk-card:hover { border-color: var(--accent); }
.nk-card--pad { padding: 24px; }
.nk-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.nk-card__head h3 { font-size: 16px; font-weight: 600; }
.nk-more { font-size: 12px; color: var(--accent) !important; }
.nk-more:hover { text-decoration: underline; }
.nk-acc .nk-select { width: auto; min-height: 0; flex-shrink: 0; padding: 6px 12px; font-size: 12px; border-radius: 8px; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-secondary); font-family: inherit; }

.nk-welcome { margin-bottom: 24px; }
.nk-welcome h1 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.nk-welcome p { margin: 0; font-size: 14px; color: var(--text-secondary); }

.nk-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; }
.nk-col-main, .nk-col-side { display: grid; gap: 24px; align-content: start; min-width: 0; }
.nk-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.nk-row--charts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nk-span-2 { grid-column: span 2; }

/* Statistik */
.nk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.nk-stat { padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.nk-stat__top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.nk-stat__top p { margin: 0; font-size: 12px; font-weight: 500; color: var(--text-secondary); }
.nk-stat__ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.nk-stat h3 { font-size: 20px; font-weight: 700; word-break: break-word; }
.nk-trend { margin: 8px 0 0; font-size: 10px; display: flex; align-items: center; gap: 4px; }
.nk-trend--up { color: #10b981; }
.nk-trend--down { color: #ef4444; }
.nk-trend--down .nk-ico { transform: rotate(180deg); }
.nk-trend--flat, .nk-trend--info { color: var(--text-muted); }
.nk-tint--teal { background: rgba(20, 184, 166, .2); color: #2dd4bf; }
.nk-tint--blue { background: rgba(59, 130, 246, .2); color: #60a5fa; }
.nk-tint--purple { background: rgba(168, 85, 247, .2); color: #c084fc; }
.nk-tint--indigo { background: rgba(99, 102, 241, .2); color: #818cf8; }
.nk-acc .nk-tint--teal { color: #0d9488; }
.nk-dark .nk-acc .nk-tint--teal { color: #2dd4bf; }
.nk-acc .nk-tint--blue { color: #2563eb; }
.nk-dark .nk-acc .nk-tint--blue { color: #60a5fa; }
.nk-acc .nk-tint--purple { color: #9333ea; }
.nk-dark .nk-acc .nk-tint--purple { color: #c084fc; }
.nk-acc .nk-tint--indigo { color: #4f46e5; }
.nk-dark .nk-acc .nk-tint--indigo { color: #818cf8; }

/* Grafik garis */
.nk-linechart { position: relative; height: 224px; }
.nk-linechart__svg { width: 100%; height: 100%; overflow: visible; display: block; }
.nk-linechart__svg .grid { stroke: var(--grid); stroke-width: 1; }
.nk-linechart__svg .lbl { fill: var(--text-muted); font-size: 10px; font-family: var(--nk-font); }
.nk-linechart__svg .line { fill: none; stroke: var(--nk-accent); stroke-width: 2; }
.nk-linechart__svg .pt { fill: var(--point-bg); stroke: var(--nk-accent); stroke-width: 2; transition: r .15s; }
.nk-linechart__svg .pt.is-hot { r: 6; }
.nk-linechart__svg .guide { stroke: var(--nk-accent); stroke-dasharray: 3 3; opacity: 0; transition: opacity .15s; }
.nk-linechart__svg .guide.is-on { opacity: .5; }
.nk-linechart__tip { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 8px 12px; border-radius: 8px; background: #4f46e5; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.3; text-align: center; box-shadow: 0 6px 16px rgba(79, 70, 229, .5); pointer-events: none; white-space: nowrap; transition: left .15s; }
.nk-linechart__tip span { display: block; font-size: 10px; font-weight: 400; opacity: .8; }

/* Donat */
.nk-donut { position: relative; height: 160px; display: grid; place-items: center; margin-bottom: 24px; }
.nk-donut__svg { width: 160px; height: 160px; transform: rotate(-90deg); overflow: visible; }
.nk-donut__svg circle { fill: none; stroke-width: 15; transition: stroke-width .2s; }
.nk-donut__svg circle.track { stroke: var(--grid); }
.nk-donut__svg circle.seg:hover { stroke-width: 18; }
.nk-donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.nk-donut__center strong { font-size: 18px; font-weight: 700; }
.nk-donut__center span { font-size: 10px; color: var(--text-muted); }
.nk-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nk-legend li { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.nk-legend span { display: flex; align-items: center; color: var(--text-secondary); }
.nk-legend i { width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
.nk-legend strong { font-weight: 500; color: var(--text-primary); }
.nk-legend em { font-style: normal; color: var(--text-muted); }

/* Tabel ringkas */
.nk-table { display: grid; gap: 16px; }
.nk-table__head { display: flex; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); font-size: 12px; color: var(--text-muted); }
.nk-table__row { display: flex; align-items: center; font-size: 14px; color: var(--text-primary) !important; border-radius: 8px; }
a.nk-table__row:hover { background: var(--bg-card-hover); }
.nk-table .w-50 { width: 50%; }
.nk-table .w-25 { width: 25%; }
.nk-table .r { text-align: right; }
.nk-prod { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--text-primary) !important; font-weight: 500; }
.nk-prod__img { width: 32px !important; height: 32px !important; border-radius: 8px; object-fit: cover; background: var(--bg-input); flex-shrink: 0; }
.nk-trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nk-muted { color: var(--text-secondary); }
.nk-strong { font-weight: 500; }
.nk-empty { margin: 0; color: var(--text-muted); font-size: 14px; }

.nk-badge { display: inline-block; padding: 4px 8px; border-radius: 6px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.nk-badge--emerald { background: #d1fae5; color: #059669; }
.nk-badge--blue { background: #dbeafe; color: #2563eb; }
.nk-badge--purple { background: #ede9fe; color: #7c3aed; }
.nk-badge--amber { background: #fef3c7; color: #d97706; }
.nk-badge--red { background: #fee2e2; color: #dc2626; }
.nk-dark .nk-acc .nk-badge--emerald { background: rgba(16, 185, 129, .15); color: #34d399; }
.nk-dark .nk-acc .nk-badge--blue { background: rgba(59, 130, 246, .15); color: #60a5fa; }
.nk-dark .nk-acc .nk-badge--purple { background: rgba(139, 92, 246, .15); color: #a78bfa; }
.nk-dark .nk-acc .nk-badge--amber { background: rgba(245, 158, 11, .15); color: #fbbf24; }
.nk-dark .nk-acc .nk-badge--red { background: rgba(239, 68, 68, .15); color: #f87171; }

/* Panel keranjang (ala POS terminal) */
.nk-pos { display: flex; flex-direction: column; padding: 20px; }
.nk-tabs { display: flex; border-bottom: 1px solid var(--border-color); margin-bottom: 16px; }
.nk-tabs button { flex: 1; padding: 0 0 12px; border: 0; border-bottom: 2px solid transparent; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: .2s; }
.nk-tabs button:hover { color: var(--text-primary); }
.nk-tabs button.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.nk-tabs em { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 10px; background: var(--accent-bg); color: var(--accent); margin-left: 4px; }
.nk-tabpane[hidden] { display: none; }
.nk-cartlist { display: grid; gap: 16px; max-height: 340px; overflow-y: auto; padding-right: 4px; margin-bottom: 16px; }
.nk-cartitem { display: flex; align-items: center; gap: 12px; }
.nk-cartitem__img { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; overflow: hidden; display: grid; place-items: center; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-secondary); }
.nk-cartitem__img img { width: 100%; height: 100%; object-fit: cover; }
.nk-cartitem__txt { flex: 1; min-width: 0; }
.nk-cartitem__txt h4 { font-size: 14px; font-weight: 500; }
.nk-cartitem__txt h4 a { color: var(--text-primary) !important; }
.nk-cartitem__txt p { margin: 0; font-size: 12px; color: var(--text-secondary); }
.nk-qty { min-width: 32px; padding: 3px 6px; border-radius: 6px; text-align: center; font-size: 13px; font-weight: 600; background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-primary); }
.nk-cartitem__del { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--text-muted) !important; }
.nk-cartitem__del:hover { color: #f87171 !important; background: rgba(239, 68, 68, .1); }
.nk-summary { display: grid; gap: 8px; padding-top: 16px; margin-bottom: 16px; border-top: 1px solid var(--border-color); }
.nk-summary > div { display: flex; justify-content: space-between; font-size: 14px; }
.nk-summary span { color: var(--text-secondary); }
.nk-summary strong { font-weight: 500; }
.nk-summary .nk-summary__total { padding-top: 8px; border-top: 1px solid var(--border-color); font-size: 16px; font-weight: 700; }
.nk-summary__total span { color: var(--text-primary); }
.nk-summary__total strong { font-weight: 700; }
.nk-actions { display: grid; gap: 12px; }
.nk-emptybox { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 24px 8px; }
.nk-emptybox > span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); }
.nk-emptybox p { margin: 0; color: var(--text-secondary); font-size: 14px; }

/* Promo */
.nk-promo { position: relative; overflow: hidden; padding: 20px; background: linear-gradient(135deg, rgba(49, 46, 129, .9), rgba(30, 58, 138, .9)) !important; border-color: rgba(29, 78, 216, .5) !important; }
.nk-promo__ico { position: absolute; right: 8px; bottom: 0; opacity: .2; color: #fff; }
.nk-promo h3 { position: relative; color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.nk-promo p { position: relative; max-width: 70%; margin: 0 0 16px; font-size: 12px; color: #bfdbfe; }
.nk-promo__btn { position: relative; display: inline-block; padding: 8px 16px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #fff !important; background: #2563eb; transition: background .2s; }
.nk-promo__btn:hover { background: #3b82f6; }

/* 4. Halaman endpoint (Pesanan, Unduhan, Alamat, Detail akun) -------------- */
.nk-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.nk-pagehead h1 { font-size: 24px; font-weight: 700; }
.nk-crumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.nk-crumb a { color: var(--text-secondary) !important; }
.nk-crumb a:hover { color: var(--accent) !important; }
.nk-endpoint { font-size: 14px; line-height: 1.6; color: var(--text-secondary); }
.nk-endpoint p { margin: 0 0 1em; }
.nk-endpoint h2, .nk-endpoint h3 { font-size: 18px; margin: 0 0 14px; }
.nk-endpoint h2 + p, .nk-endpoint address { color: var(--text-secondary); }
.nk-endpoint address { font-style: normal; line-height: 1.7; padding: 16px; border-radius: 12px; background: var(--bg-input); border: 1px solid var(--border-color); }
.nk-endpoint mark { background: var(--accent-bg); color: var(--accent); padding: 1px 6px; border-radius: 6px; }

/* Tabel WooCommerce */
.nk-acc table.shop_table, .nk-acc table.woocommerce-orders-table, .nk-acc table.woocommerce-table, .nk-acc table.order_details { width: 100%; border-collapse: collapse; border: 0; margin: 0 0 20px; font-size: 14px; background: transparent; }
.nk-acc table.shop_table th, .nk-acc table.shop_table td { padding: 14px 12px; text-align: left; border: 0; border-bottom: 1px solid var(--border-color); color: var(--text-primary); vertical-align: middle; background: transparent; }
.nk-acc table.shop_table thead th { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: none; }
.nk-acc table.shop_table tbody tr:hover td { background: var(--bg-card-hover); }
.nk-acc table.shop_table tfoot th { color: var(--text-secondary); font-weight: 500; }
.nk-acc table.shop_table tfoot tr:last-child td, .nk-acc table.shop_table tfoot tr:last-child th { font-weight: 700; font-size: 15px; }
.nk-acc .woocommerce-orders-table__cell-order-number a { font-weight: 600; }
.nk-acc .woocommerce-orders-table__cell-order-actions .button { margin: 2px; }

/* Tombol & form */
.nk-acc .button, .nk-acc button.button, .nk-acc input[type="submit"], .nk-acc .woocommerce-Button, .nk-acc .woocommerce-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border: 0; border-radius: 12px; cursor: pointer;
	font: inherit; font-size: 14px; font-weight: 600; line-height: 1.2; color: #fff !important;
	background: linear-gradient(90deg, var(--nk-grad-from) 0%, var(--nk-grad-to) 100%); transition: all .3s;
}
.nk-acc .button:hover, .nk-acc input[type="submit"]:hover { box-shadow: 0 0 20px color-mix(in srgb, var(--nk-grad-from) 45%, transparent); }
.nk-acc .woocommerce-orders-table .button, .nk-acc .woocommerce-table--order-downloads .button { padding: 7px 14px; font-size: 12px; border-radius: 8px; background: var(--accent-bg); color: var(--accent) !important; }
.nk-acc .woocommerce-orders-table .button:hover { box-shadow: none; filter: brightness(.95); }
.nk-acc label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.nk-acc label .required { color: #ef4444; text-decoration: none; border: 0; }
.nk-acc input[type="text"], .nk-acc input[type="email"], .nk-acc input[type="tel"], .nk-acc input[type="password"], .nk-acc input[type="number"], .nk-acc input[type="url"], .nk-acc select, .nk-acc textarea, .nk-acc .select2-container .select2-selection {
	width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px; font: inherit; font-size: 14px;
	background: var(--bg-input); border: 1px solid var(--border-color); color: var(--text-primary); transition: all .2s; box-shadow: none;
}
.nk-acc input:focus, .nk-acc select:focus, .nk-acc textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.nk-acc input[type="checkbox"], .nk-acc input[type="radio"] { width: auto; min-height: 0; accent-color: var(--nk-accent); }
.nk-acc .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--text-primary); line-height: 22px; padding: 0; }
.nk-acc .select2-container--default .select2-selection--single .select2-selection__arrow { top: 9px; right: 8px; }
.nk-acc .form-row { margin: 0 0 16px; padding: 0; }
.nk-acc .form-row-first, .nk-acc .form-row-last { width: calc(50% - 8px); float: left; }
.nk-acc .form-row-last { float: right; }
.nk-acc .form-row-wide, .nk-acc .clear { clear: both; }
.nk-acc fieldset { margin: 24px 0; padding: 20px; border: 1px solid var(--border-color); border-radius: 14px; }
.nk-acc legend { padding: 0 8px; font-weight: 600; color: var(--text-primary); }
.nk-acc .woocommerce-form-row em, .nk-acc .description { display: block; margin-top: 6px; font-size: 12px; font-style: normal; color: var(--text-muted); }
.nk-acc .show-password-input { display: none; }
.nk-acc .password-input { display: block; position: relative; }
.nk-acc .woocommerce-password-strength { margin-top: 8px; padding: 6px 10px; border-radius: 8px; font-size: 12px; }
.nk-acc .woocommerce-password-strength.strong { background: rgba(16, 185, 129, .15); color: #10b981; }
.nk-acc .woocommerce-password-strength.short, .nk-acc .woocommerce-password-strength.bad { background: rgba(239, 68, 68, .12); color: #ef4444; }
.nk-acc .woocommerce-password-strength.good { background: rgba(245, 158, 11, .15); color: #d97706; }
.nk-acc::after, .nk-acc .woocommerce-address-fields__field-wrapper::after, .nk-acc form::after { content: ""; display: table; clear: both; }

/* Alamat */
.nk-acc .u-columns.addresses, .nk-acc .woocommerce-Addresses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.nk-acc .woocommerce-Address { padding: 20px; border-radius: 14px; border: 1px solid var(--border-color); background: var(--bg-card-hover); float: none; width: auto; }
.nk-acc .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.nk-acc .woocommerce-Address-title h2, .nk-acc .woocommerce-Address-title h3 { margin: 0; font-size: 16px; }
.nk-acc .woocommerce-Address-title .edit { font-size: 13px; font-weight: 600; }
.nk-acc .woocommerce-Address address { padding: 0; border: 0; background: none; }

/* Notifikasi */
.nk-acc .woocommerce-message, .nk-acc .woocommerce-info, .nk-acc .woocommerce-error, .nk-acc .woocommerce-notices-wrapper > div {
	list-style: none; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
	margin: 0 0 20px; padding: 14px 18px; border-radius: 12px; font-size: 14px; border: 1px solid; background: var(--bg-card);
}
.nk-acc .woocommerce-message { border-color: rgba(16, 185, 129, .35); color: #10b981; background: rgba(16, 185, 129, .08); }
.nk-acc .woocommerce-info { border-color: color-mix(in srgb, var(--nk-accent) 35%, transparent); color: var(--accent); background: var(--accent-bg); }
.nk-acc .woocommerce-error { border-color: rgba(239, 68, 68, .35); color: #ef4444; background: rgba(239, 68, 68, .08); display: block; }
.nk-acc .woocommerce-error li { margin: 2px 0; }
.nk-acc .woocommerce-message::before, .nk-acc .woocommerce-info::before, .nk-acc .woocommerce-error::before { display: none; }
.nk-acc .woocommerce-message .button, .nk-acc .woocommerce-info .button { order: 2; padding: 7px 14px; font-size: 12px; }

.nk-acc .woocommerce-pagination { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.nk-acc .woocommerce-pagination .button { background: var(--bg-input); color: var(--text-secondary) !important; border: 1px solid var(--border-color); }

/* Detail pesanan */
.nk-acc .woocommerce-order-details, .nk-acc .woocommerce-customer-details { margin-top: 24px; }
.nk-acc .woocommerce-customer-details .woocommerce-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.nk-acc .woocommerce-column { float: none; width: auto; }
.nk-acc .wc-item-meta { list-style: none; padding: 0; margin: 6px 0 0; font-size: 12px; color: var(--text-muted); }
.nk-acc .woocommerce-OrderUpdates { list-style: none; padding: 0; }

/* 5. Halaman masuk / daftar -------------------------------------------------- */
.nk-auth-wrap { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
body.nk-acc--app.admin-bar .nk-auth-wrap { min-height: calc(100vh - 32px); }
body.nk-acc--app:has(.nk-auth-wrap) { overflow: auto; height: auto; }
.nk-auth { position: relative; width: 100%; max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); border-radius: 24px; overflow: hidden; border: 1px solid var(--border-color); background: var(--bg-card); box-shadow: var(--shadow-dropdown); }
.nk-auth__aside { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 40px; color: #fff; background: linear-gradient(145deg, #312e81 0%, #1e3a8a 55%, var(--nk-dark-bg) 100%); }
.nk-auth__aside .nk-brand { color: #fff !important; }
.nk-auth__glow { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: color-mix(in srgb, var(--nk-grad-from) 50%, transparent); filter: blur(60px); }
.nk-auth__copy { position: relative; }
.nk-auth__copy h2 { color: #fff; font-size: 28px; font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
.nk-auth__copy p { margin: 0 0 24px; color: #bfdbfe; font-size: 15px; line-height: 1.6; }
.nk-auth__copy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nk-auth__copy li { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #e0e7ff; }
.nk-auth__copy li span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.nk-auth__back { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #c7d2fe !important; }
.nk-auth__back:hover { color: #fff !important; }
.nk-auth__main { padding: 40px; min-width: 0; }
.nk-auth__main h2 { font-size: 22px; margin-bottom: 18px; }
.nk-auth .u-columns.col2-set { display: block; }
.nk-auth .u-column1, .nk-auth .u-column2 { float: none; width: auto; }
.nk-auth .nk-authtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 24px; border-radius: 12px; background: var(--bg-input); border: 1px solid var(--border-color); }
.nk-auth .nk-authtabs button { padding: 10px; border: 0; border-radius: 9px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--text-secondary); cursor: pointer; }
.nk-auth .nk-authtabs button.is-active { background: var(--bg-card); color: var(--accent); box-shadow: var(--shadow-card); }
.nk-dark .nk-auth .nk-authtabs button.is-active { background: var(--accent-bg); }
.nk-auth.has-tabs .u-column1 > h2, .nk-auth.has-tabs .u-column2 > h2 { display: none; }
.nk-auth .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; }
.nk-auth .woocommerce-form-login__submit, .nk-auth .woocommerce-form-register__submit, .nk-auth .woocommerce-ResetPassword .button { width: 100%; padding: 13px; }
.nk-auth .lost_password { margin: 14px 0 0; text-align: center; font-size: 13px; }
.nk-auth form.login, .nk-auth form.register { margin: 0; padding: 0; border: 0; }
.nk-auth-wrap > .woocommerce > .woocommerce-ResetPassword, .nk-auth-wrap > .woocommerce > form { max-width: 480px; margin: 0 auto; padding: 32px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border-color); box-shadow: var(--shadow-dropdown); }
.nk-auth-wrap > .woocommerce { width: 100%; }

/* 6. Responsif --------------------------------------------------------------- */
/* Grid dashboard mengikuti lebar area konten (bukan layar) — cocok untuk mode layar penuh & di dalam tema */
@container nkmain (max-width: 1120px) {
	.nk-grid { grid-template-columns: 1fr; }
	.nk-col-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@container nkmain (max-width: 820px) {
	.nk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nk-row, .nk-row--charts { grid-template-columns: 1fr; }
	.nk-span-2 { grid-column: auto; }
}
@container nkmain (max-width: 600px) {
	.nk-col-side { grid-template-columns: 1fr; }
	.nk-acc .u-columns.addresses, .nk-acc .woocommerce-Addresses, .nk-acc .woocommerce-customer-details .woocommerce-columns { grid-template-columns: 1fr; }
}

/* Mode di dalam tema: lepas judul & kartu halaman milik tema */
.nk-acc-inline .anm-page-top { display: none; }
.nk-acc-inline .anm-entry, .nk-acc-inline .anm-layout { background: none; box-shadow: none; padding: 0; }
.nk-acc-inline .anm-layout { max-width: 100%; }

@media (max-width: 1023px) {
	.nk-header__cta { display: none; }
	.nk-auth { grid-template-columns: 1fr; }
	.nk-auth__aside { padding: 28px; }
	.nk-auth__copy ul, .nk-auth__copy p { display: none; }
	.nk-auth__copy h2 { font-size: 22px; margin: 0; }
}
@media (max-width: 767px) {
	.nk-side { position: fixed; top: 0; bottom: 0; left: 0; width: min(290px, 86vw); transform: translateX(-100%); z-index: 1000; }
	.nk-acc--inline .nk-side { position: fixed; }
	.admin-bar .nk-side { top: 46px; }
	.nk-shell.is-side-open .nk-side { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .35); }
	.nk-side-overlay { position: fixed; inset: 0; z-index: 999; background: rgba(2, 6, 23, .55); }
	.nk-shell.is-side-open .nk-side-overlay { display: block; }
	.nk-side__close, .nk-burger { display: inline-grid !important; }
	.nk-header { padding: 0 16px; height: 68px; }
	.nk-search { display: none; }
	.nk-content { padding: 16px; }
	.nk-theme__btn { padding: 6px 8px; }
	.nk-acc .form-row-first, .nk-acc .form-row-last { width: 100%; float: none; }
	.nk-acc .u-columns.addresses, .nk-acc .woocommerce-Addresses, .nk-acc .woocommerce-customer-details .woocommerce-columns { grid-template-columns: 1fr; }
	.nk-acc--inline.nk-shell { margin: 12px; border-radius: 16px; }
	.nk-auth__main { padding: 24px; }
	/* Tabel pesanan responsif */
	.nk-acc table.shop_table_responsive thead { display: none; }
	.nk-acc table.shop_table_responsive tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--border-color); }
	.nk-acc table.shop_table_responsive td { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border: 0; text-align: right; }
	.nk-acc table.shop_table_responsive td::before { content: attr(data-title); font-weight: 500; color: var(--text-muted); text-align: left; }
}
@media (max-width: 420px) {
	.nk-stats { gap: 12px; }
	.nk-stat { padding: 14px; }
	.nk-stat h3 { font-size: 17px; }
	.nk-welcome h1 { font-size: 21px; }
	.nk-header__right { gap: 8px; }
	.nk-iconbtn--box:first-of-type { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.nk-acc *, .nk-acc *::before, .nk-acc *::after { transition: none !important; animation: none !important; }
}

/* Profil Toko (Akun Saya) */
.nk-storeform-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.nk-storeform-top p { margin: 0; }
.nk-storeform-top .button { background: var(--bg-input) !important; color: var(--text-primary) !important; border: 1px solid var(--border-color) !important; }
.nk-storeform__media { position: relative; margin-bottom: 64px; }
.nk-storeform__banner { position: relative; height: 180px; border-radius: 16px; background: linear-gradient(135deg, var(--nk-grad-from), var(--nk-grad-to)) center / cover no-repeat; overflow: hidden; }
.nk-storeform__logo { position: absolute; left: 24px; bottom: -52px; display: flex; align-items: flex-end; gap: 12px; }
.nk-storeform__logo img { width: 104px; height: 104px; border-radius: 24px; object-fit: cover; border: 4px solid var(--bg-card); background: var(--bg-card); box-shadow: var(--shadow-card); }
.nk-storeform__pick { position: absolute; right: 12px; bottom: 12px; display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; padding: 8px 14px; border-radius: 10px; background: rgba(15, 23, 42, .65); color: #fff !important; font-size: 13px; cursor: pointer; backdrop-filter: blur(6px); }
.nk-storeform__pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.nk-storeform__pick--sm { position: relative; right: auto; bottom: auto; background: var(--bg-input); color: var(--text-primary) !important; border: 1px solid var(--border-color); }
.nk-storeform__remove { display: flex; gap: 16px; font-size: 13px; }
.nk-storeform__remove label { display: inline-flex !important; align-items: center; gap: 6px; }

/* Mode "di dalam theme": kalahkan float kolom WooCommerce (.woocommerce .col2-set .col-1). */
.woocommerce .nk-auth .col2-set .col-1, .woocommerce .nk-auth .col2-set .col-2, .woocommerce-page .nk-auth .col2-set .col-1, .woocommerce-page .nk-auth .col2-set .col-2 { float: none; width: auto; max-width: none; }
