/* CSS Variables */
:root {
    --primary: #FFD700;
    --primary-dark: #E6C200;
    --secondary: #1a73e8;
    --success: #34a853;
    --warning: #fbbc04;
    --danger: #ea4335;
    --bg: #ffffff;
    --bg-secondary: #f8f9fa;
    --text: #202124;
    --text-secondary: #5f6368;
    --text-on-primary: #202124;
    --border: #dadce0;
    --shadow: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --spacing: 16px;
}

[data-theme="dark"] {
    --bg: #1a1a2e;
    --bg-secondary: #16213e;
    --text: #e4e4e4;
    --text-secondary: #a0a0a0;
    --border: #2d3748;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.4);
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* App Container */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 70px;
}

/* Header */
.app-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.app-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
}

.logo {
    font-size: 24px;
}

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

.icon-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
    color: var(--text);
}

.icon-btn:hover {
    background: var(--border);
}

.lang-select {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 13px;
    background: var(--bg);
    color: var(--text);
}

/* Search Bar */
.search-bar {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.search-bar.hidden {
    display: none;
}

.search-input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 16px;
}

/* Stats Bar */
.stats-bar {
    margin-bottom: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.stat-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 12px 8px;
    text-align: center;
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: background 0.2s;
}
.stat-card:hover {
    background: var(--border);
}
.stat-card.active {
    background: var(--primary);
    color: var(--text-on-primary);
}
.stat-card.active .stat-label {
    color: var(--text-on-primary);
    opacity: 0.8;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

.stat-label {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-select {
    flex: 1;
    min-width: 100px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    background: var(--bg);
    color: var(--text);
}

/* Sets Grid */
.sets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.set-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.set-card:active {
    transform: scale(0.98);
}

.set-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.set-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.no-image {
    font-size: 48px;
    opacity: 0.3;
}

/* Status Badges */
.status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.status-building { background: var(--warning); color: #333; }
.status-completed { background: var(--success); }
.status-wishlist { background: var(--secondary); }

.set-info {
    padding: 10px;
}

.set-number {
    font-size: 11px;
    color: var(--secondary);
    font-weight: 600;
}

.set-name {
    font-size: 13px;
    font-weight: 600;
    margin: 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text);
}

.set-theme {
    font-size: 11px;
    color: var(--text-secondary);
}

.set-meta {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* Collection List View (legacy compatibility) */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.model-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.model-card:active {
    transform: scale(0.98);
}

.model-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: var(--bg);
    padding: 8px;
    margin-bottom: 0;
}

.model-card h3 {
    padding: 10px 10px 0;
    margin-bottom: 0;
    font-size: 13px;
}

.model-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.model-card .status {
    margin: 4px 10px 10px;
}

/* Status (inline) */
.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-white, #fff);
}

.status-building { background: var(--warning); color: #333; }
.status-completed { background: var(--success); }
.status-wishlist { background: var(--secondary); }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn:active {
    opacity: 0.8;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

/* Add Page / Recognize */
.add-container {
    max-width: 480px;
    margin: 0 auto;
}

/* Redesigned Add Page (screenshot UI) */
.add-page {
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 24px;
}

.add-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.add-header h1 {
    font-size: 17px;
    font-weight: 600;
}

.add-back-btn {
    font-size: 22px;
    color: var(--text);
    text-decoration: none;
    padding: 4px 8px;
    display: flex;
    align-items: center;
}

.add-form {
    padding: 16px;
}

/* Image Upload Section */
.add-image-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.add-image-placeholder {
    width: 140px;
    height: 140px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    opacity: 0.4;
    overflow: hidden;
    margin-bottom: 12px;
}

.add-image-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #4a90d9;
    color: white;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 6px rgba(74, 144, 217, 0.3);
}

.add-image-btn:hover {
    background: #3a7bc8;
}

.add-image-btn svg {
    flex-shrink: 0;
}

/* Fields */
.add-field {
    margin-bottom: 12px;
}

.add-field input[type="text"],
.add-field input[type="number"],
.add-field input[type="date"],
.add-field select,
.add-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
}

.add-field input:focus,
.add-field select:focus,
.add-field textarea:focus {
    outline: none;
    border-color: #4a90d9;
}

.add-field input::placeholder,
.add-field textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.add-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Row layout (status + quantity) */
.add-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.add-field-half select {
    padding: 14px 16px;
}

.add-field-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 500;
}

/* Input with icon */
.add-input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.add-input-with-icon input {
    flex: 1;
}

