/* Variables globales de color y espaciado */
:root {
	--bg: #14181f;
	--panel: #1a212b;
	--surface: #202a36;
	--surface-2: #263241;
	--surface-soft: #2c3949;
	--ink: #e9f0f7;
	--muted: #9fb0c4;
	--sidebar-bg: linear-gradient(180deg, #121922, #1b2734 64%, #213140);
	--sidebar-ink: #f4f8ff;
	--sidebar-hover: rgba(255, 255, 255, 0.12);
	--sidebar-border: rgba(255, 255, 255, 0.08);
	--nav-active-bg: linear-gradient(120deg, rgba(69, 122, 146, 0.9), rgba(51, 93, 118, 0.72));
	--chart-bg: linear-gradient(180deg, #18222e, #131b25);
	--line: #314052;
	--brand-deep: #0f141c;
	--brand-mid: #213a43;
	--brand-soft: #3f6674;
	--accent: #4ba085;
	--danger: #a2404b;
	--ok: #2f7e63;
	--violet: #5f6f87;
	--bg-radial-a: radial-gradient(1200px 600px at 8% -10%, #283949 0%, rgba(40, 57, 73, 0) 70%);
	--bg-radial-b: radial-gradient(900px 500px at 90% 12%, #2c4349 0%, rgba(44, 67, 73, 0) 68%);
	--bg-linear: linear-gradient(180deg, #111720 0%, var(--bg) 100%);
	--radius: 16px;
	--radius-sm: 12px;
	--shadow-sm: 0 10px 22px rgba(0, 0, 0, 0.36);
	--shadow-md: 0 16px 34px rgba(0, 0, 0, 0.42);
}

:root[data-theme="light"] {
	--bg: #eff3ef;
	--panel: #f9fbf8;
	--surface: #ffffff;
	--surface-2: #f2f6f5;
	--surface-soft: #e8eef1;
	--ink: #1b2430;
	--muted: #566477;
	--sidebar-bg: linear-gradient(180deg, #ffffff, #f4f7fa 64%, #edf2f6);
	--sidebar-ink: #1f3344;
	--sidebar-hover: rgba(58, 86, 111, 0.1);
	--sidebar-border: rgba(58, 86, 111, 0.2);
	--nav-active-bg: linear-gradient(120deg, rgba(113, 166, 187, 0.78), rgba(91, 140, 162, 0.64));
	--chart-bg: linear-gradient(180deg, #ffffff, #f4f8fb);
	--line: #d0d9e2;
	--brand-deep: #20323c;
	--brand-mid: #3e5f6f;
	--brand-soft: #658491;
	--accent: #2f8b6f;
	--danger: #b23848;
	--ok: #24765a;
	--bg-radial-a: radial-gradient(1000px 520px at 8% -10%, #dde9e3 0%, rgba(221, 233, 227, 0) 70%);
	--bg-radial-b: radial-gradient(900px 500px at 90% 10%, #e4ece8 0%, rgba(228, 236, 232, 0) 68%);
	--bg-linear: linear-gradient(180deg, #f8faf8 0%, var(--bg) 100%);
	--shadow-sm: 0 12px 24px rgba(26, 45, 63, 0.08);
	--shadow-md: 0 18px 34px rgba(26, 45, 63, 0.12);
}

* {
	box-sizing: border-box;
}

img {
	max-width: 200%;
	height: auto;
}

/* Base tipográfica y fondo general */
html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	font-family: "Space Grotesk", "Segoe UI", sans-serif;
	color: var(--ink);
	background: var(--bg-radial-a), var(--bg-radial-b), var(--bg-linear);
	text-rendering: geometricPrecision;
	-webkit-font-smoothing: antialiased;
}

body::before {
	content: none;
}

/* Encabezados de secciones */
h1,
h2,
h3,
h4,
h5,
p {
	margin: 0;
}

h1,
h2,
h3 {
	font-family: "Rajdhani", "Space Grotesk", sans-serif;
	letter-spacing: 0.01em;
}

.hidden {
	display: none;
}

.muted {
	color: var(--muted);
	font-size: 0.93rem;
}

.error-msg {
	min-height: 1.2rem;
	color: var(--danger);
	font-weight: 600;
}

/* Bloque de login */
.auth-layout {
	min-height: 100vh;
	display: grid;
	grid-template-columns: minmax(320px, 560px) 1fr;
}

.auth-card {
	padding: clamp(1.4rem, 2vw, 2.4rem);
}

.auth-card {
	align-self: center;
	justify-self: center;
	width: min(100%, 460px);
	display: grid;
	gap: 1rem;
	background: linear-gradient(172deg, #20252d 0%, #1a1e24 100%);
	border: 1px solid rgba(154, 168, 184, 0.18);
	border-radius: calc(var(--radius) + 4px);
	box-shadow: 0 16px 28px rgba(4, 8, 14, 0.42);
	animation: fade-up 0.5s ease both;
	color: #cfd8e4;
}

.auth-card .field {
	color: #c4cfdb;
}

.auth-card .password-field {
	position: relative;
}

.auth-card .password-input-wrapper {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem;
}

.auth-card .password-toggle {
	align-self: center;
	justify-self: end;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: #dbe5f1;
	border-radius: 8px;
	padding: 0 0.8rem;
	min-height: 2.8rem;
	cursor: pointer;
}

.auth-card .password-toggle:hover {
	border-color: rgba(255, 255, 255, 0.28);
}

.auth-card .muted {
	color: #95a2b2;
}

.auth-card input,
.auth-card select,
.auth-card textarea,
.auth-card .input-select {
	color: #dbe5f1;
	background: #2a3038;
	border-color: #3e4957;
}

.auth-card input::placeholder,
.auth-card textarea::placeholder {
	color: #95a1b1;
}

.auth-card .btn-primary {
	padding: 0.56rem 0.98rem;
	border-radius: 13px;
	font-weight: 600;
	letter-spacing: 0.008em;
	color: #dde5ef;
	background: linear-gradient(135deg, #3f4a59 0%, #343e4c 52%, #2c3542 100%);
	border: 1px solid rgba(147, 162, 178, 0.22);
	box-shadow: 0 4px 10px rgba(8, 13, 21, 0.24);
}

.auth-card .btn-primary:hover {
	background: linear-gradient(135deg, #4a5565 0%, #3d4858 52%, #333d4b 100%);
}

.forgot-password-link {
	justify-self: center;
	margin-top: -0.18rem;
	padding: 0;
	background: transparent;
	border: 0;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 500;
	color: #9ba8b8;
	text-decoration: underline;
	text-decoration-color: rgba(155, 168, 184, 0.48);
	text-underline-offset: 2px;
	cursor: pointer;
}

.forgot-password-link:hover {
	color: #b4c0cf;
	text-decoration-color: rgba(180, 192, 207, 0.7);
}

.brand-title {
	font-family: "Manrope", "Inter", "Space Grotesk", sans-serif;
	font-size: clamp(1.62rem, 1.2vw + 1.05rem, 2.08rem);
	line-height: 1.08;
	font-weight: 600;
	color: #e2e8f0;
	letter-spacing: 0.004em;
	display: grid;
	gap: 0.18rem;
}

.brand-title-main {
	font-weight: 700;
	font-size: 1em;
	color: #ecf2fb;
}

.brand-title-sub {
	font-weight: 500;
	font-size: 0.9em;
	color: #bcc8d8;
}

.company-logo {
	height: 52px;
	max-width: 220px;
	width: auto;
	object-fit: contain;
	object-position: left center;
	border-radius: 0;
}

.auth-visual {
	padding: 0;
	display: block;
	position: sticky;
	top: 0;
	height: 100vh;
	min-height: 100vh;
	overflow: hidden;
	background: linear-gradient(180deg, #101720 0%, #0b1118 100%);
}

.auth-visual::before,
.auth-visual::after {
	content: none;
}

.auth-visual::before {
	width: 380px;
	height: 380px;
	right: -80px;
	top: -120px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
}

.auth-visual::after {
	width: 460px;
	height: 460px;
	left: -220px;
	bottom: -220px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

.glass-panel {
	position: relative;
	z-index: 1;
	max-width: 540px;
	padding: clamp(1.4rem, 2vw, 2.2rem);
	border-radius: 24px;
	border: 1px solid rgba(255, 255, 255, 0.24);
	color: #f8fbff;
	background: rgba(255, 255, 255, 0.12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
	backdrop-filter: blur(9px);
}

.visual-illustration {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border-radius: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
}

.building-illustration {
	width: 100%;
	height: auto;
	display: block;
}

.cityline-illustration {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	opacity: 0.88;
	filter: none;
}

.visual-signature {
	position: absolute;
	right: 0.8rem;
	bottom: 0.8rem;
	margin: 0;
	text-align: right;
	z-index: 2;
	font-family: "Montserrat", "Space Grotesk", sans-serif;
	font-size: 0.7rem;
	font-style: normal;
	font-weight: 500;
	letter-spacing: 0.045em;
	text-transform: uppercase;
	color: rgba(196, 205, 216, 0.56);
}

.auth-visual-copy {
	position: absolute;
	inset: 0;
	z-index: 2;
	margin: 0;
	color: rgba(199, 208, 220, 0.9);
	text-shadow: 0 3px 10px rgba(8, 13, 22, 0.54);
}

.auth-visual-copy::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(520px 280px at 26% 30%, rgba(6, 14, 28, 0.52), rgba(6, 14, 28, 0)),
		radial-gradient(560px 300px at 76% 82%, rgba(6, 14, 28, 0.44), rgba(6, 14, 28, 0));
	pointer-events: none;
	z-index: 0;
}

.auth-visual-copy-title,
.auth-visual-copy-body {
	display: block;
	font-family: "Manrope", "Inter", "Space Grotesk", sans-serif;
	font-style: normal;
	line-height: 1.38;
	position: absolute;
	z-index: 1;
}

.auth-visual-copy-title {
	left: clamp(1rem, 2.2vw, 1.9rem);
	top: clamp(18%, 24vh, 30%);
	max-width: min(460px, 66%);
	font-size: clamp(1.62rem, 2.2vw, 2.46rem);
	font-weight: 700;
	letter-spacing: 0.01em;
	margin: 0;
	text-align: left;
	color: rgba(206, 214, 224, 0.95);
}

.auth-visual-copy-body {
	right: clamp(1rem, 2vw, 1.8rem);
	bottom: clamp(2.2rem, 4.8vh, 3.8rem);
	max-width: min(470px, 58%);
	font-size: clamp(0.92rem, 1vw, 1.04rem);
	font-weight: 400;
	letter-spacing: 0.004em;
	line-height: 1.1;
	margin: 0;
	text-align: right;
	white-space: pre-line;
	color: rgba(188, 198, 210, 0.9);
	text-shadow: 0 2px 7px rgba(8, 13, 22, 0.42);
}

.auth-visual-copy-body span {
	display: block;
}

.auth-visual-copy-body span + span {
	margin-top: 0.04rem;
}

.purchase-box {
	border-radius: var(--radius-sm);
	border: 1px solid rgba(145, 160, 176, 0.25);
	background: linear-gradient(180deg, rgba(55, 64, 76, 0.56), rgba(42, 49, 58, 0.46));
	padding: 1rem;
	display: grid;
	gap: 0.8rem;
	font-size: 0.86rem;
	color: #c3cfdd;
}

.purchase-box h3 {
	font-family: "Montserrat", "Space Grotesk", sans-serif;
	font-size: 1.05rem;
	letter-spacing: 0.01em;
	margin: 0;
}

.purchase-form {
	display: grid;
	gap: 0.8rem;
}

/* Plan Toggle Buttons */
.plan-toggle {
	display: flex;
	gap: 0.5rem;
}

.toggle-btn {
	flex: 1;
	padding: 0.6rem 0.8rem;
	border: 1px solid rgba(145, 160, 176, 0.3);
	background: rgba(55, 64, 76, 0.4);
	color: #c3cfdd;
	border-radius: 8px;
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 500;
	transition: all 0.3s ease;
}

.toggle-btn:hover {
	border-color: rgba(75, 160, 133, 0.4);
	background: rgba(75, 160, 133, 0.1);
}

.toggle-btn.active {
	background: var(--accent);
	border-color: var(--accent);
	color: #ffffff;
}

.badge {
	display: inline-block;
	font-size: 0.75rem;
	background: rgba(255, 255, 255, 0.2);
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	margin-left: 0.3rem;
}

/* Form Section */
.form-section {
	display: grid;
	gap: 0.6rem;
}

/* License Counter */
.license-section {
	display: grid;
	gap: 0.4rem;
}

.license-counter {
	display: grid;
	grid-template-columns: 40px 80px 40px;
	gap: 0.3rem;
	align-items: center;
}

.counter-btn {
	padding: 0.4rem;
	background: rgba(75, 160, 133, 0.15);
	border: 1px solid var(--accent);
	color: var(--accent);
	border-radius: 6px;
	cursor: pointer;
	font-size: 1.1rem;
	font-weight: bold;
	transition: all 0.2s ease;
}

.counter-btn:hover {
	background: rgba(75, 160, 133, 0.25);
}

.license-counter input {
	text-align: center;
	background: rgba(55, 64, 76, 0.3) !important;
	border: 1px solid rgba(145, 160, 176, 0.2) !important;
	color: #c3cfdd !important;
	padding: 0.4rem !important;
}

/* Pricing Summary */
.pricing-summary {
	background: rgba(55, 64, 76, 0.5);
	border: 1px solid rgba(75, 160, 133, 0.2);
	border-radius: 8px;
	padding: 1rem;
	display: grid;
	gap: 0.6rem;
}

.pricing-row {
	display: flex;
	justify-content: space-between;
	color: #c3cfdd;
	font-size: 0.9rem;
}

.pricing-row.total {
	border-top: 1px solid rgba(75, 160, 133, 0.2);
	padding-top: 0.8rem;
	font-weight: 600;
	color: var(--accent);
}

.annual-hidden {
	display: none !important;
}

.btn-large {
	width: 100%;
	padding: 0.9rem 1.2rem;
	border-radius: 8px;
}

.purchase-box .field {
	color: #c4cfdb;
}

.purchase-flow-note {
	margin: 0;
	font-size: 0.75rem;
	line-height: 1.4;
	color: #9fb0c4;
}

.purchase-box .btn {
	justify-self: start;
}

.purchase-box .btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.purchase-feedback {
	min-height: 1.25rem;
	margin-top: 0.35rem;
}

.purchase-trial-info {
	margin: 0.5rem 0 0;
	padding: 0.7rem 0.9rem;
	font-size: 0.8rem;
	line-height: 1.5;
	color: #d6e2f0;
	background: rgba(45, 122, 86, 0.16);
	border: 1px solid rgba(76, 175, 120, 0.4);
	border-radius: var(--radius-sm);
}

.purchase-trial-info strong {
	color: #eaf3ec;
}

.compact-form {
	gap: 0.6rem;
}

/* FAQ Styles */
.faq-box {
	border-radius: var(--radius-sm);
	border: 1px solid rgba(145, 160, 176, 0.25);
	background: linear-gradient(180deg, rgba(55, 64, 76, 0.56), rgba(42, 49, 58, 0.46));
	padding: 1rem;
	display: grid;
	gap: 0.8rem;
	font-size: 0.86rem;
	color: #c3cfdd;
	margin-top: 1.5rem;
}

.faq-box h3 {
	font-family: "Montserrat", "Space Grotesk", sans-serif;
	font-size: 1.05rem;
	letter-spacing: 0.01em;
	margin: 0;
	color: var(--accent);
}

.faq-item {
	border-bottom: 1px solid rgba(145, 160, 176, 0.15);
}

.faq-item:last-child {
	border-bottom: none;
}

.faq-question {
	width: 100%;
	padding: 0.8rem 0;
	background: none;
	border: none;
	color: #c3cfdd;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.9rem;
	font-weight: 500;
	transition: color 0.2s ease;
	text-align: left;
}

.faq-question:hover {
	color: var(--accent);
}

.faq-icon {
	font-size: 1.2rem;
	font-weight: bold;
	color: var(--accent);
	transition: transform 0.3s ease;
	display: inline-block;
	min-width: 20px;
	text-align: center;
}

.faq-question.active .faq-icon {
	transform: rotate(45deg);
}

.faq-answer {
	overflow: hidden;
	max-height: 1000px;
	opacity: 1;
	transition: all 0.3s ease;
	padding: 0 0 0.8rem 0;
}

.faq-answer.hidden {
	max-height: 0;
	opacity: 0;
	padding: 0;
}

.faq-answer p {
	margin: 0.5rem 0;
	line-height: 1.5;
	color: #9fb0c4;
}

.faq-answer p:first-child {
	margin-top: 0;
}

.faq-answer p:last-child {
	margin-bottom: 0;
}

.faq-answer strong {
	color: #c3cfdd;
}

.form-grid,
.card-grid {
	display: grid;
	gap: 0.9rem;
}

.card-grid {
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.card-grid.compact {
	grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
}

.full {
	grid-column: 1 / -1;
}

.field {
	display: grid;
	gap: 0.4rem;
	font-size: 0.86rem;
	font-weight: 600;
	color: var(--muted);
}

.field span {
	line-height: 1.25;
	overflow-wrap: normal;
	word-break: normal;
}

input,
select,
textarea,
.input-select {
	width: 100%;
	border-radius: 11px;
	border: 1px solid var(--line);
	padding: 0.62rem 0.72rem;
	font: inherit;
	color: var(--ink);
	background: var(--surface);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus,
select:focus,
textarea:focus,
.input-select:focus {
	outline: none;
	border-color: #9fa5af;
	box-shadow: 0 0 0 3px rgba(70, 76, 85, 0.18);
}

textarea {
	resize: vertical;
}

.btn {
	border: 0;
	border-radius: 11px;
	padding: 0.62rem 1rem;
	font: inherit;
	font-weight: 700;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

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

.btn:active {
	transform: translateY(0);
}

.btn-primary {
	color: #f5f9ff;
	background: linear-gradient(135deg, var(--brand-deep), var(--brand-mid));
	box-shadow: 0 9px 18px rgba(20, 24, 30, 0.28);
}

.btn-secondary {
	color: var(--ink);
	background: linear-gradient(135deg, var(--surface-2), var(--surface));
	box-shadow: 0 6px 12px rgba(22, 26, 33, 0.12);
}

.btn-ghost {
	color: var(--ink);
	background: color-mix(in srgb, var(--surface) 88%, white 12%);
}

/* Estructura principal post-login */
.app-layout {
	min-height: 100vh;
	display: grid;
	grid-template-rows: auto 1fr;
}

.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1rem;
	padding: 0.85rem 1.15rem;
	background: color-mix(in srgb, var(--panel) 86%, transparent 14%);
	border-bottom: 1px solid var(--line);
	backdrop-filter: blur(10px);
}

.topbar-title {
	font-size: 1.22rem;
	color: var(--brand-deep);
}

.topbar-actions {
	display: flex;
	gap: 0.55rem;
	align-items: center;
}

.topbar-actions .input-select {
	width: 92px;
	padding: 0.5rem 0.55rem;
	font-size: 0.8rem;
}

.workspace {
	display: grid;
	grid-template-columns: 1fr;
	min-height: 0;
}

.sidebar {
	position: fixed;
	z-index: 30;
	inset: 66px auto 0 0;
	width: 254px;
	transform: translateX(-100%);
	transition: transform 0.2s ease;
	box-shadow: 0 10px 26px rgba(14, 18, 25, 0.35);
	padding: 1rem;
	display: grid;
	align-content: start;
	gap: 0.54rem;
	background: var(--sidebar-bg);
	border-right: 1px solid var(--sidebar-border);
}

.sidebar.open {
	transform: translateX(0);
}

.nav-link {
	border: 1px solid var(--sidebar-border);
	border-radius: 12px;
	padding: 0.72rem 0.82rem;
	text-align: left;
	font-weight: 600;
	color: var(--sidebar-ink);
	background: rgba(255, 255, 255, 0.06);
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover {
	background: var(--sidebar-hover);
}

.nav-link.active {
	border-color: color-mix(in srgb, var(--sidebar-ink) 36%, transparent 64%);
	background: var(--nav-active-bg);
}

.main {
	padding: 1.1rem;
	overflow: auto;
}

.view {
	display: grid;
	gap: 1rem;
	animation: fade-up 0.32s ease;
}

.view-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.8rem;
	flex-wrap: wrap;
}

#goalsView h3,
#goalsView h4,
#metricsView h3,
#metricsView h4 {
	font-family: "Montserrat", "Space Grotesk", sans-serif;
	letter-spacing: 0.02em;
}

#goalsView .kpi-value,
#metricsView .kpi-value {
	font-family: "League Spartan", "Montserrat", sans-serif;
	font-weight: 800;
}

.view-actions {
	display: flex;
	gap: 0.65rem;
}

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

.group-card,
.panel,
.kpi,
.operation-card {
	border-radius: var(--radius);
	border: 1px solid var(--line);
	background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
	box-shadow: var(--shadow-sm);
}

.group-card {
	padding: 0.95rem;
	display: grid;
	gap: 0.7rem;
}

.group-title {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 0.3rem;
	border-bottom: 1px solid var(--line);
}

.operation-card {
	padding: 0.82rem;
	gap: 0.42rem;
	display: grid;
	background: linear-gradient(180deg, var(--surface), var(--surface-2));
}

.status-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	padding: 0.2rem 0.56rem;
	border-radius: 999px;
	color: #ffffff;
	font-size: 0.76rem;
	font-weight: 700;
}

.st-negociacion {
	background: linear-gradient(135deg, #1e2228, #313741);
}

.st-conformada {
	background: linear-gradient(135deg, #2f343d, #434a55);
}

.st-caida {
	background: linear-gradient(135deg, #454b56, #575e6b);
}

.st-cerrada {
	background: linear-gradient(135deg, #5d636e, #717986);
}

.calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 0.55rem;
}

.day-cell {
	min-height: 106px;
	padding: 0.58rem;
	border-radius: var(--radius-sm);
	border: 1px solid #d8dde5;
	background: linear-gradient(180deg, #ffffff, #f2f4f7);
	display: grid;
	gap: 0.38rem;
	cursor: pointer;
}

.day-number {
	font-size: 0.92rem;
	font-weight: 800;
	color: #2f343d;
}

.event-chip {
	border-radius: 8px;
	padding: 0.2rem 0.36rem;
	font-size: 0.74rem;
	font-weight: 600;
	color: #242a32;
	background: #e1e5ec;
}

.panel {
	padding: 0.9rem;
	display: grid;
	gap: 0.65rem;
}

.split-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr 1fr;
}

.dashboard-chart-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-chart-card {
	padding: 0.95rem;
}

.kpi-grid {
	display: grid;
	gap: 0.8rem;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.kpi {
	padding: 0.9rem;
}

.panel h4,
.kpi p,
.table th,
.table td {
	overflow-wrap: normal;
	word-break: normal;
}

.kpi-value {
	font-size: 1.24rem;
	font-weight: 800;
	color: var(--brand-deep);
}

#billingSummaryGrid .kpi:last-child {
	border: 1px solid rgba(214, 94, 94, 0.35);
	background: linear-gradient(180deg, rgba(160, 47, 47, 0.16), rgba(133, 43, 43, 0.08));
}

#billingSummaryGrid .kpi:last-child .kpi-value {
	color: #ffd5d5;
}

.table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
}

.table th,
.table td {
	padding: 0.48rem 0.36rem;
	text-align: left;
	border-bottom: 1px solid #dde2e9;
	vertical-align: middle;
}

#metricsView .metrics-form-grid {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 0.95rem;
	align-items: stretch;
}

#metricsView .metrics-form-grid .field {
	padding: 0.46rem 0.52rem 0.56rem;
	border: 1px solid rgba(159, 176, 194, 0.3);
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
	min-height: 94px;
}

#metricsView .metrics-form-grid .field span {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
}

#metricsView .metrics-form-grid > .btn {
	min-height: 94px;
	width: 100%;
	padding: 0.8rem 1rem;
	border-radius: 14px;
	align-self: stretch;
	justify-self: stretch;
}

#metricsView #metricsTable {
	overflow-x: hidden;
}

#metricsView .table {
	min-width: 0;
	table-layout: fixed;
}

#metricsView .table th {
	text-transform: none;
	letter-spacing: 0.02em;
	font-size: 0.9rem;
	white-space: normal;
	line-height: 1.2;
}

#metricsView .table td,
#metricsView .table th {
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}

#metricsView .table td:last-child,
#metricsView .table th:last-child {
	text-align: center;
}

#metricsView .table td:first-child,
#metricsView .table th:first-child {
	white-space: nowrap;
}

#metricsView .table td:nth-child(2),
#metricsView .table th:nth-child(2) {
	min-width: 0;
}

#metricsView .btn-sm {
	min-width: 96px;
}

#operationForm .offer-entry-grid,
#operationForm .card-grid.compact {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 0.8rem 0.9rem;
}

#operationForm .field {
	padding: 0.44rem 0.5rem 0.52rem;
	border: 1px solid rgba(126, 149, 172, 0.24);
	border-radius: 14px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}

