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

:root {
    /* Minnka brand colors */
    --minnka-gold: #a59d88;
    --minnka-white: #ffffff;
    --minnka-black: #000000;
    --minnka-dark: #0d0d0d;
    --minnka-accent: #a59d88;
    --minnka-accent-glow: rgba(165, 157, 136, 0.4);
    
    /* Pace colors */
    --pace-highlight: #ffcc00;
    --pace-glow: rgba(255, 204, 0, 0.4);
    --automation-highlight: #00ccff;
    --automation-glow: rgba(0, 204, 255, 0.3);
    
    /* Retro gaming colors */
    --retro-blue: #667eea;
    --retro-purple: #764ba2;
    --retro-green: #28a745;
    --retro-red: #dc3545;
    --retro-yellow: #ffc107;
    --retro-orange: #fd7e14;
    --retro-cyan: #17a2b8;
    --retro-pink: #e83e8c;
    
    /* Enhanced overlay colors */
    --overlay-dark: rgba(0, 0, 0, 0.8);
    --accent-glow: rgba(102, 126, 234, 0.4);
    --success-glow: rgba(40, 167, 69, 0.4);
    --warning-glow: rgba(253, 126, 20, 0.4);
}

/* Enhanced Background with Retro Gaming Image */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    
    /* Background image system from EbayApp */
    background-image: url('assets/background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    /* Fallback dark background if image fails to load */
    background-color: #1a1a1a;
}

/* Enhanced overlay for better readability - Minimal overlay to show background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
    pointer-events: none;
}

/* Remove the old background animation - replaced with static retro gaming image */
.background-animation {
    display: none;
}

.header {
    text-align: center;
    padding: 2rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    position: relative;
}

/* Minnka Header Styling */
.minnka-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px 0;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 2px solid rgba(165, 157, 136, 0.2);
}

.minnka-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.minnka-brand {
    font-size: 32px;
    font-weight: 700;
    color: var(--minnka-gold);
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-shadow: 0 0 15px var(--minnka-accent-glow);
}

.minnka-subtitle {
    font-size: 16px;
    color: var(--minnka-gold);
    margin-bottom: 8px;
    letter-spacing: 1px;
    opacity: 0.9;
}

.minnka-pace-mantra {
    font-size: 14px;
    font-weight: 700;
    color: var(--pace-highlight);
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--pace-glow);
    animation: fastPacePulse 1.5s infinite ease-in-out;
}

@keyframes fastPacePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.app-title-section {
    margin-top: 20px;
}

.app-title-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-title-section p {
    font-size: 1.1rem;
    opacity: 0.8;
}

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

.controls {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.control-group {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.control-group h3 {
    margin-bottom: 1rem;
    color: #4ecdc4;
    font-size: 1.1rem;
}

.platform-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.platform-btn {
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.platform-btn.active {
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

/* View Toggle Button Styling */
.view-toggle-container {
    margin-top: 1rem;
    text-align: center;
}

.view-toggle-btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    min-width: 140px;
}

.view-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.view-toggle-btn.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* View Toggle Button Styling */
.view-toggle-container {
    margin-top: 1rem;
    text-align: center;
}

.view-toggle-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.view-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.view-toggle-btn.active {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}

/* Ignore Controls Styling */
.ignore-controls {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #ccc;
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: #fff;
}

.ignore-checkbox {
    display: none;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    margin-right: 0.8rem;
    transition: all 0.3s ease;
}

.checkbox-label:hover .checkmark {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.ignore-checkbox:checked + .checkmark {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    border-color: #4ecdc4;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ignore-checkbox:checked + .checkmark:after {
    display: block;
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.9rem;
    color: #ccc;
}

select, input {
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

select option {
    background: #2a2a2a;
    color: #fff;
    border: none;
}

.want-select {
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.8rem;
}

.want-select option {
    background: #2a2a2a;
    color: #fff;
}

select:focus, input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.3);
}

.search-input {
    width: 100%;
    margin-bottom: 1rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    opacity: 0.8;
    font-size: 0.9rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1rem;
}

.game-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Platform-specific background colors */
.game-card .platform-megadrive {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.game-card .platform-snes {
    background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.game-card .platform-32x {
    background: linear-gradient(135deg, #e67e22, #f39c12);
}

.game-card .platform-mega-cd {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.game-card .platform-master-system {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

/* Platform-specific card backgrounds - Ultra transparent to show background */
.game-card:has(.platform-megadrive) {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.08), rgba(52, 73, 94, 0.05));
    border: 1px solid rgba(44, 62, 80, 0.2);
}

.game-card:has(.platform-snes) {
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.08), rgba(155, 89, 182, 0.05));
    border: 1px solid rgba(142, 68, 173, 0.2);
}

.game-card:has(.platform-32x) {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.08), rgba(243, 156, 18, 0.05));
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.game-card:has(.platform-mega-cd) {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.08), rgba(46, 204, 113, 0.05));
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.game-card:has(.platform-master-system) {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.08), rgba(231, 76, 60, 0.05));
    border: 1px solid rgba(192, 57, 43, 0.2);
}

