/* Tuli Customer Portal — front-end styles */

.tcp-portal,
.tcp-pricing,
.tcp-pricing__fineprint {
	--tcp-bg: #0c0c0f;
	--tcp-card: #15151b;
	--tcp-card-2: #1b1b22;
	--tcp-border: #26262f;
	--tcp-text: #e9e9ee;
	--tcp-muted: #9a9aa6;
	--tcp-accent: #7c5cff;
	--tcp-accent-2: #a78bfa;
	--tcp-warn: #f0a02a;
	--tcp-danger: #ef4565;
	--tcp-ok: #3ad29f;
	--tcp-radius: 16px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--tcp-text);
	box-sizing: border-box;
}

.tcp-portal *,
.tcp-pricing * {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ Pricing */

.tcp-pricing {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
	padding: 8px 0;
}

@media (max-width: 1100px) {
	.tcp-pricing {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.tcp-pricing {
		grid-template-columns: 1fr;
	}
}

.tcp-price-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--tcp-card);
	border: 1px solid var(--tcp-border);
	border-radius: var(--tcp-radius);
	padding: 28px 24px;
}

.tcp-price-card.is-featured {
	border-color: rgba(124, 92, 255, 0.6);
	box-shadow: 0 0 0 1px rgba(124, 92, 255, 0.35), 0 24px 60px -28px rgba(124, 92, 255, 0.6);
}

.tcp-price-card__badge {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(90deg, #ff7a45, #ff5470);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 14px;
	border-radius: 999px;
	white-space: nowrap;
}

.tcp-price-card__name {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 700;
	color: #fff;
}

.tcp-price-card__tagline {
	margin: 0 0 20px;
	color: var(--tcp-muted);
	font-size: 14px;
	min-height: 40px;
}

.tcp-price-card__price {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 4px;
}

.tcp-price-card__amount {
	font-size: 46px;
	font-weight: 800;
	color: #fff;
	letter-spacing: -1px;
}

.tcp-price-card__term {
	color: var(--tcp-muted);
	font-size: 15px;
}

.tcp-price-card__note {
	margin: 0 0 20px;
	color: var(--tcp-muted);
	font-size: 13px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--tcp-border);
}

.tcp-price-card__features {
	list-style: none;
	margin: 0 0 24px;
	padding: 0;
	display: grid;
	gap: 12px;
}

.tcp-price-card__features li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: var(--tcp-text);
}

.tcp-check {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 6px;
	background: rgba(124, 92, 255, 0.18);
	color: var(--tcp-accent-2);
	font-size: 12px;
	flex: 0 0 auto;
}

.tcp-price-card .tcp-btn {
	margin-top: auto;
	width: 100%;
}

.tcp-pricing__fineprint {
	margin: 22px auto 0;
	max-width: 760px;
	text-align: center;
	color: var(--tcp-muted);
	font-size: 13px;
	line-height: 1.6;
}

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

.tcp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.05s ease, background 0.15s ease, border-color 0.15s ease;
}

.tcp-btn:active {
	transform: translateY(1px);
}

.tcp-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.tcp-btn--primary {
	background: linear-gradient(90deg, #7c5cff, #9d7bff);
	color: #fff;
}

.tcp-btn--outline {
	background: transparent;
	border-color: var(--tcp-border);
	color: var(--tcp-text);
}

.tcp-btn--outline:hover {
	border-color: var(--tcp-accent);
}

.tcp-btn--ghost {
	background: var(--tcp-card-2);
	border-color: var(--tcp-border);
	color: var(--tcp-text);
	padding: 8px 12px;
	font-size: 13px;
}

.tcp-btn--ghost:hover {
	border-color: var(--tcp-accent);
}

.tcp-btn--warn {
	background: rgba(240, 160, 42, 0.14);
	border-color: rgba(240, 160, 42, 0.4);
	color: var(--tcp-warn);
}

.tcp-btn--warn:hover {
	background: rgba(240, 160, 42, 0.22);
}

.tcp-btn--danger-ghost {
	background: transparent;
	border-color: rgba(239, 69, 101, 0.4);
	color: var(--tcp-danger);
	padding: 7px 12px;
	font-size: 13px;
}

.tcp-btn--danger-ghost:hover {
	background: rgba(239, 69, 101, 0.12);
}

/* ------------------------------------------------------------------ Portal */

.tcp-portal {
	max-width: 880px;
	margin: 0 auto;
	background: var(--tcp-bg);
	border-radius: 20px;
	padding: 32px;
}

.tcp-portal__header {
	margin-bottom: 24px;
}

.tcp-portal__header h2 {
	margin: 0 0 4px;
	color: #fff;
	font-size: 26px;
}

.tcp-portal__greeting {
	margin: 0;
	color: var(--tcp-muted);
	font-size: 14px;
}

/* ---------------------------------------------------------- Dashboard shell */

.tcp-dash {
	max-width: 1080px;
}

.tcp-dash__bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
	padding-bottom: 22px;
	border-bottom: 1px solid var(--tcp-border);
}

