:root {
	--text: #ffffff;
	--muted: #a0a0a0;
	--accent-pro: #ff8a3d;
	--accent-max: #FF6127;
	--border: #262626;
	--ui-surface-0: #101010;
	--ui-surface-1: #151515;
	--ui-surface-2: #1b1b1b;
	--ui-border: #2f2f2f;
	--ui-border-soft: #262626;
	--ui-hover: #1f1f1f;
	--ui-accent-soft: rgba(255, 97, 39, 0.14);
	--ui-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
	--radius-md: 12px;
	--radius-lg: 16px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Barlow', sans-serif;
	background:
		radial-gradient(circle at 90% 0%, rgba(255, 97, 39, 0.28), transparent 36%),
		radial-gradient(circle at 8% -20%, rgba(255, 255, 255, 0.08), transparent 34%),
		linear-gradient(180deg, #090909 0%, #0b0b0b 100%);
	color: var(--text);
}

.login-view {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 20px;
}

.login-card {
	width: min(460px, 100%);
	padding: 24px;
	display: grid;
	gap: 12px;
	background:
		radial-gradient(circle at 90% -20%, rgba(255, 97, 39, 0.24), transparent 46%),
		linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
}

.login-card h1 {
	font-size: 34px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: -0.4px;
}

.login-card p {
	font-size: 14px;
	color: #a7a7a7;
	margin-bottom: 4px;
}

.login-form {
	display: grid;
	gap: 2px;
}

.login-error {
	min-height: 18px;
	font-size: 13px;
	color: #ff9d7a;
	margin-bottom: 4px;
}

body::before {
	content: '';
	position: fixed;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 40px 40px;
	mask-image: radial-gradient(circle at 80% 0%, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0) 62%);
	pointer-events: none;
	z-index: -1;
}

/* Reusable Components */
.panel-shell {
	background: linear-gradient(180deg, #171717 0%, #111111 100%);
	border: 1px solid var(--ui-border);
	border-radius: var(--radius-lg);
	box-shadow: var(--ui-shadow);
}

.eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	color: #aeaeae;
}

.btn.btn-ghost {
	background: #171717;
	color: #f5f5f5;
	border: 1px solid #2d2d2d;
}

.btn.btn-ghost:hover {
	background: #1f1f1f;
}

.app {
	display: grid;
	grid-template-columns: 290px 1fr;
	min-height: 100vh;
}

.sidebar {
	background: linear-gradient(180deg, #0b0b0b 0%, #0a0a0a 100%);
	border-right: 1px solid var(--border);
	padding: 28px 16px;
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100vh;
	align-self: start;
	overflow: hidden;
}

.brand {
	display: flex;
	align-items: center;
	padding: 6px 10px;
	margin-bottom: 20px;
}

.brand img {
	width: 220px;
	max-width: 100%;
	height: auto;
	display: block;
}

.sidebar-nav {
	margin-bottom: auto;
	display: flex;
	flex: 1;
	min-height: 0;
}

.sidebar-account {
	margin: 12px 10px 0;
	padding-top: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
}

.sidebar-account-avatar {
	width: 32px;
	height: 32px;
	border-radius: 999px;
	background: #ff6127;
	color: #191919;
	font-weight: 800;
	font-size: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.sidebar-account-email {
	flex: 1;
	font-size: 16px;
	font-weight: 500;
	color: #f0f0f0;
	line-height: 1.1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sidebar-account-logout {
	width: 32px;
	height: 32px;
	border-radius: 9px;
	border: none;
	background: transparent;
	color: #dedede;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.18s ease;
	flex-shrink: 0;
}

.sidebar-account-logout svg {
	width: 18px;
	height: 18px;
}

.sidebar-account-logout:hover {
	color: #ffffff;
	background: #1a1a1a;
}

.config-dock {
	position: fixed;
	left: 16px;
	bottom: 20px;
	display: flex;
	justify-content: flex-start;
	z-index: 40;
}

.sidebar.config-open > .brand,
.sidebar.config-open > .sidebar-nav {
	opacity: 0;
	pointer-events: none;
}

.sidebar.config-open .config-dock {
	left: 20px;
	bottom: 20px;
}

.config-toggle {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: #151515;
	color: var(--text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.config-toggle svg {
	width: 20px;
	height: 20px;
}

.config-submenu {
	position: fixed;
	left: 0;
	top: 0;
	height: 100vh;
	width: 260px;
	list-style: none;
	display: none;
	background: #0a0a0a;
	border-right: 1px solid var(--border);
	padding: 110px 20px 28px;
	align-content: start;
	z-index: 35;
}

.config-dock.open .config-submenu {
	display: grid;
	gap: 10px;
}

.config-submenu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 0 8px;
	border-bottom: 1px solid var(--border);
	margin-bottom: 4px;
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
}

.config-close {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	border: 1px solid var(--border);
	background: #151515;
	color: var(--text);
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
}

.config-submenu .nav-item {
	white-space: nowrap;
	padding: 10px 12px;
}

.nav-list {
	list-style: none;
	display: grid;
	gap: 8px;
}

.nav-list-main {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 0;
	gap: 10px;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: none;
}

.nav-list-main::-webkit-scrollbar {
	display: none;
}

.nav-group {
	position: relative;
}

.nav-item {
	padding: 11px 12px;
	border-radius: 12px;
	color: #b0b0b0;
	background: transparent;
	border: none;
	font-weight: 600;
	transition: all 0.18s ease;
}

.nav-button {
	width: 100%;
	text-align: left;
	cursor: pointer;
	font-family: inherit;
	font-size: 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	appearance: none;
}

.nav-icon {
	width: 20px;
	height: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #8c8c8c;
	flex-shrink: 0;
}

.nav-icon svg {
	width: 20px;
	height: 20px;
}

.nav-label {
	flex: 1;
}

.nav-icon-currency {
	color: #8c8c8c;
}

.nav-icon-currency svg {
	width: 20px;
	height: 20px;
}

.nav-chevron {
	width: 16px;
	height: 16px;
	color: #727272;
	transition: transform 0.2s ease;
}

.nav-chevron svg {
	width: 16px;
	height: 16px;
}

.nav-group.open .nav-chevron {
	transform: rotate(180deg);
}

.nav-submenu {
	list-style: none;
	display: none;
	gap: 8px;
	padding-top: 8px;
	padding-left: 6px;
}

.nav-group.open .nav-submenu {
	display: grid;
}

.nav-divider {
	height: 1px;
	margin: auto 10px 4px;
	background: #2a2a2a;
	border-radius: 999px;
}

.nav-subitem {
	padding-left: 24px;
	font-size: 15px;
}

.nav-subitem .nav-icon {
	width: 18px;
	height: 18px;
}

.nav-subitem .nav-icon svg {
	width: 18px;
	height: 18px;
}

.nav-item.active {
	color: #ffffff;
	background: #262626;
}

.nav-item.active .nav-icon {
	color: #ff7f3b;
}

.nav-item.active .nav-icon-currency {
	color: #ff7f3b;
}

.nav-group.active > .nav-toggle {
	color: #ffffff;
	background: #262626;
}

.nav-group.active > .nav-toggle .nav-icon {
	color: #ff7f3b;
}

.nav-item:hover {
	color: #ffffff;
	background: #1a1a1a;
}

.main {
	padding: 28px 32px 40px;
	display: grid;
	grid-template-rows: auto 1fr;
	gap: 24px;
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.page-title {
	font-size: 28px;
	font-weight: 700;
}

.content {
	display: grid;
	grid-template-columns: 360px 1fr;
	gap: 24px;
}

/* Home View */
.home-content {
	grid-template-columns: 1fr;
}

.home-shell {
	display: grid;
	gap: 16px;
}

.home-hero {
	padding: 22px;
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 16px;
	align-items: end;
	background:
		radial-gradient(circle at 85% -15%, rgba(255, 97, 39, 0.28), transparent 48%),
		radial-gradient(circle at 0% 130%, rgba(255, 255, 255, 0.12), transparent 43%),
		linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
}

.home-hero h2 {
	font-size: 34px;
	line-height: 1;
	font-weight: 800;
	margin: 8px 0 10px;
	letter-spacing: -0.4px;
}

.home-hero p {
	font-size: 14px;
	color: #aaaaaa;
	max-width: 620px;
}

.home-shortcuts {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.home-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.kpi-card {
	padding: 16px;
	border-radius: var(--radius-md);
	border: 1px solid var(--ui-border);
	background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
	display: grid;
	gap: 8px;
	min-height: 130px;
}

.kpi-card-accent {
	border-color: rgba(255, 97, 39, 0.4);
	background: linear-gradient(180deg, rgba(255, 97, 39, 0.24) 0%, rgba(18, 20, 27, 1) 95%);
}

.kpi-card-info {
	border-color: rgba(255, 255, 255, 0.18);
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(18, 21, 28, 1) 95%);
}

.kpi-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #b8b8b8;
}

.kpi-value {
	font-size: 38px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.6px;
}

.kpi-sub {
	font-size: 12px;
	color: #9a9a9a;
}

.home-grid {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 12px;
	min-width: 0;
}

.home-panel {
	padding: 16px;
	min-width: 0;
	display: grid;
	gap: 12px;
}

.home-panel h3 {
	font-size: 16px;
	font-weight: 700;
	color: #f2f2f2;
}

.home-table-wrap {
	overflow: auto;
	border: 1px solid var(--ui-border-soft);
	border-radius: 10px;
	background: var(--ui-surface-0);
}

.home-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 620px;
}

.home-table th,
.home-table td {
	padding: 9px 10px;
	font-size: 12px;
	border-bottom: 1px solid var(--ui-border-soft);
	text-align: left;
	white-space: nowrap;
}

.home-table th {
	background: var(--ui-surface-1);
	font-weight: 600;
	color: #b0b0b0;
}

.home-table tbody tr:last-child td {
	border-bottom: none;
}

.home-reminder-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255, 97, 39, 0.12);
	border: 1px solid rgba(255, 97, 39, 0.35);
	color: #f8ded4;
	font-size: 12px;
	font-weight: 600;
}

.home-reminders {
	list-style: none;
	display: grid;
	gap: 8px;
}

.home-reminders li {
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--ui-surface-1);
	border: 1px solid var(--ui-border-soft);
	font-size: 13px;
	color: #c2c2c2;
	line-height: 1.4;
}

