/* Silksong Webweaver - Styles */

:root {
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-glow: rgba(139, 92, 246, 0.4);
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --bg-dark: #0f0f23;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252542;
    --bg-panel: #16162a;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;
    --health-color: #ef4444;
    --silk-color: #06b6d4;
    --sidebar-width: 200px;
}

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

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e1e3f 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════════════
   APP LAYOUT - Sidebar + Main Content
   ═══════════════════════════════════════════════════════════════════════════ */

.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0d0d1a 0%, #16162a 100%);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 0 10px var(--primary-glow));
}

.sidebar-title {
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav-list {
    list-style: none;
    padding: 12px 8px;
    flex: 1;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 4px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.sidebar-nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.sidebar-nav-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Hide dev-only nav items by default (shown via JS when ?dev in URL) */
.sidebar-nav-item.dev-only {
    display: none;
}

.sidebar-icon {
    font-size: 1.2rem;
}

.sidebar-label {
    font-size: 0.95rem;
    font-weight: 500;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.sidebar-github {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.sidebar-github:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

/* Main Content Area */
.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.app-page {
    display: none;
    min-height: 100vh;
}

.app-page.active {
    display: block;
}

/* Map Viewer Iframe */
.map-viewer-iframe {
    width: 100%;
    height: 100vh;
    border: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTAINER (for Parser page)
   ═══════════════════════════════════════════════════════════════════════════ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 20px var(--primary-glow));
    }

    50% {
        filter: drop-shadow(0 0 30px var(--primary-glow));
    }
}

header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-secondary);
    font-style: italic;
}

/* Upload Section */
.upload-section {
    margin-bottom: 2rem;
}

.upload-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.upload-area {
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary-color);
    background: var(--bg-card-hover);
    box-shadow: 0 0 30px var(--primary-glow);
}

.upload-area.has-file {
    border-color: var(--success-color);
    border-style: solid;
}

.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.upload-icon {
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.upload-area:hover .upload-icon {
    transform: scale(1.1);
}

.upload-text {
    color: var(--text-secondary);
}

.file-name {
    color: var(--success-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.upload-hint {
    text-align: center;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Analyze Button */
.analyze-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 300px;
    margin: 1.5rem auto 0;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.analyze-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow);
}

.analyze-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Error Message */
.error-message {
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    margin: 1rem auto;
    max-width: 600px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--error-color);
    border-radius: 12px;
    color: var(--error-color);
}

.error-message:not([hidden]) {
    display: flex;
}

.error-message[hidden] {
    display: none;
}

/* Stats Section */
.stats-section {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.stats-section>h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.tab-btn.active {
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 4px 15px var(--primary-glow);
}

.tab-icon {
    font-size: 1.1rem;
}

/* Tab Panels */
.tab-panels {
    background: var(--bg-panel);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    min-height: 400px;
}

.tab-panel {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

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

.panel-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.panel-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.panel-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Stat Cards */
.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.stat-card.large {
    grid-column: 1 / -1;
}

.stat-card h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.stat-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-value {
    color: var(--text-primary);
    font-weight: 500;
}

.stat-value.highlight {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Stat Icons - inline icons in labels */
.stat-icon {
    height: 20px;
    width: auto;
    vertical-align: middle;
    margin-right: 4px;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

/* Full Width Stat Card */
.stat-card.full-width {
    grid-column: 1 / -1;
}

/* Stats Visual Row */
.stat-visual-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
}

.stat-visual-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-visual-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-width: 100px;
}

.icon-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.icon-container img {
    height: 32px;
    width: auto;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.2));
    transition: transform 0.2s ease;
}

.icon-container img:hover {
    transform: scale(1.15);
}

/* Stat Bar (Health & Silk) */
.stat-bar {
    height: 10px;
    background: var(--border-color);
    border-radius: 5px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    border-radius: 5px;
    transition: width 0.5s ease;
    width: 0%;
}

.stat-bar-fill.health-fill {
    background: linear-gradient(90deg, var(--health-color), #f87171);
}

.stat-bar-fill.silk-fill {
    background: linear-gradient(90deg, #e0e0e0, #ffffff);
}

/* Crest Display */
.crest-display {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 0;
}

.crest-image {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(139, 92, 246, 0.4));
    transition: transform 0.3s ease;
}

.crest-image:hover {
    transform: scale(1.1);
}

/* Equipped Tools Section */
.equipped-tools-section {
    margin-top: 1rem;
}

.equipped-tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.equipped-tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.equipped-tool-item img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.5));
    transition: transform 0.2s ease;
}

.equipped-tool-item img:hover {
    transform: scale(1.15);
}