.tcp-dash__brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tcp-dash__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: linear-gradient(135deg, #7c5cff, #a78bfa);
	color: #fff;
	font-weight: 700;
	font-size: 17px;
	letter-spacing: 0.04em;
	flex: 0 0 auto;
}

.tcp-dash__title {
	margin: 0 0 2px;
	color: #fff;
	font-size: 24px;
}

.tcp-dash__sub {
	margin: 0;
	color: var(--tcp-muted);
	font-size: 13px;
}

.tcp-dash__baractions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.tcp-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
	margin-bottom: 28px;
}

.tcp-stat {
	background: var(--tcp-card);
	border: 1px solid var(--tcp-border);
	border-radius: var(--tcp-radius);
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tcp-stat__label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--tcp-muted);
}

.tcp-stat__value {
	font-size: 28px;
	font-weight: 800;
	color: #fff;
	line-height: 1.1;
	letter-spacing: -0.5px;
}

.tcp-stat__sub {
	font-size: 12px;
	color: var(--tcp-muted);
}

.tcp-dash__sectionhead {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 16px;
}

.tcp-dash__sectionhead h3 {
	margin: 0;
	color: #fff;
	font-size: 17px;
}

.tcp-dash__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 22px;
	padding: 0 8px;
	border-radius: 999px;
	background: var(--tcp-card-2);
	border: 1px solid var(--tcp-border);
	color: var(--tcp-muted);
	font-size: 12px;
	font-weight: 600;
}

.tcp-licenses-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
	gap: 20px;
}

@media (max-width: 720px) {
	.tcp-licenses-grid {
		grid-template-columns: 1fr;
	}
}

.tcp-licenses-grid .tcp-card {
	margin-bottom: 0;
}

