/**
 * Irankiai Grid Styles
 * Author: Tobalt — https://tobalt.lt
 */

:root {
	--irk-accent: #E3FF04;
	--irk-dark: #0A0C00;
	--irk-bg: #f5f5f5;
	--irk-white: #ffffff;
	--irk-text: #2d2d2d;
	--irk-text-muted: #6b6b6b;
	--irk-border: #e0e0e0;
	--irk-radius: 16px;
	--irk-radius-sm: 8px;
	--irk-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	--irk-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
	--irk-font-display: 'Unbounded', sans-serif;
	--irk-font-body: 'Poppins', sans-serif;
	--irk-transition: 0.2s ease;
}

/* Container */
.irk-container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 2rem 1rem;
	font-family: var(--irk-font-body);
}

/* Filters - Editorial Design */
.irk-filters {
	margin-bottom: 2rem;
	background: var(--irk-white);
	border-radius: var(--irk-radius);
	box-shadow: var(--irk-shadow);
	overflow: hidden;
}

.irk-filters__header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	background: var(--irk-white);
	border-bottom: 1px solid var(--irk-border);
}

.irk-filters__search {
	position: relative;
	flex: 1;
	min-width: 200px;
	max-width: 320px;
}

.irk-filters__search-icon {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	color: var(--irk-text-muted);
	pointer-events: none;
	transition: color var(--irk-transition);
}

.irk-filters__search:focus-within .irk-filters__search-icon {
	color: var(--irk-dark);
}

.irk-filters__input {
	width: 100%;
	padding: 0.75rem 1rem 0.75rem 2.75rem;
	font-size: 0.875rem;
	font-family: var(--irk-font-body);
	color: var(--irk-dark);
	border: 1px solid var(--irk-border);
	border-radius: 100px;
	background: var(--irk-bg);
	transition: all var(--irk-transition);
}

.irk-filters__input::placeholder {
	color: var(--irk-text-muted);
}

.irk-filters__input:focus {
	outline: none;
	border-color: var(--irk-dark);
	background: var(--irk-white);
	box-shadow: 0 0 0 3px rgba(10, 12, 0, 0.08);
}

.irk-filters__meta {
	margin-left: auto;
}

.irk-filters__clear {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 0.875rem;
	font-size: 0.8125rem;
	font-weight: 500;
	font-family: var(--irk-font-body);
	color: var(--irk-text-muted);
	background: var(--irk-bg);
	border: 1px solid var(--irk-border);
	border-radius: 100px;
	cursor: pointer;
	transition: all var(--irk-transition);
}

.irk-filters__clear:hover {
	color: var(--irk-dark);
	border-color: var(--irk-dark);
	background: var(--irk-white);
}

.irk-filters__count {
	display: flex;
	align-items: baseline;
	gap: 0.375rem;
	font-size: 0.8125rem;
	color: var(--irk-text-muted);
}

.irk-filters__count-num {
	font-family: var(--irk-font-display);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--irk-dark);
	line-height: 1;
}

.irk-filters__count-label {
	font-weight: 500;
}

.irk-filters__body {
	padding: 1rem 1.25rem 1.25rem;
}

.irk-filters__section {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.625rem;
}

.irk-filters__section-label {
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--irk-text-muted);
	min-width: 5rem;
}

.irk-filters__divider {
	height: 1px;
	background: var(--irk-border);
	margin: 0.875rem 0;
}

.irk-filters__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

/* Chip component */
.irk-chip {
	display: inline-flex;
	cursor: pointer;
	user-select: none;
}

.irk-chip input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.irk-chip__inner {
	display: inline-flex;
	align-items: center;
	padding: 0.4375rem 0.875rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--irk-text);
	background: var(--irk-bg);
	border: 1px solid transparent;
	border-radius: 100px;
	transition: all var(--irk-transition);
}

.irk-chip:hover .irk-chip__inner {
	background: #e8e8e8;
	border-color: var(--irk-border);
}