#operationForm .field span {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: none;
}

#operationForm .panel,
#operationForm .conditional {
	padding: 1rem;
	border-radius: 16px;
}

.operation-table td,
.operation-table th {
	font-size: 0.82rem;
	vertical-align: middle;
}

.btn-sm {
	padding: 0.34rem 0.64rem;
	font-size: 0.78rem;
}

#operationList {
	overflow: auto;
}

#dashboardGoalChart,
#dashboardMetricChart,
#dashboardStatusChart,
#dashboardClosingsChart {
	width: 100%;
	max-height: 300px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--line);
	background: var(--chart-bg);
}

.table th {
	color: #3f454f;
	font-weight: 700;
}

.dialog {
	border: 0;
	border-radius: 20px;
	width: min(1200px, 96vw);
	max-height: 92vh;
	padding: 0;
	box-shadow: 0 26px 48px rgba(20, 25, 31, 0.3);
}

.dialog::backdrop {
	background: rgba(24, 28, 35, 0.5);
	backdrop-filter: blur(3px);
}

.dialog-content {
	max-height: 92vh;
	overflow: auto;
	padding: 1rem;
	display: grid;
	gap: 1rem;
	background: linear-gradient(180deg, #171e28, #141922);
	color: #edf3ff;
}

.dialog-content .panel,
.dialog-content .conditional,
.dialog-content .comments-list,
.dialog-content .comment-item {
	background: linear-gradient(180deg, #1a212b 0%, #151b24 100%);
	border-color: #334051;
	color: #edf3ff;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
}

.dialog-content .conditional {
	border-style: solid;
}

.dialog-content h3,
.dialog-content h4,
.dialog-content h5,
.dialog-content .field,
.dialog-content .muted,
.dialog-content p,
.dialog-content label,
.dialog-content span {
	color: #dbe6f7;
}

.dialog-content .muted {
	color: #9faec2;
}

.dialog-content .field {
	color: #d4deef;
}

.dialog-content input,
.dialog-content select,
.dialog-content textarea {
	background: #0f1520;
	border-color: #3a475c;
	color: #f0f5ff;
}

.dialog-content .btn-secondary,
.dialog-content .btn-ghost {
	background: linear-gradient(135deg, #3b4551, #2d3540);
	color: #e8eef8;
	border-color: #425062;
}

.dialog-content .btn-primary {
	background: linear-gradient(135deg, #2f3742, #20262f);
	color: #f4f8ff;
}

.dialog-header,
.dialog-footer,
.row-between {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 0.6rem;
}

.conditional {
	padding: 0.82rem;
	border: 1px dashed #c7cdd6;
	border-radius: var(--radius-sm);
	background: linear-gradient(180deg, #fafbfc, #f0f2f5);
	display: grid;
	gap: 0.66rem;
}

/* Evita que reglas de componentes sobreescriban ocultamiento condicional */
.conditional.hidden {
	display: none;
}

.app-layout.hidden,
.auth-layout.hidden,
.view.hidden,
.panel.hidden,
.group-card.hidden,
.operation-card.hidden,
#reservationPanel.hidden,
#reservationFields.hidden,
#clientDataFields.hidden,
#operationCoreFields.hidden,
#dayDetailPanel.hidden {
	display: none;
}

.comments-list {
	display: grid;
	gap: 0.45rem;
	max-height: 200px;
	overflow: auto;
}

.comment-item {
	padding: 0.56rem;
	border-radius: 9px;
	background: #202938;
	border: 1px solid #39465a;
	font-size: 0.84rem;
}

#dayEventsList p {
	margin: 0;
	padding: 0.35rem 0.45rem;
	border-radius: 8px;
	background: rgba(145, 166, 196, 0.12);
	color: #e3ecfa;
}

.row-gap {
	display: grid;
	gap: 0.5rem;
}

.action-with-info {
	display: inline-flex;
	align-items: center;
	gap: 0.34rem;
}

.action-with-info .info-hint {
	width: 1.05rem;
	height: 1.05rem;
	font-size: 0.7rem;
}

.section-title-with-info {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	position: relative;
}

.info-hint {
	position: relative;
	width: 1.15rem;
	height: 1.15rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 1px solid color-mix(in srgb, var(--accent) 65%, #ffffff 35%);
	background: color-mix(in srgb, var(--surface-2) 80%, #ffffff 20%);
	color: var(--accent);
	font-size: 0.76rem;
	font-weight: 800;
	line-height: 1;
	cursor: help;
	padding: 0;
}

.info-hint::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	top: calc(100% + 0.4rem);
	min-width: 0;
	width: max-content;
	max-width: min(420px, 76vw);
	padding: 0.5rem 0.62rem;
	border-radius: 10px;
	background: #111722;
	border: 1px solid #2f3f53;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
	color: #e6efff;
	font-size: 0.78rem;
	font-weight: 500;
	line-height: 1.35;
	white-space: normal;
	opacity: 0;
	transform: translate(-50%, -4px);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
	z-index: 40;
}

.info-hint:hover::after,
.info-hint:focus-visible::after,
.info-hint:focus::after {
	opacity: 1;
	transform: translate(-50%, 0);
}

.action-with-info .info-hint::after {
	left: auto;
	right: 0;
	transform: translateY(-4px);
}

.action-with-info .info-hint:hover::after,
.action-with-info .info-hint:focus-visible::after,
.action-with-info .info-hint:focus::after {
	transform: translateY(0);
}

#manualTenantForm button[type="submit"] {
	width: 100%;
	white-space: normal;
	line-height: 1.2;
	min-height: 2.7rem;
	text-align: center;
}

.branding-logo-upload {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.5rem;
	align-items: center;
}

.branding-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.branding-file-label {
	white-space: nowrap;
	align-self: stretch;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
}

.subscription-widget {
	position: fixed;
	left: 0.7rem;
	bottom: 0.7rem;
	z-index: 45;
	display: grid;
	gap: 0.42rem;
	justify-items: start;
	max-width: min(270px, 72vw);
}

.subscription-widget > .btn {
	padding: 0.4rem 0.64rem;
	font-size: 0.76rem;
	border-radius: 9px;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.subscription-actions {
	display: grid;
	gap: 0.36rem;
	padding: 0.45rem;
	border-radius: 10px;
	border: 1px solid #324155;
	background: linear-gradient(180deg, rgba(22, 30, 41, 0.97), rgba(18, 25, 35, 0.95));
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.32);
}

.subscription-actions.hidden {
	display: none;
}

.subscription-actions .btn {
	width: 100%;
	padding: 0.42rem 0.6rem;
	font-size: 0.74rem;
	text-align: left;
	justify-content: flex-start;
}

.subscription-dialog {
	width: min(540px, 94vw);
	max-height: 92vh;
}

.subscription-dialog .dialog-content {
	padding: 1rem;
}

.tutorials-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 0.9rem;
}

.tutorial-group {
	display: grid;
	gap: 0.8rem;
}

.tutorial-list {
	display: grid;
	gap: 0.75rem;
}

.tutorial-item {
	display: grid;
	gap: 0.55rem;
	padding: 0.75rem;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: var(--surface);
}

.tutorial-item h5 {
	font-size: 0.95rem;
	font-weight: 700;
}

.tutorial-video {
	width: 100%;
	max-height: 260px;
	border-radius: 8px;
	background: #000;
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.tutorial-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-items: center;
}

.tutorial-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	clip-path: inset(50%);
	border: 0;
	padding: 0;
	margin: -1px;
}

/* Gráfico de medición */
#activityChart {
	width: 100%;
	max-height: 320px;
	border-radius: var(--radius-sm);
	border: 1px solid var(--line);
	background: var(--chart-bg);
}

