/* ==========================================================================
   Trainer Certificate Platform — unified dark theme
   ------------------------------------------------------------------------
   One token system and one component set shared by every front-end
   surface (auth, pricing, dashboard, trainer registry) so the whole
   trainer-facing product reads as one thing, not four reskinned pages.

   Concept: black + brand orange, treated like foil-stamped credential
   stock rather than a generic dark SaaS dashboard — orange is spent
   sparingly (one seal mark, one CTA state, focus/hover accents), and
   motion stays to short, quiet transitions rather than anything
   ornamental.

   Typeface: Livvic only, company-wide — hierarchy comes from weight
   (700 headings, 600 buttons/tabs, 500 form labels, 400 body) plus
   letter-spacing + uppercase for anything that should read as "official
   data" (registry numbers, plan labels, IDs) rather than a separate
   monospace face.
   ========================================================================== */

.tcp-dark-page, .tcp-dashboard {
	--bg: #0A0A0B;
	--surface: #141416;
	--surface-2: #1C1C1F;
	--accent: #FF7A00;
	--accent-dim: rgba(255, 122, 0, 0.14);
	--border: rgba(255, 255, 255, 0.09);
	--border-strong: rgba(255, 255, 255, 0.18);
	--text: #F5F5F4;
	--text-dim: #9B9B9F;
	--text-faint: #6B6B70;
	--font-display: 'Livvic', sans-serif;
	--font-body: 'Livvic', sans-serif;
	--font-mono: 'Livvic', sans-serif;
	--radius: 12px;

	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	min-height: 100vh;
	box-sizing: border-box;
	padding: 64px 24px 80px;
}

.tcp-dark-page *, .tcp-dashboard * { box-sizing: border-box; }

/* ---------- Shared hero / eyebrow (pricing, login, registry) ---------- */

.tcp-hero { max-width: 720px; margin: 0 auto 48px; text-align: center; }

.tcp-eyebrow {
	font-family: var(--font-mono);
	font-weight: 500;
	font-size: 12px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 14px;
}

.tcp-hero h1 {
	font-family: var(--font-display);
	font-weight: 700;
	font-size: clamp(32px, 5vw, 48px);
	line-height: 1.1;
	letter-spacing: -0.01em;
	margin: 0 0 14px;
	color: var(--text);
}

.tcp-hero p {
	color: var(--text-dim);
	font-size: 16px;
	line-height: 1.6;
	max-width: 520px;
	margin: 0 auto;
}

/* ---------- Buttons ---------- */

