/**
 * TDS Dashboard — Premium UI System
 *
 * Design Tokens:
 *   Ink:      #0B0B0E
 *   Surface:  #111116
 *   Surface2: #16161D
 *   Gold:     #D4AF37
 *   Red:      #E63946
 *
 * Layout: Sequential Sections + 3 Quick Action Cards (fixed 3-column grid)
 */

/* =========================================================
   1. ROOT VARIABLES
   ========================================================= */
:root {
	--tds-bg: #0B0B0E;
	--tds-surface: #111116;
	--tds-surface-2: #16161D;
	--tds-border: rgba(255, 255, 255, 0.07);
	--tds-gold: #D4AF37;
	--tds-gold-soft: #E9C766;
	--tds-red: #E63946;
	--tds-text: #EDEDF2;
	--tds-text-muted: #9A9AA6;
	--tds-text-faint: #6B6B78;
	--tds-radius-lg: 20px;
	--tds-radius-md: 14px;
	--tds-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
	--tds-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   2. WRAPPER
   ========================================================= */
.tds-wrapper {
	max-width: 1180px;
	margin: 40px auto;
	padding: 0 24px;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	direction: ltr;
	color: var(--tds-text-muted);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

.tds-wrapper *,
.tds-wrapper *::before,
.tds-wrapper *::after {
	box-sizing: border-box;
}

/* =========================================================
   3. HERO
   ========================================================= */
.tds-hero {
	text-align: center;
	margin-bottom: 48px;
	padding: 64px 32px;
	background:
		radial-gradient(ellipse 60% 80% at 85% 0%, rgba(212, 175, 55, 0.10) 0%, transparent 60%),
		radial-gradient(ellipse 50% 70% at 10% 100%, rgba(230, 57, 70, 0.06) 0%, transparent 55%),
		linear-gradient(160deg, #131318 0%, #0B0B0E 70%);
	border-radius: 28px;
	border: 1px solid var(--tds-border);
	position: relative;
	overflow: hidden;
}

.tds-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
	pointer-events: none;
}

.tds-hero::after {
	content: "";
	position: absolute;
	top: 0;
	left: 15%;
	right: 15%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.7), transparent);
}

.tds-hero-content {
	position: relative;
	z-index: 2;
}

.tds-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: rgba(230, 57, 70, 0.10);
	color: #FF8A93;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 2px;
	padding: 8px 20px;
	border-radius: 100px;
	text-transform: uppercase;
	margin-bottom: 22px;
	border: 1px solid rgba(230, 57, 70, 0.25);
}

.tds-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--tds-red);
	box-shadow: 0 0 12px var(--tds-red);
}

.tds-hero h1 {
	font-size: clamp(30px, 4.5vw, 46px);
	font-weight: 800;
	color: var(--tds-text);
	margin: 0 0 16px 0;
	line-height: 1.2;
	letter-spacing: -0.03em;
}

.tds-hero h1 span {
	background: linear-gradient(120deg, #B8912A 0%, #F5DE8F 45%, #D4AF37 60%, #B8912A 100%);
	background-size: 200% auto;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	animation: tds-shimmer 5s linear infinite;
}

@keyframes tds-shimmer {
	0% { background-position: 200% center; }
	100% { background-position: -200% center; }
}

.tds-hero p {
	color: var(--tds-text-muted);
	font-size: 16px;
	margin: 0 auto;
	max-width: 560px;
}

/* =========================================================
   4. SERVICE HEADER
   ========================================================= */
.tds-service-header {
	margin: 56px 0 28px 0;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--tds-border);
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	position: relative;
}

.tds-service-header::after {
	content: "";
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 64px;
	height: 2px;
	background: linear-gradient(90deg, var(--tds-gold), transparent);
	border-radius: 2px;
}

.tds-service-icon {
	background: linear-gradient(145deg, rgba(212, 175, 55, 0.18), rgba(212, 175, 55, 0.05));
	color: var(--tds-gold);
	width: 46px;
	height: 46px;
	border-radius: 13px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 800;
	flex-shrink: 0;
	border: 1px solid rgba(212, 175, 55, 0.25);
}

.tds-service-header h2 {
	font-size: 22px;
	font-weight: 800;
	color: var(--tds-text);
	margin: 0;
	letter-spacing: -0.01em;
}

.tds-service-count {
	background: var(--tds-surface-2);
	color: var(--tds-text-muted);
	font-size: 12px;
	font-weight: 600;
	padding: 6px 16px;
	border-radius: 100px;
	border: 1px solid var(--tds-border);
	margin-left: auto;
}

/* =========================================================
   5. PLANS GRID & CARDS
   ========================================================= */
.tds-plans-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
	gap: 24px;
}