.irk-chip input:checked + .irk-chip__inner {
	background: var(--irk-dark);
	color: var(--irk-accent);
	border-color: var(--irk-dark);
	font-weight: 600;
}

.irk-chip input:focus-visible + .irk-chip__inner {
	box-shadow: 0 0 0 2px rgba(10, 12, 0, 0.25);
}

/* Legacy checkbox support */
.irk-filters__checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
}

/* Grid */
.irk-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

/*
 * Row-group rhythm — alternating band tint every 2 rows.
 * 3-col layout: cards 1-6 = band A (white), 7-12 = band B (tinted), etc.
 * Uses 12n cycle: positions 7-12 within each 12-card cycle get the tint.
 */

/* Band B: tinted cards (positions 7–12 in each 12-card cycle) */
.irk-card:nth-child(12n+7),
.irk-card:nth-child(12n+8),
.irk-card:nth-child(12n+9),
.irk-card:nth-child(12n+10),
.irk-card:nth-child(12n+11),
.irk-card:nth-child(12n+12) {
	background: #f7f7f2;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Accent tick on the first card of each tinted band */
.irk-card:nth-child(12n+7) {
	border-left: 3px solid var(--irk-accent);
}

/* Sections (Institution mode) */
.irk-section {
	margin-bottom: 3rem;
}

.irk-section__title {
	font-family: var(--irk-font-display);
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--irk-dark);
	margin-bottom: 1.5rem;
	padding-bottom: 0.75rem;
	border-bottom: 2px solid var(--irk-accent);
}

/* Card */
.irk-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 280px;
	background: var(--irk-white);
	border-radius: var(--irk-radius);
	box-shadow: var(--irk-shadow);
	overflow: hidden;
	transition: transform var(--irk-transition), box-shadow var(--irk-transition);
	cursor: pointer;
}

.irk-card:hover,
.irk-card:focus {
	transform: translateY(-4px);
	box-shadow: var(--irk-shadow-hover);
}

.irk-card:focus {
	outline: 2px solid var(--irk-dark);
	outline-offset: 2px;
}

.irk-card:focus:not(:focus-visible) {
	outline: none;
}

.irk-card:focus-visible {
	outline: 2px solid var(--irk-dark);
	outline-offset: 2px;
}

/* Corner Icon - Subtle lime watermark */
.irk-card__icon {
	position: absolute;
	top: -0.5rem;
	right: -0.5rem;
	width: 50%;
	height: auto;
	aspect-ratio: 1;
	color: var(--irk-accent);
	opacity: 0.08;
	transition: transform 0.4s ease, opacity 0.4s ease;
	z-index: 0;
	pointer-events: none;
}

.irk-card:hover .irk-card__icon {
	transform: scale(1.03);
	opacity: 0.12;
}

/* Badge */
.irk-badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.375rem 0.75rem;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: var(--irk-radius-sm);
	background-color: #ffffff;
	color: #0A0C00;
	border: none;
	z-index: 2;
	margin-bottom: 0.5rem;
}

/* Card Content */
.irk-card__content {
	position: relative;
	flex: 1;
	padding: 3rem 1.25rem 1rem;
	display: flex;
	flex-direction: column;
	z-index: 1;
}

.irk-card__title {
	font-family: var(--irk-font-body);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--irk-dark);
	margin: 0 0 0.5rem;
	text-transform: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.irk-card__tagline {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--irk-text-muted);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Card Footer */
.irk-card__footer {
	position: relative;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 1.25rem 1.25rem;
	margin-top: auto;
	z-index: 1;
}

.irk-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0.5rem 0.875rem;
	font-size: 0.8125rem;
	font-weight: 600;
	font-family: var(--irk-font-body);
	color: var(--irk-dark);
	background: var(--irk-accent);
	border: none;
	border-radius: var(--irk-radius-sm);
	text-decoration: none;
	cursor: pointer;
	transition: background var(--irk-transition), transform var(--irk-transition);
}

.irk-card__cta:hover {
	background: #d4f000;
	transform: translateX(2px);
}

.irk-card__cta svg {
	transition: transform var(--irk-transition);
}

