/* ─────────────────────────────────────────────────────────────
   Kiosk Pesan Tiket — Portrait-first, professional, minimal
   ───────────────────────────────────────────────────────────── */

:root {
	--kiosk-color-primary: #18A96A;
	--kiosk-color-primary-hover: #138654;
	--kiosk-color-accent: #16A34A;
	--kiosk-color-danger: #DC2626;
	--kiosk-color-warning: #D97706;
	--kiosk-color-text: #1E293B;
	--kiosk-color-ink: #0F172A;
	--kiosk-color-muted: #9D9B9B;
	--kiosk-color-muted-alt: #6B7280;
	--kiosk-color-surface: #FFFFFF;
	--kiosk-color-page: #FAFAFA;
	--kiosk-color-border: #E2E8F0;
	--kiosk-color-border-soft: #E8ECF2;
	--kiosk-color-sidebar: #0A5F3A;
	--kiosk-radius-lg: 14px;
	--kiosk-radius-md: 10px;
	--kiosk-shadow-soft: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.05);
	--kiosk-shadow-float: 0 20px 40px rgba(15, 42, 24, 0.05);
	--kiosk-sidebar-w: 130px;
	--kiosk-topbar-h: 52px;

	--ptk-bg: var(--kiosk-color-page);
	--ptk-card: var(--kiosk-color-surface);
	--ptk-line: var(--kiosk-color-border);
	--ptk-text: var(--kiosk-color-text);
	--ptk-muted: var(--kiosk-color-muted);
	--ptk-primary: var(--kiosk-color-primary);
	--ptk-primary-h: var(--kiosk-color-primary-hover);
	--ptk-accent: var(--kiosk-color-accent);
	--ptk-danger: var(--kiosk-color-danger);
	--ptk-warning: var(--kiosk-color-warning);
	--ptk-shadow: var(--kiosk-shadow-soft);
	--ptk-sidebar: var(--kiosk-color-sidebar);
	--ptk-sidebar-w: var(--kiosk-sidebar-w);
	--ptk-topbar-h: var(--kiosk-topbar-h);
	--ptk-r: var(--kiosk-radius-lg);
	--ptk-r-sm: var(--kiosk-radius-md);

	--k-green: var(--kiosk-color-primary);
    --k-green-dark: var(--kiosk-color-primary-hover);
    --k-ink: var(--kiosk-color-ink);
    --k-muted: var(--kiosk-color-muted-alt);
    --k-card: var(--kiosk-color-surface);
    --k-line: var(--kiosk-color-border-soft);
    --k-shadow: var(--kiosk-shadow-float);
}

html, body { overflow-x: hidden; }

/* ── Reset ─────────────────────────────────────────────────── */
.ptk-page,
.ptk-page * { box-sizing: border-box; }