.tcp-dash .tcp-card {
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tcp-dash .tcp-card:hover {
	border-color: rgba(124, 92, 255, 0.4);
	box-shadow: 0 18px 50px -34px rgba(124, 92, 255, 0.65);
}

/* ----------------------------------------------- Dashboard layout + nav */

.tcp-dash__layout {
	display: grid;
	grid-template-columns: 220px minmax(0, 1fr);
	gap: 28px;
	align-items: start;
}

/* Allow the content column to shrink below its content's intrinsic width,
   so wide children (key pills, tables) never push the page past the viewport. */
.tcp-dash__main {
	min-width: 0;
}

@media (max-width: 820px) {
	.tcp-dash__layout {
		/* minmax(0, …) — NOT plain 1fr — so the column can shrink below its
		   content's min width instead of growing the whole page past the
		   viewport on narrow screens. */
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
}

.tcp-dash__nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

@media (max-width: 820px) {
	.tcp-dash__nav {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}
}

.tcp-navitem {
	display: block;
	padding: 11px 14px;
	border-radius: 10px;
	color: var(--tcp-muted);
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid transparent;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tcp-navitem:hover {
	color: var(--tcp-text);
	background: var(--tcp-card);
}

.tcp-navitem.is-active {
	color: #fff;
	background: var(--tcp-card);
	border-color: rgba(124, 92, 255, 0.5);
}

.tcp-view {
	display: none;
}

.tcp-view.is-active {
	display: block;
}

.tcp-panel {
	background: var(--tcp-card);
	border: 1px solid var(--tcp-border);
	border-radius: var(--tcp-radius);
	padding: 22px;
}

.tcp-dash__sectionhead--spaced {
	margin-top: 30px;
}

.tcp-muted-p {
	color: var(--tcp-muted);
	font-size: 13px;
	margin: 0 0 18px;
	max-width: 680px;
	line-height: 1.6;
}

.tcp-muted-inline {
	color: var(--tcp-muted);
	font-size: 13px;
}

.tcp-link {
	color: var(--tcp-accent-2);
	text-decoration: none;
	font-weight: 600;
	font-size: 13px;
}

.tcp-link:hover {
	text-decoration: underline;
}

/* Overview table */

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

.tcp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.tcp-table th {
	text-align: left;
	color: var(--tcp-muted);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 600;
	padding: 0 14px 12px;
	border-bottom: 1px solid var(--tcp-border);
}

.tcp-table td {
	padding: 14px;
	border-bottom: 1px solid var(--tcp-border);
	color: var(--tcp-text);
	vertical-align: middle;
}

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

.tcp-key--inline {
	display: inline-block;
	flex: none;
	min-width: 0;
	white-space: nowrap;
	letter-spacing: 0.06em;
	background: var(--tcp-card-2);
	border: 1px solid var(--tcp-border);
	border-radius: 8px;
	padding: 8px 12px;
	font-family: "SF Mono", Menlo, Consolas, monospace;
	font-size: 13px;
	color: #fff;
}

/* Give the key its own breathing room in the compact Overview table. */
.tcp-table td:has( .tcp-key--inline ) {
	white-space: nowrap;
}

.tcp-keycopy {
	position: relative;
	display: inline-block;
}

/* Reserve room on the right so the overlaid icon never sits on the key text. */
.tcp-keycopy .tcp-key--inline {
	padding-right: 38px;
}

.tcp-copyicon {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 6px;
	color: var(--tcp-muted);
	cursor: pointer;
	transition: color 0.15s ease, background 0.15s ease;
}

.tcp-copyicon:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.tcp-copyicon.is-copied {
	color: var(--tcp-ok);
}

.tcp-status--pending {
	color: var(--tcp-warn);
}

/* Buy grid */

.tcp-buy-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.tcp-buy-card {
	background: var(--tcp-card);
	border: 1px solid var(--tcp-border);
	border-radius: var(--tcp-radius);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tcp-buy-card__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.tcp-buy-card__price {
	text-align: right;
}

.tcp-buy-card__amount {
	font-size: 22px;
	font-weight: 800;
	color: #fff;
}

.tcp-buy-card__term {
	display: block;
	font-size: 11px;
	color: var(--tcp-muted);
}

.tcp-buy-card__note {
	margin: 0;
	color: var(--tcp-muted);
	font-size: 13px;
}

.tcp-buy-card__btn {
	margin-top: auto;
	width: 100%;
}

/* Billing rows */

.tcp-billing-list {
	display: grid;
	gap: 14px;
}

.tcp-billing-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 0;
}

.tcp-billing-row__info {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.tcp-billing-row__renewal {
	color: var(--tcp-muted);
	font-size: 13px;
}

.tcp-pm-list {
	list-style: none;
	margin: 0 0 4px;
	padding: 0;
	display: grid;
	gap: 8px;
}

.tcp-pm {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: var(--tcp-card-2);
	border: 1px solid var(--tcp-border);
	border-radius: 10px;
	padding: 12px 14px;
}

.tcp-pm__label {
	color: var(--tcp-text);
	font-size: 14px;
}

.tcp-billing-row__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* Sites view */

.tcp-sites-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

/* Download */

.tcp-download {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
}

.tcp-download__title {
	margin: 0 0 4px;
	color: #fff;
	font-size: 17px;
}

.tcp-download__ver {
	margin: 0 0 6px;
	color: var(--tcp-accent-2);
	font-size: 13px;
	font-weight: 600;
}

.tcp-card {
	position: relative;
	background: var(--tcp-card);
	border: 1px solid var(--tcp-border);
	border-radius: var(--tcp-radius);
	padding: 22px;
	margin-bottom: 20px;
}

.tcp-card__top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 18px;
}

.tcp-plan-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	background: rgba(124, 92, 255, 0.18);
	color: var(--tcp-accent-2);
	margin-right: 8px;
}

.tcp-plan-badge--lifetime {
	background: rgba(255, 122, 69, 0.18);
	color: #ff9a6b;
}

.tcp-status {
	font-size: 12px;
	font-weight: 600;
}

.tcp-status--active {
	color: var(--tcp-ok);
}

.tcp-status--inactive {
	color: var(--tcp-danger);
}

.tcp-card__meta {
	color: var(--tcp-muted);
	font-size: 13px;
}

.tcp-keyrow {
	margin-bottom: 18px;
}

.tcp-keyrow__label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--tcp-muted);
	margin-bottom: 8px;
}