/* Fallback for browsers that don't support :has() - Ultra transparent */
.game-card[data-platform="megadrive"] {
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.08), rgba(52, 73, 94, 0.05));
    border: 1px solid rgba(44, 62, 80, 0.2);
}

.game-card[data-platform="snes"] {
    background: linear-gradient(135deg, rgba(142, 68, 173, 0.08), rgba(155, 89, 182, 0.05));
    border: 1px solid rgba(142, 68, 173, 0.2);
}

.game-card[data-platform="32x"] {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.08), rgba(243, 156, 18, 0.05));
    border: 1px solid rgba(230, 126, 34, 0.2);
}

.game-card[data-platform="mega-cd"] {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.08), rgba(46, 204, 113, 0.05));
    border: 1px solid rgba(39, 174, 96, 0.2);
}

.game-card[data-platform="master-system"] {
    background: linear-gradient(135deg, rgba(192, 57, 43, 0.08), rgba(231, 76, 60, 0.05));
    border: 1px solid rgba(192, 57, 43, 0.2);
}

/* OWNED GAMES OVERRIDE - Make them more visible */
.game-card.owned,
.game-card.owned[data-platform],
.game-card:has(.platform-megadrive).owned,
.game-card:has(.platform-snes).owned,
.game-card:has(.platform-32x).owned,
.game-card:has(.platform-mega-cd).owned,
.game-card:has(.platform-master-system).owned {
    background: rgba(78, 205, 196, 0.25) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(78, 205, 196, 0.4) !important;
    border-left: 4px solid #4ecdc4 !important;
}

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

.game-card.wanted {
    border-left: 4px solid #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
}

.game-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
}

.game-platform {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.game-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
    min-height: 60px;
    align-items: center;
}

.game-details:empty {
    display: none;
    margin-bottom: 0;
}

.detail-item {
    text-align: center;
}

.detail-label {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-bottom: 0.3rem;
}

.detail-value {
    font-weight: 600;
}

.want-level {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-bottom: 1rem;
    height: 40px;
    align-items: center;
}

.star {
    color: #ffd700;
    font-size: 1.2rem;
}

.star.empty {
    opacity: 0.3;
}

.owned-status {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    height: 40px;
}

.owned-badge {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(46, 204, 113, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4); }
}

.game-actions {
    display: flex !important;
    gap: 0.5rem;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.owned-btn {
    background: #4ecdc4;
    color: #fff;
}

.owned-btn.active {
    background: #2ecc71;
}

.want-btn {
    background: #ff6b6b;
    color: #fff;
}

.remove-owned-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.remove-owned-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
}

