.orca-grid,
.orca-admin .orca-grid {
	display: grid;
	gap: 20px;
}

.orca-grid-2 {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.orca-grid-3 {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.orca-grid-4 {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.orca-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	padding: 20px;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.orca-card h2,
.orca-card h3 {
	margin-top: 0;
}

.orca-card code {
	background: #f3f4f6;
	padding: 2px 6px;
	border-radius: 8px;
}

.orca-portal-wrap {
	max-width: 1120px;
	margin: 24px auto;
}

.orca-analytics-wrap {
	max-width: 1120px;
	margin: 24px auto;
}

.orca-form input,
.orca-form select,
.orca-form textarea,
.orca-admin input,
.orca-admin textarea,
.orca-admin select {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #d1d5db;
	border-radius: 12px;
	box-sizing: border-box;
	font: inherit;
}

.orca-form textarea {
	resize: vertical;
}

.orca-form input[type="checkbox"] {
	width: auto;
	padding: 0;
}

.orca-form label {
	display: inline-block;
	margin-bottom: 6px;
	font-weight: 600;
	color: #0f172a;
}

.orca-form button,
.orca-quick-action-button {
	background: #111827;
	color: #ffffff;
	border: 0;
	border-radius: 12px;
	padding: 11px 16px;
	cursor: pointer;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.orca-form button:hover,
.orca-quick-action-button:hover {
	background: #1f2937;
}

.orca-alert {
	border-radius: 14px;
	padding: 14px 16px;
	margin-bottom: 18px;
	border: 1px solid transparent;
}

.orca-alert p {
	margin: 0;
}

.orca-alert-success {
	background: #ecfdf3;
	color: #166534;
	border-color: #86efac;
}

.orca-alert-error {
	background: #fef2f2;
	color: #991b1b;
	border-color: #fecaca;
}

.orca-portal-modern {
	display: grid;
	gap: 20px;
}

.orca-portal-welcome {
	background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 100%);
	border-color: #dbeafe;
}

.orca-portal-welcome-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.orca-portal-welcome-head p {
	margin-bottom: 0;
	color: #475569;
}

.orca-account-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
	margin-top: 16px;
}

.orca-account-summary-item {
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 12px 14px;
}

.orca-account-summary-item p {
	margin: 4px 0 0;
	font-weight: 600;
}

.orca-account-summary-label {
	display: inline-block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
}

.orca-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	border: 1px solid transparent;
	white-space: nowrap;
}

.orca-status-pill.is-success {
	color: #166534;
	background: #dcfce7;
	border-color: #86efac;
}

.orca-status-pill.is-warning {
	color: #92400e;
	background: #fef3c7;
	border-color: #fcd34d;
}

.orca-status-pill.is-error {
	color: #991b1b;
	background: #fee2e2;
	border-color: #fca5a5;
}

.orca-portal-status-grid {
	align-items: stretch;
}

.orca-status-card {
	display: grid;
	gap: 8px;
}

.orca-status-card-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.orca-status-card-value {
	font-size: 20px;
	font-weight: 700;
	margin: 0;
	color: #0f172a;
}

.orca-status-card-description {
	margin: 0;
	color: #64748b;
	font-size: 14px;
	line-height: 1.5;
}

.orca-quick-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.orca-quick-action-button {
	font-size: 14px;
	font-weight: 600;
}

.orca-portal-form {
	display: grid;
	gap: 20px;
}

.orca-section-description {
	margin-top: -4px;
	color: #64748b;
	font-size: 14px;
}

.orca-whatsapp-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 12px;
}

.orca-whatsapp-head h3 {
	margin-bottom: 6px;
}

.orca-whatsapp-display {
	font-size: 16px;
}

.orca-toggle-field {
	display: flex;
	align-items: center;
	margin: 0;
	padding-top: 22px;
}

.orca-toggle-field label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 0;
}

.orca-ai-preview-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
	margin-top: 14px;
}

.orca-ai-preview-item {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 10px 12px;
}

.orca-ai-preview-item p {
	margin: 6px 0 0;
	color: #0f172a;
	font-size: 13px;
	line-height: 1.45;
}

.orca-metric-card {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px;
}

.orca-metric-card p {
	margin: 6px 0 0;
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
}

.orca-metric-card-lg {
	min-height: 114px;
}

.orca-metric-value {
	margin: 6px 0 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: #0f172a;
}

.orca-metric-value-text {
	font-size: 15px;
	font-weight: 600;
}

.orca-metric-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #64748b;
}

.orca-empty-state {
	background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 100%);
	border: 1px solid #dbeafe;
	border-radius: 14px;
	padding: 16px;
	margin: 8px 0 14px;
}

.orca-empty-state-title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
}

.orca-empty-state-desc {
	margin: 0;
	color: #64748b;
}

.orca-analytics-recent {
	margin-top: 14px;
}

.orca-analytics-recent h4 {
	margin-bottom: 10px;
}

.orca-admin-table-wrap {
	overflow-x: auto;
}

.orca-admin-activity-table,
.orca-activity-table {
	min-width: 760px;
}

.orca-admin-activity-table th,
.orca-admin-activity-table td,
.orca-activity-table th,
.orca-activity-table td {
	white-space: nowrap;
	vertical-align: middle;
}

.orca-portal-submit {
	display: flex;
	justify-content: flex-end;
}

.orca-products-context-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.orca-products-context-item {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px;
}

.orca-products-context-item p {
	margin: 4px 0 0;
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
}

.orca-products-list {
	display: grid;
	gap: 14px;
	margin-bottom: 18px;
}

.orca-product-item {
	background: #ffffff;
	border: 1px solid #dbeafe;
	border-radius: 16px;
	padding: 16px;
}

.orca-product-item-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.orca-product-item-head h4 {
	margin: 0;
}

.orca-product-form {
	display: grid;
	gap: 8px;
}

.orca-featured-toggle {
	margin: 0;
}

.orca-featured-toggle label {
	font-weight: 500;
}

.orca-featured-toggle input[type="checkbox"] {
	margin-right: 6px;
}

.orca-product-item-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 6px;
}

.orca-product-delete-form {
	margin-top: 8px;
}

.orca-button-danger {
	background: #b91c1c;
	color: #ffffff;
	border: 0;
	border-radius: 10px;
	padding: 10px 14px;
	cursor: pointer;
}

.orca-button-danger:hover {
	background: #991b1b;
}

.orca-product-create {
	background: linear-gradient(145deg, #f8fafc 0%, #eff6ff 100%);
	border-color: #bfdbfe;
}

.orca-portal-message-card {
	text-align: center;
	max-width: 720px;
	margin: 0 auto;
}

.orca-portal-message-card p {
	color: #475569;
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.orca-portal-wrap {
		margin: 16px auto;
	}

	.orca-portal-welcome-head {
		flex-direction: column;
	}

	.orca-whatsapp-head {
		flex-direction: column;
	}

	.orca-portal-submit {
		justify-content: stretch;
	}

	.orca-portal-submit button {
		width: 100%;
	}

	.orca-product-item-head {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Phase: ORCA reusable customer portal UI components */
.orca-frontend-scope {
	--orca-ui-text: #0f172a;
	--orca-ui-muted: #475569;
	--orca-ui-border: #d7dee9;
	--orca-ui-soft: #f8fafc;
	--orca-ui-brand: #1d4ed8;
	--orca-ui-brand-soft: #dbeafe;
	--orca-ui-success: #166534;
	--orca-ui-success-soft: #dcfce7;
	--orca-ui-error: #991b1b;
	--orca-ui-error-soft: #fee2e2;
}

/* 1) Card */
.orca-frontend-scope .orca-ui-card {
	background: #ffffff;
	border: 1px solid var(--orca-ui-border);
	border-radius: 16px;
	padding: 18px;
	box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

/* 2) Section header */
.orca-frontend-scope .orca-ui-section-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
}

.orca-frontend-scope .orca-ui-section-block {
	display: grid;
	gap: 8px;
}

.orca-frontend-scope .orca-ui-section-eyebrow {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #2563eb;
}

.orca-frontend-scope .orca-ui-section-title {
	margin: 0;
	color: var(--orca-ui-text);
}

.orca-frontend-scope .orca-ui-section-subtitle {
	margin: 0;
	color: var(--orca-ui-muted);
	line-height: 1.6;
}

/* 3) Badge */
.orca-frontend-scope .orca-ui-badge,
.orca-frontend-scope .orca-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.orca-frontend-scope .orca-ui-badge-success,
.orca-frontend-scope .orca-status-pill.is-success {
	color: var(--orca-ui-success);
	background: var(--orca-ui-success-soft);
	border-color: #86efac;
}

.orca-frontend-scope .orca-ui-badge-warning,
.orca-frontend-scope .orca-status-pill.is-warning {
	color: #92400e;
	background: #fef3c7;
	border-color: #fcd34d;
}

.orca-frontend-scope .orca-ui-badge-error,
.orca-frontend-scope .orca-status-pill.is-error {
	color: var(--orca-ui-error);
	background: var(--orca-ui-error-soft);
	border-color: #fecaca;
}

/* 4) Button */
.orca-frontend-scope .orca-ui-button,
.orca-frontend-scope .orca-quick-action-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 12px;
	border: 1px solid transparent;
	text-decoration: none;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.orca-frontend-scope .orca-ui-button-primary {
	background: var(--orca-ui-brand);
	color: #ffffff;
	border-color: var(--orca-ui-brand);
}

.orca-frontend-scope .orca-ui-button-primary:hover {
	background: #1e40af;
	border-color: #1e40af;
}

.orca-frontend-scope .orca-ui-button-secondary {
	background: #ffffff;
	color: #1e293b;
	border-color: #cbd5e1;
}

.orca-frontend-scope .orca-ui-button-secondary:hover {
	border-color: #93c5fd;
	color: #1d4ed8;
}

.orca-frontend-scope .orca-ui-button-ghost {
	background: transparent;
	color: #1e293b;
	border-color: transparent;
}

.orca-frontend-scope .orca-ui-button-ghost:hover {
	background: rgba(15, 23, 42, 0.06);
}

.orca-frontend-scope .orca-ui-button-danger {
	background: #b91c1c;
	color: #ffffff;
	border-color: #b91c1c;
}

.orca-frontend-scope .orca-ui-button-danger:hover {
	background: #991b1b;
	border-color: #991b1b;
}

.orca-frontend-scope .orca-ui-button-block {
	width: 100%;
}

/* 5) Form group */
.orca-frontend-scope .orca-ui-form-group {
	display: grid;
	gap: 6px;
}

.orca-frontend-scope .orca-ui-form-group label {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--orca-ui-text);
}

.orca-frontend-scope .orca-ui-form-group input,
.orca-frontend-scope .orca-ui-form-group select,
.orca-frontend-scope .orca-ui-form-group textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	background: #ffffff;
	font: inherit;
	box-sizing: border-box;
}

.orca-frontend-scope .orca-ui-form-group textarea {
	resize: vertical;
}

.orca-frontend-scope .orca-ui-form-help {
	font-size: 12px;
	color: #64748b;
}

/* 6) Stats card */
.orca-frontend-scope .orca-ui-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
}

.orca-frontend-scope .orca-ui-stats-card {
	background: var(--orca-ui-soft);
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px;
}

.orca-frontend-scope .orca-ui-stats-label {
	margin: 0;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
}

.orca-frontend-scope .orca-ui-stats-value {
	margin: 6px 0 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--orca-ui-text);
}

/* 7) Empty state */
.orca-frontend-scope .orca-ui-empty-state,
.orca-frontend-scope .orca-empty-state {
	background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 100%);
	border: 1px solid var(--orca-ui-brand-soft);
	border-radius: 14px;
	padding: 16px;
	display: grid;
	gap: 6px;
}

.orca-frontend-scope .orca-ui-empty-title,
.orca-frontend-scope .orca-empty-state-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--orca-ui-text);
}

.orca-frontend-scope .orca-ui-empty-description,
.orca-frontend-scope .orca-empty-state-desc {
	margin: 0;
	color: var(--orca-ui-muted);
}