.panel {
	background: linear-gradient(180deg, #171717 0%, #111111 100%);
	border: 1px solid var(--ui-border);
	border-radius: 16px;
	padding: 20px;
}

.section-panel {
	background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
	border-color: var(--ui-border);
}

.panel h3 {
	font-size: 16px;
	font-weight: 700;
	color: #f1f1f1;
	margin-bottom: 16px;
}

.field {
	display: grid;
	gap: 8px;
	margin-bottom: 16px;
}

.field label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #adadad;
}

select {
	background: var(--ui-surface-1);
	color: #f4f4f4;
	border: 1px solid var(--ui-border);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 15px;
	outline: none;
	transition: all 0.18s ease;
}

input[type='text'],
input[type='email'],
input[type='password'] {
	background: var(--ui-surface-1);
	color: #f4f4f4;
	border: 1px solid var(--ui-border);
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 14px;
	outline: none;
	transition: all 0.18s ease;
}

input[type='text']::placeholder,
input[type='email']::placeholder,
input[type='password']::placeholder {
	color: #808080;
}

select:focus,
input[type='text']:focus,
input[type='email']:focus,
input[type='password']:focus {
	border-color: #4a4a4a;
	box-shadow: 0 0 0 2px var(--ui-accent-soft);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: linear-gradient(90deg, #ff6f3a 0%, #ff6127 100%);
	color: #151515;
	border: none;
	border-radius: 10px;
	padding: 10px 14px;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	transition: transform 0.16s ease, filter 0.16s ease;
}

.btn.secondary {
	background: var(--ui-surface-1);
	border: 1px solid var(--ui-border);
	color: #f4f4f4;
}

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

.btn-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.send-block {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--ui-border-soft);
}

.send-block h3 {
	font-size: 15px;
	font-weight: 700;
	color: #f2f2f2;
	margin-bottom: 12px;
}

.status {
	margin-top: 10px;
	font-size: 13px;
	color: var(--muted);
}

.text-preview {
	background: var(--ui-surface-0);
	border: 1px solid var(--ui-border-soft);
	border-radius: 12px;
	padding: 14px;
	font-size: 14px;
	line-height: 1.5;
	white-space: pre-line;
}

.preview-wrap {
	display: grid;
	gap: 16px;
	min-width: 0;
}

.render-area {
	background:
		radial-gradient(circle at 85% -10%, rgba(255, 97, 39, 0.12), transparent 42%),
		radial-gradient(circle at 4% 115%, rgba(255, 255, 255, 0.08), transparent 36%),
		linear-gradient(180deg, #0f0f0f 0%, #0b0b0b 100%);
	border-radius: 18px;
	padding: 24px;
	border: 1px solid #303030;
	width: 100%;
	min-height: 620px;
	display: grid;
	place-items: center;
	overflow: auto;
}

#renderTarget {
	width: fit-content;
	max-width: 100%;
	margin: 0 auto;
	display: grid;
	justify-items: center;
	transform: scale(0.86);
	transform-origin: top center;
}

.wp-preview-block {
	background: linear-gradient(180deg, #171717 0%, #111111 100%);
	border: 1px solid var(--ui-border);
	border-radius: 14px;
	padding: 16px;
}

.wp-preview-block h3 {
	font-size: 15px;
	font-weight: 700;
	color: #eeeeee;
	margin-bottom: 12px;
}

.dispatch-history-block {
	background: linear-gradient(180deg, #171717 0%, #111111 100%);
	border: 1px solid var(--ui-border);
	border-radius: 14px;
	padding: 16px;
}

.dispatch-history-block h3 {
	font-size: 15px;
	font-weight: 700;
	color: #eeeeee;
	margin-bottom: 12px;
}

.dispatch-history-wrap {
	overflow-x: auto;
	border: 1px solid var(--ui-border-soft);
	border-radius: 10px;
	background: var(--ui-surface-0);
}

.dispatch-history-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 640px;
}

.dispatch-history-table th,
.dispatch-history-table td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--border);
	font-size: 12px;
	white-space: nowrap;
	text-align: left;
}

