.tc-row {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 10px;
	align-items: start;
	padding: 10px;
	border-bottom: 1px solid var(--gray-2);
}

.tc-intro {
	text-align: center;
}

.tc-icon {
	width: 28px;
	height: 28px;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	color: #ffffff;
	margin-bottom: 8px;
	margin-top: 0;
}

.tc-icon .tt-ico {
	font-size: 18px;
	line-height: 1;
}

.tc-icon.type-issue {
	background: #ef4444;
}

.tc-icon.type-question {
	background: #10b981;
}

.tc-icon.type-billing {
	background: #3b82f6;
}

.tc-body {
	display: grid;
	grid-template-rows: auto auto auto;
	gap: 6px;
}

.tc-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.tc-number {
	display: inline-block;
	min-width: 110px;
	padding: 2px 8px;
	border-radius: 4px;
	background: #739ffc;
	font-size: 10px;
	font-weight: 600;
	color: white;
	text-transform: uppercase;
}

.tc-top-right {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.tc-title {
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
}

.tc-desc {
	font-size: 12px;
	color: #4b5563;
	line-height: 1.4;
}

.tc-meta-lines {
	margin-top: 8px;
	line-height: 1.6;
	font-size: 12px;
}

.tc-meta-lines > div > span {
	min-width: 64px;
	display: inline-block;
	font-size: 12px;
	color: #4b5563;
}

:root {
	--green: #137333;
	--red: #c5221f;
	--gray-1: #f6f8fa;
	--gray-2: #e5e7eb;
	--text: #111827;
	--blue: #2563eb;
	--blue-light: #8cb0ff;
	--blue-hover: #1d4ed8;
	--blue-dark: #0731a3;
}

* {
	box-sizing: border-box;
}

body {
	font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
	margin: 0;
	color: var(--text);
}

.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid var(--gray-2);
	background: white;
	position: sticky;
	top: 0;
	z-index: 10;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.topbar h1 {
	font-size: 20px;
	margin: 0;
	font-weight: 600;
}

.main-nav {
	display: flex;
	gap: 8px;
	margin-left: 20px;
}

.nav-link {
	padding: 8px 12px;
	border: 1px solid transparent;
	background: transparent;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: var(--text);
	transition: all 0.2s;
}

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

.nav-link.active {
	border-color: var(--blue);
	color: var(--blue);
	background: rgba(37, 99, 235, 0.06);
}

.login-form {
	display: flex;
	gap: 12px;
	align-items: center;
}

.login-form input {
	padding: 10px 12px;
	border: 1px solid var(--gray-2);
	border-radius: 8px;
	font-size: 14px;
	transition: border-color 0.2s;
}

.login-form input:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.login-form button {
	padding: 10px 20px;
	border: 0;
	background: var(--blue);
	color: white;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s;
}

.login-form button:hover {
	background: var(--blue-hover);
}

#logout-btn {
	padding: 10px 20px;
	border: 1px solid var(--blue);
	background: white;
	color: var(--blue);
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s;
}

#logout-btn:hover {
	background: var(--blue);
	border-color: var(--blue);
	color: white;
}

.controls {
	display: flex;
	gap: 12px;
	padding: 12px 16px;
	background: var(--blue);
	border-bottom: 1px solid var(--blue);
	color: white;
}

.controls label {
	display: flex;
	align-items: center;
	gap: 6px;
}

select {
	padding: 6px 12px;
	border: 1px solid var(--blue);
	border-radius: 6px;
}

.calendar-section {
	padding: 20px;
}

.breadcrumb {
	width: 100%;
	max-width: 900px;
	margin: 0 auto 20px auto;
	padding: 12px 0;
	font-size: 14px;
	color: #6b7280;
}

