/**
 * Account Center Styles
 * China Travel Specialist Theme
 *
 * Account Shell: Sidebar + Topbar + Content
 * Responsive: Desktop (sidebar visible) → Mobile (<768px: drawer)
 */

/* ===== CSS Variables ===== */
:root {
	--cts-acc-primary: #1a3c34;
	--cts-acc-primary-light: #2d6a4f;
	--cts-acc-accent: #f4b63c;
	--cts-acc-accent-light: #ffd166;
	--cts-acc-bg: #f5f6f8;
	--cts-acc-surface: #ffffff;
	--cts-acc-border: #e2e5e9;
	--cts-acc-text: #1a1d21;
	--cts-acc-text-secondary: #6b7280;
	--cts-acc-text-muted: #9ca3af;
	--cts-acc-sidebar-bg: #152920;
	--cts-acc-sidebar-text: #c8d4ce;
	--cts-acc-sidebar-active: #f4b63c;
	--cts-acc-radius: 12px;
	--cts-acc-radius-sm: 8px;
	--cts-acc-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	--cts-acc-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.1);
	--cts-acc-sidebar-width: 250px;
	--cts-acc-topbar-height: 64px;
	--cts-acc-max-width: 1200px;
}

/* ===== Shell Layout ===== */
.cts-account-shell {
	display: flex;
	min-height: 100vh;
	background: var(--cts-acc-bg);
}

.cts-account-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	z-index: 999;
}

/* ===== Sidebar ===== */
.cts-account-sidebar {
	width: var(--cts-acc-sidebar-width);
	background: var(--cts-acc-sidebar-bg);
	color: var(--cts-acc-sidebar-text);
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	z-index: 1000;
	overflow-y: auto;
	transition: transform 0.3s ease;
}

.cts-account-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 20px 16px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cts-account-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #fff;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: -0.02em;
}

.cts-account-logo img {
	width: 28px;
	height: 28px;
}

.cts-account-logo-text {
	color: #fff;
}

.cts-account-sidebar-close {
	display: none;
	background: none;
	border: none;
	color: var(--cts-acc-sidebar-text);
	cursor: pointer;
	padding: 4px;
}

.cts-account-sidebar-close svg {
	width: 20px;
	height: 20px;
}

.cts-account-user-info {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cts-account-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	overflow: hidden;
	flex-shrink: 0;
	border: 2px solid var(--cts-acc-accent);
}

.cts-account-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cts-account-user-meta {
	flex: 1;
	min-width: 0;
}

.cts-account-user-name {
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cts-account-user-email {
	color: var(--cts-acc-sidebar-text);
	font-size: 12px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 4px;
}

.cts-account-tier-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.cts-tier-regular {
	background: rgba(255, 255, 255, 0.15);
	color: #c8d4ce;
}

.cts-tier-silver {
	background: rgba(192, 192, 192, 0.25);
	color: #e0e0e0;
}

.cts-tier-gold {
	background: rgba(244, 182, 60, 0.2);
	color: var(--cts-acc-accent-light);
}

.cts-tier-diamond {
	background: rgba(64, 224, 208, 0.2);
	color: #7fffd4;
}

/* ===== Sidebar Navigation ===== */
.cts-account-nav {
	flex: 1;
	padding: 12px 0;
	overflow-y: auto;
}

.cts-account-nav-item-wrap {
	margin-bottom: 2px;
}

.cts-account-nav-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 20px;
	color: var(--cts-acc-sidebar-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.15s ease;
	border-left: 3px solid transparent;
}

.cts-account-nav-item:hover {
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
}

.cts-account-nav-item.cts-active {
	background: rgba(244, 182, 60, 0.08);
	color: var(--cts-acc-sidebar-active);
	border-left-color: var(--cts-acc-sidebar-active);
}

.cts-account-nav-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.cts-account-nav-icon svg {
	width: 18px;
	height: 18px;
}

.cts-account-nav-label {
	flex: 1;
}

.cts-account-nav-arrow {
	display: flex;
	align-items: center;
	opacity: 0.6;
}

.cts-account-nav-arrow svg {
	width: 14px;
	height: 14px;
}

.cts-account-nav-children {
	padding: 4px 0 4px 50px;
}

.cts-account-nav-child {
	display: block;
	padding: 7px 12px;
	color: var(--cts-acc-sidebar-text);
	text-decoration: none;
	font-size: 13px;
	border-radius: 6px;
	margin-bottom: 2px;
	transition: all 0.15s ease;
}

.cts-account-nav-child:hover {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
}

.cts-account-nav-child.cts-active {
	color: var(--cts-acc-sidebar-active);
	font-weight: 600;
}

.cts-account-sidebar-footer {
	padding: 16px 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cts-account-back-site {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--cts-acc-sidebar-text);
	text-decoration: none;
	font-size: 13px;
	transition: color 0.15s ease;
}

.cts-account-back-site:hover {
	color: #fff;
}

.cts-account-back-site svg {
	width: 16px;
	height: 16px;
}

/* ===== Main Content Area ===== */
.cts-account-main {
	flex: 1;
	margin-left: var(--cts-acc-sidebar-width);
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* ===== Topbar ===== */
.cts-account-topbar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 0 24px;
	height: var(--cts-acc-topbar-height);
	background: var(--cts-acc-surface);
	border-bottom: 1px solid var(--cts-acc-border);
	position: sticky;
	top: 0;
	z-index: 100;
}

.cts-account-menu-toggle {
	display: none;
	background: none;
	border: none;
	color: var(--cts-acc-text);
	cursor: pointer;
	padding: 6px;
	border-radius: 6px;
}

.cts-account-menu-toggle:hover {
	background: var(--cts-acc-bg);
}

.cts-account-menu-toggle svg {
	width: 22px;
	height: 22px;
}

.cts-account-page-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--cts-acc-text);
	margin: 0;
	flex: 1;
}