.dispatch-history-table th {
	background: var(--ui-surface-1);
	color: #b0b0b0;
	font-weight: 600;
}

.dispatch-history-table tbody tr:last-child td {
	border-bottom: none;
}

.config-content {
	grid-template-columns: 1fr;
}

.whatsapp-content {
	grid-template-columns: 1fr;
}

.config-panel {
	padding-bottom: 16px;
}

.config-product-field {
	max-width: 320px;
}

.config-status {
	margin-bottom: 12px;
}

.config-settings-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 14px;
}

.config-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--ui-border-soft);
	border-radius: 12px;
	background: var(--ui-surface-0);
	margin-bottom: 14px;
}

.config-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 620px;
	table-layout: auto;
}

.config-table th,
.config-table td {
	padding: 4px 6px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	font-size: 13px;
	vertical-align: middle;
	white-space: nowrap;
}

.config-table th {
	color: #b0b0b0;
	font-weight: 600;
	background: var(--ui-surface-1);
}

.config-table .th-center {
	text-align: center;
}

.config-group-row td {
	background: var(--ui-surface-1);
	color: var(--text);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	padding: 6px 8px;
}

.config-concept {
	font-weight: 600;
	color: #d4d4d4;
	min-width: 240px;
}

.config-table tbody tr:last-child td {
	border-bottom: none;
}

.whatsapp-config-panel {
	display: grid;
	gap: 16px;
}

.whatsapp-config-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.whatsapp-config-head h3 {
	margin-bottom: 0;
}

.whatsapp-config-tag {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 97, 39, 0.15);
	border: 1px solid rgba(255, 97, 39, 0.38);
	color: #ffd6c6;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
}

.whatsapp-config-subtitle {
	margin-top: -6px;
	color: #b0b0b0;
	font-size: 13px;
	line-height: 1.45;
}

.whatsapp-config-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.whatsapp-config-card {
	padding: 14px;
	border-radius: 14px;
	border: 1px solid var(--ui-border-soft);
	background: var(--ui-surface-0);
}

.whatsapp-config-card h4 {
	font-size: 14px;
	font-weight: 700;
	color: #f3f3f3;
	margin-bottom: 12px;
}

.whatsapp-qr-preview {
	border-radius: 12px;
	border: 1px dashed rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.02);
	padding: 16px;
	display: grid;
	gap: 8px;
	min-height: 178px;
	place-content: center;
	text-align: center;
}

.whatsapp-qr-placeholder {
	width: 130px;
	height: 130px;
	border-radius: 10px;
	border: 1px solid var(--ui-border-soft);
	background:
		linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
		linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
		linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%),
		linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
	background-size: 18px 18px;
	background-position: 0 0, 0 9px, 9px -9px, -9px 0;
	display: grid;
	place-items: center;
	font-size: 12px;
	font-weight: 700;
	color: #d0d0d0;
	margin: 0 auto;
}

.whatsapp-qr-hint {
	font-size: 12px;
	line-height: 1.4;
	color: #969696;
	max-width: 280px;
	margin: 0 auto;
}

.whatsapp-qr-meta {
	margin: 12px 0 14px;
	display: grid;
	gap: 6px;
}

.whatsapp-qr-meta div {
	font-size: 12px;
	color: #9e9e9e;
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.whatsapp-qr-meta strong {
	color: #f0f0f0;
	font-weight: 600;
}

.whatsapp-sessions-wrap {
	border: 1px solid var(--ui-border-soft);
	border-radius: 14px;
	background: var(--ui-surface-0);
	padding: 14px;
	display: grid;
	gap: 12px;
}

.whatsapp-sessions-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.whatsapp-sessions-head h4 {
	font-size: 14px;
	font-weight: 700;
	color: #f3f3f3;
}

.whatsapp-sessions-table-wrap {
	overflow: auto;
	border: 1px solid var(--ui-border-soft);
	border-radius: 10px;
	background: #0f0f0f;
}

.whatsapp-sessions-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 880px;
}

.whatsapp-sessions-table th,
.whatsapp-sessions-table td {
	padding: 9px 10px;
	border-bottom: 1px solid var(--ui-border-soft);
	font-size: 12px;
	white-space: nowrap;
	text-align: left;
}

.whatsapp-sessions-table th {
	background: var(--ui-surface-1);
	color: #b0b0b0;
	font-weight: 600;
}

.whatsapp-sessions-table tbody tr:last-child td {
	border-bottom: none;
}

.wa-seed-mask {
	display: inline-block;
	letter-spacing: 1px;
	color: #d2d2d2;
}

.wa-session-status {
	display: inline-flex;
	align-items: center;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.2px;
}

.wa-session-status.pending {
	color: #ffd8ad;
	background: rgba(255, 149, 0, 0.16);
	border: 1px solid rgba(255, 149, 0, 0.34);
}

.wa-session-status.connected {
	color: #bdf3d9;
	background: rgba(7, 166, 100, 0.17);
	border: 1px solid rgba(7, 166, 100, 0.36);
}

.wa-session-status.offline {
	color: #f4bac4;
	background: rgba(196, 52, 88, 0.16);
	border: 1px solid rgba(196, 52, 88, 0.35);
}

.wa-row-actions {
	display: flex;
	gap: 8px;
}

.wa-row-actions .btn {
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 700;
}

.config-editable {
	background: transparent;
	color: var(--text);
	border: 1px solid transparent;
	border-radius: 4px;
	min-height: 24px;
	line-height: 22px;
	padding: 0 4px;
	outline: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.config-editable:focus {
	border-color: #4a4a4a;
	background: var(--ui-surface-2);
}

.cell-id {
	color: var(--muted);
	font-weight: 600;
	min-width: 44px;
}

.cell-action {
	min-width: 42px;
}

.cell-id-empty,
.cell-action-empty {
	color: transparent;
}

.btn-danger {
	background: var(--ui-surface-1);
	color: #ffffff;
	border: 1px solid var(--ui-border);
	padding: 6px 8px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 700;
}

.btn-icon {
	width: 26px;
	height: 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.btn-icon svg {
	width: 15px;
	height: 15px;
}

.btn.secondary:disabled,
.btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.config-actions {
	justify-content: flex-end;
}

.crm-content {
	grid-template-columns: 1fr;
}

.crm-panel {
	background: linear-gradient(180deg, #171717 0%, #111111 100%);
	border: 1px solid var(--ui-border);
	border-radius: 16px;
	padding: 20px;
	display: grid;
	gap: 14px;
}

.crm-panel h3 {
	font-size: 15px;
	font-weight: 700;
	color: #ededed;
}

.crm-filters {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	align-items: end;
}

.crm-filters .field {
	margin-bottom: 0;
}

.crm-filters label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #adadad;
}

.crm-filters select,
.crm-filters input[type='text'] {
	height: 40px;
	border-radius: 10px;
	border: 1px solid var(--ui-border);
	background: var(--ui-surface-1);
	color: #f2f2f2;
}

.crm-filters select:focus,
.crm-filters input[type='text']:focus {
	border-color: #4a4a4a;
	box-shadow: 0 0 0 2px var(--ui-accent-soft);
}

.crm-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.crm-stat-card {
	background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
	border: 1px solid var(--ui-border);
	border-radius: 12px;
	padding: 12px;
	display: grid;
	gap: 6px;
}

.crm-stat-label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #acacac;
	font-weight: 600;
}

.crm-stat-value {
	font-size: 28px;
	line-height: 1;
	font-weight: 700;
	color: #f8f8f8;
}

.crm-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--ui-border-soft);
	border-radius: 12px;
	background: var(--ui-surface-0);
}

