/* =========================================================
   Sifency AI Studio — Premium Admin Panel CSS
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
	--sai-bg: #06060c;
	--sai-surface: rgba(18, 18, 29, 0.75);
	--sai-surface-solid: #12121d;
	--sai-surface-hover: rgba(30, 30, 46, 0.85);
	--sai-border: rgba(255, 255, 255, 0.08);
	--sai-border-light: rgba(255, 255, 255, 0.16);
	--sai-accent: #6366f1;
	--sai-accent-hover: #4f46e5;
	--sai-accent-glow: rgba(99, 102, 241, 0.15);
	--sai-accent-glow-strong: rgba(99, 102, 241, 0.4);
	--sai-text: #f3f4f6;
	--sai-muted: #9ca3af;
	--sai-success: #10b981;
	--sai-danger: #ef4444;
	--sai-warning: #f59e0b;
	--sai-radius: 12px;
	--sai-radius-lg: 16px;
	--sai-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
	--sai-shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);
	--sai-font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
	--sai-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* --- Wrap & Global Overrides --------------------------------------------- */

.sai-wrap {
	font-family: var(--sai-font);
	background: var(--sai-bg);
	min-height: calc(100vh - 32px);
	color: var(--sai-text);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

.sai-wrap::before {
	content: '';
	position: absolute;
	top: -10%;
	left: 50%;
	transform: translateX(-50%);
	width: 60%;
	height: 400px;
	background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(6, 6, 12, 0) 70%);
	pointer-events: none;
	z-index: 0;
}

.sifency-ai-root-mount {
	margin-left: -20px;
	margin-bottom: -20px;
	margin-top: -20px;
}

.sai-wrap * {
	box-sizing: border-box;
}

/* --- Utilities ----------------------------------------------------------- */

.d-flex {
	display: flex !important;
}

.align-items-center {
	align-items: center !important;
}

.justify-content-between {
	justify-content: space-between !important;
}

.flex-grow-1 {
	flex-grow: 1 !important;
}

.gap-3 {
	gap: 16px !important;
}

.mt-2 {
	margin-top: 8px !important;
}

.mb-3 {
	margin-bottom: 16px !important;
}

.cs-height-50 {
	height: 50px;
}

/* --- Header -------------------------------------------------------------- */

.sai-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 40px;
	background: var(--sai-surface);
	border-bottom: 1px solid var(--sai-border);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	z-index: 10;
	position: relative;
}

.sai-header__left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.sai-header__logo svg {
	width: 42px;
	height: 42px;
	filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.6));
	animation: logo-shimmer 3s ease-in-out infinite;
}

@keyframes logo-shimmer {

	0%,
	100% {
		filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.4));
	}

	50% {
		filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.8));
		transform: scale(1.03);
	}
}

