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

:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --danger-color: #ea4335;
    --warning-color: #fbbc04;
    --dark-bg: #202124;
    --card-bg: #2d2d30;
    --text-primary: #e8eaed;
    --text-secondary: #9aa0a6;
    --border-color: #3c4043;
    --hover-bg: #3c4043;
    --tier-s: #ff6b6b;
    --tier-a: #4ecdc4;
    --tier-b: #45b7d1;
    --tier-c: #96ceb4;
    --tier-d: #95a5a6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 20px;
    flex-wrap: wrap;
}

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

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

/* Filters */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid transparent;
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
}

/* Deck Grid */
.deck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.deck-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.deck-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tier-s), var(--tier-a));
}

.deck-card.tier-S::before {
    background: var(--tier-s);
}

.deck-card.tier-A::before {
    background: var(--tier-a);
}

.deck-card.tier-B::before {
    background: var(--tier-b);
}

.deck-card.tier-C::before {
    background: var(--tier-c);
}

.deck-card.tier-D::before {
    background: var(--tier-d);
}

.deck-card.consolidated {
    opacity: 0.7;
    border-color: rgba(255, 255, 255, 0.3);
}

.deck-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.deck-card.completed {
    border-color: var(--secondary-color);
    background: rgba(52, 168, 83, 0.2);
}

.deck-number {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.deck-name {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.deck-tier {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.deck-tier.tier-S {
    background: var(--tier-s);
    color: white;
}

.deck-tier.tier-A {
    background: var(--tier-a);
    color: white;
}

.deck-tier.tier-B {
    background: var(--tier-b);
    color: white;
}

.deck-tier.tier-C {
    background: var(--tier-c);
    color: white;
}

.deck-tier.tier-D {
    background: var(--tier-d);
    color: white;
}

.deck-tier.tier-Consolidated {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.deck-strategy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    line-height: 1.4;
}

.completion-bar {
    position: relative;
    height: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0;
}

.completion-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--tier-a));
    transition: width 0.3s ease;
}

.completion-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.85rem;
    font-weight: bold;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.deck-status {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.2);
}