.cts-account-topbar-actions {
	display: flex;
	align-items: center;
	gap: 20px;
}

.cts-account-topbar-link {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--cts-acc-text-secondary);
	text-decoration: none;
	font-size: 13px;
	font-weight: 500;
	transition: color 0.15s ease;
}

.cts-account-topbar-link:hover {
	color: var(--cts-acc-primary);
}

.cts-account-topbar-link svg {
	width: 16px;
	height: 16px;
}

/* ===== Content Area ===== */
.cts-account-content {
	padding: 32px 24px;
	max-width: var(--cts-acc-max-width);
	width: 100%;
	margin: 0 auto;
}

/* ===== Data Cards (Dashboard) ===== */
.cts-data-cards {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 28px;
}

.cts-data-card {
	background: var(--cts-acc-surface);
	border-radius: var(--cts-acc-radius);
	padding: 20px;
	box-shadow: var(--cts-acc-shadow);
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease, transform 0.15s ease;
	display: block;
}

.cts-data-card:hover {
	box-shadow: var(--cts-acc-shadow-lg);
	transform: translateY(-2px);
}

.cts-data-card-icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 12px;
}

.cts-data-card-icon svg {
	width: 20px;
	height: 20px;
}

.cts-data-card-icon.trips {
	background: rgba(26, 60, 52, 0.1);
	color: var(--cts-acc-primary);
}

.cts-data-card-icon.requests {
	background: rgba(244, 182, 60, 0.15);
	color: #b8860b;
}

.cts-data-card-icon.guides {
	background: rgba(45, 106, 79, 0.1);
	color: var(--cts-acc-primary-light);
}

.cts-data-card-icon.points {
	background: rgba(244, 182, 60, 0.15);
	color: #b8860b;
}

.cts-data-card-value {
	font-size: 28px;
	font-weight: 700;
	color: var(--cts-acc-text);
	line-height: 1.2;
	margin-bottom: 4px;
}

.cts-data-card-label {
	font-size: 13px;
	color: var(--cts-acc-text-secondary);
	font-weight: 500;
}

.cts-data-card-sub {
	font-size: 12px;
	color: var(--cts-acc-text-muted);
	margin-top: 4px;
}

/* ===== Points Summary Card ===== */
.cts-points-summary {
	background: linear-gradient(135deg, var(--cts-acc-primary) 0%, #152920 100%);
	border-radius: var(--cts-acc-radius);
	padding: 28px;
	color: #fff;
	margin-bottom: 28px;
	position: relative;
	overflow: hidden;
}

.cts-points-summary::before {
	content: '';
	position: absolute;
	top: -40px;
	right: -40px;
	width: 180px;
	height: 180px;
	background: radial-gradient(circle, rgba(244, 182, 60, 0.15) 0%, transparent 70%);
	border-radius: 50%;
}

.cts-points-summary-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 20px;
	position: relative;
}

.cts-points-summary-title {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	font-weight: 500;
	margin-bottom: 8px;
}

.cts-points-summary-value {
	font-size: 36px;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

.cts-points-summary-equiv {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	margin-top: 6px;
}

.cts-points-summary-equiv strong {
	color: var(--cts-acc-accent);
}

.cts-points-summary-action {
	background: var(--cts-acc-accent);
	color: var(--cts-acc-primary);
	padding: 8px 16px;
	border-radius: var(--cts-acc-radius-sm);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.cts-points-summary-action:hover {
	background: var(--cts-acc-accent-light);
}

.cts-points-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	position: relative;
}

.cts-points-stat {
	padding: 12px 0;
}

.cts-points-stat-label {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
	margin-bottom: 4px;
}

.cts-points-stat-value {
	font-size: 18px;
	font-weight: 600;
	color: #fff;
}

.cts-points-stat-value.warning {
	color: var(--cts-acc-accent);
}

/* ===== Section Title ===== */
.cts-section-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--cts-acc-text);
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cts-section-title-link {
	font-size: 13px;
	font-weight: 500;
	color: var(--cts-acc-primary-light);
	text-decoration: none;
}

.cts-section-title-link:hover {
	text-decoration: underline;
}

/* ===== Trip Card ===== */
.cts-trip-card {
	background: var(--cts-acc-surface);
	border-radius: var(--cts-acc-radius);
	padding: 20px;
	box-shadow: var(--cts-acc-shadow);
	margin-bottom: 16px;
}

.cts-trip-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 16px;
}

.cts-trip-card-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--cts-acc-text);
	margin-bottom: 4px;
}

.cts-trip-card-id {
	font-size: 12px;
	color: var(--cts-acc-text-muted);
}

