/* ============================================================
   OCTVS Finance — Modern layer (dimuat setelah style.css)
   Arah desain: arang hangat + perak, sudut besar, garis tipis,
   angka tabular, bilah navigasi melayang.
   ============================================================ */
@media screen {
	:root {
		--tk-bg: #f3f3f1;
		--tk-line: #e6e6e3;
		--m-card: #ffffff;
		--m-radius: 20px;
		--m-radius-sm: 14px;
		--m-shadow: 0 1px 2px rgba(20, 20, 19, 0.04), 0 8px 24px -12px rgba(20, 20, 19, 0.12);
		--m-ring: 0 0 0 3px rgba(20, 20, 19, 0.12);
	}
	body {
		background: var(--tk-bg);
		font-family: "DM Sans", system-ui, sans-serif;
		-webkit-font-smoothing: antialiased;
		font-variant-numeric: tabular-nums;
	}
	h1, h2, h3, h4, h5, h6 {
		font-family: "Space Grotesk", "DM Sans", sans-serif;
		letter-spacing: -0.01em;
	}

	/* ---------- Navbar kaca ---------- */
	.navbar.bg-tanka {
		background: rgba(20, 20, 19, 0.88) !important;
		backdrop-filter: saturate(160%) blur(14px);
		-webkit-backdrop-filter: saturate(160%) blur(14px);
		box-shadow: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}
	.navbar .btn-outline-light {
		border-color: transparent;
		background: rgba(255, 255, 255, 0.07);
		border-radius: 12px;
		width: 36px;
		height: 36px;
		display: inline-grid;
		place-items: center;
		padding: 0;
	}
	.navbar .btn-outline-light:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

	/* ---------- Kartu & permukaan ---------- */
	.card-item, .pajak-card, .settings-card, .chart-card, .entity-card,
	.saldo-strip, .pos-mini, .filter-bar {
		background: var(--m-card);
		border: 1px solid var(--tk-line);
		border-radius: var(--m-radius);
		box-shadow: var(--m-shadow);
	}
	.card-item:hover { box-shadow: var(--m-shadow); transform: none; }
	.entity-card { border-radius: var(--m-radius-sm); }
	.settings-card::after { display: none; }

	/* ---------- Hero arus kas ---------- */
	.kpi-card {
		border-radius: 26px !important;
		background:
			radial-gradient(120% 90% at 100% 0%, rgba(172, 172, 172, 0.22), transparent 55%),
			linear-gradient(160deg, #1d1d1b 0%, #141413 60%) !important;
		border: 1px solid rgba(255, 255, 255, 0.06);
		box-shadow: 0 18px 40px -18px rgba(20, 20, 19, 0.55);
	}
	.kpi-card .kpi-value { font-size: clamp(1.9rem, 8vw, 2.4rem); letter-spacing: -0.03em; }
	.kpi-card .kpi-mini { background: rgba(255, 255, 255, 0.06); border-radius: 16px; }

	/* ---------- Tab dashboard: segmented control ---------- */
	.dash-tabs {
		background: #e9e9e6;
		border-radius: 16px;
		padding: 4px;
		gap: 4px;
		border: 0;
	}
	.dash-tab { border-radius: 12px; border: 0; background: transparent; }
	.dash-tab.active { background: #fff; color: var(--tk-black); box-shadow: 0 1px 3px rgba(20, 20, 19, 0.12); }

	/* ---------- Aksi cepat & menu ---------- */
	.aksi-tile {
		border-radius: 18px;
		border: 0;
		box-shadow: 0 10px 20px -12px rgba(20, 20, 19, 0.45);
		transition: transform 0.15s ease;
	}
	.aksi-tile:active { transform: scale(0.96); }
	.menu-grid-3 .menu-tile-mini, .menu-tile-mini {
		background: var(--m-card);
		border: 1px solid var(--tk-line);
		border-radius: 18px;
		box-shadow: none;
	}
	.menu-tile-mini .mt-icon { border-radius: 14px; }

	/* ---------- Judul halaman ---------- */
	.page-head {
		background: transparent;
		border: 0;
		box-shadow: none;
		padding-left: 4px;
		padding-right: 4px;
	}
	.page-head::before { display: none; }
	.page-head .ph-icon { border-radius: 14px; }
	.page-head h5 { font-size: 1.25rem; font-weight: 700; }

	/* ---------- Form & tombol ---------- */
	.form-control, .form-select {
		border-radius: 14px;
		border: 1px solid #dcdcd8;
		background-color: #fff;
		min-height: 46px;
	}
	.form-control-sm, .form-select-sm { min-height: 38px; border-radius: 12px; }
	.form-control:focus, .form-select:focus {
		border-color: var(--tk-black);
		box-shadow: var(--m-ring);
	}
	.form-label { font-weight: 600; color: #4a4a47; }
	.btn { border-radius: 14px; }
	.btn-tanka, .btn-income, .btn-accent { border-radius: 14px; box-shadow: 0 6px 14px -8px rgba(20, 20, 19, 0.6); }
	.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--tk-black); outline-offset: 2px; }

	/* ---------- Bilah navigasi melayang ---------- */
	.bottom-nav {
		/* dipusatkan secara eksplisit agar tidak bentrok dengan aturan desktop di style.css */
		left: 50%;
		right: auto;
		width: min(560px, calc(100% - 24px));
		transform: translateX(-50%);
		bottom: max(10px, env(safe-area-inset-bottom));
		padding: 6px;
		gap: 2px;
		border: 1px solid rgba(255, 255, 255, 0.08);
		border-radius: 26px;
		background: rgba(20, 20, 19, 0.92);
		box-shadow: 0 18px 40px -12px rgba(20, 20, 19, 0.6);
		-webkit-backdrop-filter: blur(16px);
	}
	.bottom-nav a { border-radius: 20px; min-width: 0; }
	.bottom-nav a.transaction-nav { border-radius: 20px; }
	#app { padding-bottom: 96px; }

	/* ---------- Modal sebagai lembar ---------- */
	.modal-content {
		border: 0;
		border-radius: 24px;
		box-shadow: 0 30px 60px -20px rgba(20, 20, 19, 0.5);
	}
	.modal-header, .modal-footer { border-color: var(--tk-line); }
	.trx-option { border-radius: 18px; border: 1px solid var(--tk-line); }

	/* ---------- Login ---------- */
	.lg-sheet { border-radius: 28px 28px 0 0; box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.5); }
	.lg-field { border-radius: 16px; }
	.lg-btn { border-radius: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