.irk-card__cta:hover svg {
	transform: translateX(4px);
}

/* Loading State */
.irk-loading {
	display: none;
	justify-content: center;
	align-items: center;
	padding: 3rem;
}

.irk-container.is-loading .irk-loading {
	display: flex;
}

.irk-container.is-loading .irk-grid {
	opacity: 0.5;
	pointer-events: none;
}

.irk-loading__spinner {
	width: 40px;
	height: 40px;
	border: 3px solid var(--irk-border);
	border-top-color: var(--irk-dark);
	border-radius: 50%;
	animation: irk-spin 0.8s linear infinite;
}

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

/* Empty State */
.irk-empty {
	text-align: center;
	padding: 4rem 2rem;
	color: var(--irk-text-muted);
}

/* Responsive */
@media (max-width: 1100px) {
	.irk-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Reset 3-col bands */
	.irk-card:nth-child(12n+7),
	.irk-card:nth-child(12n+8),
	.irk-card:nth-child(12n+9),
	.irk-card:nth-child(12n+10),
	.irk-card:nth-child(12n+11),
	.irk-card:nth-child(12n+12) {
		background: var(--irk-white);
		box-shadow: var(--irk-shadow);
	}

	.irk-card:nth-child(12n+7) {
		border-left: none;
	}

	/* 2-col bands: 8-card cycle, positions 5–8 tinted */
	.irk-card:nth-child(8n+5),
	.irk-card:nth-child(8n+6),
	.irk-card:nth-child(8n+7),
	.irk-card:nth-child(8n+8) {
		background: #f7f7f2;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	}

	.irk-card:nth-child(8n+5) {
		border-left: 3px solid var(--irk-accent);
	}
}

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

	.irk-card {
		height: 260px;
	}

	/* Reset 2-col bands */
	.irk-card:nth-child(8n+5),
	.irk-card:nth-child(8n+6),
	.irk-card:nth-child(8n+7),
	.irk-card:nth-child(8n+8) {
		background: var(--irk-white);
		box-shadow: var(--irk-shadow);
	}

	.irk-card:nth-child(8n+5) {
		border-left: none;
	}

	/* 1-col bands: 6-card cycle, positions 4–6 tinted */
	.irk-card:nth-child(6n+4),
	.irk-card:nth-child(6n+5),
	.irk-card:nth-child(6n+6) {
		background: #f7f7f2;
		box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	}

	.irk-card:nth-child(6n+4) {
		border-left: 3px solid var(--irk-accent);
	}
}

@media (max-width: 768px) {
	.irk-filters__header {
		flex-direction: column;
		align-items: stretch;
		gap: 0.75rem;
	}

	.irk-filters__search {
		max-width: none;
	}

	.irk-filters__meta {
		margin-left: 0;
	}

	.irk-filters__count {
		justify-content: center;
	}

	.irk-filters__section {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.5rem;
	}

	.irk-filters__section-label {
		min-width: auto;
	}
}

@media (max-width: 600px) {
	.irk-container {
		padding: 1rem;
	}

	.irk-filters__header {
		padding: 0.875rem 1rem;
	}

	.irk-filters__body {
		padding: 0.875rem 1rem 1rem;
	}

	.irk-filters__input {
		padding: 0.625rem 0.875rem 0.625rem 2.5rem;
		font-size: 0.8125rem;
	}

	.irk-filters__count-num {
		font-size: 1.25rem;
	}

	.irk-chip__inner {
		padding: 0.375rem 0.75rem;
		font-size: 0.75rem;
	}

	.irk-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.irk-card {
		height: auto;
		min-height: 240px;
	}

	.irk-card__footer {
		flex-wrap: wrap;
		justify-content: center;
		gap: 0.5rem 1rem;
	}
}

/* ==========================================
   MODAL STYLES
   ========================================== */

body.irk-modal-open {
	overflow: hidden;
}

.irk-modal-wrapper {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.irk-modal__overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
	cursor: pointer;
	z-index: 1;
}