.cts-trip-card-body {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.cts-trip-detail {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.cts-trip-detail-label {
	font-size: 11px;
	color: var(--cts-acc-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	font-weight: 600;
}

.cts-trip-detail-value {
	font-size: 14px;
	color: var(--cts-acc-text);
	font-weight: 500;
}

.cts-trip-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--cts-acc-border);
}

.cts-trip-card-amount {
	font-size: 18px;
	font-weight: 700;
	color: var(--cts-acc-primary);
}

.cts-trip-card-amount-label {
	font-size: 11px;
	color: var(--cts-acc-text-muted);
}

/* ===== Status Badges ===== */
.cts-status-badge {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.cts-status-pending {
	background: #fef3c7;
	color: #92400e;
}

.cts-status-confirmed {
	background: #dbeafe;
	color: #1e40af;
}

.cts-status-progress {
	background: #e0e7ff;
	color: #3730a3;
}

.cts-status-completed {
	background: #d1fae5;
	color: #065f46;
}

.cts-status-cancelled {
	background: #fee2e2;
	color: #991b1b;
}

.cts-status-refunded {
	background: #fce7f3;
	color: #9d174d;
}

.cts-status-available {
	background: #d1fae5;
	color: #065f46;
}

.cts-status-frozen {
	background: #e0f2fe;
	color: #075985;
}

.cts-status-expired {
	background: #f3f4f6;
	color: #6b7280;
}

.cts-status-redeemed {
	background: #f0fdf4;
	color: #166534;
}

.cts-status-default {
	background: #f3f4f6;
	color: #6b7280;
}

/* ===== Activity List ===== */
.cts-activity-list {
	background: var(--cts-acc-surface);
	border-radius: var(--cts-acc-radius);
	box-shadow: var(--cts-acc-shadow);
	overflow: hidden;
}

.cts-activity-item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 20px;
	border-bottom: 1px solid var(--cts-acc-border);
}

.cts-activity-item:last-child {
	border-bottom: none;
}

.cts-activity-icon {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.cts-activity-icon svg {
	width: 16px;
	height: 16px;
}

.cts-activity-icon.points {
	background: rgba(244, 182, 60, 0.15);
	color: #b8860b;
}

.cts-activity-icon.trip {
	background: rgba(26, 60, 52, 0.1);
	color: var(--cts-acc-primary);
}

.cts-activity-icon.guide {
	background: rgba(45, 106, 79, 0.1);
	color: var(--cts-acc-primary-light);
}

.cts-activity-icon.wishlist {
	background: rgba(244, 182, 60, 0.15);
	color: #b8860b;
}

.cts-activity-content {
	flex: 1;
}

.cts-activity-text {
	font-size: 14px;
	color: var(--cts-acc-text);
	line-height: 1.4;
}

.cts-activity-time {
	font-size: 12px;
	color: var(--cts-acc-text-muted);
	margin-top: 2px;
}

/* ===== Empty State ===== */
.cts-account-empty {
	text-align: center;
	padding: 48px 24px;
}

.cts-account-empty-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	color: var(--cts-acc-text-muted);
	opacity: 0.5;
}

.cts-account-empty-icon svg {
	width: 100%;
	height: 100%;
}

.cts-account-empty-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--cts-acc-text);
	margin-bottom: 8px;
}

.cts-account-empty-desc {
	font-size: 14px;
	color: var(--cts-acc-text-secondary);
	margin-bottom: 20px;
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

/* ===== Skeleton Loading ===== */
.cts-skeleton-card {
	background: var(--cts-acc-surface);
	border-radius: var(--cts-acc-radius);
	padding: 20px;
	margin-bottom: 16px;
	box-shadow: var(--cts-acc-shadow);
}

.cts-skeleton-line {
	height: 12px;
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: cts-skeleton-loading 1.5s infinite;
	border-radius: 6px;
	margin-bottom: 8px;
}

.cts-skeleton-w60 { width: 60%; }
.cts-skeleton-w40 { width: 40%; }
.cts-skeleton-w80 { width: 80%; }

@keyframes cts-skeleton-loading {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

/* ===== Buttons ===== */
.cts-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 20px;
	border-radius: var(--cts-acc-radius-sm);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: all 0.15s ease;
	white-space: nowrap;
}

.cts-btn-primary {
	background: var(--cts-acc-primary);
	color: #fff;
}

.cts-btn-primary:hover {
	background: var(--cts-acc-primary-light);
}

.cts-btn-accent {
	background: var(--cts-acc-accent);
	color: var(--cts-acc-primary);
}

.cts-btn-accent:hover {
	background: var(--cts-acc-accent-light);
}

.cts-btn-outline {
	background: transparent;
	color: var(--cts-acc-primary);
	border: 1.5px solid var(--cts-acc-primary);
}

.cts-btn-outline:hover {
	background: var(--cts-acc-primary);
	color: #fff;
}

.cts-btn-ghost {
	background: transparent;
	color: var(--cts-acc-text-secondary);
}

.cts-btn-ghost:hover {
	background: var(--cts-acc-bg);
	color: var(--cts-acc-text);
}

.cts-btn-sm {
	padding: 6px 14px;
	font-size: 13px;
}

.cts-btn-lg {
	padding: 12px 28px;
	font-size: 15px;
}

/* ===== Tabs ===== */
.cts-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 20px;
	border-bottom: 2px solid var(--cts-acc-border);
}