/* ── Full-screen kiosk overlay ─────────────────────────────── */
.ptk-page {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	background: var(--ptk-sidebar);
	color: var(--ptk-text);
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

/* ── Topbar ── full width, dark, above layout ──────────────── */
.ptk-topbar {
	flex: 0 0 var(--ptk-topbar-h);
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 16px 0 0;
	background: var(--ptk-sidebar);
	border-bottom: 1px solid rgba(255,255,255,0.05);
	z-index: 10;
}

.ptk-back,
.ptk-back:hover,
.ptk-back:focus {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: var(--ptk-topbar-h);
	padding: 0 18px;
	background: rgba(255,255,255,0.05);
	border: 0;
	border-right: 1px solid rgba(255,255,255,0.07);
	color: rgba(255,255,255,0.65);
	font-size: 0.82rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}

.ptk-back:hover { background: rgba(255,255,255,0.1); color: #FFF; }
.ptk-back i { font-size: 0.78rem; }

.ptk-brand {
	margin-left: auto;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
    color: #fff;
}

.ptk-shell {
	flex: 1;
	display: flex;
	flex-direction: column;   /* ← critical: topbar above, layout below */
	overflow: hidden;
}

.ptk-layout {
	flex: 1;
	display: flex;
	overflow: hidden;
}

.ptk-steps {
	flex: 0 0 var(--ptk-sidebar-w);
	width: var(--ptk-sidebar-w);
	background: var(--ptk-sidebar);
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 28px 0 20px;
	overflow: hidden;
	border-right: 1px solid rgba(255,255,255,0.05);
}

.ptk-step {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 8px;
	background: transparent;
	border: 0;
	cursor: pointer;
	transition: color 0.2s;
	flex: 0 0 auto;
}

.ptk-step:not(:last-child)::after {
	content: '';
	position: absolute;
	bottom: -4px;
	left: 50%;
	transform: translateX(-50%);
	width: 1px;
	height: 12px;
	background: rgba(255,255,255,0.1);
}

.ptk-step-number {
	width: 42px;
	height: 42px;
	border-radius: 14px;
	background: rgba(255,255,255,0.05);
	border: 1.5px solid rgba(255,255,255,0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 800;
	color: rgba(255,255,255,0.25);
	transition: all 0.2s;
}

.ptk-step-copy { text-align: center; }

.ptk-step strong {
	display: block;
	font-size: 0.5rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255,255,255,0.22);
	margin-bottom: 1px;
}

.ptk-step span {
	display: block;
	font-size: 0.7rem;
	font-weight: 600;
	color: rgba(255,255,255,0.3);
	line-height: 1.3;
}

.ptk-step.is-active .ptk-step-number {
	background: var(--ptk-primary);
	border-color: #18A96A;
	color: #FFF;
	box-shadow: 0 0 0 4px rgba(29,78,216,0.25), 0 4px 14px rgba(29,78,216,0.4);
}

.ptk-step.is-active .ptk-step-copy strong { color: rgba(255,255,255,0.5); }
.ptk-step.is-active .ptk-step-copy span   { color: #FFF; font-weight: 700; }

.ptk-content {
	flex: 1;
	overflow-y: auto;
	overflow-x: hidden;
	background: var(--ptk-bg);
}

.ptk-content::-webkit-scrollbar { width: 5px; }
.ptk-content::-webkit-scrollbar-track { background: transparent; }
.ptk-content::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 999px; }

.ptk-panel { display: none; }

.ptk-panel.is-active {
	display: flex;
	flex-direction: column;
	padding: 22px 24px;
	min-height: 100%;
	gap: 16px;
}

.ptk-panel-head {
	display: flex;
	align-items: center;
	gap: 14px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--ptk-line);
}

.ptk-panel-head-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: #DBEAFE;
	color: var(--ptk-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	flex-shrink: 0;
}

.ptk-panel-head h2 {
	margin: 0 0 2px;
	font-size: 1.1rem;
	font-weight: 700;
}

.ptk-panel-head p {
	margin: 0;
	font-size: 0.8rem;
	color: var(--ptk-muted);
}

.ptk-status {
	margin-left: auto;
	padding: 5px 12px;
	border-radius: 999px;
	background: #DBEAFE;
	color: var(--ptk-primary);
	font-size: 0.75rem;
	font-weight: 700;
	white-space: nowrap;
	flex-shrink: 0;
}

.ptk-grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.ptk-grid-3 { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.ptk-grid-4 { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }

.ptk-field {
	padding: 12px 14px;
	border: 1px solid var(--ptk-line);
	border-radius: var(--ptk-r);
	background: var(--ptk-card);
	box-shadow: var(--ptk-shadow);
}

.ptk-field label {
	display: block;
	margin-bottom: 7px;
	font-size: 0.67rem;
	font-weight: 700;
	color: var(--ptk-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

.ptk-field input,
.ptk-field select {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	border: 1.5px solid #CBD5E1;
	border-radius: var(--ptk-r-sm);
	background: #FAFCFF;
	color: var(--ptk-text);
	font-size: 0.92rem;
	font-weight: 500;
	transition: border-color 0.15s, box-shadow 0.15s;
	-webkit-appearance: none;
	appearance: none;
}

.ptk-field select {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394A3B8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 13px center;
	padding-right: 34px;
	cursor: pointer;
}

.ptk-field input:focus,
.ptk-field select:focus {
	outline: none;
	border-color: var(--ptk-primary);
	background: #FFF;
	box-shadow: 0 0 0 3px rgba(29,78,216,0.08);
}

.ptk-p1-wrap {
	display: grid;
	grid-template-columns: 290px 1fr;
	gap: 20px;
	flex: 1;
}

.ptk-p1-cal {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ptk-p1-main {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.ptk-p1-label {
	font-size: 0.62rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ptk-muted);
	margin-bottom: 4px;
}

.ptk-route-row {
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.ptk-route-field {
	flex: 1;
	min-width: 0;
	background: #fdfffe !important;
	border: none !important;
	border-radius: 12px !important;
	padding: 10px 14px !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 4px 16px rgba(0,0,0,0.03);
}

.ptk-route-field > label {
	font-size: 0.58rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	color: #A8997F !important;
	margin-bottom: 5px !important;
}

/* Override native select inside route card */
.ptk-route-field select,
.ptk-route-field input[type="text"] {
	font-size: 1.05rem !important;
	font-weight: 700 !important;
	color: var(--ptk-text) !important;
	background: transparent !important;
	background-image: none !important;
	border: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	padding-right: 0 !important;
	height: auto !important;
	min-height: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
}
.ptk-route-field select:focus,
.ptk-route-field input[type="text"]:focus {
	outline: none !important;
	box-shadow: none !important;
	border: none !important;
}

.ptk-route-swap {
	flex-shrink: 0;
	align-self: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--ptk-primary);
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.72rem;
	transition: background 0.15s, transform 0.2s;
	box-shadow: 0 2px 8px rgba(29, 216, 57, 0.1);
}
.ptk-route-swap:hover  { background: var(--ptk-primary-h); transform: rotate(180deg); }
.ptk-route-swap:active { transform: rotate(180deg) scale(0.92); }

/* Custom combobox */
.ptk-combobox {
	position: relative;
	width: 100%;
}
.ptk-combobox-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: transparent;
	border: none;
	padding: 0;
	cursor: pointer;
	text-align: left;
	gap: 6px;
}
.ptk-combobox-value {
	flex: 1;
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--ptk-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ptk-combobox[data-has-value="0"] .ptk-combobox-value,
.ptk-combobox:not([data-has-value]) .ptk-combobox-value {
	font-weight: 500;
	color: var(--ptk-text);
}
.ptk-combobox-arrow {
	font-size: 0.65rem;
	color: var(--ptk-text);
	flex-shrink: 0;
	transition: transform 0.18s;
}
.ptk-combobox.is-open .ptk-combobox-arrow {
	transform: rotate(180deg);
}
.ptk-combobox-panel {
	margin-top: 16px;
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	left: -14px;
	right: -14px;
	z-index: 200;
	background: #fff;
	border: 1px solid var(--ptk-line);
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
	overflow: hidden;
}
.ptk-combobox.is-open .ptk-combobox-panel {
	display: block;
}
.ptk-combobox-search {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: none;
	border-bottom: 1px solid var(--ptk-line);
	padding: 10px 14px;
	font-size: 0.82rem;
	color: var(--ptk-text);
	background: #FAFAFA;
	outline: none;
	border-radius: 0;
}
.ptk-combobox-search::placeholder {
	color: var(--ptk-muted);
}
.ptk-combobox-list {
	list-style: none;
	margin: 0;
	padding: 4px 0;
	max-height: 220px;
	overflow-y: auto;
}
.ptk-combobox-item {
	padding: 9px 14px;
	font-size: 0.88rem;
	font-weight: 500;
	color: var(--ptk-text);
	cursor: pointer;
	transition: background 0.1s;
}
.ptk-combobox-item:hover,
.ptk-combobox-item.is-highlighted {
	background: #F0F4FF;
}
.ptk-combobox-item.is-selected {
	background: #EFF6FF;
	color: var(--ptk-primary);
	font-weight: 700;
}
.ptk-combobox-item.is-placeholder {
	color: var(--ptk-muted);
	font-style: italic;
}

/* Schedule section header */
.ptk-p1-sched-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.ptk-date-badge {
	font-size: 0.72rem;
	font-weight: 600;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--ptk-primary);
	color: #fff;
	white-space: nowrap;
}

/* Full-size calendar card */
.ptk-cal-full {
	border: 1px solid var(--ptk-line);
	border-radius: var(--ptk-r);
	background: var(--ptk-card);
	box-shadow: var(--ptk-shadow);
	padding: 14px 14px 10px;
}

/* ── Calendar ──────────────────────────────────────────────── */
.ptk-cal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}
.ptk-cal-header span {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--ptk-text);
}

.ptk-cal-nav {
	width: 28px;
	height: 28px;
	border-radius: 7px;
	border: 1.5px solid var(--ptk-line);
	background: #F8FAFD;
	color: var(--ptk-muted);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.65rem;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ptk-cal-nav:hover:not(:disabled) {
	background: var(--ptk-primary);
	color: #fff;
	border-color: var(--ptk-primary);
}
.ptk-cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }

.ptk-cal-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	margin-bottom: 3px;
}
.ptk-cal-weekdays span {
	text-align: center;
	font-size: 0.62rem;
	font-weight: 700;
	color: var(--ptk-muted);
	padding: 3px 0 5px;
}
.ptk-cal-weekdays span.is-weekend { color: #F87171; }

.ptk-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}

.ptk-cal-day {
	aspect-ratio: 1;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: var(--ptk-text);
	font-size: 0.82rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.12s, color 0.12s;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.ptk-cal-day.is-weekend:not(.is-past) { color: #EF4444; }
.ptk-cal-day:not(:disabled):not(.is-empty):hover { background: #EFF6FF; color: var(--ptk-primary); }
.ptk-cal-day.is-today:not(.is-selected) {
	background: #DBEAFE;
	color: var(--ptk-primary);
	font-weight: 700;
}
.ptk-cal-day.is-selected {
	background: var(--ptk-primary) !important;
	color: #fff !important;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(29,78,216,0.1);
}
.ptk-cal-day.is-past  { color: #CBD5E1; cursor: not-allowed; }
.ptk-cal-day.is-empty { pointer-events: none; }

/* ── Schedule list ─────────────────────────────────────────── */
.ptk-schedule-list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
}

.ptk-schedule {
	display: flex;
	flex-direction: column;
	border: 1.5px solid var(--ptk-line);
	border-radius: var(--ptk-r);
	background: var(--ptk-card);
	cursor: pointer;
	min-width: 300px;
	min-height: 150px;
	overflow: hidden;
	box-shadow: var(--ptk-shadow);
	transition: border-color 0.15s, transform 0.1s;
	text-align: left;
	position: relative;
}

.ptk-schedule:active  { transform: scale(1); }
.ptk-schedule:hover   { border-color: #93C5FD; }
/* .ptk-schedule:hover .ptk-schedule-head { background: #F8FBFF; } */

.ptk-schedule.is-selected {
	border-color: var(--ptk-primary);
	background: #EFF6FF;
	box-shadow: 0 0 0 3px rgba(29,78,216,0.10), var(--ptk-shadow);
}

.ptk-schedule.is-selected::after {
	content: '✓';
	position: absolute;
	top: 8px;
	right: 8px;
	width: 18px;
	height: 18px;
	background: var(--ptk-primary);
	color: #fff;
	border-radius: 50%;
	font-size: 0.6rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* card head — main time info */
.ptk-schedule-head {
	flex: 1;
	padding: 14px 16px 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: background 0.15s;
}

.ptk-schedule-times strong {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--ptk-text);
	letter-spacing: -0.01em;
}

.ptk-schedule-row2 {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}

.ptk-schedule-sub {
	font-size: 0.72rem;
	color: var(--ptk-muted);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.3;
	flex: 1;
	min-width: 0;
}

.ptk-schedule-stops {
	font-size: 0.65rem;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 4px;
	background: #F1F5F9;
	color: var(--ptk-muted);
	white-space: nowrap;
	flex-shrink: 0;
}
.ptk-schedule-stops.is-direct {
	background: #DCFCE7;
	color: #15803D;
}

/* card foot — price band */
.ptk-schedule-foot {
	padding: 7px 12px 7px 16px;
	background: #F8FAFD;
	border-top: 1px solid var(--ptk-line);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}
.ptk-schedule.is-selected .ptk-schedule-foot {
	background: #DBEAFE;
	border-color: #BFDBFE;
}

.ptk-schedule-price-block {
	display: flex;
	align-items: baseline;
	gap: 3px;
	flex-wrap: wrap;
}
.ptk-schedule-price-block strong {
	font-size: 0.88rem;
	font-weight: 700;
	color: var(--ptk-primary);
}
.ptk-schedule-price-block span {
	font-size: 0.68rem;
	color: var(--ptk-muted);
}
.ptk-schedule-orig {
	font-size: 0.68rem;
	color: var(--ptk-muted);
	text-decoration: line-through;
}

.ptk-schedule-seats {
	font-size: 0.65rem;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 4px;
	background: #DCFCE7;
	color: #15803D;
	white-space: nowrap;
	flex-shrink: 0;
}
.ptk-schedule-seats.is-low  { background: #FEF3C7; color: #B45309; }
.ptk-schedule-seats.is-full { background: #FEE2E2; color: #DC2626; }

/* full / disabled card */
.ptk-schedule.is-full {
	opacity: 0.55;
	cursor: not-allowed;
	pointer-events: none;
}

/* ── Seat layout ───────────────────────────────────────────── */
.ptk-seat-layout {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 14px;
	align-items: start;
}

.ptk-seat-box,
.ptk-side-card,
.ptk-voucher-card,
.ptk-preview-card,
.ptk-payment-card {
	padding: 16px;
	border: 1px solid var(--ptk-line);
	border-radius: var(--ptk-r);
	background: var(--ptk-card);
	box-shadow: var(--ptk-shadow);
}

.ptk-seat-box h3,
.ptk-side-card h3,
.ptk-voucher-card h3 {
	margin: 0 0 2px;
	font-size: 0.68rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ptk-muted);
}

.ptk-seat-box > p,
.ptk-side-card > p {
	margin: 0 0 12px;
	font-size: 0.8rem;
	color: var(--ptk-muted);
}

.ptk-seat-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px !important;
}

.ptk-seat {
	height: 60px;
	border: 1.5px solid #CBD5E1;
	border-radius: 10px;
	background: #FAFCFF;
	color: var(--ptk-text);
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.12s;
}

.ptk-seat:hover:not(:disabled) {
	border-color: #3B82F6;
	background: #EFF6FF;
	color: var(--ptk-primary);
	transform: scale(1.04);
}

.ptk-seat.is-selected {
	background: var(--ptk-primary);
	border-color: var(--ptk-primary);
	color: #FFF;
	box-shadow: 0 3px 10px rgba(29,78,216,0.1);
	transform: scale(1.04);
}

.ptk-seat.is-booked {
	background: #FEF2F2;
	border-color: #FECACA;
	color: #F87171;
	cursor: not-allowed;
}

.ptk-seat-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 10px;
}

.ptk-seat-legend span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.75rem;
	color: var(--ptk-muted);
}

.ptk-dot {
	width: 11px; height: 11px;
	border-radius: 3px;
	display: inline-block;
}

.ptk-dot.available { background: #FAFCFF; border: 1.5px solid #CBD5E1; }
.ptk-dot.selected  { background: var(--ptk-primary); }
.ptk-dot.booked    { background: #FCA5A5; }

/* ── Trip info bar ─────────────────────────────────────────── */
.ptk-trip-info {
	background: #F0FBF4;
	border: 1px solid #C3E6CB;
	border-radius: var(--ptk-r);
	padding: 12px 16px;
}
.ptk-trip-info-route {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}
.ptk-trip-info-icon {
	width: 34px; height: 34px;
	border-radius: 10px;
	background: #18A96A;
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.9rem;
	flex-shrink: 0;
}
.ptk-trip-info-city {
	display: flex;
	flex-direction: column;
}
.ptk-trip-info-city strong {
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--ptk-text);
	line-height: 1.2;
}
.ptk-trip-info-city span {
	font-size: 0.7rem;
	color: #4A7C63;
}
.ptk-trip-info-arrow {
	color: #18A96A;
	font-size: 0.9rem;
	flex-shrink: 0;
}
.ptk-trip-info-meta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}
.ptk-trip-info-meta > span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.76rem;
	color: #4A7C63;
	font-weight: 500;
}

/* ── Seat direction labels ─────────────────────────────────── */
.ptk-seat-dir {
	text-align: center;
	font-size: 0.7rem;
	font-weight: 600;
	color: var(--ptk-muted);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}
.ptk-seat-dir-top {
	border-bottom: 1px solid var(--ptk-line);
	padding-bottom: 8px;
	margin-bottom: 10px;
}
.ptk-seat-dir-bot {
	border-top: 1px solid var(--ptk-line);
	padding-top: 8px;
	margin-top: 10px;
}

/* ── Seat grid structured ──────────────────────────────────── */
.ptk-seat-col-head {
	text-align: center;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--ptk-muted);
	padding-bottom: 4px;
}
.ptk-seat-row-num {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.65rem;
	color: var(--ptk-muted);
	font-weight: 500;
}
.ptk-seat-static {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: default;
}
.ptk-seat-code {
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.ptk-seat-code-dr,
.ptk-seat-code-driver {
	background: #EFF6FF;
	border-color: #BFDBFE;
	color: #1D4ED8;
}
.ptk-seat-empty {
	border-style: dashed;
	border-color: #CBD5E1;
	color: #94A3B8;
	background: #d4d4d4 !important;
}
.ptk-seat-placeholder {
	grid-column: 1 / -1;
	padding: 12px;
	color: var(--ptk-muted);
	font-size: 0.82rem;
	text-align: center;
}

/* ── Seat update: smaller & green-selected ─────────────────── */
.ptk-seat {
	height: 40px;
	border: 1.5px solid #CBD5E1;
	border-radius: 8px;
	background: #FAFCFF;
	color: var(--ptk-text);
	font-size: 0.78rem;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.12s;
}
.ptk-seat:hover:not(:disabled) {
	border-color: #18A96A;
	background: #F0FBF4;
	color: #18A96A;
}
.ptk-seat.is-selected {
	background: #18A96A;
	border-color: #18A96A;
	color: #FFF;
	box-shadow: 0 3px 10px rgba(24,169,106,0.1);
}
.ptk-seat.is-booked {
	background: #F1F5F9;
	border-color: #E2E8F0;
	color: #94A3B8;
	cursor: not-allowed;
	font-size: 0.82rem;
}
.ptk-dot.selected { background: #18A96A; }

/* ── Side card (passenger forms) ───────────────────────────── */
.ptk-side-card {
	display: flex;
	flex-direction: column;
	gap: 0;
}
.ptk-side-title {
	font-size: 1rem;
	font-weight: 700;
	color: #18A96A;
	margin-bottom: 12px;
}
.ptk-passenger-block {
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--ptk-line);
}
.ptk-passenger-block:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}
.ptk-passenger-label {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: var(--ptk-text);
	margin-bottom: 8px;
}
.ptk-side-card .ptk-field {
	box-shadow: none;
	padding: 8px 11px;
	background: #fafdf8;
	border-color: #eef5e9;
	margin-bottom: 6px;
}
.ptk-side-card .ptk-field:last-child { margin-bottom: 0; }
.ptk-side-card .ptk-field label { font-size: 0.58rem !important; }
.ptk-side-card .ptk-field input { font-size: 0.82rem !important; }

/* ── Kursi terpilih summary ────────────────────────────────── */
.ptk-kursi-terpilih {
	border-top: 1px solid var(--ptk-line);
	padding-top: 12px;
	margin-top: 4px;
	margin-bottom: 12px;
}
.ptk-kursi-terpilih-label {
	font-size: 0.62rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.09em;
	color: #18A96A;
	margin-bottom: 6px;
}
.ptk-kursi-terpilih-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ptk-text);
}
.ptk-kursi-terpilih-row strong {
	background: #18A96A;
	color: #fff;
	border-radius: 999px;
	font-size: 0.7rem;
	padding: 3px 10px;
	font-weight: 600;
}