.irk-modal {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: calc(100vh - 2rem);
	background: var(--irk-white);
	border-radius: var(--irk-radius);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: irk-modal-in 0.12s ease-out;
	z-index: 2;
}

@keyframes irk-modal-in {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.irk-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.5rem 1.5rem 1rem;
	border-bottom: 1px solid var(--irk-border);
}

.irk-modal__header-content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

.irk-modal__header-content .irk-badge {
	position: static;
}

.irk-modal__badge-wrap {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.irk-modal__badge-hint {
	font-size: 0.75rem;
	color: var(--irk-text-muted);
	line-height: 1.3;
}

.irk-modal__title {
	width: 100%;
	font-family: var(--irk-font-display);
	font-size: 1.25rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--irk-dark);
	margin: 0;
}

.irk-modal__institution {
	font-size: 0.8125rem;
	color: var(--irk-text-muted);
}

.irk-modal__close {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--irk-bg);
	border: none;
	border-radius: 50%;
	cursor: pointer;
	color: var(--irk-text-muted);
	transition: all var(--irk-transition);
}

.irk-modal__close:hover {
	background: var(--irk-dark);
	color: var(--irk-white);
}

.irk-modal__body {
	flex: 1;
	overflow-y: auto;
	padding: 1.5rem;
}

.irk-modal__summary {
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--irk-text);
	margin: 0 0 1.25rem;
}

.irk-modal__problem-solution {
	display: grid;
	gap: 0.75rem;
	padding: 1rem;
	background: var(--irk-bg);
	border-radius: var(--irk-radius-sm);
	margin-bottom: 1.5rem;
}

.irk-modal__problem,
.irk-modal__solution {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--irk-text);
}

.irk-modal__label {
	font-weight: 600;
	color: var(--irk-dark);
	margin-right: 0.25rem;
}

.irk-modal__section {
	margin-bottom: 1.5rem;
}

.irk-modal__section:last-child {
	margin-bottom: 0;
}

.irk-modal__section-title {
	font-family: var(--irk-font-body);
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--irk-text-muted);
	margin: 0 0 0.5rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.irk-modal__features {
	margin: 0;
	padding: 0 0 0 1.25rem;
	list-style: none;
}

.irk-modal__features li {
	position: relative;
	padding-left: 0.5rem;
	margin-bottom: 0.375rem;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--irk-text);
}

.irk-modal__features li::before {
	content: '';
	position: absolute;
	left: -1rem;
	top: 0.5rem;
	width: 6px;
	height: 6px;
	background: var(--irk-accent);
	border-radius: 50%;
}

.irk-modal__implementation {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
}

.irk-modal__impl-item {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.irk-modal__impl-label {
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--irk-text-muted);
}

.irk-modal__impl-value {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--irk-dark);
}

/* Modal body elements */
.irk-modal__tagline {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--irk-dark);
	margin: 0 0 0.5rem;
}

.irk-modal__intro {
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--irk-text);
	margin: 0 0 1.25rem;
}

.irk-modal__benefits {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem 1rem;
	margin-bottom: 1.5rem;
	padding: 1rem;
	background: var(--irk-bg);
	border-radius: var(--irk-radius-sm);
}

.irk-modal__benefit {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	padding: 0.5rem;
	background: var(--irk-white);
	border-radius: 6px;
}

.irk-modal__benefit-metric {
	font-family: var(--irk-font-display);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--irk-dark);
}

.irk-modal__benefit-desc {
	font-size: 0.8125rem;
	color: var(--irk-text-muted);
	line-height: 1.4;
}

.irk-modal__fit-list {
	margin: 0;
	padding: 0 0 0 1.25rem;
	list-style: none;
}

.irk-modal__fit-list li {
	position: relative;
	padding-left: 0.5rem;
	margin-bottom: 0.375rem;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--irk-text);
}

.irk-modal__fit-list li::before {
	content: '✓';
	position: absolute;
	left: -1.25rem;
	color: #10b981;
	font-weight: 600;
}

