/* ==========================================================================
   RMUTTO Transfer Status - Neo-Banking Frontend Theme
   Design Inspired by Modern Digital Banking (TrustBank)
   ========================================================================== */

:root {
	--nb-navy: #0b192c;
	--nb-navy-light: #1e3e62;
	--nb-blue: #0066ff;
	--nb-blue-hover: #0052cc;
	--nb-blue-light: #e8f1ff;
	--nb-emerald: #00c48c;
	--nb-emerald-light: #e6faf4;
	--nb-emerald-dark: #008760;
	--nb-gray-50: #f8fafc;
	--nb-gray-100: #f1f5f9;
	--nb-gray-200: #e2e8f0;
	--nb-gray-400: #94a3b8;
	--nb-gray-600: #475569;
	--nb-gray-900: #0f172a;
	--nb-radius-lg: 24px;
	--nb-radius-md: 16px;
	--nb-radius-sm: 10px;
	--nb-shadow: 0 12px 36px -4px rgba(11, 25, 44, 0.08), 0 4px 16px -2px rgba(11, 25, 44, 0.04);
	--nb-shadow-lg: 0 24px 48px -12px rgba(11, 25, 44, 0.16);
}

.rts {
	max-width: 680px;
	margin: 30px auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Sarabun", "Prompt", sans-serif;
	color: var(--nb-gray-900);
	-webkit-font-smoothing: antialiased;
}

.rts * {
	box-sizing: border-box;
}

/* 1. Hero Banking Header */
.rts-hero {
	text-align: center;
	margin-bottom: 24px;
}

.rts-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--nb-blue-light);
	color: var(--nb-blue);
	font-size: 12.5px;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 99px;
	margin-bottom: 12px;
	letter-spacing: 0.02em;
}

.rts-tag-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nb-blue);
	animation: rts-pulse 2s infinite;
}

.rts-hero h2 {
	margin: 0 0 6px;
	font-size: 1.85rem;
	font-weight: 800;
	color: var(--nb-navy);
	line-height: 1.25;
}

.rts-hero p {
	margin: 0;
	color: var(--nb-gray-600);
	font-size: 1rem;
}

/* 2. Main Portal Card */
.rts-card {
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: var(--nb-radius-lg);
	box-shadow: var(--nb-shadow);
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}

