/* ===== Shared admin/dashboard UI (template manager, member dashboard) ===== */

.tibs-fc-wrap {
	max-width: 900px;
	margin: 0 auto;
	padding: 20px 0;
}

.tibs-fc-wrap .tibs-hint {
	background: #f6f7f7;
	border-left: 4px solid #2271b1;
	padding: 12px 16px;
	font-size: 13px;
	line-height: 1.6;
}

.tibs-hint-inline {
	font-size: 13px;
	color: #6b7688;
	margin: 0 0 16px;
}

.tibs-input,
.tibs-textarea,
.tibs-field-row input[type="text"],
.tibs-field-row textarea {
	width: 100%;
	max-width: 500px;
	padding: 10px 12px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 14px;
	box-sizing: border-box;
}

.tibs-textarea {
	max-width: 100%;
	font-family: monospace;
}

.tibs-btn {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid #2271b1;
	background: #fff;
	color: #2271b1;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	text-decoration: none;
	transition: all 0.15s ease;
}

.tibs-btn-primary,
.tibs-btn.tibs-btn-primary {
	background: #2271b1;
	color: #fff;
}

.tibs-btn:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.tibs-save-msg {
	margin-left: 10px;
	font-size: 13px;
	color: #46b450;
	font-weight: 600;
}

.tibs-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
}

.tibs-table th,
.tibs-table td {
	text-align: left;
	padding: 10px;
	border-bottom: 1px solid #e2e4e7;
}

/* Member dashboard shell */
.tibs-funnel-dashboard {
	background: #fff;
	border: 1px solid #eceef1;
	border-radius: 10px;
	padding: 28px;
}

.tibs-funnel-dashboard h2 {
	margin-top: 0;
}

.tibs-funnel-links {
	background: linear-gradient(135deg, #f4f7fb 0%, #eef2f9 100%);
	border: 1px solid #e3e8f0;
	padding: 18px 20px;
	border-radius: 8px;
	margin-bottom: 24px;
}

.tibs-funnel-links p {
	margin: 6px 0;
}

.tibs-copy-btn {
	margin-left: 8px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid #2271b1;
	color: #2271b1;
	background: #fff;
	border-radius: 20px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.tibs-copy-btn:hover {
	background: #2271b1;
	color: #fff;
}

/* Tabs */
.tibs-dashboard-tabs {
	display: flex;
	gap: 4px;
	border-bottom: 2px solid #eceef1;
	margin-bottom: 24px;
}

.tibs-tab-btn {
	background: none;
	border: none;
	padding: 12px 20px;
	font-size: 14px;
	font-weight: 700;
	color: #8891a0;
	cursor: pointer;
	border-bottom: 3px solid transparent;
	margin-bottom: -2px;
	transition: color 0.15s ease;
}

.tibs-tab-btn:hover {
	color: #2271b1;
}

.tibs-tab-btn.active {
	color: #2271b1;
	border-bottom-color: #2271b1;
}

.tibs-tab-panel h3 {
	margin-top: 0;
}

.tibs-design-section-title {
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid #eceef1;
}

.tibs-template-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 16px 0;
}

.tibs-template-card {
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 20px 16px;
	width: 220px;
	text-align: center;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.tibs-template-card:hover {
	box-shadow: 0 6px 16px rgba(20, 38, 68, 0.08);
}

.tibs-template-card-icon {
	font-size: 28px;
	margin-bottom: 8px;
}

.tibs-template-card.tibs-active {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	background: #f4f9ff;
}

.tibs-field-row {
	margin-bottom: 18px;
}

.tibs-field-row label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.tibs-image-field {
	display: flex;
	align-items: center;
	gap: 12px;
}

.tibs-image-preview {
	max-width: 120px;
	max-height: 90px;
	object-fit: cover;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.tibs-field-image {
	max-width: 100%;
	height: auto;
	display: block;
}

/* Design tab controls */
.tibs-design-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 420px;
	padding: 12px 0;
	border-bottom: 1px solid #f0f0f1;
}

.tibs-design-row label {
	font-weight: 600;
	font-size: 14px;
	color: #1b2b45;
}

.tibs-design-row input[type="color"] {
	width: 52px;
	height: 34px;
	padding: 0;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	cursor: pointer;
	background: none;
}

.tibs-toggle-row label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
}

.tibs-toggle-row input[type="checkbox"] {
	width: 18px;
	height: 18px;
}

/* Preset color-theme swatches (replaces individual color pickers) */
.tibs-palette-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 16px 0 8px;
}

.tibs-palette-swatch {
	width: 130px;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 8px;
	padding: 6px;
	text-align: center;
	transition: border-color 0.15s ease;
}

.tibs-palette-swatch:hover {
	border-color: #c3c4c7;
}