.crm-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 1460px;
}

.crm-table th,
.crm-table td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	font-size: 12px;
	white-space: nowrap;
	vertical-align: middle;
}

.crm-table th {
	background: var(--ui-surface-1);
	color: #b0b0b0;
	font-weight: 600;
}

.crm-table tbody tr:last-child td {
	border-bottom: none;
}

.crm-inline-input,
.crm-inline-select {
	background: var(--ui-surface-1);
	color: #f4f4f4;
	border: 1px solid var(--ui-border);
	border-radius: 8px;
	padding: 6px 8px;
	font-size: 12px;
	width: 100%;
	min-width: 130px;
	outline: none;
}

.crm-inline-input:focus,
.crm-inline-select:focus {
	border-color: #4a4a4a;
	box-shadow: 0 0 0 2px var(--ui-accent-soft);
}

.crm-inline-input[type='text'] {
	min-width: 180px;
}

.crm-inline-input[type='datetime-local'] {
	min-width: 170px;
}

.crm-save-btn {
	padding: 6px 10px;
	font-size: 12px;
}

.pending-content {
	grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
	align-items: start;
}

.pending-panel,
.pending-detail {
	background: linear-gradient(180deg, #171717 0%, #111111 100%);
	border: 1px solid var(--ui-border);
	border-radius: 16px;
	padding: 20px;
	display: grid;
	gap: 14px;
}

.pending-panel h3,
.pending-detail h3 {
	font-size: 15px;
	font-weight: 700;
	color: #ededed;
}

.pending-filters {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	align-items: end;
}

.pending-filters .field {
	margin-bottom: 0;
}

.pending-filters label {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #adadad;
}

.pending-filters select,
.pending-filters input[type='text'] {
	height: 40px;
	border-radius: 10px;
	border: 1px solid var(--ui-border);
	background: var(--ui-surface-1);
	color: #f2f2f2;
}

.pending-filters select:focus,
.pending-filters input[type='text']:focus,
.pending-edit-grid input:focus,
.pending-edit-grid select:focus,
.pending-edit-grid textarea:focus {
	border-color: #4a4a4a;
	box-shadow: 0 0 0 2px var(--ui-accent-soft);
	outline: none;
}

.pending-table-wrap {
	overflow-x: auto;
	border: 1px solid var(--ui-border-soft);
	border-radius: 12px;
	background: var(--ui-surface-0);
}

.pending-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 1200px;
}

.pending-table th,
.pending-table td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--border);
	text-align: left;
	font-size: 12px;
	white-space: nowrap;
	vertical-align: middle;
}

.pending-table th {
	background: var(--ui-surface-1);
	color: #b0b0b0;
	font-weight: 600;
}

.pending-table tbody tr:last-child td {
	border-bottom: none;
}

.pending-table tbody tr.is-selected {
	background: rgba(255, 97, 39, 0.1);
}

.pending-open-btn {
	padding: 6px 10px;
	font-size: 12px;
}

.pending-detail-body {
	border: 1px solid var(--ui-border-soft);
	border-radius: 12px;
	padding: 12px;
	background: #121212;
	color: #d8d8d8;
	line-height: 1.45;
	font-size: 13px;
	max-height: 280px;
	overflow: auto;
}

.pending-edit-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.pending-edit-grid .field {
	margin-bottom: 0;
}

.pending-edit-grid .field.full-width {
	grid-column: 1 / -1;
}

.pending-edit-grid textarea {
	width: 100%;
	border-radius: 10px;
	border: 1px solid var(--ui-border);
	background: var(--ui-surface-1);
	color: #f2f2f2;
	padding: 8px 10px;
	resize: vertical;
	min-height: 90px;
}

.pending-actions {
	justify-content: flex-end;
}

@media (max-width: 900px) {
	.pending-filters,
	.pending-edit-grid {
		grid-template-columns: 1fr;
	}
}

.confirm-modal {
	position: fixed;
	inset: 0;
	margin: auto;
	border: none;
	padding: 0;
	background: transparent;
	color: var(--text);
	max-width: 460px;
	width: calc(100% - 32px);
}

.confirm-modal[open] {
	display: grid;
	justify-items: center;
	align-items: center;
}

.confirm-modal::backdrop {
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(2px);
}

.confirm-modal-card {
	background: linear-gradient(180deg, #191919 0%, #121212 100%);
	border: 1px solid var(--ui-border);
	border-radius: 16px;
	padding: 20px;
	display: grid;
	gap: 10px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.confirm-modal-card h3 {
	font-size: 20px;
	font-weight: 700;
}

.confirm-modal-card p {
	color: var(--muted);
	font-size: 14px;
	margin: 0;
}

.confirm-phone {
	font-size: 28px;
	line-height: 1.1;
	font-weight: 700;
	color: #ffffff;
	letter-spacing: 0.4px;
}

.confirm-hint {
	font-size: 12px;
	color: #9c9c9c;
}

.confirm-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 8px;
}

/* ── Mobile navigation elements (hidden on desktop) ── */
.mob-header {
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 0 0 4px;
}

.mob-logo {
	width: 130px;
	height: auto;
	display: block;
}

.mob-nav-btn {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	border: 1px solid var(--ui-border);
	background: var(--ui-surface-1);
	color: var(--text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.16s ease;
}

.mob-nav-btn:hover {
	background: var(--ui-hover);
}

.mob-nav-btn svg {
	width: 20px;
	height: 20px;
}

.mob-sidebar-header {
	display: none;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	padding: 0 4px;
}

.mob-sidebar-logo {
	width: 140px;
	height: auto;
	display: block;
}

.mob-nav-close {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 1px solid var(--ui-border);
	background: var(--ui-surface-1);
	color: var(--text);
	display: none;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.16s ease;
}

.mob-nav-close:hover {
	background: var(--ui-hover);
}

.mob-nav-close svg {
	width: 18px;
	height: 18px;
}

.sidebar-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.65);
	backdrop-filter: blur(3px);
	z-index: 190;
}