.cts-tab {
	padding: 10px 16px;
	font-size: 14px;
	font-weight: 500;
	color: var(--cts-acc-text-secondary);
	text-decoration: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	transition: all 0.15s ease;
	cursor: pointer;
	background: none;
	border-top: none;
	border-left: none;
	border-right: none;
}

.cts-tab:hover {
	color: var(--cts-acc-text);
}

.cts-tab.cts-active {
	color: var(--cts-acc-primary);
	border-bottom-color: var(--cts-acc-primary);
	font-weight: 600;
}

.cts-tab-count {
	display: inline-block;
	background: var(--cts-acc-bg);
	color: var(--cts-acc-text-secondary);
	padding: 1px 7px;
	border-radius: 10px;
	font-size: 11px;
	margin-left: 6px;
}

.cts-tab.cts-active .cts-tab-count {
	background: var(--cts-acc-primary);
	color: #fff;
}

/* ===== Tables ===== */
.cts-table-wrap {
	background: var(--cts-acc-surface);
	border-radius: var(--cts-acc-radius);
	box-shadow: var(--cts-acc-shadow);
	overflow: hidden;
}

.cts-table {
	width: 100%;
	border-collapse: collapse;
}

.cts-table th {
	padding: 12px 16px;
	text-align: left;
	font-size: 12px;
	font-weight: 600;
	color: var(--cts-acc-text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	background: var(--cts-acc-bg);
	border-bottom: 1px solid var(--cts-acc-border);
}

.cts-table td {
	padding: 14px 16px;
	font-size: 14px;
	color: var(--cts-acc-text);
	border-bottom: 1px solid var(--cts-acc-border);
}

.cts-table tr:last-child td {
	border-bottom: none;
}

.cts-table tr:hover td {
	background: rgba(0, 0, 0, 0.01);
}

/* ===== Form Fields ===== */
.cts-form-group {
	margin-bottom: 20px;
}

.cts-form-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--cts-acc-text);
	margin-bottom: 6px;
}

.cts-form-label .cts-required {
	color: #dc2626;
}

.cts-form-hint {
	font-size: 12px;
	color: var(--cts-acc-text-muted);
	margin-top: 4px;
}

.cts-form-input,
.cts-form-select,
.cts-form-textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid var(--cts-acc-border);
	border-radius: var(--cts-acc-radius-sm);
	font-size: 14px;
	color: var(--cts-acc-text);
	background: var(--cts-acc-surface);
	transition: border-color 0.15s ease;
	font-family: inherit;
}

.cts-form-input:focus,
.cts-form-select:focus,
.cts-form-textarea:focus {
	outline: none;
	border-color: var(--cts-acc-primary-light);
	box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.cts-form-textarea {
	resize: vertical;
	min-height: 80px;
}

.cts-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

/* ===== Toggle Switch ===== */
.cts-toggle {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
}

.cts-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cts-toggle-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: #d1d5db;
	border-radius: 24px;
	transition: 0.2s;
}

.cts-toggle-slider::before {
	content: "";
	position: absolute;
	height: 18px;
	width: 18px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: 0.2s;
}

.cts-toggle input:checked + .cts-toggle-slider {
	background: var(--cts-acc-primary);
}

.cts-toggle input:checked + .cts-toggle-slider::before {
	transform: translateX(20px);
}

.cts-toggle-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	border-bottom: 1px solid var(--cts-acc-border);
}

.cts-toggle-row:last-child {
	border-bottom: none;
}

.cts-toggle-row-content {
	flex: 1;
	margin-right: 16px;
}

.cts-toggle-row-title {
	font-size: 14px;
	font-weight: 500;
	color: var(--cts-acc-text);
}

.cts-toggle-row-desc {
	font-size: 12px;
	color: var(--cts-acc-text-muted);
	margin-top: 2px;
}

/* ===== Cards Grid ===== */
.cts-cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.cts-cards-grid.cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.cts-cards-grid.cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* ===== Info Card ===== */
.cts-info-card {
	background: var(--cts-acc-surface);
	border-radius: var(--cts-acc-radius);
	padding: 24px;
	box-shadow: var(--cts-acc-shadow);
}

.cts-info-card-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--cts-acc-text);
	margin-bottom: 16px;
}

/* ===== Points Earn Card ===== */
.cts-earn-card {
	background: var(--cts-acc-surface);
	border-radius: var(--cts-acc-radius);
	padding: 20px;
	box-shadow: var(--cts-acc-shadow);
	text-align: center;
	transition: box-shadow 0.2s ease;
}

.cts-earn-card:hover {
	box-shadow: var(--cts-acc-shadow-lg);
}

.cts-earn-card-icon {
	width: 48px;
	height: 48px;
	margin: 0 auto 12px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(244, 182, 60, 0.15);
	color: #b8860b;
}

.cts-earn-card-icon svg {
	width: 24px;
	height: 24px;
}

.cts-earn-card-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--cts-acc-text);
	margin-bottom: 6px;
}

.cts-earn-card-points {
	font-size: 20px;
	font-weight: 700;
	color: var(--cts-acc-accent);
	margin-bottom: 6px;
}

.cts-earn-card-desc {
	font-size: 13px;
	color: var(--cts-acc-text-secondary);
	line-height: 1.4;
}