.tibs-palette-swatch.tibs-selected {
	border-color: #2271b1;
}

.tibs-palette-preview {
	height: 60px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tibs-palette-dot {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.8);
}

.tibs-palette-name {
	font-size: 12px;
	font-weight: 600;
	color: #1b2b45;
	margin-top: 8px;
}

.tibs-template-card.tibs-locked {
	opacity: 0.55;
}

.tibs-template-card.tibs-locked .tibs-btn {
	cursor: not-allowed;
}

.tibs-fc-wrap .tibs-field-permissions-wrap {
	margin: 32px 0;
	padding: 20px;
	background: #f6f7f7;
	border-radius: 8px;
}

/* ===== Live funnel page (public-facing design) ===== */

:root,
.tibs-funnel-body {
	--tibs-accent: #e0a634;
	--tibs-heading: #1b2b45;
	--tibs-text: #6b7688;
	--tibs-hero-1: #142644;
	--tibs-hero-2: #0c1a30;
}

.tibs-funnel-body {
	margin: 0;
}

.tibs-funnel-page {
	max-width: 100%;
	padding: 0;
	color: #223047;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.tibs-funnel-page * {
	box-sizing: border-box;
}

/* Brand / "brought to you by" bar */
.tibs-brand-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 24px;
	background: #fff;
	border-bottom: 1px solid #eceef1;
	flex-wrap: wrap;
}

.tibs-brand-logo {
	font-size: 20px;
	font-weight: 800;
	color: var(--tibs-heading);
	line-height: 1.2;
	word-break: break-word;
	max-width: 60%;
}

.tibs-brand-owner {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	margin-left: auto;
}

.tibs-brand-owner-text {
	text-align: right;
}

.tibs-owner-caption {
	font-size: 11px;
	color: #6b7688;
	text-align: right;
	white-space: nowrap;
}

.tibs-owner-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--tibs-heading);
	text-align: right;
}

.tibs-owner-avatar {
	border-radius: 50%;
	border: 2px solid var(--tibs-accent);
	flex-shrink: 0;
}

/* Social profile icon row, shown just below the brand bar */
.tibs-social-bar {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 12px 16px;
	background: #f8f9fb;
	border-bottom: 1px solid #eceef1;
}

.tibs-social-bar a {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--tibs-heading);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 15px;
	transition: transform 0.15s ease, opacity 0.15s ease;
}

.tibs-social-bar a:hover {
	transform: translateY(-2px);
	opacity: 0.85;
}

/* Hero */
.tibs-hero {
	background: linear-gradient(135deg, var(--tibs-hero-1) 0%, var(--tibs-hero-2) 100%);
	color: #fff;
	padding: 64px 32px;
}

.tibs-hero-grid {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 48px;
	align-items: center;
}

.tibs-hero-badge {
	display: inline-block;
	background: rgba(224, 166, 52, 0.18);
	border: 1px solid var(--tibs-accent);
	color: var(--tibs-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1px;
	padding: 6px 14px;
	border-radius: 20px;
	margin-bottom: 20px;
}

.tibs-hero-headline {
	font-size: 42px;
	font-weight: 800;
	line-height: 1.2;
	margin: 0 0 20px;
	color: #fff;
}

.tibs-highlight {
	color: var(--tibs-accent);
}

.tibs-hero-sub {
	font-size: 16px;
	color: #c3cbdb;
	line-height: 1.6;
	max-width: 480px;
	margin-bottom: 28px;
}

.tibs-hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.tibs-trust-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 600;
}

.tibs-trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 6px;
	background: rgba(224, 166, 52, 0.18);
}

.tibs-hero-form-card {
	background: #fff;
	color: #1b2b45;
	border-radius: 10px;
	padding: 28px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* Lead form (also used standalone via [tibs_lead_form] outside the hero) */
.tibs-lead-form-wrap {
	max-width: 480px;
}

.tibs-lead-form-wrap h3 {
	margin: 0 0 4px;
	font-size: 22px;
	color: var(--tibs-heading);
}

.tibs-form-sub {
	margin: 0 0 20px;
	font-size: 13px;
	color: #6b7688;
}

.tibs-input-group {
	display: flex;
	align-items: center;
	border: 1px solid #dbe0e8;
	border-radius: 6px;
	padding: 0 14px;
	margin-bottom: 14px;
	background: #fafbfc;
}

.tibs-input-group .tibs-input-icon {
	margin-right: 10px;
	opacity: 0.6;
}

.tibs-input-group input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 13px 0;
	font-size: 14px;
	outline: none;
}

.tibs-btn-gold {
	display: block;
	width: 100%;
	text-align: center;
	background: var(--tibs-accent);
	border: none;
	color: var(--tibs-heading);
	font-weight: 800;
	letter-spacing: 0.5px;
	font-size: 14px;
	padding: 14px;
	border-radius: 6px;
	cursor: pointer;
	margin-top: 6px;
}

