@import url('/css/customer-chat.css');

/* ================================================================
   Campaign Hub  (admin campaign views ? hub, active performance, etc.)
   ================================================================ */

/* ?? Page hero (gradient banner + title) ??????????????????????? */

.page-hero {
	background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
	border-radius: 16px;
	padding: 28px 32px;
	margin-bottom: 24px;
	color: #fff;
	position: relative;
	overflow: hidden;
}

.page-hero::after {
	content: '';
	position: absolute;
	right: -40px;
	top: -40px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
}

.page-hero::before {
	content: '';
	position: absolute;
	right: 80px;
	bottom: -60px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
}

/* Ensure white hero button keeps readable text */
.camp-hero-btn-light {
	color: #3730a3 !important;
}

.camp-hero-btn-light i {
	color: #3730a3 !important;
}

/* ?? Campaign Hub table & UI (admin/campaigns/all.blade.php) ??? */

@keyframes camp-hub-pulse-ring {
	0% { transform: scale(1); opacity: 0.8; }
	70% { transform: scale(1.6); opacity: 0; }
	100% { transform: scale(1.6); opacity: 0; }
}

.status-pulse {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.status-pulse::before {
	content: '';
	display: block;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: currentColor;
	animation: camp-hub-pulse-ring 1.6s ease-out infinite;
	flex-shrink: 0;
}

.media-tag {
	font-size: 0.7rem;
	padding: 2px 8px;
	border-radius: 20px;
	background: rgba(99, 102, 241, 0.12);
	color: #6366f1;
	font-weight: 500;
	white-space: nowrap;
}

.media-tag-more {
	background: rgba(107, 114, 128, 0.12);
	color: #6b7280;
}

.search-bar-wrap {
	position: relative;
}

.search-bar-wrap .search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #9ca3af;
	pointer-events: none;
}

.search-bar-wrap input {
	padding-left: 40px !important;
}

.action-btn {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	font-size: 0.9rem;
}

.action-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.avatar-ring {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(99, 102, 241, 0.4);
}

.modal-backdrop-custom {
	background: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(4px);
}

.campaign-name-link {
	position: relative;
	display: inline-block;
}

.campaign-name-link::after {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 0;
	height: 1px;
	background: #6366f1;
	transition: width 0.25s ease;
}

.campaign-name-link:hover::after {
	width: 100%;
}

.empty-ring {
	width: 100px;
	height: 100px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

/* ================================================================
   Admin customer campaign form  (create / edit blade)
   ================================================================ */

.form-hero {
	border-radius: 16px;
	padding: 24px 28px;
	margin-bottom: 28px;
	color: #fff;
	position: relative;
	overflow: hidden;
}

.form-hero::after {
	content: '';
	position: absolute;
	right: -40px;
	top: -40px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
}

.form-hero--create {
	background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #4338ca 100%);
}

.form-hero--edit {
	background: linear-gradient(135deg, #0f172a 0%, #134e4a 55%, #0d9488 100%);
}

.form-section {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	margin-bottom: 20px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.form-section-header {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px 14px;
	border-bottom: 1px solid #f3f4f6;
	background: #fafafa;
}

.form-section-icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	flex-shrink: 0;
}

.form-section-body {
	padding: 20px;
}

.field-wrap label.field-label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.field-wrap label.field-label .req {
	color: #ef4444;
	margin-left: 2px;
}

.status-tabs {
	display: flex;
	gap: 8px;
}

.status-tab {
	flex: 1;
	padding: 10px 8px;
	border-radius: 10px;
	border: 2px solid #e5e7eb;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
	font-size: 0.76rem;
	font-weight: 600;
	color: #6b7280;
	background: #fff;
	user-select: none;
}

.status-tab:hover {
	border-color: #c7d2fe;
	background: #eef2ff;
	color: #4f46e5;
}

.status-tab.selected-active {
	border-color: #10b981;
	background: rgba(16, 185, 129, 0.08);
	color: #059669;
}

.status-tab.selected-paused {
	border-color: #f59e0b;
	background: rgba(245, 158, 11, 0.08);
	color: #d97706;
}

.status-tab.selected-archived {
	border-color: #9ca3af;
	background: rgba(156, 163, 175, 0.08);
	color: #4b5563;
}

.status-tab .tab-icon {
	font-size: 1.15rem;
}

.media-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
}

.media-card-label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border: 2px solid #e5e7eb;
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
	background: #fff;
	font-size: 0.83rem;
	font-weight: 500;
	color: #374151;
	user-select: none;
}

.media-card-label:hover {
	border-color: #a5b4fc;
	background: #f5f3ff;
	box-shadow: 0 2px 8px rgba(99, 102, 241, 0.12);
}

.media-card-label input[type="checkbox"] {
	display: none;
}

.media-card-label .media-check {
	width: 18px;
	height: 18px;
	border-radius: 5px;
	border: 2px solid #d1d5db;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: border-color 0.15s, background 0.15s;
}

.media-card-label input:checked ~ .media-check {
	background: #4f46e5;
	border-color: #4f46e5;
}

.media-card-label input:checked ~ .media-check::after {
	content: '';
	display: block;
	width: 5px;
	height: 9px;
	border: 2px solid #fff;
	border-top: none;
	border-left: none;
	transform: rotate(45deg) translate(-1px, -1px);
}

.media-card-label:has(input:checked) {
	border-color: #6366f1;
	background: #eef2ff;
}

.media-icon-wrap {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: #f3f4f6;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.85rem;
	color: #6b7280;
	flex-shrink: 0;
	transition: background 0.15s, color 0.15s;
}

.media-card-label:has(input:checked) .media-icon-wrap {
	background: #c7d2fe;
	color: #4f46e5;
}

.customer-select-wrap {
	position: relative;
}

.customer-select-wrap .select-chevron {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #9ca3af;
	font-size: 0.9rem;
}

.google-section-header {
	background: linear-gradient(to right, #fefce8, #fff);
}

.google-section-icon {
	background: #fef9c3;
	color: #ca8a04;
}

.submit-bar {
	position: sticky;
	bottom: 0;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	border-top: 1px solid #e5e7eb;
	padding: 14px 20px;
	border-radius: 0 0 14px 14px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 10px;
	z-index: 10;
}

.submit-bar--between {
	justify-content: space-between;
}

.last-modified-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 20px;
	padding: 4px 12px;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.85);
}

@keyframes campaign-form-spinner-rotate {
	to { transform: rotate(360deg); }
}

.campaign-form-spinner {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2px solid #e5e7eb;
	border-top-color: #6366f1;
	animation: campaign-form-spinner-rotate 0.7s linear infinite;
	display: inline-block;
}

/* ================================================================
   Customer campaigns index  (admin/customers/campaigns/index)
   ================================================================ */

.cust-hero {
	background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 55%, #1d4ed8 100%);
	border-radius: 16px;
	padding: 22px 28px;
	margin-bottom: 20px;
	color: #fff;
	position: relative;
	overflow: hidden;
}

.cust-hero::after {
	content: '';
	position: absolute;
	right: -50px;
	top: -50px;
	width: 240px;
	height: 240px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
}

.cust-hero::before {
	content: '';
	position: absolute;
	right: 100px;
	bottom: -70px;
	width: 180px;
	height: 180px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.04);
}

.empty-cta-ring {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(29, 78, 216, 0.1), rgba(99, 102, 241, 0.1));
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 14px;
}

.cmp-dropdown {
	position: absolute;
	right: 0;
	top: 100%;
	margin-top: 4px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	min-width: 185px;
	z-index: 100;
	display: none;
	padding: 4px;
}

.cmp-dropdown.open {
	display: block;
}

.cmp-dropdown a,
.cmp-dropdown button {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 7px 11px;
	border-radius: 7px;
	font-size: 0.81rem;
	color: #374151;
	background: none;
	border: none;
	cursor: pointer;
	transition: background 0.1s ease;
}

.cmp-dropdown a:hover,
.cmp-dropdown button:hover {
	background: #f9fafb;
}

.cmp-dropdown .divider {
	height: 1px;
	background: #f3f4f6;
	margin: 3px 0;
}

/* ?? Filter / Search toolbar ??????????????????????????????????? */

.camp-filter-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 10px 14px;
	box-shadow: 0 1px 4px rgba(15,23,42,.05);
	margin-bottom: 1rem;
}

/* Search input */
.camp-filter-search {
	position: relative;
	flex: 1 1 220px;
	min-width: 0;
}

.camp-filter-search__icon {
	position: absolute;
	left: 11px;
	top: 50%;
	transform: translateY(-50%);
	color: #94a3b8;
	font-size: 0.95rem;
	pointer-events: none;
}