.irk-modal__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding-top: 1rem;
	margin-top: 1rem;
	border-top: 1px solid var(--irk-border);
}

.irk-modal__meta-item {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.irk-modal__meta-label {
	font-size: 0.75rem;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--irk-text-muted);
}

.irk-modal__meta-value {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--irk-dark);
}

/* Modal footer */
.irk-modal__footer {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	padding: 1rem 1.5rem 1.5rem;
	border-top: 1px solid var(--irk-border);
}

.irk-modal__buttons {
	display: flex;
	gap: 0.75rem;
}

.irk-modal__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.875rem 1.5rem;
	font-size: 0.9375rem;
	font-weight: 600;
	font-family: var(--irk-font-body);
	border-radius: var(--irk-radius-sm);
	text-decoration: none;
	cursor: pointer;
	transition: all var(--irk-transition);
}

.irk-modal__btn--primary {
	color: var(--irk-dark);
	background: var(--irk-accent);
	border: none;
}

.irk-modal__btn--primary:hover {
	background: #d4f000;
}

.irk-modal__btn--secondary {
	color: var(--irk-text);
	background: transparent;
	border: 1px solid var(--irk-border);
}

.irk-modal__btn--secondary:hover {
	color: var(--irk-dark);
	border-color: var(--irk-dark);
}

.irk-modal__btn--tertiary {
	color: var(--irk-text-muted);
	background: transparent;
	border: none;
}

.irk-modal__btn--tertiary:hover {
	color: var(--irk-dark);
	background: var(--irk-bg);
}

/* Focus indicators for accessibility */
.irk-modal__btn:focus-visible,
.irk-modal__close:focus-visible,
.irk-card__cta:focus-visible,
.irk-card__proposal-link:focus-visible,
.irk-proposal__submit:focus-visible,
.irk-proposal__close:focus-visible,
.irk-proposal__done:focus-visible {
	outline: 2px solid var(--irk-dark);
	outline-offset: 2px;
}

.irk-chip input:focus-visible + .irk-chip__inner {
	outline: 2px solid var(--irk-dark);
	outline-offset: 2px;
}

/* Modal responsive */
@media (max-width: 600px) {
	.irk-modal-wrapper {
		padding: 0;
		align-items: flex-end;
	}

	.irk-modal {
		max-width: 100%;
		max-height: 90vh;
		border-radius: var(--irk-radius) var(--irk-radius) 0 0;
	}

	.irk-modal__header,
	.irk-modal__body,
	.irk-modal__footer {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.irk-modal__title {
		font-size: 1.125rem;
	}

	.irk-modal__benefits {
		grid-template-columns: 1fr;
	}

	.irk-modal__buttons {
		flex-direction: column;
	}

	.irk-modal__btn {
		width: 100%;
	}
}

/* ================================================
   Proposal Modal Styles
   ================================================ */

/* Proposal link in card footer */
.irk-card__proposal-link {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0;
	background: none;
	border: none;
	font-family: var(--irk-font-body);
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--irk-text-muted);
	cursor: pointer;
	transition: color var(--irk-transition);
}

.irk-card__proposal-link:hover {
	color: var(--irk-dark);
}

/* Proposal Modal - higher z-index than quick view modal (999999) */
.irk-proposal-wrapper {
	position: fixed;
	inset: 0;
	z-index: 9999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.irk-proposal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
}

.irk-proposal {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: var(--irk-white);
	border-radius: var(--irk-radius);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	animation: irk-modal-in 0.25s ease;
}

.irk-proposal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	background: var(--irk-dark);
	color: var(--irk-white);
}

.irk-proposal__title {
	margin: 0;
	font-family: var(--irk-font-display);
	font-size: 1.125rem;
	font-weight: 600;
	color: var(--irk-white);
}

.irk-proposal__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 50%;
	color: var(--irk-white);
	cursor: pointer;
	transition: all var(--irk-transition);
}

.irk-proposal__close:hover {
	background: rgba(255, 255, 255, 0.1);
}

.irk-proposal__form {
	padding: 1.5rem;
}