/* Footer con derechos y accesos directos de contacto */
.site-footer {
	margin-top: 1rem;
	padding: 1rem 1.1rem 1.2rem;
	border-top: 1px solid #d9dee6;
	background: linear-gradient(180deg, #f4f6f9, #eceff3);
	display: grid;
	gap: 0.75rem;
}

.copyright {
	font-size: 0.78rem;
	color: #5f6773;
	opacity: 0.8;
}

.legal-link {
	color: inherit;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

.legal-link:hover {
	opacity: 1;
}

.contact-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.contact-title {
	font-size: 0.84rem;
	font-weight: 700;
	color: #5f6773;
}

.contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.38rem;
	padding: 0.22rem 0.2rem;
	border-radius: 6px;
	border: 1px solid transparent;
	background: transparent;
	color: #7a8492;
	text-decoration: none;
	font-size: 0.78rem;
	font-weight: 500;
	transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.contact-icon {
	width: 0.98rem;
	height: 0.98rem;
	fill: currentColor;
	flex: 0 0 auto;
}

.contact-link:hover {
	background: rgba(17, 21, 27, 0.04);
	color: #4e5866;
	border-color: rgba(78, 88, 102, 0.25);
}

/* Tema oscuro premium para la aplicación */
#appView {
	background: linear-gradient(180deg, #12161d 0%, #151a22 100%);
	color: #e8edf4;
}

#appView .topbar {
	background: rgba(18, 23, 30, 0.94);
	border-bottom: 1px solid #303847;
}

#appView .topbar-title,
#appView h3,
#appView h4,
#appView h5,
#appView .kpi-value,
#appView .table th,
#appView .table td,
#appView .day-number,
#appView .event-chip,
#appView input,
#appView select,
#appView textarea,
#appView .input-select,
#appView .btn-secondary,
#appView .btn-ghost {
	color: #f0f4fb;
}