.breadcrumb-link {
	color: var(--blue);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.breadcrumb-link:hover {
	color: var(--blue-dark);
	text-decoration: underline;
}

.breadcrumb-separator {
	margin: 0 8px;
	color: #9ca3af;
}

.breadcrumb-current {
	color: var(--text);
	font-weight: 600;
}

.websites-section {
	padding: 20px;
}

.subscriptions-section {
	padding: 20px;
}

.subscriptions-card {
	max-width: 900px;
	margin: 0 auto;
	border: 1px solid var(--gray-2);
	border-radius: 12px;
	background: white;
	padding: 20px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.subscription-plan {
	border: 1px solid var(--gray-2);
	border-radius: 12px;
	background: white;
	overflow: hidden;
}

.plan-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	padding: 24px;
	border-bottom: 1px solid var(--gray-2);
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.plan-info h3 {
	margin: 0 0 8px 0;
	font-size: 24px;
	font-weight: 600;
}

.plan-description {
	margin: 0;
	font-size: 14px;
	opacity: 0.9;
}

.status-badge {
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.status-badge.active {
	background: rgba(255, 255, 255, 0.2);
	color: white;
}

.plan-details {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 32px;
	padding: 24px;
}

.plan-features h4 {
	margin: 0 0 16px 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
}

.plan-features ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.plan-features li {
	margin-bottom: 12px;
	font-size: 14px;
	color: #374151;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.plan-features li strong {
	color: var(--text);
	display: contents;
}

.plan-usage h4 {
	margin: 0 0 16px 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
}

.usage-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	font-size: 14px;
}

.usage-count {
	font-weight: 600;
	color: var(--text);
}

.usage-bar {
	height: 8px;
	background: var(--gray-2);
	border-radius: 4px;
	overflow: hidden;
}

.usage-fill {
	height: 100%;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
	border-radius: 4px;
	transition: width 0.3s ease;
}

.plan-billing {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 24px;
	border-top: 1px solid var(--gray-2);
	background: var(--gray-1);
}

.billing-info {
	display: flex;
	align-items: center;
	gap: 24px;
}

.price {
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.price .amount {
	font-size: 32px;
	font-weight: 700;
	color: var(--text);
}

.price .period {
	font-size: 16px;
	color: #6b7280;
}

.billing-details p {
	margin: 4px 0;
	font-size: 14px;
	color: #374151;
}

.billing-details strong {
	color: var(--text);
}

.billing-actions {
	display: flex;
	gap: 12px;
}

.button.secondary {
	background: transparent;
	color: var(--blue);
	border: 1px solid var(--blue);
}

.button.secondary:hover {
	background: rgba(37, 99, 235, 0.06);
}

/* Style for the Manage Websites button */
#go-to-websites-btn {
	background: var(--green);
}

#go-to-websites-btn:hover {
	background: #0f5f2a;
}

/* Date loader for websites */
.date-loader {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #6b7280;
	font-size: 12px;
}

.spinner-small {
	width: 12px;
	height: 12px;
	border: 2px solid #e5e7eb;
	border-top: 2px solid #6b7280;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

/* Responsive design for subscription plan */
@media (max-width: 768px) {
	.plan-details {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.plan-billing {
		flex-direction: column;
		gap: 20px;
		align-items: stretch;
	}

	.billing-info {
		flex-direction: column;
		gap: 16px;
		text-align: center;
	}

	.billing-actions {
		justify-content: center;
	}

	.plan-header {
		flex-direction: column;
		gap: 16px;
		align-items: flex-start;
	}
}

.website-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto;
	justify-items: center;
}

.website-card {
	border: 1px solid var(--gray-2);
	border-radius: 16px;
	background: white;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	width: 100%;
	max-width: 380px;
	position: relative;
	overflow: hidden;
}

.website-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.website-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
	border-color: #d1d5db;
}

.website-card .title-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 4px;
}

.icon-btn {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	border: 1px solid var(--gray-2);
	background: white;
	color: #6b7280;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.icon-btn:hover {
	color: var(--red);
	border-color: var(--red);
	background: #fff5f5;
}

.remove-btn {
	margin-left: 8px;
}

.website-card h3 {
    font-size: 18px;
	font-weight: 700;
	color: var(--text);
	line-height: 1.3;
	flex: 1;
	margin: 0 12px 0 0;
}

.website-card .url {
	font-size: 13px;
	color: var(--blue);
	text-decoration: none;
	transition: color 0.2s ease;
	word-break: break-all;
	line-height: 1.4;
	margin-bottom: 10px;
}

.website-card .url:hover {
	color: var(--blue-hover);
	text-decoration: underline;
}

.website-card .meta {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.5;
	padding: 2px 0;
}

.website-card .actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 2px;
	padding-top: 2px;
}

.button {
	padding: 10px 20px;
	border: 0;
	background: var(--blue);
	color: white;
	border-radius: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
	white-space: nowrap;
	text-decoration: none;
}

.button:hover {
	background: var(--blue-hover);
}

.button.secondary {
	background: #6b7280;
	color: white;
	box-shadow: 0 2px 4px rgba(107, 114, 128, 0.2);
}

.button.secondary:hover {
	background: #4b5563;
}

.button.success {
	background: #10b981;
	color: white;
	box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.button.success:hover {
	background: #059669;
}

.empty-card {
	border: 2px dashed var(--gray-2);
	background: #fafafa;
	align-items: center;
	justify-content: center;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	min-height: 200px;
}

.empty-card:hover {
	border-color: var(--blue);
	background: #f8fafc;
	transform: translateY(-2px);
}

.plus-icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	border: 1px solid var(--blue-light);
	color: var(--blue);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	margin-bottom: 8px;
	background: white;
}

.calendar-nav {
	width: 100%;
	max-width: 900px;
	margin: 0 auto 10px auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
}

.nav-btn {
	width: 32px;
	height: 32px;
	border: 1px solid var(--blue);
	background: white;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--blue);
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.nav-btn:hover {
	background: var(--blue);
	border-color: var(--blue);
	color: white;
}

.nav-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.year-btn {
	font-size: 12px;
}

.month-btn {
	font-size: 16px;
}

.calendar-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1px;
}