.sai-header__title {
	margin: 0 0 4px 0;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	line-height: 1.1;
	background: linear-gradient(135deg, #ffffff 30%, #a5b4fc 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.sai-header__sub {
	margin: 0;
	font-size: 13px;
	color: var(--sai-muted);
}

.sai-header__right {
	display: flex;
	align-items: center;
	gap: 20px;
}

.sai-stat {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
}

.sai-stat__num {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

.sai-stat__label {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--sai-muted);
	margin-top: 4px;
}

.sai-badge {
	font-size: 11px;
	padding: 3px 10px;
	background: var(--sai-accent-glow);
	color: #c7d2fe;
	border: 1px solid rgba(99, 102, 241, 0.3);
	border-radius: 20px;
	font-weight: 600;
	letter-spacing: 0.03em;
}

.sai-badge--count {
	background: rgba(255, 255, 255, 0.04);
	color: var(--sai-muted);
	border-color: var(--sai-border);
	margin-left: 8px;
}

/* --- Progress Bar -------------------------------------------------------- */

.sai-progress-bar {
	height: 4px;
	background: rgba(255, 255, 255, 0.02);
	width: 100%;
	position: relative;
	transition: opacity .3s;
	z-index: 9;
}

.sai-progress-bar__fill {
	height: 100%;
	background: linear-gradient(90deg, #6366f1, #818cf8, #a78bfa);
	width: 0%;
	transition: width .3s ease-out;
	box-shadow: 0 0 10px rgba(99, 102, 241, 0.6);
	background-size: 200% auto;
	animation: gradient-flow 1.5s linear infinite;
}

@keyframes gradient-flow {
	0% {
		background-position: 0% 50%;
	}

	100% {
		background-position: 200% 50%;
	}
}

/* --- Tabs ---------------------------------------------------------------- */

.sai-tabs {
	display: flex;
	gap: 8px;
	border-bottom: 1px solid var(--sai-border);
	padding: 0 40px;
	background: var(--sai-surface);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	z-index: 10;
}

.sai-tab {
	padding: 16px 24px;
	cursor: pointer;
	font-size: 14px;
	color: var(--sai-muted);
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	transition: all .2s ease;
	font-weight: 600;
	margin-bottom: -1px;
	letter-spacing: 0.01em;
}

.sai-tab:hover {
	color: #fff;
}

.sai-tab.is-active {
	color: #818cf8;
	border-bottom-color: #818cf8;
	text-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
}

/* --- Layouts ------------------------------------------------------------- */

.sai-tab-content {
	padding: 40px;
	flex-grow: 1;
	z-index: 5;
	position: relative;
}

.sai-generate-layout {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 32px;
	max-width: 1400px;
	margin: 0 auto;
}

.sai-settings-layout {
	display: grid;
	grid-template-columns: 1fr 480px;
	gap: 32px;
	max-width: 1400px;
	margin: 0 auto;
}

.sai-items-layout {
	max-width: 1400px;
	margin: 0 auto;
}

/* --- Card ---------------------------------------------------------------- */

.sai-card {
	background: var(--sai-surface);
	border: 1px solid var(--sai-border);
	border-radius: var(--sai-radius-lg);
	padding: 32px;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: var(--sai-shadow);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.sai-card:hover {
	border-color: rgba(255, 255, 255, 0.12);
}

.sai-card__title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 24px;
	color: #fff;
	display: flex;
	align-items: center;
	gap: 10px;
	letter-spacing: -0.01em;
}

.sai-card__title svg {
	width: 20px;
	height: 20px;
	color: #818cf8;
}

/* --- Type Selector ------------------------------------------------------- */

.sai-type-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	margin-bottom: 0;
}

.sai-type-card {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	flex-direction: row;
	gap: 16px;
	padding: 18px 20px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid var(--sai-border);
	border-radius: var(--sai-radius);
	cursor: pointer;
	color: var(--sai-muted);
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	text-align: left;
}

.sai-type-card:hover:not(.is-coming-soon) {
	background: var(--sai-surface-hover);
	border-color: var(--sai-border-light);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.sai-type-card.is-active {
	background: var(--sai-accent-glow);
	border-color: var(--sai-accent);
	color: #fff;
	box-shadow: 0 0 15px rgba(99, 102, 241, 0.15), inset 0 0 0 1px var(--sai-accent);
}

.sai-type-card.is-coming-soon {
	opacity: 0.45;
	cursor: not-allowed;
}

.sai-type-card__icon {
	font-size: 22px;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.04);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #818cf8;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.sai-type-card:hover .sai-type-card__icon {
	color: #fff;
	background: var(--sai-accent);
	transform: scale(1.05);
}

.sai-type-card.is-active .sai-type-card__icon {
	background: var(--sai-accent);
	color: #fff;
}

.sai-type-card__text {
	display: flex;
	flex-direction: column;
}

.sai-type-card__label {
	font-size: 14px;
	font-weight: 600;
	color: var(--sai-text);
}

.sai-type-card.is-active .sai-type-card__label {
	color: #fff;
}

.sai-type-card__sublabel {
	font-size: 11px;
	color: var(--sai-muted);
	margin-top: 2px;
}

.sai-type-card__badge {
	position: absolute;
	top: 8px;
	right: 8px;
	font-size: 9px;
	padding: 2px 6px;
	background: rgba(0, 0, 0, 0.4);
	border: 1px solid var(--sai-border);
	border-radius: 10px;
	color: var(--sai-muted);
	font-weight: 600;
}

.sai-type-desc {
	margin-top: 16px;
	font-size: 13px;
	color: var(--sai-muted);
	line-height: 1.5;
}

/* --- Prompt Area --------------------------------------------------------- */

.sai-prompt-wrap {
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid var(--sai-border);
	border-radius: var(--sai-radius);
	overflow: hidden;
	transition: all .25s ease;
}

.sai-prompt-wrap:focus-within {
	border-color: var(--sai-accent);
	box-shadow: var(--sai-shadow-glow);
	background: rgba(0, 0, 0, 0.4);
}

.sai-prompt {
	width: 100%;
	background: transparent;
	border: none;
	color: var(--sai-text);
	font-size: 15px;
	line-height: 1.6;
	padding: 20px;
	resize: vertical;
	min-height: 140px;
	font-family: var(--sai-font);
}

.sai-prompt:focus {
	outline: none;
	box-shadow: none;
}

.sai-prompt::placeholder {
	color: #4b5563;
}

.sai-prompt-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	background: rgba(255, 255, 255, 0.01);
	border-top: 1px solid var(--sai-border);
}