.tds-plan-card {
	background: linear-gradient(170deg, var(--tds-surface-2) 0%, var(--tds-surface) 100%);
	border: 1px solid var(--tds-border);
	border-radius: var(--tds-radius-lg);
	padding: 36px 28px;
	text-align: center;
	transition: transform 0.5s var(--tds-ease), border-color 0.4s, box-shadow 0.5s var(--tds-ease);
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.tds-plan-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 20%;
	right: 20%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
	opacity: 0;
	transition: opacity 0.4s;
}

.tds-plan-card:hover {
	transform: translateY(-6px);
	border-color: rgba(212, 175, 55, 0.35);
	box-shadow: var(--tds-shadow), 0 0 0 1px rgba(212, 175, 55, 0.08);
}

.tds-plan-card:hover::before {
	opacity: 1;
}

.tds-plan-icon {
	font-size: 34px;
	margin-bottom: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 20px;
	background: rgba(212, 175, 55, 0.07);
	border: 1px solid rgba(212, 175, 55, 0.18);
	align-self: center;
	transition: all 0.4s var(--tds-ease);
}

.tds-plan-card:hover .tds-plan-icon {
	background: rgba(212, 175, 55, 0.12);
	border-color: rgba(212, 175, 55, 0.4);
	transform: scale(1.06) rotate(-3deg);
}

.tds-plan-card h3 {
	font-size: 19px;
	font-weight: 800;
	color: var(--tds-text);
	margin: 0 0 10px 0;
	letter-spacing: -0.01em;
}

.tds-plan-desc {
	color: var(--tds-text-muted);
	font-size: 14px;
	margin: 0 0 22px 0;
	flex-grow: 1;
}

.tds-plan-price-box {
	margin: 4px 0 24px 0;
	padding: 20px 0;
	border-top: 1px dashed var(--tds-border);
	border-bottom: 1px dashed var(--tds-border);
}

.tds-plan-price-label {
	font-size: 11px;
	color: var(--tds-text-faint);
	margin-bottom: 8px;
	letter-spacing: 2px;
	text-transform: uppercase;
	font-weight: 600;
}