.equipped-tool-item span {
    font-size: 0.6rem;
    color: var(--text-secondary);
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Maps Grid */
.maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.map-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.map-item img {
    height: 60px;
    width: auto;
    transition: all 0.3s ease;
}

.map-item img.unlocked {
    filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.5));
}

.map-item img.locked {
    filter: grayscale(100%) brightness(0.5);
    opacity: 0.5;
}

/* Special placeholder icon (e.g., Abyss) - black/grey styling */
.map-item img.placeholder-icon.unlocked {
    filter: brightness(0.2) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

.map-item img.placeholder-icon.locked {
    filter: grayscale(100%) brightness(0.6);
    opacity: 0.4;
}

.map-item img:hover {
    transform: scale(1.15);
}

.map-item span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bosses Grid - similar to Maps Grid */
.bosses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.boss-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.boss-item img {
    height: 64px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.boss-item img.defeated {
    filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.5));
}

.boss-item img.not-defeated {
    filter: grayscale(100%) brightness(0.5);
    opacity: 0.5;
}

.boss-item img:hover {
    transform: scale(1.15);
}

.boss-item span {
    font-size: 0.65rem;
    color: var(--text-secondary);
    max-width: 85px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tools Grid - similar to Bosses/Maps Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.tool-item img {
    height: 48px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.tool-item img.unlocked {
    filter: drop-shadow(0 2px 6px rgba(16, 185, 129, 0.5));
}

.tool-item img.locked {
    filter: grayscale(100%) brightness(0.5);
    opacity: 0.5;
}

.tool-item img:hover {
    transform: scale(1.15);
}

.tool-item span {
    font-size: 0.6rem;
    color: var(--text-secondary);
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Tools Separator */
.tools-separator {
    display: flex;
    align-items: center;
    margin: 2rem 0 1rem 0;
    text-align: center;
}

.tools-separator::before,
.tools-separator::after {
    content: '';
    flex: 1;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.tools-separator span {
    padding: 0 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Abilities Grid */
.abilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.ability-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.ability-item img {
    height: 64px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.ability-item img.unlocked {
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.6));
}

.ability-item img.locked {
    filter: grayscale(100%) brightness(0.5);
    opacity: 0.5;
}

.ability-item img:hover {
    transform: scale(1.15);
}

.ability-item span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.skill-item img {
    height: 64px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.skill-item img.unlocked {
    filter: drop-shadow(0 2px 8px rgba(16, 185, 129, 0.6));
}

.skill-item img.locked {
    filter: grayscale(100%) brightness(0.5);
    opacity: 0.5;
}

.skill-item img:hover {
    transform: scale(1.15);
}

.skill-item span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Currency Display */
.currency-display {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 1rem;
}

.currency-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.currency-icon {
    font-size: 2.5rem;
}

.currency-info {
    display: flex;
    flex-direction: column;
}

.currency-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.currency-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Image Placeholders */
.panel-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.map-placeholder {
    min-height: 200px;
    grid-column: 1 / -1;
}

/* Placeholder Card for upcoming features */
.placeholder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 200px;
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.placeholder-card p {
    font-size: 1rem;
    opacity: 0.8;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--secondary-color);
}

.footer-note {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Tool Variants Modal */
.tool-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.tool-modal-content {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

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

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

.tool-modal-header h3 {
    margin: 0;
    color: var(--accent-color);
    font-size: 1.3rem;
}

.tool-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.tool-modal-close:hover {
    color: var(--accent-color);
}

.tool-modal-body {
    padding: 1.5rem;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

.spoiler-warning {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 165, 0, 0.1);
    border: 2px dashed rgba(255, 165, 0, 0.3);
    border-radius: 8px;
}

.spoiler-warning p {
    margin-bottom: 1rem;
    color: var(--accent-color);
    font-weight: bold;
}

.reveal-spoiler-btn {
    background: var(--accent-color);
    color: var(--bg-primary);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.reveal-spoiler-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

#variants-grid {
    display: grid;
    gap: 1rem;
}

.variant-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: background 0.2s;
}

.variant-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.variant-item img {
    height: 50px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
}

.variant-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.variant-label strong {
    color: var(--text-color);
    font-size: 1rem;
}

.variant-status {
    font-size: 0.85rem;
    font-weight: bold;
}

.status-unlocked {
    color: var(--accent-color);
}

.status-locked {
    color: var(--text-secondary);
    opacity: 0.7;
}

.tool-upgrade-set {
    position: relative;
}

.tool-upgrade-set::after {
    content: '🔄';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .tab-nav {
        flex-direction: column;
    }

    .tab-btn {
        min-width: auto;
    }

    .tab-text {
        display: inline;
    }

    .panel-content {
        grid-template-columns: 1fr;
    }

    .currency-display {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }

    .tab-icon {
        font-size: 1rem;
    }
}