.sai-char-count {
	font-size: 12px;
	color: var(--sai-muted);
	font-weight: 500;
}

/* --- Quick Prompts ------------------------------------------------------- */

.sai-quick-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.sai-quick-prompt {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--sai-border);
	color: var(--sai-muted);
	padding: 8px 16px;
	border-radius: 100px;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	text-align: left;
	font-weight: 500;
}

.sai-quick-prompt:hover {
	background: var(--sai-accent-glow);
	border-color: rgba(99, 102, 241, 0.4);
	color: #fff;
	transform: scale(1.02);
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

/* --- Buttons ------------------------------------------------------------- */

.sai-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	border: none;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	text-decoration: none;
	letter-spacing: 0.01em;
}

.sai-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.sai-btn:active:not(:disabled) {
	transform: translateY(0);
}

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

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

.sai-btn--primary:hover:not(:disabled) {
	background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
	box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5), 0 0 10px rgba(99, 102, 241, 0.2);
}

.sai-btn--ghost {
	background: rgba(255, 255, 255, 0.02);
	color: var(--sai-text);
	border: 1px solid var(--sai-border);
}

.sai-btn--ghost:hover:not(:disabled) {
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--sai-border-light);
	color: #fff;
}

.sai-btn--danger {
	background: transparent;
	color: var(--sai-danger);
	border: 1px solid transparent;
	padding: 8px 14px;
	border-radius: 8px;
}

.sai-btn--danger:hover:not(:disabled) {
	background: rgba(239, 68, 68, 0.08);
	border-color: rgba(239, 68, 68, 0.2);
}

.sai-btn--warning {
	background: transparent;
	color: var(--sai-warning);
	border: 1px solid rgba(245, 158, 11, 0.3);
	padding: 6px 12px;
	font-size: 12px;
	border-radius: 6px;
}

.sai-btn--warning:hover:not(:disabled) {
	background: rgba(245, 158, 11, 0.08);
}

/* --- Result & Code ------------------------------------------------------- */

.sai-result {
	margin-top: 32px;
	border-radius: var(--sai-radius-lg);
	overflow: hidden;
	animation: sai-fade-in .35s cubic-bezier(0.34, 1.56, 0.64, 1);
	box-shadow: var(--sai-shadow);
}

@keyframes sai-fade-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.sai-result__header {
	padding: 18px 24px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.sai-result--success .sai-result__header {
	background: rgba(16, 185, 129, 0.08);
	border: 1px solid rgba(16, 185, 129, 0.15);
	color: #34d399;
	font-weight: 600;
}

.sai-result--error {
	padding: 18px 24px;
	background: rgba(239, 68, 68, 0.08);
	border: 1px solid rgba(239, 68, 68, 0.15);
	color: #f87171;
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 600;
	border-radius: var(--sai-radius-lg);
}

.sai-code-wrap {
	border: 1px solid var(--sai-border);
	border-top: none;
	background: #090911;
	border-radius: 0 0 var(--sai-radius-lg) var(--sai-radius-lg);
}

.sai-code-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 24px;
	background: #04040a;
	border-bottom: 1px solid var(--sai-border);
	font-size: 11px;
	color: var(--sai-muted);
	text-transform: uppercase;
	letter-spacing: .06em;
	font-weight: 600;
}

.sai-copy-btn {
	background: transparent;
	border: none;
	color: var(--sai-muted);
	cursor: pointer;
	font-size: 11px;
	font-weight: 600;
	transition: color 0.2s;
}

.sai-copy-btn:hover {
	color: #fff;
}

.sai-code-preview {
	margin: 0;
	padding: 24px;
	font-family: var(--sai-font-mono);
	font-size: 12.5px;
	color: #a5b4fc;
	white-space: pre-wrap;
	word-break: break-all;
	max-height: 380px;
	overflow-y: auto;
	line-height: 1.6;
}

/* Custom Scrollbar for Code */
.sai-code-preview::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

.sai-code-preview::-webkit-scrollbar-track {
	background: #04040a;
}

.sai-code-preview::-webkit-scrollbar-thumb {
	background: #1e1e2f;
	border-radius: 4px;
}

.sai-code-preview::-webkit-scrollbar-thumb:hover {
	background: var(--sai-accent);
}