#appView #goalsView h3,
#appView #goalsView h4,
#appView #metricsView h3,
#appView #metricsView h4 {
	font-family: "Montserrat", "Space Grotesk", sans-serif;
}

#appView .field {
	color: #c3ccda;
}

#appView .muted {
	color: #a9b3c2;
}

#appView .main {
	background: transparent;
}

#appView .panel,
#appView .kpi,
#appView .group-card,
#appView .operation-card,
#appView .day-cell,
#appView .dialog-content,
#appView .conditional,
#appView .comment-item {
	background: linear-gradient(180deg, #1b222c 0%, #171d26 100%);
	border-color: #313a48;
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.34);
}

#appView input,
#appView select,
#appView textarea,
#appView .input-select {
	background: #141a23;
	border-color: #384252;
	color: #edf2fa;
}

#appView .btn-primary {
	background: linear-gradient(135deg, #2f3742, #20262f);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

#appView .btn-secondary {
	background: linear-gradient(135deg, #3d4652, #2d3541);
	color: #e7ecf4;
}

#appView .btn-ghost {
	background: #2f3744;
	color: #e5ebf3;
}

#appView .table th,
#appView .table td {
	border-bottom-color: #313a48;
	color: #e3ebf6;
}

#appView .table th {
	color: #f0f4fb;
}

