/* ============================================================
   FONTS — Beleren (local, MTG-brand)
   ============================================================ */
@font-face {
	font-family: "Beleren Bold";
	src: url("../fonts/Beleren2016-Bold.woff") format("woff"),
	     url("../fonts/Beleren2016-Bold.ttf") format("truetype");
	font-style: normal; font-weight: bold;
}
@font-face {
	font-family: "Beleren SmallCaps Bold";
	src: url("../fonts/Beleren2016SmallCaps-Bold.woff") format("woff"),
	     url("../fonts/Beleren2016SmallCaps-Bold.ttf") format("truetype");
	font-style: normal; font-weight: bold;
}

/* ============================================================
   DESIGN TOKENS — light (Archive) & dark (Vault)
   ============================================================ */
:root,
[data-theme="light"] {
	--bg:          #F4F1EA;
	--bg-elev:     #FBF9F3;
	--bg-card:     #FFFFFF;
	--line:        #D8D1C2;
	--line-soft:   #E6DFCE;
	--text:        #1A1814;
	--text-dim:    #6B6557;
	--text-mute:   #9A9485;
	--accent:      #7C2E2E;
	--accent-soft: #C99B9B;
	--sage:        #5B6B4F;
	--danger:      #7C2E2E;
	--serif:       "Fraunces", "Times New Roman", serif;
	--sans:        "Inter", -apple-system, system-ui, sans-serif;
	--mono:        "JetBrains Mono", ui-monospace, Menlo, monospace;
	--radius:      4px;
	--radius-md:   8px;
}