.tds-plan-price {
	font-size: 38px;
	font-weight: 800;
	background: linear-gradient(120deg, #F5DE8F, #D4AF37);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	line-height: 1;
	letter-spacing: -0.02em;
}

.tds-plan-price span {
	font-size: 15px;
	font-weight: 600;
	-webkit-text-fill-color: var(--tds-text-muted);
	margin-left: 4px;
}

.tds-plan-duration {
	font-size: 13px;
	margin-top: 14px;
}

.tds-plan-duration span {
	display: inline-block;
	background: rgba(212, 175, 55, 0.08);
	color: var(--tds-gold-soft);
	padding: 6px 16px;
	border-radius: 100px;
	border: 1px solid rgba(212, 175, 55, 0.18);
	font-weight: 600;
}

/* =========================================================
   6. BUTTONS
   ========================================================= */
.tds-select-plan,
.tds-btn-primary {
	display: block;
	width: 100%;
	padding: 15px 24px;
	background: linear-gradient(135deg, #E63946 0%, #B91F2E 100%);
	color: #fff;
	border: none;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.35s var(--tds-ease);
	font-family: inherit;
	letter-spacing: 0.01em;
	box-shadow: 0 8px 24px rgba(230, 57, 70, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tds-select-plan:hover,
.tds-btn-primary:hover {
	background: linear-gradient(135deg, #F04552 0%, #D62637 100%);
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(230, 57, 70, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.tds-select-plan:active {
	transform: translateY(0);
}

.tds-select-plan:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.tds-btn-primary {
	display: inline-block;
	width: auto;
	text-decoration: none;
}

/* =========================================================
   7. EMPTY / LOGIN STATE
   ========================================================= */
.tds-empty-state {
	text-align: center;
	padding: 72px 32px;
	background: linear-gradient(170deg, var(--tds-surface-2), var(--tds-surface));
	border-radius: var(--tds-radius-lg);
	max-width: 560px;
	margin: 48px auto;
	border: 1px solid var(--tds-border);
}

.tds-empty-icon {
	font-size: 56px;
	margin-bottom: 22px;
	display: block;
	filter: grayscale(0.3) drop-shadow(0 8px 24px rgba(212, 175, 55, 0.2));
}

.tds-empty-state h2 {
	color: var(--tds-text);
	font-size: 22px;
	font-weight: 800;
	margin: 0 0 12px 0;
}

.tds-empty-state p {
	font-size: 15px;
	margin: 0 0 28px 0;
}

/* =========================================================
   8. STATS
   ========================================================= */
.tds-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 18px;
	margin-bottom: 32px;
}

.tds-stat-card {
	background: linear-gradient(160deg, var(--tds-surface-2), var(--tds-surface));
	border: 1px solid var(--tds-border);
	border-radius: var(--tds-radius-md);
	padding: 26px 22px;
	text-align: center;
	transition: all 0.4s var(--tds-ease);
	position: relative;
	overflow: hidden;
}

.tds-stat-card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 25%;
	right: 25%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
	opacity: 0;
	transition: opacity 0.4s;
}

.tds-stat-card:hover {
	border-color: rgba(212, 175, 55, 0.3);
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.tds-stat-card:hover::after {
	opacity: 1;
}

.tds-stat-icon {
	font-size: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 15px;
	background: rgba(212, 175, 55, 0.08);
	border: 1px solid rgba(212, 175, 55, 0.16);
	margin-bottom: 14px;
}

.tds-stat-value {
	font-size: 34px;
	font-weight: 800;
	background: linear-gradient(120deg, #F5DE8F, #D4AF37);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	display: block;
	line-height: 1.1;
	margin-bottom: 6px;
}

.tds-stat-label {
	font-size: 12px;
	color: var(--tds-text-faint);
	display: block;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* =========================================================
   9. DASHBOARD HEADER
   ========================================================= */
.tds-dashboard-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 32px;
	padding: 26px 30px;
	background: linear-gradient(160deg, var(--tds-surface-2), var(--tds-surface));
	border: 1px solid var(--tds-border);
	border-radius: var(--tds-radius-lg);
	position: relative;
	overflow: hidden;
}

.tds-dashboard-header::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--tds-red), var(--tds-gold), transparent 70%);
}

.tds-user-info {
	display: flex;
	align-items: center;
	gap: 18px;
	position: relative;
	z-index: 1;
}

.tds-user-avatar {
	width: 62px;
	height: 62px;
	border-radius: 18px;
	background: linear-gradient(145deg, #F5DE8F, #B8912A);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	font-weight: 800;
	color: #14100A;
	flex-shrink: 0;
	box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
	overflow: hidden;
	position: relative;
}

.tds-user-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: inherit;
	display: block;
	position: absolute;
	inset: 0;
}

.tds-user-name {
	color: var(--tds-text);
	font-size: 20px;
	font-weight: 800;
	line-height: 1.3;
	margin-bottom: 3px;
}

.tds-user-email {
	color: var(--tds-text-muted);
	font-size: 14px;
}

.tds-user-meta {
	color: var(--tds-text-faint);
	font-size: 13px;
	margin-top: 4px;
}

.tds-header-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
	position: relative;
	z-index: 1;
}

.tds-btn-outline {
	padding: 10px 18px;
	border-radius: 10px;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.3s var(--tds-ease);
	background: rgba(255, 255, 255, 0.03);
	color: var(--tds-text-muted);
	border: 1px solid var(--tds-border);
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.tds-btn-outline:hover {
	border-color: rgba(212, 175, 55, 0.4);
	color: var(--tds-gold-soft);
	transform: translateY(-2px);
	background: rgba(212, 175, 55, 0.06);
}

.tds-btn-outline.danger {
	color: #FF8A93;
	border-color: rgba(230, 57, 70, 0.3);
}

.tds-btn-outline.danger:hover {
	background: rgba(230, 57, 70, 0.12);
	color: #FFB3B9;
	border-color: rgba(230, 57, 70, 0.5);
}

.tds-btn-outline.primary {
	color: var(--tds-gold-soft);
	border-color: rgba(212, 175, 55, 0.3);
}

.tds-btn-outline.primary:hover {
	background: rgba(212, 175, 55, 0.12);
	border-color: rgba(212, 175, 55, 0.5);
}

/* =========================================================
   10. CARDS
   ========================================================= */
.tds-card {
	background: linear-gradient(170deg, var(--tds-surface-2), var(--tds-surface));
	border: 1px solid var(--tds-border);
	border-radius: var(--tds-radius-md);
	padding: 26px 24px;
	margin-bottom: 0;
	transition: border-color 0.35s;
}

.tds-card:hover {
	border-color: rgba(212, 175, 55, 0.22);
}

.tds-card h3 {
	color: var(--tds-text);
	font-size: 15px;
	font-weight: 800;
	margin: 0 0 18px 0;
	padding-bottom: 14px;
	border-bottom: 1px solid var(--tds-border);
	display: flex;
	align-items: center;
	gap: 10px;
	letter-spacing: 0.01em;
}

.tds-card-empty {
	color: var(--tds-text-faint);
	text-align: center;
	padding: 34px 0;
	font-size: 14px;
}

.tds-card-empty a {
	color: var(--tds-gold);
	text-decoration: none;
	font-weight: 700;
	border-bottom: 1px solid rgba(212, 175, 55, 0.35);
	transition: color 0.3s;
}

.tds-card-empty a:hover {
	color: var(--tds-gold-soft);
}

/* =========================================================
   11. LIST ROWS
   ========================================================= */
.tds-list-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 15px 12px;
	margin: 0 -12px;
	border-radius: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.04);
	transition: background 0.3s;
}

.tds-list-row:hover {
	background: rgba(255, 255, 255, 0.025);
}

.tds-list-row:last-child {
	border-bottom: none;
}

.tds-list-title {
	color: var(--tds-text);
	font-weight: 700;
	font-size: 14px;
}

.tds-list-sub {
	color: var(--tds-text-faint);
	font-size: 13px;
}

.tds-list-value {
	font-weight: 700;
	font-size: 14px;
	background: linear-gradient(120deg, #F5DE8F, #D4AF37);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

/* =========================================================
   12. STATUS BADGES
   ========================================================= */
.tds-badge-status {
	font-size: 11px;
	font-weight: 700;
	padding: 5px 13px;
	border-radius: 100px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border: 1px solid;
	white-space: nowrap;
}

.tds-badge-success {
	background: rgba(46, 204, 113, 0.09);
	color: #4ADE80;
	border-color: rgba(46, 204, 113, 0.28);
}

.tds-badge-warning {
	background: rgba(212, 175, 55, 0.09);
	color: var(--tds-gold-soft);
	border-color: rgba(212, 175, 55, 0.28);
}

.tds-badge-danger {
	background: rgba(230, 57, 70, 0.09);
	color: #FF8A93;
	border-color: rgba(230, 57, 70, 0.28);
}

/* =========================================================
   13. QUICK ACTIONS (Legacy)
   ========================================================= */
.tds-actions-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-top: 6px;
}

.tds-action-btn {
	padding: 18px 14px;
	background: rgba(255, 255, 255, 0.025);
	border: 1px solid var(--tds-border);
	border-radius: 12px;
	text-decoration: none;
	color: var(--tds-text-muted);
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.35s var(--tds-ease);
	display: block;
}

.tds-action-btn:hover {
	border-color: rgba(212, 175, 55, 0.35);
	color: var(--tds-gold-soft);
	transform: translateY(-3px);
	background: rgba(212, 175, 55, 0.05);
}

.tds-action-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(212, 175, 55, 0.07);
	border: 1px solid rgba(212, 175, 55, 0.16);
	font-size: 19px;
	margin-bottom: 9px;
}

/* =========================================================
   14. SEQUENTIAL SECTIONS
   ========================================================= */
.tds-section {
	width: 100%;
	margin-bottom: 22px;
}

.tds-section:last-child {
	margin-bottom: 0;
}

.tds-cards-row {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
}

.tds-mini-card {
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 12px;
	padding: 14px 16px;
	transition: all 0.3s var(--tds-ease);
	position: relative;
	overflow: hidden;
}

.tds-mini-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, #D4AF37, #B8912A);
	opacity: 0;
	transition: opacity 0.3s;
}

.tds-mini-card:hover {
	border-color: rgba(212, 175, 55, 0.35);
	background: linear-gradient(160deg, rgba(212, 175, 55, 0.06), rgba(212, 175, 55, 0.01));
	transform: translateY(-3px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.tds-mini-card:hover::before {
	opacity: 1;
}

.tds-mini-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.tds-mini-card-title {
	color: var(--tds-text);
	font-weight: 700;
	font-size: 13.5px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex: 1;
	min-width: 0;
}

.tds-mini-card-body {
	color: var(--tds-text-muted);
	font-size: 12.5px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.tds-mini-card-date {
	color: var(--tds-text-faint);
	font-size: 11px;
	white-space: nowrap;
}

/* =========================================================
   15. EMBEDDED SHORTCODE CONTENT
   ========================================================= */
.tds-embedded-content {
	font-size: 13px;
	line-height: 1.7;
}

.tds-embedded-content > ul,
.tds-embedded-content > ol {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
	list-style: none;
	padding: 0;
	margin: 0;
}

.tds-embedded-content > ul > li,
.tds-embedded-content > ol > li {
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 12px;
	padding: 14px 16px;
	margin: 0;
	transition: all 0.3s var(--tds-ease);
	position: relative;
	overflow: hidden;
}

.tds-embedded-content > ul > li::before,
.tds-embedded-content > ol > li::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, #D4AF37, #B8912A);
	opacity: 0;
	transition: opacity 0.3s;
}

.tds-embedded-content > ul > li:hover,
.tds-embedded-content > ol > li:hover {
	border-color: rgba(212, 175, 55, 0.35);
	background: linear-gradient(160deg, rgba(212, 175, 55, 0.06), rgba(212, 175, 55, 0.01));
	transform: translateY(-3px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.tds-embedded-content > ul > li:hover::before,
.tds-embedded-content > ol > li:hover::before {
	opacity: 1;
}

.tds-embedded-content a {
	color: var(--tds-gold);
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s;
}

.tds-embedded-content a:hover {
	color: var(--tds-gold-soft);
}

.tds-embedded-content h1,
.tds-embedded-content h2,
.tds-embedded-content h3,
.tds-embedded-content h4 {
	color: var(--tds-text);
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 8px 0;
	letter-spacing: 0;
}

.tds-embedded-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* =========================================================
   16. FOOTER NOTE
   ========================================================= */
.tds-footer-note {
	text-align: center;
	margin-top: 56px;
	padding: 26px 24px;
	background: var(--tds-surface);
	border-radius: var(--tds-radius-md);
	border: 1px solid var(--tds-border);
}

.tds-footer-note p {
	font-size: 14px;
	margin: 0;
}

/* =========================================================
   17. BOTTOM ROW: 3 Quick Action Cards (always 3 columns)
   ========================================================= */
.tds-bottom-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	align-items: stretch;
}

.tds-bottom-card {
	background: linear-gradient(160deg, var(--tds-surface-2), var(--tds-surface));
	border: 1px solid var(--tds-border);
	border-radius: var(--tds-radius-md);
	padding: 26px 22px;
	text-align: center;
	text-decoration: none;
	color: var(--tds-text-muted);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	min-height: 160px;
	transition: all 0.4s var(--tds-ease);
	position: relative;
	overflow: hidden;
	cursor: pointer;
}

.tds-bottom-card::after {
	content: "";
	position: absolute;
	top: 0;
	left: 25%;
	right: 25%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.6), transparent);
	opacity: 0;
	transition: opacity 0.4s;
}

.tds-bottom-card:hover {
	border-color: rgba(212, 175, 55, 0.3);
	color: var(--tds-gold-soft);
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.tds-bottom-card:hover::after {
	opacity: 1;
}

.tds-bottom-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 15px;
	background: rgba(212, 175, 55, 0.08);
	border: 1px solid rgba(212, 175, 55, 0.16);
	font-size: 24px;
	flex-shrink: 0;
	transition: all 0.4s var(--tds-ease);
	position: relative;
}

.tds-bottom-card:hover .tds-bottom-icon {
	background: rgba(212, 175, 55, 0.14);
	border-color: rgba(212, 175, 55, 0.4);
	transform: scale(1.08) rotate(-4deg);
}

.tds-bottom-label {
	font-size: 13px;
	font-weight: 700;
	color: inherit;
	letter-spacing: 0.02em;
	line-height: 1.3;
	text-align: center;
}

/* =========================================================
   18. NOTIFICATIONS BADGE
   ========================================================= */
.tds-notif-badge-inline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	margin-left: 4px;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	color: #000;
	background: linear-gradient(135deg, #D4AF37, #FFD700);
	border-radius: 50px;
	box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
	animation: notifPulse 2s ease-in-out infinite;
}

@keyframes notifPulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.15); }
}