#appView .event-chip {
	background: #394252;
	color: #e6edf7;
}

#appView #dashboardGoalChart,
#appView #dashboardMetricChart,
#appView #activityChart {
	background: linear-gradient(180deg, #1a212a, #151b24);
	border-color: #303948;
}

#appView .site-footer {
	background: linear-gradient(180deg, #171c24, #141923);
	border-top-color: #303949;
}

#appView .copyright {
	color: #8f9bac;
	opacity: 0.75;
}

#appView .contact-title {
	color: #a6b3c2;
}

#appView .contact-link {
	background: transparent;
	border-color: transparent;
	color: #9aa6b8;
}

#appView .contact-link:hover {
	background: rgba(154, 166, 184, 0.08);
	border-color: rgba(154, 166, 184, 0.28);
	color: #d2dbe8;
}

#appView .tutorial-item {
	background: linear-gradient(180deg, #1b222c 0%, #171d26 100%);
	border-color: #313a48;
}

#appView .legal-link {
	color: #b8c4d5;
}

.app-toast {
	position: fixed;
	left: 50%;
	bottom: 1.1rem;
	transform: translateX(-50%);
	z-index: 3000;
	min-width: min(520px, calc(100vw - 1.2rem));
	max-width: calc(100vw - 1.2rem);
	padding: 0.72rem 0.86rem;
	border-radius: 10px;
	border: 1px solid rgba(95, 109, 126, 0.38);
	background: rgba(14, 18, 24, 0.94);
	color: #eef5ff;
	font-size: 0.86rem;
	line-height: 1.34;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

:root[data-theme="light"] .app-toast {
	background: rgba(255, 255, 255, 0.96);
	color: #273646;
	border-color: rgba(123, 143, 160, 0.42);
}

:root[data-theme="light"] #appView .sidebar {
	background: var(--sidebar-bg);
	border-right: 1px solid var(--sidebar-border);
	box-shadow: 0 8px 18px rgba(36, 62, 82, 0.12);
}