.camp-filter-search__input {
	width: 100%;
	height: 38px;
	padding: 0 12px 0 34px;
	border: 1px solid #e2e8f0;
	border-radius: 9px;
	background: #f8fafc;
	font-size: 0.8125rem;
	color: #1e293b;
	outline: none;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.camp-filter-search__input::placeholder { color: #94a3b8; }

.camp-filter-search__input:focus {
	border-color: #818cf8;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}

/* Status pill group */
.camp-filter-pills {
	display: flex;
	align-items: center;
	gap: 5px;
	flex-wrap: wrap;
}

.camp-filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 5px 13px;
	border-radius: 20px;
	border: 1.5px solid #e2e8f0;
	background: #f8fafc;
	font-size: 0.76rem;
	font-weight: 500;
	color: #64748b;
	cursor: pointer;
	transition: border-color 0.14s, background 0.14s, color 0.14s, box-shadow 0.14s;
	white-space: nowrap;
}

a.camp-filter-pill {
	text-decoration: none;
}

.camp-filter-pill:hover {
	border-color: #c7d2fe;
	background: #eef2ff;
	color: #4f46e5;
}

/* Selected state ? generic */
.camp-filter-pill--on {
	background: #eef2ff;
	border-color: #818cf8;
	color: #4338ca;
	font-weight: 600;
	box-shadow: 0 1px 4px rgba(99,102,241,.18);
}

/* Selected state ? per-status colour overrides */
.camp-filter-pill--active.camp-filter-pill--on {
	background: #ecfdf5;
	border-color: #34d399;
	color: #065f46;
	box-shadow: 0 1px 4px rgba(16,185,129,.18);
}

.camp-filter-pill--paused.camp-filter-pill--on {
	background: #fffbeb;
	border-color: #fbbf24;
	color: #78350f;
	box-shadow: 0 1px 4px rgba(245,158,11,.18);
}

.camp-filter-pill--archived.camp-filter-pill--on {
	background: #f8fafc;
	border-color: #94a3b8;
	color: #334155;
	box-shadow: 0 1px 4px rgba(100,116,139,.14);
}

/* Status dot */
.camp-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex-shrink: 0;
}
.camp-dot--green  { background: #10b981; }
.camp-dot--amber  { background: #f59e0b; }
.camp-dot--gray   { background: #9ca3af; }

/* Divider between pills and buttons */
.camp-filter-pills::after {
	content: '';
	display: block;
	width: 1px;
	height: 24px;
	background: #e2e8f0;
	margin-left: 4px;
}

/* Action buttons */
.camp-filter-actions {
	display: flex;
	align-items: center;
	gap: 6px;
}

.camp-filter-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 36px;
	padding: 0 14px;
	border-radius: 9px;
	font-size: 0.8rem;
	font-weight: 600;
	border: none;
	cursor: pointer;
	transition: background 0.14s ease, box-shadow 0.14s ease, transform 0.1s ease;
	text-decoration: none;
}

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

.camp-filter-btn--primary {
	background: linear-gradient(135deg, #6366f1, #818cf8);
	color: #fff;
	box-shadow: 0 2px 8px rgba(99,102,241,.3);
}

.camp-filter-btn--primary:hover {
	background: linear-gradient(135deg, #4f46e5, #6366f1);
	box-shadow: 0 4px 14px rgba(99,102,241,.4);
	color: #fff;
}

.camp-filter-btn--clear {
	background: #f1f5f9;
	color: #64748b;
	border: 1px solid #e2e8f0;
}

.camp-filter-btn--clear:hover {
	background: #fee2e2;
	color: #dc2626;
	border-color: #fca5a5;
}

/* Customers index top section */
.cust-index-hero {
	background: linear-gradient(135deg, #201c3d 0%, #2a2649 52%, #353059 100%);
	border-radius: 16px;
	padding: 22px 26px;
	margin-bottom: 14px;
	position: relative;
	overflow: hidden;
}

.cust-index-hero::after {
	content: '';
	position: absolute;
	right: -45px;
	top: -50px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(255,255,255,.06);
}

.cust-index-hero::before {
	content: '';
	position: absolute;
	right: 85px;
	bottom: -65px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: rgba(255,255,255,.04);
}

/* Subtitle / lead under title: violet tints for purple gradient (blue-200 reads grey on this background) */
.cust-index-hero .text-blue-200 {
	color: #e9e4ff !important;
}

.cust-index-hero .text-white\/90 {
	color: rgba(233, 228, 246, 0.95) !important;
}

.cust-index-hero__icon {
	width: 30px;
	height: 30px;
	border-radius: 9px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.2);
	color: #fff;
	font-size: 16px;
}

/* Customer media pages: larger brand mark in hero */
.cust-index-hero__icon.cust-index-hero__icon--media {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	font-size: 26px;
	flex-shrink: 0;
}

.cust-index-hero__icon.cust-index-hero__icon--media img {
	max-width: 40px;
	max-height: 40px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* Customer Google Ads hero: larger mark than other media pages */
.cust-index-hero__icon.cust-index-hero__icon--media.cust-index-hero__icon--media-xl {
	width: 72px;
	height: 72px;
	border-radius: 16px;
	font-size: 36px;
}

.cust-index-hero__icon.cust-index-hero__icon--media.cust-index-hero__icon--media-xl img {
	max-width: 56px;
	max-height: 56px;
}

.cust-index-hero__add-btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fff;
	color: #201c3d;
	font-size: 0.84rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(32, 28, 61, 0.22);
	transition: background .14s ease, transform .12s ease, box-shadow .14s ease;
}

.cust-index-hero__add-btn:hover {
	background: #f3f1f7;
	color: #201c3d;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(32, 28, 61, 0.26);
}

/* Customer chat hero: unread pill on purple gradient */
.cust-index-hero .chat-total-unread {
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: rgba(255, 255, 255, 0.95);
}

.cust-index-hero .chat-total-unread .chat-badge {
	margin-top: 0;
}

/* Hosting pages */
.hosting-hero {
	background: linear-gradient(135deg, #0f172a 0%, #0f766e 55%, #0ea5a5 100%);
	border-radius: 16px;
	padding: 22px 26px;
	position: relative;
	overflow: hidden;
}
.hosting-hero::after {
	content: '';
	position: absolute;
	right: -45px;
	top: -50px;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: rgba(255,255,255,.06);
}
.hosting-hero::before {
	content: '';
	position: absolute;
	right: 90px;
	bottom: -70px;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	background: rgba(255,255,255,.04);
}
.hosting-hero__icon {
	width: 30px;
	height: 30px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.2);
	color: #fff;
	font-size: 16px;
}
.hosting-hero__add-btn {
	display: inline-flex;
	align-items: center;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fff;
	color: #115e59;
	font-size: 0.84rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 4px 14px rgba(15,23,42,.2);
	transition: background .14s ease, transform .12s ease, box-shadow .14s ease;
}
.hosting-hero__add-btn:hover {
	background: #f0fdfa;
	color: #115e59;
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(15,23,42,.24);
}
.hosting-page-wrap {
	max-width: 1400px;
	margin: 0 auto;
}

/* Campaign table enhancements */
.camp-table--enhanced .comm-data-table tbody td {
	font-size: 14px;
	line-height: 1.35;
}

.camp-table--enhanced .comm-data-table thead th {
	font-size: 0.7rem;
}

.camp-actions-toggle {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 30px;
	padding: 0 10px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #475569;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.14s ease, border-color 0.14s ease;
}

.camp-actions-toggle:hover {
	background: #eef2ff;
	border-color: #c7d2fe;
	color: #4338ca;
}

.camp-actions-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	min-width: 180px;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	box-shadow: 0 10px 24px rgba(15,23,42,.12);
	padding: 4px;
	display: none;
	z-index: 30;
}

.camp-actions-menu.open {
	display: block;
}

.camp-actions-item {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	font-size: 13px;
	color: #334155;
	text-decoration: none;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
}

.camp-actions-item:hover {
	background: #f8fafc;
}

@media (max-width: 639px) {
	.camp-filter-bar { padding: 10px 12px; }
	.camp-filter-search { flex: 1 1 100%; }
	.camp-filter-pills::after { display: none; }
}



/* Always 4-column stats row ? 2 cols on phones only */
.camp-stats-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1rem;
	margin-bottom: 1.5rem;
}

@media (max-width: 639px) {
	.camp-stats-row {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Stat card inner layout */
.camp-stat-card {
	border-radius: 1rem;
	padding: 1.125rem 1.25rem;
	color: #fff;
	box-shadow: 0 4px 14px rgba(0,0,0,.12);
}

.camp-stat-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.625rem;
}

.camp-stat-card__label {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.82;
}

.camp-stat-card__icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255,255,255,.2);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
}

.camp-stat-card__value {
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
}

.camp-stat-card__sub {
	font-size: 0.75rem;
	opacity: 0.72;
	margin-top: 0.25rem;
}

/* Colour variants */
.camp-stat--indigo { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); }
.camp-stat--green  { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.camp-stat--amber  { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.camp-stat--slate  { background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%); }

/* Campaign table ? same style as comm-data-table */
.camp-table-wrap {
	border-radius: 0;
	border: 0;
	overflow: hidden;
	background: #fff;
}

/* Guarantee avatar size inside the campaigns table ? Dashtrap can't override inline styles,
   but this acts as a belt-and-braces rule for the initials div fallback */
.comm-data-table td .camp-avatar,
.camp-data-table td .camp-avatar {
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	border-radius: 50% !important;
	object-fit: cover;
	flex-shrink: 0;
}

.camp-data-table {
	width: 100%;
	font-size: 0.8125rem;
	text-align: left;
	color: #64748b;
	border-collapse: collapse;
}

.camp-data-table thead {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #475569;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.camp-data-table th,
.camp-data-table td {
	padding: 0.65rem 1rem;
	vertical-align: middle;
}

.camp-data-table tbody tr {
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.12s ease;
}

.camp-data-table tbody tr:last-child {
	border-bottom: 0;
}

.camp-data-table tbody tr:hover {
	background: rgba(99,102,241,.03);
	box-shadow: inset 3px 0 0 #6366f1;
}

/* ================================================================
   Customer Campaign Cards  (customers/campaigns/index.blade.php)
   ================================================================ */

.cust-camp-card {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.cust-camp-card:hover {
	box-shadow: 0 6px 24px rgba(29,78,216,.09);
	transform: translateY(-2px);
	border-color: #c7d2fe;
}

.cust-camp-card--active  { border-top: 3px solid #10b981; }
.cust-camp-card--paused  { border-top: 3px solid #f59e0b; }
.cust-camp-card--archive { border-top: 3px solid #9ca3af; }

.cust-camp-card__body {
	padding: 0.875rem 1rem 0.75rem;
}

.cust-camp-card__name {
	font-size: 0.9375rem;
	font-weight: 600;
	color: #111827;
	line-height: 1.3;
	display: block;
	text-decoration: none;
}

.cust-camp-card__name:hover { color: var(--primary, #6366f1); }

.cust-camp-card__notes {
	font-size: 0.75rem;
	color: #9ca3af;
	margin-top: 0.2rem;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.cust-camp-card__meta {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.75rem;
	color: #6b7280;
	margin-top: 0.625rem;
}

.cust-camp-card__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin-top: 0.5rem;
}

.cust-camp-chip {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 0.6875rem;
	font-weight: 500;
	padding: 2px 8px;
	border-radius: 20px;
	background: rgba(99,102,241,.1);
	color: #4f46e5;
}

.cust-camp-card__footer {
	border-top: 1px solid #f3f4f6;
	padding: 0.5rem 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

.cust-camp-action {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 0.5rem 0;
	border-radius: 7px;
	font-size: 0.78rem;
	font-weight: 500;
	color: #6b7280;
	transition: background .12s, color .12s;
	text-decoration: none;
}

.cust-camp-action:hover {
	background: #f3f4f6;
	color: #111827;
}

.cust-camp-action--primary {
	background: #eef2ff;
	color: #4f46e5;
}

.cust-camp-action--primary:hover {
	background: #e0e7ff;
	color: #4338ca;
}

/* Pulse dot for active badge */
@keyframes cust-pulse {
	0%,100% { opacity: 1; }
	50%      { opacity: .35; }
}

.cust-badge-active {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 2px 9px; border-radius: 20px;
	background: rgba(16,185,129,.1); color: #059669;
	font-size: .69rem; font-weight: 600;
	border: 1px solid rgba(16,185,129,.22);
	flex-shrink: 0;
}

.cust-badge-active .dot {
	width: 5px; height: 5px; border-radius: 50%;
	background: #10b981;
	animation: cust-pulse 1.4s ease-in-out infinite;
}

.cust-badge-paused {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 2px 9px; border-radius: 20px;
	background: rgba(245,158,11,.1); color: #d97706;
	font-size: .69rem; font-weight: 600;
	border: 1px solid rgba(245,158,11,.22);
	flex-shrink: 0;
}

.cust-badge-archived {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 2px 9px; border-radius: 20px;
	background: rgba(107,114,128,.1); color: #6b7280;
	font-size: .69rem; font-weight: 600;
	border: 1px solid rgba(107,114,128,.2);
	flex-shrink: 0;
}

/* Custom overrides for KPI card backgrounds (works with Dashtrap) */
.kpi-bg-blue { background-color: #eff6ff; border: 1px solid #bfdbfe; }
.kpi-bg-red { background-color: #fef2f2; border: 1px solid #fecaca; }
.kpi-bg-amber { background-color: #fffbeb; border: 1px solid #fde68a; }
.kpi-bg-green { background-color: #ecfdf5; border: 1px solid #a7f3d0; }

/* Ensure inner body doesn?t repaint over background */
.card.kpi-bg-blue .card-body,
.card.kpi-bg-red .card-body,
.card.kpi-bg-amber .card-body,
.card.kpi-bg-green .card-body {
	background: transparent;
}

/* Very light stat box backgrounds (Active Campaigns overview) ? border same colour 50% */
.stat-bg-clicks { background-color: #f0f9ff; border: 1px solid rgba(14, 165, 233, 0.5); }
.stat-bg-impressions { background-color: #fff1f2; border: 1px solid rgba(244, 63, 94, 0.5); }
.stat-bg-conversions { background-color: #f8fafc; border: 1px solid rgba(100, 116, 139, 0.5); }
.stat-bg-convrate { background-color: #f0fdf4; border: 1px solid rgba(34, 197, 94, 0.5); }
.stat-bg-cost { background-color: #fffbeb; border: 1px solid rgba(245, 158, 11, 0.5); }

/* Branding logo extension pill (works with Dashtrap cards) */
.branding-preview-with-pill {
	position: relative;
}

.branding-preview-with-pill .branding-ext-pill {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: -2px;
	padding: 2px 6px;
	border-radius: 9999px;
	font-size: 10px;
	font-weight: 500;
	background-color: rgba(17, 24, 39, 0.9); /* dark grey */
	color: #ffffff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.6);
	white-space: nowrap;
}

/* Google Ads stats tables: larger metric numbers (clicks, impr., conv., rate, cost) */
.stats-metric-cell {
	font-size: 1.0625rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

/* Google Ads stats: compact date in a square-edged box + written date beside (admin google_ads) */
.stats-date-cell {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: nowrap;
}

.stats-date-square {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-sizing: border-box;
	width: 4.5rem;
	min-width: 4.5rem;
	max-width: 4.5rem;
	padding: 0.5rem 0.5rem;
	text-align: center;
	line-height: 1;
	border-radius: 0.5rem;
	border: 1px solid rgb(147 197 253);
	background: linear-gradient(180deg, rgb(239 246 255) 0%, rgb(219 234 254 / 0.65) 100%);
	box-shadow: 0 1px 2px rgb(37 99 235 / 0.08);
}

.stats-date-square__day {
	font-size: 1.5rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: rgb(29 78 216);
}

.stats-date-square__mon {
	margin-top: 0.125rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgb(37 99 235);
}

.stats-date-square__mon-monthly {
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgb(29 78 216);
}

.stats-date-square__year-monthly {
	margin-top: 0.25rem;
	font-size: 11px;
	font-weight: 600;
	color: rgb(37 99 235);
}

.stats-date-written {
	font-size: 0.875rem;
	line-height: 1.35;
	color: rgb(30 64 175);
	min-width: 0;
}

.stats-date-written__main {
	display: block;
	font-weight: 600;
	color: rgb(30 58 138);
}

.stats-date-written__sub {
	display: block;
	margin-top: 0.125rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: rgb(59 130 246);
}

/* Dashtrap-style pill (soft primary); pairs with stats-date-cell */
.stats-date-best-label {
	display: inline-flex;
	align-items: center;
	align-self: center;
	flex-shrink: 0;
	padding: 0.2rem 0.55rem;
	font-size: 0.625rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: rgb(29 78 216);
	background-color: rgb(219 234 254 / 0.85);
	border: 1px solid rgb(147 197 253);
	border-radius: 9999px;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgb(37 99 235 / 0.08);
}

/* Daily stats: highlight row(s) with the most clicks in the month */
.stats-daily-table tbody tr.stats-daily-row--best {
	background-color: rgb(239 246 255 / 0.92);
	box-shadow: inset 4px 0 0 0 rgb(37 99 235);
}

.stats-daily-table tbody tr.stats-daily-row--best > td {
	border-color: rgb(191 219 254 / 0.6);
}

/* Google-stats tab nav (admin/customer google media stats) */
.g-tabs {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 0.875rem;
	padding: 0.3125rem;
	width: fit-content;
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.g-tabs::-webkit-scrollbar {
	display: none;
}

.g-tab {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1.1rem;
	border-radius: 0.625rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #64748b;
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
	position: relative;
	cursor: pointer;
	border: 1px solid transparent;
}

.g-tab:hover:not(.g-tab--active) {
	background: #fff;
	color: #334155;
	border-color: #e2e8f0;
}

.g-tab--active {
	background: #fff;
	color: var(--color-primary, #3b82f6);
	border-color: #dbeafe;
	box-shadow: 0 1px 6px 0 rgba(59, 130, 246, 0.14), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.g-tab__icon {
	font-size: 1rem;
	line-height: 1;
	flex-shrink: 0;
}

.g-tab--active .g-tab__icon {
	color: var(--color-primary, #3b82f6);
}

@media (max-width: 639px) {
	.g-tabs {
		width: 100%;
		width: -webkit-fill-available;
	}

	.g-tab {
		padding: 0.45rem 0.875rem;
		font-size: 0.825rem;
	}
}

/* Topbar icon badges (cart + notifications) */
.topbar-cart-btn {
	position: relative;
}

.topbar-cart-count {
	position: absolute;
	top: -2px;
	left: -8px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9999px;
	background: #ef4444;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	line-height: 18px;
	text-align: center;
	box-shadow: 0 0 0 2px #fff;
	display: none;
	z-index: 2;
	pointer-events: none;
}

.topbar-cart-count--visible {
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Floating dashboard chat widget */
.dashboard-chat-widget {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 1200;
}

.dashboard-chat-launcher {
	position: relative;
	width: 62px;
	height: 62px;
	border: 0;
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%);
	color: #fff;
	box-shadow: 0 16px 34px rgba(37, 99, 235, 0.36), 0 6px 14px rgba(15, 23, 42, 0.18);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-chat-launcher:hover {
	transform: translateY(-2px) scale(1.02);
	box-shadow: 0 20px 38px rgba(37, 99, 235, 0.4), 0 8px 18px rgba(15, 23, 42, 0.22);
}

.dashboard-chat-launcher__icon {
	font-size: 28px;
	line-height: 1;
}

.dashboard-chat-launcher__badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 20px;
	height: 20px;
	padding: 0 5px;
	border-radius: 9999px;
	background: #ef4444;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
	border: 2px solid #fff;
}

.dashboard-chat-overlay {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.35);
	backdrop-filter: blur(1px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.dashboard-chat-panel {
	position: fixed;
	top: 0;
	right: 0;
	width: min(560px, calc(100vw - 20px));
	height: 100dvh;
	background: #fff;
	box-shadow: -14px 0 40px rgba(15, 23, 42, 0.22);
	transform: translateX(100%);
	opacity: 0.98;
	transition: transform 0.28s ease, opacity 0.28s ease;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-left: 1px solid #dbeafe;
}

.dashboard-chat-panel__header {
	padding: 14px 18px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid #e5e7eb;
	background: linear-gradient(180deg, #f8fbff 0%, #f1f5f9 100%);
}

.dashboard-chat-panel__header h3 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

.dashboard-chat-panel__header p {
	margin: 3px 0 0;
	font-size: 12px;
	color: #64748b;
}

.dashboard-chat-close {
	width: 34px;
	height: 34px;
	border-radius: 9999px;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #334155;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.dashboard-chat-close:hover {
	background: #eff6ff;
	color: #1d4ed8;
}

.dashboard-chat-panel__body {
	flex: 1;
	min-height: 0;
}

.dashboard-chat-iframe {
	width: 100%;
	height: 100%;
	border: 0;
	background: #fff;
}

.dashboard-chat-widget.is-open .dashboard-chat-overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.dashboard-chat-widget.is-open .dashboard-chat-panel {
	transform: translateX(0);
	opacity: 1;
}

body.chat-widget-open {
	overflow: hidden;
}

/* Embedded chat mode for side panel iframe */
body.chat-embed-mode {
	background: #fff;
}

.chat-embed-main .container {
	max-width: 100%;
	padding-left: 16px;
	padding-right: 16px;
}

.chat-embed-main .py-6 {
	padding-top: 1rem;
	padding-bottom: 0;
}

.chat-embed-main .chat-page-header {
	margin-bottom: 12px;
}

.chat-embed-main {
	height: 100dvh;
	display: flex;
	flex-direction: column;
}

.chat-embed-main .container.py-6 {
	height: 100%;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.chat-embed-main .chat-main--single {
	flex: 1;
	min-height: 0;
	max-height: none;
	height: auto;
}

.chat-embed-main .chat-compose {
	padding-bottom: 1rem;
}

@media (max-width: 767.98px) {
	.dashboard-chat-widget {
		right: 16px;
		bottom: 16px;
	}

	.dashboard-chat-launcher {
		width: 58px;
		height: 58px;
	}

	.dashboard-chat-panel {
		width: 100vw;
	}
}

/* Chat automation modal and compact buttons */
.chat-rule-modal {
	position: fixed;
	inset: 0;
	z-index: 1080;
	display: none;
}

.chat-rule-modal.is-open {
	display: block;
}

.chat-rule-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
}

.chat-rule-modal__wrap {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
}

.chat-rule-modal__dialog {
	width: min(860px, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	overflow: auto;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	box-shadow: 0 24px 50px rgba(15, 23, 42, 0.28);
}

.chat-automation-save-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	height: 2.2rem !important;
	padding: 0 0.9rem !important;
	font-size: 0.82rem;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	border-radius: 0.45rem;
}

/* Communications image gallery */
.comm-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 14px;
}

.comm-gallery-grid > .comm-empty {
	grid-column: 1 / -1;
}

.comm-gallery-card {
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.comm-gallery-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(15, 23, 42, 0.1);
	border-color: #cbd5e1;
}

.comm-gallery-thumb {
	height: 120px;
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
}

.comm-gallery-thumb__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	border-radius: 8px;
}

.comm-gallery-body {
	padding: 10px;
}

.comm-gallery-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
}

.comm-gallery-name {
	font-size: 12px;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.comm-gallery-size {
	font-size: 11px;
	color: #64748b;
	white-space: nowrap;
}

.comm-gallery-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.comm-gallery-icon-btn {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	color: #334155;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.comm-gallery-icon-btn:hover {
	background: #e2e8f0;
	border-color: #cbd5e1;
	color: #0f172a;
}

.comm-gallery-icon-btn.is-copied {
	background: #dcfce7;
	border-color: #86efac;
	color: #166534;
}

.comm-gallery-icon-btn--danger {
	background: #fff1f2;
	border-color: #fecdd3;
	color: #be123c;
}

.comm-gallery-icon-btn--danger:hover {
	background: #ffe4e6;
	border-color: #fda4af;
	color: #9f1239;
}

.comm-gallery-footer {
	padding: 0 10px 10px;
}

.comm-gallery-hint {
	font-size: 11px;
	color: #94a3b8;
}

/* ======================================================
   Communications admin (index + email templates)
   ====================================================== */

.comm-admin {
	max-width: 1600px;
	margin-left: auto;
	margin-right: auto;
}

.comm-page-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid #e2e8f0;
}

.comm-page-head__brand {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
	min-width: 0;
}

.comm-page-head__icon {
	flex-shrink: 0;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
	border: 1px solid #bfdbfe;
	color: #1d4ed8;
	font-size: 1.35rem;
}

.comm-page-head__title {
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #0f172a;
	line-height: 1.25;
	margin: 0 0 0.25rem;
}

.comm-page-head__lede {
	margin: 0;
	font-size: 0.875rem;
	color: #64748b;
	line-height: 1.5;
	max-width: 42rem;
}

.comm-page-head__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.comm-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1rem;
	margin-bottom: 1rem;
}

.comm-toolbar__title {
	font-size: 1.0625rem;
	font-weight: 600;
	color: #0f172a;
	margin: 0;
}

.comm-callout {
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #475569;
	padding: 0.65rem 0.85rem;
	border-radius: 10px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	margin-bottom: 1rem;
}

.comm-callout a {
	font-weight: 600;
}

.comm-table-wrap {
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	background: #fff;
}

.team-pending-title {
	margin: 0 0 0.75rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: #0f172a;
}

.comm-table-wrap > .comm-data-table thead th:first-child,
.comm-table-wrap > .comm-data-table tbody td:first-child {
	padding-left: 1.25rem;
}

.comm-table-wrap > .comm-data-table thead th:last-child,
.comm-table-wrap > .comm-data-table tbody td:last-child {
	padding-right: 1.25rem;
}

.comm-data-table {
	width: 100%;
	font-size: 0.8125rem;
	text-align: left;
	color: #64748b;
	border-collapse: collapse;
}

.comm-data-table thead {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #475569;
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
}

.comm-data-table th,
.comm-data-table td {
	padding: 0.65rem 1rem;
	vertical-align: middle;
}

.comm-data-table tbody tr {
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.12s ease;
}

.comm-data-table tbody tr:last-child {
	border-bottom: 0;
}

.comm-data-table tbody tr:hover {
	background: #fafbfc;
}

/* Slightly more left inset on first column (customers, employees, etc.) */
.comm-data-table.comm-data-table--inset-first th:first-child,
.comm-data-table.comm-data-table--inset-first td:first-child {
	padding-left: 1.35rem;
}

/* Admin employees index ? Areas column ~45% table width, light grey pills */
.comm-data-table.comm-data-table--employee-users {
	table-layout: fixed;
	width: 100%;
}

.comm-data-table.comm-data-table--employee-users th:nth-child(1),
.comm-data-table.comm-data-table--employee-users td:nth-child(1) {
	width: 15%;
}

.comm-data-table.comm-data-table--employee-users th:nth-child(2),
.comm-data-table.comm-data-table--employee-users td:nth-child(2) {
	width: 18%;
}

.comm-data-table.comm-data-table--employee-users th:nth-child(3),
.comm-data-table.comm-data-table--employee-users td:nth-child(3) {
	width: 12%;
}

.comm-data-table.comm-data-table--employee-users th:nth-child(5),
.comm-data-table.comm-data-table--employee-users td:nth-child(5) {
	width: 10%;
}

th.employee-areas-col,
td.employee-areas-col {
	width: 45%;
	vertical-align: top;
}

.employee-areas-pill-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	align-content: flex-start;
	line-height: 1.25;
}

.employee-area-pill {
	display: inline-block;
	max-width: 100%;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.35;
	padding: 0.25rem 0.55rem;
	border-radius: 6px;
	background: #f0f1f3;
	color: #4b5563;
	border: 1px solid #e6e7eb;
	word-break: break-word;
}

.employee-area-pill--muted {
	color: #6b7280;
	background: #f4f4f5;
	border-color: #e8e8ea;
}

.comm-empty {
	padding: 2.5rem 1.5rem;
	text-align: center;
	color: #64748b;
	font-size: 0.875rem;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	background: #f8fafc;
}

.comm-gallery-upload {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
}

.comm-gallery-upload .form-input {
	flex: 1 1 200px;
	min-width: 0;
}

/* Template create / edit */
.comm-template-page {
	max-width: 1600px;
	margin-left: auto;
	margin-right: auto;
}

.comm-template-grid {
	display: grid;
	gap: 1.5rem;
	align-items: start;
}

@media (min-width: 1200px) {
	.comm-template-grid {
		grid-template-columns: minmax(0, 1fr) min(380px, 34%);
		gap: 2rem;
	}
}

.comm-template-aside {
	position: static;
}

@media (min-width: 1200px) {
	.comm-template-aside {
		position: sticky;
		top: 1rem;
	}
}

.comm-form-card .card-body {
	padding: 1.5rem 1.5rem;
}

@media (min-width: 768px) {
	.comm-form-card .card-body {
		padding: 1.75rem 2rem;
	}
}

.comm-form-section {
	border-radius: 12px;
	border: 1px solid #e2e8f0;
	background: #fafbfc;
	padding: 1.25rem 1.25rem;
	margin-bottom: 1.25rem;
}

.comm-form-section:last-of-type {
	margin-bottom: 0;
}

.comm-form-section__label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
	margin-bottom: 1rem;
}

.comm-field-stack > * + * {
	margin-top: 1.15rem;
}

.comm-form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.65rem;
	padding-top: 1.25rem;
	margin-top: 1.25rem;
	border-top: 1px solid #e2e8f0;
}

.comm-placeholders-card .card-header {
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
	border-bottom: 1px solid #e2e8f0;
}

.comm-placeholders-card .card-title {
	font-size: 1rem;
	font-weight: 600;
	color: #0f172a;
}

.comm-tips {
	margin-top: 1.25rem;
	padding: 1rem 1.1rem;
	border-radius: 12px;
	background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
	border: 1px solid #bfdbfe;
}

.comm-tips__title {
	font-size: 0.875rem;
	font-weight: 600;
	color: #1e3a8a;
	margin: 0 0 0.5rem;
}

.comm-tips ul {
	margin: 0;
	padding-left: 1.1rem;
	font-size: 0.8125rem;
	color: #1e40af;
	line-height: 1.55;
}

.comm-tips li {
	margin-top: 0.25rem;
}

.comm-toggle-row {
	padding: 0.75rem 1rem;
	border-radius: 10px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

/* TinyMCE template gallery modal (must sit above editor dialogs) */
.template-gallery-modal {
	position: fixed !important;
	inset: 0 !important;
	z-index: 100000 !important;
	display: none;
}

.template-gallery-modal.is-open {
	display: block;
}

.template-gallery-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.52);
}

.template-gallery-modal__wrap {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.template-gallery-modal__dialog {
	width: min(920px, 88vw);
	max-height: 85vh;
	overflow: hidden;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 28px 68px rgba(15, 23, 42, 0.35);
}

.template-gallery-modal__content {
	padding: 16px;
	overflow-y: auto;
	max-height: calc(85vh - 64px);
}

.template-gallery-feedback {
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 500;
	border: 1px solid transparent;
}

.template-gallery-feedback.is-info {
	background: #eff6ff;
	border-color: #bfdbfe;
	color: #1e3a8a;
}

.template-gallery-feedback.is-success {
	background: #ecfdf3;
	border-color: #86efac;
	color: #166534;
}

.template-gallery-feedback.is-error {
	background: #fff1f2;
	border-color: #fda4af;
	color: #9f1239;
}

.template-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 12px;
}

.gallery-add-item {
	position: relative;
	height: 170px;
	width: 100%;
	border: 2px dashed #cbd5e1;
	border-radius: 12px;
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	color: #475569;
	transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.gallery-add-item:hover {
	border-color: #60a5fa;
	background: linear-gradient(180deg, #eff6ff 0%, #e0f2fe 100%);
	transform: translateY(-1px);
}

.gallery-add-item__plus {
	font-size: 34px;
	line-height: 1;
	font-weight: 600;
	color: #2563eb;
}

.gallery-add-item__label {
	font-size: 12px;
	font-weight: 600;
}

.gallery-add-item__spinner,
.gallery-add-item__uploading {
	display: none;
}

.gallery-add-item.is-uploading {
	pointer-events: none;
	opacity: 0.9;
}

.gallery-add-item.is-uploading .gallery-add-item__plus,
.gallery-add-item.is-uploading .gallery-add-item__label {
	visibility: hidden;
}

.gallery-add-item.is-uploading .gallery-add-item__spinner,
.gallery-add-item.is-uploading .gallery-add-item__uploading {
	display: inline-flex;
}

.gallery-add-item__spinner {
	width: 34px;
	height: 34px;
	border-radius: 9999px;
	border: 3px solid #bfdbfe;
	border-top-color: #2563eb;
	animation: gallery-spin 0.75s linear infinite;
}

.gallery-add-item__uploading {
	font-size: 12px;
	font-weight: 600;
	color: #1d4ed8;
}

.gallery-empty-card {
	height: 170px;
	width: 100%;
	border: 1px dashed #cbd5e1;
	border-radius: 12px;
	background: #f8fafc;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	text-align: center;
	font-size: 13px;
	color: #64748b;
}

.gallery-pick-card {
	position: relative;
	width: 100%;
}

.gallery-pick-item {
	width: 100%;
	height: 170px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-align: left;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.gallery-pick-item:hover {
	border-color: #93c5fd;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
	transform: translateY(-1px);
}

.gallery-pick-item__thumb {
	flex: 1;
	min-height: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	padding: 8px;
}

.gallery-pick-item__img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.gallery-pick-item__label {
	padding: 6px 8px;
	font-size: 12px;
	font-weight: 600;
	color: #1e293b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.gallery-item-delete {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 28px;
	height: 28px;
	border-radius: 9999px;
	border: 1px solid rgba(248, 113, 113, 0.35);
	background: rgba(239, 68, 68, 0.92);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	box-shadow: 0 6px 12px rgba(220, 38, 38, 0.25);
	transition: transform 0.15s ease, background 0.15s ease;
}

.gallery-item-delete:hover {
	transform: scale(1.05);
	background: rgba(220, 38, 38, 0.95);
}

@keyframes gallery-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Custom confirmation modal for gallery delete */
.gallery-delete-confirm-modal {
	position: fixed;
	inset: 0;
	z-index: 100100;
	display: none;
}

.gallery-delete-confirm-modal.is-open {
	display: block;
}

.gallery-delete-confirm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.5);
}

.gallery-delete-confirm-modal__wrap {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.gallery-delete-confirm-modal__dialog {
	width: min(420px, 92vw);
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 20px 45px rgba(15, 23, 42, 0.35);
	overflow: hidden;
}

.gallery-delete-confirm-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-bottom: 1px solid #e5e7eb;
}

.gallery-delete-confirm-modal__head h5 {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	color: #0f172a;
}

.gallery-delete-confirm-modal__body {
	padding: 14px;
}

.gallery-delete-confirm-modal__body p {
	margin: 0;
	color: #475569;
	font-size: 13px;
}

.gallery-delete-confirm-modal__actions {
	margin-top: 14px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}

/* Public presentation viewer */
:root {
	--pv-bar-bg: #0f172a;
	--pv-bar-fg: #f8fafc;
	--pv-accent: #6366f1;
	--pv-muted: #94a3b8;
}

body.pv-viewer *,
body.pv-inactive * {
	box-sizing: border-box;
}

body.pv-viewer,
body.pv-inactive {
	margin: 0;
}

html,
body.pv-viewer {
	height: 100%;
}

body.pv-viewer {
	font-family: ui-sans-serif, system-ui, sans-serif;
	background: #020617;
	color: var(--pv-bar-fg);
	display: flex;
	flex-direction: column;
	height: 100vh;
	min-height: 100vh;
	max-height: 100vh;
	overflow: hidden;
}

.pv-bar {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 16px;
	background: var(--pv-bar-bg);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.pv-title {
	font-size: 0.95rem;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: min(50vw, 420px);
}

.pv-meta {
	font-size: 0.75rem;
	color: var(--pv-muted);
}

.pv-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pv-btn {
	appearance: none;
	border: 1px solid rgba(255, 255, 255, .15);
	background: rgba(255, 255, 255, .06);
	color: var(--pv-bar-fg);
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 0.875rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: background .15s, border-color .15s;
}

.pv-btn:hover:not(:disabled) {
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .25);
}

.pv-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

.pv-btn--primary {
	background: var(--pv-accent);
	border-color: transparent;
}

.pv-btn--primary:hover:not(:disabled) {
	filter: brightness(1.08);
}

.pv-counter {
	font-size: 0.8rem;
	color: var(--pv-muted);
	min-width: 5.5rem;
	text-align: center;
}

.pv-frame-wrap {
	flex: 1 1 auto;
	min-height: 0;
	position: relative;
	background: #0b1220;
	overflow: hidden;
}

.pv-frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	background: #fff;
}

/* Public presentation inactive message page */
body.pv-inactive {
	min-height: 100vh;
	display: grid;
	place-items: center;
	background: radial-gradient(circle at top, #1e293b 0%, #0f172a 45%, #020617 100%);
	color: #e2e8f0;
	font-family: ui-sans-serif, system-ui, sans-serif;
	padding: 20px;
}

body.pv-inactive .wrap {
	width: 100%;
	max-width: 640px;
	border: 1px solid rgba(148, 163, 184, 0.25);
	background: rgba(15, 23, 42, 0.85);
	border-radius: 16px;
	padding: 28px;
	text-align: center;
	box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(2px);
}

body.pv-inactive .logo {
	font-size: 0.8rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #94a3b8;
	margin-bottom: 18px;
}

body.pv-inactive .icon {
	width: 72px;
	height: 72px;
	border-radius: 999px;
	margin: 0 auto 16px;
	display: grid;
	place-items: center;
	background: rgba(59, 130, 246, 0.2);
	border: 1px solid rgba(96, 165, 250, 0.5);
	font-size: 34px;
}

body.pv-inactive h1 {
	margin: 0;
	font-size: 1.5rem;
	color: #f8fafc;
}

body.pv-inactive p {
	margin: 10px 0 0;
	color: #cbd5e1;
	line-height: 1.6;
}

body.pv-inactive .meta {
	margin-top: 14px;
	color: #94a3b8;
	font-size: 0.9rem;
}

@media (max-width: 640px) {
	.pv-bar {
		flex-wrap: wrap;
	}

	.pv-title {
		max-width: 100%;
	}
}

/* ================================================================
   Access Logs pages  (admin/access-logs/index + show)
   ================================================================ */

/* -- Page wrapper ----------------------------------------------- */
.acl-page {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* -- Page header ------------------------------------------------ */
.acl-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.acl-breadcrumb {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.75rem;
	color: #94a3b8;
	margin-bottom: 0.375rem;
}

.acl-breadcrumb a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.acl-breadcrumb a:hover {
	color: #3b82f6;
}

.acl-page-title {
	font-size: 1.375rem;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin: 0;
	line-height: 1.2;
}

.acl-page-title__icon {
	flex-shrink: 0;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.5rem;
	background: rgba(59, 130, 246, 0.1);
	color: #3b82f6;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.125rem;
}

/* -- Stats grid ------------------------------------------------- */
.acl-stats {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

@media (min-width: 768px) {
	.acl-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
	.acl-stats { grid-template-columns: repeat(5, 1fr); }
}

.acl-stat-card {
	border-radius: 0.75rem;
	border: 1px solid #e2e8f0;
}

.acl-stat-card .card-body {
	padding: 1.125rem 1.25rem;
	background: transparent;
}

.acl-stat-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.acl-stat-label {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 0.25rem;
}

.acl-stat-value {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	margin: 0;
}

.acl-stat-icon {
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 9999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.125rem;
}

/* Colour variants */
.acl-stat--blue  { background: linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%); border-color:#bfdbfe; }
.acl-stat--green { background: linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%); border-color:#86efac; }
.acl-stat--amber { background: linear-gradient(135deg,#fffbeb 0%,#fef3c7 100%); border-color:#fde68a; }
.acl-stat--red   { background: linear-gradient(135deg,#fff1f2 0%,#ffe4e6 100%); border-color:#fecdd3; }
.acl-stat--purple{ background: linear-gradient(135deg,#faf5ff 0%,#ede9fe 100%); border-color:#c4b5fd; }

.acl-stat--blue  .acl-stat-label { color:#2563eb; }
.acl-stat--green .acl-stat-label { color:#16a34a; }
.acl-stat--amber .acl-stat-label { color:#d97706; }
.acl-stat--red   .acl-stat-label { color:#dc2626; }
.acl-stat--purple .acl-stat-label{ color:#7c3aed; }

.acl-stat--blue  .acl-stat-value { color:#1e3a8a; }
.acl-stat--green .acl-stat-value { color:#14532d; }
.acl-stat--amber .acl-stat-value { color:#78350f; }
.acl-stat--red   .acl-stat-value { color:#7f1d1d; }
.acl-stat--purple .acl-stat-value{ color:#3b0764; }

.acl-stat--blue  .acl-stat-icon { background:rgba(59,130,246,.12); border:1px solid #bfdbfe; color:#2563eb; }
.acl-stat--green .acl-stat-icon { background:rgba(34,197,94,.12);  border:1px solid #86efac; color:#16a34a; }
.acl-stat--amber .acl-stat-icon { background:rgba(245,158,11,.12); border:1px solid #fde68a; color:#d97706; }
.acl-stat--red   .acl-stat-icon { background:rgba(239,68,68,.12);  border:1px solid #fecdd3; color:#dc2626; }
.acl-stat--purple .acl-stat-icon{ background:rgba(139,92,246,.12); border:1px solid #c4b5fd; color:#7c3aed; }

/* -- Filter toggle button --------------------------------------- */
.acl-filter-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	border: 1px solid #e2e8f0;
	background: #fff;
	font-size: 0.875rem;
	font-weight: 500;
	color: #334155;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.acl-filter-toggle:hover {
	background: #f8fafc;
}

.acl-filter-toggle.is-active {
	border-color: rgba(59,130,246,0.4);
	background: rgba(59,130,246,0.05);
	color: #3b82f6;
}

.acl-filter-toggle.is-active:hover {
	background: rgba(59,130,246,0.1);
}

.acl-filter-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	border-radius: 9999px;
	background: #3b82f6;
	color: #fff;
	font-size: 0.625rem;
	font-weight: 700;
}

.acl-filter-chevron {
	color: #94a3b8;
	transition: transform 0.2s ease;
}

.acl-filter-chevron.is-open {
	transform: rotate(180deg);
}

/* -- Filter grid inside panel ----------------------------------- */
.acl-filter-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

@media (min-width: 768px) {
	.acl-filter-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
	.acl-filter-grid { grid-template-columns: repeat(6, 1fr); }
}

.acl-filter-label {
	display: block;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	margin-bottom: 0.375rem;
}

.acl-filter-actions {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding-top: 0.25rem;
}

/* -- Action badges ---------------------------------------------- */
.acl-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem 0.625rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1;
}

.acl-badge--login {
	background: #dcfce7;
	color: #15803d;
	box-shadow: 0 0 0 1px #86efac;
}

.acl-badge--logout {
	background: #fee2e2;
	color: #dc2626;
	box-shadow: 0 0 0 1px #fca5a5;
}

/* -- Filtered results label ------------------------------------- */
.acl-filtered-label {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem 0.625rem;
	border-radius: 9999px;
	font-size: 0.75rem;
	font-weight: 500;
	background: #fef3c7;
	color: #b45309;
}

/* -- Customer accordion rows ------------------------------------ */
.acl-customer-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 0.875rem;
	padding: 1rem 1.25rem;
	text-align: left;
	background: transparent;
	border: 0;
	cursor: pointer;
	transition: background 0.15s;
}

.acl-customer-toggle:hover {
	background: rgba(241, 245, 249, 0.8);
}

.acl-customer-avatar {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 9999px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.8125rem;
	font-weight: 700;
	box-shadow: 0 1px 3px rgba(15,23,42,0.15);
}

.acl-customer-info {
	flex: 1;
	min-width: 0;
}

.acl-customer-namerow {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.acl-customer-name {
	font-size: 0.875rem;
	font-weight: 600;
	color: #0f172a;
}

.acl-customer-email {
	font-size: 0.75rem;
	color: #94a3b8;
}

.acl-customer-pageview {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.375rem;
	margin-top: 0.25rem;
	font-size: 0.6875rem;
	color: #64748b;
}

.acl-customer-pageview__page {
	font-weight: 600;
	color: #334155;
}

.acl-customer-pageview__ago {
	color: #94a3b8;
}

.acl-customer-meta {
	flex-shrink: 0;
	text-align: right;
}

.acl-customer-meta__time {
	font-size: 0.75rem;
	font-weight: 500;
	color: #334155;
}

.acl-customer-meta__ago {
	font-size: 0.625rem;
	color: #94a3b8;
	margin-top: 0.125rem;
}

.acl-count-badge {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.25rem 0.625rem;
	border-radius: 9999px;
	background: #dbeafe;
	color: #1d4ed8;
	font-size: 0.75rem;
	font-weight: 700;
}

.acl-count-badge__unit {
	font-weight: 400;
}

.acl-chevron {
	flex-shrink: 0;
	color: #94a3b8;
	font-size: 1.125rem;
	transition: transform 0.2s ease;
}

.acl-chevron.is-open {
	transform: rotate(180deg);
}

/* -- Expanded logs panel & table -------------------------------- */
.acl-logs-panel {
	background: rgba(248, 250, 252, 0.4);
	border-top: 1px solid #f1f5f9;
}

.acl-logs-table {
	width: 100%;
	font-size: 0.75rem;
	text-align: left;
	border-collapse: collapse;
}

.acl-logs-table thead tr {
	background: #f1f5f9;
	border-bottom: 1px solid #e2e8f0;
}

.acl-logs-table th {
	padding: 0.625rem 1.25rem;
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #64748b;
}

.acl-logs-table td {
	padding: 0.75rem 1.25rem;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

.acl-logs-table tbody tr:last-child td {
	border-bottom: 0;
}

.acl-logs-table tbody tr:hover td {
	background: #fff;
}

.acl-logs-table__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.625rem 1.25rem;
	font-size: 0.75rem;
	color: #64748b;
	background: #f8fafc;
	border-top: 1px solid #f1f5f9;
}

/* -- IP code element -------------------------------------------- */
.acl-ip-code {
	display: inline-block;
	padding: 0.125rem 0.5rem;
	border-radius: 0.375rem;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	font-family: ui-monospace, monospace;
	font-size: 0.6875rem;
	color: #334155;
}

/* -- Method pill ------------------------------------------------- */
.acl-method-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.125rem 0.375rem;
	border-radius: 0.25rem;
	background: #f1f5f9;
	color: #475569;
	font-family: ui-monospace, monospace;
	font-size: 0.625rem;
	font-weight: 700;
}

/* -- Parameter tag ---------------------------------------------- */
.acl-param-tag {
	display: inline-flex;
	align-items: center;
	padding: 0.125rem 0.5rem;
	border-radius: 0.25rem;
	background: #fef3c7;
	color: #b45309;
	font-size: 0.6875rem;
}

/* -- Hits repeat badge ------------------------------------------ */
.acl-hits-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	padding: 0.125rem 0.5rem;
	border-radius: 9999px;
	background: #fef3c7;
	color: #b45309;
	font-size: 0.625rem;
	font-weight: 600;
}

/* -- Empty state ------------------------------------------------- */
.acl-empty {
	padding: 4rem 1.5rem;
	text-align: center;
}

.acl-empty__icon {
	width: 5rem;
	height: 5rem;
	border-radius: 9999px;
	background: #f1f5f9;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	font-size: 2.25rem;
	color: #cbd5e1;
}

.acl-empty__title {
	font-size: 1.0625rem;
	font-weight: 600;
	color: #475569;
	margin: 0 0 0.375rem;
}

.acl-empty__text {
	font-size: 0.875rem;
	color: #94a3b8;
	margin: 0;
}

/* -- Ignored IPs section ---------------------------------------- */
.acl-ip-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.acl-ip-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.375rem 0.75rem;
	border-radius: 0.375rem;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	font-family: ui-monospace, monospace;
	font-size: 0.75rem;
	font-weight: 500;
	color: #1e293b;
}

/* ================================================================
   Access Log detail (show) page
   ================================================================ */

.acl-show-grid {
	display: grid;
	gap: 1.5rem;
	align-items: start;
}

@media (min-width: 1280px) {
	.acl-show-grid {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	}
}

.acl-show-main {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.acl-show-sidebar {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

@media (min-width: 1280px) {
	.acl-show-sidebar {
		position: sticky;
		top: 1rem;
	}
}

/* -- Section label inside card ---------------------------------- */
.acl-section-label {
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #94a3b8;
	margin: 0 0 0.75rem;
}

/* -- 2-col info grid -------------------------------------------- */
.acl-info-grid {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 768px) {
	.acl-info-grid { grid-template-columns: 1fr 1fr; }
}

.acl-divider {
	border: 0;
	border-top: 1px solid #f1f5f9;
	margin: 1.25rem 0;
}

/* -- Network info blocks ---------------------------------------- */
.acl-network-grid {
	display: grid;
	gap: 0.75rem;
}

@media (min-width: 768px) {
	.acl-network-grid { grid-template-columns: 1fr 1fr; }
}

.acl-info-block {
	padding: 0.875rem 1rem;
	border-radius: 0.625rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.acl-info-block__label {
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #94a3b8;
	margin: 0 0 0.375rem;
}

.acl-info-block__value {
	font-size: 0.9375rem;
	font-weight: 600;
	color: #1e293b;
	margin: 0;
}

/* -- User card inside log detail -------------------------------- */
.acl-user-card {
	display: flex;
	align-items: flex-start;
	gap: 0.875rem;
}

.acl-user-avatar {
	flex-shrink: 0;
	width: 3rem;
	height: 3rem;
	border-radius: 9999px;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
	font-weight: 700;
	box-shadow: 0 1px 3px rgba(15,23,42,0.15);
}

.acl-user-name {
	font-size: 1rem;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.2;
}

.acl-user-email {
	font-size: 0.8125rem;
	color: #64748b;
	margin-top: 0.125rem;
}

.acl-user-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

/* -- Event / time block ----------------------------------------- */
.acl-event-time {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	margin: 0.75rem 0 0;
}

.acl-event-time__main {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #1e293b;
}

.acl-event-time__tz {
	font-size: 0.875rem;
	font-weight: 500;
	color: #3b82f6;
}

.acl-event-time__rel {
	font-size: 0.75rem;
	color: #94a3b8;
}

/* -- Session badge ---------------------------------------------- */
.acl-session-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.25rem 0.625rem;
	border-radius: 0.375rem;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1d4ed8;
	font-size: 0.75rem;
	font-weight: 500;
	margin-top: 0.625rem;
}

/* -- Pages summary grid ----------------------------------------- */
.acl-pages-grid {
	display: grid;
	gap: 0.75rem;
}

@media (min-width: 768px) {
	.acl-pages-grid { grid-template-columns: 1fr 1fr; }
}

.acl-page-card {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.875rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 0.625rem;
	transition: border-color 0.15s;
}

.acl-page-card:hover {
	border-color: #cbd5e1;
}

.acl-page-card__inner {
	display: flex;
	align-items: flex-start;
	gap: 0.625rem;
	flex: 1;
	min-width: 0;
}

.acl-page-card__icon {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border-radius: 0.5rem;
	background: #dbeafe;
	color: #2563eb;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.875rem;
}

.acl-page-card__title {
	font-size: 0.875rem;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.acl-page-card__meta {
	font-size: 0.75rem;
	color: #64748b;
	margin-top: 0.125rem;
}

.acl-page-count {
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 9999px;
	background: #3b82f6;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	font-weight: 700;
	box-shadow: 0 1px 3px rgba(37,99,235,0.25);
}

/* -- Page view timeline ----------------------------------------- */
.acl-timeline-item {
	display: flex;
	gap: 1rem;
}

.acl-timeline-spine {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex-shrink: 0;
	width: 2rem;
}

.acl-timeline-node {
	flex-shrink: 0;
	width: 2rem;
	height: 2rem;
	border-radius: 9999px;
	background: #dbeafe;
	border: 2px solid #93c5fd;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	color: #2563eb;
	z-index: 1;
}

.acl-timeline-line {
	flex: 1;
	width: 1px;
	background: #e2e8f0;
	margin: 0.25rem 0;
	min-height: 1rem;
}

.acl-timeline-content {
	flex: 1;
	padding-bottom: 1rem;
	min-width: 0;
}

.acl-timeline-card {
	padding: 0.875rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 0.625rem;
	transition: border-color 0.15s;
}

.acl-timeline-card:hover {
	border-color: #cbd5e1;
}

.acl-timeline-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
}

.acl-timeline-card__title-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.acl-timeline-card__title {
	font-size: 0.875rem;
	font-weight: 600;
	color: #0f172a;
}

.acl-timeline-card__url {
	font-size: 0.75rem;
	color: #64748b;
	font-family: ui-monospace, monospace;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-top: 0.25rem;
}

.acl-timeline-card__time {
	flex-shrink: 0;
	text-align: right;
	min-width: 7.5rem;
}

.acl-timeline-card__time-utc {
	font-size: 0.75rem;
	font-weight: 500;
	color: #334155;
}

.acl-timeline-card__time-tz {
	font-size: 0.625rem;
	color: #3b82f6;
}

.acl-timeline-card__time-rel {
	font-size: 0.625rem;
	color: #94a3b8;
	margin-top: 0.125rem;
}

.acl-timeline-params {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-top: 0.375rem;
}

/* -- Sidebar quick-info panel ----------------------------------- */
.acl-quickinfo-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #f1f5f9;
	gap: 0.75rem;
}

.acl-quickinfo-row:last-child {
	border-bottom: 0;
}

.acl-quickinfo-key {
	font-size: 0.75rem;
	color: #64748b;
	flex-shrink: 0;
}

.acl-quickinfo-val {
	font-size: 0.75rem;
	font-weight: 600;
	color: #1e293b;
	text-align: right;
	min-width: 0;
}

/* -- Sidebar activity lists ------------------------------------- */
.acl-activity-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.12s;
}

.acl-activity-item:last-child {
	border-bottom: 0;
}

.acl-activity-item:hover {
	background: rgba(248, 250, 252, 0.6);
}

.acl-activity-left {
	display: flex;
	align-items: center;
	gap: 0.625rem;
}

.acl-activity-time {
	font-size: 0.75rem;
	color: #64748b;
}

.acl-activity-user {
	font-size: 0.75rem;
	font-weight: 600;
	color: #1e293b;
}

.acl-activity-sub {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

.acl-activity-view-btn {
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 0.375rem;
	background: #f1f5f9;
	color: #64748b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.75rem;
	transition: background 0.15s, color 0.15s;
	text-decoration: none;
}

.acl-activity-view-btn:hover {
	background: rgba(59, 130, 246, 0.1);
	color: #3b82f6;
}

.acl-sidebar-footer {
	padding: 0.625rem 1rem;
	border-top: 1px solid #f1f5f9;
}

.acl-sidebar-footer a {
	font-size: 0.75rem;
	color: #3b82f6;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.acl-sidebar-footer a:hover {
	text-decoration: underline;
}

.acl-sidebar-empty {
	padding: 1.5rem 1rem;
	text-align: center;
	font-size: 0.75rem;
	color: #94a3b8;
}

.acl-sidebar-empty i {
	display: block;
	font-size: 1.5rem;
	color: #e2e8f0;
	margin-bottom: 0.375rem;
}

/* -- Sidebar card header title ---------------------------------- */
.acl-sidebar-card-title {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #0f172a;
}

.acl-sidebar-card-count {
	margin-left: auto;
	font-size: 0.75rem;
	font-weight: 400;
	color: #94a3b8;
}

/* -- Show page action event badge (header) ---------------------- */
.acl-event-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
}

.acl-event-badge--login {
	background: #dcfce7;
	color: #166534;
	box-shadow: 0 0 0 1px #86efac;
}

.acl-event-badge--logout {
	background: #fee2e2;
	color: #991b1b;
	box-shadow: 0 0 0 1px #fca5a5;
}

/* ================================================================
   Customer Dashboard  (customer/dashboard.blade.php)
   ================================================================ */

/* -- Page wrapper ----------------------------------------------- */
.cdb-page {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

/* -- Welcome header --------------------------------------------- */
.cdb-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem 1.75rem;
	border-radius: 1rem;
	background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #3b82f6 100%);
	color: #fff;
	box-shadow: 0 8px 24px rgba(29, 78, 216, 0.28);
}

.cdb-head__left {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.cdb-head__avatar {
	flex-shrink: 0;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 9999px;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.125rem;
	font-weight: 700;
	color: #fff;
}

.cdb-head__greeting {
	font-size: 1.375rem;
	font-weight: 700;
	line-height: 1.2;
	margin: 0;
}

.cdb-head__sub {
	font-size: 0.875rem;
	color: rgba(255,255,255,0.72);
	margin: 0.25rem 0 0;
}

.cdb-head__right {
	text-align: right;
	font-size: 0.8125rem;
	color: rgba(255,255,255,0.7);
}

.cdb-head__date {
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	margin-bottom: 0.125rem;
}

/* -- Media cards grid ------------------------------------------- */
.cdb-media-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}

@media (min-width: 768px) {
	.cdb-media-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1280px) {
	.cdb-media-grid--1 { grid-template-columns: 1fr; }
	.cdb-media-grid--2 { grid-template-columns: repeat(2, 1fr); }
	.cdb-media-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.cdb-media-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.cdb-media-card {
	border-radius: 0.875rem;
	border: 1px solid #e2e8f0;
	background: #fff;
	overflow: hidden;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cdb-media-card:hover {
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
	transform: translateY(-2px);
}

.cdb-media-card .card-body {
	padding: 1.25rem;
	background: transparent;
}

/* Platform colour variants */
.cdb-media-card--google    { background: linear-gradient(160deg,#f0f9ff 0%,#e0f2fe 100%); border-color:#bae6fd; }
.cdb-media-card--facebook  { background: linear-gradient(160deg,#eef2ff 0%,#e0e7ff 100%); border-color:#c7d2fe; }
.cdb-media-card--instagram { background: linear-gradient(160deg,#fdf2f8 0%,#fce7f3 100%); border-color:#fbcfe8; }
.cdb-media-card--youtube   { background: linear-gradient(160deg,#fff1f2 0%,#ffe4e6 100%); border-color:#fecdd3; }

/* -- Media card header (logo + name + status) ------------------- */
.cdb-media-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1rem;
	padding-bottom: 0.875rem;
	border-bottom: 1px solid rgba(0,0,0,0.06);
}

.cdb-media-logo {
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.75rem;
	background: rgba(255,255,255,0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	box-shadow: 0 1px 4px rgba(15,23,42,0.1);
}

.cdb-media-logo img {
	width: 1.75rem;
	height: 1.75rem;
	object-fit: contain;
}

.cdb-media-name {
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
}

.cdb-media-status {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	padding: 0.2rem 0.5rem;
	border-radius: 9999px;
	font-size: 0.6875rem;
	font-weight: 600;
	margin-top: 0.25rem;
}

.cdb-media-status--active {
	background: #dcfce7;
	color: #15803d;
}

.cdb-media-status--inactive {
	background: #f1f5f9;
	color: #64748b;
}

/* -- Period label ----------------------------------------------- */
.cdb-media-period {
	font-size: 0.75rem;
	color: #64748b;
	margin-bottom: 0.75rem;
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

/* -- Metric rows inside media card ------------------------------ */
.cdb-media-stats {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.cdb-media-stat {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	background: rgba(255,255,255,0.55);
}

.cdb-media-stat__label {
	font-size: 0.8125rem;
	font-weight: 500;
}

.cdb-media-stat__value {
	font-size: 1.0625rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	color: #0f172a;
}

.cdb-media-stat--clicks    .cdb-media-stat__label { color: #2563eb; }
.cdb-media-stat--impr      .cdb-media-stat__label { color: #dc2626; }
.cdb-media-stat--conv      .cdb-media-stat__label { color: #d97706; }
.cdb-media-stat--rate      .cdb-media-stat__label { color: #16a34a; }

/* -- Media empty state ------------------------------------------ */
.cdb-media-empty {
	text-align: center;
	padding: 0.5rem 0 0.25rem;
}

.cdb-media-empty__text {
	font-size: 0.875rem;
	color: #64748b;
	margin: 0 0 0.75rem;
}

/* -- Access stats row ------------------------------------------- */
.cdb-astat-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1rem;
}

@media (min-width: 1280px) {
	.cdb-astat-grid { grid-template-columns: repeat(4, 1fr); }
}

.cdb-astat-card {
	border-radius: 0.875rem;
	border: 1px solid #e2e8f0;
}

.cdb-astat-card .card-body {
	padding: 1.125rem 1.25rem;
	background: transparent;
}

.cdb-astat-inner {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
}

.cdb-astat-label {
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin: 0 0 0.375rem;
}

.cdb-astat-value {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	margin: 0;
}

.cdb-astat-value--sm {
	font-size: 1rem;
	line-height: 1.3;
}

.cdb-astat-sub {
	font-size: 0.6875rem;
	margin: 0.25rem 0 0;
	opacity: 0.75;
}

.cdb-astat-icon {
	flex-shrink: 0;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 9999px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
}

/* Colour variants */
.cdb-astat--blue   { background: linear-gradient(135deg,#eff6ff 0%,#dbeafe 100%); border-color:#bfdbfe; }
.cdb-astat--green  { background: linear-gradient(135deg,#f0fdf4 0%,#dcfce7 100%); border-color:#86efac; }
.cdb-astat--amber  { background: linear-gradient(135deg,#fffbeb 0%,#fef3c7 100%); border-color:#fde68a; }
.cdb-astat--slate  { background: linear-gradient(135deg,#f8fafc 0%,#f1f5f9 100%); border-color:#cbd5e1; }

.cdb-astat--blue  .cdb-astat-label { color:#2563eb; }
.cdb-astat--green .cdb-astat-label { color:#16a34a; }
.cdb-astat--amber .cdb-astat-label { color:#d97706; }
.cdb-astat--slate .cdb-astat-label { color:#475569; }

.cdb-astat--blue  .cdb-astat-value,
.cdb-astat--blue  .cdb-astat-sub    { color:#1e3a8a; }
.cdb-astat--green .cdb-astat-value,
.cdb-astat--green .cdb-astat-sub    { color:#14532d; }
.cdb-astat--amber .cdb-astat-value,
.cdb-astat--amber .cdb-astat-sub    { color:#78350f; }
.cdb-astat--slate .cdb-astat-value,
.cdb-astat--slate .cdb-astat-sub    { color:#0f172a; }

.cdb-astat--blue  .cdb-astat-icon { background:rgba(59,130,246,.15);  border:1px solid #bfdbfe; color:#2563eb; }
.cdb-astat--green .cdb-astat-icon { background:rgba(34,197,94,.15);   border:1px solid #86efac; color:#16a34a; }
.cdb-astat--amber .cdb-astat-icon { background:rgba(245,158,11,.15);  border:1px solid #fde68a; color:#d97706; }
.cdb-astat--slate .cdb-astat-icon { background:rgba(100,116,139,.15); border:1px solid #cbd5e1; color:#475569; }

/* -- Bottom 2-column grid --------------------------------------- */
.cdb-bottom-grid {
	display: grid;
	gap: 1.25rem;
}

@media (min-width: 1280px) {
	.cdb-bottom-grid { grid-template-columns: 1fr 1fr; }
}

/* -- All-time stats card ---------------------------------------- */
.cdb-alltime-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.875rem;
}

@media (min-width: 640px) {
	.cdb-alltime-grid { grid-template-columns: 1fr 1fr; }
}

.cdb-alltime-block {
	padding: 1rem;
	border-radius: 0.75rem;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.cdb-alltime-block__head {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	margin-bottom: 0.875rem;
	padding-bottom: 0.625rem;
	border-bottom: 1px solid #e2e8f0;
}

.cdb-alltime-block__icon {
	width: 1.75rem;
	height: 1.75rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cdb-alltime-block__icon img {
	width: 1.5rem;
	height: 1.5rem;
	object-fit: contain;
}

.cdb-alltime-block__name {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #334155;
}

.cdb-alltime-stat {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	font-size: 0.8125rem;
	padding: 0.3rem 0;
	border-bottom: 1px solid #f1f5f9;
}

.cdb-alltime-stat:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.cdb-alltime-stat__label { color: #64748b; }
.cdb-alltime-stat__value { font-weight: 700; font-variant-numeric: tabular-nums; }

.cdb-alltime-stat--clicks .cdb-alltime-stat__value { color: #2563eb; }
.cdb-alltime-stat--impr   .cdb-alltime-stat__value { color: #dc2626; }
.cdb-alltime-stat--conv   .cdb-alltime-stat__value { color: #d97706; }
.cdb-alltime-stat--rate   .cdb-alltime-stat__value { color: #16a34a; }

/* -- Recent invoices card --------------------------------------- */
.cdb-invoice-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cdb-invoice-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.75rem 0;
	border-bottom: 1px solid #f1f5f9;
}

.cdb-invoice-item:first-child { padding-top: 0; }
.cdb-invoice-item:last-child  { border-bottom: 0; padding-bottom: 0; }

.cdb-invoice-item__left {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
}

.cdb-invoice-item__icon {
	flex-shrink: 0;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 0.5rem;
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #2563eb;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9375rem;
}

.cdb-invoice-item__num {
	font-size: 0.875rem;
	font-weight: 600;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cdb-invoice-item__date {
	font-size: 0.75rem;
	color: #94a3b8;
	margin-top: 0.125rem;
}

.cdb-invoice-item__right { flex-shrink: 0; text-align: right; }

.cdb-invoice-item__amount {
	font-size: 0.9375rem;
	font-weight: 700;
	color: #0f172a;
	font-variant-numeric: tabular-nums;
}

.cdb-invoice-empty {
	padding: 2.5rem 1rem;
	text-align: center;
}

.cdb-invoice-empty i {
	font-size: 2.25rem;
	color: #e2e8f0;
	display: block;
	margin-bottom: 0.625rem;
}

.cdb-invoice-empty__text {
	font-size: 0.875rem;
	color: #94a3b8;
	margin: 0;
}

/* -- Card header helper ----------------------------------------- */
.cdb-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.cdb-card-title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.9375rem;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.cdb-card-title__icon {
	width: 1.875rem;
	height: 1.875rem;
	border-radius: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1rem;
}

.cdb-card-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.625rem;
	border-radius: 9999px;
	font-size: 0.6875rem;
	font-weight: 600;
	background: #f1f5f9;
	color: #64748b;
}

/* -- CTA button inside media empty state ----------------------- */
.cdb-cta-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	background: #1d4ed8;
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.15s ease;
}

.cdb-cta-btn:hover {
	background: #1e40af;
	color: #fff;
}

/* Base badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 9999px;
    color: #ffffff;
    line-height: 1;
}

/* Dot */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff;
    opacity: 0.9;
}

/* ACTIVE */
.status-active {
    background-color: #16a34a; /* green */
}
.status-active .status-dot {
    background-color: #ffffff;
}

/* PAUSED */
.status-paused {
    background-color: #dc2626; /* red */
}
.status-paused .status-dot {
    background-color: #f59e0b; /* orange */
}

/* ARCHIVED */
.status-archived {
    background-color: #6b7280; /* gray */
}
.status-archived .status-dot {
    background-color: #d1d5db; /* light gray */
}

/* Language switcher ? flag-icons sizing */
.locale-flag {
    font-size: 1.125rem;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* ?? Sidebar notification badge ?????????????????????????????? */
.sidebar-notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

/* ???????????????????????????????????????????????????????????
   App Dialog ? global confirm / alert / prompt
??????????????????????????????????????????????????????????? */
.app-dialog__panel {
    position: fixed;
    inset: 0;
    z-index: 100200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.app-dialog__panel.hidden { display: none !important; }

.app-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
}

.app-dialog__card {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    padding: 1.5rem 1.5rem 1.25rem;
    animation: app-dialog-in 0.2s ease;
}

@keyframes app-dialog-in {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.app-dialog__icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.app-dialog__icon--danger  { background: #fef2f2; color: #dc2626; }
.app-dialog__icon--warning { background: #fffbeb; color: #d97706; }
.app-dialog__icon--primary { background: #eef2ff; color: #4f46e5; }
.app-dialog__icon--info    { background: #eff6ff; color: #2563eb; }
.app-dialog__icon--success { background: #f0fdf4; color: #16a34a; }

.app-dialog__title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
}

.app-dialog__message {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.55;
}

.app-dialog__input {
    width: 100%;
    margin: -0.5rem 0 1.25rem;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.92rem;
    color: #111827;
    background: #f9fafb;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.app-dialog__input:focus {
    outline: none;
    border-color: #6366f1;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.app-dialog__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.app-dialog__actions--single { justify-content: stretch; }
.app-dialog__actions--single .app-dialog__btn { flex: 1; }

.app-dialog__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 40px;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: filter 0.14s, transform 0.12s, background 0.14s;
    line-height: 1.3;
}
.app-dialog__btn:hover  { filter: brightness(1.05); }
.app-dialog__btn:active { transform: scale(0.97); }

.app-dialog__btn--ghost {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
}
.app-dialog__btn--ghost:hover { background: #e5e7eb; }

.app-dialog__btn--primary {
    background: #4f46e5;
    color: #fff;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
}

.app-dialog__btn--danger {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
}

.app-dialog__btn--warning {
    background: #d97706;
    color: #fff;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28);
}

body.app-dialog-open { overflow: hidden; }

@media (max-width: 480px) {
    .app-dialog__actions { flex-direction: column-reverse; }
    .app-dialog__actions .app-dialog__btn { width: 100%; }
}

/* Email verification banner */
.email-verify-banner {
    background: #0369a1;
    color: #ffffff;
}

.email-verify-banner__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.65rem 1rem;
}

.email-verify-banner__message {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    color: #ffffff;
}

.email-verify-banner__message .ti {
    margin-top: 0.1rem;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.email-verify-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border: 0;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.email-verify-banner__btn:hover {
    background: rgba(255, 255, 255, 0.32);
}

.email-verify-banner__btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.email-verify-dialog__tip {
    margin-top: -0.35rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

.email-verify-dialog__code {
    text-align: center;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.45em;
    padding-left: 0.75rem;
}

.email-verify-dialog__error {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #dc2626;
    text-align: center;
}

.email-verify-dialog__error.hidden { display: none; }

.email-verify-dialog__dismiss {
    display: block;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.4rem;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 0.875rem;
    cursor: pointer;
}

.email-verify-dialog__dismiss:hover { color: #111827; }

/* ???????????????????????????????????????????????????????????????
   APP TOPBAR
??????????????????????????????????????????????????????????????? */
.app-header {
    border-bottom: 1px solid #eef0f4;
}

.app-topbar-mobile-brand {
    margin-left: 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    text-decoration: none;
    letter-spacing: -0.02em;
}

/* Icon cluster */
.app-topbar-tools {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #eef0f4;
}

.app-topbar-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
    padding: 0;
}

.app-topbar-icon-btn:hover,
.app-topbar-icon-btn.has-badge,
.hs-dropdown.open > .app-topbar-icon-btn.hs-dropdown-toggle {
    background: #fff;
    color: #4f46e5;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.app-topbar-flag {
    width: 18px !important;
    height: 13px !important;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.app-topbar-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f8fafc;
    pointer-events: none;
}

/* User trigger */
.app-topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
    border: 1px solid #eef0f4;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-topbar-user:hover,
.hs-dropdown.open > .app-topbar-user.hs-dropdown-toggle {
    border-color: #d8dcec;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.app-topbar-user__avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-topbar-user__meta {
    text-align: left;
    line-height: 1.2;
    max-width: 120px;
}

.app-topbar-user__name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-topbar-user__role {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

.app-topbar-user__chev {
    font-size: 14px;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

.hs-dropdown.open .app-topbar-user__chev {
    transform: rotate(180deg);
}

/* Dropdown shell ? work WITH Preline, not against it */
.app-header .hs-dropdown-menu.app-topbar-dropdown {
    padding: 0 !important;
    margin-top: 10px !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14), 0 2px 8px rgba(15, 23, 42, 0.05) !important;
    overflow: hidden !important;
    min-width: 0 !important;
}

.app-header .hs-dropdown-menu.app-topbar-dropdown--lang {
    width: 210px;
}

.app-topbar-dropdown--lang form {
    padding: 6px;
}

.app-header .hs-dropdown-menu.app-topbar-dropdown--user {
    width: 240px;
}

.app-header .hs-dropdown-menu.app-topbar-dropdown--notif {
    width: 360px;
    max-width: calc(100vw - 24px);
}

.app-topbar-dropdown__head {
    padding: 10px 14px 8px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.app-topbar-dropdown__body {
    padding: 6px;
}

.app-topbar-dropdown__foot {
    padding: 6px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
}

.app-topbar-dropdown__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.app-topbar-dropdown__item .ti {
    width: 18px;
    font-size: 17px;
    color: #94a3b8;
    flex-shrink: 0;
}

.app-topbar-dropdown__item:hover,
.app-topbar-dropdown__item.is-active {
    background: #f5f3ff;
    color: #4f46e5;
}

.app-topbar-dropdown__item:hover .ti,
.app-topbar-dropdown__item.is-active .ti {
    color: #4f46e5;
}

.app-topbar-dropdown__item.is-danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.app-topbar-dropdown__item.is-danger:hover .ti {
    color: #dc2626;
}

.app-topbar-dropdown__check {
    margin-left: auto;
    font-size: 14px;
    color: #4f46e5;
}

.app-topbar-dropdown__pill {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* User card in dropdown */
.app-topbar-usercard {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: linear-gradient(135deg, #f8f7ff 0%, #f1eeff 100%);
    border-bottom: 1px solid #ebe7ff;
}

.app-topbar-usercard__avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.app-topbar-usercard__name {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-topbar-usercard__email {
    margin: 0;
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Notifications dropdown */
.app-topbar-notif__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f1f5f9;
}

.app-topbar-notif__head strong {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
}

.app-topbar-notif__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

.app-topbar-notif__markall {
    border: none;
    background: #f1f5f9;
    color: #4f46e5;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 7px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s ease;
}

.app-topbar-notif__markall:hover {
    background: #e0e7ff;
}

.app-topbar-notif__list {
    max-height: 340px;
    overflow-y: auto;
}

.app-topbar-notif__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.12s ease;
}

.app-topbar-notif__item:last-child {
    border-bottom: none;
}

.app-topbar-notif__item:hover {
    background: #fafafa;
}

.app-topbar-notif__item.is-unread {
    background: #faf8ff;
}

.app-topbar-notif__item.is-unread:hover {
    background: #f3f0ff;
}

.app-topbar-notif__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.app-topbar-notif__body {
    flex: 1;
    min-width: 0;
}

.app-topbar-notif__title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-topbar-notif__msg {
    display: block;
    font-size: 12px;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 4px;
}

.app-topbar-notif__time {
    display: block;
    font-size: 11px;
    color: #94a3b8;
}

.app-topbar-notif__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    margin-top: 6px;
    flex-shrink: 0;
}

.app-topbar-notif__empty {
    padding: 36px 20px;
    text-align: center;
    color: #94a3b8;
}

.app-topbar-notif__empty .ti {
    font-size: 28px;
    display: block;
    margin-bottom: 8px;
}

.app-topbar-notif__empty p {
    margin: 0;
    font-size: 13px;
}

.app-topbar-notif__foot {
    padding: 10px 16px;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    text-align: center;
}

.app-topbar-notif__foot a {
    font-size: 13px;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
}

.app-topbar-notif__foot a:hover {
    color: #4338ca;
}

@media (max-width: 640px) {
    .app-topbar-user {
        padding: 3px;
        border-radius: 10px;
    }

    .app-header .hs-dropdown-menu.app-topbar-dropdown--notif {
        width: calc(100vw - 20px);
    }
}

/* -----------------------------------------------------------
   App Upload ? global upload progress popup
----------------------------------------------------------- */
body.app-upload-open { overflow: hidden; }

.app-upload__panel {
    position: fixed;
    inset: 0;
    z-index: 100300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.app-upload__panel.hidden { display: none !important; }

.app-upload__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(3px);
}

.app-upload__card {
    position: relative;
    width: min(420px, calc(100vw - 2rem));
    background: #fff;
    border-radius: 18px;
    padding: 1.6rem 1.5rem 1.35rem;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    text-align: center;
    animation: app-upload-in 0.2s ease;
}

@keyframes app-upload-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.app-upload__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 0.9rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 1.55rem;
}
.app-upload__panel.is-error .app-upload__icon {
    background: #fef2f2;
    color: #dc2626;
}
.app-upload__panel.is-success .app-upload__icon {
    background: #ecfdf5;
    color: #059669;
}

.app-upload__title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.app-upload__filename {
    margin: 0 0 1.1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    word-break: break-all;
    line-height: 1.4;
    max-height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.app-upload__bar {
    height: 10px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: 0.65rem;
}
.app-upload__bar-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4f46e5 0%, #6366f1 55%, #22d3ee 100%);
    transition: width 0.15s ease;
}
.app-upload__bar.is-indeterminate .app-upload__bar-fill {
    width: 40% !important;
    animation: app-upload-indeterminate 1.1s ease-in-out infinite;
}
@keyframes app-upload-indeterminate {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(280%); }
}

.app-upload__meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.app-upload__status {
    margin: 0 0 1rem;
    font-size: 0.84rem;
    line-height: 1.45;
    color: #64748b;
}
.app-upload__panel.is-error .app-upload__status {
    color: #dc2626;
    font-weight: 600;
}

.app-upload__actions {
    display: flex;
    justify-content: center;
}
.app-upload__btn {
    min-height: 40px;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    border: none;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}
.app-upload__btn--ghost {
    background: #f1f5f9;
    color: #334155;
}
.app-upload__btn--ghost:hover {
    background: #e2e8f0;
}

.app-upload__panel.is-download .app-upload__icon {
    background: #ecfeff;
    color: #0891b2;
}

/* ================================================================
   Help Guide
   ================================================================ */

.help-guide {
    --help-ink: #0f172a;
    --help-muted: #64748b;
    --help-line: #e2e8f0;
    --help-surface: #ffffff;
    --help-soft: #f8fafc;
    --help-accent: #0ea5e9;
    --help-accent-2: #0369a1;
}

.help-guide-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 2.25rem 2rem;
    margin-bottom: 1.75rem;
    color: #fff;
    background:
        radial-gradient(1200px 400px at 10% -20%, rgba(56, 189, 248, 0.35), transparent 55%),
        radial-gradient(900px 380px at 90% 120%, rgba(14, 165, 233, 0.25), transparent 50%),
        linear-gradient(135deg, #0c4a6e 0%, #075985 42%, #0e7490 100%);
    box-shadow: 0 18px 40px rgba(8, 47, 73, 0.28);
}

.help-guide-hero__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(2px);
}
.help-guide-hero__orb--1 {
    width: 220px; height: 220px; right: -40px; top: -60px;
    background: rgba(255,255,255,0.08);
}
.help-guide-hero__orb--2 {
    width: 160px; height: 160px; left: 18%; bottom: -70px;
    background: rgba(125, 211, 252, 0.12);
}

.help-guide-hero__inner { position: relative; z-index: 1; max-width: 720px; }

.help-guide-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0.02em;
    margin-bottom: 0.85rem;
}

.help-guide-hero__title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.help-guide-hero__sub {
    margin: 0 0 1.25rem;
    color: rgba(224, 242, 254, 0.92);
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 58ch;
}

.help-guide-hero__actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.help-guide-search { position: relative; margin-bottom: 1rem; }
.help-guide-search--hero { max-width: 520px; margin-bottom: 1.15rem; }
.help-guide-search--toc { margin-bottom: 0.85rem; }

.help-guide-search__field {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    padding: 0 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(6px);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.help-guide-search--toc .help-guide-search__field {
    min-height: 38px;
    padding: 0 0.65rem;
    border-radius: 10px;
    border: 1px solid var(--help-line);
    background: #fff;
}
.help-guide-search__field:focus-within {
    border-color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
}
.help-guide-search--toc .help-guide-search__field:focus-within {
    border-color: #7dd3fc;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}
.help-guide-search__field > i {
    flex-shrink: 0;
    font-size: 1.05rem;
    color: rgba(224,242,254,0.85);
}
.help-guide-search--toc .help-guide-search__field > i { color: #94a3b8; }
.help-guide-search__input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
    font-size: 0.92rem;
    color: #fff;
}
.help-guide-search--toc .help-guide-search__input { color: #0f172a; font-size: 0.84rem; }
.help-guide-search__input::placeholder { color: rgba(224,242,254,0.65); }
.help-guide-search--toc .help-guide-search__input::placeholder { color: #94a3b8; }
.help-guide-search__clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
}
.help-guide-search__clear:hover { background: rgba(255,255,255,0.25); }

.help-guide-search-results {
    margin-bottom: 1rem;
    border-radius: 16px;
    border: 1px solid var(--help-line);
    background: #fff;
    box-shadow: 0 14px 36px rgba(15,23,42,0.08);
    overflow: hidden;
}
.help-guide-search-results__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}
.help-guide-search-results__list {
    display: flex;
    flex-direction: column;
    max-height: 320px;
    overflow-y: auto;
}
.help-guide-search-hit {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    border: 0;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease;
}
.help-guide-search-hit:last-child { border-bottom: 0; }
.help-guide-search-hit:hover,
.help-guide-search-hit.is-active {
    background: #f0f9ff;
}
.help-guide-search-hit__section {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #0284c7;
}
.help-guide-search-hit__title {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}
.help-guide-search-hit__snippet {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #64748b;
}
.help-guide-search-hit__snippet mark {
    background: #fef08a;
    color: inherit;
    padding: 0 0.12em;
    border-radius: 2px;
}
.help-guide-search-results__empty {
    padding: 1.25rem 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}
.help-guide-search-results__empty i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.35rem;
    color: #cbd5e1;
}
.help-guide-toc__link.has-search-match {
    background: rgba(14,165,233,0.08);
}
.help-guide-toc__link.has-search-match i { color: #0284c7; }
.help-search-flash {
    animation: helpSearchFlash 1.6s ease;
}
@keyframes helpSearchFlash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14,165,233,0); }
    20%, 60% { box-shadow: 0 0 0 4px rgba(14,165,233,0.22); }
}

.help-guide-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 42px;
    padding: 0.55rem 1.05rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.help-guide-hero__btn:hover { transform: translateY(-1px); }
.help-guide-hero__btn--primary {
    background: #fff;
    color: #0c4a6e;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.help-guide-hero__btn--ghost {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
}

.help-guide-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.help-guide-toc {
    position: sticky;
    top: 5.5rem;
    padding: 1rem;
    border-radius: 16px;
    background: var(--help-surface);
    border: 1px solid var(--help-line);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.help-guide-toc__label {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--help-muted);
}

.help-guide-toc__nav { display: flex; flex-direction: column; gap: 0.2rem; }

.help-guide-toc__link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 550;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.help-guide-toc__link i { font-size: 1.05rem; color: #94a3b8; }
.help-guide-toc__link:hover { background: #f1f5f9; color: #0f172a; }
.help-guide-toc__link.is-active {
    background: rgba(14, 165, 233, 0.1);
    color: #0369a1;
}
.help-guide-toc__link.is-active i { color: #0284c7; }

.help-guide-main { min-width: 0; }

.help-section {
    background: var(--help-surface);
    border: 1px solid var(--help-line);
    border-radius: 18px;
    padding: 1.5rem 1.4rem 1.6rem;
    margin-bottom: 1.15rem;
    scroll-margin-top: 5.5rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.035);
}

.help-section__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.help-section__num {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 14px;
    display: grid; place-items: center;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0369a1;
    background: linear-gradient(160deg, #e0f2fe, #f0f9ff);
    border: 1px solid #bae6fd;
}

.help-section__title {
    margin: 0 0 0.35rem;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--help-ink);
}

.help-section__lead {
    margin: 0;
    color: var(--help-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.help-role-grid,
.help-decision-grid,
.help-two-col {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1.15rem;
}
.help-role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.help-decision-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.help-two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.help-role-card,
.help-feature-card {
    border: 1px solid var(--help-line);
    border-radius: 14px;
    padding: 1rem 1.05rem;
    background: var(--help-soft);
}

.help-role-card__icon {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: grid; place-items: center;
    margin-bottom: 0.7rem;
    background: color-mix(in srgb, var(--role-accent) 14%, white);
    color: var(--role-accent);
    font-size: 1.2rem;
}

.help-role-card h3,
.help-feature-card h3 {
    margin: 0 0 0.35rem;
    font-size: 0.98rem;
    font-weight: 750;
    color: var(--help-ink);
}
.help-feature-card h3 { display: flex; align-items: center; gap: 0.4rem; }
.help-feature-card h3 i { color: #0284c7; }
.help-role-card p { margin: 0; font-size: 0.88rem; color: var(--help-muted); line-height: 1.55; }

.help-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: help-step;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.help-steps > li {
    counter-increment: help-step;
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    align-items: start;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    border: 1px solid var(--help-line);
    background: #fff;
}
.help-steps > li::before {
    content: counter(help-step);
    width: 28px; height: 28px;
    border-radius: 9px;
    display: grid; place-items: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(160deg, #0ea5e9, #0369a1);
    grid-row: 1 / span 2;
}
.help-steps > li strong {
    grid-column: 2;
    font-size: 0.92rem;
    color: var(--help-ink);
}
.help-steps > li span {
    grid-column: 2;
    font-size: 0.88rem;
    color: var(--help-muted);
    line-height: 1.55;
}
.help-steps--compact > li { padding: 0.65rem 0.75rem; }
.help-steps--compact { margin-top: 0.75rem; }

.help-bullets {
    margin: 0.55rem 0 0;
    padding-left: 1.1rem;
    color: var(--help-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}
.help-bullets li + li { margin-top: 0.4rem; }
.help-bullets strong { color: #0f172a; }

.help-callout {
    display: flex;
    gap: 0.75rem;
    padding: 1rem 1.05rem;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
}
.help-callout i { font-size: 1.25rem; margin-top: 0.1rem; flex-shrink: 0; }
.help-callout strong { display: block; margin-bottom: 0.2rem; }
.help-callout p { margin: 0; font-size: 0.9rem; line-height: 1.55; color: #1e40af; }

.help-shot {
    margin-bottom: 1.15rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--help-line);
    background: #0f172a;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}
.help-shot__chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.9rem;
    background: #1e293b;
}
.help-shot__chrome span {
    width: 9px; height: 9px; border-radius: 50%;
    background: #64748b;
}
.help-shot__chrome span:nth-child(1) { background: #f87171; }
.help-shot__chrome span:nth-child(2) { background: #fbbf24; }
.help-shot__chrome span:nth-child(3) { background: #34d399; }
.help-shot__chrome em {
    margin-left: 0.55rem;
    font-style: normal;
    font-size: 0.78rem;
    color: #94a3b8;
}
.help-shot__body { background: #f8fafc; }
.help-shot__caption {
    margin: 0;
    padding: 0.75rem 1rem;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.84rem;
    line-height: 1.5;
}

.help-mock-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 9px;
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 650;
    cursor: default;
}
.help-mock-btn--primary {
    background: #0284c7;
    border-color: #0284c7;
    color: #fff;
}
.help-mock-btn--accent {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

.help-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: inline-grid; place-items: center;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.68rem;
    font-weight: 800;
    flex-shrink: 0;
}
.help-avatar--green { background: #d1fae5; color: #047857; }

.help-mock-project { display: grid; grid-template-columns: 170px 1fr; min-height: 240px; }
.help-mock-project__sidebar {
    background: #0f172a;
    color: #cbd5e1;
    padding: 0.9rem 0.7rem;
    display: flex; flex-direction: column; gap: 0.35rem;
}
.help-mock-project__nav {
    display: flex; align-items: center; gap: 0.45rem;
    padding: 0.5rem 0.6rem; border-radius: 9px; font-size: 0.8rem;
}
.help-mock-project__nav.is-active { background: rgba(14,165,233,0.18); color: #fff; }
.help-mock-project__main { padding: 1rem; }
.help-mock-project__toolbar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.9rem; font-weight: 700; color: #0f172a;
}
.help-mock-project__files { display: flex; flex-direction: column; gap: 0.55rem; }
.help-mock-file {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.65rem 0.75rem; border-radius: 12px;
    background: #fff; border: 1px solid #e2e8f0;
}
.help-mock-file strong { display: block; font-size: 0.86rem; color: #0f172a; }
.help-mock-file small { color: #64748b; font-size: 0.75rem; }
.help-mock-file__thumb {
    width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
}
.help-mock-file__thumb--img {
    background: linear-gradient(135deg, #7dd3fc, #38bdf8 40%, #0284c7);
}
.help-mock-file__thumb--pdf {
    background: linear-gradient(135deg, #fecaca, #f87171);
}
.help-mock-file__thumb--vid {
    background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
}

.help-mock-share { padding: 1.1rem; }
.help-mock-share__header {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
    margin-bottom: 0.9rem;
}
.help-mock-share__header strong { color: #0f172a; font-size: 1rem; }
.help-mock-share__tabs { display: flex; gap: 0.35rem; }
.help-mock-share__tabs em {
    font-style: normal; font-size: 0.78rem; font-weight: 650;
    padding: 0.3rem 0.65rem; border-radius: 999px; color: #64748b; background: #e2e8f0;
}
.help-mock-share__tabs em.is-active { background: #0ea5e9; color: #fff; }
.help-mock-share__row { display: flex; gap: 0.5rem; margin-bottom: 0.85rem; }
.help-mock-share__input {
    flex: 1; min-width: 0;
    border: 1px solid #cbd5e1; border-radius: 10px;
    padding: 0.55rem 0.75rem; background: #fff;
    color: #475569; font-size: 0.84rem;
}
.help-mock-share__modes { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.85rem; }
.help-mock-radio {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.4rem 0.7rem; border-radius: 10px;
    border: 1px solid #e2e8f0; background: #fff;
    font-size: 0.8rem; color: #475569;
}
.help-mock-radio.is-on { border-color: #7dd3fc; background: #f0f9ff; color: #0369a1; }
.help-mock-share__people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.help-mock-share__people li {
    display: flex; align-items: center; gap: 0.55rem;
    padding: 0.55rem 0.65rem; border-radius: 10px;
    background: #fff; border: 1px solid #e2e8f0; font-size: 0.84rem; color: #334155;
}
.help-mock-share__people em { margin-left: auto; font-style: normal; font-size: 0.75rem; color: #d97706; font-weight: 650; }
.help-mock-share__people em.is-ok { color: #059669; }

.help-mock-viewer {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    min-height: 280px;
}
.help-mock-viewer__canvas {
    padding: 1rem;
    background:
        linear-gradient(180deg, #e2e8f0, #f8fafc);
}
.help-mock-viewer__art {
    position: relative;
    height: 100%;
    min-height: 240px;
    border-radius: 12px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.55), transparent 40%),
        linear-gradient(135deg, #bae6fd 0%, #7dd3fc 35%, #38bdf8 70%, #0284c7 100%);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
}
.help-mock-pin {
    position: absolute;
    width: 26px; height: 26px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background: #0ea5e9;
    color: #fff;
    display: grid; place-items: center;
    font-size: 0.72rem; font-weight: 800;
    box-shadow: 0 6px 14px rgba(14, 165, 233, 0.4);
}
.help-mock-pin > * , .help-mock-pin { line-height: 1; }
.help-mock-pin {
    /* number stays upright visually via counter-rotation trick using text */
}
.help-mock-pin.is-active { background: #f59e0b; box-shadow: 0 6px 14px rgba(245, 158, 11, 0.45); z-index: 2; }
.help-mock-viewer__panel {
    border-left: 1px solid #e2e8f0;
    background: #fff;
    padding: 0.85rem;
    display: flex; flex-direction: column; gap: 0.65rem;
}
.help-mock-comment {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0.7rem 0.75rem;
    background: #f8fafc;
}
.help-mock-comment.is-active { border-color: #fcd34d; background: #fffbeb; }
.help-mock-comment header {
    display: flex; align-items: center; gap: 0.45rem;
    margin-bottom: 0.35rem; font-size: 0.8rem; font-weight: 700; color: #0f172a;
}
.help-mock-comment header small { margin-left: auto; font-weight: 500; color: #94a3b8; }
.help-mock-comment p { margin: 0 0 0.4rem; font-size: 0.82rem; color: #475569; line-height: 1.45; }
.help-mock-comment footer {
    display: flex; align-items: center; gap: 0.45rem;
    color: #94a3b8; font-size: 0.78rem;
}
.help-mock-comment footer em { margin-left: auto; font-style: normal; font-weight: 650; color: #d97706; }
.help-mock-comment footer em.is-ok { color: #059669; }

.help-decision {
    border-radius: 16px;
    padding: 1.1rem 1.05rem;
    border: 1px solid var(--help-line);
    background: #fff;
}
.help-decision__badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.28rem 0.65rem; border-radius: 999px;
    font-size: 0.75rem; font-weight: 800; margin-bottom: 0.65rem;
}
.help-decision h3 { margin: 0 0 0.4rem; font-size: 1.02rem; font-weight: 800; color: #0f172a; }
.help-decision p { margin: 0 0 0.65rem; font-size: 0.88rem; color: #64748b; line-height: 1.55; }
.help-decision ul { margin: 0; padding-left: 1.05rem; color: #475569; font-size: 0.84rem; line-height: 1.5; }
.help-decision ul li + li { margin-top: 0.25rem; }
.help-decision--yes { border-color: #86efac; background: linear-gradient(180deg, #f0fdf4, #fff); }
.help-decision--yes .help-decision__badge { background: #dcfce7; color: #15803d; }
.help-decision--no { border-color: #fca5a5; background: linear-gradient(180deg, #fef2f2, #fff); }
.help-decision--no .help-decision__badge { background: #fee2e2; color: #b91c1c; }
.help-decision--maybe { border-color: #fcd34d; background: linear-gradient(180deg, #fffbeb, #fff); }
.help-decision--maybe .help-decision__badge { background: #fef3c7; color: #b45309; }

.help-mock-approve-bar {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0.65rem;
    padding: 1.4rem 1rem; background: #111827;
}
.help-mock-action {
    display: inline-flex; align-items: center; gap: 0.35rem;
    border-radius: 10px; padding: 0.55rem 0.9rem;
    font-size: 0.84rem; font-weight: 700; border: none; cursor: default;
}
.help-mock-action--rev { background: #f59e0b; color: #111827; }
.help-mock-action--no { background: #ef4444; color: #fff; }
.help-mock-action--yes { background: #22c55e; color: #052e16; }

.help-mock-team { padding: 1.1rem; }
.help-mock-team__invite { margin-bottom: 1rem; }
.help-mock-team__invite label {
    display: block; margin-bottom: 0.35rem;
    font-size: 0.8rem; font-weight: 650; color: #475569;
}
.help-mock-table {
    width: 100%; border-collapse: collapse; background: #fff;
    border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden;
    font-size: 0.84rem;
}
.help-mock-table th,
.help-mock-table td {
    text-align: left; padding: 0.7rem 0.8rem;
    border-bottom: 1px solid #f1f5f9; color: #334155;
}
.help-mock-table th {
    background: #f8fafc; font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.04em; color: #64748b;
}
.help-pill {
    display: inline-flex; padding: 0.15rem 0.5rem; border-radius: 999px;
    background: #dbeafe; color: #1d4ed8; font-size: 0.72rem; font-weight: 700; font-style: normal;
}
.help-pill--muted { background: #e2e8f0; color: #475569; }
.help-pill--warn { background: #ffedd5; color: #c2410c; }

.help-mock-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 1.1rem;
    background: linear-gradient(180deg, #ecfeff, #f8fafc);
}
.help-mock-plan {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1rem 0.9rem;
}
.help-mock-plan.is-featured {
    border-color: #38bdf8;
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.18);
    transform: translateY(-4px);
}
.help-mock-plan__tag {
    position: absolute; top: -10px; right: 12px;
    background: #0284c7; color: #fff;
    font-size: 0.68rem; font-weight: 800;
    padding: 0.2rem 0.5rem; border-radius: 999px;
}
.help-mock-plan h4 { margin: 0 0 0.35rem; font-size: 0.95rem; color: #0f172a; }
.help-mock-plan__price {
    margin: 0 0 0.65rem; font-size: 1.45rem; font-weight: 800; color: #0f172a; letter-spacing: -0.03em;
}
.help-mock-plan__price span { font-size: 0.8rem; font-weight: 600; color: #64748b; }
.help-mock-plan ul {
    margin: 0 0 0.85rem; padding-left: 1rem;
    color: #64748b; font-size: 0.8rem; line-height: 1.5;
}
.help-mock-plan .help-mock-btn { width: 100%; justify-content: center; }

.help-faq { display: flex; flex-direction: column; gap: 0.55rem; }
.help-faq__item {
    border: 1px solid var(--help-line);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}
.help-faq__question {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 0.95rem 1rem;
    background: transparent; border: 0; cursor: pointer; text-align: left;
    font-size: 0.95rem; font-weight: 700; color: #0f172a;
}
.help-faq__question i {
    flex-shrink: 0; color: #0284c7;
    transition: transform 0.2s ease;
}
.help-faq__item.is-open .help-faq__question i { transform: rotate(45deg); }
.help-faq__answer {
    display: none;
    padding: 0 1rem 1rem;
}
.help-faq__item.is-open .help-faq__answer { display: block; }
.help-faq__answer p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
    line-height: 1.6;
    border-top: 1px solid #f1f5f9;
    padding-top: 0.75rem;
}

.help-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.35rem;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    color: #0e7490;
    font-weight: 700;
    text-decoration: none;
}
.help-cta-link:hover { background: #cffafe; }

.help-guide-footer-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.4rem;
    border-radius: 18px;
    background:
        radial-gradient(600px 200px at 100% 0%, rgba(56,189,248,0.25), transparent 55%),
        linear-gradient(135deg, #0c4a6e, #155e75);
    color: #fff;
    margin-bottom: 0.5rem;
}
.help-guide-footer-card h3 { margin: 0 0 0.25rem; font-size: 1.15rem; font-weight: 800; }
.help-guide-footer-card p { margin: 0; color: #e0f2fe; font-size: 0.9rem; }

@media (max-width: 1024px) {
    .help-guide-layout { grid-template-columns: 1fr; }
    .help-guide-toc { position: static; }
    .help-guide-toc__nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.25rem;
    }
}

@media (max-width: 768px) {
    .help-guide-hero { padding: 1.6rem 1.2rem; }
    .help-role-grid,
    .help-decision-grid,
    .help-two-col,
    .help-mock-plans { grid-template-columns: 1fr; }
    .help-mock-plan.is-featured { transform: none; }
    .help-mock-project,
    .help-mock-viewer { grid-template-columns: 1fr; }
    .help-mock-project__sidebar { flex-direction: row; overflow-x: auto; }
    .help-mock-viewer__panel { border-left: 0; border-top: 1px solid #e2e8f0; }
    .help-guide-toc__nav { grid-template-columns: 1fr; }
    .help-section { padding: 1.15rem 1rem 1.25rem; }
}

.help-figure {
    margin: 0 0 1.15rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #0f172a;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}
.help-figure img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}
.help-figure figcaption {
    margin: 0;
    padding: 0.75rem 1rem;
    background: #0f172a;
    color: #cbd5e1;
    font-size: 0.84rem;
    line-height: 1.5;
}

/* Help Guide admin image manager */
.help-guide-admin-row {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.help-guide-admin-row:last-of-type {
    border-bottom: 0;
    padding-bottom: 0;
}
.help-guide-admin-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}
.help-guide-admin-preview__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.help-guide-admin-preview__badge {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.help-guide-admin-preview__badge.is-default {
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
}
.help-guide-admin-preview__badge.is-custom {
    background: #0284c7;
    color: #fff;
}
.help-guide-admin-upload .form-label {
    font-weight: 700;
    color: #0f172a;
}
@media (max-width: 768px) {
    .help-guide-admin-row {
        grid-template-columns: 1fr;
    }
}

/* Help guide step + video player */
.help-steps > .help-step-item,
.help-steps > li.help-step-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}
.help-step-item__main {
    display: grid;
    grid-template-columns: 28px 1fr;
    column-gap: 0.75rem;
    row-gap: 0.15rem;
    flex: 1;
    min-width: 0;
}
.help-steps > .help-step-item::before,
.help-steps > li.help-step-item::before {
    grid-row: auto;
}
.help-step-item__main strong {
    grid-column: 2;
    font-size: 0.92rem;
    color: var(--help-ink, #0f172a);
}
.help-step-item__main span {
    grid-column: 2;
    font-size: 0.88rem;
    color: var(--help-muted, #64748b);
    line-height: 1.55;
}
.help-step-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid #bae6fd;
    background: #f0f9ff;
    color: #0369a1;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, transform 0.15s;
}
.help-step-video-btn:hover {
    background: #e0f2fe;
    transform: translateY(-1px);
}

.help-video-modal[hidden] { display: none !important; }
.help-video-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.help-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(2px);
}
.help-video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.help-video-modal__dialog--form {
    width: min(520px, 100%);
    background: #fff;
}
.help-video-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
}
.help-video-modal__dialog .help-video-modal__head {
    background: #111827;
    color: #fff;
}
.help-video-modal__dialog--form .help-video-modal__head {
    background: #f8fafc;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
}
.help-video-modal__head h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 750;
}
.help-video-modal__close {
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 0;
    background: rgba(255,255,255,0.08);
    color: inherit;
    cursor: pointer;
    display: grid; place-items: center;
}
.help-video-modal__dialog--form .help-video-modal__close {
    background: #e2e8f0;
    color: #334155;
}
.help-video-modal__frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}
.help-video-modal__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.help-admin-video-form {
    padding: 1rem 1.1rem 1.15rem;
}
.help-admin-video-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}
body.help-video-open { overflow: hidden; }

.help-admin-video-section + .help-admin-video-section { margin-top: 1.35rem; }
.help-admin-video-section__title {
    margin: 0 0 0.55rem;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}
.help-admin-video-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
}
.help-admin-video-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}
.help-admin-video-row:last-child { border-bottom: 0; }
.help-admin-video-row__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.help-admin-video-row__text strong {
    font-size: 0.92rem;
    color: #0f172a;
}
.help-admin-video-row__url {
    font-size: 0.78rem;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 48vw;
}
.help-admin-video-row__url.is-set { color: #0284c7; }
.help-admin-video-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
    padding: 0.45rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
}
.help-admin-video-btn:hover { background: #e2e8f0; }

/* Keep step number badge working with new nested markup */
.help-steps > li.help-step-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.help-steps > li.help-step-item::before {
    content: counter(help-step);
    width: 28px; height: 28px;
    border-radius: 9px;
    display: grid; place-items: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(160deg, #0ea5e9, #0369a1);
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.help-step-item__main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}
.help-step-item__main strong,
.help-step-item__main span {
    grid-column: auto;
}

/* ?? Settings: Maintenance ????????????????????????????????????????? */
.maint-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}
.maint-alert i {
    font-size: 1.25rem;
    line-height: 1;
    margin-top: 0.1rem;
    flex-shrink: 0;
}
.maint-alert--success {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}
.maint-alert--error {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.maint-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 992px) {
    .maint-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.maint-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}
.maint-card__header {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1.15rem 1.25rem 0.85rem;
    border-bottom: 1px solid #f1f5f9;
}
.maint-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.65rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    background: rgba(14, 165, 233, 0.12);
    color: #0284c7;
    font-size: 1.35rem;
}
.maint-card__icon--warn {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}
.maint-card__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}
.maint-card__subtitle {
    margin: 0.2rem 0 0;
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.4;
}
.maint-card__body {
    padding: 1.1rem 1.25rem 1.25rem;
}
.maint-card__actions {
    margin-top: 1rem;
}

.maint-status {
    margin-left: auto;
    flex-shrink: 0;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.maint-status--up {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}
.maint-status--down {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.maint-meta {
    margin: 0;
    display: grid;
    gap: 0.55rem;
}
.maint-meta__row {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.5rem;
    align-items: baseline;
    font-size: 0.875rem;
}
.maint-meta__row dt {
    margin: 0;
    color: #64748b;
    font-weight: 600;
}
.maint-meta__row dd {
    margin: 0;
    color: #0f172a;
    word-break: break-all;
}
.maint-meta__row code {
    font-size: 0.82rem;
    background: #f1f5f9;
    color: #0f172a;
    padding: 0.1rem 0.35rem;
    border-radius: 0.3rem;
}

.maint-note {
    margin: 0.85rem 0 0;
    font-size: 0.84rem;
    color: #64748b;
    line-height: 1.45;
}
.maint-note--warn {
    color: #92400e;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.28);
    border-radius: 0.5rem;
    padding: 0.7rem 0.85rem;
}

.maint-bypass {
    margin-top: 0.85rem;
}
.maint-bypass__label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.35rem;
}
.maint-bypass__row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}
.maint-bypass__input {
    flex: 1;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #f8fafc;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    padding: 0.55rem 0.7rem;
}

.maint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    border-radius: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}
.maint-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.maint-btn--primary {
    background: #0284c7;
    color: #ffffff;
}
.maint-btn--primary:hover:not(:disabled) {
    background: #0369a1;
}
.maint-btn--success {
    background: #16a34a;
    color: #ffffff;
}
.maint-btn--success:hover:not(:disabled) {
    background: #15803d;
}
.maint-btn--danger {
    background: #dc2626;
    color: #ffffff;
}
.maint-btn--danger:hover:not(:disabled) {
    background: #b91c1c;
}
.maint-btn--ghost {
    background: #f1f5f9;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    white-space: nowrap;
}
.maint-btn--ghost:hover {
    background: #e2e8f0;
}
.maint-btn--ghost.is-copied {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.4);
    color: #15803d;
}

.maint-card--wide {
    margin-bottom: 1.25rem;
}
.maint-card__icon--danger {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}
.maint-card__actions--row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.maint-health-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}
@media (min-width: 768px) {
    .maint-health-grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media (min-width: 1200px) {
    .maint-health-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
.maint-health-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.55rem;
    padding: 0.7rem 0.85rem;
}
.maint-health-item__label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.25rem;
}
.maint-health-item__value {
    display: block;
    font-size: 0.875rem;
    color: #0f172a;
    line-height: 1.4;
    word-break: break-word;
}
.maint-health-item__value code {
    font-size: 0.8rem;
    background: #e2e8f0;
    padding: 0.05rem 0.3rem;
    border-radius: 0.25rem;
}
.maint-health-item__value.is-ok {
    color: #15803d;
    font-weight: 600;
}
.maint-health-item__value.is-bad,
.maint-health-item__value .is-bad {
    color: #b91c1c;
    font-weight: 600;
}

.maint-job-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.55rem;
    max-height: 16rem;
    overflow: auto;
}
.maint-job-list li {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: #f8fafc;
}
.maint-job-list__name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #0f172a;
}
.maint-job-list__meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 0.15rem;
}
.maint-job-list__error {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: #b91c1c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Two-factor authentication (profile) */
.two-factor-card .card-title {
    margin-bottom: 0;
}

.two-factor-status {
    margin-bottom: 1rem;
}

.two-factor-status__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
}

.two-factor-status__badge--off {
    background: #f1f5f9;
    color: #475569;
}

.two-factor-status__badge--on {
    background: #dcfce7;
    color: #166534;
}

.two-factor-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.two-factor-alert--success {
    background: #dcfce7;
    color: #166534;
}

.two-factor-alert--info {
    background: #e0f2fe;
    color: #075985;
}

.two-factor-copy {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

.two-factor-setup {
    margin-top: 0.5rem;
}

.two-factor-qr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12.5rem;
    height: 12.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
}

.two-factor-qr svg {
    width: 100%;
    height: 100%;
}

.two-factor-manual {
    margin: 0 0 1.25rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.two-factor-manual__key {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.35rem 0.55rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    color: #0f172a;
    letter-spacing: 0.04em;
    word-break: break-all;
}

.two-factor-confirm-form__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.two-factor-code-input {
    max-width: 10rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    text-align: center;
}

.two-factor-cancel-form {
    margin-top: 1rem;
}

.two-factor-cancel-btn {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.875rem;
    cursor: pointer;
    padding: 0;
}

.two-factor-cancel-btn:hover {
    color: #0f172a;
}

.two-factor-actions {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.two-factor-regen-form {
    max-width: 32rem;
}

.two-factor-disable {
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
}

.two-factor-disable__title {
    margin: 0 0 0.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
}

.two-factor-disable__btn {
    background: #dc2626;
    color: #ffffff;
}

.two-factor-disable__btn:hover {
    background: #b91c1c;
    color: #ffffff;
}

.two-factor-recovery {
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
}

.two-factor-recovery__title {
    margin: 0 0 0.35rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #92400e;
}

.two-factor-recovery__hint {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    color: #a16207;
    line-height: 1.45;
}

.two-factor-recovery__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 0.5rem;
}

.two-factor-recovery__list code {
    display: block;
    padding: 0.45rem 0.6rem;
    background: #ffffff;
    border: 1px solid #fde68a;
    border-radius: 0.375rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    color: #0f172a;
}