.tcp-keyrow__field {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.tcp-key {
	flex: 1 1 auto;
	min-width: 200px;
	background: var(--tcp-card-2);
	border: 1px solid var(--tcp-border);
	border-radius: 10px;
	padding: 11px 14px;
	font-family: "SF Mono", Menlo, Consolas, monospace;
	font-size: 15px;
	letter-spacing: 0.06em;
	color: #fff;
}

.tcp-usage {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
}

.tcp-usage__count {
	font-size: 13px;
	color: var(--tcp-muted);
	white-space: nowrap;
}

.tcp-usage__bar {
	flex: 1 1 auto;
	height: 6px;
	background: var(--tcp-card-2);
	border-radius: 999px;
	overflow: hidden;
}

.tcp-usage__fill {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #7c5cff, #a78bfa);
}

.tcp-sites h4 {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--tcp-text);
}

.tcp-sites__empty {
	color: var(--tcp-muted);
	font-size: 13px;
	margin: 0;
}

.tcp-sites__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.tcp-site {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	background: var(--tcp-card-2);
	border: 1px solid var(--tcp-border);
	border-radius: 10px;
	padding: 12px 14px;
}

.tcp-site__info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tcp-site__info a {
	color: var(--tcp-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	word-break: break-all;
}

.tcp-site__info a:hover {
	color: var(--tcp-accent-2);
}

.tcp-site__info small {
	color: var(--tcp-muted);
	font-size: 12px;
}

.tcp-card__footer {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--tcp-border);
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.tcp-card__hint {
	margin: 0;
	color: var(--tcp-muted);
	font-size: 12px;
	flex: 1 1 200px;
}

.tcp-card__actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.tcp-sites__subhead {
	margin: 16px 0 8px;
	font-size: 13px;
	color: var(--tcp-muted);
}

.tcp-site--inactive {
	opacity: 0.7;
}

.tcp-changeplan {
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--tcp-border);
}

.tcp-changeplan__row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.tcp-changeplan__select {
	flex: 1 1 220px;
	min-height: 44px;
	padding: 10px 40px 10px 14px;
	background-color: var(--tcp-card-2);
	color: #fff;
	border: 1px solid var(--tcp-border);
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.3;
	cursor: pointer;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	/* Custom chevron so the native arrow doesn't render light-on-light. */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239aa0b4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 12px 8px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tcp-changeplan__select:hover {
	border-color: var(--tcp-accent, #7c5cff);
}

.tcp-changeplan__select:focus {
	outline: none;
	border-color: var(--tcp-accent, #7c5cff);
	box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25);
}

.tcp-changeplan__select option {
	background: #1b1b22;
	color: #fff;
}

.tcp-empty {
	background: var(--tcp-card);
	border: 1px dashed var(--tcp-border);
	border-radius: var(--tcp-radius);
	padding: 40px;
	text-align: center;
	color: var(--tcp-muted);
}

.tcp-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin-top: 18px;
}

.tcp-pagination__info {
	font-size: 13px;
	color: var(--tcp-muted);
	min-width: 90px;
	text-align: center;
}

.tcp-portal--guest {
	max-width: 860px;
}

.tcp-portal--guest h2 {
	color: #fff;
}

/* Account form */

.tcp-form {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.tcp-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* Account fields span the full card width. */
.tcp-dash .tcp-field input[type="text"],
.tcp-dash .tcp-field input[type="email"],
.tcp-dash .tcp-field input[type="password"] {
	max-width: none;
}

.tcp-field__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--tcp-text);
}

.tcp-field__hint {
	margin: 0;
	font-size: 12px;
	color: var(--tcp-muted);
}

/* Login / register (logged-out) + Account inputs */

.tcp-auth-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 20px;
}

.tcp-auth__title {
	margin: 0 0 14px;
	color: #fff;
	font-size: 17px;
}

.tcp-dash input[type="text"],
.tcp-dash input[type="email"],
.tcp-dash input[type="password"] {
	width: 100%;
	max-width: 360px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid var(--tcp-border);
	background: var(--tcp-card-2);
	color: var(--tcp-text);
	font-size: 14px;
}

.tcp-dash input:disabled {
	opacity: 0.6;
}

.tcp-portal--guest label {
	display: block;
	color: var(--tcp-muted);
	font-size: 13px;
	margin: 0 0 6px;
}

.tcp-portal--guest .login-username,
.tcp-portal--guest .login-password,
.tcp-portal--guest .login-remember,
.tcp-portal--guest .login-submit {
	margin: 0 0 14px;
}

.tcp-portal--guest .login-remember label {
	display: inline;
	color: var(--tcp-text);
}