.month-nav-btn {
	width: 40px;
	height: 40px;
	border: 1px solid var(--blue);
	background: white;
	border-radius: 8px;
	cursor: pointer;
	font-size: 18px;
	font-weight: 600;
	color: var(--blue);
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.month-nav-btn:hover {
	background: var(--blue);
	border-color: var(--blue);
	color: white;
}

.month-nav-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.month-year-display {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 140px;
	justify-content: center;
}

.month-year-display span {
	font-size: 20px;
	font-weight: 600;
	color: var(--text);
	cursor: default;
}

.month-display {
	font-size: 24px;
	font-weight: 600;
	color: var(--text);
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
	transition: background-color 0.2s;
}

.month-display:hover {
	background: var(--gray-1);
}

.year-display {
	font-size: 16px;
	font-weight: 500;
	color: #6b7280;
	cursor: pointer;
	padding: 2px 6px;
	border-radius: 4px;
	transition: background-color 0.2s;
}

.year-display:hover {
	background: var(--gray-1);
}

.calendar {
	width: 100%;
	max-width: 900px;
	margin: 20px auto;
	border: 2px solid #3976ff;
	border-radius: 12px;
	overflow: hidden;
	background: white;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

.calendar-header,
.calendar-row {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}

.calendar-header div {
	background: var(--blue);
	padding: 12px 8px;
	text-align: center;
	font-weight: 600;
	font-size: 14px;
	color: white;
	border-bottom: 1px solid var(--blue-light);
}

.calendar-cell {
	min-height: 80px;
	border-right: 1px solid var(--blue-light);
	border-bottom: 1px solid var(--blue-light);
	padding: 8px;
	position: relative;
	cursor: pointer;
	transition: background-color 0.2s;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.calendar-cell:last-child {
	border-right: none;
}

.calendar-cell .date-num {
	font-size: 12px;
	color: var(--text);
	font-weight: 500;
	margin-bottom: 4px;
	position: absolute;
	top: 8px;
	right: 8px;
}

.calendar-cell .count {
	font-size: 18px;
	font-weight: 700;
}

.calendar-cell.red {
	background: #ffefee;
}

.calendar-cell.red .count {
	color: var(--red);
	font-weight: normal;
	font-size: 11px;
}

.calendar-cell.green {
	background: rgba(19, 115, 51, 0.1);
}

.calendar-cell.green .count {
	color: var(--green);
}

.calendar-cell.outside {
	background: #fafafa;
	color: #9ca3af;
	cursor: default;
}

.calendar-cell.outside .date-num {
	color: #9ca3af;
}

.calendar-cell.empty {
	background: transparent;
	cursor: default;
}

.calendar-cell.empty:hover {
	background: transparent;
}

.calendar-cell.future,
.calendar-cell.expired {
	background: white;
	cursor: default;
}

.calendar-cell.future .date-num,
.calendar-cell.expired .date-num {
	color: #d1d5db;
}

.calendar-cell.future .count,
.calendar-cell.expired .count {
	display: none;
}

.calendar-cell.selected {
	outline: 2px solid var(--blue-light);
	outline-offset: -2px;
}

.calendar-cell:hover:not(.outside):not(.future):not(.empty),
.calendar-cell:hover:not(.outside):not(.expired):not(.empty) {
	background: rgba(37, 99, 235, 0.05);
}

.hidden {
	display: none !important;
}

.loader-overlay {
	position: fixed;
	inset: 0;
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 300;
	margin-top: 75px;
}

.spinner {
	width: 48px;
	height: 48px;
	border: 4px solid #d1d5db;
	border-top-color: var(--blue);
	border-radius: 50%;
	animation: spin 0.9s linear infinite;
}

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

.modal {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 100;
}

.modal .modal-content {
	width: min(800px, 90vw);
	max-height: 80vh;
	overflow: hidden;
	background: white;
	border-radius: 12px;
	position: relative;
	box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
}

.modal-header {
	padding: 24px 24px 0 24px;
	position: sticky;
	top: 0;
	background: white;
	z-index: 10;
	border-bottom: 1px solid var(--gray-2);
	margin-bottom: 0;
}

.modal-body {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
}

.modal-close {
	position: absolute;
	right: 16px;
	top: 16px;
	background: transparent;
	border: 0;
	font-size: 24px;
	cursor: pointer;
	color: #6b7280;
	transition: color 0.2s;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
}

.modal-close:hover {
	color: var(--text);
	background: var(--gray-1);
}

.modal h2 {
	margin: 0 0 20px 0;
	font-size: 20px;
	font-weight: 600;
	color: var(--text);
	padding-right: 40px;
}

/* Small confirm modal */
.confirm-modal {
	position: fixed;
	inset: 0;
	background: rgba(17, 24, 39, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 110;
}

.confirm-content {
	width: min(380px, 90vw);
	background: white;
	border-radius: 10px;
	border: 1px solid var(--gray-2);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
	padding: 16px;
	pointer-events: auto;
}

.confirm-title {
	margin: 0 0 8px 0;
	font-size: 16px;
	font-weight: 600;
}

/* Roomier add-website modal */
#add-website-modal .confirm-content {
	width: min(560px, 94vw);
	padding: 20px;
}

/* Restore Configuration Modal */
#restore-config-modal .modal-content {
	width: min(700px, 90vw);
	max-height: 85vh;
}

.restore-config-section {
	margin-bottom: 20px;
	padding: 16px;
	background: var(--gray-1);
	border-radius: 8px;
	border: 1px solid var(--gray-2);
}

.restore-config-section:last-of-type {
	margin-bottom: 0;
}

.section-header {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	padding: 0;
	background: transparent;
	border-radius: 0;
	border-left: none;
}

.section-icon {
	font-size: 16px;
	line-height: 1;
}

.section-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	margin: 0;
}

.restore-config-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid var(--gray-2);
}

/* Compact form fields for restore config */
#restore-config-modal .form-field {
	margin-bottom: 12px;
}

#restore-config-modal .form-row {
	margin-bottom: 8px;
}

#restore-config-modal .form-row:last-child {
	margin-bottom: 0;
}

/* Website card action buttons */
.website-card .actions {
	display: flex;
	gap: 8px;
	align-items: center;
}

.website-card .actions .button {
	padding: 6px 12px;
	font-size: 13px;
	min-width: auto;
	border: none;
}

.website-card .actions .button.secondary {
	padding: 6px 12px;
	font-size: 13px;
}

/* Inline form fields for restore config */
.form-field-inline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 0;
}

.form-field-inline label {
	flex: 0 0 80px;
	font-size: 13px;
	font-weight: 500;
	color: var(--text);
	margin: 0;
	text-align: left;
}