.tcp-btn {
	background: var(--surface-2);
	color: var(--text);
	border: 1px solid var(--border-strong);
	padding: 11px 22px;
	border-radius: 8px;
	cursor: pointer;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	display: inline-block;
	transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.tcp-btn:hover { border-color: var(--accent); }
.tcp-btn--accent {
	background: var(--accent);
	border-color: var(--accent);
	color: #0A0A0B;
}
.tcp-btn--accent:hover { background: #ff8a1a; transform: translateY(-1px); }
.tcp-btn--small { padding: 7px 14px; font-size: 12.5px; }
.tcp-btn--full { width: 100%; text-align: center; }

/* ---------- Forms & notices ---------- */

.tcp-form label { display: block; margin-bottom: 16px; font-size: 13.5px; color: var(--text-dim); }
.tcp-form input[type="text"],
.tcp-form input[type="email"],
.tcp-form input[type="password"],
.tcp-form input[type="url"],
.tcp-form input[type="date"],
.tcp-form input[type="file"],
.tcp-form textarea {
	display: block; width: 100%; margin-top: 6px; padding: 11px 13px;
	background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px;
	color: var(--text); font-family: var(--font-body); font-size: 14px;
	transition: border-color 0.15s ease;
}
.tcp-form input:focus, .tcp-form textarea:focus, .tcp-form select:focus {
	outline: none; border-color: var(--accent);
}
.tcp-form .tcp-checkbox { display: flex; align-items: center; gap: 8px; color: var(--text-dim); font-size: 13px; }
.tcp-form .tcp-checkbox input { width: auto; }

.tcp-notice { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; font-size: 13.5px; }
.tcp-notice--success { background: rgba(46, 160, 67, 0.14); color: #4FD37B; }
.tcp-notice--warning { background: rgba(230, 170, 0, 0.14); color: #E6C15A; }
.tcp-notice--error { background: rgba(220, 60, 50, 0.14); color: #F17A72; }

.tcp-note { font-size: 13px; color: var(--text-dim); background: var(--surface-2); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--border); }

/* ==========================================================================
   Auth page — tabs
   ========================================================================== */

.tcp-auth-shell { max-width: 920px; margin: 0 auto; }

.tcp-auth-mark { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 36px; }
.tcp-auth-mark__badge {
	width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--accent);
	color: var(--accent); font-family: var(--font-mono); font-size: 13px; font-weight: 500;
	display: flex; align-items: center; justify-content: center;
}
.tcp-auth-mark__label { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }

.tcp-tabs {
	position: relative;
	display: flex;
	width: max-content;
	gap: 4px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 10px;
	padding: 4px;
	margin: 0 auto 40px;
}

.tcp-tab {
	position: relative;
	z-index: 1;
	background: transparent;
	border: none;
	color: var(--text-dim);
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 14px;
	padding: 10px 22px;
	border-radius: 7px;
	cursor: pointer;
	transition: color 0.2s ease;
}
.tcp-tab.is-active { color: #0A0A0B; }

.tcp-tab__indicator {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 0;
	background: var(--accent);
	border-radius: 7px;
	z-index: 0;
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.tcp-panel { animation: none; }
.tcp-panel--enter { animation: tcpFadeUp 0.35s ease both; }

.tcp-auth-card {
	max-width: 380px;
	margin: 0 auto;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 32px;
}
.tcp-auth-note { text-align: center; font-size: 13px; margin-top: 18px; color: var(--text-dim); }
.tcp-auth-note a { color: var(--accent); text-decoration: none; }
.tcp-auth-note a:hover { text-decoration: underline; }

.tcp-auth-register-intro { text-align: center; max-width: 480px; margin: 0 auto 32px; }
.tcp-auth-register-intro h2 { font-family: var(--font-display); font-size: 24px; margin: 0 0 8px; }
.tcp-auth-register-intro p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ==========================================================================
   Pricing cards (shared by Pricing page + Register tab)
   ========================================================================== */

.tcp-pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
	max-width: 920px;
	margin: 0 auto;
}

.tcp-price-card {
	position: relative;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 28px 24px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.tcp-price-card--recommended { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-dim), var(--surface) 40%); }

.tcp-price-card__badge {
	position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
	background: var(--accent); color: #0A0A0B; font-family: var(--font-mono);
	font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
	padding: 4px 12px; border-radius: 20px;
}

.tcp-price-card__label { font-family: var(--font-mono); font-weight: 500; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.tcp-price-card__price { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--text); margin-bottom: 22px; }
.tcp-price-card__price span { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--text-faint); }

.tcp-price-card__features { list-style: none; padding: 0; margin: 0 0 24px; }
.tcp-price-card__features li {
	display: flex; align-items: baseline; gap: 8px;
	font-size: 13.5px; color: var(--text-dim);
	padding: 9px 0; border-top: 1px solid var(--border);
}
.tcp-price-card__features li:first-child { border-top: none; }
.tcp-price-card__feature-label { color: var(--text); flex: 1 1 auto; }
.tcp-price-card__feature-value { font-family: var(--font-mono); font-size: 12px; color: var(--text-dim); }

.tcp-feature-icon { width: 16px; flex-shrink: 0; font-size: 13px; text-align: center; }
.tcp-feature-icon--yes { color: var(--accent); }
.tcp-feature-icon--no { color: var(--text-faint); }

/* ==========================================================================
   Trainer dashboard
   ========================================================================== */

.tcp-dashboard { max-width: 880px; margin: 0 auto; }

.tcp-dashboard__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.tcp-dashboard__header h1 { font-family: var(--font-display); font-size: 26px; margin: 0; color: var(--text); }

.tcp-quota-badge {
	background: var(--surface); border: 1px solid var(--border-strong);
	color: var(--text); padding: 8px 16px; border-radius: 20px;
	font-size: 13.5px; display: flex; align-items: center; gap: 10px;
	font-family: var(--font-mono);
}

.tcp-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 26px;
	margin-bottom: 20px;
	animation: tcpFadeUp 0.4s ease both;
}
.tcp-card:nth-of-type(2) { animation-delay: 0.06s; }
.tcp-card:nth-of-type(3) { animation-delay: 0.12s; }

.tcp-card h2 {
	margin-top: 0; color: var(--text); font-size: 17px;
	border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 20px;
	font-family: var(--font-display);
}

.tcp-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tcp-table th, .tcp-table td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.tcp-table th { color: var(--text-faint); font-weight: 500; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; }
.tcp-table td:first-child { color: var(--text); }

.tcp-status { padding: 3px 10px; border-radius: 20px; font-size: 11.5px; text-transform: capitalize; font-family: var(--font-mono); }
.tcp-status--completed { background: rgba(46, 160, 67, 0.14); color: #4FD37B; }
.tcp-status--processing { background: rgba(230, 170, 0, 0.14); color: #E6C15A; }
.tcp-status--pending_preview { background: var(--surface-2); color: var(--text-dim); }
.tcp-status--failed { background: rgba(220, 60, 50, 0.14); color: #F17A72; }

.tcp-upload-result { margin-top: 22px; border-top: 1px dashed var(--border); padding-top: 22px; }

/* ==========================================================================
   Certified Trainers — verified registry
   ========================================================================== */

.tcp2-lookup {
	display: flex; border: 1px solid var(--border-strong); border-radius: 8px;
	overflow: hidden; background: var(--surface); max-width: 560px; margin: 28px auto 0;
}
.tcp2-lookup input[type="text"] {
	flex: 1 1 auto; border: none; padding: 14px 16px; font-family: var(--font-body);
	font-size: 14px; outline: none; background: transparent; color: var(--text); min-width: 0;
}
.tcp2-lookup select {
	border: none; border-left: 1px solid var(--border); padding: 14px 16px;
	font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em;
	background: var(--surface-2); color: var(--text); outline: none; flex-shrink: 0;
}

.tcp2-grid {
	max-width: 1080px; margin: 48px auto 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}

.tcp2-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	cursor: default; /* intentionally not a link — the card itself does nothing on click */
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
	animation: tcpFadeUp 0.4s ease both;
}
.tcp2-grid .tcp2-card:nth-child(2) { animation-delay: 0.05s; }
.tcp2-grid .tcp2-card:nth-child(3) { animation-delay: 0.1s; }
.tcp2-grid .tcp2-card:nth-child(4) { animation-delay: 0.15s; }
.tcp2-grid .tcp2-card:nth-child(n+5) { animation-delay: 0.18s; }
@media (prefers-reduced-motion: no-preference) {
	.tcp2-card:hover {
		border-color: var(--accent);
		transform: translateY(-4px);
		box-shadow: 0 12px 32px rgba(255, 122, 0, 0.1);
	}
	.tcp2-card:hover .tcp2-card__photo { transform: scale(1.04); }
}
.tcp2-card.tcp2-hidden { display: none; }

.tcp2-card__tag { font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.08em; color: var(--text-faint); padding: 10px 20px; border-bottom: 1px solid var(--border); }
.tcp2-card__body { padding: 20px; }
.tcp2-card__identity { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tcp2-card__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--surface-2); border: 1px solid var(--border); transition: transform 0.25s ease; }
.tcp2-card__name-row { display: flex; align-items: center; gap: 6px; }
.tcp2-card__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 0; line-height: 1.2; color: var(--text); }
.tcp2-seal { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }
.tcp2-card__specialty { display: inline-block; font-family: var(--font-mono); font-weight: 500; font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--border-strong); border-radius: 4px; padding: 3px 8px; margin-top: 4px; }
.tcp2-card__bio { font-size: 13.5px; line-height: 1.55; color: var(--text-dim); margin: 14px 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tcp2-card__contact { font-family: var(--font-body); font-weight: 600; font-size: 13px; color: var(--text); text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 1px; cursor: pointer; }
.tcp2-card__contact:hover { color: var(--accent); }

.tcp2-empty { max-width: 440px; margin: 40px auto 0; text-align: center; padding: 40px 20px; border: 1px dashed var(--border); border-radius: var(--radius); }
.tcp2-empty p { color: var(--text-dim); font-size: 14px; margin: 0; }

/* ==========================================================================
   Motion — one shared entrance keyframe, used sparingly and staggered
   ========================================================================== */

@keyframes tcpFadeUp {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.tcp-card, .tcp2-card, .tcp-panel--enter { animation: none !important; }
	.tcp-btn, .tcp-price-card, .tcp2-card, .tcp-tab__indicator { transition: none !important; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 480px) {
	.tcp-dark-page, .tcp-dashboard { padding: 40px 16px 56px; }
	.tcp2-lookup, .tcp-lookup { flex-direction: column; border-radius: 10px; }
	.tcp2-lookup select { border-left: none; border-top: 1px solid var(--border); }
	.tcp-dashboard__header { flex-direction: column; align-items: flex-start; }
	.tcp-auth-card { padding: 24px 20px; }
}
