/*!
 * Influenzic Gen 2 — Homepage 3-Role Dashboard Tabs
 *
 * @package influenzic
 */

.g2-rt-shell { position: relative; }

.g2-rt-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 6px;
	position: relative;
	z-index: 2;
}

.g2-rt-tab {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 16px 20px;
	border-radius: var(--g2-radius-md) var(--g2-radius-md) 0 0;
	border: 1px solid var(--g2-border);
	border-bottom-color: transparent;
	background: #f1f5f9;
	color: var(--g2-text-muted);
	font-size: 14.5px;
	font-weight: 700;
	text-align: center;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.g2-rt-tab:hover { background: #f8fafc; color: var(--g2-text-heading); }

.g2-rt-tab.is-active {
	background: var(--g2-bg-white);
	border-color: var(--g2-border);
	border-bottom-color: var(--g2-bg-white);
	color: var(--g2-text-heading);
	margin-bottom: -1px;
	position: relative;
	z-index: 3;
	box-shadow: inset 0 3px 0 var(--r);
}

.g2-rt-tab__dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--r);
	opacity: 0.45;
	transition: opacity 0.2s ease, box-shadow 0.2s ease;
}

.g2-rt-tab.is-active .g2-rt-tab__dot {
	opacity: 1;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--r) 18%, transparent);
}

.g2-rt-panel {
	background: var(--g2-bg-white);
	border: 1px solid var(--g2-border);
	border-radius: 0 0 var(--g2-radius-lg) var(--g2-radius-lg);
	padding: 46px 44px;
	box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03), 0 24px 48px -18px rgba(15, 23, 42, 0.08);
	position: relative;
	z-index: 1;
}

.g2-rt-panel[hidden] { display: none; }

.g2-rt-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	gap: 48px;
	align-items: center;
}

.g2-rt-stage { position: relative; padding: 28px 0 28px; }

.g2-rt-window {
	background: #ffffff;
	border: 1px solid #e6eaf4;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 24px 60px -16px rgba(79, 70, 229, 0.14), 0 4px 16px rgba(15, 23, 42, 0.04);
}

.g2-rt-winbar {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 18px;
	background: #f5f7ff;
	border-bottom: 1px solid #e6eaf4;
}

.g2-rt-dots {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.g2-rt-dots i {
	display: block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.85);
	box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.05);
}