/* ── Voucher collapsible ───────────────────────────────────── */
.ptk-voucher-wrap {
	border-top: 1px solid var(--ptk-line);
	padding-top: 10px;
	margin-top: auto;
}
.ptk-voucher-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--ptk-muted);
	padding: 0;
	gap: 6px;
}
.ptk-voucher-toggle > span { display: flex; align-items: center; gap: 6px; }
.ptk-voucher-chev { font-size: 0.6rem; transition: transform 0.18s; }
.ptk-voucher-wrap.is-open .ptk-voucher-chev { transform: rotate(180deg); }
.ptk-voucher-body { margin-top: 10px; }
.ptk-voucher-body .ptk-voucher-check { margin-bottom: 6px; }

/* ── Buttons ───────────────────────────────────────────────── */
.ptk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 0 20px;
	height: 48px;
	border: 0;
	border-radius: var(--ptk-r-sm);
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.15s;
	letter-spacing: 0.01em;
}

.ptk-btn[disabled]                           { opacity: 0.4; cursor: not-allowed; }
.ptk-btn-primary                             { background: var(--ptk-primary); color: #FFF; }
.ptk-btn-primary:hover:not([disabled])       { background: var(--ptk-primary-h); }
.ptk-btn-primary:active:not([disabled])      { transform: scale(0.98); }
.ptk-btn-secondary                           { background: #F1F5F9; color: var(--ptk-text); border: 1px solid var(--ptk-line); }
.ptk-btn-secondary:hover:not([disabled])     { background: #E2E8F0; }
.ptk-btn-success                             { background: var(--ptk-accent); color: #FFF; }
.ptk-btn-success:hover:not([disabled])       { background: #15803D; }
.ptk-btn-blue                                { background: #3B82F6; color: #FFF; }
.ptk-btn-blue:hover:not([disabled])          { background: #2563EB; }
.ptk-btn-blue:active:not([disabled])         { transform: scale(0.98); }
.ptk-btn-outline                             { background: transparent; color: var(--ptk-text); border: 1.5px solid #CBD5E1; }
.ptk-btn-outline:hover:not([disabled])       { background: #F1F5F9; border-color: #94A3B8; }

.ptk-toast {
	position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 99999;
	display: flex; align-items: center; gap: 9px;
	padding: 11px 20px; border-radius: 10px;
	font-size: 0.82rem; font-weight: 600;
	box-shadow: 0 4px 24px rgba(0,0,0,0.05);
	transition: opacity 0.25s, transform 0.25s;
	white-space: nowrap;
}
.ptk-toast.success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }
.ptk-toast.error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.ptk-toast.info    { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.ptk-toast.hide    { opacity: 0; transform: translateX(-50%) translateY(-12px); pointer-events: none; }

/* ── Actions ───────────────────────────────────────────────── */
.ptk-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--ptk-line);
}

/* ── Note ──────────────────────────────────────────────────── */
.ptk-note {
	padding: 10px 13px;
	border-radius: var(--ptk-r-sm);
	background: #f9fcfb;
	color: var(--ptk-muted);
	font-size: 0.82rem;
	line-height: 1.5;
	border: 1px solid #fbfeff;
    margin-top: 10px;
}

.ptk-note.success { background: #F0FDF4; color: #15803D; border-color: #BBF7D0; }
.ptk-note.error { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }


/* ── Voucher ───────────────────────────────────────────────── */
.ptk-voucher-check { display: flex; gap: 8px; }

.ptk-voucher-check input {
	flex: 1;
	height: 40px;
	padding: 0 12px;
	border: 1.5px solid #CBD5E1;
	border-radius: 8px;
	font-size: 0.88rem;
}

.ptk-voucher-check input:focus {
	outline: none;
	border-color: var(--ptk-primary);
	box-shadow: 0 0 0 3px rgba(29,78,216,0.08);
}

/* ── Preview card (Step 3) ─────────────────────────────────── */
.ptk-preview-card {
	padding: 18px;
	background: var(--ptk-card);
	flex: 1;
}

.ptk-preview-hero {
	display: grid;
	grid-template-columns: 1fr 190px;
	gap: 12px;
	margin-bottom: 12px;
}

.ptk-preview-overview {
	position: relative;
	overflow: hidden;
	padding: 18px 20px;
	border-radius: var(--ptk-r);
	background: linear-gradient(135deg, #138654 0%, #18A96A 55%, #15925c 100%);
	color: #FFF;
}

.ptk-preview-overview::after {
	content: '';
	position: absolute;
	right: -18px; top: -24px;
	width: 110px; height: 110px;
	border-radius: 999px;
	background: rgba(255,255,255,0.06);
}

.ptk-preview-eyebrow {
	position: relative;
	display: inline-block;
	margin-bottom: 6px;
	font-size: 0.62rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: rgba(255,255,255,0.65);
}

.ptk-preview-overview h3 {
	position: relative;
	margin: 0 0 7px;
	font-size: 1.15rem;
	line-height: 1.3;
}

.ptk-preview-overview p {
	position: relative;
	margin: 0;
	color: rgba(255,255,255,0.78);
	font-size: 0.78rem;
	line-height: 1.5;
}

.ptk-preview-meta {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
	margin-top: 12px;
}

.ptk-preview-meta-card {
	padding: 9px 11px;
	border-radius: 10px;
	background: rgba(255,255,255,0.11);
	border: 1px solid rgba(255,255,255,0.13);
}

.ptk-preview-meta-card span {
	display: block;
	margin-bottom: 2px;
	font-size: 0.58rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: rgba(255,255,255,0.58);
}

.ptk-preview-meta-card strong { display: block; font-size: 0.82rem; }

.ptk-preview-totalbox {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 14px 16px;
	border-radius: var(--ptk-r);
	border: 1px solid var(--ptk-line);
	background: var(--ptk-card);
}

.ptk-preview-totalbox span {
	display: block;
	margin-bottom: 5px;
	font-size: 0.6rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ptk-primary);
}

.ptk-preview-totalbox strong {
	display: block;
	font-size: 1.45rem;
	font-weight: 800;
	margin-bottom: 6px;
}

.ptk-preview-totalbox p { margin: 0; color: var(--ptk-muted); font-size: 0.75rem; }

.ptk-preview-total-badge {
	display: inline-flex;
	padding: 4px 10px;
	border-radius: 999px;
	background: #DBEAFE;
	color: var(--ptk-primary);
	font-weight: 700;
	font-size: 0.72rem;
}

.ptk-preview-layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.ptk-preview-section {
	padding: 14px 16px;
	border: 1px solid var(--ptk-line);
	border-radius: var(--ptk-r);
	background: var(--ptk-card);
}

.ptk-preview-section-head { margin-bottom: 10px; }

.ptk-preview-section-head span {
	display: block; margin-bottom: 2px;
	font-size: 0.58rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.1em;
	color: var(--ptk-primary);
}

.ptk-preview-section-head h3 { margin: 0 0 3px; font-size: 0.88rem; font-weight: 700; }
.ptk-preview-section-head p  { margin: 0; color: var(--ptk-muted); font-size: 0.75rem; }

.ptk-preview-detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.ptk-preview-detail-item {
	padding: 10px 12px;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	background: #FAFCFF;
}

.ptk-preview-detail-item span {
	display: block; margin-bottom: 2px;
	font-size: 0.58rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.08em;
	color: var(--ptk-muted);
}

.ptk-preview-detail-item strong { display: block; font-size: 0.85rem; line-height: 1.4; }

.ptk-preview-fare-list { display: grid; gap: 9px; }

.ptk-preview-fare-row {
	display: flex; align-items: flex-start;
	justify-content: space-between; gap: 12px;
	padding-bottom: 9px; border-bottom: 1px solid var(--ptk-line);
}

.ptk-preview-fare-row:last-child { border-bottom: 0; padding-bottom: 0; }

.ptk-preview-fare-row span {
	display: block; margin-bottom: 1px;
	font-size: 0.62rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.08em;
	color: var(--ptk-muted);
}

.ptk-preview-fare-row div div { font-size: 0.75rem; color: var(--ptk-muted); }
.ptk-preview-fare-row strong  { display: block; text-align: right; font-size: 0.88rem; }
.ptk-preview-fare-row.is-discount strong { color: var(--ptk-accent); }

.ptk-print-actions {
	display: flex; justify-content: space-between; gap: 12px;
	margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--ptk-line);
}

/* ── Status page (Step 4) ──────────────────────────────────── */
.ptk-status-shell {
	display: flex; flex-direction: column; gap: 12px; flex: 1;
}

.ptk-status-hero {
	display: grid;
	grid-template-columns: 1fr 170px;
	gap: 12px;
	padding: 18px 20px;
	border-radius: var(--ptk-r);
	background: linear-gradient(135deg, #138654 0%, #18A96A 55%, #0a5f3a 100%);
	color: #FFF;
}

.ptk-status-badge {
	display: inline-flex; align-items: center; justify-content: center;
	margin-bottom: 9px; padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255,255,255,0.09); border: 1px solid rgba(255,255,255,0.09);
	font-size: 0.62rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.1em;
}

.ptk-status-badge.is-waiting {
	background: rgba(217,119,6,0.28);
	border-color: rgba(251,191,36,0.55);
	color: #FCD34D;
}
.ptk-status-badge.is-waiting::before {
	content: '';
	display: inline-block;
	width: 5px; height: 5px;
	border-radius: 50%;
	background: #FCD34D;
	margin-right: 5px;
	vertical-align: middle;
	animation: ptk-blink-dot 1.4s ease-in-out infinite;
}
@keyframes ptk-blink-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.ptk-status-badge.is-success { background: rgba(22,163,74,0.18); border-color: rgba(22,163,74,0.28); color: #86EFAC; }

.ptk-status-hero h3 { margin: 0 0 5px; font-size: 1.1rem; line-height: 1.25; }
.ptk-status-hero p  { margin: 0; color: rgba(255,255,255,0.75); font-size: 0.78rem; line-height: 1.5; }

.ptk-status-amount {
	padding: 13px; border-radius: 12px;
	background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.09);
	align-self: start;
}

.ptk-status-amount span {
	display: block; margin-bottom: 5px;
	font-size: 0.58rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.1em;
	color: rgba(255,255,255,0.5);
}

.ptk-status-amount strong { display: block; font-size: 1.35rem; font-weight: 800; }

.ptk-status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.ptk-status-card { padding: 14px 16px; border-radius: var(--ptk-r); border: 1px solid var(--ptk-line); background: var(--ptk-card); }

.ptk-status-card-head { margin-bottom: 10px; }

.ptk-status-card-head span {
	display: block; margin-bottom: 2px;
	font-size: 0.58rem; font-weight: 700;
	text-transform: uppercase; letter-spacing: 0.1em;
	color: var(--ptk-primary);
}

.ptk-status-card-head h3 { margin: 0; font-size: 0.88rem; font-weight: 700; }

.ptk-status-list { display: grid; gap: 8px; }

.ptk-status-row {
	display: flex; align-items: flex-start;
	justify-content: space-between; gap: 10px;
	padding-bottom: 8px; border-bottom: 1px solid var(--ptk-line);
}

.ptk-status-row:last-child { padding-bottom: 0; border-bottom: 0; }
.ptk-status-row span   { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ptk-muted); }
.ptk-status-row strong { text-align: right; font-size: 0.82rem; line-height: 1.4; }

.ptk-code-wrap { display: flex; align-items: center; gap: 6px; }
.ptk-copy-btn {
	width: 24px; height: 24px; flex-shrink: 0;
	border: 1px solid var(--ptk-line); border-radius: 6px;
	background: var(--ptk-bg); color: var(--ptk-muted);
	cursor: pointer; display: flex; align-items: center; justify-content: center;
	font-size: 0.68rem; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.ptk-copy-btn:hover:not(:disabled) { background: var(--ptk-primary); border-color: var(--ptk-primary); color: #fff; }
.ptk-copy-btn:disabled { opacity: 0.35; cursor: default; }
.ptk-copy-btn.copied  { background: var(--ptk-primary); border-color: var(--ptk-primary); color: #fff; }

.ptk-status-timeline { display: grid; gap: 9px; }

.ptk-status-step { display: grid; grid-template-columns: 16px 1fr; gap: 9px; align-items: start; opacity: 0.38; }
.ptk-status-step.is-active, .ptk-status-step.is-done { opacity: 1; }

.ptk-status-dot {
	width: 13px; height: 13px; margin-top: 3px;
	border-radius: 999px; border: 2px solid #CBD5E1; background: #FFF;
}

.ptk-status-step.is-active .ptk-status-dot { border-color: #f8b525; background: #f8b525; box-shadow: 0 0 0 3px rgba(217,119,6,0.14); }
.ptk-status-step.is-done  .ptk-status-dot  { border-color: var(--ptk-accent); background: var(--ptk-accent); box-shadow: 0 0 0 3px rgba(22,163,74,0.14); }

.ptk-status-step strong { display: block; margin-bottom: 1px; font-size: 0.82rem; }
.ptk-status-step p      { margin: 0; color: var(--ptk-muted); font-size: 0.75rem; line-height: 1.4; }

.ptk-status-actions {
	display: flex; align-items: center;
	justify-content: space-between; gap: 12px;
	margin-top: auto; padding-top: 14px; border-top: 1px solid var(--ptk-line);
}

/* ── Misc ──────────────────────────────────────────────────── */
.ptk-inline { display: flex; gap: 12px; }
.ptk-inline .ptk-field { flex: 1; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
	:root { --ptk-sidebar-w: 64px; }
	.ptk-step-copy { display: none; }
	.ptk-step-number { width: 38px; height: 38px; font-size: 0.95rem; border-radius: 12px; }
}

@media (max-width: 560px) {
    :root { --ptk-sidebar-w: 0px; }
    .ptk-steps { display: none; }
    .ptk-grid-4, .ptk-grid-3, .ptk-grid-2 { grid-template-columns: 1fr; }
    .ptk-panel.is-active { padding: 14px; }
}