.tibs-btn-gold:hover {
	filter: brightness(0.92);
}

.tibs-form-note {
	font-size: 12px;
	color: #8891a0;
	text-align: center;
	margin: 12px 0 0;
}

.tibs-lead-msg {
	text-align: center;
	font-size: 13px;
	color: #2e8b3f;
	margin-top: 8px;
}

/* Benefits */
.tibs-benefits {
	background: #f4f7fb;
	padding: 60px 32px;
	text-align: center;
}

.tibs-section-heading {
	font-size: 26px;
	font-weight: 800;
	color: var(--tibs-heading);
	position: relative;
	display: inline-block;
	margin-bottom: 40px;
}

.tibs-section-heading::after {
	content: "";
	display: block;
	width: 60px;
	height: 3px;
	background: var(--tibs-accent);
	margin: 14px auto 0;
}

.tibs-benefits-grid {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	text-align: left;
}

.tibs-benefit-card {
	text-align: center;
}

.tibs-benefit-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 16px;
	background: #e4ecfb;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
}

.tibs-benefit-card h4 {
	font-size: 16px;
	color: var(--tibs-heading);
	margin: 0 0 8px;
}

.tibs-benefit-card p {
	font-size: 13px;
	color: var(--tibs-text);
	line-height: 1.6;
	margin: 0;
}

/* About */
.tibs-about {
	padding: 70px 32px;
}

.tibs-about-grid {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}

.tibs-about-image-wrap img {
	width: 100%;
	border-radius: 10px;
	display: block;
}

.tibs-about-label {
	color: var(--tibs-accent);
	font-weight: 700;
	font-size: 12px;
	letter-spacing: 1px;
}

.tibs-about-copy h2 {
	font-size: 28px;
	color: var(--tibs-heading);
	margin: 10px 0 16px;
}

.tibs-about-copy p {
	color: var(--tibs-text);
	line-height: 1.7;
	margin-bottom: 20px;
}

.tibs-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tibs-checklist li {
	position: relative;
	padding-left: 32px;
	margin-bottom: 14px;
	font-weight: 600;
	color: var(--tibs-heading);
}

.tibs-checklist li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: -2px;
	width: 22px;
	height: 22px;
	background: var(--tibs-accent);
	color: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

/* Testimonial */
.tibs-testimonial {
	background: linear-gradient(135deg, var(--tibs-hero-1) 0%, var(--tibs-hero-2) 100%);
	color: #fff;
	padding: 70px 32px;
	text-align: center;
}

.tibs-testimonial-inner {
	max-width: 720px;
	margin: 0 auto;
}

.tibs-quote-mark {
	font-size: 48px;
	color: var(--tibs-accent);
	line-height: 1;
	margin-bottom: 12px;
}

.tibs-testimonial-quote {
	font-size: 20px;
	font-style: italic;
	line-height: 1.6;
	margin-bottom: 28px;
}

.tibs-testimonial-person {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-align: left;
}

.tibs-testimonial-person img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
}

.tibs-testimonial-name {
	font-weight: 700;
}

.tibs-testimonial-role {
	font-size: 12px;
	color: var(--tibs-accent);
}

/* Footer */
.tibs-tpl-footer {
	background: #0c1a30;
	color: #8891a0;
	text-align: center;
	font-size: 13px;
	padding: 20px 32px;
}

/* Responsive */
@media (max-width: 782px) {
	.tibs-hero-grid,
	.tibs-about-grid {
		grid-template-columns: 1fr;
	}
	.tibs-benefits-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.tibs-hero-headline {
		font-size: 30px;
	}
	.tibs-hero {
		padding: 40px 20px;
	}
	.tibs-brand-bar {
		flex-direction: column;
		justify-content: center;
		text-align: center;
		padding: 16px 20px;
	}
	.tibs-brand-logo {
		max-width: 100%;
		text-align: center;
	}
	.tibs-brand-owner {
		margin-left: 0;
		flex-direction: row-reverse;
		justify-content: center;
	}
	.tibs-brand-owner-text {
		text-align: left;
	}
	.tibs-owner-caption,
	.tibs-owner-name {
		text-align: left;
	}
	.tibs-social-bar {
		padding: 10px;
	}
	.tibs-dashboard-tabs {
		flex-wrap: wrap;
	}
	.tibs-palette-swatch {
		width: calc(50% - 8px);
	}
}

@media (max-width: 480px) {
	.tibs-hero-headline {
		font-size: 26px;
	}
	.tibs-hero-form-card {
		padding: 20px;
	}
	.tibs-benefits-grid {
		grid-template-columns: 1fr;
	}
	.tibs-brand-owner-text {
		max-width: 160px;
	}
}