.tds-bottom-card .tds-notif-badge-inline {
	position: absolute;
	top: -6px;
	right: -6px;
	margin-left: 0;
	font-size: 9px;
	min-width: 16px;
	height: 16px;
}

/* =========================================================
   19. RESPONSIVE — LARGE DESKTOP (1441px+)
   ========================================================= */
@media (min-width: 1441px) {
	.tds-wrapper {
		max-width: 1320px;
	}

	.tds-stats-grid {
		gap: 22px;
	}

	.tds-bottom-row {
		gap: 22px;
	}
}

/* =========================================================
   20. RESPONSIVE — LAPTOP (1025px — 1440px)
   ========================================================= */
@media (max-width: 1440px) and (min-width: 1025px) {
	.tds-wrapper {
		max-width: 1140px;
	}
}

/* =========================================================
   21. RESPONSIVE — TABLET LANDSCAPE (901px — 1024px)
   ========================================================= */
@media (max-width: 1024px) and (min-width: 901px) {
	.tds-wrapper {
		padding: 0 20px;
		margin: 32px auto;
	}

	.tds-stats-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 14px;
	}

	.tds-stat-card {
		padding: 22px 16px;
	}

	.tds-stat-value {
		font-size: 28px;
	}

	.tds-stat-label {
		font-size: 11px;
	}

	.tds-bottom-row {
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}

	.tds-bottom-card {
		min-height: 140px;
		padding: 22px 16px;
	}

	.tds-bottom-icon {
		width: 46px;
		height: 46px;
		font-size: 20px;
	}

	.tds-bottom-label {
		font-size: 12px;
	}
}