@media (max-width: 1200px) {
	.content {
		grid-template-columns: 1fr;
	}

	.home-hero {
		grid-template-columns: 1fr;
	}

	.home-shortcuts {
		justify-content: flex-start;
	}

	.home-kpis {
		grid-template-columns: 1fr 1fr;
	}

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

	.crm-filters {
		grid-template-columns: 1fr 1fr;
	}

	.crm-stats {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 900px) {
	.app {
		grid-template-columns: 1fr;
	}

	.sidebar {
		border-right: none;
		border-bottom: 1px solid var(--border);
		padding: 12px 12px 14px;
		gap: 10px;
		position: static;
		height: auto;
		align-self: stretch;
		overflow: visible;
	}

	.brand {
		margin-bottom: 0;
	}

	.brand img {
		width: 190px;
	}

	.sidebar-nav {
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.sidebar-account {
		margin: 4px 2px 0;
		padding-top: 10px;
	}

	.sidebar-account-email {
		font-size: 15px;
	}

	.nav-list-main {
		display: flex;
		min-width: max-content;
		gap: 8px;
	}

	.nav-list-main > li {
		min-width: 190px;
	}

	.nav-list-main > .nav-divider {
		min-width: 1px;
		width: 1px;
		height: auto;
		margin: 6px 2px;
		align-self: stretch;
	}

	.nav-submenu {
		position: absolute;
		left: 12px;
		right: 12px;
		top: 106px;
		padding: 10px;
		background: #0f0f0f;
		border: 1px solid #2d2d2d;
		border-radius: 14px;
		z-index: 50;
	}

	.nav-subitem {
		padding-left: 12px;
	}

	.config-dock {
		position: static;
		left: auto;
		bottom: auto;
	}

	.config-submenu {
		width: 100%;
		padding: 90px 16px 20px;
	}

	.config-settings-grid {
		grid-template-columns: 1fr;
	}

	.whatsapp-config-grid {
		grid-template-columns: 1fr;
	}

	.main {
		padding: 22px 16px 26px;
	}

	.page-title {
		font-size: 24px;
	}

	.home-kpis {
		grid-template-columns: 1fr;
	}

	.home-hero h2 {
		font-size: 28px;
	}

	.crm-filters {
		grid-template-columns: 1fr;
	}

	.crm-stats {
		grid-template-columns: 1fr;
	}

	.confirm-actions {
		justify-content: stretch;
	}

	.confirm-actions .btn {
		flex: 1;
	}
}

/* ── Phone: hamburger drawer nav (≤680px) ─────────── */
@media (max-width: 680px) {
	/* Show mobile elements */
	.mob-header {
		display: flex;
	}

	.mob-sidebar-header {
		display: flex;
	}

	.mob-nav-close {
		display: inline-flex;
	}

	/* Hide desktop brand inside sidebar, it's shown in mob-sidebar-header */
	.brand {
		display: none;
	}

	/* Sidebar becomes an off-canvas fixed drawer */
	.sidebar {
		position: fixed !important;
		left: 0;
		top: 0;
		width: 280px;
		height: 100vh;
		z-index: 200;
		transform: translateX(-100%);
		transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
		padding: 20px 14px 28px;
		border-right: 1px solid var(--border);
		border-bottom: none;
		overflow-y: auto;
		overflow-x: hidden;
		gap: 0;
	}

	.app.mob-nav-open .sidebar {
		transform: translateX(0);
		box-shadow: 6px 0 44px rgba(0, 0, 0, 0.75);
	}

	.app.mob-nav-open .sidebar-backdrop {
		display: block;
	}

	/* Reset to vertical nav inside drawer */
	.sidebar-nav {
		overflow-x: visible;
		padding-bottom: 0;
	}

	.nav-list-main {
		display: grid !important;
		min-width: 0 !important;
		gap: 8px !important;
	}

	.nav-list-main > li {
		min-width: 0 !important;
	}

	.nav-list-main > .nav-divider {
		width: auto !important;
		min-width: 0 !important;
		height: 1px !important;
		align-self: auto !important;
		margin: 4px 8px !important;
	}

	.nav-submenu {
		position: static !important;
		left: auto !important;
		right: auto !important;
		top: auto !important;
		padding: 6px 0 0 !important;
		background: transparent !important;
		border: none !important;
		border-radius: 0 !important;
	}

	.sidebar-account {
		margin: 16px 10px 0;
		padding-top: 14px;
		border-top: 1px solid var(--border);
	}

	.sidebar-account-email {
		font-size: 14px;
	}

	/* ── Main content ── */
	.main {
		padding: 14px 14px 28px;
		grid-template-rows: auto auto 1fr;
		gap: 16px;
	}

	.page-title {
		font-size: 20px;
	}

	.topbar {
		gap: 10px;
		flex-wrap: wrap;
	}

	/* Home */
	.home-hero {
		padding: 16px;
	}

	.home-hero h2 {
		font-size: 22px;
	}

	.home-kpis {
		grid-template-columns: 1fr 1fr;
	}

	/* Cotizador */
	.render-area {
		min-height: 300px;
		padding: 14px;
	}

	/* Buttons: stack vertically on phones */
	.btn-row {
		flex-direction: column;
	}

	.btn-row .btn {
		width: 100%;
		justify-content: center;
	}

	/* CRM */
	.crm-filters {
		grid-template-columns: 1fr;
	}

	.crm-stats {
		grid-template-columns: 1fr 1fr;
	}

	/* Modals */
	.confirm-actions {
		justify-content: stretch;
	}

	.confirm-actions .btn {
		flex: 1;
	}
}

/* ── Nav Badge ────────────────────────────────────────────── */
.nav-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: #ff6127;
	color: #111;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	flex-shrink: 0;
}

/* ── Recontacto View ─────────────────────────────────────── */
.recontacto-content {
	grid-template-columns: 1fr;
	position: relative;
}

.recontacto-shell {
	display: grid;
	gap: 24px;
	align-content: start;
}

.recontacto-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 22px;
	border-radius: var(--radius-lg);
	background:
		radial-gradient(circle at 80% -20%, rgba(255, 97, 39, 0.22), transparent 52%),
		linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
	border: 1px solid var(--ui-border);
}

.rc-header-title {
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.3px;
}

.rc-header-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

#recontactoSenderFilter {
	min-width: 180px;
	font-size: 13px;
	font-weight: 600;
	padding: 8px 10px;
	border-radius: 10px;
	border: 1px solid var(--ui-border);
	background: var(--ui-surface-1);
	color: #ececec;
}

.rc-header-sub {
	font-size: 13px;
	color: #9a9a9a;
	margin-top: 4px;
}