:root[data-theme="light"] #appView .nav-link {
	color: #1f3344;
	background: rgba(54, 84, 108, 0.07);
	border-color: var(--sidebar-border);
}

:root[data-theme="light"] #appView .nav-link:hover {
	background: rgba(54, 84, 108, 0.13);
}

:root[data-theme="light"] #appView .topbar-title,
:root[data-theme="light"] #appView h3,
:root[data-theme="light"] #appView h4,
:root[data-theme="light"] #appView h5,
:root[data-theme="light"] #appView .kpi-value,
:root[data-theme="light"] #appView .table th,
:root[data-theme="light"] #appView .table td,
:root[data-theme="light"] #appView .muted,
:root[data-theme="light"] #appView .day-number,
:root[data-theme="light"] #appView .event-chip,
:root[data-theme="light"] #appView input,
:root[data-theme="light"] #appView select,
:root[data-theme="light"] #appView textarea,
:root[data-theme="light"] #appView .input-select,
:root[data-theme="light"] #appView .btn-secondary,
:root[data-theme="light"] #appView .btn-ghost {
	color: #1d2f40;
}

:root[data-theme="light"] #appView input,
:root[data-theme="light"] #appView select,
:root[data-theme="light"] #appView textarea,
:root[data-theme="light"] #appView .input-select {
	background: #ffffff;
	border-color: #ccd9e2;
}

:root[data-theme="light"] #appView .event-chip {
	background: #deebf2;
}

@keyframes fade-up {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 980px) {
	.auth-layout {
		grid-template-columns: 1fr;
	}

	.auth-visual {
		position: relative;
		top: auto;
		height: auto;
		min-height: 280px;
	}

	.visual-illustration {
		position: relative;
		inset: auto;
		height: min(52vh, 360px);
	}

	.cityline-illustration {
		object-fit: contain;
		object-position: center bottom;
		opacity: 0.84;
	}

	.auth-visual-copy {
		position: static;
		inset: auto;
		display: grid;
		gap: 1rem;
		max-width: min(620px, 92%);
		margin: 0 auto;
		text-align: center;
		padding: 0.9rem 1rem 1.05rem;
		background: linear-gradient(180deg, rgba(13, 20, 29, 0.16), rgba(13, 20, 29, 0.42));
		border-radius: 12px;
	}

	.auth-visual-copy::before {
		content: none;
	}

	.auth-visual-copy-title,
	.auth-visual-copy-body {
		position: static;
		max-width: none;
		text-align: center;
	}

	.auth-visual-copy-title {
		font-size: clamp(1.2rem, 5.4vw, 1.7rem);
	}

	.auth-visual-copy-body {
		margin: 0;
		font-size: clamp(0.86rem, 3.6vw, 1rem);
	}

	.workspace {
		grid-template-columns: 1fr;
	}

	.sidebar {
		position: fixed;
		z-index: 30;
		inset: 66px auto 0 0;
		width: 254px;
		transform: translateX(-100%);
		transition: transform 0.2s ease;
		box-shadow: 0 10px 26px rgba(14, 18, 25, 0.35);
	}

	.sidebar.open {
		transform: translateX(0);
	}

	.split-grid {
		grid-template-columns: 1fr;
	}

	.dashboard-chart-grid {
		grid-template-columns: 1fr;
	}

	.branding-logo-upload {
		grid-template-columns: 1fr;
	}

	.info-hint::after {
		max-width: min(360px, 92vw);
	}
}

@media (max-width: 760px) {
	.main {
		padding: 0.8rem;
	}

	.topbar {
		gap: 0.6rem;
		grid-template-columns: auto 1fr;
		grid-template-areas:
			"menu title"
			"actions actions";
	}

	#menuToggle {
		grid-area: menu;
	}

	.topbar > div:first-of-type {
		grid-area: title;
	}

	.topbar-actions {
		grid-area: actions;
		justify-content: flex-end;
	}

	.calendar-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.contact-links {
		flex-direction: column;
	}

	.subscription-widget {
		left: 0.55rem;
		bottom: 0.55rem;
		max-width: min(260px, 86vw);
	}

	.info-hint::after {
		max-width: min(320px, 90vw);
		font-size: 0.75rem;
	}
}

/* Refuerzo visual estilo dashboard premium */
#appView .topbar {
	border-radius: 0 0 18px 18px;
	margin: 0 0.4rem;
	box-shadow: 0 10px 26px rgba(4, 9, 15, 0.48);
}

#appView .main {
	padding-top: 1.25rem;
}

#appView .panel,
#appView .kpi,
#appView .operation-card,
#appView .day-cell {
	border-radius: 18px;
	background:
		linear-gradient(170deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
		linear-gradient(180deg, #171e28, #121821);
	border: 1px solid rgba(139, 170, 191, 0.24);
	backdrop-filter: blur(4px);
}

#appView .kpi-value {
	font-size: 1.34rem;
	letter-spacing: 0.01em;
}

#appView .nav-link {
	border-color: var(--sidebar-border);
	background: linear-gradient(140deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
	color: var(--sidebar-ink);
}