.g2-rt-dots i:nth-child(1) { background: #ff5f56; }
.g2-rt-dots i:nth-child(2) { background: #ffbd2e; }
.g2-rt-dots i:nth-child(3) { background: #27c93f; }

.g2-rt-crumb {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: -0.01em;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.g2-rt-table-wrap { overflow-x: auto; }

.g2-rt-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
	font-size: 13px;
}

.g2-rt-table th {
	padding: 12px 18px;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
	background: #ffffff;
	border-bottom: 1px solid #eef2f7;
}

.g2-rt-table td {
	padding: 14px 18px;
	font-weight: 400;
	color: #334155;
	border-bottom: 1px solid #eef2f7;
	white-space: nowrap;
}

.g2-rt-table tbody tr:last-child td { border-bottom: 0; }
.g2-rt-table tbody tr.is-hi { background: color-mix(in srgb, var(--r) 4.5%, #ffffff); }
.g2-rt-table tbody tr.is-hi td:first-child { box-shadow: inset 3.5px 0 0 var(--r); }
.g2-rt-table td strong { color: #1e293b; font-weight: 400; }
.g2-rt-table tbody tr.is-hi td:first-child strong { color: #0f172a; font-weight: 600; }

.g2-rt-chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11.5px;
	font-weight: 600;
	border: 1px solid transparent;
	white-space: nowrap;
}

.g2-rt-chip--amber { background: #fef9c3; color: #92400e; border-color: #fde68a; }
.g2-rt-chip--green { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.g2-rt-chip--blue { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.g2-rt-chip--red { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

.g2-rt-float-top {
	position: absolute;
	top: -4px;
	right: 16px;
	z-index: 3;
	max-width: 300px;
	display: flex;
	align-items: center;
	gap: 11px;
	background: #ffffff;
	border: 1px solid #edf0f7;
	border-radius: 14px;
	padding: 11px 15px 11px 12px;
	box-shadow: 0 20px 44px -10px rgba(79, 70, 229, 0.14), 0 4px 12px rgba(15, 23, 42, 0.05);
}

.g2-rt-float-top small {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 3px;
}

.g2-rt-ftag {
	font-size: 9px;
	font-weight: 700;
	color: #2563eb;
	background: #eff6ff;
	padding: 1px 6px;
	border-radius: 4px;
}

.g2-rt-float-top p {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	font-weight: 600;
	color: #0f172a;
}

.g2-rt-float-bot {
	position: absolute;
	bottom: 0;
	left: 14px;
	z-index: 3;
	max-width: 280px;
	border-radius: 14px;
	padding: 14px 18px;
	color: #ffffff;
	background: linear-gradient(135deg, var(--r) 0%, color-mix(in srgb, var(--r) 72%, #312e81) 100%);
	box-shadow: 0 18px 38px -10px color-mix(in srgb, var(--r) 48%, transparent);
}

.g2-rt-float-bot small {
	display: block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.09em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 5px;
}

.g2-rt-float-bot p {
	margin: 0;
	font-size: 13px;
	line-height: 1.48;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.94);
}

.g2-rt-float-bot strong { color: #ffffff; font-weight: 600; }

.g2-rt-info h3 {
	margin: 0 0 20px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--g2-text-heading);
}

.g2-rt-feats { display: grid; gap: 18px; margin-bottom: 28px; }
.g2-rt-feat { display: flex; align-items: flex-start; gap: 14px; }

.g2-rt-feat__ic {
	width: 38px;
	height: 38px;
	border-radius: 10px;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--r) 0%, color-mix(in srgb, var(--r) 75%, #4f46e5) 100%);
	color: #ffffff;
	box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--r) 42%, transparent);
}

.g2-rt-feat strong {
	display: block;
	font-size: 14.5px;
	font-weight: 600;
	color: #0f172a;
	margin-bottom: 2px;
}

.g2-rt-feat p {
	margin: 0;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.5;
	color: #64748b;
}

.g2-rt-panel--secondary .g2-rt-feat__ic {
	background: var(--g2-secondary);
	color: #0f172a;
	box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--g2-secondary) 45%, transparent);
}

.g2-btn--role {
	background: var(--r);
	color: #ffffff;
	border: 1px solid var(--r);
	box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--r) 50%, transparent);
}

.g2-btn--role:hover {
	background: color-mix(in srgb, var(--r) 86%, #000000);
	border-color: color-mix(in srgb, var(--r) 86%, #000000);
	color: #ffffff;
}

.g2-rt-panel--secondary .g2-btn--role { color: #0f172a; }
.g2-rt-panel--secondary .g2-btn--role:hover {
	background: color-mix(in srgb, var(--g2-secondary) 88%, #000000);
	border-color: color-mix(in srgb, var(--g2-secondary) 88%, #000000);
	color: #0f172a;
}

.g2-rt-studio { padding: 18px 20px 26px; }
.g2-rt-admin { padding: 15px 18px 20px; }

.g2-rt-urlbar {
	flex: 1;
	min-width: 0;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 7px;
	padding: 4px 11px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 11.5px;
	font-weight: 400;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.g2-rt-adm-head { margin-bottom: 14px; }
.g2-rt-adm-head small { display: block; font-size: 12px; font-weight: 400; color: #64748b; margin-bottom: 2px; }
.g2-rt-adm-head h4 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: #0f172a; }

.g2-rt-subhead {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #94a3b8;
	margin: 14px 0 8px;
}

.g2-rt-creator-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 12px;
	margin-bottom: 12px;
	border-bottom: 1px solid #eef2f7;
}

.g2-rt-creator-id { display: flex; align-items: center; gap: 10px; min-width: 0; }

.g2-rt-monogram {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12.5px;
	font-weight: 700;
	color: #ffffff;
	background: linear-gradient(135deg, var(--r) 0%, color-mix(in srgb, var(--r) 72%, #312e81) 100%);
	flex-shrink: 0;
}

.g2-rt-monogram--warm { background: linear-gradient(135deg, #f43f5e 0%, #fb923c 100%); }
.g2-rt-creator-id strong { display: block; font-size: 14px; font-weight: 700; color: #0f172a; }
.g2-rt-creator-id small { display: block; font-size: 12px; font-weight: 400; color: #64748b; }

.g2-rt-social-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.g2-rt-sp {
	font-size: 11px;
	font-weight: 600;
	border-radius: 999px;
	padding: 3px 10px;
	border: 1px solid transparent;
}

.g2-rt-sp--ig { background: #fdf2f8; color: #be185d; border-color: #fbcfe8; }
.g2-rt-sp--tt { background: #f1f5f9; color: #0f172a; border-color: #cbd5e1; }
.g2-rt-sp--yt { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.g2-rt-sp--fb { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }

.g2-rt-rate-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }

.g2-rt-rate-card {
	background: #f8fafc;
	border: 1px solid #eef2f7;
	border-radius: 10px;
	padding: 8px;
	text-align: center;
}

.g2-rt-rc-lbl {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-size: 10.5px;
	font-weight: 500;
	color: #64748b;
	margin-bottom: 2px;
	white-space: nowrap;
}

.g2-rt-rate-card strong { display: block; font-size: 14.5px; font-weight: 700; color: #0f172a; }

.g2-rt-admin-kpis {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin-bottom: 4px;
}

.g2-rt-admin-kpis--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 280px; }

.g2-rt-admin-kpi {
	background: #ffffff;
	border: 1px solid #eef2f7;
	border-radius: 12px;
	padding: 11px 13px;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.g2-rt-admin-kpi small {
	display: block;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 4px;
}

.g2-rt-admin-kpi strong {
	display: block;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #0f172a;
	line-height: 1.15;
}

.g2-rt-kpi-sub { display: block; font-size: 11px; font-weight: 500; color: #64748b; margin-top: 3px; }
.g2-rt-kpi-sub.is-green { color: #059669; }

.g2-rt-queue { display: grid; gap: 8px; }

.g2-rt-queue-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 12px;
	background: #ffffff;
	border: 1px solid #eef2f7;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02);
}

.g2-rt-qleft { display: flex; align-items: center; gap: 11px; min-width: 0; }

.g2-rt-qavatar {
	width: 34px;
	height: 34px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 11.5px;
	font-weight: 700;
	color: #ffffff;
	flex-shrink: 0;
}

.g2-rt-qavatar--orange { background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%); }
.g2-rt-qavatar--green { background: linear-gradient(135deg, #34d399 0%, #059669 100%); }
.g2-rt-qavatar--blue { background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%); }

.g2-rt-queue-item strong { display: block; font-size: 13px; font-weight: 700; color: #0f172a; }
.g2-rt-queue-item small { display: block; font-size: 11.5px; font-weight: 400; color: #64748b; }

.g2-rt-stage--collage { padding: 16px 20px 52px 14px; }
.g2-rt-stage--creator { padding: 22px 20px 78px 16px; }

.g2-rt-cphoto-wrap { position: relative; width: 46px; height: 46px; flex-shrink: 0; }

.g2-rt-cphoto {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 2px #10b981;
	display: block;
}

.g2-rt-conline {
	position: absolute;
	bottom: 0;
	right: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #10b981;
	border: 2px solid #ffffff;
}

.g2-rt-cverify {
	position: absolute;
	top: -2px;
	right: 6px;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 11px;
	background: #ffffff;
	border: 1px solid #edf0f7;
	border-radius: 14px;
	padding: 10px 15px 10px 11px;
	box-shadow: 0 20px 42px -10px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.05);
}

.g2-rt-cverify small {
	display: block;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 2px;
}

.g2-rt-cverify code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
	font-size: 10px;
	font-weight: 700;
	color: #059669;
	background: #ecfdf5;
	padding: 1px 5px;
	border-radius: 4px;
}

.g2-rt-cverify strong { display: block; font-size: 13px; font-weight: 700; color: #0f172a; }

.g2-rt-cwallet {
	position: absolute;
	bottom: 0;
	left: -4px;
	z-index: 5;
	width: 226px;
	background: linear-gradient(135deg, #0d9488 0%, #0f766e 55%, #115e59 100%);
	color: #ffffff;
	border-radius: 16px;
	padding: 14px 16px;
	box-shadow: 0 22px 44px -10px rgba(13, 148, 136, 0.42), 0 4px 12px rgba(15, 23, 42, 0.08);
}

.g2-rt-cwallet__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 4px;
}

.g2-rt-cwallet__top small { font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.85); }

.g2-rt-cwallet__top span {
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 0.06em;
	background: rgba(255, 255, 255, 0.2);
	color: #ffffff;
	padding: 2px 7px;
	border-radius: 999px;
}

.g2-rt-cwallet strong {
	display: block;
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #ffffff;
	margin-bottom: 10px;
}

.g2-rt-cwallet__btn {
	text-align: center;
	background: #ffffff;
	color: #0f766e;
	font-size: 11.5px;
	font-weight: 700;
	padding: 7px 10px;
	border-radius: 8px;
}

.g2-rt-fpill--cinvite { bottom: 22px; right: -4px; }
.g2-rt-fpill__ic--pink { background: #fce7f3; color: #db2777; }

.g2-rt-invcard {
	position: absolute;
	top: -4px;
	right: 0;
	z-index: 4;
	width: 228px;
	background: #ffffff;
	border: 1px solid #e6eaf4;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 26px 52px -14px rgba(15, 23, 42, 0.22), 0 4px 14px rgba(15, 23, 42, 0.06);
}

.g2-rt-invcard__head {
	background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
	color: #ffffff;
	padding: 13px 16px;
}

.g2-rt-invcard__head small {
	display: block;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 3px;
}

.g2-rt-invcard__head strong { display: block; font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; color: #ffffff; }
.g2-rt-invcard__body { padding: 13px 16px 15px; }

.g2-rt-invrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 6px 0;
	border-bottom: 1px dashed #e2e8f0;
	font-size: 12px;
	font-weight: 400;
	color: #475569;
}

.g2-rt-invtotal {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 0 11px;
}

.g2-rt-invtotal span { font-size: 10.5px; font-weight: 800; letter-spacing: 0.06em; color: #0f172a; }
.g2-rt-invtotal strong { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: #1d4ed8; }

.g2-rt-invbtn {
	display: block;
	width: 100%;
	text-align: center;
	background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
	color: #ffffff;
	font-size: 11.5px;
	font-weight: 600;
	padding: 8px 10px;
	border-radius: 9px;
}

.g2-rt-fpill {
	position: absolute;
	z-index: 5;
	display: flex;
	align-items: center;
	gap: 11px;
	background: #ffffff;
	border: 1px solid #edf0f7;
	border-radius: 14px;
	padding: 10px 15px 10px 11px;
	box-shadow: 0 20px 42px -10px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.05);
}

.g2-rt-fpill--bl { bottom: 0; left: -4px; }
.g2-rt-fpill--dark {
	bottom: 0;
	right: -2px;
	background: #111827;
	border-color: #1f2937;
	color: #ffffff;
	box-shadow: 0 22px 44px -10px rgba(15, 23, 42, 0.38);
}

.g2-rt-fpill__ic {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.g2-rt-fpill__ic--mint { background: #d1fae5; color: #059669; }
.g2-rt-fpill__ic--blue { background: #dbeafe; color: #2563eb; }
.g2-rt-fpill__ic--purple { background: #ede9fe; color: #7c3aed; }
.g2-rt-fpill__ic--solid { background: linear-gradient(135deg, #3b82f6 0%, #4f46e5 100%); color: #ffffff; }

.g2-rt-fpill small {
	display: block;
	font-size: 9.5px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 2px;
}

.g2-rt-fpill--dark small { color: #94a3b8; }

.g2-rt-fpill strong {
	display: block;
	font-size: 13.5px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
}

.g2-rt-fpill--dark strong { color: #ffffff; }

@media (max-width: 1024px) {
	.g2-rt-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 768px) {
	.g2-rt-grid {
		display: flex;
		flex-direction: column;
		gap: 20px;
		min-width: 0;
		max-width: 100%;
		overflow: hidden;
	}

	.g2-rt-copy { order: 1; }
	.g2-rt-stage-wrap {
		order: 2;
		width: 100%;
		max-width: 100%;
		overflow: hidden;
	}

	.g2-rt-tabs {
		display: flex;
		flex-direction: row;
		overflow-x: auto;
		gap: 8px;
		padding-bottom: 6px;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.g2-rt-tabs::-webkit-scrollbar { display: none; }

	.g2-rt-tab {
		flex: 0 0 auto;
		white-space: nowrap;
		padding: 10px 14px;
		font-size: 13px;
		border-radius: 12px;
		justify-content: flex-start;
		border-bottom-color: var(--g2-border);
	}

	.g2-rt-tab.is-active {
		margin-bottom: 0;
		border-bottom-color: var(--g2-border);
	}

	.g2-rt-panel {
		margin-top: 10px;
		border-radius: 18px;
		padding: 24px 18px;
		overflow: hidden;
	}
}