.rc-pending-count {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.rc-pending-count span:first-child {
	font-size: 48px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: -2px;
	color: #ff6127;
}

.rc-pending-label {
	font-size: 14px;
	color: #9a9a9a;
}

.rc-deck-area {
	display: flex;
	justify-content: center;
	align-items: center;
	position: relative;
	min-height: 380px;
}

.rc-up-hint {
	position: absolute;
	left: 50%;
	bottom: -8px;
	transform: translateX(-50%);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: 999px;
	border: 1px dashed rgba(9, 169, 153, 0.56);
	background: rgba(9, 169, 153, 0.08);
	color: #9fded6;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.3px;
	white-space: nowrap;
	pointer-events: none;
	opacity: 1;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.rc-up-hint.hidden {
	opacity: 0;
	transform: translateX(-50%) translateY(6px);
}

.rc-up-hint-arrow {
	font-size: 13px;
	line-height: 1;
	color: #09A999;
	animation: rc-up-hint-pulse 1.2s ease-in-out infinite;
}

@keyframes rc-up-hint-pulse {
	0%,
	100% { transform: translateY(0); }
	50% { transform: translateY(-3px); }
}

/* Confirm contracted overlay */
.rc-confirm-overlay {
	position: absolute;
	inset: 0;
	z-index: 20;
	border-radius: 20px;
	background: rgba(8, 8, 8, 0.88);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: rc-confirm-in 0.2s cubic-bezier(0.2, 1, 0.4, 1);
}

.rc-confirm-overlay.hidden {
	display: none;
}

@keyframes rc-confirm-in {
	from { opacity: 0; transform: scale(0.94); }
	to   { opacity: 1; transform: scale(1); }
}

.rc-confirm-box {
	display: grid;
	gap: 10px;
	text-align: center;
	padding: 28px 28px 24px;
	max-width: 290px;
}

.rc-confirm-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: rgba(9, 169, 153, 0.12);
	border: 1.5px solid rgba(9, 169, 153, 0.3);
	margin: 0 auto 4px;
}

.rc-confirm-title {
	font-size: 22px;
	font-weight: 800;
	color: #f0f0f0;
	letter-spacing: -0.4px;
}

.rc-confirm-sub {
	font-size: 13px;
	color: #555;
	line-height: 1.55;
}

.rc-confirm-btns {
	display: flex;
	gap: 10px;
	justify-content: center;
	margin-top: 8px;
}

.rc-confirm-cancel {
	padding: 10px 20px;
	border-radius: 10px;
	border: 1px solid #333;
	background: transparent;
	color: #7a7a7a;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.15s, color 0.15s;
}

.rc-confirm-cancel:hover { background: #1e1e1e; color: #aaa; }

.rc-confirm-ok {
	padding: 10px 22px;
	border-radius: 10px;
	border: none;
	background: linear-gradient(135deg, #09A999 0%, #0dcfbb 100%);
	color: #031a18;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
	font-family: inherit;
	box-shadow: 0 4px 16px rgba(9, 169, 153, 0.4);
	transition: filter 0.15s, transform 0.12s;
}

.rc-confirm-ok:hover { filter: brightness(1.1); }
.rc-confirm-ok:active { transform: scale(0.96); }

/* Undo toast */
.rc-undo-toast {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px 10px 16px;
	border-radius: 12px;
	background: #1c1c1c;
	border: 1px solid #2e2e2e;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
	animation: rc-toast-in 0.24s cubic-bezier(0.2, 1, 0.4, 1);
	max-width: 480px;
	align-self: center;
}

.rc-undo-toast.hidden {
	display: none;
}

@keyframes rc-toast-in {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}

.rc-undo-label {
	font-size: 13px;
	color: #777;
	flex: 1;
	min-width: 0;
}

.rc-undo-btn {
	padding: 6px 14px;
	border-radius: 8px;
	border: 1px solid rgba(255, 97, 39, 0.35);
	background: rgba(255, 97, 39, 0.08);
	color: #ff6127;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background 0.15s;
}

.rc-undo-btn:hover { background: rgba(255, 97, 39, 0.18); }



.recontacto-deck {
	position: relative;
	width: min(100%, 520px);
	height: 360px;
	flex-shrink: 0;
	touch-action: none;
}

.recontacto-deck::before,
.recontacto-deck::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: var(--radius-lg);
	border: 1px solid var(--ui-border);
	background: linear-gradient(180deg, #1c1c1c 0%, #141414 100%);
	pointer-events: none;
}

.recontacto-deck::before {
	transform: rotate(3deg) translateY(10px);
	z-index: 0;
	opacity: 0.7;
}

.recontacto-deck::after {
	transform: rotate(-2deg) translateY(6px);
	z-index: 1;
	opacity: 0.5;
}

.rc-card {
	position: absolute;
	inset: 0;
	z-index: 2;
	border-radius: 20px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-top: 2px solid rgba(255, 97, 39, 0.5);
	background:
		radial-gradient(ellipse at 95% 0%, rgba(255, 97, 39, 0.22) 0%, transparent 56%),
		radial-gradient(ellipse at 5% 105%, rgba(255, 97, 39, 0.05) 0%, transparent 42%),
		linear-gradient(165deg, #242424 0%, #1a1a1a 50%, #111 100%);
	padding: 22px 22px 18px;
	display: grid;
	gap: 14px;
	align-content: start;
	cursor: default;
	user-select: none;
	transform-origin: bottom center;
	transition: transform 0.08s ease;
	will-change: transform;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	touch-action: none;
}

.rc-card.is-dragging {
	transition: none;
}

.rc-card.rc-up-candidate {
	box-shadow: 0 24px 60px rgba(9, 169, 153, 0.3);
	border-color: rgba(9, 169, 153, 0.55);
}

/* Tinder-style stamps */
.rc-stamp {
	position: absolute;
	z-index: 10;
	padding: 7px 14px;
	border-radius: 6px;
	border-width: 3px;
	border-style: solid;
	font-size: 18px;
	font-weight: 900;
	letter-spacing: 2.5px;
	text-transform: uppercase;
	opacity: 0;
	pointer-events: none;
	transition: none;
	text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.rc-stamp-right {
	top: 22px;
	left: 16px;
	color: #ff6127;
	border-color: #ff6127;
	transform: rotate(-12deg);
	box-shadow: 0 2px 12px rgba(255, 97, 39, 0.35);
}

.rc-stamp-left {
	top: 22px;
	right: 16px;
	color: #f87171;
	border-color: #f87171;
	transform: rotate(12deg);
	box-shadow: 0 2px 12px rgba(248, 113, 113, 0.35);
}

.rc-stamp-up {
	top: 22px;
	left: 50%;
	transform: translateX(-50%) rotate(-5deg);
	color: #09A999;
	border-color: #09A999;
	box-shadow: 0 2px 12px rgba(9, 169, 153, 0.35);
}

.rc-card.animate-swipe-right {
	transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.38s ease;
	transform: translateX(160%) rotate(18deg);
	opacity: 0;
}

.rc-card.animate-swipe-left {
	transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.38s ease;
	transform: translateX(-160%) rotate(-18deg);
	opacity: 0;
}

.rc-card.animate-swipe-up-contracted {
	transition: transform 0.55s cubic-bezier(0.2, 0.95, 0.22, 1), opacity 0.5s ease;
	transform: translateY(-185%) scale(0.9) rotate(-7deg);
	opacity: 0;
	box-shadow: 0 20px 55px rgba(9, 169, 153, 0.55);
}

.rc-card-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.rc-card-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(255, 97, 39, 0.22) 0%, rgba(255, 97, 39, 0.08) 100%);
	border: 1.5px solid rgba(255, 97, 39, 0.32);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 800;
	color: rgba(255, 97, 39, 0.85);
	flex-shrink: 0;
	letter-spacing: 0;
}

.rc-card-customer {
	flex: 1;
	min-width: 0;
	display: grid;
	gap: 4px;
}

.rc-card-name {
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.8px;
	line-height: 1.05;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	background: linear-gradient(145deg, #ffffff 0%, #cacaca 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.rc-card-phone {
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: #666;
	letter-spacing: 0.4px;
}

.rc-card-slot-badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 5px 10px;
	border-radius: 7px;
	font-size: 9px;
	font-weight: 800;
	letter-spacing: 1.4px;
	text-transform: uppercase;
	background: rgba(255, 97, 39, 0.1);
	border: 1px solid rgba(255, 97, 39, 0.28);
	color: rgba(255, 97, 39, 0.9);
	white-space: nowrap;
	flex-shrink: 0;
	align-self: flex-start;
}

.rc-card-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08) 30%, rgba(255, 255, 255, 0.08) 70%, transparent);
	margin: 0 -4px;
}