.irk-proposal__intro {
	margin: 0 0 1.5rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--irk-text-muted);
}

.irk-proposal__field {
	margin-bottom: 1rem;
}

.irk-proposal__field label {
	display: block;
	margin-bottom: 0.375rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--irk-text);
}

.irk-proposal__field input {
	width: 100%;
	padding: 0.75rem 1rem;
	background: var(--irk-bg);
	border: 2px solid transparent;
	border-radius: var(--irk-radius-sm);
	font-family: var(--irk-font-body);
	font-size: 1rem;
	color: var(--irk-text);
	transition: all var(--irk-transition);
}

.irk-proposal__field input:focus {
	outline: none;
	border-color: var(--irk-accent);
	background: var(--irk-white);
}

.irk-proposal__field input::placeholder {
	color: var(--irk-text-muted);
}

.irk-proposal__consent {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 0.82rem;
	color: var(--irk-text-muted);
	cursor: pointer;
	line-height: 1.4;
	margin: 4px 0 0;
}

.irk-proposal__consent input[type="checkbox"] {
	display: inline-block !important;
	visibility: visible !important;
	opacity: 1 !important;
	width: 16px !important;
	height: 16px !important;
	margin-top: 3px;
	flex-shrink: 0;
	accent-color: var(--irk-text);
	appearance: auto !important;
	-webkit-appearance: checkbox !important;
}

.irk-proposal__consent a {
	color: var(--irk-text);
	text-decoration: underline;
}

.irk-proposal__turnstile {
	margin: 8px 0 4px;
}

.irk-proposal__consent-msg {
	font-size: 12px;
	color: #dc3545;
	margin: -4px 0 4px;
	line-height: 1.3;
}

.irk-proposal__actions {
	margin-top: 1.5rem;
}

.irk-proposal__submit {
	width: 100%;
	padding: 0.875rem 1.5rem;
	background: var(--irk-dark);
	color: var(--irk-white);
	border: none;
	border-radius: var(--irk-radius-sm);
	font-family: var(--irk-font-body);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--irk-transition);
}

.irk-proposal__submit:hover:not(:disabled) {
	background: var(--irk-accent);
	color: var(--irk-dark);
}

.irk-proposal__submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.irk-proposal__submit-loading {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

.irk-spinner {
	animation: irk-spin 1s linear infinite;
}

.irk-proposal__message {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	border-radius: var(--irk-radius-sm);
	font-size: 0.875rem;
	text-align: center;
}

.irk-proposal__message--error {
	background: #fef2f2;
	color: #dc2626;
}

.irk-proposal__message--success {
	background: #f0fdf4;
	color: #16a34a;
}

/* Proposal Success State */
.irk-proposal__success {
	padding: 3rem 1.5rem;
	text-align: center;
}

.irk-proposal__success svg {
	margin-bottom: 1.5rem;
}

.irk-proposal__success h3 {
	margin: 0 0 0.75rem;
	font-family: var(--irk-font-display);
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--irk-text);
}

.irk-proposal__success p {
	margin: 0 0 1.5rem;
	font-size: 0.9375rem;
	color: var(--irk-text-muted);
}

.irk-proposal__done {
	padding: 0.75rem 2rem;
	background: var(--irk-dark);
	color: var(--irk-white);
	border: none;
	border-radius: var(--irk-radius-sm);
	font-family: var(--irk-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--irk-transition);
}

.irk-proposal__done:hover {
	background: var(--irk-accent);
	color: var(--irk-dark);
}

/* Proposal Modal Responsive */
@media (max-width: 480px) {
	.irk-proposal-wrapper {
		padding: 0;
		align-items: flex-end;
	}

	.irk-proposal {
		max-width: 100%;
		max-height: 90vh;
		border-radius: var(--irk-radius) var(--irk-radius) 0 0;
		overflow-y: auto;
	}

	.irk-proposal__header {
		padding: 1rem 1.25rem;
	}

	.irk-proposal__form {
		padding: 1.25rem;
	}
}