.rts-card-header {
	background: linear-gradient(135deg, var(--nb-navy) 0%, var(--nb-navy-light) 100%);
	color: #ffffff;
	padding: 24px 28px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.rts-bank-icon {
	width: 52px;
	height: 52px;
	border-radius: var(--nb-radius-md);
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	flex-shrink: 0;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.rts-card-header h3 {
	margin: 0;
	color: #ffffff;
	font-size: 1.25rem;
	font-weight: 700;
}

.rts-card-header span {
	font-size: 0.88rem;
	opacity: 0.85;
	display: block;
	margin-top: 2px;
}

/* Form Styles */
.rts-form {
	padding: 28px 28px 12px;
}

.rts-input-group {
	margin-bottom: 20px;
}

.rts-input-group label {
	display: block;
	font-size: 0.92rem;
	font-weight: 700;
	color: var(--nb-navy);
	margin-bottom: 8px;
}

.rts-input-box {
	position: relative;
	display: flex;
	align-items: center;
}

.rts-input-box svg {
	position: absolute;
	left: 16px;
	color: var(--nb-gray-400);
	pointer-events: none;
	transition: color 0.2s;
}

.rts-input-box input {
	width: 100%;
	padding: 14px 16px 14px 48px;
	border: 1.5px solid var(--nb-gray-200);
	border-radius: var(--nb-radius-sm);
	font-size: 1.12rem;
	letter-spacing: 0.05em;
	color: var(--nb-navy);
	background: #ffffff;
	transition: all 0.2s ease;
}

.rts-input-box input:focus {
	outline: none;
	border-color: var(--nb-blue);
	box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
}

.rts-input-box input:focus + svg,
.rts-input-box:focus-within svg {
	color: var(--nb-blue);
}

/* Captcha Block */
.rts-cap-block {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.rts-cap-img-wrap {
	position: relative;
	display: inline-flex;
	border-radius: var(--nb-radius-sm);
	overflow: hidden;
	border: 1.5px solid var(--nb-gray-200);
	background: #f1f5f9;
}

.rts-cap-img-wrap img {
	display: block;
	width: 170px;
	height: 54px;
	transition: opacity 0.2s;
}

.rts-cap-img-wrap img.rts-dim {
	opacity: 0.35;
}

.rts-refresh-btn {
	width: 54px;
	height: 54px;
	border: 1.5px solid var(--nb-gray-200);
	background: #ffffff;
	border-radius: var(--nb-radius-sm);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
	color: var(--nb-gray-600);
	cursor: pointer;
	transition: all 0.2s;
}

.rts-refresh-btn:hover {
	background: var(--nb-gray-100);
	color: var(--nb-blue);
	border-color: var(--nb-blue);
}

.rts-cap-input {
	flex: 1;
	min-width: 140px;
	padding: 14px 16px;
	border: 1.5px solid var(--nb-gray-200);
	border-radius: var(--nb-radius-sm);
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--nb-navy);
}

.rts-cap-input:focus {
	outline: none;
	border-color: var(--nb-blue);
	box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.12);
}

.rts-ttl {
	font-size: 0.82rem;
	color: var(--nb-gray-600);
	margin-top: 6px;
}

/* Submit Button */
.rts-submit-btn {
	width: 100%;
	margin-top: 24px;
	padding: 16px;
	border: none;
	border-radius: var(--nb-radius-sm);
	background: linear-gradient(135deg, var(--nb-blue) 0%, #1e40af 100%);
	color: #ffffff;
	font-size: 1.1rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(0, 102, 255, 0.28);
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.rts-submit-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0, 102, 255, 0.38);
}

.rts-submit-btn:disabled {
	opacity: 0.7;
	cursor: wait;
	transform: none;
}

.rts-security-footer {
	text-align: center;
	color: var(--nb-gray-600);
	font-size: 0.82rem;
	padding: 14px 28px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

/* 3. Three Trust Pillars (Image 1 Style) */
.rts-pillars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-top: 20px;
}

.rts-pillar {
	background: #ffffff;
	border: 1px solid var(--nb-gray-200);
	border-radius: var(--nb-radius-md);
	padding: 14px 16px;
	text-align: center;
	box-shadow: 0 2px 10px rgba(11, 25, 44, 0.03);
}

.rts-pillar-icon {
	font-size: 24px;
	margin-bottom: 4px;
}

.rts-pillar b {
	display: block;
	font-size: 0.85rem;
	color: var(--nb-navy);
}

.rts-pillar span {
	display: block;
	font-size: 0.75rem;
	color: var(--nb-gray-600);
	margin-top: 2px;
}

/* 4. Result Views (Image 1 Banking Transactions Style) */
#rts-result {
	margin-top: 28px;
}

.rts-statement-card {
	background: #ffffff;
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: var(--nb-radius-lg);
	box-shadow: var(--nb-shadow);
	overflow: hidden;
	animation: rts-slide-up 0.35s ease;
	margin-bottom: 20px;
}

.rts-statement-header {
	background: linear-gradient(135deg, #0b192c 0%, #172554 100%);
	color: #ffffff;
	padding: 24px 28px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px;
}

.rts-holder-info {
	display: flex;
	align-items: center;
	gap: 14px;
}

.rts-holder-avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--nb-blue);
	color: #ffffff;
	font-size: 1.3rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.rts-holder-text small {
	display: block;
	font-size: 0.8rem;
	opacity: 0.8;
}

.rts-holder-text b {
	font-size: 1.25rem;
	color: #ffffff;
}

.rts-total-wrap {
	text-align: right;
}

.rts-total-wrap small {
	display: block;
	font-size: 0.8rem;
	opacity: 0.8;
}

.rts-total-wrap .amt {
	font-size: 1.85rem;
	font-weight: 800;
	color: #4ade80;
}

/* Transactions Feed */
.rts-tx-header {
	padding: 18px 28px 10px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--nb-gray-100);
}

.rts-tx-header h4 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--nb-navy);
}

.rts-tx-list {
	padding: 8px 16px 16px;
}