.form-field-inline .text-input {
	flex: 1;
	margin: 0;
}

/* Error states for form validation */
.text-input.error {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.text-input.error:focus {
	border-color: #ef4444;
	box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.form-field {
	margin-bottom: 14px;
}

.form-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	color: #374151;
}

.text-input {
	width: 100%;
	box-sizing: border-box;
	height: 38px;
	padding: 8px 10px;
	border: 1px solid var(--gray-2);
	border-radius: 8px;
	font-size: 14px;
}

.text-input:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.field-error {
	margin-top: 6px;
	color: var(--red);
	font-size: 12px;
	min-height: 16px;
}

.input-group {
	display: flex;
	align-items: stretch;
}

.input-prepend {
	background: var(--gray-1);
	border: 1px solid var(--gray-2);
	border-right: 0;
	padding: 0 10px;
	border-top-left-radius: 8px;
	border-bottom-left-radius: 8px;
	display: inline-flex;
	align-items: center;
	font-size: 14px;
	color: #374151;
}

.input-group > .text-input {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}

.confirm-message {
	margin: 0 0 12px 0;
	font-size: 14px;
	color: #374151;
}

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

.commit {
	border: 1px solid var(--gray-2);
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 12px;
	background: #fafafa;
	position: relative;
}

.commit h3 {
	margin: 0 0 8px 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
	line-height: 1.4;
	padding-right: 80px;
}

.commit .meta {
	font-size: 11px;
	color: #6b7280;
	margin-bottom: 12px;
	line-height: 1.3;
}

.commit .actions {
	display: flex;
	gap: 8px;
}

.commit a.button {
	padding: 6px 10px;
	background: var(--blue);
	color: white;
	text-decoration: none;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 500;
	transition: background-color 0.2s;
	white-space: nowrap;
}

.commit a.button:hover {
	background: var(--blue-hover);
}

.commit button.button.secondary {
	padding: 6px 10px;
	background: #6b7280;
	color: white;
	text-decoration: none;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 500;
	transition: background-color 0.2s;
	white-space: nowrap;
	border: none;
	cursor: pointer;
}

.commit button.button.secondary:hover {
	background: #4b5563;
}

.commit button.button.success {
	padding: 6px 10px;
	background: #10b981;
	color: white;
	text-decoration: none;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 500;
	transition: background-color 0.2s;
	white-space: nowrap;
	border: none;
	cursor: pointer;
}

.commit button.button.success:hover {
	background: #059669;
}

.commit-bottom-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 8px;
}

.commit-datetime {
	background: var(--text);
	color: white;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.2;
}

/* Responsive design for smaller devices */
@media (max-width: 768px) {
	.commit-datetime {
		font-size: 10px;
		padding: 3px 6px;
	}

	.commit-bottom-row {
		margin-top: 6px;
	}

	.commit a.button {
		padding: 5px 8px;
		font-size: 10px;
	}
}

@media (max-width: 480px) {
	.commit-datetime {
		font-size: 9px;
		padding: 2px 4px;
	}

	.commit a.button {
		padding: 4px 6px;
		font-size: 9px;
	}

	.commit-bottom-row {
		margin-top: 4px;
	}
}

/* Accounts Page Styles */
.accounts-section {
	padding: 20px;
}

.accounts-card {
	max-width: 900px;
	margin: 0 auto;
	border: 1px solid var(--gray-2);
	border-radius: 12px;
	background: white;
	padding: 24px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.accounts-card h2 {
	margin: 0 0 24px 0;
	font-size: 24px;
	font-weight: 600;
	color: var(--text);
}

.accounts-tabs {
	display: flex;
	border-bottom: 1px solid var(--gray-2);
	margin-bottom: 24px;
}

.tab-button {
	padding: 12px 24px;
	border: none;
	background: transparent;
	color: #6b7280;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: all 0.2s ease;
}

.tab-button:hover {
	color: var(--blue);
	background: rgba(37, 99, 235, 0.04);
}

.tab-button.active {
	color: var(--blue);
	border-bottom-color: var(--blue);
	background: rgba(37, 99, 235, 0.06);
}

.tab-content {
	display: none;
}

.tab-content.active {
	display: block;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-bottom: 20px;
}

.form-row .form-field {
	margin-bottom: 0;
}

.form-field {
	margin-bottom: 20px;
}

.form-field label {
	display: block;
	margin-bottom: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--text);
}

.text-input {
	width: 100%;
	box-sizing: border-box;
	padding: 10px 12px;
	border: 1px solid var(--gray-2);
	border-radius: 8px;
	font-size: 14px;
	transition: border-color 0.2s ease;
}

.text-input:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

textarea.text-input {
	resize: vertical;
	min-height: 80px;
	font-family: inherit;
}

.field-help {
	margin: 4px 0 22px;
	font-size: 12px;
	color: #6b7280;
	line-height: 1.4;
}

.billing-option,
.setting-option {
	margin-bottom: 24px;
	padding: 16px;
	background: var(--gray-1);
	border-radius: 8px;
	border: 1px solid var(--gray-2);
}

.checkbox-label {
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: var(--text);
}

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

.checkmark {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2px solid var(--gray-2);
	border-radius: 4px;
	background: white;
	position: relative;
	transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
	background: var(--blue);
	border-color: var(--blue);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
	content: '';
	position: absolute;
	left: 4px;
	top: 0;
	width: 6px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.accounts-actions {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--gray-2);
}