/* ===== Redeem Card ===== */
.cts-redeem-card {
	background: var(--cts-acc-surface);
	border-radius: var(--cts-acc-radius);
	overflow: hidden;
	box-shadow: var(--cts-acc-shadow);
	transition: box-shadow 0.2s ease;
}

.cts-redeem-card:hover {
	box-shadow: var(--cts-acc-shadow-lg);
}

.cts-redeem-card-image {
	width: 100%;
	height: 140px;
	background: linear-gradient(135deg, var(--cts-acc-primary), #152920);
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.3);
}

.cts-redeem-card-image svg {
	width: 48px;
	height: 48px;
}

.cts-redeem-card-body {
	padding: 16px;
}

.cts-redeem-card-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--cts-acc-text);
	margin-bottom: 4px;
}

.cts-redeem-card-desc {
	font-size: 13px;
	color: var(--cts-acc-text-secondary);
	margin-bottom: 12px;
	line-height: 1.4;
}

.cts-redeem-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.cts-redeem-card-cost {
	font-size: 16px;
	font-weight: 700;
	color: var(--cts-acc-accent);
}

.cts-redeem-card-cost-label {
	font-size: 11px;
	color: var(--cts-acc-text-muted);
}

/* ===== Invite Section ===== */
.cts-invite-hero {
	background: linear-gradient(135deg, var(--cts-acc-primary) 0%, #152920 100%);
	border-radius: var(--cts-acc-radius);
	padding: 32px;
	color: #fff;
	margin-bottom: 28px;
	position: relative;
	overflow: hidden;
}

.cts-invite-hero::before {
	content: '';
	position: absolute;
	top: -60px;
	right: -60px;
	width: 240px;
	height: 240px;
	background: radial-gradient(circle, rgba(244, 182, 60, 0.15) 0%, transparent 70%);
	border-radius: 50%;
}

.cts-invite-hero-title {
	font-size: 24px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 8px;
	position: relative;
}

.cts-invite-hero-desc {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 24px;
	max-width: 500px;
	position: relative;
	line-height: 1.5;
}

.cts-invite-code-box {
	display: flex;
	align-items: center;
	gap: 12px;
	position: relative;
	max-width: 500px;
}

.cts-invite-code-input {
	flex: 1;
	padding: 12px 16px;
	border: 2px solid rgba(255, 255, 255, 0.2);
	border-radius: var(--cts-acc-radius-sm);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.05em;
}

.cts-invite-code-input:focus {
	outline: none;
	border-color: var(--cts-acc-accent);
}

.cts-invite-copy-btn {
	padding: 12px 20px;
	background: var(--cts-acc-accent);
	color: var(--cts-acc-primary);
	border: none;
	border-radius: var(--cts-acc-radius-sm);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.15s ease;
}

.cts-invite-copy-btn:hover {
	background: var(--cts-acc-accent-light);
}

.cts-invite-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 24px;
	position: relative;
}

.cts-invite-stat {
	text-align: center;
}

.cts-invite-stat-value {
	font-size: 24px;
	font-weight: 700;
	color: var(--cts-acc-accent);
}

.cts-invite-stat-label {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
	margin-top: 4px;
}

/* ===== Invite Milestones ===== */
.cts-milestone-track {
	display: flex;
	gap: 0;
	margin: 24px 0;
	position: relative;
}

.cts-milestone-item {
	flex: 1;
	text-align: center;
	position: relative;
}

.cts-milestone-item::before {
	content: '';
	display: block;
	width: 100%;
	height: 4px;
	background: var(--cts-acc-border);
	margin-bottom: 12px;
	border-radius: 2px;
}

.cts-milestone-item.completed::before {
	background: var(--cts-acc-primary);
}

.cts-milestone-item.current::before {
	background: var(--cts-acc-accent);
}

.cts-milestone-circle {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--cts-acc-bg);
	border: 2px solid var(--cts-acc-border);
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 8px;
	font-size: 13px;
	font-weight: 700;
	color: var(--cts-acc-text-muted);
}

.cts-milestone-item.completed .cts-milestone-circle {
	background: var(--cts-acc-primary);
	border-color: var(--cts-acc-primary);
	color: #fff;
}

.cts-milestone-item.current .cts-milestone-circle {
	background: var(--cts-acc-accent);
	border-color: var(--cts-acc-accent);
	color: var(--cts-acc-primary);
}

.cts-milestone-label {
	font-size: 12px;
	color: var(--cts-acc-text-secondary);
	font-weight: 500;
}

.cts-milestone-reward {
	font-size: 11px;
	color: var(--cts-acc-text-muted);
	margin-top: 2px;
}

/* ===== Logout Confirm Modal ===== */
.cts-logout-modal {
	max-width: 420px;
	margin: 60px auto;
	background: var(--cts-acc-surface);
	border-radius: var(--cts-acc-radius);
	box-shadow: var(--cts-acc-shadow-lg);
	padding: 40px;
	text-align: center;
}

.cts-logout-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: #fee2e2;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #dc2626;
}

.cts-logout-icon svg {
	width: 32px;
	height: 32px;
}

.cts-logout-title {
	font-size: 20px;
	font-weight: 700;
	color: var(--cts-acc-text);
	margin-bottom: 8px;
}

.cts-logout-desc {
	font-size: 14px;
	color: var(--cts-acc-text-secondary);
	margin-bottom: 28px;
	line-height: 1.5;
}