/* =========================================================
   22. RESPONSIVE — TABLET (769px — 900px)
   ========================================================= */
@media (max-width: 900px) {
	.tds-wrapper {
		padding: 0 20px;
		margin: 28px auto;
	}

	.tds-hero {
		padding: 50px 26px;
		margin-bottom: 40px;
	}

	.tds-hero h1 {
		font-size: 32px;
	}

	.tds-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 14px;
	}

	.tds-stat-card {
		padding: 22px 18px;
	}

	.tds-bottom-row {
		grid-template-columns: repeat(3, 1fr);
		gap: 14px;
	}

	.tds-bottom-card {
		min-height: 140px;
	}

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

	.tds-plans-grid {
		grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
		gap: 18px;
	}
}

/* =========================================================
   23. RESPONSIVE — MOBILE LANDSCAPE (481px — 768px)
   ========================================================= */
@media (max-width: 768px) {
	.tds-wrapper {
		padding: 0 16px;
		margin: 24px auto;
	}

	/* Hero */
	.tds-hero {
		padding: 40px 20px;
		margin-bottom: 32px;
		border-radius: 20px;
	}

	.tds-hero h1 {
		font-size: 26px;
	}

	.tds-hero p {
		font-size: 14px;
	}

	.tds-badge {
		font-size: 10px;
		padding: 6px 14px;
	}

	/* Service Header */
	.tds-service-header {
		margin: 36px 0 20px 0;
		gap: 12px;
	}

	.tds-service-header h2 {
		font-size: 18px;
	}

	.tds-service-count {
		font-size: 11px;
		padding: 5px 12px;
	}

	.tds-service-icon {
		width: 40px;
		height: 40px;
		font-size: 17px;
	}

	/* Dashboard Header */
	.tds-dashboard-header {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
		padding: 22px 20px;
		text-align: center;
	}

	.tds-user-info {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 12px;
	}

	.tds-user-avatar {
		width: 68px;
		height: 68px;
		font-size: 26px;
	}

	.tds-user-name {
		font-size: 18px;
	}

	.tds-user-email {
		font-size: 13px;
		word-break: break-all;
	}

	.tds-user-meta {
		font-size: 12px;
		line-height: 1.6;
	}

	.tds-header-actions {
		width: 100%;
		justify-content: center;
		gap: 8px;
	}

	.tds-btn-outline {
		flex: 1 1 auto;
		min-width: 100px;
		justify-content: center;
		padding: 11px 14px;
		font-size: 12.5px;
	}

	/* Stats */
	.tds-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
		margin-bottom: 24px;
	}

	.tds-stat-card {
		padding: 20px 14px;
	}

	.tds-stat-icon {
		width: 44px;
		height: 44px;
		font-size: 20px;
		margin-bottom: 10px;
	}

	.tds-stat-value {
		font-size: 26px;
	}

	.tds-stat-label {
		font-size: 11px;
		letter-spacing: 0.05em;
	}

	/* Cards */
	.tds-card {
		padding: 20px 18px;
	}

	.tds-card h3 {
		font-size: 14px;
		margin-bottom: 14px;
		padding-bottom: 12px;
	}

	/* Cards Row */
	.tds-cards-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.tds-mini-card {
		padding: 13px 15px;
	}

	/* Sections */
	.tds-section {
		margin-bottom: 18px;
	}

	/* Plans Grid */
	.tds-plans-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.tds-plan-card {
		padding: 28px 22px;
	}

	.tds-plan-card h3 {
		font-size: 17px;
	}

	.tds-plan-price {
		font-size: 32px;
	}

	.tds-plan-icon {
		width: 60px;
		height: 60px;
		font-size: 28px;
		margin-bottom: 16px;
	}

	/* Bottom Row (Quick Actions) — STILL 3 COLUMNS */
	.tds-bottom-row {
		grid-template-columns: repeat(3, 1fr);
		gap: 8px;
	}

	.tds-bottom-card {
		min-height: 110px;
		padding: 16px 10px;
		gap: 8px;
		border-radius: 12px;
	}

	.tds-bottom-icon {
		width: 42px;
		height: 42px;
		font-size: 18px;
		border-radius: 12px;
	}

	.tds-bottom-label {
		font-size: 11px;
		line-height: 1.25;
		text-align: center;
	}

	/* Empty state */
	.tds-empty-state {
		padding: 50px 22px;
		margin: 32px auto;
	}

	.tds-empty-icon {
		font-size: 44px;
	}

	.tds-empty-state h2 {
		font-size: 18px;
	}

	.tds-empty-state p {
		font-size: 14px;
	}

	/* Embedded content */
	.tds-embedded-content > ul,
	.tds-embedded-content > ol {
		grid-template-columns: 1fr;
	}

	/* Footer note */
	.tds-footer-note {
		margin-top: 36px;
		padding: 20px 18px;
	}

	.tds-footer-note p {
		font-size: 13px;
	}

	/* Notifications badge */
	.tds-notif-badge-inline {
		min-width: 16px;
		height: 16px;
		font-size: 9px;
	}
}