.tcp-portal--guest .login-submit input {
	background: linear-gradient( 90deg, #7c5cff, #9d7bff );
	color: #fff;
	border: 0;
	border-radius: 10px;
	padding: 12px 18px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

/* Toasts / notices */

.tcp-toast {
	background: rgba(58, 210, 159, 0.12);
	border: 1px solid rgba(58, 210, 159, 0.4);
	color: var(--tcp-ok);
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 16px;
	opacity: 0;
	max-height: 0;
	overflow: hidden;
	transition: opacity 0.2s ease, max-height 0.2s ease, margin 0.2s ease;
}

.tcp-toast.is-visible {
	opacity: 1;
	max-height: 80px;
}

.tcp-toast.is-error {
	background: rgba(239, 69, 101, 0.12);
	border-color: rgba(239, 69, 101, 0.4);
	color: var(--tcp-danger);
}

.tcp-notice {
	border-radius: 10px;
	padding: 12px 16px;
	font-size: 14px;
	margin-bottom: 16px;
}

.tcp-notice--warn {
	background: rgba(240, 160, 42, 0.12);
	border: 1px solid rgba(240, 160, 42, 0.4);
	color: var(--tcp-warn);
}

/* ------------------------------------------------------------ Responsive */

/* Tablet */
@media (max-width: 820px) {
	.tcp-portal {
		padding: 24px;
	}

	.tcp-dash__title {
		font-size: 21px;
	}

	/* The sidebar nav already wraps into a pill row at this width; let the items
	   size to their content rather than stretch. */
	.tcp-navitem {
		padding: 9px 14px;
	}
}

/* Mobile */
@media (max-width: 560px) {
	.tcp-portal {
		padding: 16px;
		border-radius: 14px;
	}

	.tcp-panel,
	.tcp-card {
		padding: 16px;
	}

	.tcp-dash__bar {
		margin-bottom: 18px;
		padding-bottom: 18px;
	}

	.tcp-dash__avatar {
		width: 40px;
		height: 40px;
		font-size: 15px;
		border-radius: 12px;
	}

	.tcp-dash__title {
		font-size: 19px;
	}

	/* Stop a long signed-in email from forcing horizontal scroll. */
	.tcp-dash__brand > div {
		min-width: 0;
	}

	.tcp-dash__sub {
		overflow-wrap: anywhere;
	}

	/* Make the header actions a full-width pair of buttons. */
	.tcp-dash__baractions {
		width: 100%;
	}

	.tcp-dash__baractions .tcp-btn {
		flex: 1 1 0;
		justify-content: center;
		/* Tighter, matched padding so the outline and ghost buttons are the same
		   height and fit the narrow space. */
		padding: 9px 10px;
		font-size: 13px;
	}

	.tcp-stats {
		gap: 12px;
		margin-bottom: 22px;
	}

	.tcp-stat {
		padding: 16px;
	}

	.tcp-stat__value {
		font-size: 24px;
	}

	/* Let site / payment-method rows stack so the action button never crowds
	   a long URL or card label. */
	.tcp-site,
	.tcp-pm {
		flex-wrap: wrap;
	}

	.tcp-site__info,
	.tcp-pm__label {
		flex: 1 1 100%;
		min-width: 0;
	}

	.tcp-site .tcp-btn,
	.tcp-pm .tcp-btn {
		flex: 1 1 auto;
		justify-content: center;
	}

	/* Plan switcher: select + button stack full-width. */
	.tcp-changeplan__select,
	.tcp-changeplan__apply {
		flex: 1 1 100%;
	}

	.tcp-pagination__btn {
		flex: 1 1 0;
	}

	/* Stack table columns vertically: each row becomes a card and every cell
	   shows its column name (from data-label) beside the value. */
	.tcp-table-wrap {
		overflow-x: visible;
	}

	.tcp-table thead {
		display: none;
	}

	.tcp-table,
	.tcp-table tbody,
	.tcp-table tr,
	.tcp-table td {
		display: block;
		width: 100%;
	}

	.tcp-table tr {
		background: var(--tcp-card-2);
		border: 1px solid var(--tcp-border);
		border-radius: 10px;
		padding: 4px 14px;
		margin-bottom: 12px;
	}

	.tcp-table td {
		display: flex;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
		gap: 6px 16px;
		padding: 11px 0;
		text-align: right;
		border: 0;
		border-top: 1px solid var(--tcp-border);
	}

	.tcp-table td:first-child {
		border-top: 0;
	}

	.tcp-table td::before {
		content: attr(data-label);
		flex: 0 0 auto;
		color: var(--tcp-muted);
		font-size: 12px;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.04em;
		text-align: left;
	}

	/* Action cells (Manage / Receipt) have no label — center the link. */
	.tcp-table td.tcp-table__action {
		justify-content: center;
	}

	.tcp-table td.tcp-table__action::before {
		display: none;
	}
}