#appView .nav-link.active {
	border-color: color-mix(in srgb, var(--sidebar-ink) 36%, transparent 64%);
	background: var(--nav-active-bg);
	box-shadow: inset 0 0 0 1px rgba(176, 236, 216, 0.12);
}

#appView .table th {
	font-family: "Montserrat", "Space Grotesk", sans-serif;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

#appView .btn-primary {
	background: linear-gradient(130deg, #1f5161, #2b7f78);
	box-shadow: 0 10px 18px rgba(15, 56, 66, 0.42);
}

#appView .btn-secondary {
	background: linear-gradient(130deg, #2b3846, #1f2c39);
	border: 1px solid rgba(121, 146, 170, 0.36);
}

#appView .btn-ghost {
	border: 1px solid rgba(121, 146, 170, 0.28);
	background: rgba(37, 49, 63, 0.62);
}

#usersView #superAdminPanel {
	background: linear-gradient(180deg, rgba(29, 72, 77, 0.34), rgba(21, 36, 46, 0.2));
	border: 1px solid rgba(114, 188, 166, 0.32);
	padding: 0.8rem;
	border-radius: 14px;
}

#usersView #superAdminBadge {
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	border: 1px solid rgba(114, 188, 166, 0.5);
	background: rgba(114, 188, 166, 0.14);
	font-size: 0.76rem;
	font-weight: 700;
}

.force-pass-dialog {
	width: min(560px, 94vw);
}

.force-pass-dialog .dialog-content {
	background: linear-gradient(180deg, #18212d, #121923);
}

:root[data-theme="light"] #appView {
	background: linear-gradient(180deg, #e9edf1 0%, #e2e7ec 100%);
	color: #2f3a47;
}

:root[data-theme="light"] #appView .topbar {
	background: rgba(242, 246, 250, 0.94);
	border-bottom: 1px solid #c7d1da;
	box-shadow: 0 8px 16px rgba(49, 63, 79, 0.1);
}

:root[data-theme="light"] #appView .panel,
:root[data-theme="light"] #appView .kpi,
:root[data-theme="light"] #appView .operation-card,
:root[data-theme="light"] #appView .day-cell {
	background: linear-gradient(180deg, #edf2f6, #e4eaf0);
	border-color: #c4ced8;
	box-shadow: 0 7px 16px rgba(45, 59, 75, 0.09);
}

:root[data-theme="light"] #appView .table td,
:root[data-theme="light"] #appView .table th,
:root[data-theme="light"] #appView .kpi-value,
:root[data-theme="light"] #appView h3,
:root[data-theme="light"] #appView h4,
:root[data-theme="light"] #appView .muted {
	color: #3a4757;
}

:root[data-theme="light"] #appView .field {
	color: #465667;
}

:root[data-theme="light"] #metricsView .metrics-form-grid .field {
	border-color: rgba(72, 98, 122, 0.28);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(241, 247, 251, 0.84));
}

:root[data-theme="light"] #metricsView .metrics-form-grid .field span {
	color: #41566b;
}

:root[data-theme="light"] #metricsView .table th,
:root[data-theme="light"] #metricsView .table td {
	color: #2e3f52;
	border-bottom-color: #c4d2df;
}

:root[data-theme="light"] #operationForm .field {
	border-color: rgba(88, 111, 132, 0.28);
	background: linear-gradient(180deg, #ffffff, #f3f8fb);
}

:root[data-theme="light"] #operationForm .field span {
	color: #3f5468;
}

:root[data-theme="light"] #appView .nav-link {
	background: linear-gradient(140deg, rgba(54, 84, 108, 0.08), rgba(54, 84, 108, 0.03));
	color: #1f3344;
	border-color: rgba(58, 86, 111, 0.24);
}

:root[data-theme="light"] #appView .nav-link:hover {
	background: rgba(58, 86, 111, 0.15);
}

:root[data-theme="light"] #appView .btn-secondary,
:root[data-theme="light"] #appView .btn-ghost,
:root[data-theme="light"] #appView .input-select,
:root[data-theme="light"] #appView input,
:root[data-theme="light"] #appView select,
:root[data-theme="light"] #appView textarea {
	color: #3b4a5a;
}

:root[data-theme="light"] #appView .btn-ghost {
	background: #dde4eb;
	border-color: #bcc8d3;
	color: #3a4a5b;
}

:root[data-theme="light"] #appView .btn-secondary {
	background: linear-gradient(130deg, #e3e9f0, #d8e0e8);
	border-color: #bcc8d3;
	color: #3a4a5b;
}

:root[data-theme="light"] #appView .btn-primary {
	color: #f5f9ff;
}

:root[data-theme="light"] #appView .panel,
:root[data-theme="light"] #appView .kpi,
:root[data-theme="light"] #appView .group-card,
:root[data-theme="light"] #appView .operation-card,
:root[data-theme="light"] #appView .day-cell,
:root[data-theme="light"] #appView .dialog-content,
:root[data-theme="light"] #appView .conditional,
:root[data-theme="light"] #appView .comment-item,
:root[data-theme="light"] #appView .comments-list,
:root[data-theme="light"] #usersView #superAdminPanel {
	background: linear-gradient(180deg, #edf2f6, #e3e9ef);
	border-color: #c3cdda;
	box-shadow: 0 7px 16px rgba(45, 59, 75, 0.09);
	color: #3a4757;
}

:root[data-theme="light"] #appView .dialog-content input,
:root[data-theme="light"] #appView .dialog-content select,
:root[data-theme="light"] #appView .dialog-content textarea,
:root[data-theme="light"] #appView .dialog-content .input-select,
:root[data-theme="light"] #appView .dialog-content .btn-ghost,
:root[data-theme="light"] #appView .dialog-content .btn-secondary {
	background: #eef2f6;
	border-color: #c1ccd7;
	color: #3b4a5a;
}

:root[data-theme="light"] #metricsView .table th {
	text-transform: none;
	letter-spacing: 0.01em;
	font-size: 0.88rem;
}

:root[data-theme="light"] .dialog-content,
:root[data-theme="light"] .dialog-content .panel,
:root[data-theme="light"] .dialog-content .conditional,
:root[data-theme="light"] .dialog-content .comments-list,
:root[data-theme="light"] .dialog-content .comment-item,
:root[data-theme="light"] #operationForm .field,
:root[data-theme="light"] #operationForm .panel,
:root[data-theme="light"] #operationForm .conditional,
:root[data-theme="light"] #usersView #superAdminPanel {
	background: linear-gradient(180deg, #ffffff, #f4f8fb) !important;
	border-color: #cddae4 !important;
	color: #13212f !important;
	box-shadow: 0 8px 18px rgba(42, 63, 76, 0.1) !important;
}

:root[data-theme="light"] .dialog-content h3,
:root[data-theme="light"] .dialog-content h4,
:root[data-theme="light"] .dialog-content h5,
:root[data-theme="light"] .dialog-content p,
:root[data-theme="light"] .dialog-content label,
:root[data-theme="light"] .dialog-content span,
:root[data-theme="light"] .dialog-content .field,
:root[data-theme="light"] .dialog-content .muted,
:root[data-theme="light"] #operationForm .field,
:root[data-theme="light"] #operationForm .field span,
:root[data-theme="light"] #appView .table th,
:root[data-theme="light"] #appView .table td {
	color: #142332 !important;
}