.rc-quick-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
}


.rc-quick-item {
	padding: 14px 12px 12px;
	background: linear-gradient(170deg, #181818 0%, #0e0e0e 100%);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	min-height: 114px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 5px;
}

.rc-quick-icon {
	font-size: 30px;
	line-height: 1;
}

.rc-quick-icon-product {
	font-size: 34px;
}

.rc-quick-icon-price {
	font-size: 48px;
	line-height: 0.9;
	font-weight: 500;
}

.rc-quick-label {
	font-size: 9px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #505050;
}


.rc-quick-value {
	font-size: 15px;
	font-weight: 600;
	color: #f0f0f0;
	line-height: 1.25;
}

.rc-plan-value {
	font-size: 44px;
	line-height: 1;
	font-style: italic;
	font-weight: 900;
	letter-spacing: -1.5px;
	color: #e8e8e8;
}

.rc-quick-price {
	font-size: 18px;
	font-weight: 700;
}

.rc-price-hero {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -0.5px;
	line-height: 1.2;
	margin-top: 4px;
}

.rc-quick-sub {
	font-size: 11px;
	color: #5a5a5a;
	letter-spacing: 0.2px;
}

.rc-quote-summary {
	display: grid;
	gap: 6px;
	padding: 8px 10px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.rc-quote-summary-title {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.7px;
	color: #a8a8a8;
}

.rc-quote-summary-list {
	list-style: none;
	display: grid;
	gap: 4px;
}

.rc-quote-summary-list li {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	font-size: 12px;
}

.rc-quote-product {
	color: #e4e4e4;
}

.rc-quote-count {
	color: #ffb89e;
	font-weight: 700;
}

.rc-quote-meta {
	display: grid;
	justify-items: end;
	gap: 2px;
}

.rc-quote-date {
	font-size: 10px;
	color: #8e8e8e;
	white-space: nowrap;
}

.rc-tier { font-size: 16px; letter-spacing: 0; }
.rc-tier-1 { color: #86efac; }
.rc-tier-2 { color: #fbbf24; }
.rc-tier-3 { color: #f87171; }

.rc-card-footer {
	position: relative;
	padding-top: 12px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.rc-card-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09) 25%, rgba(255, 255, 255, 0.09) 75%, transparent);
}

.rc-card-history {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.rc-card-date {
	font-size: 12px;
	color: #7a7a7a;
}

.rc-operator-chip {
	display: inline-flex;
	width: fit-content;
	padding: 4px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.04);
	font-size: 11px;
	font-weight: 700;
	color: #cfcfcf;
}

.rc-slot-dots {
	display: flex;
	gap: 6px;
}

.rc-slot-dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	border: 1px solid #3a3a3a;
	background: transparent;
}

.rc-slot-dot.done { background: #ff6127; border-color: #ff6127; }
.rc-slot-dot.current { background: #fff; border-color: #fff; box-shadow: 0 0 7px rgba(255, 255, 255, 0.55); }

.recontacto-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
}

.rc-action-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 999px;
	cursor: pointer;
	transition: transform 0.18s ease, filter 0.18s ease, box-shadow 0.18s ease;
	flex-shrink: 0;
}

.rc-action-btn:hover { transform: scale(1.08); filter: brightness(1.1); }
.rc-action-btn:active { transform: scale(0.95); }

.rc-btn-skip {
	width: 64px;
	height: 64px;
	background: #1e1e1e;
	border: 1.5px solid #3a3a3a;
	color: #f87171;
	box-shadow: 0 6px 20px rgba(248, 113, 113, 0.25);
}

.rc-btn-skip svg { width: 26px; height: 26px; }

.rc-btn-history {
	width: 48px;
	height: 48px;
	background: #1a1a1a;
	border: 1.5px solid #2d2d2d;
	color: #9a9a9a;
}

.rc-btn-history svg { width: 20px; height: 20px; }

.rc-btn-next {
	width: 48px;
	height: 48px;
	background: #1c1c1c;
	border: 1.5px solid #313131;
	color: #c8c8c8;
}

.rc-btn-next svg { width: 20px; height: 20px; }

.rc-btn-send {
	width: 64px;
	height: 64px;
	background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
	color: #0a1a0e;
	box-shadow: 0 6px 20px rgba(74, 222, 128, 0.3);
}

.rc-btn-send svg { width: 26px; height: 26px; }

.rc-btn-contracted {
	width: 64px;
	height: 64px;
	background: linear-gradient(135deg, rgba(9, 169, 153, 0.18) 0%, rgba(9, 169, 153, 0.28) 100%);
	border: 1.5px solid rgba(9, 169, 153, 0.45);
	color: #09A999;
	box-shadow: 0 6px 20px rgba(9, 169, 153, 0.22);
}

.rc-btn-contracted svg { width: 26px; height: 26px; }

.rc-panel {
	border-radius: var(--radius-lg);
	border: 1px solid var(--ui-border);
	padding: 20px;
	background: linear-gradient(180deg, #1c1c1c 0%, #141414 100%);
	display: none;
	gap: 12px;
	max-width: 620px;
}

.rc-panel.open {
	display: grid;
	animation: rc-panel-in 0.22s ease;
}

@keyframes rc-panel-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.rc-panel-title { font-size: 16px; font-weight: 800; }

.rc-panel-hint {
	font-size: 13px;
	color: #8a8a8a;
	margin-top: -4px;
}

.rc-message-preset-field {
	margin-bottom: 0;
}

.rc-panel-cancel { width: fit-content; }

.rc-skip-reasons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.rc-skip-reason-btn {
	padding: 9px 14px;
	border-radius: 10px;
	border: 1px solid var(--ui-border);
	background: var(--ui-surface-1);
	color: #d0d0d0;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.16s ease;
	font-family: inherit;
}

.rc-skip-reason-btn:hover,
.rc-skip-reason-btn.selected {
	background: rgba(248, 113, 113, 0.12);
	border-color: rgba(248, 113, 113, 0.45);
	color: #fca5a5;
}

.rc-message-textarea {
	background: var(--ui-surface-0);
	color: #f0f0f0;
	border: 1px solid var(--ui-border);
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.55;
	resize: vertical;
	outline: none;
	transition: border-color 0.18s ease;
	width: 100%;
	min-height: 170px;
}

.rc-message-textarea:focus {
	border-color: #4a4a4a;
	box-shadow: 0 0 0 2px var(--ui-accent-soft);
}

.rc-send-actions { display: flex; gap: 10px; }

.recontacto-empty {
	display: grid;
	gap: 12px;
	text-align: center;
	place-items: center;
	padding: 60px 20px;
}

.rc-empty-icon { font-size: 52px; }
.rc-empty-title { font-size: 22px; font-weight: 800; }

.rc-empty-sub {
	font-size: 14px;
	color: #7a7a7a;
	max-width: 340px;
}

.rc-confetti-layer {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999;
	overflow: hidden;
}

.rc-confetti-piece {
	position: fixed;
	border-radius: 2px;
	opacity: 1;
	animation: rc-confetti-fall var(--dur, 1.4s) cubic-bezier(0.15, 0.45, 0.35, 1) forwards;
}

@keyframes rc-confetti-fall {
	0% {
		opacity: 1;
		transform: translate(0, 0) rotate(0deg) scale(1);
	}
	20% {
		opacity: 1;
	}
	75% {
		opacity: 0.85;
	}
	100% {
		opacity: 0;
		transform: translate(var(--dx, 0px), var(--dy, 400px)) rotate(var(--rot, 360deg)) scale(var(--scale, 0.5));
	}
}

@media (min-width: 1100px) {
	#recontactoView.rc-mode-skip .recontacto-shell {
		grid-template-columns: minmax(380px, 520px) minmax(340px, 1fr);
		grid-template-areas:
			'header header'
			'left right'
			'actions right';
		align-items: start;
		column-gap: 22px;
	}

	#recontactoView.rc-mode-send .recontacto-shell {
		grid-template-columns: minmax(420px, 1fr) minmax(380px, 520px);
		grid-template-areas:
			'header header'
			'left right'
			'actions right';
		align-items: start;
		column-gap: 22px;
	}

	#recontactoView.rc-mode-skip .recontacto-header,
	#recontactoView.rc-mode-send .recontacto-header {
		grid-area: header;
	}

	#recontactoView.rc-mode-skip .recontacto-actions,
	#recontactoView.rc-mode-send .recontacto-actions {
		grid-area: actions;
	}

	#recontactoView.rc-mode-skip .rc-deck-area {
		grid-area: left;
		justify-content: flex-start;
	}

	#recontactoView.rc-mode-skip .rc-skip-panel {
		grid-area: right;
	}

	#recontactoView.rc-mode-send .rc-send-panel {
		grid-area: left;
	}

	#recontactoView.rc-mode-send .rc-deck-area {
		grid-area: right;
		justify-content: flex-end;
	}

	#recontactoView.rc-mode-skip .rc-skip-panel,
	#recontactoView.rc-mode-send .rc-send-panel {
		max-width: none;
	}
}