/* =========================================================
   24. RESPONSIVE — MOBILE PORTRAIT (381px — 480px)
   ========================================================= */
@media (max-width: 480px) {
	.tds-wrapper {
		padding: 0 14px;
		margin: 20px auto;
	}

	/* Hero */
	.tds-hero {
		padding: 32px 18px;
		margin-bottom: 26px;
		border-radius: 18px;
	}

	.tds-hero h1 {
		font-size: 22px;
	}

	.tds-hero p {
		font-size: 13px;
	}

	.tds-badge {
		font-size: 9px;
		letter-spacing: 1.5px;
		padding: 5px 12px;
	}

	/* Service Header */
	.tds-service-header {
		margin: 28px 0 16px 0;
		padding-bottom: 14px;
		gap: 10px;
	}

	.tds-service-header h2 {
		font-size: 16px;
	}

	.tds-service-count {
		font-size: 10px;
		padding: 4px 10px;
		margin-left: 0;
	}

	.tds-service-icon {
		width: 36px;
		height: 36px;
		font-size: 15px;
		border-radius: 11px;
	}

	/* Dashboard Header */
	.tds-dashboard-header {
		padding: 18px 16px;
	}

	.tds-user-avatar {
		width: 60px;
		height: 60px;
		font-size: 22px;
		border-radius: 16px;
	}

	.tds-user-name {
		font-size: 16px;
	}

	.tds-user-email {
		font-size: 12px;
	}

	.tds-user-meta {
		font-size: 11px;
	}

	.tds-header-actions {
		flex-direction: column;
		width: 100%;
	}

	.tds-btn-outline {
		width: 100%;
		justify-content: center;
		padding: 12px 14px;
		font-size: 13px;
	}

	/* Stats */
	.tds-stats-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.tds-stat-card {
		padding: 16px 12px;
	}

	.tds-stat-icon {
		width: 40px;
		height: 40px;
		font-size: 18px;
		margin-bottom: 8px;
		border-radius: 12px;
	}

	.tds-stat-value {
		font-size: 22px;
	}

	.tds-stat-label {
		font-size: 10px;
		letter-spacing: 0.04em;
	}

	/* Cards */
	.tds-card {
		padding: 18px 16px;
	}

	.tds-card h3 {
		font-size: 13px;
		gap: 8px;
	}

	/* Mini Cards */
	.tds-mini-card {
		padding: 12px 14px;
	}

	.tds-mini-card-title {
		font-size: 13px;
	}

	.tds-mini-card-body {
		font-size: 12px;
	}

	.tds-mini-card-date {
		font-size: 10.5px;
	}

	/* Plans */
	.tds-plan-card {
		padding: 24px 18px;
	}

	.tds-plan-card h3 {
		font-size: 16px;
	}

	.tds-plan-desc {
		font-size: 13px;
	}

	.tds-plan-price {
		font-size: 28px;
	}

	.tds-plan-price span {
		font-size: 13px;
	}

	.tds-plan-duration span {
		font-size: 12px;
		padding: 5px 14px;
	}

	.tds-plan-icon {
		width: 56px;
		height: 56px;
		font-size: 24px;
	}

	.tds-select-plan,
	.tds-btn-primary {
		padding: 13px 20px;
		font-size: 14px;
	}

	/* Bottom Row — STILL 3 COLUMNS on small mobile */
	.tds-bottom-row {
		grid-template-columns: repeat(3, 1fr);
		gap: 6px;
	}

	.tds-bottom-card {
		min-height: 100px;
		padding: 14px 6px;
		gap: 8px;
		border-radius: 12px;
	}

	.tds-bottom-icon {
		width: 38px;
		height: 38px;
		font-size: 16px;
		border-radius: 11px;
	}

	.tds-bottom-label {
		font-size: 10px;
		line-height: 1.2;
		text-align: center;
		word-break: break-word;
	}

	/* List Rows */
	.tds-list-row {
		padding: 12px 10px;
		margin: 0 -10px;
		gap: 12px;
	}

	.tds-list-title {
		font-size: 13px;
	}

	.tds-list-sub {
		font-size: 12px;
	}

	.tds-list-value {
		font-size: 13px;
	}

	/* Badges */
	.tds-badge-status {
		font-size: 10px;
		padding: 4px 10px;
	}

	/* Empty State */
	.tds-empty-state {
		padding: 40px 20px;
		margin: 24px auto;
	}

	.tds-empty-icon {
		font-size: 40px;
		margin-bottom: 16px;
	}

	.tds-empty-state h2 {
		font-size: 17px;
	}

	.tds-empty-state p {
		font-size: 13px;
		margin-bottom: 22px;
	}

	/* Footer Note */
	.tds-footer-note {
		margin-top: 28px;
		padding: 16px 14px;
	}

	.tds-footer-note p {
		font-size: 12px;
	}
}