:root[data-theme="light"] .dialog-content input,
:root[data-theme="light"] .dialog-content select,
:root[data-theme="light"] .dialog-content textarea,
:root[data-theme="light"] .dialog-content .input-select,
:root[data-theme="light"] .dialog-content .btn-ghost,
:root[data-theme="light"] .dialog-content .btn-secondary,
:root[data-theme="light"] #operationForm input,
:root[data-theme="light"] #operationForm select,
:root[data-theme="light"] #operationForm textarea {
	background: #ffffff !important;
	border-color: #c9d8e3 !important;
	color: #0f1d2b !important;
}

/* ===== New Payment/Subscription UI ===== */

.purchase-form {
	display: grid;
	gap: 1.2rem;
}

.plan-toggle {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.5rem;
}

.toggle-btn {
	flex: 1;
	padding: 0.75rem 1rem;
	border: 1px solid rgba(145, 160, 176, 0.3);
	background: rgba(55, 64, 76, 0.4);
	color: #c3cfdd;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 500;
	transition: all 0.3s ease;
	font-size: 0.95rem;
}

.toggle-btn:hover {
	background: rgba(75, 160, 133, 0.2);
	border-color: var(--accent);
}

.toggle-btn.active {
	background: var(--accent);
	color: white;
	border-color: var(--accent);
}

.badge {
	font-size: 0.75rem;
	background: rgba(255, 255, 255, 0.2);
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	margin-left: 0.3rem;
}

.form-section {
	display: grid;
	gap: 0.8rem;
}

.form-section .field {
	margin: 0;
}

.license-section {
	display: grid;
	gap: 0.6rem;
}

.license-section .field {
	margin: 0;
}

.license-counter {
	display: grid;
	grid-template-columns: 40px 80px 40px;
	gap: 0.3rem;
	align-items: center;
}

.counter-btn {
	padding: 0.6rem;
	background: rgba(75, 160, 133, 0.15);
	border: 1px solid var(--accent);
	color: var(--accent);
	border-radius: 6px;
	cursor: pointer;
	font-size: 1.2rem;
	font-weight: bold;
	transition: all 0.2s ease;
}

.counter-btn:hover {
	background: rgba(75, 160, 133, 0.3);
}

.license-counter input {
	text-align: center;
	background: rgba(55, 64, 76, 0.5) !important;
	border: 1px solid rgba(145, 160, 176, 0.2) !important;
	color: #c3cfdd !important;
	padding: 0.6rem !important;
	font-weight: 600;
	font-size: 0.95rem;
}

.pricing-summary {
	background: rgba(55, 64, 76, 0.5);
	border: 1px solid rgba(75, 160, 133, 0.2);
	border-radius: 8px;
	padding: 1rem;
	display: grid;
	gap: 0.8rem;
}

.pricing-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.95rem;
	color: #c3cfdd;
}

.pricing-row.total {
	border-top: 1px solid rgba(145, 160, 176, 0.2);
	padding-top: 0.8rem;
	font-weight: 600;
	font-size: 1rem;
	color: var(--accent);
}

.annual-hidden {
	display: none !important;
}

.btn-large {
	width: 100%;
	padding: 0.9rem 1.2rem !important;
	font-size: 1rem;
	font-weight: 600;
}

.purchase-flow-note a {
	color: var(--accent);
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.purchase-flow-note a:hover {
	opacity: 0.8;
	text-decoration: underline;
}

:root[data-theme="light"] .toggle-btn {
	background: #f0f4f8;
	border-color: #d0d9e2;
	color: #566477;
}

:root[data-theme="light"] .toggle-btn:hover {
	background: rgba(47, 139, 111, 0.1);
	border-color: #2f8b6f;
}

:root[data-theme="light"] .toggle-btn.active {
	background: #2f8b6f;
	color: white;
	border-color: #2f8b6f;
}

:root[data-theme="light"] .badge {
	background: rgba(47, 139, 111, 0.15);
	color: #2f8b6f;
}

:root[data-theme="light"] .counter-btn {
	background: rgba(47, 139, 111, 0.1);
	border-color: #2f8b6f;
	color: #2f8b6f;
}

:root[data-theme="light"] .counter-btn:hover {
	background: rgba(47, 139, 111, 0.2);
}

:root[data-theme="light"] .license-counter input {
	background: #ffffff !important;
	border-color: #d0d9e2 !important;
	color: #142332 !important;
}

:root[data-theme="light"] .pricing-summary {
	background: #f4f8fa;
	border-color: rgba(47, 139, 111, 0.15);
}

:root[data-theme="light"] .pricing-row {
	color: #566477;
}

:root[data-theme="light"] .pricing-row.total {
	border-color: #d0d9e2;
	color: #2f8b6f;
}

/* Light theme overrides for purchase form */
:root[data-theme="light"] .purchase-box {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(242, 246, 245, 0.6)) !important;
	border-color: rgba(205, 218, 228, 0.5) !important;
	color: #2c3f51 !important;
}

:root[data-theme="light"] .toggle-btn {
	border-color: rgba(205, 218, 228, 0.5) !important;
	background: rgba(242, 246, 245, 0.5) !important;
	color: #3d5166 !important;
}

:root[data-theme="light"] .toggle-btn:hover {
	border-color: rgba(47, 139, 111, 0.4) !important;
	background: rgba(47, 139, 111, 0.1) !important;
}

:root[data-theme="light"] .toggle-btn.active {
	background: #2f8b6f !important;
	border-color: #2f8b6f !important;
	color: #ffffff !important;
}

:root[data-theme="light"] .badge {
	background: rgba(47, 139, 111, 0.15) !important;
	color: #2f8b6f !important;
}

:root[data-theme="light"] .license-counter input {
	background: rgba(242, 246, 245, 0.7) !important;
	border-color: rgba(205, 218, 228, 0.6) !important;
	color: #2c3f51 !important;
}

:root[data-theme="light"] .counter-btn {
	background: rgba(47, 139, 111, 0.12) !important;
	border-color: #2f8b6f !important;
	color: #2f8b6f !important;
}

:root[data-theme="light"] .counter-btn:hover {
	background: rgba(47, 139, 111, 0.25) !important;
}

:root[data-theme="light"] .pricing-summary {
	background: rgba(242, 246, 245, 0.6) !important;
	border-color: rgba(47, 139, 111, 0.2) !important;
}

:root[data-theme="light"] .purchase-flow-note {
	color: #566477 !important;
}

/* Light theme FAQ styles */
:root[data-theme="light"] .faq-box {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(242, 246, 245, 0.6)) !important;
	border-color: rgba(205, 218, 228, 0.5) !important;
	color: #2c3f51 !important;
}

:root[data-theme="light"] .faq-box h3 {
	color: #2f8b6f !important;
}

:root[data-theme="light"] .faq-item {
	border-color: rgba(205, 218, 228, 0.3) !important;
}

:root[data-theme="light"] .faq-question {
	color: #3d5166 !important;
}

:root[data-theme="light"] .faq-question:hover {
	color: #2f8b6f !important;
}

:root[data-theme="light"] .faq-icon {
	color: #2f8b6f !important;
}

:root[data-theme="light"] .faq-answer p {
	color: #566477 !important;
}

:root[data-theme="light"] .faq-answer strong {
	color: #3d5166 !important;
}