/* --- Items Tab ----------------------------------------------------------- */

.sai-items-type-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.sai-items-type-tab {
	background: transparent;
	border: 1px solid transparent;
	color: var(--sai-muted);
	padding: 10px 18px;
	border-radius: 100px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
}

.sai-items-type-tab:hover {
	background: rgba(255, 255, 255, 0.03);
	color: #fff;
}

.sai-items-type-tab.is-active {
	background: var(--sai-surface-hover);
	border-color: var(--sai-border-light);
	color: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.sai-table-container {
	border-radius: var(--sai-radius-lg);
	border: 1px solid var(--sai-border);
	overflow: hidden;
	background: var(--sai-surface);
	box-shadow: var(--sai-shadow);
}

.sai-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.sai-table th {
	text-align: left;
	padding: 16px 24px;
	color: var(--sai-muted);
	font-weight: 600;
	border-bottom: 1px solid var(--sai-border);
	background: rgba(0, 0, 0, 0.15);
	letter-spacing: 0.02em;
}

.sai-table td {
	padding: 18px 24px;
	border-bottom: 1px solid var(--sai-border);
	vertical-align: middle;
	transition: background 0.2s ease;
}

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

.sai-table tr:hover td {
	background: rgba(255, 255, 255, 0.015);
}

.sai-slug {
	display: block;
	font-weight: 700;
	color: #fff;
	margin-bottom: 6px;
	font-size: 14.5px;
}

.sai-filename {
	display: block;
	font-family: var(--sai-font-mono);
	font-size: 11px;
	color: var(--sai-muted);
}

.sai-empty {
	text-align: center;
	padding: 80px 24px;
	border-radius: var(--sai-radius-lg);
	border: 1px dashed var(--sai-border);
	background: rgba(18, 18, 29, 0.2);
}

.sai-empty__icon {
	font-size: 48px;
	margin-bottom: 20px;
	color: #818cf8;
	animation: empty-wave 2.5s ease-in-out infinite;
}

@keyframes empty-wave {

	0%,
	100% {
		transform: translateY(0) rotate(0);
	}

	50% {
		transform: translateY(-8px) rotate(4deg);
	}
}

.sai-empty__title {
	font-size: 18px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 10px;
}

.sai-empty__sub {
	color: var(--sai-muted);
	margin: 0 0 28px;
	font-size: 14px;
}

/* Code Preview Expanded row in table */
.sai-preview-row td {
	background: #04040a !important;
	padding: 0 !important;
}

.sai-table-code-expanded {
	padding: 24px;
	background: #04040a;
	border-top: 1px solid var(--sai-border);
	border-bottom: 1px solid var(--sai-border);
	animation: slide-down 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slide-down {
	from {
		opacity: 0;
		transform: translateY(-8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.sai-table-code-expanded pre {
	margin: 0;
	padding: 16px;
	background: #090911;
	border: 1px solid var(--sai-border);
	border-radius: 8px;
	max-height: 250px;
	overflow-y: auto;
	font-family: var(--sai-font-mono);
	font-size: 12px;
	color: #c7d2fe;
	line-height: 1.5;
}

/* --- Toggle -------------------------------------------------------------- */

.sai-toggle {
	position: relative;
	display: inline-block;
	width: 44px;
	height: 24px;
}

.sai-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.sai-toggle-slider {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 24px;
	cursor: pointer;
	transition: background .25s ease;
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.sai-toggle-slider:before {
	content: '';
	position: absolute;
	width: 18px;
	height: 18px;
	left: 2px;
	bottom: 2px;
	background: #fff;
	border-radius: 50%;
	transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
}

.sai-toggle input:checked+.sai-toggle-slider {
	background: var(--sai-success);
}

.sai-toggle input:checked+.sai-toggle-slider:before {
	transform: translateX(20px);
}

/* --- Settings Tab -------------------------------------------------------- */

.sai-settings-desc {
	color: var(--sai-muted);
	margin: 0 0 28px 0;
	line-height: 1.6;
	font-size: 14px;
}

.sai-field {
	margin-bottom: 28px;
}

.sai-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 10px;
}

.sai-label-hint {
	font-weight: 400;
	color: var(--sai-muted);
	font-size: 12px;
}

.sai-field-hint {
	font-size: 12px;
	color: var(--sai-muted);
	margin: 10px 0 0;
	line-height: 1.4;
}

.sai-input {
	width: 100%;
	background: rgba(0, 0, 0, 0.25);
	border: 1px solid var(--sai-border);
	border-radius: 8px;
	color: var(--sai-text);
	font-size: 14.5px;
	padding: 12px 16px;
	box-sizing: border-box;
	transition: all .2s;
	font-family: var(--sai-font);
}

.sai-input:focus {
	outline: none;
	border-color: var(--sai-accent);
	box-shadow: var(--sai-shadow-glow);
	background: rgba(0, 0, 0, 0.4);
}

.sai-key-wrap {
	position: relative;
}

.sai-toggle-key-vis {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: var(--sai-muted);
	cursor: pointer;
	font-size: 16px;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sai-toggle-key-vis:hover {
	color: #fff;
}

.sai-key-status {
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 4px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.sai-key-status--set {
	background: rgba(16, 185, 129, 0.1);
	color: var(--sai-success);
}

.sai-key-status--missing {
	background: rgba(245, 158, 11, 0.1);
	color: var(--sai-warning);
}

/* Provider Radio Cards */
.sai-provider-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.sai-provider-card {
	display: flex;
	flex-direction: column;
	padding: 18px;
	background: rgba(255, 255, 255, 0.01);
	border: 1px solid var(--sai-border);
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}

.sai-provider-card:hover {
	border-color: var(--sai-border-light);
	background: rgba(255, 255, 255, 0.03);
	transform: translateY(-1px);
}

.sai-provider-card.is-active {
	border-color: var(--sai-accent);
	background: var(--sai-accent-glow);
	box-shadow: 0 0 12px rgba(99, 102, 241, 0.1);
}

.sai-provider-card input[type="radio"] {
	display: none;
}

.sai-provider-card__name {
	font-weight: 700;
	color: #fff;
	margin-bottom: 6px;
	font-size: 14px;
}

.sai-provider-card__hint {
	font-size: 11px;
	color: var(--sai-muted);
	line-height: 1.4;
}

.sai-settings-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
	padding-top: 24px;
	border-top: 1px solid var(--sai-border);
}

/* How it works */
.sai-how-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sai-how-list li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin-bottom: 20px;
	font-size: 13.5px;
	color: var(--sai-muted);
	line-height: 1.6;
}

.sai-how-list li:last-child {
	margin-bottom: 0;
}

.sai-how-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--sai-border);
	border-radius: 50%;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	flex-shrink: 0;
}

.sai-info-card code {
	background: rgba(0, 0, 0, 0.3);
	padding: 3px 6px;
	border-radius: 4px;
	font-size: 11.5px;
	font-family: var(--sai-font-mono);
	color: #c7d2fe;
	border: 1px solid rgba(255, 255, 255, 0.03);
}

.sai-info-card strong {
	color: #fff;
}

/* --- Spinner ------------------------------------------------------------- */

.sai-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid rgba(255, 255, 255, .3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: sai-spin .7s linear infinite;
}

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

/* --- Toasts -------------------------------------------------------------- */

.sai-toast-container {
	position: fixed;
	bottom: 24px;
	right: 24px;
	z-index: 99999;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.sai-toast {
	display: flex;
	align-items: center;
	gap: 14px;
	background: #11111a;
	border: 1px solid rgba(255, 255, 255, 0.08);
	padding: 14px 20px;
	border-radius: 10px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
	transform: translateX(120%);
	opacity: 0;
	transition: all .35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sai-toast.is-visible {
	transform: translateX(0);
	opacity: 1;
}

.sai-toast--success {
	border-left: 4px solid var(--sai-success);
	background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, #11111a 100%);
}

.sai-toast--error {
	border-left: 4px solid var(--sai-danger);
	background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, #11111a 100%);
}

.sai-toast__icon {
	font-size: 16px;
	display: flex;
	align-items: center;
}

.sai-toast__msg {
	font-size: 13.5px;
	font-weight: 600;
	color: #fff;
	min-width: 220px;
	max-width: 420px;
}

.sai-toast__close {
	background: transparent;
	border: none;
	color: var(--sai-muted);
	cursor: pointer;
	font-size: 18px;
	margin-left: auto;
	padding: 0;
	display: flex;
	align-items: center;
}

.sai-toast__close:hover {
	color: #fff;
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1024px) {
	.sai-generate-layout {
		grid-template-columns: 1fr;
	}

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

@media (max-width: 782px) {
	.sai-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
		padding: 24px;
	}

	.sai-tabs {
		padding: 0 24px;
		overflow-x: auto;
	}

	.sai-tab-content {
		padding: 24px;
	}

	.sai-table th:nth-child(3),
	.sai-table td:nth-child(3) {
		display: none;
	}
}