/* Omnio Partners — self-contained styles. Palette mirrors the Next.js site
   (gold/navy/slate/cream). No gradient-mesh / glow tells; one restrained accent. */
.op-root {
	--op-gold: #b89968;
	--op-navy: #0a1628;
	--op-slate: #6b7280;
	--op-cream: #faf8f4;
	--op-border: #e6e2da;
	font-family: Inter, system-ui, -apple-system, sans-serif;
	color: var(--op-navy);
	background: var(--op-cream);
	padding: 40px 20px 96px;
	box-sizing: border-box;
}
.op-root *, .op-root *::before, .op-root *::after { box-sizing: border-box; }
.op-narrow { max-width: 560px; margin: 0 auto; }
.op-dash { max-width: 960px; margin: 0 auto; }

/* Type */
.op-eyebrow {
	font-size: 12px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase;
	color: var(--op-gold); margin: 0 0 16px;
}
.op-gold { color: var(--op-gold); }
.op-gold-text { color: var(--op-gold) !important; }
.op-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(32px, 5vw, 46px); font-weight: 400; line-height: 1.1;
	letter-spacing: -0.02em; margin: 0 0 16px; color: var(--op-navy);
}
.op-title em { font-style: normal; color: var(--op-gold); }
.op-lead { color: var(--op-slate); font-size: 16px; line-height: 1.7; margin: 0 0 28px; }
.op-brand { font-weight: 600; }
.op-h2 { font-family: Georgia, serif; font-size: clamp(20px, 4vw, 26px); font-weight: 400; margin: 0 0 18px; color: var(--op-navy); }
.op-center { text-align: center; }

.op-back {
	display: inline-block; font-size: 13px; font-weight: 500; color: var(--op-slate);
	text-decoration: none; margin-bottom: 22px; transition: color 0.2s;
}
.op-back:hover { color: var(--op-navy); }

/* Card */
.op-card {
	background: #fff; border-radius: 16px; border: 1px solid var(--op-border);
	padding: clamp(24px, 4vw, 40px);
	box-shadow: 0 20px 60px rgba(0,0,0,0.04);
	margin-bottom: 24px;
}

/* Fields */
.op-field { margin-bottom: 20px; }
.op-field label {
	display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
	text-transform: uppercase; color: var(--op-slate); margin-bottom: 10px;
}
.op-field label span { color: var(--op-gold); }
.op-field input, .op-field textarea {
	width: 100%; padding: 15px 18px; font-size: 16px; font-family: inherit;
	border: 1.5px solid var(--op-border); border-radius: 8px;
	background: var(--op-cream); color: var(--op-navy); outline: none;
	transition: border-color 0.3s, box-shadow 0.3s; resize: vertical;
}
.op-field input:focus, .op-field textarea:focus {
	border-color: var(--op-gold); box-shadow: 0 0 0 3px rgba(184,153,104,0.08);
}
.op-field input.op-invalid, .op-field textarea.op-invalid { border-color: #e53e3e; }

/* Buttons */
.op-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 15px 26px; font-size: 14px; font-weight: 600; font-family: inherit;
	letter-spacing: 0.02em; border-radius: 8px; border: 1.5px solid var(--op-navy);
	background: var(--op-navy); color: #fff; cursor: pointer;
	text-decoration: none; transition: all 0.25s ease;
}
.op-btn:hover { background: #13233f; }
.op-btn:disabled { opacity: 0.6; cursor: default; }
.op-block { width: 100%; }
.op-sm { padding: 10px 16px; font-size: 12px; }

/* Commission callout (apply) */
.op-commission {
	display: flex; align-items: center; gap: 18px; margin: 4px 0 20px;
	padding: 20px 22px; border-radius: 12px; background: var(--op-navy); color: #fff;
}
.op-commission-amt { font-family: Georgia, serif; font-size: 40px; line-height: 1; color: var(--op-gold); }
.op-commission-h { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--op-gold); margin-bottom: 6px; }
.op-commission-d { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,0.78); }

/* Error / message / notice */
.op-error {
	margin-bottom: 16px; padding: 12px 14px; border-radius: 8px; font-size: 13px;
	background: rgba(229,62,62,0.06); border: 1px solid rgba(229,62,62,0.2); color: #c53030;
}
.op-message {
	margin-bottom: 16px; padding: 14px; border-radius: 8px; font-size: 14px; line-height: 1.6;
	background: rgba(184,153,104,0.08); border: 1px solid rgba(184,153,104,0.3); color: var(--op-navy);
}
.op-notice {
	margin-bottom: 22px; padding: 14px 16px; border-radius: 8px; font-size: 14px;
	background: rgba(184,153,104,0.08); border: 1px solid rgba(184,153,104,0.3); color: var(--op-navy);
}
.op-foot { font-size: 13px; color: var(--op-slate); text-align: center; margin: 18px 0 0; }
.op-foot a { color: var(--op-gold); font-weight: 600; }