.add-field-icon {
    position: absolute;
    right: 14px;
    color: var(--text-secondary);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.add-field-suffix {
    position: absolute;
    right: 14px;
    color: var(--text-secondary);
    font-size: 14px;
    pointer-events: none;
}

/* Submit Button */
.add-submit {
    margin-top: 24px;
    padding-bottom: 8px;
}

.add-submit-btn {
    width: 100%;
    padding: 16px;
    background: #4a90d9;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 6px rgba(74, 144, 217, 0.3);
}

.add-submit-btn:hover {
    background: #3a7bc8;
}

.add-submit-btn:active {
    opacity: 0.85;
}

/* Mode Selector (legacy) */
.add-mode-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.mode-btn:hover {
    border-color: var(--secondary);
    background: rgba(26, 115, 232, 0.1);
}

.mode-icon {
    font-size: 24px;
}

.mode-btn span:last-child {
    font-size: 12px;
    font-weight: 600;
}

/* Mode content sections */
.mode-content {
    margin-top: 20px;
}

/* Scanner */
.scanner-container {
    margin-bottom: 20px;
}

.scanner-view {
    width: 100%;
    height: 250px;
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.scanner-view canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Form */
.add-form {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn {
    flex: 1;
}

/* Auth Pages */
.auth-container {
    max-width: 480px;
    margin: 40px auto;
    padding: 0 16px;
}

.auth-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow-lg);
}

.auth-card h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

/* Social Divider */
.social-divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    gap: 12px;
}

.social-divider::before,
.social-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.social-divider span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Google Login Button */
.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.google-btn:hover {
    background: var(--bg-secondary);
    box-shadow: var(--shadow);
}

.google-btn:active {
    opacity: 0.8;
}

.google-btn__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Detail Page */
.detail-container {
    padding-bottom: 20px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 16px;
}

.detail-image {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.detail-image:hover .image-overlay {
    opacity: 1;
}

.no-image-large {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 80px;
    opacity: 0.2;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.detail-title {
    font-size: 20px;
    font-weight: 700;
    flex: 1;
}

.detail-number {
    font-size: 14px;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 8px;
}

.detail-theme {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.detail-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stat-icon {
    font-size: 18px;
}

.stat-value {
    font-weight: 700;
    font-size: 16px;
}

.stat-label-detail {
    font-size: 12px;
    color: var(--text-secondary);
}

.detail-price, .detail-purchase {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 16px;
}

.price-value, .purchase-value {
    font-weight: 700;
    color: var(--success);
}

.detail-notes {
    margin: 16px 0;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
}

.detail-notes h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* External Links */
.external-links {
    margin: 24px 0;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.external-links h3 {
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ext-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: opacity 0.2s;
    color: white;
}

.ext-btn:active {
    opacity: 0.8;
}

.ext-btn.amazon { background: #FF9900; }
.ext-btn.rakuten { background: #BF0000; }
.ext-btn.brickset { background: #1a73e8; }
.ext-btn.google { background: #4285F4; }

/* Detail Actions */
.detail-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.detail-actions .btn {
    flex: 1;
}

/* Search Results */
.search-results {
    display: grid;
    gap: 12px;
}

.search-item {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 12px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.search-item h3 {
    margin: 0;
    font-size: 14px;
}

.search-item .price {
    color: var(--text-secondary);
    font-size: 13px;
}

/* Payment / Upgrade */
.upgrade-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow);
}

.upgrade-card h2 {
    font-size: 24px;
    margin-bottom: 12px;
}

.upgrade-card .price-display {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary);
    margin: 16px 0;
}

.upgrade-features {
    text-align: left;
    margin: 24px 0;
}

.upgrade-features li {
    padding: 8px 0;
    color: var(--text-secondary);
    list-style: none;
}

.upgrade-features li::before {
    content: "✓ ";
    color: var(--success);
    font-weight: 700;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-success { background: #e6f4ea; color: #137333; }
.alert-warning { background: #fef7e0; color: #b06000; }
.alert-error { background: #fce8e6; color: #c5221f; }

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: var(--bg);
    border-radius: var(--radius);
    max-width: 400px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 16px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    justify-content: space-around;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 8px 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 11px;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.2s;
}

.nav-item.active {
    color: var(--secondary);
}

.nav-icon {
    font-size: 22px;
}

/* Pagination */
.pagination {
    text-align: center;
    padding: var(--spacing);
}

/* Table (legacy) */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--spacing);
}

table td {
    padding: 8px;
    border-bottom: 1px solid var(--border);
}

table td:first-child {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Scanner */
#scanner {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Status Picker Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 24px;
    width: 90%;
    max-width: 320px;
}

.modal-content h3 {
    margin: 0 0 16px;
    text-align: center;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s;
}

.status-option:hover {
    border-color: var(--primary);
}

.status-option input[type="radio"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-actions .btn {
    flex: 1;
}

.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Photo Preview */
.photo-preview {
    margin-bottom: 16px;
    text-align: center;
}

.preview-img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius);
}

/* Settings */
.settings-container {
    padding-bottom: 20px;
}

.settings-group {
    margin-bottom: 24px;
}

.settings-group h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.lang-options {
    display: flex;
    gap: 8px;
}

.lang-option {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
}

.lang-option.active {
    border-color: var(--secondary);
    background: rgba(26, 115, 232, 0.1);
}

/* Responsive */
@media (max-width: 360px) {
    .sets-grid, .collection-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .link-buttons {
        flex-direction: column;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] .alert-success {
    background: #1b3a2a;
    color: #81c995;
}

[data-theme="dark"] .alert-warning {
    background: #3a3000;
    color: #fdd663;
}

[data-theme="dark"] .alert-error {
    background: #3a1a1a;
    color: #f28b82;
}