/* Responsive design for accounts page */
@media (max-width: 768px) {
	.accounts-card {
		padding: 20px;
	}

	.form-row {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.accounts-tabs {
		flex-direction: column;
	}

	.tab-button {
		text-align: left;
		border-bottom: none;
		border-left: 2px solid transparent;
	}

	.tab-button.active {
		border-bottom-color: transparent;
		border-left-color: var(--blue);
	}

	.accounts-actions {
		flex-direction: column;
	}

	.accounts-actions .button {
		width: 100%;
	}
}

/* Support widget */
.support-fab {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #0b5fff;
	/* higher contrast */
	color: #ffffff;
	border: none;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	z-index: 200;
}

.support-fab:hover {
	background: #004adc;
	/* darker hover for contrast */
}

.support-panel {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: min(380px, 92vw);
	max-height: 70vh;
	background: white;
	border: 1px solid var(--gray-2);
	border-radius: 12px;
	box-shadow: 0 20px 35px rgba(0, 0, 0, 0.18);
	z-index: 200;
	display: flex;
	flex-direction: column;
}

.support-list {
	overflow-y: auto;
	flex: 1;
	padding: 12px;
}

.support-filters {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
}

.pager {
	display: flex;
	gap: 6px;
	justify-content: center;
	margin-top: 12px;
}

.pager button {
	padding: 6px 10px;
	border: 1px solid var(--gray-2);
	background: #ffffff;
	border-radius: 6px;
	cursor: pointer;
}

.pager button.active {
	border-color: var(--blue);
	color: var(--blue);
	background: rgba(37, 99, 235, 0.06);
}

.sp-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	border-bottom: 1px solid var(--gray-2);
}

.sp-title {
	font-weight: 600;
}

.sp-close {
	background: transparent;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #6b7280;
}

/* removed tabs for simplified ticket-only widget */

.sp-content {
	padding: 12px;
	overflow: auto;
}

.sp-footer {
	display: flex;
	justify-content: flex-start;
	padding: 10px 12px;
	border-top: 1px solid var(--gray-2);
}

.sp-link {
	background: transparent;
	border: none;
	color: #0b5fff;
	padding: 0;
	font-size: 13px;
	cursor: pointer;
	text-decoration: underline;
}

.sp-link:hover {
	color: #004adc;
}

.sp-field {
	margin-bottom: 10px;
}

.sp-field label {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	color: #374151;
}

.sp-input {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--gray-2);
	border-radius: 8px;
	font-size: 14px;
}

.sp-input:focus {
	outline: none;
	border-color: var(--blue);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

textarea.sp-input {
	resize: vertical;
	font-size: 11px;
	font-weight: normal;
}

textarea#ticket-reply {
	min-height: 160px;
}

.sp-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.sp-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
}

.sp-reply-actions {
	display: block;
	float: right;
	margin-top: -15px;
}

.sp-button {
	background: var(--blue);
	color: #ffffff;
	border: none;
	border-radius: 6px;
	padding: 8px 12px;
	cursor: pointer;
	font-weight: 600;
}

.sp-button:hover {
	background: #004adc;
}

.sp-icon {
	width: 24px;
	height: 24px;
	display: inline-block;
}

.sp-success {
	color: var(--green);
	font-size: 13px;
	margin-top: 8px;
	line-height: 1.4;
}

.sp-link {
	background: transparent;
	border: none;
	color: #0b5fff;
	padding: 0 4px;
	font-size: 14px;
	cursor: pointer;
	text-decoration: underline;
}

.sp-link:hover {
	color: #004adc;
}

/* Radio pill group */
.sp-radio-group {
	display: inline-flex;
	flex-wrap: nowrap;
	gap: 8px;
}

.sp-radio-pill {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
	font-size: 13px;
}

.sp-radio-pill input {
	display: none;
}

.sp-radio-pill span {
	display: inline-block;
	border: 1px solid var(--gray-2);
	border-radius: 999px;
	padding: 6px 12px;
	color: #374151;
	transition: all 0.15s ease;
}

.sp-radio-pill:hover span {
	border-color: var(--blue);
}

.sp-radio-pill input:focus + span {
	outline: none;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.sp-radio-pill input:checked + span {
	color: #0b5fff;
	border-color: #0b5fff;
	background: rgba(11, 95, 255, 0.08);
	font-weight: 600;
}

/* Support tickets page */
.support-section {
	padding: 20px;
}

.support-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}

.ticket-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ticket-list-full {
	max-width: 100%;
}

.ticket-list > p {
	text-align: center;
}

#ticket-search::placeholder {
	font-size: 90%;
}

.ticket-card {
	border: 1px solid var(--gray-2);
	border-radius: 12px;
	background: #ffffff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.tc-head {
	display: grid;
	grid-template-columns: 1fr auto auto;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid var(--gray-2);
}

.tc-title {
	font-weight: 700;
}

.tc-meta {
	border-top: 1px solid var(--gray-2);
	padding-top: 3px;
	font-size: 12px;
	color: #6b7280;
}

.tc-meta .tc-meta-item {
	margin-right: 14px;
	display: inline-block;
}

.tc-actions {
	display: flex;
	align-items: center;
}

.ticket-view-btn {
	padding: 6px 10px;
	font-size: 12px;
	border-radius: 6px;
	border: 1px solid var(--blue);
	color: var(--blue);
	background: #ffffff;
	cursor: pointer;
}

.ticket-view-btn:hover {
	background: rgba(37, 99, 235, 0.06);
}

.tc-expand {
	padding: 14px 16px;
}