[data-theme="dark"] {
	--bg:          #14131A;
	--bg-elev:     #1B1A22;
	--bg-card:     #22212B;
	--line:        #2E2D38;
	--line-soft:   #26252F;
	--text:        #E9E4D4;
	--text-dim:    #8A8496;
	--text-mute:   #595668;
	--accent:      #C9A24A;
	--accent-soft: #8E6F2E;
	--sage:        #4F8A6B;
	--danger:      #9C4A4A;
	--serif:       "Fraunces", "Times New Roman", serif;
	--sans:        "Inter", -apple-system, system-ui, sans-serif;
	--mono:        "JetBrains Mono", ui-monospace, Menlo, monospace;
	--radius:      6px;
	--radius-md:   10px;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
	margin: 0; padding: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.hidden { display: none; }

/* ============================================================
   LOADING SCREEN
   ============================================================ */
.loading {
	position: fixed; display: flex; inset: 0;
	justify-content: center; align-items: center;
	background: var(--bg-card);
	z-index: 9999;
	transition: background 0.2s;
}
.loading img { height: 160px; }

.page-content {
	opacity: 0;
	padding-top: 60px; /* navbar height */
}
.page-content > div { box-sizing: border-box; }

/* ============================================================
   NAVBAR
   ============================================================ */
.ioc-navbar {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 60px;
	z-index: 100;
	display: flex;
	align-items: center;
	gap: 0;
	padding: 0 20px;
	background: var(--bg-elev);
	border-bottom: 1px solid var(--line);
	font-family: var(--sans);
}

/* Game switcher */
.ioc-game-switcher {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 36px;
	padding: 0 10px 0 8px;
	background: var(--bg-card);
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	cursor: pointer;
	color: var(--text);
	flex-shrink: 0;
}
.ioc-game-icon {
	width: 22px; height: 22px; border-radius: 5px;
	background: var(--accent); color: var(--bg);
	display: grid; place-items: center;
	font-size: 13px; font-weight: 700; line-height: 1;
	flex-shrink: 0;
}
[data-theme="dark"] .ioc-game-icon { color: #14131A; }
.ioc-game-label { text-align: left; line-height: 1.1; }
.ioc-game-label-sub { display: block; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.ioc-game-label-name { display: block; font-size: 12px; font-weight: 600; }
.ioc-chevron { margin-left: 2px; opacity: .5; flex-shrink: 0; }

/* Wordmark */
.ioc-wordmark {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 15px 0 0;
	margin-right: 15px;
	border-right: 1px solid var(--line);
	flex-shrink: 0;
}
.ioc-logo-icon { height: 30px; }
.ioc-wordmark-text {
	font-family: var(--serif);
	font-size: 18px; font-weight: 500;
	letter-spacing: -.01em; white-space: nowrap;
}
.ioc-wordmark-text em {
	font-style: italic; color: var(--accent);
	margin: 0 1px;
}

/* Nav tabs */
.ioc-nav-tabs {
	display: flex; align-items: stretch;
	height: 100%; margin-left: 20px; gap: 0;
}
.ioc-nav-tab {
	display: flex; align-items: center;
	padding: 0 14px; font-size: 13px; font-weight: 500;
	color: var(--text-dim); text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: color .15s, border-color .15s;
	white-space: nowrap;
}
.ioc-nav-tab:hover { color: var(--text); }
.ioc-nav-tab.is-active {
	color: var(--accent);
	border-bottom-color: var(--accent);
	font-weight: 600;
}

.ioc-navbar-spacer { flex: 1; }

/* Search */
.ioc-search {
	display: flex; align-items: center; gap: 8px;
	width: 260px; height: 34px; padding: 0 12px;
	background: var(--bg); border: 1px solid var(--line);
	border-radius: var(--radius-md);
	font-size: 12px; color: var(--text-dim);
	cursor: text; flex-shrink: 0;
}
.ioc-search-placeholder { flex: 1; }
.ioc-search-kbd {
	font-family: var(--mono); font-size: 10px;
	padding: 1px 5px; border: 1px solid var(--line);
	border-radius: 3px; color: var(--text-mute);
}

/* Theme toggle */
.ioc-theme-toggle {
	width: 36px; height: 36px; margin-left: 8px;
	background: var(--bg-card); border: 1px solid var(--line);
	border-radius: var(--radius-md); cursor: pointer;
	color: var(--text-dim); font-size: 16px;
	display: grid; place-items: center;
	transition: color .15s, background .15s;
	flex-shrink: 0;
}
.ioc-theme-toggle:hover { color: var(--accent); }

/* Show correct icon per theme */
.ioc-theme-icon-light,
.ioc-theme-icon-dark { display: none; line-height: 1; }
[data-theme="light"] .ioc-theme-icon-dark { display: block; }
[data-theme="dark"]  .ioc-theme-icon-light { display: block; }

/* User avatar */
.ioc-user-avatar {
	width: 34px; height: 34px; margin-left: 8px;
	border-radius: 50%; background: var(--bg-card);
	border: 1px solid var(--line);
	display: grid; place-items: center;
	font-family: var(--serif); font-size: 13px;
	color: var(--accent); font-weight: 600;
	flex-shrink: 0;
}

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.ioc-breadcrumbs {
	display: flex; align-items: center; gap: 8px;
	height: 40px; padding: 0 24px;
	border-bottom: 1px solid var(--line-soft);
	font-family: var(--sans); font-size: 12px;
	color: var(--text-dim);
	background: var(--bg);
}
.ioc-back-btn {
	width: 24px; height: 24px; border-radius: var(--radius);
	background: var(--bg-card); border: 1px solid var(--line);
	display: grid; place-items: center; cursor: pointer;
	color: var(--text-dim); text-decoration: none; flex-shrink: 0;
}
.ioc-back-btn--disabled { cursor: default; opacity: .4; }
.ioc-breadcrumb-sep { color: var(--text-mute); }
.ioc-breadcrumb-item { color: var(--text-dim); }
.ioc-breadcrumb-item.is-current { color: var(--text); font-weight: 500; }

/* ============================================================
   FILTER BAR (shared)
   ============================================================ */
.ioc-filter-bar {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 24px;
	border-bottom: 1px solid var(--line-soft);
	background: var(--bg); flex-wrap: wrap;
	position: sticky;
	top: 60px;
	z-index: 99;
}
.ioc-filter-label {
	font-size: 11px; color: var(--text-dim);
	letter-spacing: .06em; text-transform: uppercase;
	flex-shrink: 0;
}
.ioc-filter-chip {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 5px 12px; font-size: 12px;
	border-radius: 999px; border: 1px solid var(--line);
	color: var(--text-dim); cursor: pointer;
	transition: all .15s; white-space: nowrap;
}
.ioc-filter-chip.is-active {
	border-color: var(--accent);
	color: var(--accent);
	background: color-mix(in srgb, var(--accent) 8%, transparent);
}
[data-theme="dark"] .ioc-filter-chip.is-active {
	background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.ioc-filter-sep { width: 1px; height: 22px; background: var(--line); flex-shrink: 0; }
.ioc-filter-spacer { flex: 1; }

/* Segmented control */
.ioc-segmented {
	display: flex; gap: 0;
	background: var(--bg-elev); border: 1px solid var(--line);
	border-radius: var(--radius-md); padding: 2px;
}
.ioc-segment {
	padding: 4px 10px; font-size: 11px; cursor: pointer;
	border-radius: calc(var(--radius-md) - 2px);
	color: var(--text-dim); white-space: nowrap;
}
.ioc-segment.is-active {
	background: var(--bg-card); color: var(--text);
}

/* Dropdown chip */
.ioc-dropdown-chip {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 5px 10px; font-size: 11px;
	border-radius: var(--radius); border: 1px solid var(--line);
	background: var(--bg-elev); color: var(--text-dim); cursor: pointer;
}
.ioc-dropdown-chip strong { color: var(--text); font-weight: 500; }

/* Search input in filter bar */
.ioc-filter-search {
	display: flex;
	width: 180px;
	height: 32px;
	padding: 0;
	gap: 8px;
	font-size: 12px;
	align-items: center;
	color: var(--text-dim);
}
.ioc-filter-search input {
	background: transparent; border: none; outline: none;
	color: var(--text); font-family: var(--sans); font-size: 12px;
	width: 100%;
}
.ioc-filter-search input::placeholder { color: var(--text-dim); }

/* Select inside filter */
.ioc-filter-select {
	height: 30px; padding: 0 8px; font-size: 11px;
	background: var(--bg-elev); border: 1px solid var(--line);
	border-radius: var(--radius); color: var(--text);
	font-family: var(--sans); cursor: pointer; outline: none;
}

/* Progress bar */
.ioc-progress {
	width: 100%; height: 4px; border-radius: 999px;
	background: var(--line-soft); overflow: hidden;
}
.ioc-progress-fill {
	height: 100%; border-radius: 999px;
	background: var(--accent);
	transition: width .3s ease;
}

/* ============================================================
   PAGE SECTIONS
   ============================================================ */
.ioc-page-section {
	padding: 24px 24px 0;
}
.ioc-section-header {
	display: flex; align-items: baseline; gap: 12px;
	padding-bottom: 8px; margin-bottom: 12px;
	border-bottom: 1px solid var(--line-soft);
}
.ioc-section-year {
	font-family: var(--serif); font-size: 22px; letter-spacing: -.01em;
}
.ioc-section-count {
	font-size: 11px; color: var(--text-mute);
	font-family: var(--mono);
}

/* ============================================================
   COLLECTION GRID (view-my-collection)
   ============================================================ */
.ioc-collections-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 10px;
}
.ioc-collection-card {
	background: var(--bg-elev); border: 1px solid var(--line);
	border-radius: var(--radius-md); padding: 16px;
	display: flex; flex-direction: column; gap: 10px;
	position: relative; text-decoration: none; color: var(--text);
	transition: border-color .15s, box-shadow .15s;
	cursor: pointer;
}
.ioc-collection-card:hover {
	border-color: var(--accent);
	box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 15%, transparent);
}
.ioc-collection-complete-badge {
	position: absolute; top: 10px; right: 12px;
	font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
	color: var(--accent); font-family: var(--mono);
}
.ioc-collection-card-header {
	display: flex; align-items: center; gap: 10px;
}
.ioc-collection-icon {
	width: 36px; height: 36px; flex-shrink: 0;
	display: flex; align-items: center; justify-content: center;
}
.ioc-collection-icon img {
	max-width: 100%; max-height: 100%;
	object-fit: contain;
	filter: var(--icon-filter, none);
}
[data-theme="dark"] .ioc-collection-icon img {
	filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(.85);
	opacity: .8;
}
.ioc-collection-name {
	font-family: var(--serif); font-size: 16px; line-height: 1.15;
}
.ioc-collection-meta {
	font-size: 10px; color: var(--text-mute);
	font-family: var(--mono); letter-spacing: .06em; margin-top: 1px;
}
.ioc-collection-footer {
	display: flex; justify-content: space-between;
	font-size: 11px; color: var(--text-dim);
}
.ioc-collection-count { font-family: var(--mono); }
.ioc-collection-pct { color: var(--text); }
.ioc-collection-pct.is-complete { color: var(--accent); }
.ioc-collection-pct.is-empty { color: var(--text-mute); }

/* Type filter chips (legacy class reuse) */
.likeCheckbox { display: none; } /* hidden, replaced by ioc-filter-chip */

/* ============================================================
   CARD GRID (view-my-collection-cards)
   ============================================================ */
.ioc-set-header {
	padding: 24px 28px 16px;
	border-bottom: 1px solid var(--line-soft);
}
.ioc-set-hero {
	display: flex; gap: 20px; align-items: flex-end;
}
.ioc-set-icon-box {
	width: 68px; height: 68px; border-radius: var(--radius-md);
	background: var(--bg-elev); border: 1px solid var(--line);
	display: flex; align-items: center; justify-content: center;
	flex-shrink: 0;
}
.ioc-set-icon-box img {
	max-width: 48px; max-height: 48px; object-fit: contain;
}
[data-theme="dark"] .ioc-set-icon-box img {
	filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(5deg) brightness(.85);
	opacity: .8;
}
.ioc-set-meta {
	font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
	color: var(--text-dim); margin-bottom: 2px;
}
.ioc-set-title {
	font-family: var(--serif); font-size: 38px;
	letter-spacing: -.01em; line-height: 1;
}
.ioc-set-actions { display: flex; gap: 8px; margin-left: auto; align-self: flex-end; }
.ioc-btn-ghost {
	background: transparent; border: 1px solid var(--line);
	border-radius: var(--radius); padding: 8px 12px;
	font-size: 12px; color: var(--text-dim); cursor: pointer;
	font-family: var(--sans); transition: border-color .15s, color .15s;
}
.ioc-btn-ghost:hover { border-color: var(--text-dim); color: var(--text); }
.ioc-btn-primary {
	background: var(--accent); color: var(--bg-card); border: none;
	border-radius: var(--radius); padding: 8px 14px;
	font-size: 12px; font-weight: 600; cursor: pointer;
	font-family: var(--sans);
}
[data-theme="dark"] .ioc-btn-primary { color: #14131A; }

/* Collection name heading (used by JS) */
h1.collection-name { display: none; }

/* Cards list */
#cards-list {
	display: flex; flex-wrap: wrap;
	padding: 20px 24px; gap: 12px;
}

/* Card item */
.card-item {
	width: 260px; position: relative;
	background: var(--bg-elev); border: 1px solid var(--line);
	border-left: 6px solid var(--line);
	border-radius: var(--radius-md); padding: 10px;
	display: flex; flex-direction: column; gap: 8px;
	transition: transform .15s, box-shadow .15s;
}
.card-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px color-mix(in srgb, #000 20%, transparent);
}

/* Rarity borders */
.card-item.rarity-common    { border-left-color: #494949; }
.card-item.rarity-uncommon  { border-left-color: #C0C0C0; }
.card-item.rarity-rare      { border-left-color: #D4AF37; }
.card-item.rarity-mythic    { border-left-color: #E36B00; }
.card-item.rarity-special   { border-left-color: #9B71E0; }
.card-item.rarity-bonus     { border-left-color: #9B71E0; }

/* Not collected */
.card-item.is-not-collected { opacity: .55; filter: grayscale(1); }
.card-item.is-not-collected:hover { opacity: .75; }

/* Card number row */
.card-item-num-row {
	display: flex; align-items: center; justify-content: space-between;
	font-size: 10px;
}
.card-item-num {
	color: var(--text-mute); font-family: var(--mono);
}

/* Card image wrapper */
.card-item-img-wrap {
	position: relative; border-radius: 4px; overflow: hidden;
	line-height: 0;
}
.card-image {
	width: 100%; display: block;
	border-radius: 4px;
}

/* Quantity badge */
.card-item-qty {
	position: absolute; top: 6px; left: 6px;
	padding: 2px 7px; font-size: 10px; font-weight: 700;
	background: var(--accent); color: var(--bg);
	border-radius: 999px; font-family: var(--mono);
	line-height: 1.4;
}
[data-theme="dark"] .card-item-qty { color: #14131A; }

/* Card info */
.card-item-info { }
.card-name {
	font-size: 12px; font-weight: 500;
	color: var(--text); line-height: 1.2;
}
.card-item.is-not-collected .card-name { color: var(--text-dim); }
.card-item-rarity {
	font-size: 10px; color: var(--text-mute);
	margin-top: 2px; letter-spacing: .04em;
}

/* Action menu */
.card-item-actions {
	display: block; position: absolute;
	z-index: 10; right: -2px; top: -10px;
	opacity: 0; visibility: hidden;
	transition: opacity .2s, visibility .2s;
}
.card-item:hover .card-item-actions,
.card-item:focus-within .card-item-actions {
	opacity: 1; visibility: visible;
}
.card-item-actions header {
	position: relative; z-index: 2;
	width: 28px; height: 28px; margin: 0;
	background: var(--accent); border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	padding-bottom: 2px;
	border: 2px solid var(--bg-elev);
	cursor: pointer; color: var(--bg);
	font-weight: 900; font-size: 16px;
}
[data-theme="dark"] .card-item-actions header { color: #14131A; }
.card-item-actions:hover header,
.card-item-actions:focus header {
	border-radius: 50% 50% 0 0;
	border-bottom: 0;
}
.card-item-actions .card-item-actions-container {
	display: none; min-width: 210px;
	padding: 4px; font-size: 12px;
	background: var(--bg-card); border: 1px solid var(--line);
	border-radius: 0 0 var(--radius-md) var(--radius-md);
	box-shadow: 0 8px 24px color-mix(in srgb, #000 20%, transparent);
}
.card-item-actions:hover .card-item-actions-container,
.card-item-actions:focus .card-item-actions-container { display: block; }
.card-item-action {
	padding: 7px 10px; cursor: pointer;
	color: var(--text); border-radius: var(--radius);
	transition: background .1s;
}
.card-item-action:hover { background: var(--bg-elev); }
.card-item-action .unicode-icon { margin-right: 4px; }

/* ============================================================
   POPUP / CORE OVERLAY (card actions)
   ============================================================ */
#coreFrame { display: none; opacity: 0; width: 0; height: 0; }
#core {
	overflow-y: auto; display: none; width: 100%; height: 100%;
	position: fixed; background: rgba(0,0,0,.7); z-index: 999; top: 0;
}
#core .box {
	position: relative; width: calc(100% - 100px); max-width: 600px;
	padding: 30px; margin: 80px auto;
	background: var(--bg-card); color: var(--text);
	border-radius: var(--radius-md); border: 1px solid var(--line);
}
#core header {
	float: left; width: 100%; text-align: center;
	font-size: 18px; font-weight: bold;
	padding-bottom: 20px; border-bottom: 1px solid var(--line);
	margin-bottom: 20px;
}
#core div.btnClose {
	display: inline-block; cursor: pointer; padding: 10px 20px;
	margin-top: 20px; font-size: 14px; font-weight: 600;
	color: var(--text-dim); background: var(--bg-elev);
	border: 1px solid var(--line); border-radius: var(--radius);
}
.mkm-versioning-desc { display: block; margin-bottom: 14px; font-size: 14px; color: var(--text-dim); }
.mkm-versioning-options { display: block; margin-bottom: 20px; }
.popup-submit { display: flex; gap: 8px; }

/* ============================================================
   BUTTONS (legacy + new)
   ============================================================ */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 8px 14px; font-size: 13px; font-weight: 500;
	border-radius: var(--radius); border: 1px solid transparent;
	cursor: pointer; font-family: var(--sans);
}
.btn-success {
	background: var(--accent); color: var(--bg-card); border-color: var(--accent);
}
[data-theme="dark"] .btn-success { color: #14131A; }
.btn-cancel {
	background: var(--bg-elev); color: var(--text-dim); border-color: var(--line);
}

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
	min-height: 100vh; display: flex;
	justify-content: center; align-items: center;
	background: var(--bg);
}
.login-page .login-container {
	width: 100%; max-width: 400px;
	background: var(--bg-card); border: 1px solid var(--line);
	border-radius: var(--radius-md); padding: 28px;
	box-shadow: 0 4px 24px color-mix(in srgb, #000 10%, transparent);
}
.login-page h2 {
	font-family: var(--serif); font-size: 28px;
	text-align: center; margin-bottom: 24px; color: var(--text);
}
.login-page .form-group { margin-bottom: 16px; }
.login-page .form-group label {
	display: block; margin-bottom: 6px; font-weight: 500; font-size: 13px;
}
.login-page .form-group input {
	width: 100%; padding: 10px 12px; font-size: 14px;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--bg); color: var(--text); outline: none;
	transition: border-color .15s;
}
.login-page .form-group input:focus { border-color: var(--accent); }
.login-page .form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.login-page .form-actions a { font-size: 13px; color: var(--accent); text-decoration: none; }
.login-page button {
	width: 100%; padding: 10px; margin-top: 16px;
	background: var(--accent); color: var(--bg-card);
	font-size: 14px; font-weight: 600; border: none;
	border-radius: var(--radius); cursor: pointer;
}
[data-theme="dark"] .login-page button { color: #14131A; }

/* Form inputs (global) */
input[type="text"],
input[type="search"],
input[type="number"],
input[type="email"],
input[type="password"]
{
	padding: 8px 12px;
	font-size: 14px;
	color: var(--text);
	background: var(--bg);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	outline: none;
	transition: border-color .15s;
}
input[type="text"]:focus, input[type="search"]:focus,
input[type="number"]:focus, input[type="email"]:focus,
input[type="password"]:focus { border-color: var(--accent); }
input::placeholder { color: var(--text-mute); }
select {
	background: var(--bg); color: var(--text);
	border: 1px solid var(--line); border-radius: var(--radius);
	padding: 6px 10px; font-family: var(--sans); outline: none;
}
input[type="number"] { width : 82px; }

/* ============================================================
   HOME PAGE
   ============================================================ */
.home-page {
	display: flex; min-height: calc(100vh - 60px);
	flex-direction: column; align-items: center;
	padding: 40px 24px;
}
.home-page h1 {
	font-family: var(--serif); font-size: 32px; margin-bottom: 28px;
	color: var(--text);
}
.home-page .container {
	display: flex; flex-wrap: wrap; gap: 16px;
	justify-content: center; max-width: 900px;
}
.home-page .card {
	width: 160px; background: var(--bg-card);
	border: 1px solid var(--line); border-radius: var(--radius-md);
	padding: 20px; text-align: center;
	text-decoration: none; color: var(--text);
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.home-page .card:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
	box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 12%, transparent);
}
.home-page .card h2 { font-size: 14px; margin: 10px 0 4px; }
.home-page .card p { font-size: 12px; color: var(--text-dim); margin: 0; }
.home-page .card-icon { font-size: 36px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
	.ioc-navbar { padding: 0 12px; gap: 0; }
	.ioc-wordmark { display: none; }
	.ioc-search { display: none; }
	.ioc-nav-tabs { margin-left: 12px; }
	.ioc-nav-tab { padding: 0 8px; font-size: 12px; }
	.ioc-collections-grid { grid-template-columns: 1fr 1fr; }
	.card-item { width: calc(50% - 6px); }
	#cards-list { padding: 12px; gap: 8px; }
}
@media (max-width: 480px) {
	.ioc-collections-grid { grid-template-columns: 1fr; }
	.card-item { width: 100%; }
}