.cts-logout-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
}

/* ===== Notification ===== */
.cts-notification {
	padding: 14px 16px;
	border-radius: var(--cts-acc-radius-sm);
	font-size: 14px;
	margin-bottom: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.cts-notification.info {
	background: #dbeafe;
	color: #1e40af;
}

.cts-notification.success {
	background: #d1fae5;
	color: #065f46;
}

.cts-notification.warning {
	background: #fef3c7;
	color: #92400e;
}

.cts-notification.error {
	background: #fee2e2;
	color: #991b1b;
}

/* ===== Two Column Layout ===== */
.cts-two-col {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 24px;
}

.cts-two-col_reverse {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 24px;
}

/* ===== Badge / Tag ===== */
.cts-tag {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 600;
}

.cts-tag-new {
	background: #d1fae5;
	color: #065f46;
}

.cts-tag-hot {
	background: #fee2e2;
	color: #991b1b;
}

.cts-tag-accent {
	background: rgba(244, 182, 60, 0.2);
	color: #b8860b;
}

/* ===== Guide Library Card ===== */
.cts-guide-card {
	background: var(--cts-acc-surface);
	border-radius: var(--cts-acc-radius);
	overflow: hidden;
	box-shadow: var(--cts-acc-shadow);
	transition: box-shadow 0.2s ease;
}

.cts-guide-card:hover {
	box-shadow: var(--cts-acc-shadow-lg);
}

.cts-guide-card-image {
	width: 100%;
	height: 160px;
	background: var(--cts-acc-bg);
	overflow: hidden;
}

.cts-guide-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cts-guide-card-body {
	padding: 16px;
}

.cts-guide-card-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--cts-acc-text);
	margin-bottom: 4px;
	line-height: 1.3;
}

.cts-guide-card-meta {
	font-size: 12px;
	color: var(--cts-acc-text-muted);
	margin-bottom: 10px;
}

.cts-guide-card-progress {
	height: 4px;
	background: var(--cts-acc-bg);
	border-radius: 2px;
	margin-bottom: 6px;
	overflow: hidden;
}

.cts-guide-card-progress-bar {
	height: 100%;
	background: var(--cts-acc-primary);
	border-radius: 2px;
	transition: width 0.3s ease;
}

.cts-guide-card-progress-text {
	font-size: 11px;
	color: var(--cts-acc-text-muted);
}

/* ===== Checkin Calendar ===== */
.cts-checkin-week {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 20px 0;
}

.cts-checkin-day {
	flex: 1;
	max-width: 60px;
	text-align: center;
}

.cts-checkin-day-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 6px;
	font-size: 13px;
	font-weight: 600;
	background: var(--cts-acc-bg);
	color: var(--cts-acc-text-muted);
	border: 2px solid var(--cts-acc-border);
}

.cts-checkin-day.checked .cts-checkin-day-circle {
	background: var(--cts-acc-primary);
	color: #fff;
	border-color: var(--cts-acc-primary);
}

.cts-checkin-day.today .cts-checkin-day-circle {
	border-color: var(--cts-acc-accent);
	border-style: dashed;
}

.cts-checkin-day.checked.today .cts-checkin-day-circle {
	background: var(--cts-acc-accent);
	color: var(--cts-acc-primary);
	border-color: var(--cts-acc-accent);
}

.cts-checkin-day-label {
	font-size: 11px;
	color: var(--cts-acc-text-muted);
}

.cts-checkin-day-points {
	font-size: 10px;
	color: var(--cts-acc-accent);
	font-weight: 600;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
	.cts-data-cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.cts-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.cts-cards-grid.cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.cts-two-col,
	.cts-two-col_reverse {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.cts-account-overlay.cts-show {
		display: block;
	}

	.cts-account-sidebar {
		transform: translateX(-100%);
	}

	.cts-account-sidebar.cts-open {
		transform: translateX(0);
	}

	.cts-account-sidebar-close {
		display: flex;
	}

	.cts-account-main {
		margin-left: 0;
	}

	.cts-account-menu-toggle {
		display: flex;
	}

	.cts-account-topbar-actions {
		gap: 12px;
	}

	.cts-account-topbar-link span {
		display: none;
	}

	.cts-account-topbar-link svg {
		width: 20px;
		height: 20px;
	}

	.cts-account-content {
		padding: 20px 16px;
	}

	.cts-data-cards {
		grid-template-columns: 1fr;
	}

	.cts-cards-grid,
	.cts-cards-grid.cols-2,
	.cts-cards-grid.cols-4 {
		grid-template-columns: 1fr;
	}

	.cts-points-summary-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.cts-trip-card-body {
		grid-template-columns: 1fr;
	}

	.cts-form-row {
		grid-template-columns: 1fr;
	}

	.cts-invite-stats {
		grid-template-columns: 1fr;
	}

	.cts-table-wrap {
		overflow-x: auto;
	}

	.cts-table {
		min-width: 600px;
	}

	.cts-milestone-track {
		flex-wrap: wrap;
		gap: 8px;
	}

	.cts-milestone-item {
		flex: 0 0 calc(50% - 4px);
	}

	.cts-points-summary {
		padding: 20px;
	}

	.cts-points-summary-value {
		font-size: 28px;
	}

	.cts-points-summary-header {
		flex-direction: column;
		gap: 16px;
	}

	.cts-account-page-title {
		font-size: 16px;
	}
}

@media (max-width: 480px) {
	.cts-account-topbar {
		padding: 0 16px;
	}

	.cts-account-content {
		padding: 16px 12px;
	}

	.cts-data-card {
		padding: 16px;
	}

	.cts-data-card-value {
		font-size: 24px;
	}

	.cts-points-summary {
		padding: 16px;
	}
}

/* =========================================================================
   AUTH PAGE (Login / Register)
   ========================================================================= */
.cts-auth-page {
	display: flex;
	min-height: 100vh;
	background: #f5f6f8;
}

/* Brand Panel (Left) */
.cts-auth-brand {
	flex: 0 0 42%;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 40px;
	color: #fff;
	overflow: hidden;
}

.cts-auth-brand-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.cts-auth-brand-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, rgba(26, 60, 52, 0.92) 0%, rgba(21, 41, 32, 0.88) 100%);
	z-index: 1;
}