.status {
	padding: 3px 10px;
	border-radius: 6px;
	font-weight: 600;
	font-size: 13px;
}

.status.open {
	background: #eef2ff;
	border: 1px solid #1d4ed8;
	color: #1d4ed8;
}

.status.in_progress {
	background: #ecfdf5;
	border: 1px solid #047857;
	color: #047857;
}

.status.closed {
	background: #fee2e2;
	border: 1px solid #b91c1c;
	color: #b91c1c;
}

.ticket-list .status {
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 6px;
	font-weight: 600;
	border: none;
}

.ticket-header h3 {
	margin: 0 0 4px 0;
}

.tc-subtitle {
	font-size: 12px;
	color: #6b7280;
	margin: 2px 0 6px 0;
}

.tc-subtitle:empty {
	display: none;
}

.ticket-thread {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 10px 0;
}

.ticket-msg {
	border: 1px solid var(--gray-2);
	border-radius: 8px;
	padding: 10px;
	background: #ffffff;
}

.tm-text {
	font-size: 12px;
	line-height: 1.75;
	white-space: pre;
}

.ticket-msg.admin {
	background: #f9fafb;
}

.tm-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 11px;
	color: #374151;
	margin: -10px -10px 8px -10px;
	padding: 8px 10px;
	background: #e7e8ea;
	border-bottom: 1px solid var(--gray-2);
}

.tm-avatar {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 12px;
	color: #ffffff;
	background: #6b7280;
}

.tm-avatar.admin {
	background: #2563eb;
}

.tm-avatar.user {
	background: #10b981;
}

.tm-meta-info .tm-name {
	font-weight: 600;
}

.tm-att a {
	display: inline-block;
	margin-right: 8px;
	font-size: 12px;
}

.ticket-reply-form {
	padding-top: 12px;
}

.ticket-divider {
	margin: 14px 0;
	height: 1px;
	background: var(--gray-2);
}

.ticket-reply-form label {
	font-size: 13px;
	padding: 0 0 6px 2px;
	max-width: 200px;
}

/* Support ticket detail page */
.support-detail-section {
	padding: 20px;
	font-size: 12px;
}

.support-detail-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.support-detail-body {
	border: 1px solid var(--gray-2);
	border-radius: 12px;
	background: #ffffff;
	padding: 16px;
}

/* Detail layout: left meta, right thread */
.ticket-layout {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 16px;
}

.ticket-layout.single {
	grid-template-columns: 1fr;
}

.ticket-side {
	border: 1px solid var(--gray-2);
	border-radius: 12px;
	background: #ffffff;
}

.ticket-main {
	border-radius: 12px;
	background: #ffffff;
	padding: 0;
	margin-top: 12px;
	margin-bottom: 60px;
}

.ticket-thread-header {
	border: 1px solid var(--gray-2);
	border-radius: 10px;
	padding: 8px 8px;
	margin: 0 0 12px 0;
}

.ticket-thread-header .tth-row {
	display: grid;
	grid-template-columns: 28px 1fr;
	gap: 10px;
	align-items: center;
}

.ticket-thread-header .tc-number {
	display: inline-flex;
	align-items: center;
	min-width: 110px;
	padding: 2px 8px;
	border-radius: 4px;
	background: #739ffc;
	font-size: 11px;
	font-weight: 600;
	color: white;
	text-transform: uppercase;
	margin: 0;
}

.ticket-thread-header .tth-title {
	font-size: 16px;
	font-weight: 700;
	margin-bottom: 6px;
}