.status-badge.alt-paths {
    background: var(--warning-color);
    color: white;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.checkbox-container label {
    font-size: 0.95rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
}

/* Deck Detail Page */
.deck-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.back-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

.deck-title-section h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.deck-details {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.deck-details p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

/* Card Lists */
.card-list-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.card-list-section h2 {
    margin-bottom: 20px;
    color: white;
}

.card-list {
    display: grid;
    gap: 10px;
}

.card-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    align-items: center;
    transition: all 0.2s ease;
}

.card-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.card-item.owned {
    background: rgba(52, 168, 83, 0.3);
    border-left: 3px solid var(--secondary-color);
}

.card-item.partial {
    background: rgba(251, 188, 4, 0.2);
    border-left: 3px solid var(--warning-color);
}

.card-image-small {
    flex-shrink: 0;
    width: 40px;
    height: 58px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-small span {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

.card-item-text {
    font-size: 1rem;
    color: white;
    flex: 1;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.card-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--secondary-color);
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    border-radius: 8px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.qty-btn:active {
    transform: scale(0.95);
}

.quantity-display {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 50px;
    justify-content: center;
    font-weight: bold;
}

.owned-qty {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.qty-separator {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.total-qty {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.delete-card-btn {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.delete-card-btn:hover {
    background: #c5221f;
}

.add-card-btn {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.add-card-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Path Selector */
.path-selector {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.path-selector h3 {
    margin-bottom: 15px;
    color: white;
}

.path-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.path-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.path-btn.active {
    background: white;
    color: #667eea;
    border-color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-content h2 {
    margin-bottom: 20px;
    color: white;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-height: 300px;
    overflow-y: auto;
    width: calc(100% - 60px);
    z-index: 1001;
    margin-top: -10px;
}

.autocomplete-item {
    padding: 12px 15px;
    cursor: pointer;
    color: #333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: rgba(102, 126, 234, 0.1);
}

.available-badge {
    background: rgba(52, 168, 83, 0.2);
    color: #34a853;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
}

.modal-content button {
    width: 100%;
    padding: 12px;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive */
@media (max-width: 768px) {
    .deck-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .stats {
        gap: 20px;
    }

    .filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

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

/* Navigation Links */
.nav-links {
    text-align: left;
    margin-bottom: 20px;
}

.nav-btn {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(-5px);
}

/* Inventory Page Styles */
.inventory-controls {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.search-bar {
    margin-bottom: 20px;
}

.search-bar input {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
}

.search-bar input:focus {
    outline: 2px solid white;
}

.inventory-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
}

.inventory-section h2 {
    color: white;
    margin-bottom: 20px;
}

.inventory-list {
    display: grid;
    gap: 15px;
}

.inventory-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.inventory-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.card-image-container {
    flex-shrink: 0;
    width: 80px;
    height: 116px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

.inventory-card-content {
    flex: 1;
    min-width: 0;
}

.inventory-card.status-unused {
    border-left-color: var(--warning-color);
    background: rgba(251, 188, 4, 0.15);
}

.inventory-card.status-used {
    border-left-color: var(--secondary-color);
}

.inventory-card.status-available {
    border-left-color: var(--tier-a);
}

.inventory-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.inventory-card-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.edit-inventory-btn {
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.edit-inventory-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.inventory-card-stats {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.stat-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-badge.owned {
    background: rgba(102, 126, 234, 0.6);
}

.stat-badge.used {
    background: rgba(118, 75, 162, 0.6);
}

.stat-badge.available {
    background: rgba(255, 255, 255, 0.2);
}

.stat-badge.available.positive {
    background: rgba(52, 168, 83, 0.6);
}

.deck-usage-list {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.deck-usage-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.deck-usage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 5px;
}

.deck-usage-item a {
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.deck-usage-item a:hover {
    color: var(--tier-a);
}

.usage-quantity {
    font-weight: bold;
    color: var(--tier-a);
}

.unused-notice {
    margin-top: 15px;
    padding: 10px;
    background: rgba(251, 188, 4, 0.2);
    border-radius: 8px;
    color: var(--warning-color);
    font-size: 0.9rem;
    text-align: center;
}

/* Modal textarea */
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    resize: vertical;
}

.modal-content textarea:focus {
    outline: 2px solid white;
}

/* Shopping List Styles */
.shopping-controls {
    margin-bottom: 30px;
}

.export-section {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.export-btn {
    padding: 12px 24px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.export-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.4);
}

.format-preview {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.format-preview h3 {
    color: white;
    margin-bottom: 10px;
}

.format-preview textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    resize: vertical;
}

.shopping-section {
    margin-bottom: 40px;
}

.shopping-section h2 {
    color: white;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.shopping-list {
    display: grid;
    gap: 15px;
}

.shopping-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--warning-color);
    transition: all 0.3s ease;
}

.shopping-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.shopping-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.shopping-card-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
}

.total-needed-badge {
    background: var(--danger-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.needed-for-decks {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.needed-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.needed-deck-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.needed-deck-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.needed-deck-item a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.needed-deck-item a:hover {
    color: var(--tier-a);
}

.need-quantity {
    font-weight: bold;
    color: var(--danger-color);
}

.tier-badge-small {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
}

/* Deck Shopping List */
.deck-shopping-list {
    display: grid;
    gap: 20px;
}

.deck-shopping-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.deck-shopping-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.deck-shopping-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.deck-shopping-header > div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.deck-shopping-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.deck-shopping-name:hover {
    color: var(--tier-a);
}

.deck-total-badge {
    background: var(--danger-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.deck-need-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.deck-need-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 12px;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .deck-need-list {
        grid-template-columns: 1fr;
    }

    .shopping-card-header,
    .deck-shopping-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .export-section {
        flex-direction: column;
    }
}

/* Global Search Styles */
.search-controls {
    margin-bottom: 30px;
}

.search-bar-large {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar-large input {
    width: 100%;
    padding: 20px 60px 20px 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    font-size: 1.2rem;
    color: white;
    transition: all 0.3s ease;
}

.search-bar-large input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-bar-large input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.search-bar-large button {
    position: absolute;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.search-bar-large button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.search-summary {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    text-align: center;
}

.search-summary h2 {
    color: white;
    margin-bottom: 10px;
}

.search-results-list {
    display: grid;
    gap: 20px;
}

.search-deck-result {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.search-deck-result:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.search-deck-header {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.search-deck-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-deck-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.search-deck-name:hover {
    color: var(--tier-a);
}

.match-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.search-deck-cards {
    display: grid;
    gap: 10px;
}

.search-card-match {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.search-card-match:hover {
    background: rgba(255, 255, 255, 0.15);
}

.search-card-match.owned {
    border-left-color: var(--secondary-color);
    background: rgba(52, 168, 83, 0.2);
}

.search-card-match.partial {
    border-left-color: var(--warning-color);
    background: rgba(251, 188, 4, 0.15);
}

.search-card-match.needed {
    border-left-color: var(--danger-color);
    background: rgba(234, 67, 53, 0.15);
}

.match-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.match-status {
    font-size: 1.1rem;
}

.match-card-name {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.match-deck-type {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.match-ownership {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ownership-text {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .search-card-match {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .match-card-info {
        flex-wrap: wrap;
    }
}


/* Deck Metadata Styles (Tags, Notes, Storage) */
.deck-metadata-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: grid;
    gap: 20px;
}

.metadata-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.metadata-item strong {
    color: white;
    font-size: 1rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.deck-tag {
    background: var(--tier-a);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tag-remove {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tag-remove:hover {
    background: rgba(255, 255, 255, 0.5);
}

.add-tag-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-tag-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.metadata-item textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
}

.metadata-item textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.metadata-item input {
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 0.95rem;
}

.metadata-item input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.save-notes-btn,
.save-storage-btn {
    padding: 10px 20px;
    background: var(--secondary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
}

.save-notes-btn:hover,
.save-storage-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.deck-info-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
}

.deck-info-section p {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.9);
}

/* Card Condition Selector */
.card-info-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.condition-select {
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    max-width: 200px;
}

.condition-select option {
    background: #667eea;
    color: white;
}

.card-item .card-info-section {
    flex: 1;
}

.card-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* Card Lightbox Styles */
.card-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
    z-index: 10002;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.lightbox-body {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px;
    align-items: start;
}

.lightbox-image-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container img {
    max-width: 400px;
    max-height: 580px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lightbox-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 400px;
}

.lightbox-info h2 {
    color: white;
    font-size: 1.8rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.lightbox-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.lightbox-stat {
    background: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lightbox-stat .stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.lightbox-stat .stat-value {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

.lightbox-decks-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.lightbox-decks-section h3 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
}

.lightbox-deck-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.lightbox-deck-list::-webkit-scrollbar {
    width: 8px;
}

.lightbox-deck-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.lightbox-deck-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.lightbox-deck-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.lightbox-deck-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    text-decoration: none;
    color: white;
}

.lightbox-deck-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(5px);
}

.lightbox-deck-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lightbox-deck-name {
    font-weight: 600;
    font-size: 1rem;
}

.lightbox-deck-type {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.lightbox-deck-ownership {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ownership-status {
    font-size: 1.2rem;
}

.ownership-quantity {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    .lightbox-body {
        grid-template-columns: 1fr;
    }

    .lightbox-image-container img {
        max-width: 280px;
        max-height: 400px;
    }

    .lightbox-info {
        min-width: 0;
    }

    .lightbox-stats {
        grid-template-columns: 1fr;
    }
}

/* Deck Comparison Styles */
.comparison-selectors {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 30px;
    align-items: center;
    margin: 30px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.deck-selector-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deck-selector-box label {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.compare-icon {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comparison-results {
    margin-top: 20px;
}

.empty-state {
    text-align: center;
    padding: 80px 40px;
    color: white;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.empty-state h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.empty-state p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.comparison-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.comparison-stat-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.comparison-stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.comparison-stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.comparison-stat-card .stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.comparison-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.comparison-section {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.comparison-section h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comparison-card-list {
    display: grid;
    gap: 12px;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.comparison-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.comparison-card.unique {
    background: rgba(255, 255, 255, 0.08);
}

.comparison-card .card-name {
    color: white;
    font-weight: 500;
    font-size: 1rem;
}

.comparison-card .card-quantities {
    display: flex;
    gap: 10px;
}

.comparison-card .deck-qty {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
}

.comparison-card .card-quantity {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: white;
    font-weight: 600;
}

.empty-section {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 30px;
    font-style: italic;
}

/* Responsive Comparison */
@media (max-width: 768px) {
    .comparison-selectors {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .compare-icon {
        display: none;
    }

    .comparison-stats {
        grid-template-columns: 1fr;
    }
}

/* Export/Import Modal Styles */
.export-format-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.export-format-btn {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.export-format-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.export-copy-btn {
    width: 100%;
    padding: 12px;
    background: var(--secondary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    font-size: 1rem;
}

.export-copy-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.import-btn {
    flex: 1;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.import-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .export-format-buttons {
        grid-template-columns: 1fr;
    }
}

/* Stats Dashboard Styles */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.stat-card .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.chart-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.chart-card h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
}

.chart-card canvas {
    max-height: 300px;
}

.leaderboard-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.leaderboard-card {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.leaderboard-card h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.leaderboard-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.leaderboard-rank {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    min-width: 40px;
}

.leaderboard-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaderboard-name {
    color: white;
    font-weight: 500;
}

.leaderboard-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

.needed-cards-section {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin: 30px 0;
}

.needed-cards-section h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.needed-cards-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.needed-card-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.needed-card-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.needed-card-name {
    color: white;
    font-weight: 500;
    font-size: 1rem;
}

.needed-card-stats {
    display: flex;
    gap: 10px;
    align-items: center;
}

.needed-badge {
    background: rgba(255, 99, 132, 0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.needed-decks {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Stats */
@media (max-width: 768px) {
    .charts-grid,
    .leaderboard-section {
        grid-template-columns: 1fr;
    }

    .chart-card canvas {
        max-height: 250px;
    }
}


/* Auth Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

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

.close {
    color: rgba(255, 255, 255, 0.8);
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    margin-top: -10px;
}

.close:hover {
    color: white;
}

#authModal h2 {
    color: white;
    margin-bottom: 10px;
    font-size: 2rem;
}

#authModal input {
    font-size: 1rem;
}

#authModal input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
}

#authModal button {
    font-size: 1rem;
    transition: all 0.2s ease;
}

#authModal button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

#authModal button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Toolkit Page Styles */
.toolkit-explanation {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.toolkit-explanation h3 {
    margin-bottom: 10px;
    color: white;
}

.toolkit-explanation p {
    margin: 8px 0;
    font-size: 1rem;
}

.toolkit-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.toolkit-sections {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.toolkit-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.toolkit-section-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: white;
}

.toolkit-section-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.toolkit-subsection {
    margin-top: 30px;
}

.toolkit-subsection h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 8px;
}

.toolkit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.toolkit-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.2s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.toolkit-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.toolkit-card.too-powerful {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3) 0%, rgba(255, 50, 50, 0.2) 100%);
    border: 2px solid rgba(255, 107, 107, 0.5);
}

.toolkit-card.need-to-buy {
    background: rgba(251, 188, 4, 0.2);
    border: 2px solid rgba(251, 188, 4, 0.5);
}

.toolkit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.toolkit-card-name {
    font-weight: 600;
    font-size: 1rem;
    color: white;
    flex: 1;
}

.toolkit-card-limit {
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    margin-left: 10px;
}

.toolkit-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.toolkit-owned-badge {
    background: rgba(76, 175, 80, 0.8);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.toolkit-owned-badge.need-buy {
    background: rgba(251, 188, 4, 0.8);
}

/* Strategy Suggestions */
.strategy-suggestions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.strategy-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.strategy-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: white;
}

.strategy-goal {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
    font-style: italic;
}

.strategy-picks {
    list-style: none;
    padding: 0;
}

.strategy-picks li {
    padding: 8px 12px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border-left: 3px solid rgba(76, 175, 80, 0.8);
}

.strategy-picks li:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Toolkit Notice Banner */
.toolkit-notice {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2) 0%, rgba(69, 183, 209, 0.2) 100%);
    border: 2px solid rgba(78, 205, 196, 0.5);
    border-radius: 15px;
    padding: 20px 25px;
    margin: 20px 0;
}

.toolkit-notice h3 {
    margin: 0 0 10px 0;
    color: white;
    font-size: 1.3rem;
}

.toolkit-notice p {
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.toolkit-notice a {
    text-decoration: underline;
}

.toolkit-notice a:hover {
    color: #51cf66 !important;
}
