/* =========================================================================
 * SMM Panel - customer side (order dashboard, login card, notices)
 *
 * Scope
 *   .smmp-app     shared wrapper: design tokens + shared form controls
 *   .smmp-panel   logged-in order dashboard layout
 *   .smmp-auth    login / create account / lost password card (smm-auth.css)
 *
 * System font stack only - no external font requests.
 * ========================================================================= */

/* -------------------------------------------------------------------------
 * Design tokens
 * ---------------------------------------------------------------------- */
.smmp-app {
	/* Typography */
	--smmp-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--smmp-fs: 16px;
	--smmp-fs-small: 14px;
	--smmp-lh: 1.6;
	--smmp-h1: clamp(22px, 3vw, 28px);
	--smmp-h2: clamp(18px, 2.2vw, 22px);
	--smmp-h3: clamp(16px, 1.8vw, 18px);

	/* Colours */
	--smmp-sidebar: #1e5fd8; /* overridden inline by the Sidebar colour setting */
	--smmp-accent: #ff8a00;  /* overridden inline by the Accent colour setting */
	--smmp-blue: var(--smmp-sidebar);
	--smmp-orange: #c2410c;  /* darkened from #ff8a00 so white text passes WCAG AA (5.2:1) */
	--smmp-bg: #f8fafc;
	--smmp-card: #ffffff;
	--smmp-border: #e5e7eb;
	--smmp-text: #1f2937;
	--smmp-muted: #6b7280;
	--smmp-danger: #b91c1c;
	--smmp-success: #15803d;
	--smmp-info: #1d4ed8;

	/* Shape / space */
	--smmp-radius: 8px;
	--smmp-space: 8px;
	--smmp-shadow: 0 1px 2px rgba(0, 0, 0, .04);

	font-family: var(--smmp-font);
	font-size: var(--smmp-fs);
	line-height: var(--smmp-lh);
	color: var(--smmp-text);
	background: var(--smmp-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.smmp-app,
.smmp-app *,
.smmp-app *::before,
.smmp-app *::after {
	box-sizing: border-box;
}

.smmp-app p { margin: 0 0 12px; }

.smmp-app input[type="checkbox"],
.smmp-app input[type="radio"] { accent-color: var(--smmp-blue); }

/* -------------------------------------------------------------------------
 * Shared form controls (panel + auth card)
 * ---------------------------------------------------------------------- */
.smmp-app .smmp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 44px;
	min-width: 44px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: var(--smmp-radius);
	background: transparent;
	color: var(--smmp-text);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.smmp-app .smmp-btn-accent { background: var(--smmp-orange); color: #fff; }
.smmp-app .smmp-btn-accent:hover { background: #9a3412; color: #fff; }

.smmp-app .smmp-btn-outline { background: #fff; color: var(--smmp-text); border-color: var(--smmp-border); }
.smmp-app .smmp-btn-outline:hover { background: #f3f4f6; border-color: #d1d5db; }

.smmp-app .smmp-btn[disabled] { opacity: .55; cursor: not-allowed; }

.smmp-app .smmp-field { margin-bottom: 16px; }

.smmp-app .smmp-field > label:not(.smmp-radio) {
	display: block;
	margin-bottom: 6px;
	font-size: var(--smmp-fs-small);
	font-weight: 500;
	color: var(--smmp-text);
	text-transform: none;
	letter-spacing: 0;
}

.smmp-app .smmp-input {
	width: 100%;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--smmp-border);
	border-radius: var(--smmp-radius);
	background: #fff;
	color: var(--smmp-text);
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
}

.smmp-app textarea.smmp-input { min-height: 96px; padding-top: 10px; }

.smmp-app .smmp-input::placeholder { color: #9ca3af; opacity: 1; }

.smmp-app .smmp-input:focus {
	outline: 2px solid var(--smmp-blue);
	outline-offset: 1px;
	border-color: var(--smmp-blue);
}

.smmp-app .smmp-input[readonly] { background: #f9fafb; color: var(--smmp-muted); }

.smmp-app .smmp-input-charge { font-weight: 600; color: var(--smmp-orange); }

.smmp-app .smmp-desc-box {
	min-height: 40px;
	padding: 9px 12px;
	border: 1px solid var(--smmp-border);
	border-radius: var(--smmp-radius);
	background: #f9fafb;
	color: var(--smmp-muted);
	font-size: 14px;
	white-space: pre-line;
}

.smmp-app .smmp-terms { margin: 0 0 16px; font-size: var(--smmp-fs-small); color: var(--smmp-muted); }

.smmp-app .smmp-msg {
	display: none;
	margin-bottom: 14px;
	padding: 10px 14px;
	border: 1px solid var(--smmp-border);
	border-radius: var(--smmp-radius);
	font-size: var(--smmp-fs-small);
}

.smmp-app .smmp-msg.is-visible { display: block; }
.smmp-app .smmp-msg.is-error { background: #fef2f2; border-color: #fecaca; color: var(--smmp-danger); }
.smmp-app .smmp-msg.is-success { background: #f0fdf4; border-color: #bbf7d0; color: var(--smmp-success); }

.smmp-app .smmp-radio {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	padding: 10px 12px;
	border: 1px solid var(--smmp-border);
	border-radius: var(--smmp-radius);
	font-size: 14px;
	cursor: pointer;
}

.smmp-app .smmp-radio input { flex: 0 0 auto; }

.smmp-app .smmp-bonus {
	margin-left: auto;
	color: var(--smmp-success);
	font-size: var(--smmp-fs-small);
	font-weight: 600;
}

.smmp-app .smmp-method-info {
	display: none;
	margin-bottom: 16px;
	padding: 10px 12px;
	border: 1px solid var(--smmp-border);
	border-left: 3px solid var(--smmp-blue);
	border-radius: 6px;
	background: #f9fafb;
	color: var(--smmp-muted);
	font-size: var(--smmp-fs-small);
	white-space: pre-line;
}

.smmp-app .smmp-method-qr img.smmp-qr-code {
	display: block;
	width: 100%;
	max-width: 400px;
	height: auto;
	margin: 0 auto;
	padding: 8px;
	border: 1px solid var(--smmp-border);
	border-radius: var(--smmp-radius);
	background: #fff;
}

.smmp-app .smmp-form {
	max-width: 720px;
	margin-bottom: 24px;
	padding: 16px 20px;
	border: 1px solid var(--smmp-border);
	border-radius: var(--smmp-radius);
	background: var(--smmp-card);
}

.smmp-app .smmp-row { display: flex; flex-wrap: wrap; gap: 14px; }
.smmp-app .smmp-row .smmp-field { flex: 1 1 140px; }

.smmp-app .smmp-hr { border: 0; border-top: 1px solid var(--smmp-border); margin: 24px 0; }

/* -------------------------------------------------------------------------
 * Shared card used by the login card and the banned / maintenance notices
 * ---------------------------------------------------------------------- */
.smmp-app .smmp-login-card {
	width: 100%;
	max-width: 380px;
	padding: 28px 24px;
	border: 1px solid var(--smmp-border);
	border-radius: var(--smmp-radius);
	background: var(--smmp-card);
	box-shadow: var(--smmp-shadow);
}

.smmp-app.smmp-center-notice {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	padding: 48px 20px;
}

/* -------------------------------------------------------------------------
 * Order dashboard layout (.smmp-panel)
 * ---------------------------------------------------------------------- */
.smmp-panel {
	display: flex;
	min-height: 400px;
	border-radius: var(--smmp-radius);
	overflow: hidden;
	box-shadow: var(--smmp-shadow);
}

/* Sidebar */
.smmp-panel .smmp-sidebar {
	display: flex;
	flex-direction: column;
	width: 240px;
	flex: 0 0 240px;
	background: var(--smmp-blue);
	color: #fff;
	transition: background-color .2s ease;
}

.smmp-panel .smmp-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.smmp-panel .smmp-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 20px 18px;
	color: #fff;
	font-size: 18px;
	font-weight: 700; /* brand name only */
	letter-spacing: 0;
	text-decoration: none;
	min-height: 44px;
}

.smmp-panel .smmp-brand img {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: 42px;
	object-fit: contain;
}

.smmp-panel .smmp-menu { flex: 1; padding: 8px 12px 24px; }

.smmp-panel .smmp-menu-item {
	display: flex;
	align-items: center;
	min-height: 44px;
	margin-bottom: 4px;
	padding: 10px 14px;
	border-radius: var(--smmp-radius);
	color: rgba(255, 255, 255, .9);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

.smmp-panel .smmp-menu-item:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.smmp-panel .smmp-menu-item.is-active { background: rgba(255, 255, 255, .2); color: #fff; }

.smmp-panel .smmp-sidebar-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 10px;
	border: 0;
	border-radius: var(--smmp-radius);
	background: transparent;
	color: #fff;
	text-align: left;
	cursor: pointer;
}

.smmp-panel .smmp-toggle-bar {
	display: block;
	width: 22px;
	height: 2px;
	margin: 4px 0;
	background: #fff;
	transition: transform .25s ease, opacity .25s ease;
}

/* Main area */
.smmp-panel .smmp-main { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.smmp-panel .smmp-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 12px 20px;
	background: var(--smmp-card);
	border-bottom: 1px solid var(--smmp-border);
}

.smmp-panel .smmp-balance-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border: 1px solid #e0e7ff;
	border-radius: 999px;
	background: #eef2ff;
	color: #3730a3;
	font-size: var(--smmp-fs-small);
}

.smmp-panel .smmp-balance-label { color: var(--smmp-muted); font-size: 12px; }

.smmp-panel .smmp-wallet {
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.smmp-panel .smmp-account { position: relative; }

.smmp-panel .smmp-account-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	border: 0;
	border-radius: var(--smmp-radius);
	background: transparent;
	color: var(--smmp-text);
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.smmp-panel .smmp-account-toggle:hover { background: #f3f4f6; }

.smmp-panel .smmp-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--smmp-blue);
	color: #fff;
	font-weight: 600;
}

.smmp-panel .smmp-caret { color: var(--smmp-muted); font-size: 10px; }

.smmp-panel .smmp-account-menu {
	position: absolute;
	top: calc(100% + 6px);
	right: 0;
	z-index: 20;
	display: none;
	min-width: 160px;
	margin: 0;
	padding: 6px;
	list-style: none;
	border: 1px solid var(--smmp-border);
	border-radius: var(--smmp-radius);
	background: var(--smmp-card);
	box-shadow: var(--smmp-shadow);
}

.smmp-panel .smmp-account-menu.is-open { display: block; }

.smmp-panel .smmp-account-menu a {
	display: block;
	padding: 8px 10px;
	border-radius: 6px;
	color: var(--smmp-text);
	font-size: 14px;
	text-decoration: none;
}

.smmp-panel .smmp-account-menu a:hover { background: #f3f4f6; }

/* Content + views */
.smmp-panel .smmp-content { flex: 1; padding: 24px 20px; }

.smmp-panel .smmp-view { display: none; }
.smmp-panel .smmp-view.is-active { display: block; }

.smmp-panel .smmp-h { margin: 0 0 16px; font-size: var(--smmp-h2); font-weight: 600; line-height: 1.3; }
.smmp-panel h3.smmp-h,
.smmp-panel .smmp-h3 { font-size: var(--smmp-h3); }

/* Announcements */
.smmp-panel .smmp-announcements { margin-bottom: 24px; }

.smmp-panel .smmp-announce {
	margin-bottom: 8px;
	padding: 12px 14px;
	border: 1px solid var(--smmp-border);
	border-left: 4px solid var(--smmp-info);
	border-radius: var(--smmp-radius);
	background: #eff6ff;
}

.smmp-panel .smmp-announce strong { display: block; margin-bottom: 2px; font-weight: 600; }
.smmp-panel .smmp-announce p { margin: 0; color: var(--smmp-muted); font-size: var(--smmp-fs-small); }

.smmp-panel .smmp-announce-info { border-left-color: var(--smmp-info); background: #eff6ff; }
.smmp-panel .smmp-announce-warning { border-left-color: #b45309; background: #fffbeb; }
.smmp-panel .smmp-announce-success { border-left-color: var(--smmp-success); background: #f0fdf4; }

/* Dashboard cards */
.smmp-panel .smmp-cards { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }

.smmp-panel .smmp-card {
	flex: 1 1 200px;
	padding: 20px;
	border: 1px solid var(--smmp-border);
	border-radius: var(--smmp-radius);
	background: var(--smmp-card);
}

.smmp-panel .smmp-card-label {
	display: block;
	margin-bottom: 6px;
	color: var(--smmp-muted);
	font-size: var(--smmp-fs-small);
	font-weight: 500;
}

.smmp-panel .smmp-card-value {
	font-size: 24px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.smmp-panel .smmp-shortcuts { display: flex; flex-wrap: wrap; gap: 12px; }

/* Tables */
.smmp-panel .smmp-table { width: 100%; border-collapse: collapse; }

.smmp-panel .smmp-table th,
.smmp-panel .smmp-table td {
	padding: 12px 14px;
	text-align: left;
	border-bottom: 1px solid var(--smmp-border);
	font-size: 14px;
	vertical-align: top;
}

.smmp-panel .smmp-table th {
	background: #f9fafb;
	color: var(--smmp-muted);
	font-size: var(--smmp-fs-small);
	font-weight: 500;
}

.smmp-panel .smmp-table td { font-variant-numeric: tabular-nums; }
.smmp-panel .smmp-table tr:last-child td { border-bottom: 0; }

.smmp-panel .smmp-wrap { word-break: break-all; }
.smmp-panel .smmp-custom-rate { color: var(--smmp-orange); font-style: normal; font-size: 12px; }

/* Status badges */
.smmp-panel .smmp-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.6;
	white-space: nowrap;
}

.smmp-panel .smmp-badge-success { background: #dcfce7; color: #166534; }
.smmp-panel .smmp-badge-warning { background: #fef3c7; color: #92400e; }
.smmp-panel .smmp-badge-info { background: #dbeafe; color: #1e40af; }
.smmp-panel .smmp-badge-danger { background: #fee2e2; color: #991b1b; }
.smmp-panel .smmp-badge-muted { background: #f1f5f9; color: #475569; }

/* Filter tabs */
.smmp-panel .smmp-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.smmp-panel .smmp-tab {
	padding: 6px 12px;
	border: 1px solid var(--smmp-border);
	border-radius: 999px;
	background: #fff;
	color: var(--smmp-muted);
	font: inherit;
	font-size: var(--smmp-fs-small);
	font-weight: 500;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.smmp-panel .smmp-tab:hover { border-color: #d1d5db; color: var(--smmp-text); }
.smmp-panel .smmp-tab.is-active { background: var(--smmp-blue); border-color: var(--smmp-blue); color: #fff; }

/* Pagination */
.smmp-panel .smmp-pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }

.smmp-panel .smmp-page-link {
	min-width: 36px;
	padding: 7px 10px;
	border: 1px solid var(--smmp-border);
	border-radius: var(--smmp-radius);
	background: #fff;
	color: var(--smmp-text);
	font: inherit;
	font-size: var(--smmp-fs-small);
	cursor: pointer;
}

.smmp-panel .smmp-page-link.is-active { background: var(--smmp-blue); border-color: var(--smmp-blue); color: #fff; }

/* Tickets */
.smmp-panel .smmp-ticket-list { display: flex; flex-direction: column; gap: 10px; }

.smmp-panel .smmp-ticket {
	border: 1px solid var(--smmp-border);
	border-radius: var(--smmp-radius);
	background: var(--smmp-card);
}

.smmp-panel .smmp-ticket-head { margin: 0; padding: 0; }

.smmp-panel .smmp-ticket-toggle {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 14px;
	border: 0;
	background: transparent;
	color: var(--smmp-text);
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.smmp-panel .smmp-ticket-toggle:hover { background: #f9fafb; }

.smmp-panel .smmp-ticket-body { padding: 0 14px 16px; }

.smmp-panel .smmp-ticket-msg {
	margin-bottom: 10px;
	padding: 12px 14px;
	border-radius: var(--smmp-radius);
	font-size: 14px;
}

.smmp-panel .smmp-ticket-msg strong { margin-right: 6px; font-weight: 600; }
.smmp-panel .smmp-ticket-msg p { margin: 4px 0 0; }

.smmp-panel .smmp-ticket-msg.is-customer { background: #eff6ff; }
.smmp-panel .smmp-ticket-msg.is-admin { border: 1px solid var(--smmp-border); background: #f9fafb; }

.smmp-panel .smmp-msg-time { color: var(--smmp-muted); font-size: 12px; font-variant-numeric: tabular-nums; }

.smmp-panel .smmp-reply-form {
	max-width: none;
	margin: 6px 0 0;
	padding: 4px 0 0;
	border: 0;
	background: transparent;
}

/* Service category heading (kept for backward compatibility) */
.smmp-panel .smmp-service-cat { margin: 24px 0 8px; font-size: var(--smmp-h3); font-weight: 600; }

/* -------------------------------------------------------------------------
 * Accessibility
 * ---------------------------------------------------------------------- */
.smmp-app a:focus-visible,
.smmp-app button:focus-visible,
.smmp-app input:focus-visible,
.smmp-app select:focus-visible,
.smmp-app textarea:focus-visible {
	outline: 2px solid var(--smmp-blue);
	outline-offset: 2px;
}

/* -------------------------------------------------------------------------
 * Responsive media queries (1440px, 1024px, 768px, 480px)
 * ---------------------------------------------------------------------- */

/* Media assets rule */
.smmp-app img,
.smmp-app video,
.smmp-app iframe,
.smmp-app embed,
.smmp-app object {
	max-width: 100%;
	height: auto;
}

/* Animations */
@keyframes smmpSlideDown {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* 1. Large desktop screens (min-width: 1440px) */
@media (min-width: 1440px) {
	.smmp-panel {
		max-width: 1540px;
		margin: 0 auto;
		border-radius: 12px;
	}
	.smmp-panel .smmp-sidebar {
		width: 260px;
		flex: 0 0 260px;
	}
	.smmp-panel .smmp-content {
		padding: 32px 28px;
	}
	.smmp-panel .smmp-card {
		padding: 24px;
	}
	.smmp-panel .smmp-table th,
	.smmp-panel .smmp-table td {
		padding: 14px 16px;
	}
}

/* 2. Laptops & tablets landscape (max-width: 1024px) */
@media (max-width: 1024px) {
	.smmp-panel .smmp-sidebar {
		width: 210px;
		flex: 0 0 210px;
	}
	.smmp-panel .smmp-brand {
		padding: 16px 14px;
		font-size: 16px;
	}
	.smmp-panel .smmp-content {
		padding: 20px 16px;
	}
	.smmp-panel .smmp-form {
		max-width: 100%;
	}
	.smmp-panel .smmp-card {
		padding: 16px;
	}
}

/* 3. Tablets portrait & large phones (max-width: 768px) */
@media (max-width: 768px) {
	.smmp-panel {
		flex-direction: column;
		width: 100%;
		border-radius: var(--smmp-radius);
	}

	.smmp-panel .smmp-sidebar {
		width: 100%;
		flex: 0 0 auto;
	}

	.smmp-panel .smmp-sidebar-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 10px 16px;
		background: var(--smmp-blue);
		border-bottom: 1px solid rgba(255, 255, 255, .12);
	}

	.smmp-panel .smmp-brand {
		padding: 0;
		min-height: 44px;
	}

	.smmp-panel .smmp-brand img {
		max-width: 150px;
		max-height: 38px;
	}

	.smmp-panel .smmp-sidebar-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		min-height: 44px;
		padding: 10px;
		background: rgba(255, 255, 255, .1);
		border-radius: var(--smmp-radius);
	}

	.smmp-panel .smmp-sidebar-toggle:hover {
		background: rgba(255, 255, 255, .18);
	}

	.smmp-panel .smmp-menu {
		display: none;
		padding: 8px 12px 16px;
	}

	.smmp-panel .smmp-sidebar.is-open .smmp-menu {
		display: block;
		animation: smmpSlideDown .25s ease forwards;
	}

	/* Hamburger morph to X when open */
	.smmp-panel .smmp-sidebar.is-open .smmp-toggle-bar:nth-child(1) {
		transform: translateY(6px) rotate(45deg);
	}
	.smmp-panel .smmp-sidebar.is-open .smmp-toggle-bar:nth-child(2) {
		opacity: 0;
	}
	.smmp-panel .smmp-sidebar.is-open .smmp-toggle-bar:nth-child(3) {
		transform: translateY(-6px) rotate(-45deg);
	}

	.smmp-panel .smmp-topbar {
		flex-wrap: wrap;
		gap: 12px;
		padding: 10px 14px;
	}

	.smmp-panel .smmp-balance-chip {
		min-height: 40px;
		padding: 6px 14px;
	}

	.smmp-panel .smmp-account-toggle {
		min-height: 44px;
		padding: 6px 10px;
	}

	.smmp-panel .smmp-content {
		padding: 16px 12px;
	}

	.smmp-panel .smmp-cards {
		gap: 12px;
		margin-bottom: 20px;
	}

	.smmp-panel .smmp-card {
		flex: 1 1 calc(50% - 8px);
		min-width: 140px;
		padding: 16px;
	}

	.smmp-panel .smmp-card-value {
		font-size: 22px;
	}

	.smmp-app .smmp-row {
		flex-direction: column;
		gap: 12px;
	}

	.smmp-app .smmp-row .smmp-field {
		flex: 1 1 100%;
		width: 100%;
		margin-bottom: 0;
	}

	.smmp-app .smmp-form {
		padding: 16px 14px;
		max-width: 100%;
	}

	/* Responsive Table with ZERO horizontal scrolling */
	.smmp-panel .smmp-table,
	.smmp-table {
		display: block;
		width: 100%;
		overflow: visible;
		border-collapse: separate;
		border-spacing: 0;
	}

	.smmp-panel .smmp-table thead,
	.smmp-table thead {
		display: none;
	}

	.smmp-panel .smmp-table tbody,
	.smmp-table tbody {
		display: flex;
		flex-direction: column;
		gap: 12px;
		width: 100%;
	}

	.smmp-panel .smmp-table tr,
	.smmp-table tr {
		display: block;
		width: 100%;
		padding: 14px 16px;
		border: 1px solid var(--smmp-border);
		border-radius: var(--smmp-radius);
		background: var(--smmp-card);
		box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
	}

	.smmp-panel .smmp-table td,
	.smmp-table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		padding: 8px 0;
		border-bottom: 1px solid #f3f4f6;
		text-align: right;
		font-size: 14px;
		line-height: 1.4;
		white-space: normal;
		word-break: break-word;
	}

	.smmp-panel .smmp-table td:last-child,
	.smmp-table td:last-child {
		border-bottom: 0;
		padding-bottom: 0;
	}

	.smmp-panel .smmp-table td:first-child,
	.smmp-table td:first-child {
		padding-top: 0;
	}

	.smmp-panel .smmp-table td::before,
	.smmp-table td::before {
		content: attr(data-label);
		display: block;
		font-weight: 600;
		color: var(--smmp-muted);
		font-size: 13px;
		text-align: left;
		margin-right: 12px;
		flex: 0 0 auto;
	}

	.smmp-panel .smmp-wrap {
		max-width: 60%;
		word-break: break-all;
	}

	.smmp-panel .smmp-tabs {
		gap: 8px;
		flex-wrap: wrap;
	}

	.smmp-panel .smmp-tab {
		min-height: 44px;
		padding: 8px 14px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	.smmp-panel .smmp-page-link {
		min-width: 44px;
		min-height: 44px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}

/* 4. Small mobile phones (max-width: 480px) */
@media (max-width: 480px) {
	.smmp-app {
		font-size: 16px;
	}

	/* Prevent iOS auto-zoom on input focus */
	.smmp-app .smmp-input {
		font-size: 16px;
		min-height: 44px;
	}

	.smmp-app .smmp-btn {
		min-height: 44px;
		font-size: 15px;
	}

	.smmp-panel .smmp-card {
		flex: 1 1 100%;
		width: 100%;
	}

	.smmp-panel .smmp-shortcuts {
		flex-direction: column;
		width: 100%;
		gap: 10px;
	}

	.smmp-panel .smmp-shortcuts .smmp-btn {
		width: 100%;
	}

	.smmp-panel .smmp-topbar {
		padding: 8px 10px;
	}

	.smmp-panel .smmp-balance-chip {
		padding: 4px 10px;
		font-size: 13px;
	}

	.smmp-panel .smmp-account-name {
		max-width: 90px;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.smmp-panel .smmp-ticket-toggle {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
		padding: 12px;
	}

	.smmp-panel .smmp-ticket-body {
		padding: 0 12px 14px;
	}

	.smmp-app .smmp-form button[type="submit"] {
		width: 100%;
	}

	.smmp-app .smmp-method-qr img.smmp-qr-code {
		max-width: 260px;
	}
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	.smmp-app *,
	.smmp-app *::before,
	.smmp-app *::after {
		transition-duration: .001ms !important;
		animation-duration: .001ms !important;
		animation-iteration-count: 1 !important;
	}
}