/* 8) Success/error notice */
.orca-frontend-scope .orca-ui-notice,
.orca-frontend-scope .orca-alert {
	border: 1px solid transparent;
	border-radius: 14px;
	padding: 14px 16px;
}

.orca-frontend-scope .orca-ui-notice p,
.orca-frontend-scope .orca-alert p {
	margin: 0;
}

.orca-frontend-scope .orca-ui-notice-success,
.orca-frontend-scope .orca-alert-success {
	color: var(--orca-ui-success);
	background: #ecfdf3;
	border-color: #86efac;
}

.orca-frontend-scope .orca-ui-notice-error,
.orca-frontend-scope .orca-alert-error {
	color: var(--orca-ui-error);
	background: #fef2f2;
	border-color: #fecaca;
}

.orca-frontend-scope .orca-ui-notice-info {
	color: #1e3a8a;
	background: #eff6ff;
	border-color: #bfdbfe;
}

/* 9) Two-column responsive form layout */
.orca-frontend-scope .orca-ui-form-grid-2 {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
}

/* 10) Portal navigation tabs */
.orca-frontend-scope .orca-ui-tabs {
	padding: 14px;
	border-radius: 16px;
	background: rgba(15, 23, 42, 0.04);
	border: 1px solid rgba(148, 163, 184, 0.4);
}

.orca-frontend-scope .orca-ui-tabs-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.orca-frontend-scope .orca-ui-tab-item {
	margin: 0;
}

.orca-frontend-scope .orca-ui-tab-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid #cbd5e1;
	background: #ffffff;
	color: #1e293b;
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	transition: all 0.2s ease;
}

.orca-frontend-scope .orca-ui-tab-link:hover {
	border-color: #93c5fd;
	color: #1d4ed8;
}

.orca-frontend-scope .orca-ui-tab-link.is-active {
	background: var(--orca-ui-brand);
	border-color: var(--orca-ui-brand);
	color: #ffffff;
	box-shadow: 0 10px 24px rgba(29, 78, 216, 0.25);
}

/* Portal shell composition using reusable components */
.orca-frontend-scope.orca-portal-shell-wrap {
	margin: 28px auto;
}

.orca-frontend-scope .orca-portal-shell {
	display: grid;
	gap: 22px;
	border: 1px solid #cbd5e1;
	background:
		radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 46%),
		linear-gradient(160deg, #f8fbff 0%, #f1f5f9 100%);
}

.orca-frontend-scope .orca-portal-shell-heading {
	max-width: 760px;
}

.orca-frontend-scope .orca-portal-shell-account {
	min-width: 220px;
	background: #ffffff;
	border: 1px solid #dbeafe;
	box-shadow: none;
}

.orca-frontend-scope .orca-portal-shell-account-name {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--orca-ui-text);
}

.orca-frontend-scope .orca-portal-shell-account-meta {
	margin: 6px 0 0;
	font-size: 13px;
	color: var(--orca-ui-muted);
	word-break: break-word;
}

.orca-frontend-scope .orca-portal-shell-content {
	display: block;
}

.orca-frontend-scope .orca-portal-content-card {
	display: grid;
	gap: 14px;
	margin: 0;
	border: 1px solid #dbeafe;
}

.orca-frontend-scope .orca-portal-content-meta-item .orca-ui-stats-value {
	font-size: 16px;
}

.orca-frontend-scope .orca-dashboard-stack {
	display: grid;
	gap: 16px;
}