/* =========================================================
   25. RESPONSIVE — VERY SMALL MOBILE (up to 380px)
   ========================================================= */
@media (max-width: 380px) {
	.tds-wrapper {
		padding: 0 12px;
		margin: 16px auto;
	}

	.tds-hero {
		padding: 26px 16px;
		border-radius: 16px;
	}

	.tds-hero h1 {
		font-size: 20px;
	}

	.tds-hero p {
		font-size: 12.5px;
	}

	.tds-user-avatar {
		width: 54px;
		height: 54px;
		font-size: 20px;
	}

	.tds-user-name {
		font-size: 15px;
	}

	/* Stats become single column for very narrow screens */
	.tds-stats-grid {
		grid-template-columns: 1fr;
		gap: 8px;
	}

	.tds-stat-card {
		flex-direction: row;
		justify-content: flex-start;
		align-items: center;
		text-align: left;
		gap: 14px;
		padding: 14px 16px;
	}

	.tds-stat-icon {
		margin-bottom: 0;
		width: 42px;
		height: 42px;
		font-size: 18px;
		flex-shrink: 0;
	}

	.tds-stat-value {
		font-size: 22px;
		margin-bottom: 0;
		margin-left: auto;
	}

	.tds-stat-label {
		font-size: 11px;
		text-align: left;
		flex: 1;
		order: -1;
	}

	/* Bottom row — STILL 3 COLUMNS even on very small mobile */
	.tds-bottom-row {
		grid-template-columns: repeat(3, 1fr);
		gap: 5px;
	}

	.tds-bottom-card {
		flex-direction: column;
		justify-content: center;
		text-align: center;
		min-height: 90px;
		padding: 12px 4px;
		gap: 6px;
	}

	.tds-bottom-icon {
		width: 34px;
		height: 34px;
		font-size: 15px;
		border-radius: 10px;
	}

	.tds-bottom-label {
		font-size: 9.5px;
		line-height: 1.15;
		text-align: center;
		word-break: break-word;
	}

	/* Buttons */
	.tds-btn-outline {
		padding: 11px 12px;
		font-size: 12px;
	}

	/* Cards */
	.tds-card {
		padding: 16px 14px;
	}

	.tds-card h3 {
		font-size: 12.5px;
	}

	/* Plans */
	.tds-plan-card {
		padding: 20px 16px;
	}

	.tds-plan-price {
		font-size: 26px;
	}

	.tds-plan-icon {
		width: 50px;
		height: 50px;
		font-size: 22px;
	}

	/* Empty */
	.tds-empty-state {
		padding: 32px 16px;
	}

	.tds-empty-icon {
		font-size: 36px;
	}

	.tds-empty-state h2 {
		font-size: 15px;
	}

	.tds-empty-state p {
		font-size: 12px;
	}
}