.cts-auth-brand-content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: space-between;
}

.cts-auth-brand-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #fff;
	text-decoration: none;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: 0.5px;
}

.cts-auth-brand-tagline h2 {
	font-family: 'Playfair Display', serif;
	font-size: 38px;
	line-height: 1.2;
	margin: 0 0 12px;
	font-weight: 600;
}

.cts-auth-brand-tagline p {
	font-size: 16px;
	line-height: 1.6;
	opacity: 0.85;
	margin: 0;
	max-width: 380px;
}

.cts-auth-brand-benefits {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.cts-auth-brand-benefits li {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	opacity: 0.9;
}

.cts-auth-brand-benefits svg {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	color: var(--cts-acc-accent, #f4b63c);
}

.cts-auth-brand-stats {
	display: flex;
	gap: 32px;
	padding-top: 24px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.cts-auth-stat strong {
	display: block;
	font-size: 26px;
	font-weight: 700;
	color: var(--cts-acc-accent, #f4b63c);
}

.cts-auth-stat span {
	font-size: 13px;
	opacity: 0.7;
}

/* Form Panel (Right) */
.cts-auth-form-panel {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	overflow-y: auto;
}

.cts-auth-form-container {
	width: 100%;
	max-width: 420px;
}

.cts-auth-form-header h1 {
	font-family: 'Playfair Display', serif;
	font-size: 30px;
	font-weight: 600;
	color: var(--cts-acc-text, #1a1d21);
	margin: 0 0 8px;
}

.cts-auth-form-header p {
	font-size: 15px;
	color: var(--cts-acc-text-secondary, #6b7280);
	margin: 0 0 28px;
}

/* Tab Switcher */
.cts-auth-tabs {
	display: flex;
	background: #ebedf0;
	border-radius: 10px;
	padding: 4px;
	margin-bottom: 28px;
}

.cts-auth-tab {
	flex: 1;
	padding: 10px 16px;
	border: none;
	background: transparent;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: var(--cts-acc-text-secondary, #6b7280);
	cursor: pointer;
	transition: all 0.2s;
}

.cts-auth-tab.is-active {
	background: #fff;
	color: var(--cts-acc-primary, #1a3c34);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Form Fields */
.cts-auth-form {
	display: none;
}

.cts-auth-form.is-active {
	display: block;
}

.cts-auth-field {
	margin-bottom: 18px;
}

.cts-auth-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--cts-acc-text, #1a1d21);
	margin-bottom: 6px;
}

.cts-auth-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.cts-auth-input-wrap svg {
	position: absolute;
	left: 14px;
	width: 18px;
	height: 18px;
	color: var(--cts-acc-text-muted, #9ca3af);
	pointer-events: none;
	z-index: 1;
}

.cts-auth-input-wrap input {
	width: 100%;
	padding: 12px 14px 12px 42px;
	border: 1.5px solid var(--cts-acc-border, #e2e5e9);
	border-radius: 10px;
	font-size: 15px;
	color: var(--cts-acc-text, #1a1d21);
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.cts-auth-input-wrap input:focus {
	outline: none;
	border-color: var(--cts-acc-primary-light, #2d6a4f);
	box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.cts-auth-input-wrap input::placeholder {
	color: var(--cts-acc-text-muted, #9ca3af);
}

.cts-auth-toggle-pwd {
	position: absolute;
	right: 12px;
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: var(--cts-acc-text-muted, #9ca3af);
	display: flex;
	align-items: center;
}

.cts-auth-toggle-pwd svg {
	position: static;
	width: 18px;
	height: 18px;
}

.cts-auth-toggle-pwd.is-visible svg {
	color: var(--cts-acc-primary-light, #2d6a4f);
}

/* Password Strength */
.cts-auth-pwd-strength {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-top: 6px;
	font-size: 12px;
}

.cts-auth-pwd-strength span:first-child,
.cts-auth-pwd-strength span:nth-child(2),
.cts-auth-pwd-strength span:nth-child(3) {
	display: inline-block;
	width: 20px;
	height: 4px;
	border-radius: 2px;
	background: #e2e5e9;
}

.cts-auth-pwd-strength.weak span:first-child { background: #ef4444; }
.cts-auth-pwd-strength.weak span:last-child { color: #ef4444; }
.cts-auth-pwd-strength.medium span:first-child,
.cts-auth-pwd-strength.medium span:nth-child(2) { background: #f4b63c; }
.cts-auth-pwd-strength.medium span:last-child { color: #d97706; }
.cts-auth-pwd-strength.strong span:first-child,
.cts-auth-pwd-strength.strong span:nth-child(2),
.cts-auth-pwd-strength.strong span:nth-child(3) { background: #22c55e; }
.cts-auth-pwd-strength.strong span:last-child { color: #16a34a; }

/* Field Row */
.cts-auth-field-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 22px;
}

.cts-auth-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--cts-acc-text-secondary, #6b7280);
	cursor: pointer;
}

.cts-auth-checkbox input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--cts-acc-primary, #1a3c34);
}

.cts-auth-checkbox-full {
	margin-bottom: 22px;
	font-size: 13px;
	align-items: flex-start;
}

.cts-auth-checkbox-full input[type="checkbox"] {
	margin-top: 2px;
}

.cts-auth-checkbox-full a {
	color: var(--cts-acc-primary-light, #2d6a4f);
	text-decoration: underline;
}

.cts-auth-forgot {
	font-size: 13px;
	color: var(--cts-acc-primary-light, #2d6a4f);
	text-decoration: none;
	font-weight: 500;
}

.cts-auth-forgot:hover {
	text-decoration: underline;
}

/* Submit Button */
.cts-auth-submit {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 13px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.1s;
}

.cts-auth-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.cts-auth-submit:active:not(:disabled) {
	transform: scale(0.98);
}

.cts-auth-btn-loading svg {
	animation: cts-auth-spin 0.8s linear infinite;
}

@keyframes cts-auth-spin {
	to { transform: rotate(360deg); }
}

/* Messages */
.cts-auth-message {
	margin-top: 14px;
	padding: 0;
	font-size: 14px;
	text-align: center;
	border-radius: 8px;
	overflow: hidden;
	transition: padding 0.2s;
}

.cts-auth-message.success {
	padding: 10px 14px;
	background: #f0fdf4;
	color: #16a34a;
	border: 1px solid #bbf7d0;
}

.cts-auth-message.error {
	padding: 10px 14px;
	background: #fef2f2;
	color: #dc2626;
	border: 1px solid #fecaca;
}

/* Footer */
.cts-auth-footer {
	margin-top: 32px;
	text-align: center;
}

.cts-auth-switch {
	font-size: 14px;
	color: var(--cts-acc-text-secondary, #6b7280);
	margin: 0 0 14px;
}

.cts-auth-switch a {
	color: var(--cts-acc-primary-light, #2d6a4f);
	font-weight: 600;
	text-decoration: none;
}

.cts-auth-switch a:hover {
	text-decoration: underline;
}

.cts-auth-back-home {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--cts-acc-text-muted, #9ca3af);
	text-decoration: none;
	transition: color 0.2s;
}

.cts-auth-back-home:hover {
	color: var(--cts-acc-text, #1a1d21);
}

.cts-auth-back-home svg {
	width: 16px;
	height: 16px;
}

/* Header Login/Account Links */
.cts-header-login {
	font-size: 14px;
	font-weight: 500;
	color: var(--cts-acc-text, #1a1d21);
	text-decoration: none;
	padding: 8px 14px;
	transition: color 0.2s;
}

.cts-header-login:hover {
	color: var(--cts-acc-primary, #1a3c34);
}

.cts-header-account {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: var(--cts-acc-text, #1a1d21);
	padding: 4px 12px 4px 4px;
	border-radius: 24px;
	transition: background 0.2s;
}

.cts-header-account:hover {
	background: rgba(0, 0, 0, 0.04);
}

.cts-header-account-avatar img {
	border-radius: 50%;
	display: block;
}

.cts-header-account-name {
	font-size: 14px;
	font-weight: 500;
	max-width: 120px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Hide login/account text on very small screens */
@media (max-width: 480px) {
	.cts-header-login,
	.cts-header-account-name,
	.cts-btn-plan {
		display: none;
	}
}

/* Auth Page Responsive */
@media (max-width: 968px) {
	.cts-auth-page {
		flex-direction: column;
	}

	.cts-auth-brand {
		flex: 0 0 auto;
		padding: 28px 32px;
	}

	.cts-auth-brand-content {
		gap: 20px;
	}

	.cts-auth-brand-tagline h2 {
		font-size: 26px;
	}

	.cts-auth-brand-benefits {
		display: none;
	}

	.cts-auth-brand-stats {
		padding-top: 16px;
	}

	.cts-auth-stat strong {
		font-size: 20px;
	}

	.cts-auth-form-panel {
		padding: 28px 20px;
	}
}

@media (max-width: 480px) {
	.cts-auth-brand {
		padding: 20px;
	}

	.cts-auth-brand-tagline h2 {
		font-size: 22px;
	}

	.cts-auth-brand-tagline p {
		font-size: 14px;
	}

	.cts-auth-brand-stats {
		gap: 20px;
	}

	.cts-auth-form-header h1 {
		font-size: 24px;
	}

	.cts-auth-form-panel {
		padding: 20px 16px;
	}
}

/* =========================================================================
   AUTH PAGE — Layout with standard header & footer
   ========================================================================= */
.cts-auth-page {
	min-height: calc(100vh - 200px);
}