/* Success (apply) */
.op-check {
	width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 20px;
	display: flex; align-items: center; justify-content: center; background: var(--op-gold);
}
.op-success-msg { font-size: 15px; line-height: 1.7; color: var(--op-slate); }

/* ───────── Dashboard ───────── */
.op-dash-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.op-logo { font-family: Georgia, serif; font-size: 24px; color: var(--op-navy); text-decoration: none; display: block; margin-bottom: 8px; }
.op-dash-user { text-align: right; }
.op-dash-name { font-weight: 600; font-size: 14px; }
.op-dash-email { font-size: 13px; color: var(--op-slate); margin: 2px 0 6px; }
.op-signout { font-size: 12px; color: var(--op-slate); text-decoration: none; border-bottom: 1px solid var(--op-border); }
.op-signout:hover { color: var(--op-navy); }

.op-welcome { background: var(--op-navy); border-radius: 18px; padding: clamp(28px, 5vw, 44px); margin-bottom: 24px; color: #fff; }
.op-welcome-h { font-family: Georgia, serif; font-weight: 400; font-size: clamp(26px, 4vw, 38px); line-height: 1.12; margin: 0 0 28px; color: #fff; }
.op-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.op-stat-label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.op-stat-value { font-family: Georgia, serif; font-size: 30px; line-height: 1; color: #fff; margin-bottom: 6px; }
.op-stat-hint { font-size: 12px; color: rgba(255,255,255,0.6); line-height: 1.45; }

/* Share kit */
.op-sharekit-grid { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.op-qr { background: #fff; border: 1px solid var(--op-border); border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.op-qr img { width: 100%; height: auto; display: block; }
.op-qr-note { font-size: 12px; color: var(--op-slate); line-height: 1.5; margin: 10px 0 0; }
.op-captions { display: flex; flex-direction: column; gap: 14px; }
.op-caption { border: 1px solid var(--op-border); border-radius: 10px; padding: 14px 16px; background: var(--op-cream); }
.op-caption-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.op-caption-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--op-gold); }
.op-caption-text { font-size: 13px; line-height: 1.6; color: var(--op-navy); margin: 0; }

/* Copy button */
.op-copy {
	font-family: inherit; font-size: 12px; font-weight: 600; padding: 6px 12px;
	border-radius: 6px; border: 1px solid var(--op-border); background: #fff;
	color: var(--op-navy); cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.op-copy:hover { border-color: var(--op-gold); color: var(--op-gold); }
.op-copy.op-copied { background: var(--op-gold); color: #fff; border-color: var(--op-gold); }

/* Referral link box */
.op-linkbox { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.op-linkcode {
	flex: 1; min-width: 240px; display: flex; align-items: center; padding: 0 16px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px;
	background: var(--op-cream); border: 1px solid var(--op-border); border-radius: 8px;
	color: var(--op-navy); overflow-x: auto; white-space: nowrap;
}
.op-linkcopy { padding: 12px 20px; font-size: 13px; }
.op-link-note { font-size: 12px; color: var(--op-slate); line-height: 1.55; margin: 14px 0 0; }

/* Tabs */
.op-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--op-border); margin-bottom: 18px; flex-wrap: wrap; }
.op-tab {
	font-family: inherit; font-size: 13px; font-weight: 600; padding: 10px 16px;
	border: none; background: none; color: var(--op-slate); cursor: pointer;
	border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s;
}
.op-tab:hover { color: var(--op-navy); }
.op-tab.op-active { color: var(--op-navy); border-bottom-color: var(--op-gold); }

.op-rows { display: flex; flex-direction: column; }
.op-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--op-border); }
.op-row:last-child { border-bottom: none; }
.op-row-title { font-weight: 600; font-size: 14px; }
.op-row-sub { font-size: 12px; color: var(--op-slate); margin-top: 3px; }
.op-row-right { text-align: right; display: flex; align-items: center; gap: 12px; }
.op-row-amt { font-family: Georgia, serif; font-size: 18px; color: var(--op-navy); }
.op-ref { font-size: 11px; color: var(--op-slate); font-weight: 400; }

.op-badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 11px; font-weight: 600; }

.op-empty { text-align: center; padding: 40px 20px; }
.op-empty-title { font-family: Georgia, serif; font-size: 18px; color: var(--op-navy); margin: 0 0 8px; }
.op-empty-body { font-size: 13px; line-height: 1.6; color: var(--op-slate); max-width: 420px; margin: 0 auto; }

/* Mobile */
@media (max-width: 720px) {
	.op-stats { grid-template-columns: repeat(2, 1fr); }
	.op-sharekit-grid { grid-template-columns: 1fr; }
	.op-qr { max-width: 240px; }
}
@media (max-width: 480px) {
	.op-dash-head { flex-direction: column; gap: 16px; }
	.op-dash-user { text-align: left; }
}