/* =========================================================
   26. LANDSCAPE MOBILE (max-height 500px)
   ========================================================= */
@media (max-height: 500px) and (orientation: landscape) {
	.tds-wrapper {
		margin: 16px auto;
		padding: 0 18px;
	}

	.tds-hero {
		padding: 24px 20px;
		margin-bottom: 22px;
	}

	.tds-hero h1 {
		font-size: 22px;
	}

	.tds-hero p {
		font-size: 13px;
	}

	.tds-dashboard-header {
		padding: 16px 20px;
	}

	.tds-user-avatar {
		width: 52px;
		height: 52px;
		font-size: 20px;
	}

	.tds-stats-grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 10px;
	}

	.tds-stat-card {
		padding: 14px 10px;
	}

	.tds-stat-value {
		font-size: 22px;
	}

	.tds-stat-label {
		font-size: 10px;
	}

	.tds-bottom-row {
		grid-template-columns: repeat(3, 1fr);
		gap: 10px;
	}

	.tds-bottom-card {
		min-height: 100px;
		padding: 14px 10px;
	}

	.tds-bottom-icon {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}

	.tds-bottom-label {
		font-size: 11px;
	}
}

/* =========================================================
   27. TOUCH DEVICE IMPROVEMENTS
   ========================================================= */
@media (hover: none) and (pointer: coarse) {
	.tds-btn-outline,
	.tds-bottom-card,
	.tds-select-plan,
	.tds-btn-primary,
	.tds-plan-card,
	.tds-mini-card {
		min-height: 44px;
	}

	.tds-bottom-card:hover,
	.tds-btn-outline:hover,
	.tds-plan-card:hover,
	.tds-mini-card:hover {
		transform: none;
	}

	.tds-plan-card:hover .tds-plan-icon,
	.tds-bottom-card:hover .tds-bottom-icon {
		transform: none;
	}
}

/* =========================================================
   28. ACCESSIBILITY — REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* =========================================================
   29. PRINT STYLES
   ========================================================= */
@media print {
	.tds-header-actions,
	.tds-bottom-row,
	.tds-notif-badge-inline,
	.tds-select-plan,
	.tds-btn-primary {
		display: none !important;
	}

	.tds-wrapper {
		max-width: 100%;
		padding: 0;
		margin: 0;
	}

	.tds-card,
	.tds-stat-card,
	.tds-mini-card,
	.tds-plan-card,
	.tds-dashboard-header,
	.tds-hero {
		break-inside: avoid;
		box-shadow: none;
		border: 1px solid #ddd;
		background: #fff !important;
		color: #000 !important;
	}

	.tds-stat-value,
	.tds-list-value,
	.tds-plan-price {
		-webkit-text-fill-color: #000 !important;
		color: #000 !important;
	}

	.tds-hero h1 span {
		-webkit-text-fill-color: #000 !important;
		color: #000 !important;
	}
}