.ticket-thread-header .tth-headline {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.ticket-thread-header .tth-topline {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.ticket-thread-header .tth-replies {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: #4b5563;
}

.ticket-thread-header .tth-replies svg {
	width: 16px;
	height: 16px;
	fill: #4b5563;
	display: block;
}

.ticket-thread-header .tth-replies-count {
	font-weight: 700;
	line-height: 1;
	margin-top: -3px;
}

.ticket-thread-header .tth-subtitle {
	font-size: 12px;
	color: #6b7280;
	margin-top: 2px;
	margin-bottom: 6px;
}

.ticket-thread-header .tth-meta {
	margin-top: 6px;
	font-size: 12px;
	color: #374151;
}

.ticket-thread-header .tth-meta span {
	margin-right: 12px;
}

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

@media (max-width: 900px) {
	.tc-head {
		grid-template-columns: 1fr;
		gap: 6px;
	}

	.tc-actions {
		justify-content: flex-start;
	}
}

.tm-flag.email {
	display: inline;
	vertical-align: middle;
	padding-left: 6px;
}

.tm-flag.email svg {
	width: 18px;
	height: 16px;
	fill: #de5555;
}

.no-border {
	border: none;
	padding: 0;
}

/* Pricing */
.plans-section {
	padding: 20px;
}

.plans-card {
	max-width: 1100px;
	margin: 0 auto;
	border: 1px solid var(--gray-2);
	border-radius: 12px;
	background: #ffffff;
	padding: 20px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* Minimal container for Stripe Pricing Table embed */
.pricing-embed-container {
	border: 1px dashed var(--gray-2);
	border-radius: 20px;
	background: #ffffff;
	padding: 0;
	overflow: auto;
}

#ticket-reply-collapsed,
#ticket-reply {
	margin-top: 10px;
	background: #ebf7ff;
}

.ticket-create-wrapper {
	max-width: 720px;
	margin: 0 auto;
	padding: 20px;
}

/* Error message styles for subscription loading */
.error-message {
	color: #dc3545 !important;
	font-style: italic;
}

.loading-message {
	color: #6c757d !important;
	font-style: italic;
}

.status-badge.error {
	background-color: #dc3545 !important;
	color: white !important;
}

.status-badge.loading {
	background-color: #6c757d !important;
	color: white !important;
}

/* Subscription loading, error, and no-plan states */
.subscription-loading,
.subscription-error,
.subscription-no-plan {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 400px;
	padding: 40px 20px;
}

.loading-container,
.error-container,
.no-plan-container {
	text-align: center;
	max-width: 400px;
}

.spinner-large {
	width: 48px;
	height: 48px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #007bff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.loading-container h3 {
	color: #333;
	margin-bottom: 10px;
	font-size: 1.5rem;
}

.loading-container p {
	color: #666;
	margin-bottom: 0;
}

.error-container .error-icon {
	font-size: 3rem;
	margin-bottom: 20px;
}

.error-container h3 {
	color: #dc3545;
	margin-bottom: 15px;
	font-size: 1.5rem;
}

.error-container p {
	color: #666;
	margin-bottom: 25px;
	line-height: 1.5;
}

.error-container .button {
	margin-top: 10px;
}

.no-plan-container .no-plan-icon {
	font-size: 3rem;
	margin-bottom: 20px;
}

.no-plan-container h3 {
	color: #333;
	margin-bottom: 15px;
	font-size: 1.5rem;
}

.no-plan-container p {
	color: #666;
	margin-bottom: 25px;
	line-height: 1.5;
}

.no-plan-actions {
	display: flex;
	gap: 15px;
	justify-content: center;
	flex-wrap: wrap;
}

.no-plan-actions .button {
	margin: 0;
}

/* Restore Code Dialog - Modern Design */
.restore-code-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10000;
	animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

.restore-code-dialog {
	background: white;
	border-radius: 12px;
	padding: 0;
	max-width: 650px;
	width: 95%;
	max-height: 90vh;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
	position: relative;
	animation: slideUp 0.3s ease-out;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	border: 1px solid #cecece;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.restore-code-header {
	background: #f8fafc;
	border-bottom: 1px solid #e2e8f0;
	color: #1f2937;
	padding: 24px 24px 20px;
	position: relative;
}


.restore-code-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 12px;
}

.restore-code-icon {
	width: 24px;
	height: 24px;
	background: #e5e7eb;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

.restore-code-close-btn {
	position: absolute;
	top: 20px;
	right: 20px;
	background: #f3f4f6;
	border: none;
	color: #6b7280;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 18px;
}

.restore-code-close-btn:hover {
	background: #e5e7eb;
	transform: scale(1.05);
}

.restore-code-body {
	padding: 20px;
	flex: 1;
	overflow-y: auto;
}

.restore-code-input-container {
	position: relative;
	margin-bottom: 10px;
}

.restore-code-label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: #374151;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
}

.restore-code-input-group {
	display: flex;
	background: #f8fafc;
	border: 1px solid #5a67d8;
	border-radius: 8px;
	overflow: visible;
	transition: all 0.2s ease;
}

.restore-code-input-group:focus-within {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.restore-code-display {
	flex: 1;
	background: transparent;
	border: none;
	padding: 12px 12px;
	font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
	font-size: 14px;
	color: #1f2937;
	line-height: 1.4;
	outline: none;
	word-break: break-all;
	white-space: nowrap;
}

.restore-code-copy-btn {
	background: #3b82f6;
	color: white;
	border: none;
	padding: 12px 8px;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 6px;
	width: 70px;
}

.restore-code-copy-btn:hover {
	background: #1d4ed8;
}

.restore-code-copy-btn.copied {
	background: #10b981;
}

.restore-code-actions-toggle {
	background: #f59e0b;
	color: white;
	border: none;
	padding: 12px 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	border-radius: 0 6px 6px 0;
}

.restore-code-actions-toggle:hover {
	background: #d97706;
}

.restore-code-actions-toggle svg {
	width: 16px;
	height: 16px;
}

.restore-code-collapse-btn {
	background: #ffffff;
	color: #6b7280;
	border: none;
	padding: 12px 8px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
}

.restore-code-collapse-btn:hover {
	background: #f9fafb;
}

.restore-code-collapse-btn svg {
	width: 20px;
	height: 20px;
}

.hidden {
	display: none !important;
}

.tooltip-trigger {
	position: relative;
}

.tooltip-trigger::before {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 6px;
	background: #1f2937;
	color: #ffffff;
	padding: 6px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	pointer-events: none;
	z-index: 9999;
}

.tooltip-trigger::after {
	content: '';
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	margin-bottom: 2px;
	border: 4px solid transparent;
	border-top-color: #1f2937;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
	pointer-events: none;
	z-index: 9999;
}

.tooltip-left::before {
	right: 100%;
	top: 50%;
	left: auto;
	bottom: auto;
	transform: translateY(-50%);
	margin-right: 6px;
	margin-bottom: 0;
}

.tooltip-left::after {
	right: 100%;
	top: 50%;
	left: auto;
	bottom: auto;
	transform: translateY(-50%);
	margin-right: 2px;
	margin-bottom: 0;
	border-top-color: transparent;
	border-left-color: #1f2937;
}

.tooltip-trigger:hover::before,
.tooltip-trigger:hover::after {
	opacity: 1;
	visibility: visible;
}

.restore-code-revoke-btn,
.restore-code-regenerate-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px 8px;
	border: none;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.restore-code-revoke-btn {
	color: #ffffff;
	background: #dc2626;
    width: 50px;
}

.restore-code-revoke-btn:hover {
	color: #fef2f2;
    background: #991b1b;
}

.restore-code-regenerate-btn {
	background: #3fae78;
    color: #ffffff;
    width: 50px;
    border-radius: 0 6px 6px 0;
}

.restore-code-regenerate-btn:hover {
	color: #f0fdf4;
    background: #2c8157;
}

.restore-code-revoke-btn svg,
.restore-code-regenerate-btn svg {
	width: 14px;
	height: 14px;
}

.restore-code-warning {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	border: 1px solid #f59e0b;
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 16px;
	position: relative;
}

.restore-code-warning::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #f59e0b, #fbbf24);
	border-radius: 12px 12px 0 0;
}

.restore-code-warning-header {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 6px;
}

.restore-code-warning-icon {
	width: 18px;
	height: 18px;
	color: #d97706;
}

.restore-code-warning-title {
	font-size: 14px;
	font-weight: 600;
	color: #92400e;
}

.restore-code-warning-text {
	font-size: 12px;
	color: #92400e;
	line-height: 1.3;
	margin: 0;
}

.restore-code-expiry {
	background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
	border: 1px solid #f59e0b;
	border-left: 4px solid #f59e0b;
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 16px;
}

.restore-code-expiry-content {
	display: flex;
	align-items: center;
	gap: 8px;
}

.restore-code-expiry-icon {
	width: 18px;
	height: 18px;
	color: #d97706;
	flex-shrink: 0;
}

.restore-code-expiry-text {
	font-size: 13px;
	color: #92400e;
	line-height: 1.4;
	margin: 0;
}

.restore-code-done-btn {
	background: #6b7280;
	color: white;
	border: none;
	border-radius: 10px;
	padding: 12px 24px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
}

.restore-code-done-btn:hover {
	background: #4b5563;
	transform: translateY(-1px);
}


/* Restore Server Access Section */
.restore-server-access-section {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	margin: 16px 0;
	position: relative;
}

.restore-server-access-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #3b82f6, #1d4ed8);
	border-radius: 12px 12px 0 0;
}