.ignore-btn {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ignore-btn:hover {
    background: linear-gradient(45deg, #5a6268, #495057);
    transform: translateY(-2px);
}

.ignore-btn.ignored {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    border: 1px solid #6c757d;
}

.ignore-btn.ignored:hover {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    color: #495057;
}

.quick-links {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ebay-btn {
    background: linear-gradient(45deg, #0064d2, #0053ba);
    color: #fff;
}

.ebay-btn:hover {
    background: linear-gradient(45deg, #0053ba, #0041a3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 100, 210, 0.4);
}

.cex-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: #fff;
}

.cex-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.youtube-btn {
    background: linear-gradient(45deg, #ffc107, #f7b733);
    color: #212529;
}

.youtube-btn:hover {
    background: linear-gradient(45deg, #f7b733, #e1a72a);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4);
}

.game-controls {
    display: flex !important;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.control-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.edit-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: #fff;
    display: inline-block !important;
    visibility: visible !important;
}

.edit-btn:hover {
    background: linear-gradient(45deg, #2980b9, #1f648b);
    transform: translateY(-1px);
}

.delete-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: #fff;
}

.delete-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-1px);
}

.floating-add-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #4ecdc4;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.form-group input,
.form-group select {
    width: 100%;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
}

.no-games {
    text-align: center;
    padding: 3rem;
    color: #ccc;
}

.no-games i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Design 2: Spreadsheet View */
.games-grid.design2 {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.spreadsheet-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.spreadsheet-table th {
    background: rgba(255, 255, 255, 0.1);
    color: #4ecdc4;
    padding: 1rem 0.8rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    position: sticky;
    top: 0;
    z-index: 10;
}

.spreadsheet-table td {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    color: #fff;
}

.spreadsheet-table tr:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.001);
    transition: all 0.2s ease;
}

.spreadsheet-table tr.owned {
    background: rgba(78, 205, 196, 0.15);
    border-left: 4px solid #4ecdc4;
}

.platform-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 70px;
}

.status-owned {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: #fff;
}

.status-wanted {
    background: linear-gradient(45deg, #ff6b6b, #e55353);
    color: #fff;
}

.status-available {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-cell {
    font-weight: 600;
    color: #4ecdc4;
}

.spreadsheet-actions {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.mini-btn {
    padding: 0.4rem 0.6rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mini-owned {
    background: #4ecdc4;
    color: #fff;
}

.mini-remove {
    background: #e74c3c;
    color: #fff;
}

.mini-edit {
    background: #3498db;
    color: #fff;
}

.mini-ignore {
    background: #6c757d;
    color: #fff;
}

.mini-btn:hover {
    transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .platform-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .view-toggle-btn {
        min-width: 120px;
        padding: 0.8rem 1.5rem;
    }
    
    /* Spreadsheet Mobile */
    .spreadsheet-table {
        font-size: 0.8rem;
    }
    
    .spreadsheet-table th,
    .spreadsheet-table td {
        padding: 0.6rem 0.4rem;
    }
    
    .spreadsheet-actions {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .mini-btn {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .view-toggle-btn {
        min-width: 100px;
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
}
    opacity: 0.3;
}

.owned-status {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    height: 40px;
}

.owned-badge {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(46, 204, 113, 0.6); }
    100% { box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4); }
}

.game-actions {
    display: flex !important;
    gap: 0.5rem;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.action-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.owned-btn {
    background: #4ecdc4;
    color: #fff;
}

.owned-btn.active {
    background: #2ecc71;
}

.want-btn {
    background: #ff6b6b;
    color: #fff;
}

.remove-owned-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.remove-owned-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
}

.ignore-btn {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ignore-btn:hover {
    background: linear-gradient(45deg, #5a6268, #495057);
    transform: translateY(-2px);
}

.ignore-btn.ignored {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    color: #6c757d;
    border: 1px solid #6c757d;
}

.ignore-btn.ignored:hover {
    background: linear-gradient(45deg, #e9ecef, #dee2e6);
    color: #495057;
}

.quick-links {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ebay-btn {
    background: linear-gradient(45deg, #0064d2, #0053ba);
    color: #fff;
}

.ebay-btn:hover {
    background: linear-gradient(45deg, #0053ba, #0041a3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 100, 210, 0.4);
}

.cex-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: #fff;
}

.cex-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.game-controls {
    display: flex !important;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.control-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.edit-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: #fff;
    display: inline-block !important;
    visibility: visible !important;
}

.edit-btn:hover {
    background: linear-gradient(45deg, #2980b9, #1f648b);
    transform: translateY(-1px);
}

.delete-btn {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: #fff;
}

.delete-btn:hover {
    background: linear-gradient(45deg, #c0392b, #a93226);
    transform: translateY(-1px);
}



.floating-add-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-add-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal h2 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #4ecdc4;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ccc;
}

.form-group input,
.form-group select {
    width: 100%;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: #fff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-danger {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
}

.no-games {
    text-align: center;
    padding: 3rem;
    color: #ccc;
}

.no-games i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Enhanced mobile responsiveness for portrait and fold phones */

/* Container responsive layout */
.container.responsive-container {
    display: flex;
    flex-direction: column;
}

/* Portrait mode layout adjustments */
@media (orientation: portrait) and (max-width: 768px) {
    .container {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .controls {
        order: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .stats {
        order: 2 !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .games-grid {
        order: 3 !important;
        margin-top: 1.5rem !important;
    }
    
    .no-games {
        order: 4 !important;
    }
}

/* Very small screens - stack stats vertically */
@media (orientation: portrait) and (max-width: 320px) {
    .stats {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    .stat-card {
        padding: 0.75rem 0.5rem !important;
        min-height: 50px !important;
    }
    
    .stat-number {
        font-size: 1rem !important;
        line-height: 1.1 !important;
    }
    
    .stat-label {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
    }
}

/* Enhanced stat card responsiveness */
@media (max-width: 768px) {
    .stat-card {
        padding: 1rem 0.75rem !important;
        text-align: center !important;
        min-height: 60px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
    }
    
    .stat-number {
        font-size: 1.2rem !important;
        font-weight: bold !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.1 !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
        opacity: 0.9 !important;
        line-height: 1.2 !important;
        padding: 0 0.2rem !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
}

/* Landscape mobile optimization */
@media (orientation: landscape) and (max-width: 768px) {
    .stats {
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    .stat-card {
        padding: 0.5rem 0.25rem !important;
        min-height: 55px !important;
    }
    
    .stat-number {
        font-size: 0.9rem !important;
    }
    
    .stat-label {
        font-size: 0.65rem !important;
    }
}

@media (max-width: 480px) {
    .platform-selector {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .platform-btn {
        padding: 0.8rem;
        font-size: 0.8rem;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .control-group {
        padding: 0.8rem;
    }
    
    .minnka-brand {
        font-size: 24px;
    }
    
    .minnka-subtitle {
        font-size: 14px;
    }
    
    .minnka-pace-mantra {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-controls {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .platform-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .platform-btn {
        padding: 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .control-group {
        padding: 1rem;
    }
    
    .control-group h3 {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .filter-group label {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    
    .search-input {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
        margin-bottom: 1rem;
    }
    
    select, input {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    /* Mobile Modal Improvements */
    .modal {
        padding: 0.5rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 15px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .modal-actions .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Ensure form inputs are properly sized on mobile */
    .form-group input,
    .form-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 1rem;
    }
    
    /* Game card actions on mobile */
    .game-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .action-btn {
        width: 100%;
        padding: 0.8rem;
    }
    
    /* Mobile-friendly checkboxes */
    .checkmark {
        height: 24px;
        width: 24px;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.game-card {
    animation: fadeInUp 0.3s ease forwards;
}

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

/* =================================================================
   LAYOUT DESIGN STYLES - Different Views for Game Collection
   ================================================================= */

/* Design 2: Spreadsheet View */
.games-grid.design2 {
    display: block;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.spreadsheet-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.spreadsheet-table th {
    background: rgba(255, 255, 255, 0.1);
    color: #4ecdc4;
    padding: 1rem 0.8rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    position: sticky;
    top: 0;
    z-index: 10;
}

.spreadsheet-table td {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    vertical-align: middle;
    color: #fff;
}

.spreadsheet-table tr:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.001);
    transition: all 0.2s ease;
}

.spreadsheet-table tr.owned {
    background: rgba(78, 205, 196, 0.15);
    border-left: 4px solid #4ecdc4;
}

.platform-badge {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
}

.status-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    min-width: 70px;
}

.status-owned {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: #fff;
}

.status-wanted {
    background: linear-gradient(45deg, #ff6b6b, #e55353);
    color: #fff;
}

.status-available {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-cell {
    font-weight: 600;
    color: #4ecdc4;
}

.spreadsheet-actions {
    display: flex;
    gap: 0.3rem;
    align-items: center;
}

.mini-btn {
    padding: 0.4rem 0.6rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mini-owned {
    background: #4ecdc4;
    color: #fff;
}

.mini-remove {
    background: #e74c3c;
    color: #fff;
}

.mini-edit {
    background: #3498db;
    color: #fff;
}

.mini-ignore {
    background: #6c757d;
    color: #fff;
}

.mini-btn:hover {
    transform: scale(1.05);
}

/* Mobile Responsiveness for Spreadsheet View */
@media (max-width: 768px) {
    /* Design 2: Spreadsheet Mobile */
    .spreadsheet-table {
        font-size: 0.8rem;
    }
    
    .spreadsheet-table th,
    .spreadsheet-table td {
        padding: 0.6rem 0.4rem;
    }
    
    .spreadsheet-actions {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .mini-btn {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
    }
}

/* View toggle mobile responsiveness */
@media (max-width: 768px) {
    .view-toggle-btn {
        min-width: 120px;
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .view-toggle-btn {
        min-width: 100px;
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
}
.games-grid.design3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.8rem;
}

.game-card.compact {
    padding: 1rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.compact .game-title {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.compact .game-platform {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.6rem;
}

.compact .game-details {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
    min-height: auto;
}

.compact .detail-item {
    text-align: left;
    flex: 1;
}

.compact .detail-label {
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}

.compact .detail-value {
    font-size: 0.8rem;
}

.compact .want-level {
    height: 25px;
    margin-bottom: 0.6rem;
}

.compact .star {
    font-size: 1rem;
}

.compact .owned-status {
    height: 25px;
    margin-bottom: 0.6rem;
}

.compact .owned-badge {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
}

.compact .game-actions {
    flex-direction: column;
    gap: 0.4rem;
}

.compact .action-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
}

.compact .quick-links {
    gap: 0.3rem;
    margin: 0.6rem 0 0.4rem 0;
}

.compact .link-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
}

.compact .game-controls {
    margin-top: 0.6rem;
}

.compact .control-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.7rem;
}

/* Design 4: Timeline View */
.games-grid.design4 {
    display: block;
    max-width: 900px;
    margin: 0 auto;
}

.timeline-container {
    position: relative;
    padding-left: 30px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #4ecdc4, #667eea, #764ba2);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 20px;
    width: 14px;
    height: 14px;
    background: #4ecdc4;
    border-radius: 50%;
    border: 3px solid rgba(0, 0, 0, 0.8);
    z-index: 2;
}

.timeline-item.owned::before {
    background: #2ecc71;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.6);
}

.timeline-item.wanted::before {
    background: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
}

.timeline-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.timeline-card::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 15px solid rgba(255, 255, 255, 0.1);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    flex: 1;
    min-width: 200px;
}

.timeline-platform {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.timeline-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.timeline-section {
    text-align: center;
}

.timeline-section h4 {
    font-size: 0.8rem;
    color: #4ecdc4;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.timeline-stars {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin-top: 0.3rem;
}

.timeline-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.timeline-btn {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 90px;
}

.timeline-owned {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
    color: #fff;
}

.timeline-add {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    color: #fff;
}

.timeline-remove {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: #fff;
}

.timeline-edit {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: #fff;
}

.timeline-ignore {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    color: #fff;
}

.timeline-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Platform-specific timeline styling */
.timeline-item[data-platform="megadrive"] .timeline-card {
    border-left: 4px solid #2c3e50;
}

.timeline-item[data-platform="snes"] .timeline-card {
    border-left: 4px solid #8e44ad;
}

.timeline-item[data-platform="32x"] .timeline-card {
    border-left: 4px solid #e67e22;
}

.timeline-item[data-platform="mega-cd"] .timeline-card {
    border-left: 4px solid #27ae60;
}

.timeline-item[data-platform="master-system"] .timeline-card {
    border-left: 4px solid #c0392b;
}

/* Mobile Responsiveness for New Layouts */
@media (max-width: 768px) {
    /* Design 2: Spreadsheet Mobile */
    .spreadsheet-table {
        font-size: 0.8rem;
    }
    
    .spreadsheet-table th,
    .spreadsheet-table td {
        padding: 0.6rem 0.4rem;
    }
    
    .spreadsheet-actions {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .mini-btn {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
    }
    
    /* Design 3: Compact Mobile */
    .games-grid.design3 {
        grid-template-columns: 1fr;
    }
    
    .game-card.compact {
        min-height: 160px;
    }
    
    /* Design 4: Timeline Mobile */
    .timeline-container {
        padding-left: 20px;
    }
    
    .timeline-item {
        padding-left: 25px;
    }
    
    .timeline-content {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        text-align: center;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .timeline-title {
        font-size: 1.1rem;
        min-width: auto;
        text-align: center;
    }
    
    .timeline-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .timeline-btn {
        width: 100%;
        min-width: auto;
    }
    
    .timeline-card::before {
        display: none;
    }
    
    .timeline-card:hover {
        transform: none;
    }
}

/* Layout selector mobile responsiveness */
@media (max-width: 768px) {
    .layout-selector {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .layout-btn {
        min-height: 70px;
        padding: 0.8rem 0.4rem;
    }
}

/* Design 5: Console Museum View - Revolutionary 3D Console Experience */
.games-grid.design5 {
    display: block;
    perspective: 1000px;
    overflow-x: auto;
    padding: 2rem 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    border-radius: 20px;
    position: relative;
}

.museum-container {
    display: flex;
    gap: 3rem;
    padding: 2rem;
    min-width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}

.console-section {
    position: relative;
    margin-bottom: 4rem;
    text-align: center;
    min-width: 280px;
}

.console-display {
    position: relative;
    margin-bottom: 2rem;
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.console-display:hover {
    transform: rotateY(5deg) rotateX(2deg) scale(1.05);
}

.console-body {
    width: 200px;
    height: 120px;
    margin: 0 auto;
    border-radius: 15px;
    position: relative;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: rotateX(10deg);
    transition: all 0.3s ease;
}

/* Platform-specific console designs */
.console-megadrive .console-body {
    background: linear-gradient(145deg, #2c3e50, #34495e, #2c3e50);
    border: 2px solid #1a252f;
}

.console-megadrive .console-body::before {
    content: 'MEGA DRIVE';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #ecf0f1;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.console-megadrive .console-body::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 20px;
    right: 20px;
    height: 8px;
    background: #1a252f;
    border-radius: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.console-snes .console-body {
    background: linear-gradient(145deg, #8e44ad, #9b59b6, #8e44ad);
    border: 2px solid #6c3483;
    border-radius: 20px;
}

.console-snes .console-body::before {
    content: 'Super Nintendo';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    color: #f8f9fa;
    font-size: 9px;
    font-weight: bold;
}

.console-snes .console-body::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 30px;
    right: 30px;
    height: 6px;
    background: #6c3483;
    border-radius: 3px;
}

.console-32x .console-body {
    background: linear-gradient(145deg, #e67e22, #f39c12, #e67e22);
    border: 2px solid #d35400;
    position: relative;
}

.console-32x .console-body::before {
    content: '32X';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    color: #2c3e50;
    font-size: 14px;
    font-weight: bold;
}

.console-mega-cd .console-body {
    background: linear-gradient(145deg, #27ae60, #2ecc71, #27ae60);
    border: 2px solid #1e8449;
    height: 140px;
    border-radius: 10px;
}

.console-mega-cd .console-body::before {
    content: 'MEGA-CD';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #f8f9fa;
    font-size: 10px;
    font-weight: bold;
}

.console-mega-cd .console-body::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    border: 8px solid #1e8449;
    border-radius: 50%;
    background: radial-gradient(circle, #34495e 20%, #2c3e50 60%, #1a252f 100%);
}

.console-master-system .console-body {
    background: linear-gradient(145deg, #c0392b, #e74c3c, #c0392b);
    border: 2px solid #a93226;
    height: 100px;
}

.console-master-system .console-body::before {
    content: 'Master System';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    color: #f8f9fa;
    font-size: 9px;
    font-weight: bold;
}

.console-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(78, 205, 196, 0.3);
}

.console-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.console-stat {
    text-align: center;
}

.console-stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4ecdc4;
    display: block;
}

.console-stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.3rem;
}

.game-shelf {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    padding: 1rem;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.3), rgba(255, 255, 255, 0.05));
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 120px;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
}

.game-shelf::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.game-cartridge {
    width: 45px;
    height: 65px;
    background: linear-gradient(145deg, #34495e, #2c3e50);
    border-radius: 3px 3px 8px 8px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 4px 2px;
    transform: perspective(100px) rotateX(10deg);
}

.game-cartridge:hover {
    transform: perspective(100px) rotateX(0deg) translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

.game-cartridge.owned {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
    box-shadow: 
        0 2px 8px rgba(46, 204, 113, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.game-cartridge.wanted {
    background: linear-gradient(145deg, #ff6b6b, #e55353);
    box-shadow: 
        0 2px 8px rgba(255, 107, 107, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.game-cartridge.available {
    background: linear-gradient(145deg, #6c757d, #5a6268);
    opacity: 0.6;
}

.cartridge-label {
    writing-mode: horizontal-tb;
    font-size: 8px;
    font-weight: 900;
    color: #ffffff;
    text-shadow: 
        0 1px 0 #000000,
        0 -1px 0 #000000,
        1px 0 0 #000000,
        -1px 0 0 #000000,
        0 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    max-width: 41px;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    padding: 4px 3px;
    border-radius: 4px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 3px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cartridge-notch {
    width: 30px;
    height: 4px;
    background: #1a252f;
    border-radius: 2px;
    margin-top: auto;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
}

.cartridge-notch::before {
    content: '';
    position: absolute;
    top: 1px;
    left: 3px;
    right: 3px;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.museum-controls {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.museum-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

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

.museum-btn.active {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.cartridge-tooltip {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.cartridge-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.game-cartridge:hover .cartridge-tooltip {
    opacity: 1;
    visibility: visible;
}

.museum-lighting {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(78, 205, 196, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 20px;
}

/* Platform-specific cartridge colors */
.console-megadrive .game-cartridge {
    background: linear-gradient(145deg, #2c3e50, #34495e);
}

.console-megadrive .game-cartridge.owned {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
}

.console-megadrive .game-cartridge.wanted {
    background: linear-gradient(145deg, #3498db, #2980b9);
}

.console-snes .game-cartridge {
    background: linear-gradient(145deg, #8e44ad, #9b59b6);
    border-radius: 8px 8px 3px 3px;
    width: 45px;
    height: 55px;
}

.console-snes .game-cartridge.owned {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
}

.console-snes .game-cartridge.wanted {
    background: linear-gradient(145deg, #f39c12, #e67e22);
}

.console-32x .game-cartridge {
    background: linear-gradient(145deg, #e67e22, #f39c12);
    width: 35px;
    height: 50px;
}

.console-32x .game-cartridge.owned {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
}

.console-32x .game-cartridge.wanted {
    background: linear-gradient(145deg, #ff6b6b, #e55353);
}

.console-mega-cd .game-cartridge {
    background: linear-gradient(145deg, #27ae60, #2ecc71);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    position: relative;
}

.console-mega-cd .game-cartridge .cartridge-label {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 5px;
    text-align: center;
    line-height: 1.2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.console-mega-cd .cartridge-notch {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #1a252f;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
}

.console-master-system .game-cartridge {
    background: linear-gradient(145deg, #c0392b, #e74c3c);
    width: 38px;
    height: 55px;
}

.console-master-system .game-cartridge.owned {
    background: linear-gradient(145deg, #2ecc71, #27ae60);
}

.console-master-system .game-cartridge.wanted {
    background: linear-gradient(145deg, #9b59b6, #8e44ad);
}

/* Mobile Responsiveness for Museum View */
@media (max-width: 768px) {
    .museum-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }
    
    .console-section {
        margin-bottom: 2rem;
        min-width: auto;
    }
    
    .console-display {
        margin-bottom: 1rem;
    }
    
    .console-body {
        width: 150px;
        height: 90px;
    }
    
    .console-mega-cd .console-body {
        height: 105px;
    }
    
    .console-title {
        font-size: 1.4rem;
    }
    
    .console-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 0.8rem;
    }
    
    .game-shelf {
        min-height: 100px;
        gap: 0.3rem;
    }
    
    .game-cartridge {
        width: 40px;
        height: 55px;
    }
    
    .cartridge-label {
        font-size: 6px;
        padding: 2px 1px;
        max-width: 36px;
        max-height: 35px;
    }
    
    .console-snes .game-cartridge {
        width: 38px;
        height: 45px;
    }
    
    .console-mega-cd .game-cartridge {
        width: 40px;
        height: 40px;
    }
    
    .cartridge-label {
        font-size: 5px;
    }
    
    .museum-controls {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 1rem;
        justify-content: center;
    }
}

/* View Toggle Button Styles */
.view-toggle-container {
    margin-top: 1rem;
    text-align: center;
}

.view-toggle-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.view-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.view-toggle-btn.active {
    background: linear-gradient(45deg, #4ecdc4, #44a08d);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.4);
}