.orca-frontend-scope .orca-dashboard-welcome-card {
	background: linear-gradient(145deg, #f8fbff 0%, #eef2ff 100%);
	border-color: #bfdbfe;
}

.orca-frontend-scope .orca-dashboard-welcome-meta .orca-ui-stats-card {
	background: rgba(255, 255, 255, 0.8);
}

.orca-frontend-scope .orca-dashboard-meta-value {
	font-size: 15px;
	word-break: break-word;
}

.orca-frontend-scope .orca-dashboard-grid {
	align-items: stretch;
}

.orca-frontend-scope .orca-dashboard-card {
	display: grid;
	gap: 10px;
}

.orca-frontend-scope .orca-dashboard-card-head {
	align-items: flex-start;
}

.orca-frontend-scope .orca-dashboard-card .orca-ui-section-title {
	font-size: 20px;
}

.orca-frontend-scope .orca-dashboard-card-value {
	margin: 0;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.15;
	color: var(--orca-ui-text);
}

.orca-frontend-scope .orca-dashboard-help-state {
	margin-top: 4px;
}

.orca-frontend-scope .orca-dashboard-missing-list {
	margin: 0;
	padding-left: 18px;
	display: grid;
	gap: 4px;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope .orca-dashboard-analytics-card {
	display: grid;
	gap: 14px;
}

.orca-frontend-scope .orca-dashboard-analytics-grid {
	grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.orca-frontend-scope .orca-dashboard-actions-card {
	display: grid;
	gap: 14px;
}

.orca-frontend-scope .orca-dashboard-quick-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.orca-frontend-scope.orca-business-profile-wrap {
	margin: 28px auto;
}

.orca-frontend-scope .orca-business-profile-section {
	display: grid;
	gap: 16px;
}

.orca-frontend-scope .orca-business-profile-header {
	align-items: flex-start;
}

.orca-frontend-scope .orca-business-profile-completeness-grid {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	max-width: 520px;
}

.orca-frontend-scope .orca-business-profile-help {
	margin: 0;
}

.orca-frontend-scope .orca-business-profile-missing-list {
	margin: 0;
	padding-left: 18px;
	display: grid;
	gap: 4px;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope .orca-business-profile-form {
	display: grid;
	gap: 16px;
}

.orca-frontend-scope .orca-business-profile-cards {
	align-items: stretch;
}

.orca-frontend-scope .orca-business-profile-card {
	display: grid;
	gap: 12px;
}

.orca-frontend-scope .orca-business-profile-actions {
	display: flex;
	justify-content: flex-end;
}

.orca-frontend-scope.orca-products-services-wrap {
	margin: 28px auto;
}

.orca-frontend-scope .orca-products-services-section {
	display: grid;
	gap: 16px;
}

.orca-frontend-scope .orca-products-services-header {
	align-items: flex-start;
}

.orca-frontend-scope .orca-products-services-stats {
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	max-width: 560px;
}

.orca-frontend-scope .orca-products-services-empty-state {
	margin: 0;
}

.orca-frontend-scope .orca-products-services-list {
	display: grid;
	gap: 14px;
}

.orca-frontend-scope .orca-products-services-item-card {
	display: grid;
	gap: 14px;
	border: 1px solid #cfe0ff;
}

.orca-frontend-scope .orca-products-services-item-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.orca-frontend-scope .orca-products-services-item-title-wrap {
	display: grid;
	gap: 6px;
}

.orca-frontend-scope .orca-products-services-item-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.orca-frontend-scope .orca-products-services-item-form {
	display: grid;
	gap: 12px;
}

.orca-frontend-scope .orca-products-services-form-grid {
	gap: 12px;
}

.orca-frontend-scope .orca-products-services-span-2 {
	grid-column: span 2;
}

.orca-frontend-scope .orca-products-services-featured {
	display: grid;
	align-content: start;
}

.orca-frontend-scope .orca-products-services-featured-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope .orca-products-services-featured-toggle input[type="checkbox"] {
	width: auto;
	margin: 0;
}

.orca-frontend-scope .orca-products-services-item-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.orca-frontend-scope .orca-products-services-delete-form {
	margin: 0;
}

.orca-frontend-scope .orca-products-services-create-card {
	border: 1px solid #bfdbfe;
	background: linear-gradient(155deg, #f8fbff 0%, #eff6ff 100%);
	display: grid;
	gap: 12px;
}

.orca-frontend-scope.orca-ai-settings-wrap {
	margin: 28px auto;
}

.orca-frontend-scope .orca-ai-settings-section {
	display: grid;
	gap: 16px;
}

.orca-frontend-scope .orca-ai-settings-header {
	align-items: flex-start;
}

.orca-frontend-scope .orca-ai-settings-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.orca-frontend-scope .orca-ai-settings-stats {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	max-width: 760px;
}

.orca-frontend-scope .orca-ai-settings-form {
	display: grid;
	gap: 16px;
}

.orca-frontend-scope .orca-ai-settings-grid {
	align-items: stretch;
}

.orca-frontend-scope .orca-ai-settings-card {
	display: grid;
	gap: 12px;
	border: 1px solid #cfe0ff;
}

.orca-frontend-scope .orca-ai-settings-card-wide {
	grid-column: span 2;
}

.orca-frontend-scope .orca-ai-settings-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope .orca-ai-settings-toggle input[type="checkbox"] {
	width: auto;
	margin: 0;
}

.orca-frontend-scope .orca-ai-settings-source-note {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope .orca-ai-settings-actions {
	display: flex;
	justify-content: flex-end;
}

.orca-frontend-scope .orca-ai-context-preview-card {
	border: 1px solid #bfdbfe;
	background: linear-gradient(155deg, #f8fbff 0%, #eff6ff 100%);
	display: grid;
	gap: 12px;
}

.orca-frontend-scope .orca-ai-context-preview-list {
	display: grid;
	gap: 10px;
}

.orca-frontend-scope .orca-ai-context-preview-item {
	padding: 12px;
	border: 1px solid #dbeafe;
	border-radius: 12px;
	background: #ffffff;
	display: grid;
	gap: 6px;
}

.orca-frontend-scope .orca-ai-context-preview-label {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: #1d4ed8;
}

.orca-frontend-scope .orca-ai-context-preview-value {
	margin: 0;
	color: var(--orca-ui-text);
	white-space: pre-wrap;
}

.orca-frontend-scope .orca-ai-settings-source-card {
	display: grid;
	gap: 12px;
}

.orca-frontend-scope .orca-ai-settings-source-list {
	display: grid;
	gap: 10px;
}

.orca-frontend-scope .orca-ai-settings-source-item {
	padding: 12px;
	border: 1px solid #dbeafe;
	border-radius: 12px;
	background: #ffffff;
	display: grid;
	gap: 6px;
}

.orca-frontend-scope .orca-ai-settings-source-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.orca-frontend-scope .orca-ai-settings-source-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--orca-ui-text);
}

.orca-frontend-scope .orca-ai-settings-source-value {
	margin: 0;
	font-size: 13px;
	color: var(--orca-ui-muted);
	word-break: break-word;
}

.orca-frontend-scope.orca-whatsapp-settings-wrap {
	margin: 28px auto;
}

.orca-frontend-scope .orca-whatsapp-settings-section {
	display: grid;
	gap: 16px;
}

.orca-frontend-scope .orca-whatsapp-settings-header {
	align-items: flex-start;
}

.orca-frontend-scope .orca-whatsapp-settings-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.orca-frontend-scope .orca-whatsapp-settings-stats {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	max-width: 760px;
}

.orca-frontend-scope .orca-whatsapp-settings-form {
	display: grid;
	gap: 16px;
}

.orca-frontend-scope .orca-whatsapp-settings-grid {
	align-items: stretch;
}

.orca-frontend-scope .orca-whatsapp-settings-card {
	display: grid;
	gap: 12px;
	border: 1px solid #cfe0ff;
}

.orca-frontend-scope .orca-whatsapp-settings-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope .orca-whatsapp-settings-toggle input[type="checkbox"] {
	width: auto;
	margin: 0;
}

.orca-frontend-scope .orca-whatsapp-settings-source-note {
	margin: 6px 0 0;
	font-size: 12px;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope .orca-whatsapp-settings-actions {
	display: flex;
	justify-content: flex-end;
}

.orca-frontend-scope .orca-whatsapp-connection-card {
	display: grid;
	gap: 12px;
	border: 1px solid #bfdbfe;
	background: linear-gradient(155deg, #f8fbff 0%, #eff6ff 100%);
}

.orca-frontend-scope .orca-whatsapp-connection-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 10px;
}

.orca-frontend-scope.orca-analytics-wrap {
	margin: 28px auto;
}

.orca-frontend-scope .orca-analytics-section {
	display: grid;
	gap: 16px;
}

.orca-frontend-scope .orca-analytics-header {
	align-items: flex-start;
}

.orca-frontend-scope .orca-analytics-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.orca-frontend-scope .orca-analytics-stats-grid {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.orca-frontend-scope .orca-analytics-empty-state {
	margin: 0;
}

.orca-frontend-scope .orca-analytics-recent-card {
	display: grid;
	gap: 12px;
	border: 1px solid #bfdbfe;
	background: linear-gradient(155deg, #f8fbff 0%, #eff6ff 100%);
}

.orca-frontend-scope .orca-analytics-recent-list {
	display: grid;
	gap: 10px;
}

.orca-frontend-scope .orca-analytics-recent-item {
	padding: 12px;
	border: 1px solid #dbeafe;
	border-radius: 12px;
	background: #ffffff;
	display: grid;
	gap: 6px;
}

.orca-frontend-scope .orca-analytics-recent-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.orca-frontend-scope .orca-analytics-recent-date {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--orca-ui-text);
}

.orca-frontend-scope .orca-analytics-recent-meta {
	margin: 0;
	font-size: 13px;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope.orca-account-plan-wrap {
	margin: 28px auto;
}

.orca-frontend-scope .orca-account-plan-section {
	display: grid;
	gap: 16px;
}

.orca-frontend-scope .orca-account-plan-header {
	align-items: flex-start;
}

.orca-frontend-scope .orca-account-plan-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.orca-frontend-scope .orca-account-plan-stats {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.orca-frontend-scope .orca-account-plan-features-card {
	display: grid;
	gap: 12px;
	border: 1px solid #bfdbfe;
	background: linear-gradient(155deg, #f8fbff 0%, #eff6ff 100%);
}

.orca-frontend-scope .orca-account-plan-features-list {
	margin: 0;
	padding-left: 18px;
	display: grid;
	gap: 6px;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope .orca-account-plan-support-card {
	display: grid;
	gap: 10px;
}

.orca-frontend-scope .orca-account-plan-support-note {
	margin: 0;
	font-size: 14px;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope .orca-portal-message-card {
	max-width: 640px;
	margin: 0 auto;
	display: grid;
	gap: 12px;
	text-align: center;
}

.orca-frontend-scope .orca-portal-message-card-info {
	border-color: #bfdbfe;
	background: linear-gradient(150deg, #eff6ff 0%, #f8fafc 100%);
}

.orca-frontend-scope .orca-portal-message-card-error {
	border-color: #fecaca;
	background: linear-gradient(150deg, #fff1f2 0%, #f8fafc 100%);
}

.orca-frontend-scope .orca-portal-message-actions {
	margin-top: 4px;
}

.orca-frontend-scope .orca-portal-message-button {
	min-width: 160px;
}

@media (max-width: 900px) {
	.orca-frontend-scope .orca-ui-section-header {
		flex-direction: column;
	}

	.orca-frontend-scope .orca-portal-shell-account {
		width: 100%;
		min-width: 0;
	}

	.orca-frontend-scope .orca-products-services-item-head {
		flex-direction: column;
	}
}

@media (max-width: 768px) {
	.orca-frontend-scope .orca-ui-form-grid-2 {
		grid-template-columns: 1fr;
	}

	.orca-frontend-scope .orca-dashboard-card-value {
		font-size: 25px;
	}

	.orca-frontend-scope .orca-business-profile-actions .orca-ui-button {
		width: 100%;
	}

	.orca-frontend-scope .orca-products-services-span-2 {
		grid-column: auto;
	}

	.orca-frontend-scope .orca-ai-settings-card-wide {
		grid-column: auto;
	}

	.orca-frontend-scope .orca-products-services-item-actions .orca-ui-button,
	.orca-frontend-scope .orca-products-services-delete-form .orca-ui-button,
	.orca-frontend-scope .orca-ai-settings-actions .orca-ui-button,
	.orca-frontend-scope .orca-whatsapp-settings-actions .orca-ui-button {
		width: 100%;
	}
}

@media (max-width: 640px) {
	.orca-frontend-scope .orca-ui-tab-link {
		width: 100%;
	}

	.orca-frontend-scope .orca-ui-tab-item {
		flex: 1 1 100%;
	}

	.orca-frontend-scope .orca-dashboard-quick-actions .orca-ui-button {
		width: 100%;
	}
}

/* Phase: ORCA customer portal premium card-style design system refresh */
.orca-frontend-scope {
	--orca-ui-canvas: #f3f6fb;
	--orca-ui-surface: #ffffff;
	--orca-ui-surface-soft: #f8faff;
	--orca-ui-text: #0f172a;
	--orca-ui-muted: #5b6b82;
	--orca-ui-border: #d4ddeb;
	--orca-ui-border-soft: #e4ebf5;
	--orca-ui-brand: #2451d4;
	--orca-ui-brand-strong: #1e3fa8;
	--orca-ui-brand-soft: #e6edff;
	--orca-ui-success: #166534;
	--orca-ui-success-soft: #dcfce7;
	--orca-ui-warning: #92400e;
	--orca-ui-warning-soft: #fef3c7;
	--orca-ui-error: #991b1b;
	--orca-ui-error-soft: #fee2e2;
	--orca-ui-shadow-soft: 0 12px 28px rgba(15, 23, 42, 0.07);
	--orca-ui-shadow-card: 0 2px 6px rgba(15, 23, 42, 0.04), 0 16px 34px rgba(15, 23, 42, 0.05);
	--orca-ui-focus-ring: 0 0 0 3px rgba(36, 81, 212, 0.2);
	color: var(--orca-ui-text);
}

.orca-frontend-scope.orca-portal-wrap,
.orca-frontend-scope.orca-analytics-wrap {
	padding-left: 8px;
	padding-right: 8px;
}

.orca-frontend-scope .orca-ui-card {
	background: var(--orca-ui-surface);
	border: 1px solid var(--orca-ui-border-soft);
	border-radius: 18px;
	padding: 22px;
	box-shadow: var(--orca-ui-shadow-card);
}

.orca-frontend-scope .orca-portal-shell-header,
.orca-frontend-scope .orca-business-profile-header,
.orca-frontend-scope .orca-products-services-header,
.orca-frontend-scope .orca-ai-settings-header,
.orca-frontend-scope .orca-whatsapp-settings-header,
.orca-frontend-scope .orca-analytics-header,
.orca-frontend-scope .orca-account-plan-header,
.orca-frontend-scope .orca-ui-page-header {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--orca-ui-border-soft);
}

.orca-frontend-scope .orca-ui-section-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
}

.orca-frontend-scope .orca-ui-section-block {
	display: grid;
	gap: 10px;
	min-width: 0;
}

.orca-frontend-scope .orca-ui-section-eyebrow {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	margin: 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--orca-ui-brand-soft);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--orca-ui-brand-strong);
}

.orca-frontend-scope .orca-ui-section-title {
	margin: 0;
	font-size: clamp(1.1rem, 1.55vw, 1.5rem);
	font-weight: 700;
	letter-spacing: -0.015em;
	line-height: 1.3;
	color: var(--orca-ui-text);
}

.orca-frontend-scope .orca-ui-section-subtitle {
	margin: 0;
	max-width: 74ch;
	font-size: 0.95rem;
	line-height: 1.6;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope .orca-ui-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
}

.orca-frontend-scope .orca-ui-stats-card {
	position: relative;
	display: grid;
	gap: 8px;
	padding: 15px 16px;
	border: 1px solid var(--orca-ui-border-soft);
	border-radius: 14px;
	background: linear-gradient(180deg, #ffffff 0%, var(--orca-ui-surface-soft) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.orca-frontend-scope .orca-ui-stats-card::before {
	content: "";
	display: block;
	width: 34px;
	height: 2px;
	border-radius: 999px;
	background: rgba(36, 81, 212, 0.25);
}

.orca-frontend-scope .orca-ui-stats-label {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b7890;
}

.orca-frontend-scope .orca-ui-stats-value {
	margin: 0;
	font-size: clamp(1rem, 2.2vw, 1.55rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--orca-ui-text);
	word-break: break-word;
}

.orca-frontend-scope .orca-portal-shell-account,
.orca-frontend-scope .orca-products-services-item-card,
.orca-frontend-scope .orca-ai-context-preview-item,
.orca-frontend-scope .orca-ai-settings-source-item,
.orca-frontend-scope .orca-analytics-recent-item,
.orca-frontend-scope .orca-ui-info-card {
	border-color: var(--orca-ui-border);
	background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 10px 20px rgba(15, 23, 42, 0.05);
}

.orca-frontend-scope .orca-ui-chip,
.orca-frontend-scope .orca-ui-badge,
.orca-frontend-scope .orca-status-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 11px;
	border-radius: 999px;
	border: 1px solid transparent;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	white-space: nowrap;
}

.orca-frontend-scope .orca-ui-badge-success,
.orca-frontend-scope .orca-status-pill.is-success {
	color: var(--orca-ui-success);
	background: var(--orca-ui-success-soft);
	border-color: #9fe6bc;
}

.orca-frontend-scope .orca-ui-badge-warning,
.orca-frontend-scope .orca-status-pill.is-warning {
	color: var(--orca-ui-warning);
	background: var(--orca-ui-warning-soft);
	border-color: #f8df8c;
}

.orca-frontend-scope .orca-ui-badge-error,
.orca-frontend-scope .orca-status-pill.is-error {
	color: var(--orca-ui-error);
	background: var(--orca-ui-error-soft);
	border-color: #fecaca;
}

.orca-frontend-scope .orca-ui-button,
.orca-frontend-scope .orca-quick-action-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 10px 16px;
	border-radius: 12px;
	border: 1px solid transparent;
	font-size: 13px;
	font-weight: 650;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.orca-frontend-scope .orca-ui-button:focus-visible,
.orca-frontend-scope .orca-quick-action-button:focus-visible {
	outline: none;
	box-shadow: var(--orca-ui-focus-ring);
}

.orca-frontend-scope .orca-ui-button-primary {
	color: #ffffff;
	background: linear-gradient(180deg, #2f61ea 0%, #2451d4 100%);
	border-color: #2451d4;
	box-shadow: 0 10px 20px rgba(36, 81, 212, 0.24);
}

.orca-frontend-scope .orca-ui-button-primary:hover {
	transform: translateY(-1px);
	background: linear-gradient(180deg, #2a5ae0 0%, #1f48bf 100%);
	border-color: #1f48bf;
}

.orca-frontend-scope .orca-ui-button-secondary {
	color: #23314e;
	background: #ffffff;
	border-color: var(--orca-ui-border);
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.orca-frontend-scope .orca-ui-button-secondary:hover {
	transform: translateY(-1px);
	border-color: #b7c8ea;
	color: var(--orca-ui-brand-strong);
}

.orca-frontend-scope .orca-ui-button-danger {
	color: #ffffff;
	background: linear-gradient(180deg, #cd3a3a 0%, #b42323 100%);
	border-color: #b42323;
}

.orca-frontend-scope .orca-ui-button-danger:hover {
	transform: translateY(-1px);
	background: linear-gradient(180deg, #bf3333 0%, #9f1f1f 100%);
	border-color: #9f1f1f;
}

.orca-frontend-scope .orca-ui-form-group input,
.orca-frontend-scope .orca-ui-form-group select,
.orca-frontend-scope .orca-ui-form-group textarea {
	width: 100%;
	min-height: 42px;
	padding: 11px 12px;
	border-radius: 12px;
	border: 1px solid var(--orca-ui-border);
	background: #ffffff;
	box-sizing: border-box;
	font: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.orca-frontend-scope .orca-ui-form-group textarea {
	min-height: 120px;
}

.orca-frontend-scope .orca-ui-form-group input:focus,
.orca-frontend-scope .orca-ui-form-group select:focus,
.orca-frontend-scope .orca-ui-form-group textarea:focus {
	border-color: #9cb5ec;
	box-shadow: var(--orca-ui-focus-ring);
	outline: none;
}

.orca-frontend-scope .orca-ui-empty-state,
.orca-frontend-scope .orca-empty-state {
	display: grid;
	gap: 8px;
	padding: 18px;
	border-radius: 16px;
	border: 1px dashed #c6d7f6;
	background: linear-gradient(160deg, #f9fbff 0%, #edf3ff 100%);
}

.orca-frontend-scope .orca-ui-empty-title,
.orca-frontend-scope .orca-empty-state-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--orca-ui-text);
}

.orca-frontend-scope .orca-ui-empty-description,
.orca-frontend-scope .orca-empty-state-desc {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope .orca-ui-summary-panel,
.orca-frontend-scope .orca-dashboard-welcome-card,
.orca-frontend-scope .orca-account-plan-features-card,
.orca-frontend-scope .orca-whatsapp-connection-card,
.orca-frontend-scope .orca-ai-context-preview-card,
.orca-frontend-scope .orca-analytics-recent-card,
.orca-frontend-scope .orca-products-services-create-card {
	border-radius: 20px;
	border-color: #cfdcf4;
	background: linear-gradient(156deg, #ffffff 0%, #f5f8ff 58%, #edf3ff 100%);
	box-shadow: 0 16px 30px rgba(56, 87, 153, 0.08);
}

.orca-frontend-scope .orca-ui-tabs {
	padding: 12px;
	border-radius: 18px;
	border: 1px solid var(--orca-ui-border-soft);
	background: #f2f5fb;
}

.orca-frontend-scope .orca-ui-tab-link {
	min-height: 38px;
	padding: 9px 14px;
	border-radius: 999px;
	border: 1px solid var(--orca-ui-border);
	background: #ffffff;
	color: #23314e;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.orca-frontend-scope .orca-ui-tab-link:hover {
	border-color: #b4c6ea;
	color: var(--orca-ui-brand-strong);
}

.orca-frontend-scope .orca-ui-tab-link.is-active {
	color: #ffffff;
	background: linear-gradient(180deg, #2e61ea 0%, #2451d4 100%);
	border-color: #2451d4;
	box-shadow: 0 10px 18px rgba(36, 81, 212, 0.28);
}

.orca-frontend-scope .orca-portal-shell {
	display: grid;
	gap: 24px;
	padding: 24px;
	border-radius: 24px;
	border: 1px solid var(--orca-ui-border);
	background:
		radial-gradient(circle at top right, rgba(36, 81, 212, 0.14), transparent 40%),
		linear-gradient(165deg, #f9fbff 0%, #f1f5fb 100%);
	box-shadow: 0 20px 38px rgba(15, 23, 42, 0.08);
}

.orca-frontend-scope .orca-portal-shell-content {
	display: grid;
	gap: 20px;
}

.orca-frontend-scope .orca-portal-shell-account {
	min-width: 230px;
}

.orca-frontend-scope .orca-dashboard-stack,
.orca-frontend-scope .orca-business-profile-section,
.orca-frontend-scope .orca-products-services-section,
.orca-frontend-scope .orca-ai-settings-section,
.orca-frontend-scope .orca-whatsapp-settings-section,
.orca-frontend-scope .orca-analytics-section,
.orca-frontend-scope .orca-account-plan-section {
	gap: 20px;
}

.orca-frontend-scope .orca-dashboard-card {
	gap: 12px;
}

.orca-frontend-scope .orca-dashboard-card-value {
	font-size: clamp(1.35rem, 2.5vw, 2rem);
	letter-spacing: -0.02em;
}

.orca-frontend-scope .orca-dashboard-meta-value {
	font-size: 14px;
}

.orca-frontend-scope .orca-dashboard-quick-actions,
.orca-frontend-scope .orca-products-services-item-actions,
.orca-frontend-scope .orca-ai-settings-actions,
.orca-frontend-scope .orca-whatsapp-settings-actions,
.orca-frontend-scope .orca-business-profile-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.orca-frontend-scope .orca-products-services-item-card,
.orca-frontend-scope .orca-ai-settings-card,
.orca-frontend-scope .orca-whatsapp-settings-card {
	border-color: var(--orca-ui-border);
}

.orca-frontend-scope .orca-portal-message-card {
	max-width: 660px;
	padding: 24px;
}

@media (max-width: 900px) {
	.orca-frontend-scope .orca-ui-card {
		padding: 18px;
	}

	.orca-frontend-scope .orca-portal-shell {
		padding: 18px;
		border-radius: 20px;
	}

	.orca-frontend-scope .orca-ui-section-header {
		flex-direction: column;
	}
}

@media (max-width: 768px) {
	.orca-frontend-scope.orca-portal-wrap,
	.orca-frontend-scope.orca-analytics-wrap {
		padding-left: 4px;
		padding-right: 4px;
	}

	.orca-frontend-scope .orca-portal-shell-header,
	.orca-frontend-scope .orca-business-profile-header,
	.orca-frontend-scope .orca-products-services-header,
	.orca-frontend-scope .orca-ai-settings-header,
	.orca-frontend-scope .orca-whatsapp-settings-header,
	.orca-frontend-scope .orca-analytics-header,
	.orca-frontend-scope .orca-account-plan-header,
	.orca-frontend-scope .orca-ui-page-header {
		padding-bottom: 12px;
	}

	.orca-frontend-scope .orca-ui-stats-grid {
		grid-template-columns: 1fr 1fr;
	}

	.orca-frontend-scope .orca-ui-section-title {
		font-size: 1.15rem;
	}

	.orca-frontend-scope .orca-dashboard-card-value {
		font-size: 1.55rem;
	}
}

@media (max-width: 640px) {
	.orca-frontend-scope .orca-ui-stats-grid {
		grid-template-columns: 1fr;
	}

	.orca-frontend-scope .orca-ui-button,
	.orca-frontend-scope .orca-quick-action-button {
		width: 100%;
	}
}

/* Phase: ORCA portal shell and tab navigation modern refresh */
.orca-frontend-scope .orca-portal-shell {
	gap: 26px;
	padding: 26px;
	border-radius: 26px;
	border: 1px solid #cad8f0;
	background:
		radial-gradient(circle at top right, rgba(47, 97, 234, 0.18), transparent 42%),
		linear-gradient(165deg, #fbfdff 0%, #f3f7ff 52%, #edf3ff 100%);
	box-shadow: 0 24px 46px rgba(15, 23, 42, 0.1);
}

.orca-frontend-scope .orca-portal-shell-header {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
	align-items: stretch;
	gap: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #d8e2f4;
}

.orca-frontend-scope .orca-portal-shell-heading {
	display: grid;
	gap: 12px;
	padding-top: 4px;
}

.orca-frontend-scope .orca-portal-shell-heading .orca-ui-section-title {
	font-size: clamp(1.28rem, 1.8vw, 1.72rem);
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.orca-frontend-scope .orca-portal-shell-description {
	max-width: 68ch;
}

.orca-frontend-scope .orca-portal-shell-account {
	display: grid;
	gap: 10px;
	align-content: start;
	padding: 18px;
	min-width: 0;
	border-radius: 18px;
	border: 1px solid #cfdcf2;
	background: linear-gradient(165deg, #ffffff 0%, #f6f9ff 100%);
	box-shadow: 0 10px 24px rgba(36, 81, 212, 0.08);
}

.orca-frontend-scope .orca-portal-shell-account-name {
	font-size: 17px;
	line-height: 1.35;
}

.orca-frontend-scope .orca-portal-shell-account-meta {
	margin-top: 0;
	font-size: 13px;
	line-height: 1.45;
}

.orca-frontend-scope .orca-portal-shell-account-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 2px;
}

.orca-frontend-scope .orca-portal-shell-account-chips .orca-status-pill {
	padding: 6px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-transform: none;
}

.orca-frontend-scope .orca-portal-shell-nav {
	padding: 8px;
	border-radius: 16px;
	border: 1px solid #d3ddef;
	background: linear-gradient(180deg, #f7f9ff 0%, #eef3fb 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.orca-frontend-scope .orca-portal-tab-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.orca-frontend-scope .orca-portal-tab-item {
	margin: 0;
}

.orca-frontend-scope .orca-portal-tab-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 10px 16px;
	border-radius: 999px;
	border: 1px solid transparent;
	background: transparent;
	color: #2e3b56;
	font-size: 13px;
	font-weight: 650;
	line-height: 1.1;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: transform 0.15s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.orca-frontend-scope .orca-portal-tab-link:hover {
	transform: translateY(-1px);
	color: #1e3fa8;
	background: #ffffff;
	border-color: #c2d1ee;
	box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}

.orca-frontend-scope .orca-portal-tab-link.is-active {
	transform: none;
	color: #ffffff;
	background: linear-gradient(180deg, #2f62eb 0%, #244ecf 100%);
	border-color: #244ecf;
	font-weight: 700;
	box-shadow: 0 10px 22px rgba(36, 78, 207, 0.34);
}

@media (max-width: 960px) {
	.orca-frontend-scope .orca-portal-shell {
		padding: 20px;
	}

	.orca-frontend-scope .orca-portal-shell-header {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 720px) {
	.orca-frontend-scope .orca-portal-tab-item {
		flex: 1 1 calc(50% - 8px);
	}

	.orca-frontend-scope .orca-portal-tab-link {
		width: 100%;
	}
}

@media (max-width: 520px) {
	.orca-frontend-scope .orca-portal-tab-item {
		flex-basis: 100%;
	}
}

/* Phase: ORCA dashboard tab modern SaaS hierarchy refresh */
.orca-frontend-scope .orca-dashboard-layout {
	display: grid;
	gap: 20px;
}

.orca-frontend-scope .orca-dashboard-hero-row {
	display: grid;
	grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
	gap: 16px;
	align-items: stretch;
}

.orca-frontend-scope .orca-dashboard-welcome-card {
	display: grid;
	gap: 16px;
	border-color: #c7d9ff;
	background:
		radial-gradient(circle at top left, rgba(45, 99, 235, 0.16), transparent 40%),
		linear-gradient(165deg, #fafdff 0%, #f3f8ff 52%, #eef4ff 100%);
}

.orca-frontend-scope .orca-dashboard-welcome-meta {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.orca-frontend-scope .orca-dashboard-welcome-meta .orca-ui-stats-card {
	min-height: 88px;
}

.orca-frontend-scope .orca-dashboard-actions-hero-card {
	display: grid;
	gap: 14px;
	border-color: #d5e0f4;
	background: linear-gradient(175deg, #ffffff 0%, #f6f9ff 100%);
}

.orca-frontend-scope .orca-dashboard-actions-hero-card .orca-ui-section-header {
	padding-bottom: 10px;
	border-bottom: 1px solid #e2e9f5;
}

.orca-frontend-scope .orca-dashboard-quick-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.orca-frontend-scope .orca-dashboard-quick-actions .orca-ui-button {
	width: 100%;
}

.orca-frontend-scope .orca-dashboard-metrics-row {
	display: grid;
	gap: 14px;
	border-color: #cfdcf4;
	background: linear-gradient(160deg, #ffffff 0%, #f7faff 100%);
}

.orca-frontend-scope .orca-dashboard-metrics-row .orca-dashboard-card-head {
	padding-bottom: 10px;
	border-bottom: 1px solid #e2e9f5;
}

.orca-frontend-scope .orca-dashboard-metrics-row .orca-dashboard-analytics-grid {
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
}

.orca-frontend-scope .orca-dashboard-context-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 14px;
}

.orca-frontend-scope .orca-dashboard-context-grid .orca-dashboard-card {
	grid-column: span 6;
	display: grid;
	gap: 12px;
	min-height: 220px;
}

.orca-frontend-scope .orca-dashboard-context-grid .orca-dashboard-card-plan {
	grid-column: span 12;
	min-height: 0;
}

.orca-frontend-scope .orca-dashboard-context-grid .orca-dashboard-card-whatsapp,
.orca-frontend-scope .orca-dashboard-context-grid .orca-dashboard-card-ai,
.orca-frontend-scope .orca-dashboard-context-grid .orca-dashboard-card-business {
	grid-column: span 4;
}

.orca-frontend-scope .orca-dashboard-card-plan {
	border-color: #d3e0fa;
	background: linear-gradient(160deg, #fbfdff 0%, #f3f8ff 100%);
}

.orca-frontend-scope .orca-dashboard-card-whatsapp,
.orca-frontend-scope .orca-dashboard-card-ai,
.orca-frontend-scope .orca-dashboard-card-business {
	border-color: #d8e2f5;
	background: linear-gradient(170deg, #ffffff 0%, #f8fbff 100%);
}

.orca-frontend-scope .orca-dashboard-card .orca-ui-section-title {
	font-size: 18px;
	line-height: 1.35;
}

.orca-frontend-scope .orca-dashboard-card-value {
	font-size: clamp(1.28rem, 1.95vw, 1.8rem);
	line-height: 1.28;
}

.orca-frontend-scope .orca-dashboard-card .orca-ui-section-subtitle {
	font-size: 14px;
	line-height: 1.6;
}

.orca-frontend-scope .orca-dashboard-help-state {
	margin-top: 2px;
}

@media (max-width: 1100px) {
	.orca-frontend-scope .orca-dashboard-hero-row {
		grid-template-columns: 1fr;
	}

	.orca-frontend-scope .orca-dashboard-metrics-row .orca-dashboard-analytics-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.orca-frontend-scope .orca-dashboard-context-grid .orca-dashboard-card-whatsapp,
	.orca-frontend-scope .orca-dashboard-context-grid .orca-dashboard-card-ai,
	.orca-frontend-scope .orca-dashboard-context-grid .orca-dashboard-card-business {
		grid-column: span 6;
	}
}

@media (max-width: 820px) {
	.orca-frontend-scope .orca-dashboard-welcome-meta {
		grid-template-columns: 1fr;
	}

	.orca-frontend-scope .orca-dashboard-quick-actions {
		grid-template-columns: 1fr;
	}

	.orca-frontend-scope .orca-dashboard-metrics-row .orca-dashboard-analytics-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.orca-frontend-scope .orca-dashboard-context-grid {
		grid-template-columns: repeat(6, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.orca-frontend-scope .orca-dashboard-metrics-row .orca-dashboard-analytics-grid {
		grid-template-columns: 1fr;
	}

	.orca-frontend-scope .orca-dashboard-context-grid {
		grid-template-columns: 1fr;
	}

	.orca-frontend-scope .orca-dashboard-context-grid .orca-dashboard-card,
	.orca-frontend-scope .orca-dashboard-context-grid .orca-dashboard-card-plan,
	.orca-frontend-scope .orca-dashboard-context-grid .orca-dashboard-card-whatsapp,
	.orca-frontend-scope .orca-dashboard-context-grid .orca-dashboard-card-ai,
	.orca-frontend-scope .orca-dashboard-context-grid .orca-dashboard-card-business {
		grid-column: auto;
	}
}

/* Phase: ORCA current plan hero card refresh */
.orca-frontend-scope .orca-account-plan-hero-card {
	display: grid;
	gap: 16px;
	padding: 24px;
	border-radius: 22px;
	border: 1px solid #c8d8f7;
	background:
		radial-gradient(circle at top right, rgba(47, 98, 235, 0.16), transparent 42%),
		linear-gradient(165deg, #fdfefe 0%, #f4f8ff 56%, #edf3ff 100%);
	box-shadow: 0 18px 34px rgba(36, 78, 207, 0.12);
}

.orca-frontend-scope .orca-account-plan-hero-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.orca-frontend-scope .orca-account-plan-hero-title {
	font-size: clamp(1.4rem, 2.5vw, 1.95rem);
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.orca-frontend-scope .orca-account-plan-hero-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.orca-frontend-scope .orca-account-plan-hero-badges .orca-status-pill {
	padding: 7px 11px;
	font-size: 11px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0.01em;
}

.orca-frontend-scope .orca-account-plan-tier-chip {
	background: linear-gradient(180deg, #2f62eb 0%, #244ecf 100%);
	border-color: #244ecf;
	color: #ffffff;
	box-shadow: 0 8px 16px rgba(36, 78, 207, 0.26);
}

.orca-frontend-scope .orca-account-plan-hero-meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.orca-frontend-scope .orca-account-plan-hero-meta-item {
	padding: 14px;
	border-radius: 14px;
	border: 1px solid #d6e3fb;
	background: rgba(255, 255, 255, 0.86);
}

.orca-frontend-scope .orca-account-plan-hero-meta-value {
	font-size: 1.12rem;
}

.orca-frontend-scope .orca-account-plan-hero-support {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope .orca-account-plan-hero-features {
	display: grid;
	gap: 10px;
	padding: 14px;
	border-radius: 14px;
	border: 1px solid #d6e3fb;
	background: rgba(255, 255, 255, 0.86);
}

.orca-frontend-scope .orca-account-plan-highlight-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 8px;
}

.orca-frontend-scope .orca-account-plan-highlight-list li {
	position: relative;
	padding-left: 22px;
	font-size: 14px;
	line-height: 1.5;
	color: #1f2a44;
}

.orca-frontend-scope .orca-account-plan-highlight-list li::before {
	content: "";
	position: absolute;
	top: 8px;
	left: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2f62eb;
	box-shadow: 0 0 0 4px rgba(47, 98, 235, 0.15);
}

.orca-frontend-scope .orca-account-plan-features-card {
	border: 1px solid #d4e1f7;
	background: linear-gradient(170deg, #ffffff 0%, #f7faff 100%);
}

.orca-frontend-scope .orca-account-plan-features-list {
	list-style: none;
	padding-left: 0;
}

.orca-frontend-scope .orca-account-plan-features-list li {
	position: relative;
	padding-left: 22px;
}

.orca-frontend-scope .orca-account-plan-features-list li::before {
	content: "";
	position: absolute;
	top: 8px;
	left: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #2f62eb;
	box-shadow: 0 0 0 4px rgba(47, 98, 235, 0.15);
}

.orca-frontend-scope .orca-account-plan-support-card {
	border: 1px solid #d8e2f5;
	background: linear-gradient(170deg, #ffffff 0%, #f8fbff 100%);
}

@media (max-width: 900px) {
	.orca-frontend-scope .orca-account-plan-hero-head {
		flex-direction: column;
	}

	.orca-frontend-scope .orca-account-plan-hero-meta {
		grid-template-columns: 1fr;
	}
}

/* Phase: ORCA business profile summary/read-view refresh */
.orca-frontend-scope .orca-business-profile-summary-card {
	display: grid;
	gap: 16px;
	padding: 22px;
	border-radius: 20px;
	border: 1px solid #cddcf5;
	background:
		radial-gradient(circle at top right, rgba(36, 81, 212, 0.12), transparent 44%),
		linear-gradient(165deg, #fcfeff 0%, #f4f8ff 100%);
	box-shadow: 0 14px 28px rgba(36, 78, 207, 0.1);
}

.orca-frontend-scope .orca-business-profile-summary-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
}

.orca-frontend-scope .orca-business-profile-summary-item {
	min-height: 96px;
}

.orca-frontend-scope .orca-business-profile-summary-value {
	font-size: 1rem;
}

.orca-frontend-scope .orca-business-profile-summary-value.is-empty {
	font-size: 0.92rem;
	font-weight: 600;
	color: #7888a2;
}

.orca-frontend-scope .orca-business-profile-summary-blocks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.orca-frontend-scope .orca-business-profile-summary-block {
	display: grid;
	gap: 10px;
	padding: 14px;
	border-radius: 14px;
	border: 1px solid #d9e4f8;
	background: rgba(255, 255, 255, 0.88);
}

.orca-frontend-scope .orca-business-profile-summary-block .orca-ui-section-title {
	font-size: 17px;
}

.orca-frontend-scope .orca-business-profile-detail-table-wrap {
	overflow-x: auto;
}

.orca-frontend-scope .orca-business-profile-detail-table {
	width: 100%;
	border-collapse: collapse;
}

.orca-frontend-scope .orca-business-profile-detail-table th,
.orca-frontend-scope .orca-business-profile-detail-table td {
	padding: 10px 0;
	border-bottom: 1px solid #e3eaf6;
	vertical-align: top;
}

.orca-frontend-scope .orca-business-profile-detail-table tr:last-child th,
.orca-frontend-scope .orca-business-profile-detail-table tr:last-child td {
	border-bottom: 0;
}

.orca-frontend-scope .orca-business-profile-detail-table th {
	width: 36%;
	padding-right: 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #5f6f89;
}

.orca-frontend-scope .orca-business-profile-detail-table td {
	font-size: 14px;
	line-height: 1.55;
	color: #22314e;
}

.orca-frontend-scope .orca-business-profile-detail-value {
	display: block;
	white-space: pre-wrap;
	word-break: break-word;
}

.orca-frontend-scope .orca-business-profile-detail-value.is-empty {
	font-style: italic;
	color: #7a8aa4;
}

.orca-frontend-scope .orca-business-profile-editor-intro {
	padding: 4px 0 2px;
	border-top: 1px solid #deE7f8;
}

@media (max-width: 1024px) {
	.orca-frontend-scope .orca-business-profile-summary-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.orca-frontend-scope .orca-business-profile-summary-blocks {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.orca-frontend-scope .orca-business-profile-summary-grid {
		grid-template-columns: 1fr;
	}

	.orca-frontend-scope .orca-business-profile-detail-table th,
	.orca-frontend-scope .orca-business-profile-detail-table td {
		display: block;
		width: 100%;
		padding: 6px 0;
	}

	.orca-frontend-scope .orca-business-profile-detail-table th {
		padding-right: 0;
	}
}

/* Phase: ORCA products/services modern data table and client-side filters */
.orca-frontend-scope .orca-products-services-table-card {
	display: grid;
	gap: 14px;
	padding: 16px;
	border: 1px solid #d6e3f8;
	border-radius: 16px;
	background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.orca-frontend-scope .orca-products-services-table-toolbar {
	display: grid;
	grid-template-columns: minmax(260px, 1.8fr) repeat(3, minmax(140px, 1fr));
	gap: 10px;
	align-items: end;
}

.orca-frontend-scope .orca-products-services-toolbar-search input[type="search"] {
	min-height: 44px;
}

.orca-frontend-scope .orca-products-services-filter-summary {
	margin: 0;
	font-size: 13px;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope .orca-products-services-table-wrap {
	overflow-x: auto;
	border: 1px solid #d8e2f3;
	border-radius: 14px;
	background: #ffffff;
}

.orca-frontend-scope .orca-products-services-table {
	width: 100%;
	min-width: 920px;
	border-collapse: separate;
	border-spacing: 0;
}

.orca-frontend-scope .orca-products-services-table thead th {
	padding: 12px 14px;
	border-bottom: 1px solid #dbe6f8;
	background: linear-gradient(180deg, #f8fbff 0%, #f1f6ff 100%);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: left;
	color: #5f6f89;
	white-space: nowrap;
}

.orca-frontend-scope .orca-products-services-table tbody td {
	padding: 12px 14px;
	border-bottom: 1px solid #e4ebf7;
	vertical-align: middle;
	background: #ffffff;
}

.orca-frontend-scope .orca-products-services-table tbody tr:last-child td {
	border-bottom: 0;
}

.orca-frontend-scope .orca-products-services-table-row {
	transition: background-color 0.2s ease;
}

.orca-frontend-scope .orca-products-services-table-row:hover td {
	background: #f8fbff;
}

.orca-frontend-scope .orca-products-services-table-row.is-editing td {
	background: #f3f8ff;
}

.orca-frontend-scope .orca-products-services-table-name {
	display: inline-block;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	color: #1f2e47;
	word-break: break-word;
}

.orca-frontend-scope .orca-products-services-table-meta {
	font-size: 13px;
	line-height: 1.45;
	color: #30425f;
	word-break: break-word;
}

.orca-frontend-scope .orca-products-services-table-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.orca-frontend-scope .orca-products-services-table-actions .orca-ui-button {
	min-width: 84px;
}

.orca-frontend-scope .orca-products-services-table-actions .orca-products-services-delete-form {
	margin: 0;
}

.orca-frontend-scope .orca-products-services-edit-row td {
	padding: 0 14px 14px;
	background: #f6f9ff;
	border-bottom: 1px solid #dee7f8;
}

.orca-frontend-scope .orca-products-services-edit-panel {
	display: grid;
	gap: 12px;
	padding: 14px;
	border-radius: 14px;
	border: 1px solid #ccd9f4;
	background: linear-gradient(170deg, #ffffff 0%, #f2f6ff 100%);
}

.orca-frontend-scope .orca-products-services-edit-heading {
	display: grid;
	gap: 6px;
}

.orca-frontend-scope .orca-products-services-no-match-row td {
	padding: 18px;
	background: #f9fbff;
}

.orca-frontend-scope .orca-products-services-no-match {
	display: grid;
	gap: 6px;
	padding: 16px;
	border: 1px dashed #c9d7f4;
	border-radius: 12px;
	background: linear-gradient(160deg, #f9fbff 0%, #eef4ff 100%);
}

.orca-frontend-scope .orca-products-services-empty-state {
	position: relative;
	padding-left: 72px;
	overflow: hidden;
}

.orca-frontend-scope .orca-products-services-empty-state::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 18px;
	width: 36px;
	height: 36px;
	border-radius: 12px;
	border: 1px solid #bfd2f7;
	background: linear-gradient(160deg, #ffffff 0%, #eaf1ff 100%);
	box-shadow: 0 8px 14px rgba(36, 81, 212, 0.12);
}

.orca-frontend-scope .orca-products-services-empty-state::after {
	content: "";
	position: absolute;
	left: 31px;
	top: 29px;
	width: 14px;
	height: 14px;
	border-radius: 4px;
	background: linear-gradient(180deg, #2f61ea 0%, #2451d4 100%);
}

@media (max-width: 1100px) {
	.orca-frontend-scope .orca-products-services-table-toolbar {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	.orca-frontend-scope .orca-products-services-table-card {
		padding: 14px;
	}

	.orca-frontend-scope .orca-products-services-table-toolbar {
		grid-template-columns: 1fr;
	}

	.orca-frontend-scope .orca-products-services-table {
		min-width: 840px;
	}

	.orca-frontend-scope .orca-products-services-table-actions .orca-ui-button,
	.orca-frontend-scope .orca-products-services-table-actions .orca-products-services-delete-form .orca-ui-button {
		width: auto;
	}

	.orca-frontend-scope .orca-products-services-empty-state {
		padding-left: 18px;
	}

	.orca-frontend-scope .orca-products-services-empty-state::before,
	.orca-frontend-scope .orca-products-services-empty-state::after {
		display: none;
	}
}

@media (max-width: 640px) {
	.orca-frontend-scope .orca-products-services-table-actions .orca-ui-button,
	.orca-frontend-scope .orca-products-services-table-actions .orca-products-services-delete-form .orca-ui-button {
		width: auto;
	}
}

/* Phase: ORCA AI settings modern summary hierarchy and structured snapshot */
.orca-frontend-scope .orca-ai-settings-summary-shell {
	display: grid;
	gap: 12px;
	padding: 14px;
	border: 1px solid #d6e3f8;
	border-radius: 16px;
	background: linear-gradient(175deg, #ffffff 0%, #f5f9ff 100%);
}

.orca-frontend-scope .orca-ai-settings-summary-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.orca-frontend-scope .orca-ai-settings-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
}

.orca-frontend-scope .orca-ai-settings-summary-card {
	display: grid;
	gap: 8px;
	padding: 12px;
	border: 1px solid #dbe6f9;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 6px 16px rgba(36, 81, 212, 0.08);
}

.orca-frontend-scope .orca-ai-settings-summary-label {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5f6f89;
}

.orca-frontend-scope .orca-ai-settings-summary-value {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	color: #1f2e47;
	word-break: break-word;
}

.orca-frontend-scope .orca-ai-settings-summary-helper {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope .orca-ai-settings-snapshot-card {
	display: grid;
	gap: 12px;
	border: 1px solid #cedcf4;
	background: linear-gradient(170deg, #ffffff 0%, #f6f9ff 100%);
}

.orca-frontend-scope .orca-ai-settings-snapshot-table-wrap {
	overflow-x: auto;
	border: 1px solid #d9e4f6;
	border-radius: 14px;
	background: #ffffff;
}

.orca-frontend-scope .orca-ai-settings-snapshot-table {
	width: 100%;
	min-width: 760px;
	border-collapse: separate;
	border-spacing: 0;
}

.orca-frontend-scope .orca-ai-settings-snapshot-table thead th {
	padding: 11px 13px;
	background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
	border-bottom: 1px solid #dbe6f8;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: left;
	color: #5f6f89;
	white-space: nowrap;
}

.orca-frontend-scope .orca-ai-settings-snapshot-table tbody th,
.orca-frontend-scope .orca-ai-settings-snapshot-table tbody td {
	padding: 12px 13px;
	border-bottom: 1px solid #e4ebf7;
	vertical-align: top;
}

.orca-frontend-scope .orca-ai-settings-snapshot-table tbody tr:last-child th,
.orca-frontend-scope .orca-ai-settings-snapshot-table tbody tr:last-child td {
	border-bottom: 0;
}

.orca-frontend-scope .orca-ai-settings-snapshot-table tbody th {
	width: 22%;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	color: #20304b;
}

.orca-frontend-scope .orca-ai-settings-snapshot-value {
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	color: #23334f;
	word-break: break-word;
}

.orca-frontend-scope .orca-ai-settings-snapshot-helper {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--orca-ui-muted);
	word-break: break-word;
}

.orca-frontend-scope .orca-ai-settings-snapshot-default {
	display: block;
	font-size: 12px;
	line-height: 1.45;
	color: #5b6b82;
	word-break: break-word;
}

.orca-frontend-scope .orca-ai-context-preview-card {
	display: grid;
	gap: 14px;
	border: 1px solid #c6d8f8;
	background:
		radial-gradient(circle at top right, rgba(47, 97, 234, 0.12), transparent 52%),
		linear-gradient(165deg, #fafdff 0%, #f0f5ff 100%);
}

.orca-frontend-scope .orca-ai-context-preview-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
}

.orca-frontend-scope .orca-ai-context-preview-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.orca-frontend-scope .orca-ai-context-preview-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 10px;
}

.orca-frontend-scope .orca-ai-context-preview-item {
	display: grid;
	gap: 10px;
	padding: 12px;
	border: 1px solid #d3e0f8;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.95);
}

.orca-frontend-scope .orca-ai-context-preview-item-head {
	display: flex;
	align-items: center;
	gap: 8px;
}

.orca-frontend-scope .orca-ai-context-preview-index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	padding: 4px 8px;
	border-radius: 999px;
	border: 1px solid #bdd0f7;
	background: #eaf1ff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #1d3eaa;
}

.orca-frontend-scope .orca-ai-context-preview-label {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1d4ed8;
}

.orca-frontend-scope .orca-ai-context-preview-value {
	margin: 0;
	font-size: 13px;
	line-height: 1.58;
	color: #22324f;
	white-space: pre-wrap;
	word-break: break-word;
}

@media (max-width: 900px) {
	.orca-frontend-scope .orca-ai-context-preview-head {
		flex-direction: column;
	}
}

@media (max-width: 768px) {
	.orca-frontend-scope .orca-ai-settings-summary-grid {
		grid-template-columns: 1fr;
	}

	.orca-frontend-scope .orca-ai-settings-snapshot-table {
		min-width: 700px;
	}
}

/* Phase: ORCA WhatsApp settings professional summary and premium templates */
.orca-frontend-scope .orca-whatsapp-settings-summary-shell {
	display: grid;
	gap: 12px;
	padding: 14px;
	border: 1px solid #d4e1f7;
	border-radius: 16px;
	background: linear-gradient(170deg, #ffffff 0%, #f5f9ff 100%);
}

.orca-frontend-scope .orca-whatsapp-settings-summary-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.orca-frontend-scope .orca-whatsapp-settings-status-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
}

.orca-frontend-scope .orca-whatsapp-settings-status-card {
	display: grid;
	gap: 7px;
	padding: 12px;
	border: 1px solid #dbe6f8;
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 8px 18px rgba(36, 81, 212, 0.08);
}

.orca-frontend-scope .orca-whatsapp-settings-status-label {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5f6f89;
}

.orca-frontend-scope .orca-whatsapp-settings-status-value {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
	color: #1f2e47;
	word-break: break-word;
}

.orca-frontend-scope .orca-whatsapp-settings-status-meta {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--orca-ui-muted);
	word-break: break-word;
}

.orca-frontend-scope .orca-whatsapp-settings-overview-card {
	display: grid;
	gap: 12px;
	border: 1px solid #cedcf4;
	background: linear-gradient(170deg, #ffffff 0%, #f5f9ff 100%);
}

.orca-frontend-scope .orca-whatsapp-settings-overview-table-wrap {
	overflow-x: auto;
	border: 1px solid #d9e4f6;
	border-radius: 14px;
	background: #ffffff;
}

.orca-frontend-scope .orca-whatsapp-settings-overview-table {
	width: 100%;
	min-width: 740px;
	border-collapse: separate;
	border-spacing: 0;
}

.orca-frontend-scope .orca-whatsapp-settings-overview-table thead th {
	padding: 11px 13px;
	background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
	border-bottom: 1px solid #dbe6f8;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: left;
	color: #5f6f89;
	white-space: nowrap;
}

.orca-frontend-scope .orca-whatsapp-settings-overview-table tbody th,
.orca-frontend-scope .orca-whatsapp-settings-overview-table tbody td {
	padding: 12px 13px;
	border-bottom: 1px solid #e4ebf7;
	vertical-align: top;
}

.orca-frontend-scope .orca-whatsapp-settings-overview-table tbody tr:last-child th,
.orca-frontend-scope .orca-whatsapp-settings-overview-table tbody tr:last-child td {
	border-bottom: 0;
}

.orca-frontend-scope .orca-whatsapp-settings-overview-table tbody th {
	width: 24%;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	color: #20304b;
}

.orca-frontend-scope .orca-whatsapp-settings-overview-value {
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	color: #23334f;
	word-break: break-word;
}

.orca-frontend-scope .orca-whatsapp-settings-overview-source {
	display: block;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.45;
	color: #2b3f62;
	word-break: break-word;
}

.orca-frontend-scope .orca-whatsapp-settings-overview-detail {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.45;
	color: var(--orca-ui-muted);
	word-break: break-word;
}

.orca-frontend-scope .orca-whatsapp-settings-card-templates {
	position: relative;
	border-color: #ccd9f4;
	background: linear-gradient(170deg, #ffffff 0%, #f3f8ff 100%);
}

.orca-frontend-scope .orca-whatsapp-templates-preview-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.orca-frontend-scope .orca-whatsapp-template-preview {
	display: grid;
	gap: 8px;
	padding: 12px;
	border: 1px solid #d6e2f8;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.92);
}

.orca-frontend-scope .orca-whatsapp-template-preview-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
}

.orca-frontend-scope .orca-whatsapp-template-preview-title {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #1f3f9f;
}

.orca-frontend-scope .orca-whatsapp-template-preview-value {
	margin: 0;
	font-size: 13px;
	line-height: 1.58;
	color: #243450;
	word-break: break-word;
}

.orca-frontend-scope .orca-whatsapp-template-preview-meta {
	margin: 0;
	font-size: 12px;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope .orca-whatsapp-template-textarea {
	min-height: 126px;
	border-color: #bfd1ef;
	background: #ffffff;
}

.orca-frontend-scope .orca-whatsapp-connection-card {
	display: grid;
	gap: 12px;
	border: 1px solid #c8d8f5;
	background:
		radial-gradient(circle at top right, rgba(47, 97, 234, 0.12), transparent 50%),
		linear-gradient(165deg, #fafdff 0%, #f2f7ff 100%);
}

.orca-frontend-scope .orca-whatsapp-connection-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 10px;
}

.orca-frontend-scope .orca-whatsapp-connection-table-wrap {
	overflow-x: auto;
	border: 1px solid #d5e1f6;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.96);
}

.orca-frontend-scope .orca-whatsapp-connection-table {
	width: 100%;
	border-collapse: collapse;
}

.orca-frontend-scope .orca-whatsapp-connection-table th,
.orca-frontend-scope .orca-whatsapp-connection-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #e3eaf7;
	vertical-align: top;
}

.orca-frontend-scope .orca-whatsapp-connection-table tr:last-child th,
.orca-frontend-scope .orca-whatsapp-connection-table tr:last-child td {
	border-bottom: 0;
}

.orca-frontend-scope .orca-whatsapp-connection-table th {
	width: 34%;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #5c6d89;
}

.orca-frontend-scope .orca-whatsapp-connection-table td {
	font-size: 13px;
	line-height: 1.5;
	color: #253550;
	word-break: break-word;
}

@media (max-width: 900px) {
	.orca-frontend-scope .orca-whatsapp-templates-preview-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.orca-frontend-scope .orca-whatsapp-settings-overview-table {
		min-width: 700px;
	}
}

/* Phase: ORCA analytics modern hierarchy and premium activity presentation */
.orca-frontend-scope .orca-analytics-summary-shell {
	display: grid;
	gap: 12px;
	padding: 14px;
	border: 1px solid #d4e1f7;
	border-radius: 16px;
	background: linear-gradient(170deg, #ffffff 0%, #f5f9ff 100%);
}

.orca-frontend-scope .orca-analytics-summary-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.orca-frontend-scope .orca-analytics-metrics-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
}

.orca-frontend-scope .orca-analytics-metric-card {
	position: relative;
	display: grid;
	gap: 8px;
	padding: 12px;
	border: 1px solid #dbe6f8;
	border-radius: 13px;
	background: #ffffff;
	box-shadow: 0 8px 18px rgba(36, 81, 212, 0.08);
}

.orca-frontend-scope .orca-analytics-metric-card::before {
	content: "";
	display: block;
	width: 34px;
	height: 2px;
	border-radius: 999px;
	background: #bcd0f6;
}

.orca-frontend-scope .orca-analytics-metric-card.is-inbound::before {
	background: #20a26d;
}

.orca-frontend-scope .orca-analytics-metric-card.is-outbound::before {
	background: #2563eb;
}

.orca-frontend-scope .orca-analytics-metric-card.is-ai-reply::before {
	background: #2451d4;
}

.orca-frontend-scope .orca-analytics-metric-card.is-error::before {
	background: #c02626;
}

.orca-frontend-scope .orca-analytics-metric-card.is-total::before {
	background: #7c3aed;
}

.orca-frontend-scope .orca-analytics-metric-label {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5f6f89;
}

.orca-frontend-scope .orca-analytics-metric-value {
	margin: 0;
	font-size: clamp(1rem, 2vw, 1.35rem);
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.015em;
	color: #1f2e47;
	word-break: break-word;
}

.orca-frontend-scope .orca-analytics-metric-meta {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--orca-ui-muted);
}

.orca-frontend-scope .orca-analytics-overview-card {
	display: grid;
	gap: 12px;
	border: 1px solid #cedcf4;
	background: linear-gradient(170deg, #ffffff 0%, #f5f9ff 100%);
}

.orca-frontend-scope .orca-analytics-overview-table-wrap {
	overflow-x: auto;
	border: 1px solid #d9e4f6;
	border-radius: 14px;
	background: #ffffff;
}

.orca-frontend-scope .orca-analytics-overview-table {
	width: 100%;
	min-width: 720px;
	border-collapse: separate;
	border-spacing: 0;
}

.orca-frontend-scope .orca-analytics-overview-table thead th {
	padding: 11px 13px;
	background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
	border-bottom: 1px solid #dbe6f8;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: left;
	color: #5f6f89;
	white-space: nowrap;
}

.orca-frontend-scope .orca-analytics-overview-table tbody th,
.orca-frontend-scope .orca-analytics-overview-table tbody td {
	padding: 12px 13px;
	border-bottom: 1px solid #e4ebf7;
	vertical-align: top;
}

.orca-frontend-scope .orca-analytics-overview-table tbody tr:last-child th,
.orca-frontend-scope .orca-analytics-overview-table tbody tr:last-child td {
	border-bottom: 0;
}

.orca-frontend-scope .orca-analytics-overview-table tbody th {
	width: 22%;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	color: #20304b;
}

.orca-frontend-scope .orca-analytics-overview-value {
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	color: #23334f;
	word-break: break-word;
}

.orca-frontend-scope .orca-analytics-overview-note {
	display: block;
	font-size: 12px;
	line-height: 1.45;
	color: var(--orca-ui-muted);
	word-break: break-word;
}

.orca-frontend-scope .orca-analytics-empty-state-premium {
	display: grid;
	gap: 12px;
	border: 1px dashed #c7d7f6;
	background: linear-gradient(160deg, #f9fbff 0%, #edf3ff 100%);
}

.orca-frontend-scope .orca-analytics-empty-state-meta {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 8px;
}

.orca-frontend-scope .orca-analytics-empty-state-item {
	display: grid;
	gap: 4px;
	padding: 10px 12px;
	border: 1px solid #d3e0f8;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.9);
}

.orca-frontend-scope .orca-analytics-empty-state-label {
	margin: 0;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5f6f89;
}

.orca-frontend-scope .orca-analytics-empty-state-value {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	color: #22324f;
	word-break: break-word;
}

.orca-frontend-scope .orca-analytics-recent-card {
	display: grid;
	gap: 12px;
	border: 1px solid #c8d8f5;
	background:
		radial-gradient(circle at top right, rgba(47, 97, 234, 0.1), transparent 52%),
		linear-gradient(165deg, #fafdff 0%, #f2f7ff 100%);
}

.orca-frontend-scope .orca-analytics-recent-table-wrap {
	overflow-x: auto;
	border: 1px solid #d5e1f6;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.96);
}

.orca-frontend-scope .orca-analytics-recent-table {
	width: 100%;
	min-width: 760px;
	border-collapse: separate;
	border-spacing: 0;
}

.orca-frontend-scope .orca-analytics-recent-table thead th {
	padding: 11px 13px;
	background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
	border-bottom: 1px solid #dbe6f8;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: left;
	color: #5f6f89;
	white-space: nowrap;
}

.orca-frontend-scope .orca-analytics-recent-table tbody td {
	padding: 12px 13px;
	border-bottom: 1px solid #e4ebf7;
	vertical-align: top;
}

.orca-frontend-scope .orca-analytics-recent-table tbody tr:last-child td {
	border-bottom: 0;
}

.orca-frontend-scope .orca-analytics-recent-activity {
	display: block;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.45;
	color: #20314d;
}

.orca-frontend-scope .orca-analytics-recent-detail {
	display: block;
	font-size: 12px;
	line-height: 1.5;
	color: var(--orca-ui-muted);
	word-break: break-word;
}

.orca-frontend-scope .orca-analytics-recent-empty {
	padding: 14px;
	border: 1px dashed #c7d7f6;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.85);
}

.orca-frontend-scope .orca-analytics-hint-card {
	display: grid;
	gap: 10px;
	border: 1px solid #d5e1f6;
	background: linear-gradient(170deg, #ffffff 0%, #f5f9ff 100%);
}

@media (max-width: 768px) {
	.orca-frontend-scope .orca-analytics-overview-table {
		min-width: 680px;
	}

	.orca-frontend-scope .orca-analytics-recent-table {
		min-width: 700px;
	}
}

/* Phase: ORCA final frontend polish consistency pass */
.orca-frontend-scope {
	--orca-ui-final-gap: 20px;
	--orca-ui-final-card-radius: 18px;
	--orca-ui-final-surface: #ffffff;
	--orca-ui-final-border: #d3deef;
	--orca-ui-final-soft-border: #dbe5f6;
	--orca-ui-final-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}

.orca-frontend-scope .orca-dashboard-stack,
.orca-frontend-scope .orca-business-profile-section,
.orca-frontend-scope .orca-products-services-section,
.orca-frontend-scope .orca-ai-settings-section,
.orca-frontend-scope .orca-whatsapp-settings-section,
.orca-frontend-scope .orca-analytics-section,
.orca-frontend-scope .orca-account-plan-section {
	gap: var(--orca-ui-final-gap);
}

.orca-frontend-scope .orca-ui-card {
	border-radius: var(--orca-ui-final-card-radius);
	border-color: var(--orca-ui-final-border);
	background: var(--orca-ui-final-surface);
	box-shadow: var(--orca-ui-final-shadow);
}

.orca-frontend-scope .orca-business-profile-header,
.orca-frontend-scope .orca-products-services-header,
.orca-frontend-scope .orca-ai-settings-header,
.orca-frontend-scope .orca-whatsapp-settings-header,
.orca-frontend-scope .orca-analytics-header,
.orca-frontend-scope .orca-account-plan-header,
.orca-frontend-scope .orca-portal-shell-header {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--orca-ui-final-soft-border);
}

.orca-frontend-scope .orca-ui-section-header {
	gap: 16px;
}

.orca-frontend-scope .orca-ui-section-title {
	line-height: 1.3;
	letter-spacing: -0.015em;
}

.orca-frontend-scope .orca-ui-section-subtitle {
	font-size: 0.93rem;
	line-height: 1.62;
}

.orca-frontend-scope .orca-status-pill {
	padding: 6px 11px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.orca-frontend-scope .orca-ui-button {
	min-height: 42px;
	padding: 10px 16px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 650;
}

.orca-frontend-scope .orca-business-profile-actions,
.orca-frontend-scope .orca-products-services-item-actions,
.orca-frontend-scope .orca-ai-settings-actions,
.orca-frontend-scope .orca-whatsapp-settings-actions {
	padding-top: 2px;
}

.orca-frontend-scope .orca-dashboard-welcome-card,
.orca-frontend-scope .orca-account-plan-hero-card,
.orca-frontend-scope .orca-products-services-create-card,
.orca-frontend-scope .orca-ai-context-preview-card,
.orca-frontend-scope .orca-whatsapp-connection-card,
.orca-frontend-scope .orca-analytics-recent-card {
	border: 1px solid #c9d8f4;
	background:
		radial-gradient(circle at top right, rgba(47, 97, 234, 0.12), transparent 54%),
		linear-gradient(165deg, #fcfdff 0%, #f3f7ff 100%);
	box-shadow: 0 14px 28px rgba(36, 81, 212, 0.11);
}

.orca-frontend-scope .orca-ui-stats-card,
.orca-frontend-scope .orca-business-profile-summary-item,
.orca-frontend-scope .orca-ai-settings-summary-card,
.orca-frontend-scope .orca-whatsapp-settings-status-card,
.orca-frontend-scope .orca-analytics-metric-card {
	border: 1px solid var(--orca-ui-final-soft-border);
	border-radius: 14px;
	background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.orca-frontend-scope .orca-products-services-table-card,
.orca-frontend-scope .orca-ai-settings-summary-shell,
.orca-frontend-scope .orca-whatsapp-settings-summary-shell,
.orca-frontend-scope .orca-analytics-summary-shell,
.orca-frontend-scope .orca-business-profile-summary-card,
.orca-frontend-scope .orca-ai-settings-snapshot-card,
.orca-frontend-scope .orca-whatsapp-settings-overview-card,
.orca-frontend-scope .orca-analytics-overview-card {
	border: 1px solid var(--orca-ui-final-border);
	border-radius: 16px;
	background: linear-gradient(170deg, #ffffff 0%, #f6f9ff 100%);
	box-shadow: 0 10px 20px rgba(36, 81, 212, 0.08);
}

.orca-frontend-scope .orca-business-profile-detail-table-wrap,
.orca-frontend-scope .orca-products-services-table-wrap,
.orca-frontend-scope .orca-ai-settings-snapshot-table-wrap,
.orca-frontend-scope .orca-whatsapp-settings-overview-table-wrap,
.orca-frontend-scope .orca-whatsapp-connection-table-wrap,
.orca-frontend-scope .orca-analytics-overview-table-wrap,
.orca-frontend-scope .orca-analytics-recent-table-wrap {
	border: 1px solid var(--orca-ui-final-soft-border);
	border-radius: 14px;
	background: #ffffff;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.orca-frontend-scope .orca-business-profile-detail-table th,
.orca-frontend-scope .orca-products-services-table thead th,
.orca-frontend-scope .orca-ai-settings-snapshot-table thead th,
.orca-frontend-scope .orca-whatsapp-settings-overview-table thead th,
.orca-frontend-scope .orca-analytics-overview-table thead th,
.orca-frontend-scope .orca-analytics-recent-table thead th {
	padding: 11px 13px;
	background: linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
	border-bottom: 1px solid var(--orca-ui-final-soft-border);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5f6f89;
}

.orca-frontend-scope .orca-business-profile-detail-table td,
.orca-frontend-scope .orca-products-services-table tbody td,
.orca-frontend-scope .orca-ai-settings-snapshot-table tbody td,
.orca-frontend-scope .orca-whatsapp-settings-overview-table tbody td,
.orca-frontend-scope .orca-whatsapp-connection-table td,
.orca-frontend-scope .orca-analytics-overview-table tbody td,
.orca-frontend-scope .orca-analytics-recent-table tbody td {
	padding: 11px 13px;
	border-bottom: 1px solid #e4ebf7;
}

.orca-frontend-scope .orca-products-services-table tbody tr:hover td,
.orca-frontend-scope .orca-ai-settings-snapshot-table tbody tr:hover td,
.orca-frontend-scope .orca-whatsapp-settings-overview-table tbody tr:hover td,
.orca-frontend-scope .orca-analytics-overview-table tbody tr:hover td,
.orca-frontend-scope .orca-analytics-recent-table tbody tr:hover td {
	background: #f8fbff;
}

.orca-frontend-scope .orca-products-services-item-card,
.orca-frontend-scope .orca-ai-settings-card,
.orca-frontend-scope .orca-whatsapp-settings-card,
.orca-frontend-scope .orca-dashboard-card,
.orca-frontend-scope .orca-account-plan-support-card,
.orca-frontend-scope .orca-account-plan-features-card {
	border: 1px solid var(--orca-ui-final-border);
	border-radius: 16px;
}

.orca-frontend-scope .orca-ui-empty-state {
	border-radius: 14px;
	border-color: #c9d8f5;
	background: linear-gradient(165deg, #f9fbff 0%, #eef3ff 100%);
}

.orca-frontend-scope .orca-portal-shell {
	gap: 24px;
	border-radius: 24px;
}

.orca-frontend-scope .orca-portal-shell-content > * {
	margin: 0;
}

@media (max-width: 960px) {
	.orca-frontend-scope .orca-ui-card {
		padding: 18px;
	}

	.orca-frontend-scope .orca-dashboard-hero-row,
	.orca-frontend-scope .orca-grid.orca-grid-2,
	.orca-frontend-scope .orca-ai-settings-grid,
	.orca-frontend-scope .orca-whatsapp-settings-grid {
		grid-template-columns: 1fr;
	}

	.orca-frontend-scope .orca-account-plan-hero-head {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}

@media (max-width: 768px) {
	.orca-frontend-scope .orca-portal-shell {
		padding: 16px;
		border-radius: 20px;
	}

	.orca-frontend-scope .orca-ui-section-title {
		font-size: 1.1rem;
	}

	.orca-frontend-scope .orca-ui-section-subtitle {
		font-size: 0.9rem;
	}

	.orca-frontend-scope .orca-business-profile-actions .orca-ui-button,
	.orca-frontend-scope .orca-ai-settings-actions .orca-ui-button,
	.orca-frontend-scope .orca-whatsapp-settings-actions .orca-ui-button,
	.orca-frontend-scope .orca-account-plan-support-card .orca-ui-button {
		width: 100%;
	}

	.orca-frontend-scope .orca-products-services-table,
	.orca-frontend-scope .orca-ai-settings-snapshot-table,
	.orca-frontend-scope .orca-whatsapp-settings-overview-table,
	.orca-frontend-scope .orca-whatsapp-connection-table,
	.orca-frontend-scope .orca-analytics-overview-table,
	.orca-frontend-scope .orca-analytics-recent-table {
		min-width: 640px;
	}
}

/* Phase: ORCA responsive remediation pass */
.orca-frontend-scope .orca-grid > *,
.orca-frontend-scope .orca-ui-stats-grid > *,
.orca-frontend-scope .orca-business-profile-summary-grid > *,
.orca-frontend-scope .orca-ai-settings-summary-grid > *,
.orca-frontend-scope .orca-whatsapp-settings-status-grid > *,
.orca-frontend-scope .orca-whatsapp-templates-preview-grid > *,
.orca-frontend-scope .orca-analytics-metrics-grid > *,
.orca-frontend-scope .orca-ai-context-preview-grid > *,
.orca-frontend-scope .orca-dashboard-context-grid > *,
.orca-frontend-scope .orca-dashboard-hero-row > * {
	min-width: 0;
}

.orca-frontend-scope .orca-whatsapp-templates-preview-grid {
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.orca-frontend-scope .orca-whatsapp-template-preview-head {
	flex-wrap: wrap;
}

.orca-frontend-scope .orca-whatsapp-template-preview .orca-status-pill {
	max-width: 100%;
	font-size: 10px;
	letter-spacing: 0.03em;
	text-transform: none;
	white-space: normal;
	line-height: 1.35;
	justify-content: center;
	text-align: center;
	word-break: break-word;
}

.orca-frontend-scope .orca-whatsapp-template-preview-title,
.orca-frontend-scope .orca-whatsapp-template-preview-value,
.orca-frontend-scope .orca-ai-context-preview-value,
.orca-frontend-scope .orca-analytics-recent-detail,
.orca-frontend-scope .orca-ui-stats-value,
.orca-frontend-scope .orca-business-profile-detail-value {
	overflow-wrap: anywhere;
	word-break: break-word;
}

.orca-frontend-scope .orca-business-profile-detail-table-wrap,
.orca-frontend-scope .orca-products-services-table-wrap,
.orca-frontend-scope .orca-ai-settings-snapshot-table-wrap,
.orca-frontend-scope .orca-whatsapp-settings-overview-table-wrap,
.orca-frontend-scope .orca-whatsapp-connection-table-wrap,
.orca-frontend-scope .orca-analytics-overview-table-wrap,
.orca-frontend-scope .orca-analytics-recent-table-wrap {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
	.orca-frontend-scope .orca-products-services-table,
	.orca-frontend-scope .orca-ai-settings-snapshot-table,
	.orca-frontend-scope .orca-whatsapp-settings-overview-table,
	.orca-frontend-scope .orca-whatsapp-connection-table,
	.orca-frontend-scope .orca-analytics-overview-table,
	.orca-frontend-scope .orca-analytics-recent-table {
		min-width: 560px;
	}

	.orca-frontend-scope .orca-whatsapp-template-textarea {
		min-height: 112px;
	}
}

@media (max-width: 520px) {
	.orca-frontend-scope .orca-ui-card {
		padding: 14px;
	}

	.orca-frontend-scope .orca-products-services-table,
	.orca-frontend-scope .orca-ai-settings-snapshot-table,
	.orca-frontend-scope .orca-whatsapp-settings-overview-table,
	.orca-frontend-scope .orca-whatsapp-connection-table,
	.orca-frontend-scope .orca-analytics-overview-table,
	.orca-frontend-scope .orca-analytics-recent-table {
		min-width: 520px;
	}

	.orca-frontend-scope .orca-whatsapp-templates-preview-grid {
		grid-template-columns: 1fr;
	}

	.orca-frontend-scope .orca-portal-shell-nav {
		padding: 6px;
	}
}

/* Phase: ORCA cross-tab responsive hardening pass */
.orca-frontend-scope,
.orca-frontend-scope * {
	box-sizing: border-box;
}

.orca-frontend-scope .orca-ui-section-header > *,
.orca-frontend-scope .orca-ui-section-block > *,
.orca-frontend-scope .orca-ui-stats-card > *,
.orca-frontend-scope .orca-ui-form-group > *,
.orca-frontend-scope .orca-products-services-table-actions > * {
	min-width: 0;
}

.orca-frontend-scope .orca-portal-tab-list {
	align-items: stretch;
}

.orca-frontend-scope .orca-portal-tab-link {
	max-width: 100%;
	text-align: center;
}

.orca-frontend-scope .orca-products-services-table-actions {
	flex-wrap: wrap;
	row-gap: 8px;
}

.orca-frontend-scope .orca-whatsapp-template-preview-head > * {
	min-width: 0;
}

.orca-frontend-scope .orca-whatsapp-template-preview-title {
	flex: 1 1 140px;
}

.orca-frontend-scope .orca-whatsapp-template-preview .orca-status-pill {
	flex: 0 1 auto;
}

.orca-frontend-scope .orca-ai-settings-summary-chips .orca-status-pill,
.orca-frontend-scope .orca-whatsapp-settings-summary-chips .orca-status-pill,
.orca-frontend-scope .orca-analytics-summary-chips .orca-status-pill,
.orca-frontend-scope .orca-portal-shell-account-chips .orca-status-pill,
.orca-frontend-scope .orca-account-plan-hero-badges .orca-status-pill,
.orca-frontend-scope .orca-analytics-recent-table .orca-status-pill {
	max-width: 100%;
	white-space: normal;
	overflow-wrap: anywhere;
	word-break: break-word;
	text-align: center;
}

.orca-frontend-scope .orca-dashboard-missing-list li,
.orca-frontend-scope .orca-account-plan-features-list li,
.orca-frontend-scope .orca-account-plan-highlight-list li,
.orca-frontend-scope .orca-ai-settings-source-value,
.orca-frontend-scope .orca-whatsapp-settings-overview-source,
.orca-frontend-scope .orca-whatsapp-settings-overview-detail,
.orca-frontend-scope .orca-analytics-overview-note {
	overflow-wrap: anywhere;
	word-break: break-word;
}

@media (max-width: 900px) {
	.orca-frontend-scope .orca-portal-tab-item {
		flex: 1 1 calc(50% - 8px);
	}

	.orca-frontend-scope .orca-portal-tab-link {
		width: 100%;
	}

	.orca-frontend-scope .orca-whatsapp-templates-preview-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 560px) {
	.orca-frontend-scope .orca-portal-tab-item {
		flex-basis: 100%;
	}

	.orca-frontend-scope .orca-whatsapp-template-preview {
		padding: 11px;
	}

	.orca-frontend-scope .orca-whatsapp-template-preview-title {
		letter-spacing: 0.04em;
	}
}

@media (max-width: 420px) {
	.orca-frontend-scope .orca-ui-card {
		padding: 12px;
	}

	.orca-frontend-scope .orca-products-services-table,
	.orca-frontend-scope .orca-ai-settings-snapshot-table,
	.orca-frontend-scope .orca-whatsapp-settings-overview-table,
	.orca-frontend-scope .orca-whatsapp-connection-table,
	.orca-frontend-scope .orca-analytics-overview-table,
	.orca-frontend-scope .orca-analytics-recent-table {
		min-width: 480px;
	}
}

/* Phase: ORCA frontend required field onboarding notes */
.orca-frontend-scope .orca-ui-cute-note {
	position: relative;
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #c9d8f5;
	border-radius: 14px;
	background: linear-gradient(155deg, #fffaf0 0%, #eef4ff 100%);
	box-shadow: 0 8px 18px rgba(36, 81, 212, 0.08);
}

.orca-frontend-scope .orca-ui-cute-note::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 54px;
	height: 2px;
	border-top-left-radius: 14px;
	background: linear-gradient(90deg, #f59e0b 0%, #2563eb 100%);
}

.orca-frontend-scope .orca-ui-cute-note-title {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #1e3a8a;
}

.orca-frontend-scope .orca-ui-cute-note-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.55;
	color: #334155;
}

.orca-frontend-scope .orca-required-mark {
	font-weight: 800;
	color: #b91c1c;
}

.orca-frontend-scope .orca-ui-form-group label .orca-required-mark {
	margin-left: 2px;
}

@media (max-width: 768px) {
	.orca-frontend-scope .orca-ui-cute-note {
		padding: 12px 13px;
	}
}