.rts-tx-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 12px;
	border-bottom: 1px solid var(--nb-gray-100);
	transition: background 0.15s;
	border-radius: var(--nb-radius-sm);
}

.rts-tx-item:last-child {
	border-bottom: none;
}

.rts-tx-item:hover {
	background: var(--nb-gray-50);
}

.rts-tx-left {
	display: flex;
	align-items: center;
	gap: 14px;
	flex: 1;
	min-width: 0;
}

.rts-bank-badge {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	font-size: 11px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	text-transform: uppercase;
}

.rts-tx-details {
	min-width: 0;
}

.rts-tx-desc {
	font-size: 1rem;
	font-weight: 700;
	color: var(--nb-navy);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.rts-tx-meta {
	font-size: 0.82rem;
	color: var(--nb-gray-600);
	margin-top: 3px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.rts-tx-right {
	text-align: right;
	flex-shrink: 0;
}

.rts-tx-amt {
	font-size: 1.28rem;
	font-weight: 800;
	color: var(--nb-emerald-dark);
}

.rts-status-pill {
	display: inline-block;
	background: var(--nb-emerald-light);
	color: var(--nb-emerald-dark);
	font-size: 0.72rem;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 99px;
	margin-top: 3px;
}

/* Print Bar */
.rts-print-bar {
	padding: 14px 28px;
	background: var(--nb-gray-50);
	border-top: 1px solid var(--nb-gray-200);
	display: flex;
	justify-content: flex-end;
}

.rts-print-btn {
	background: #ffffff;
	border: 1.5px solid var(--nb-gray-200);
	padding: 8px 18px;
	border-radius: var(--nb-radius-sm);
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--nb-navy);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s;
}

.rts-print-btn:hover {
	border-color: var(--nb-blue);
	color: var(--nb-blue);
	box-shadow: 0 2px 8px rgba(0, 102, 255, 0.15);
}

/* Empty State */
.rts-empty-state {
	text-align: center;
	background: #ffffff;
	border: 1px solid var(--nb-gray-200);
	border-radius: var(--nb-radius-lg);
	padding: 40px 24px;
	box-shadow: var(--nb-shadow);
}

.rts-empty-icon {
	font-size: 48px;
	margin-bottom: 12px;
}

.rts-empty-state h3 {
	margin: 0 0 6px;
	color: var(--nb-navy);
	font-size: 1.3rem;
}

.rts-empty-state p {
	color: var(--nb-gray-600);
	margin: 0;
	font-size: 0.95rem;
}

/* Skeleton & Animations */
.rts-skel {
	height: 180px;
	border-radius: var(--nb-radius-lg);
	background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
	background-size: 400% 100%;
	animation: rts-sk 1.2s infinite;
}

@keyframes rts-sk { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }
@keyframes rts-slide-up { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }
@keyframes rts-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.2); } }

.rts-shake { animation: rts-sh .4s }
@keyframes rts-sh { 20%, 60% { transform: translateX(-6px) } 40%, 80% { transform: translateX(6px) } }

.rts-err {
	color: #dc2626;
	font-size: 0.88rem;
	min-height: 1.2em;
	margin-top: 6px;
	font-weight: 600;
}

/* All Device Responsiveness */
@media (max-width: 600px) {
	.rts { margin: 16px auto; padding: 0 10px; }
	.rts-hero h2 { font-size: 1.5rem; }
	.rts-card-header, .rts-form { padding: 20px 18px; }
	.rts-cap-block { flex-direction: column; align-items: stretch; }
	.rts-cap-img-wrap { width: 100%; justify-content: center; }
	.rts-cap-img-wrap img { width: 100%; max-width: 220px; height: auto; }
	.rts-pillars { grid-template-columns: 1fr; }
	.rts-statement-header { flex-direction: column; align-items: flex-start; }
	.rts-total-wrap { text-align: left; }
	.rts-tx-item { flex-direction: column; align-items: flex-start; gap: 8px; }
	.rts-tx-right { width: 100%; display: flex; justify-content: space-between; align-items: center; }
}

@media print {
	body * { visibility: hidden !important; }
	#rts-result, #rts-result * { visibility: visible !important; }
	#rts-result { position: absolute; left: 0; top: 0; width: 100%; }
	.rts-print-bar { display: none !important; }
}
