/* =============================================================
   FF BILLING — Frontend Styles
   Editorial pricing page, credits shop, billing dashboard
   ============================================================= */

/* ===== PRICING PAGE ===== */
.ff-pricing-wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding: 48px 32px 72px;
}
.ff-pricing-hero {
	text-align: center;
	margin-bottom: 48px;
}
.ff-pricing-title {
	font-family: var(--ff-font-display, 'Playfair Display', Georgia, serif);
	font-size: clamp(40px, 6vw, 64px);
	font-weight: 400;
	letter-spacing: -0.03em;
	line-height: 1.05;
	margin: 12px 0 18px;
}
.ff-pricing-sub {
	font-size: 17px;
	color: var(--ff-muted, #6B6B6B);
	max-width: 560px;
	margin: 0 auto 32px;
	line-height: 1.6;
}

/* Currency switcher */
.ff-currency-switcher {
	display: inline-flex;
	gap: 0;
	border: 0.5px solid var(--ff-border-strong, #D9D0BC);
	background: var(--ff-paper, #fff);
}
.ff-currency-btn {
	padding: 9px 18px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--ff-muted, #6B6B6B);
	text-decoration: none;
	border-right: 0.5px solid var(--ff-border, #EDE8DF);
	transition: all 0.2s;
}
.ff-currency-btn:last-child { border-right: 0; }
.ff-currency-btn:hover { background: var(--ff-sand, #F7F2E8); color: var(--ff-text, #1A1A1A); }
.ff-currency-btn.is-active {
	background: var(--ff-black, #1A1A1A);
	color: var(--ff-gold, #B8935E);
}

/* Pricing grid */
.ff-pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 16px;
	margin-bottom: 72px;
}
.ff-plan-card {
	background: var(--ff-paper, #fff);
	border: 0.5px solid var(--ff-border, #EDE8DF);
	padding: 32px 28px;
	position: relative;
	display: flex;
	flex-direction: column;
	transition: all 0.3s ease;
}
.ff-plan-card:hover {
	transform: translateY(-4px);
	border-color: var(--ff-gold, #B8935E);
	box-shadow: 0 16px 40px rgba(184, 147, 94, 0.08);
}
.ff-plan-card.is-highlighted {
	background: var(--ff-black, #1A1A1A);
	color: var(--ff-cream, #FDFCF9);
	border-color: var(--ff-gold, #B8935E);
	transform: scale(1.02);
}
.ff-plan-card.is-highlighted:hover { transform: scale(1.02) translateY(-4px); }
.ff-plan-card.is-current {
	border-color: var(--ff-gold, #B8935E);
	border-width: 1.5px;
}
.ff-plan-ribbon {
	position: absolute;
	top: -12px; left: 50%;
	transform: translateX(-50%);
	background: var(--ff-gold, #B8935E);
	color: var(--ff-black, #1A1A1A);
	padding: 5px 18px;
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	font-weight: 600;
}
.ff-plan-head { margin-bottom: 24px; }
.ff-plan-kicker {
	font-size: 10px;
	color: var(--ff-gold, #B8935E);
	letter-spacing: 0.2em;
	text-transform: uppercase;
	font-weight: 500;
	margin-bottom: 6px;
}
.ff-plan-card.is-highlighted .ff-plan-kicker { color: var(--ff-gold-light, #D4AF7A); }
.ff-plan-label {
	font-family: var(--ff-font-display, Georgia, serif);
	font-size: 28px;
	font-weight: 500;
	letter-spacing: -0.01em;
	margin: 0;
}
.ff-plan-price {
	display: flex;
	align-items: baseline;
	gap: 6px;
	padding: 20px 0;
	margin-bottom: 24px;
	border-bottom: 0.5px solid var(--ff-border, #EDE8DF);
}
.ff-plan-card.is-highlighted .ff-plan-price { border-color: rgba(184, 147, 94, 0.2); }
.ff-plan-price-value {
	font-family: var(--ff-font-display, Georgia, serif);
	font-size: 40px;
	font-weight: 400;
	letter-spacing: -0.02em;
	line-height: 1;
}
.ff-plan-price-period {
	font-size: 13px;
	color: var(--ff-muted, #6B6B6B);
}
.ff-plan-card.is-highlighted .ff-plan-price-period { color: #B8B8B8; }
.ff-plan-features {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
	flex: 1;
}
.ff-plan-features li {
	padding: 7px 0;
	font-size: 14px;
	line-height: 1.5;
	color: var(--ff-text, #1A1A1A);
}
.ff-plan-card.is-highlighted .ff-plan-features li { color: #E8E8E8; }
.ff-plan-cta .ff-btn {
	width: 100%;
	text-align: center;
}
.ff-plan-cta .is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
	display: inline-block;
	width: 100%;
	text-align: center;
}

/* Comparison table */
.ff-pricing-comparison { margin-bottom: 64px; }
.ff-comparison-title {
	font-family: var(--ff-font-display, Georgia, serif);
	font-size: 28px;
	text-align: center;
	margin: 48px 0 32px;
	font-weight: 400;
}
.ff-comparison-table {
	width: 100%;
	border-collapse: collapse;
	background: var(--ff-paper, #fff);
	border: 0.5px solid var(--ff-border, #EDE8DF);
}
.ff-comparison-table th,
.ff-comparison-table td {
	padding: 14px 20px;
	text-align: center;
	border-bottom: 0.5px solid var(--ff-border, #EDE8DF);
	font-size: 14px;
}
.ff-comparison-table thead th {
	background: var(--ff-sand, #F7F2E8);
	font-family: var(--ff-font-display, Georgia, serif);
	font-weight: 500;
	font-size: 16px;
}
.ff-comparison-row-label {
	text-align: left !important;
	color: var(--ff-muted, #6B6B6B);
	font-weight: 500;
	background: #FBF8F0;
	letter-spacing: 0.02em;
}

/* FAQ */
.ff-pricing-faq { max-width: 720px; margin: 0 auto; }
.ff-faq-list { display: flex; flex-direction: column; gap: 10px; }
.ff-faq-item {
	background: var(--ff-paper, #fff);
	border: 0.5px solid var(--ff-border, #EDE8DF);
	padding: 16px 24px;
}
.ff-faq-item summary {
	cursor: pointer;
	font-family: var(--ff-font-display, Georgia, serif);
	font-size: 18px;
	font-weight: 500;
	list-style: none;
	padding: 6px 0;
}
.ff-faq-item summary::-webkit-details-marker { display: none; }
.ff-faq-item summary::after { content: '+'; float: right; color: var(--ff-gold, #B8935E); font-size: 22px; font-weight: 300; }
.ff-faq-item[open] summary::after { content: '−'; }
.ff-faq-item > div {
	padding: 10px 0 6px;
	font-size: 15px;
	color: var(--ff-muted, #6B6B6B);
	line-height: 1.65;
}

/* ===== CREDITS SHOP ===== */
.ff-credits-shop { max-width: 960px; margin: 0 auto; padding: 48px 32px; }
.ff-credits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
}
.ff-credit-card {
	background: var(--ff-paper, #fff);
	border: 0.5px solid var(--ff-border, #EDE8DF);
	padding: 32px 28px;
	text-align: center;
	position: relative;
	transition: all 0.2s;
}
.ff-credit-card:hover { border-color: var(--ff-gold, #B8935E); transform: translateY(-4px); }
.ff-credit-card.is-highlighted { border-color: var(--ff-gold, #B8935E); border-width: 1.5px; }
.ff-credit-label {
	font-family: var(--ff-font-display, Georgia, serif);
	font-size: 22px;
	font-weight: 500;
	margin-bottom: 18px;
}
.ff-credit-amount {
	font-family: var(--ff-font-display, Georgia, serif);
	font-size: 52px;
	color: var(--ff-gold, #B8935E);
	line-height: 1;
	margin-bottom: 4px;
}
.ff-credit-subamount {
	font-size: 11px;
	color: var(--ff-muted-soft, #8B8B8B);
	letter-spacing: 0.15em;
	text-transform: uppercase;
	margin-bottom: 20px;
}
.ff-credit-price {
	font-family: var(--ff-font-display, Georgia, serif);
	font-size: 28px;
	margin-bottom: 20px;
}

/* ===== BILLING DASHBOARD ===== */
.ff-billing-dash { max-width: 900px; margin: 0 auto; padding: 48px 32px; }
.ff-dash-panel {
	background: var(--ff-paper, #fff);
	border: 0.5px solid var(--ff-border, #EDE8DF);
	padding: 28px 32px;
	margin-bottom: 16px;
}
.ff-dash-panel-head {
	padding-bottom: 18px;
	border-bottom: 0.5px solid var(--ff-border, #EDE8DF);
	margin-bottom: 20px;
}
.ff-dash-panel-head h2 {
	font-family: var(--ff-font-display, Georgia, serif);
	font-size: 26px;
	font-weight: 500;
	margin: 4px 0 0;
}
.ff-dash-kicker {
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--ff-gold, #B8935E);
	font-weight: 500;
}
.ff-dash-small {
	font-size: 14px;
	color: var(--ff-muted, #6B6B6B);
	font-family: inherit;
}
.ff-dash-panel-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 18px;
	margin-bottom: 20px;
}
.ff-dash-panel-grid > div {
	display: flex;
	flex-direction: column;
}
.ff-dash-panel-grid strong {
	font-size: 10px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--ff-muted-soft, #8B8B8B);
	font-weight: 600;
	margin-bottom: 4px;
}
.ff-dash-actions {
	display: flex;
	gap: 10px;
	padding-top: 16px;
	flex-wrap: wrap;
}
.ff-dash-warning strong { color: #D97706 !important; }
.ff-dash-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.ff-dash-table th,
.ff-dash-table td {
	padding: 12px 8px;
	border-bottom: 0.5px solid var(--ff-border, #EDE8DF);
	text-align: left;
}
.ff-dash-table thead th {
	font-size: 10px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ff-muted, #6B6B6B);
	font-weight: 600;
}

/* ===== FEATURED TIERS ===== */
.ff-featured-tiers { max-width: 1080px; margin: 40px auto; padding: 0 24px; text-align: center; }
.ff-featured-title {
	font-family: var(--ff-font-display, Georgia, serif);
	font-size: clamp(28px, 4vw, 40px);
	font-weight: 400;
	letter-spacing: -0.02em;
	margin: 8px 0 32px;
}
.ff-featured-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	text-align: left;
}
.ff-featured-card {
	background: var(--ff-paper, #fff);
	border: 0.5px solid var(--ff-border, #EDE8DF);
	padding: 28px 26px;
	transition: all 0.2s;
	position: relative;
}
.ff-featured-card:hover { border-color: var(--ff-gold, #B8935E); transform: translateY(-2px); }
.ff-featured-card.is-highlighted {
	border-color: var(--ff-gold, #B8935E);
	background: linear-gradient(180deg, var(--ff-cream, #FDFCF9) 0%, var(--ff-sand, #F7F2E8) 100%);
}
.ff-featured-card h3 {
	font-family: var(--ff-font-display, Georgia, serif);
	font-size: 24px;
	margin: 0 0 12px;
	font-weight: 500;
}
.ff-featured-price {
	font-family: var(--ff-font-display, Georgia, serif);
	font-size: 36px;
	color: var(--ff-gold, #B8935E);
	line-height: 1;
}
.ff-featured-sub {
	font-size: 11px;
	color: var(--ff-muted-soft, #8B8B8B);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	margin: 4px 0 18px;
}
.ff-featured-card ul {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	font-size: 13px;
	line-height: 1.7;
}
.ff-featured-card li { padding: 3px 0; }

/* Featured badges (shown on profile cards across the site) */
.ff-badge-featured {
	display: inline-block;
	padding: 3px 10px;
	font-size: 10px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	font-weight: 600;
	background: var(--ff-gold, #B8935E);
	color: var(--ff-black, #1A1A1A);
}
.ff-badge-elite {
	background: var(--ff-black, #1A1A1A);
	color: var(--ff-gold-light, #D4AF7A);
}
.ff-badge-spotlight { background: var(--ff-gold-light, #D4AF7A); }

/* ===== CHECKOUT SUCCESS ===== */
.ff-checkout-success {
	max-width: 560px;
	margin: 0 auto;
	padding: 96px 32px;
	text-align: center;
}
.ff-success-icon {
	width: 88px; height: 88px;
	margin: 0 auto 24px;
	background: var(--ff-gold, #B8935E);
	color: var(--ff-cream, #FDFCF9);
	border-radius: 50%;
	font-size: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 400;
	line-height: 1;
}
.ff-success-title {
	font-family: var(--ff-font-display, Georgia, serif);
	font-size: clamp(32px, 4vw, 44px);
	font-weight: 400;
	letter-spacing: -0.025em;
	margin: 0 0 16px;
}
.ff-success-sub {
	font-size: 16px;
	color: var(--ff-muted, #6B6B6B);
	line-height: 1.6;
	margin: 0 0 28px;
}
.ff-success-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
}

/* Mobile tweaks */
@media (max-width: 640px) {
	.ff-pricing-wrap { padding: 32px 18px 48px; }
	.ff-plan-card { padding: 24px 22px; }
	.ff-plan-card.is-highlighted { transform: none; }
	.ff-plan-card.is-highlighted:hover { transform: translateY(-4px); }
	.ff-plan-price-value { font-size: 34px; }
	.ff-comparison-table { font-size: 12px; }
	.ff-comparison-table th,
	.ff-comparison-table td { padding: 10px 8px; }
}