@media (max-width: 680px) {
	body.recontacto-mobile-active {
		overflow: hidden;
	}

	.main.recontacto-mobile-active {
		height: 100dvh;
		overflow: hidden;
	}

	.main.recontacto-mobile-active .recontacto-content {
		min-height: 0;
		overflow: hidden;
	}

	.recontacto-shell {
		gap: 14px;
		height: 100%;
		grid-template-rows: auto 1fr;
		align-content: stretch;
	}

	.recontacto-header {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 14px;
	}

	.rc-header-row {
		align-items: stretch;
		gap: 8px;
	}

	.rc-header-title {
		font-size: 18px;
	}

	.rc-header-sub {
		display: none;
	}

	#recontactoSenderFilter {
		width: 100%;
		min-width: 0;
	}

	.rc-pending-count {
		justify-content: flex-end;
	}

	.rc-pending-count span:first-child {
		font-size: 34px;
		letter-spacing: -1px;
	}

	.rc-pending-label {
		font-size: 12px;
	}

	.rc-deck-area {
		width: 100%;
		min-height: auto;
		padding: 2px 0 88px;
		flex: 1;
		min-height: 0;
		align-items: center;
	}

	.recontacto-deck {
		width: min(100%, 420px);
		height: clamp(300px, 45dvh, 390px);
		margin: 0 auto;
	}

	.recontacto-deck::before {
		transform: rotate(2deg) translateY(8px);
	}

	.recontacto-deck::after {
		transform: rotate(-1.4deg) translateY(5px);
	}

	.rc-card {
		padding: 14px 12px 12px;
		gap: 8px;
	}

	.rc-card-name {
		font-size: 22px;
	}

	.rc-card-phone {
		font-size: 13px;
	}

	.rc-card-slot-badge {
		font-size: 10px;
		padding: 5px 8px;
		letter-spacing: 0.9px;
	}

	.rc-quick-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 8px;
	}

	.rc-quick-item {
		min-height: 70px;
		padding: 8px 6px;
		gap: 3px;
	}

	.rc-quick-icon {
		font-size: 22px;
	}

	.rc-quick-icon-product {
		font-size: 24px;
	}

	.rc-quick-label {
		font-size: 8px;
		letter-spacing: 0.6px;
	}

	.rc-plan-value {
		font-size: 26px;
		letter-spacing: -0.6px;
	}

	.rc-price-hero {
		font-size: 15px;
	}

	.rc-quick-sub {
		font-size: 10px;
	}

	.rc-card-footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.rc-card-history {
		gap: 7px;
	}

	.rc-card-date {
		font-size: 11px;
	}

	.rc-slot-dots {
		align-self: flex-end;
	}

	.recontacto-actions {
		position: fixed;
		left: 50%;
		bottom: calc(10px + env(safe-area-inset-bottom));
		transform: translateX(-50%);
		width: min(calc(100% - 20px), 380px);
		z-index: 240;
		justify-content: space-between;
		gap: 10px;
		padding: 8px 12px;
		border-radius: 999px;
		background: rgba(11, 11, 11, 0.84);
		border: 1px solid rgba(255, 255, 255, 0.1);
		backdrop-filter: blur(8px);
		-webkit-backdrop-filter: blur(8px);
	}

	.rc-btn-skip,
	.rc-btn-send,
	.rc-btn-contracted {
		width: 56px;
		height: 56px;
	}

	.rc-btn-history {
		width: 44px;
		height: 44px;
	}

	.rc-btn-next {
		width: 44px;
		height: 44px;
	}

	.recontacto-content::before {
		content: '';
		position: fixed;
		inset: 0;
		z-index: 250;
		background: rgba(0, 0, 0, 0.45);
		backdrop-filter: blur(2px);
		-webkit-backdrop-filter: blur(2px);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease;
	}

	#recontactoView.rc-mode-skip::before,
	#recontactoView.rc-mode-send::before {
		opacity: 1;
		pointer-events: auto;
	}

	#recontactoView.rc-mode-skip .recontacto-actions,
	#recontactoView.rc-mode-send .recontacto-actions {
		opacity: 0;
		pointer-events: none;
	}

	#recontactoView .rc-panel.open {
		position: fixed;
		left: 10px;
		right: 10px;
		bottom: calc(10px + env(safe-area-inset-bottom));
		z-index: 260;
		max-width: none;
		max-height: min(62dvh, 520px);
		overflow: auto;
		margin: 0;
		border-radius: 14px;
	}

	#recontactoView .rc-undo-toast {
		position: fixed;
		left: 10px;
		right: 10px;
		bottom: calc(80px + env(safe-area-inset-bottom));
		z-index: 255;
		max-width: none;
	}

	.rc-up-hint {
		display: none;
	}
}

@media (max-width: 1024px) {
	.rc-up-hint {
		display: none;
	}
}