.restore-server-access-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.restore-server-access-title-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.restore-server-protocol-switch {
	display: flex;
	align-items: center;
}

.protocol-button-group {
	display: flex;
	background: #0067ff;
	border-radius: 4px;
	padding: 1px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.protocol-btn {
	padding: 3px 6px;
	border: none;
	font-size: 12px;
	font-weight: 600;
	background: #ffffff;
	color: #000000;
	cursor: pointer;
	transition: all 0.2s ease;
	min-width: 45px;
}

.protocol-btn:first-child {
	border-radius: 4px 0 0 4px;
}

.protocol-btn:last-child {
	border-radius: 0 4px 4px 0;
}

.protocol-btn:not(:first-child):not(:last-child) {
	border-radius: 0;
    border-right: 1px solid #005fff;
    border-left: 1px solid #005fff;
}

.protocol-btn.active {
	background: #005fff;
	color: white;
}

.protocol-btn.active:hover {
	background: #2563eb;
}

.restore-server-access-icon {
	font-size: 18px;
}

.restore-server-access-title {
	font-size: 16px;
	font-weight: 600;
	color: #1f2937;
}

.restore-server-access-description {
	color: #6b7280;
	font-size: 13px;
    margin-top: 4px;
	margin-bottom: 20px;
	line-height: 1.4;
}

.restore-server-access-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.restore-server-access-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.restore-server-field-group {
	position: relative;
}

.restore-server-field-group label {
	position: absolute;
	top: -6px;
	left: 8px;
	font-size: 10px;
	font-weight: 600;
	color: #6b7280;
	background: white;
	padding: 0 4px;
	text-transform: uppercase;
	z-index: 1;
}

.restore-server-input {
	padding: 10px 10px 8px 10px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 13px;
	background: white;
	transition: all 0.2s ease;
	width: 100%;
}

.restore-server-input select {
	appearance: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 16px;
	padding-right: 32px;
}

.restore-server-input:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.restore-server-field-group:focus-within label {
	color: #3b82f6;
}

.restore-server-input::placeholder {
	color: #9ca3af;
}

.restore-server-access-actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #e2e8f0;
}

.restore-server-manual-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: #f3f4f6;
	color: #6b7280;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	min-width: 120px;
	justify-content: center;
}

.restore-server-manual-btn:hover {
	background: #e5e7eb;
	color: #374151;
	transform: translateY(-1px);
}

.restore-server-manual-icon {
	width: 14px;
	height: 14px;
}

.restore-server-upload-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
	min-width: 140px;
	justify-content: center;
}

.restore-server-upload-btn:hover {
	background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.restore-server-upload-btn:disabled {
	background: #9ca3af;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.restore-server-upload-icon {
	width: 14px;
	height: 14px;
}

/* Responsive design for server access fields */
@media (max-width: 768px) {
	.restore-server-access-fields {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.restore-code-dialog {
		max-width: 95%;
		width: 95%;
		max-height: 95vh;
	}

	.restore-server-access-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.restore-server-protocol-switch {
		align-self: flex-end;
	}

	.restore-server-access-fields {
		grid-template-columns: 1fr;
	}

	.restore-server-access-actions {
		flex-direction: column;
		gap: 8px;
	}

	.restore-server-manual-btn,
	.restore-server-upload-btn {
		justify-content: center;
		width: 100%;
	}

	.restore-code-revoke-btn,
	.restore-code-regenerate-btn {
		width: 100%;
	}
}
