/* Mystery Gift Page Styles - Pokedex Style Layout */

:root {
    /* Base Mystery Gift Colors - gold/yellow theme */
    --mg-primary: #ffcc00;
    --mg-primary-light: #ffe066;
    --mg-primary-dark: #ffb400;
    --mg-secondary: #ff9600;
    --mg-accent: #ff7e00;

    /* Calculate RGB values for glow effects */
    --mg-primary-rgb: 255, 204, 0;
    --mg-secondary-rgb: 255, 150, 0;
    --mg-accent-rgb: 255, 126, 0;

    /* Additional colors */
    --mg-bg-dark: #0d1117;
    --mg-bg-card: rgba(28, 32, 46, 0.9);
    --mg-bg-card-dark: rgba(50, 45, 30, 0.9);
    --mg-border: rgba(255, 204, 0, 0.3);
    --mg-text-primary: #ffffff;
    --mg-text-secondary: #dfcfaa;
    --mg-success: #4cd964;
    --mg-warning: #ffcc00;
    --mg-danger: #ff3b30;
    --mg-info: #38b6ff;

    /* Define RGB values needed by animations */
    --mg-success-rgb: 76, 217, 100;
    --mg-warning-rgb: 255, 204, 0;
    --mg-danger-rgb: 255, 59, 48;
    --mg-info-rgb: 56, 182, 255;

    /* Animation speeds */
    --animation-slow: 3s;
    --animation-normal: 2s;
    --animation-fast: 0.6s;
}

/* ===== Main Container ===== */
.mysterygift-container {
    max-width: 1200px;
    margin: 30px auto 60px;
    padding: 0 15px;
    font-family: "Exo 2", sans-serif;
    position: relative;
}

/* ===== Header ===== */
.mg-header {
    position: relative;
    background: linear-gradient(135deg, var(--mg-bg-card), var(--mg-bg-card-dark));
    border-radius: 16px;
    overflow: hidden;
    color: var(--mg-text-primary);
    margin-bottom: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    z-index: 1;
    border: 1px solid var(--mg-border);
}

.mg-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--mg-primary), var(--mg-secondary), transparent);
    z-index: 0;
    animation: scanline 4s linear infinite;
}

.mg-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.4));
    z-index: -1;
}

.header-title-section {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.header-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 36px;
    color: var(--mg-primary);
    animation: pulse var(--animation-slow) infinite alternate;
}

.mg-title {
    text-align: center;
    font-family: "Orbitron", sans-serif;
    margin-bottom: 10px;
}

.mg-title h1 {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(to right, var(--mg-primary), var(--mg-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(var(--mg-primary-rgb), 0.4);
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.mg-subtitle {
    text-align: center;
    color: var(--mg-text-secondary);
    font-size: 16px;
    font-weight: 300;
}

/* Audio Control */
.audio-control {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(20, 18, 15, 0.7);
    border: 1px solid var(--mg-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.audio-control:hover {
    transform: scale(1.1);
    background: rgba(var(--mg-primary-rgb), 0.2);
}

.audio-control i {
    color: var(--mg-primary);
    font-size: 18px;
}

/* ===== How It Works Strip ===== */
.mg-how-it-works {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: rgba(var(--mg-primary-rgb), 0.1);
    border: 1px solid rgba(var(--mg-primary-rgb), 0.2);
    border-radius: 12px;
}

.mg-how-it-works .step {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
}

.mg-how-it-works .step i {
    color: var(--mg-primary);
    font-size: 14px;
}

.mg-how-it-works .step-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 10px;
}

/* ===== Search Bar Container ===== */
.mg-search-bar-container {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.mg-search-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--mg-border);
    border-radius: 50px;
    padding: 8px 20px;
}

.mg-search-box i {
    color: var(--mg-primary);
    font-size: 16px;
}

.mg-search-box input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 15px;
    padding: 8px;
    font-family: "Exo 2", sans-serif;
}

.mg-search-box input::placeholder {
    color: var(--mg-text-secondary);
    opacity: 0.7;
}

.mg-search-box input:focus {
    outline: none;
}

/* Filter Toggle Button */
.mg-filter-toggle-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--mg-border);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mg-filter-toggle-btn:hover {
    background: rgba(var(--mg-primary-rgb), 0.2);
    border-color: var(--mg-primary);
}

.mg-filter-toggle-btn .filter-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--mg-primary);
    color: var(--mg-bg-dark);
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Game Filter Chips ===== */
.mg-game-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.mg-game-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(var(--mg-primary-rgb), 0.2);
    border-radius: 50px;
    color: var(--mg-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: "Exo 2", sans-serif;
}

.mg-game-chip:hover {
    background: rgba(var(--mg-primary-rgb), 0.15);
    border-color: rgba(var(--mg-primary-rgb), 0.4);
    color: var(--mg-text-primary);
}

.mg-game-chip.active {
    background: linear-gradient(135deg, var(--mg-primary), var(--mg-secondary));
    border-color: transparent;
    color: var(--mg-bg-dark);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(var(--mg-primary-rgb), 0.4);
}

.mg-game-chip i {
    font-size: 16px;
}

/* ===== Pokemon Grid ===== */
.mg-pokemon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

@media (min-width: 768px) {
    .mg-pokemon-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .mg-pokemon-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* ===== Event Card - Glassmorphism Style ===== */
.mg-event-card {
    background: linear-gradient(145deg, rgba(40, 40, 55, 0.95) 0%, rgba(25, 25, 35, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px 16px 16px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
}

.mg-event-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--mg-primary-rgb), 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Card Number - Positioned above card */
.mg-card-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.25);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Card Image Container */
.mg-card-image-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mg-card-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}

.mg-event-card:hover .mg-card-image {
    transform: scale(1.1);
}

/* Card Info */
.mg-card-info {
    position: relative;
    z-index: 1;
}

.mg-card-name {
    font-weight: 700;
    font-size: 15px;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Badges */
.mg-card-badges {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 20px;
}

.mg-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.mg-badge-shiny {
    background: linear-gradient(135deg, #ff9966, #ff5e62);
    color: #fff;
    animation: shine 3s infinite alternate;
}

.mg-badge-ribbon {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: #fff;
}

/* Card Number */
.mg-card-number {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--mg-primary);
    font-size: 10px;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 8px;
    font-family: "Orbitron", sans-serif;
    z-index: 5;
}

/* ===== Loading State ===== */
.mg-loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--mg-text-secondary);
}

.mg-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(var(--mg-primary-rgb), 0.1);
    border-top-color: var(--mg-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 15px;
}

.mg-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--mg-text-secondary);
}

.mg-empty-state i {
    font-size: 48px;
    color: var(--mg-primary);
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Scroll Loader */
.mg-scroll-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px;
    color: var(--mg-text-secondary);
}

/* ===== Event Modal ===== */
.mg-event-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.mg-event-modal.active {
    display: block;
}

.mg-event-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.mg-event-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(180deg, rgba(28, 28, 42, 0.98) 0%, rgba(18, 18, 28, 0.99) 100%);
    border: 1px solid var(--mg-border);
    border-radius: 20px;
    max-width: 560px;
    width: 94%;
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: auto;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.6), 0 0 30px rgba(var(--mg-primary-rgb), 0.15);
}

.mg-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
}

.mg-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.mg-modal-body {
    padding: 20px;
}

/* Pokemon Header Card in Modal */
.mg-pokemon-header-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(var(--mg-primary-rgb), 0.15), rgba(var(--mg-secondary-rgb), 0.1));
    border: 1px solid rgba(var(--mg-primary-rgb), 0.3);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.mg-pokemon-header-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(var(--mg-primary-rgb), 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.mg-modal-pokemon-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
    position: relative;
    z-index: 1;
}

.mg-modal-pokemon-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.mg-modal-pokemon-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
    font-family: "Exo 2", sans-serif;
}

.mg-modal-event-name {
    font-size: 12px;
    color: var(--mg-primary);
    font-weight: 500;
    margin-bottom: 8px;
}

.mg-modal-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Collapsible Details Panel */
.mg-details-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 16px;
}

.mg-details-panel summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    list-style: none;
    transition: all 0.2s;
}

.mg-details-panel summary::-webkit-details-marker {
    display: none;
}

.mg-details-panel summary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

.mg-details-panel summary i:first-child {
    color: var(--mg-primary);
}

.mg-details-panel .details-chevron {
    margin-left: auto;
    transition: transform 0.3s;
    font-size: 12px;
}

.mg-details-panel[open] .details-chevron {
    transform: rotate(180deg);
}

.mg-details-content {
    padding: 0 16px 16px;
}

/* Info Grid */
.mg-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.mg-info-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid var(--mg-primary);
}

.mg-info-label {
    font-size: 10px;
    color: var(--mg-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.mg-info-value {
    font-size: 13px;
    color: var(--mg-text-primary);
    font-weight: 500;
}

/* Moves List */
.mg-moves-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mg-moves-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    border-left: 3px solid var(--mg-primary);
    color: var(--mg-text-primary);
}

/* IV Stats */
.mg-iv-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mg-iv-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 8px;
}

.mg-iv-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--mg-primary);
}

.mg-iv-name {
    font-size: 10px;
    color: var(--mg-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ribbons */
.mg-ribbons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mg-ribbon-tag {
    background: rgba(var(--mg-primary-rgb), 0.15);
    color: var(--mg-primary);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

/* ===== Customization Section ===== */
.mg-customization-section {
    margin-bottom: 16px;
}

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

.mg-form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.mg-form-group label i {
    color: var(--mg-primary);
}

/* Language Chips */
.mg-language-chips {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
}

.mg-language-chip {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    position: relative;
}

.mg-language-chip:hover:not(.disabled) {
    background: rgba(var(--mg-primary-rgb), 0.15);
    border-color: rgba(var(--mg-primary-rgb), 0.4);
}

.mg-language-chip.selected {
    background: linear-gradient(135deg, var(--mg-primary), var(--mg-secondary));
    border-color: transparent;
    color: var(--mg-bg-dark);
    font-weight: 600;
}

.mg-language-chip.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mg-language-chip .premium-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ffcc00, #ff7e00);
    color: #000;
    font-size: 8px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 8px;
}

/* Date Options */
.mg-date-options {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.mg-date-option {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.mg-date-option:hover {
    background: rgba(var(--mg-primary-rgb), 0.15);
    border-color: rgba(var(--mg-primary-rgb), 0.4);
}

.mg-date-option.selected {
    background: rgba(var(--mg-primary-rgb), 0.2);
    border-color: var(--mg-primary);
    color: var(--mg-primary);
}

.mg-date-input-container {
    display: none;
}

.mg-date-input-container.active {
    display: block;
    animation: fadeIn 0.3s;
}

.mg-date-input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: "Exo 2", sans-serif;
}

.mg-date-input:focus {
    outline: none;
    border-color: var(--mg-primary);
    background: rgba(var(--mg-primary-rgb), 0.1);
}

.mg-date-hint {
    display: block;
    font-size: 11px;
    color: var(--mg-text-secondary);
    margin-top: 8px;
}

/* ===== Modal Actions ===== */
.mg-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.mg-btn-trade {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--mg-primary), var(--mg-secondary));
    border: none;
    border-radius: 12px;
    color: var(--mg-bg-dark);
    font-size: 16px;
    font-weight: 700;
    font-family: "Orbitron", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mg-btn-trade:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--mg-primary-rgb), 0.4);
}

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

/* ===== Trading Section (in modal) ===== */
.mg-trading-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 16px;
}

/* Trade Code Display */
.mg-trade-code-display {
    background: rgba(15, 20, 35, 0.8);
    border: 2px solid var(--mg-border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mg-trade-code-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffcc00' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 0;
    opacity: 0.5;
}

.mg-trade-code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.mg-trade-code-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--mg-text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mg-trade-code-title i {
    color: var(--mg-primary);
}

.mg-trade-code-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 6px;
    background: linear-gradient(to right, var(--mg-primary), var(--mg-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(var(--mg-primary-rgb), 0.5);
}

/* Status Timeline */
.mg-status-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 0 10px;
}

.mg-status-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.mg-status-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: rgba(var(--mg-primary-rgb), 0.2);
}

.mg-status-step.completed:not(:last-child)::after {
    background: rgba(var(--mg-success-rgb), 0.5);
}

.mg-status-step.active:not(:last-child)::after {
    background: linear-gradient(to right, rgba(var(--mg-primary-rgb), 0.6), rgba(var(--mg-primary-rgb), 0.1));
}

.mg-status-icon {
    width: 26px;
    height: 26px;
    background: rgba(var(--mg-primary-rgb), 0.1);
    border: 2px solid rgba(var(--mg-primary-rgb), 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    position: relative;
    z-index: 2;
}

.mg-status-step.active .mg-status-icon {
    background: rgba(var(--mg-primary-rgb), 0.2);
    border-color: var(--mg-primary);
}

.mg-status-step.active .mg-status-icon i {
    color: var(--mg-primary);
    animation: pulse var(--animation-fast) infinite alternate;
}

.mg-status-step.completed .mg-status-icon {
    background: rgba(var(--mg-success-rgb), 0.2);
    border-color: var(--mg-success);
}

.mg-status-step.completed .mg-status-icon i {
    color: var(--mg-success);
}

.mg-status-icon i {
    font-size: 11px;
    color: rgba(var(--mg-primary-rgb), 0.5);
}

.mg-status-label {
    font-size: 10px;
    font-weight: 500;
    color: var(--mg-text-secondary);
}

.mg-status-step.active .mg-status-label {
    color: var(--mg-primary);
}

.mg-status-step.completed .mg-status-label {
    color: var(--mg-success);
}

/* Notification Feed */
.mg-notification-feed {
    background: rgba(15, 20, 35, 0.8);
    border: 1px solid var(--mg-border);
    border-radius: 12px;
    padding: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.mg-notification-item {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
    animation: fadeIn 0.3s;
}

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

.mg-notification-time {
    color: var(--mg-text-secondary);
    font-size: 11px;
    white-space: nowrap;
}

.mg-notification-text {
    flex: 1;
    color: var(--mg-text-primary);
    font-size: 13px;
}

.mg-notification-item.error {
    background: rgba(var(--mg-danger-rgb), 0.1);
    border-left: 3px solid var(--mg-danger);
}

.mg-notification-item.important {
    background: rgba(var(--mg-primary-rgb), 0.1);
    border-left: 3px solid var(--mg-primary);
}

/* Back to Grid Button */
.mg-btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.mg-btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* ===== Login Required ===== */
.mg-login-required {
    text-align: center;
    padding: 40px 20px;
    background: rgba(var(--mg-primary-rgb), 0.05);
    border: 1px solid var(--mg-border);
    border-radius: 16px;
    margin-bottom: 24px;
}

.mg-login-icon {
    font-size: 48px;
    color: var(--mg-primary);
    margin-bottom: 15px;
    animation: pulse var(--animation-normal) infinite alternate;
}

.mg-login-title {
    font-family: "Orbitron", sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--mg-text-primary);
    margin-bottom: 15px;
}

.mg-login-message {
    color: var(--mg-text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.mg-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--mg-primary), var(--mg-secondary));
    border: none;
    border-radius: 50px;
    color: var(--mg-bg-dark);
    font-size: 16px;
    font-weight: 600;
    font-family: "Orbitron", sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mg-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--mg-primary-rgb), 0.4);
    color: var(--mg-bg-dark);
    text-decoration: none;
}

/* ===== Animations ===== */
@keyframes pulse {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes scanline {
    0% { transform: translateY(0); opacity: 0.5; }
    50% { opacity: 0.1; }
    100% { transform: translateY(100vh); opacity: 0.5; }
}

@keyframes shine {
    0% { box-shadow: 0 0 5px rgba(255, 94, 98, 0.3); }
    50% { box-shadow: 0 0 10px rgba(255, 94, 98, 0.5); }
    100% { box-shadow: 0 0 5px rgba(255, 94, 98, 0.3); }
}

/* Audio animation */
@keyframes pulse-audio {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.audio-playing {
    animation: pulse-audio 1s ease infinite;
}

/* ===== Custom Scrollbar ===== */
.mg-pokemon-grid::-webkit-scrollbar,
.mg-notification-feed::-webkit-scrollbar,
.mg-event-modal-content::-webkit-scrollbar {
    width: 8px;
}

.mg-pokemon-grid::-webkit-scrollbar-track,
.mg-notification-feed::-webkit-scrollbar-track,
.mg-event-modal-content::-webkit-scrollbar-track {
    background: rgba(20, 18, 15, 0.5);
    border-radius: 8px;
}

.mg-pokemon-grid::-webkit-scrollbar-thumb,
.mg-notification-feed::-webkit-scrollbar-thumb,
.mg-event-modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--mg-primary), var(--mg-secondary));
    border-radius: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .mg-title h1 {
        font-size: 28px;
    }

    .mg-subtitle {
        font-size: 14px;
    }

    .header-title-section {
        padding: 20px 15px;
    }

    .mg-how-it-works {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px 12px;
    }

    .mg-how-it-works .step {
        font-size: 11px;
    }

    .mg-game-chips {
        gap: 8px;
    }

    .mg-game-chip {
        padding: 8px 14px;
        font-size: 12px;
    }

    .mg-pokemon-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .mg-event-card {
        padding: 15px 10px 12px;
    }

    .mg-event-card-image {
        width: 80px;
        height: 80px;
    }

    .mg-event-card-name {
        font-size: 13px;
    }

    .audio-control {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
    }

    .audio-control i {
        font-size: 16px;
    }

    .mg-trade-code-value {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .mg-info-grid {
        grid-template-columns: 1fr;
    }

    .mg-moves-list {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .mg-pokemon-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .mg-date-options {
        flex-direction: column;
    }

    .mg-status-label {
        font-size: 9px;
    }
}

/* Desktop filter drawer (hidden by default on mobile, inline on desktop) */
@media (min-width: 768px) {
    .mg-filter-toggle-btn {
        display: none;
    }
}

/* ===== Additional Modal Styles ===== */

/* Modal Header */
.mg-modal-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(var(--mg-primary-rgb), 0.15), rgba(var(--mg-secondary-rgb), 0.1));
    border-bottom: 1px solid rgba(var(--mg-primary-rgb), 0.2);
    position: relative;
}

.mg-modal-pokemon-image {
    position: relative;
    flex-shrink: 0;
}

.mg-modal-pokemon-image img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

.mg-shiny-badge {
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mg-shiny-badge i {
    font-size: 9px;
}

.mg-modal-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--mg-text-secondary);
}

.mg-modal-quick-stats span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mg-modal-quick-stats i {
    color: var(--mg-primary);
    font-size: 11px;
}

/* Details Toggle */
.mg-modal-details {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.mg-details-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.mg-details-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

.mg-details-toggle i {
    transition: transform 0.3s;
    font-size: 12px;
}

.mg-details-toggle.expanded i {
    transform: rotate(180deg);
}

.mg-details-content {
    display: none;
    padding: 0 16px 16px;
}

.mg-details-content.expanded {
    display: block;
    animation: fadeIn 0.3s;
}

/* Details Grid */
.mg-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 500px) {
    .mg-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mg-detail-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 12px;
    overflow: hidden;
}

.mg-detail-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--mg-text-secondary);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mg-detail-section h4 i {
    color: var(--mg-primary);
    font-size: 11px;
}

.mg-detail-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mg-detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    gap: 8px;
}

.mg-detail-item span:first-child {
    color: var(--mg-text-secondary);
    flex-shrink: 0;
}

.mg-detail-item span:last-child {
    color: var(--mg-text-primary);
    font-weight: 500;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Moves List */
.mg-moves-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mg-moves-list li {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    border-left: 3px solid var(--mg-primary);
    color: var(--mg-text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* IVs Grid */
.mg-ivs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.mg-iv-stat {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mg-iv-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--mg-primary);
}

.mg-iv-name {
    font-size: 9px;
    color: var(--mg-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mg-iv-info {
    text-align: center;
    font-size: 12px;
    color: var(--mg-text-secondary);
    padding: 8px;
    grid-column: 1 / -1;
}

/* Ribbons List */
.mg-ribbons-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mg-ribbon-tag {
    background: rgba(var(--mg-primary-rgb), 0.15);
    color: var(--mg-primary);
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
}

.mg-no-ribbons {
    color: var(--mg-text-secondary);
    font-size: 12px;
    font-style: italic;
}

/* Distribution Info */
.mg-distribution-info {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: var(--mg-text-secondary);
}

.mg-distribution-info i {
    color: var(--mg-primary);
    margin-right: 6px;
}

/* Customization Section */
.mg-modal-customization {
    padding: 0 20px;
}

.mg-customization-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 12px 0;
}

.mg-customization-section h4 i {
    color: var(--mg-primary);
}

.mg-premium-badge {
    background: linear-gradient(135deg, var(--mg-primary), var(--mg-secondary));
    color: #000;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Language Chip Additions */
.mg-language-chip.active {
    background: linear-gradient(135deg, var(--mg-primary), var(--mg-secondary));
    border-color: transparent;
    color: var(--mg-bg-dark);
    font-weight: 600;
}

.mg-lang-flag {
    font-size: 14px;
    line-height: 1;
}

.mg-lang-name {
    font-size: 11px;
}

/* Date Option Additions */
.mg-date-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.mg-date-option i {
    font-size: 16px;
}

.mg-date-option span {
    font-size: 11px;
}

.mg-date-option.active {
    background: rgba(var(--mg-primary-rgb), 0.2);
    border-color: var(--mg-primary);
    color: var(--mg-primary);
}

.mg-date-input-container input[type="date"] {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-family: "Exo 2", sans-serif;
}

.mg-date-input-container input[type="date"]:focus {
    outline: none;
    border-color: var(--mg-primary);
    background: rgba(var(--mg-primary-rgb), 0.1);
}

.mg-date-range-note {
    font-size: 11px;
    color: var(--mg-text-secondary);
    margin-top: 8px;
    text-align: center;
}

/* Trade Section */
.mg-modal-trade-section {
    padding: 16px 20px 20px;
}

.mg-trade-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--mg-primary), var(--mg-secondary));
    border: none;
    border-radius: 12px;
    color: var(--mg-bg-dark);
    font-size: 16px;
    font-weight: 700;
    font-family: "Orbitron", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mg-trade-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--mg-primary-rgb), 0.4);
}

.mg-trade-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Trading Section */
.mg-modal-trading {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mg-trading-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
}

.mg-trade-code-display {
    flex: 1;
    text-align: center;
}

.mg-trade-code-label {
    display: block;
    font-size: 11px;
    color: var(--mg-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.mg-trade-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 4px;
    background: linear-gradient(to right, var(--mg-primary), var(--mg-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Status Badge */
.mg-status-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.mg-status-badge.status-queued {
    background: rgba(var(--mg-info-rgb), 0.15);
    color: var(--mg-info);
}

.mg-status-badge.status-processing {
    background: rgba(var(--mg-warning-rgb), 0.15);
    color: var(--mg-warning);
}

.mg-status-badge.status-trading {
    background: rgba(var(--mg-primary-rgb), 0.15);
    color: var(--mg-primary);
}

.mg-status-badge.status-completed {
    background: rgba(var(--mg-success-rgb), 0.15);
    color: var(--mg-success);
}

.mg-status-badge.status-error {
    background: rgba(var(--mg-danger-rgb), 0.15);
    color: var(--mg-danger);
}

/* Trade Console */
.mg-trade-console {
    background: rgba(15, 20, 35, 0.8);
    border: 1px solid var(--mg-border);
    border-radius: 12px;
    padding: 12px;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.mg-trade-console .trade-message {
    padding: 8px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
    font-size: 13px;
}

.mg-trade-console .trade-message:last-child {
    border-bottom: none;
}

.mg-trade-console .trade-message .message-time {
    color: var(--mg-text-secondary);
    font-size: 11px;
    white-space: nowrap;
}

.mg-trade-console .trade-message .message-text {
    color: var(--mg-text-primary);
    flex: 1;
}

.mg-trade-console .trade-message.error {
    background: rgba(var(--mg-danger-rgb), 0.1);
    border-left: 3px solid var(--mg-danger);
    border-radius: 4px;
}

.mg-trade-console .trade-message.important {
    background: rgba(var(--mg-primary-rgb), 0.1);
    border-left: 3px solid var(--mg-primary);
    border-radius: 4px;
}

/* Trade Actions */
.mg-trade-actions {
    display: flex;
    gap: 12px;
}

.mg-cancel-button,
.mg-new-trade-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.mg-cancel-button {
    background: rgba(var(--mg-danger-rgb), 0.15);
    border: 1px solid rgba(var(--mg-danger-rgb), 0.3);
    color: var(--mg-danger);
}

.mg-cancel-button:hover {
    background: rgba(var(--mg-danger-rgb), 0.25);
}

.mg-new-trade-button {
    background: rgba(var(--mg-primary-rgb), 0.15);
    border: 1px solid rgba(var(--mg-primary-rgb), 0.3);
    color: var(--mg-primary);
}

.mg-new-trade-button:hover {
    background: rgba(var(--mg-primary-rgb), 0.25);
}

/* Responsive for modal additions */
@media (max-width: 768px) {
    .mg-modal-header {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }

    .mg-modal-quick-stats {
        justify-content: center;
    }

    .mg-details-grid {
        grid-template-columns: 1fr;
    }

    .mg-trading-status {
        flex-direction: column;
    }

    .mg-trade-code {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .mg-ivs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   LIGHT THEME OVERRIDES
   ============================================ */

[data-theme="light"] {
    --mg-bg-dark: #f5f7fa;
    --mg-bg-card: rgba(255, 255, 255, 0.95);
    --mg-bg-card-dark: rgba(250, 245, 230, 0.95);
    --mg-border: rgba(204, 163, 0, 0.3);
    --mg-text-primary: #1a1a2e;
    --mg-text-secondary: #5a4a2a;
}

[data-theme="light"] .mysterygift-container {
    color: #1a1a2e;
}

/* Header Light Theme */
[data-theme="light"] .mg-header {
    background: linear-gradient(135deg, #ffffff, rgba(255, 245, 220, 0.95));
    border-color: rgba(204, 163, 0, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mg-title h1 {
    text-shadow: 0 0 10px rgba(204, 163, 0, 0.3);
}

[data-theme="light"] .mg-subtitle {
    color: #5a4a2a;
}

[data-theme="light"] .audio-control {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(204, 163, 0, 0.3);
}

[data-theme="light"] .audio-control:hover {
    background: rgba(255, 204, 0, 0.15);
}

/* How It Works Light Theme */
[data-theme="light"] .mg-how-it-works {
    background: rgba(255, 204, 0, 0.08);
    border-color: rgba(255, 204, 0, 0.2);
}

[data-theme="light"] .mg-how-it-works .step {
    color: #1a1a2e;
}

[data-theme="light"] .mg-how-it-works .step-arrow {
    color: rgba(0, 0, 0, 0.3);
}

/* Search Box Light Theme */
[data-theme="light"] .mg-search-box {
    background: #ffffff;
    border-color: rgba(204, 163, 0, 0.3);
}

[data-theme="light"] .mg-search-box input {
    color: #1a1a2e;
}

[data-theme="light"] .mg-search-box input::placeholder {
    color: #8a7a5a;
}

/* Filter Button Light Theme */
[data-theme="light"] .mg-filter-toggle-btn {
    background: #ffffff;
    border-color: rgba(204, 163, 0, 0.3);
    color: #1a1a2e;
}

[data-theme="light"] .mg-filter-toggle-btn:hover {
    background: rgba(255, 204, 0, 0.1);
}

/* Game Chips Light Theme */
[data-theme="light"] .mg-game-chip {
    background: #ffffff;
    border-color: rgba(204, 163, 0, 0.2);
    color: #5a4a2a;
}

[data-theme="light"] .mg-game-chip:hover {
    background: rgba(255, 204, 0, 0.1);
    border-color: rgba(204, 163, 0, 0.4);
    color: #1a1a2e;
}

[data-theme="light"] .mg-game-chip.active {
    color: #1a1a2e;
}

/* Event Card Light Theme */
[data-theme="light"] .mg-event-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .mg-event-card:hover {
    border-color: rgba(204, 163, 0, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .mg-card-name {
    color: #1a1a2e;
    text-shadow: none;
}

[data-theme="light"] .mg-card-number {
    background: rgba(0, 0, 0, 0.05);
    color: #cc9900;
}

/* Loading States Light Theme */
[data-theme="light"] .mg-loading-state {
    color: #5a4a2a;
}

[data-theme="light"] .mg-loading-spinner {
    border-color: rgba(204, 163, 0, 0.1);
    border-top-color: #cc9900;
}

[data-theme="light"] .mg-empty-state {
    color: #5a4a2a;
}

/* Modal Light Theme */
[data-theme="light"] .mg-event-modal-overlay {
    background: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .mg-event-modal-content {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-color: rgba(204, 163, 0, 0.3);
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .mg-modal-close {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .mg-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

/* Pokemon Header Card Light Theme */
[data-theme="light"] .mg-pokemon-header-card {
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.08), rgba(255, 150, 0, 0.05));
    border-color: rgba(204, 163, 0, 0.2);
}

[data-theme="light"] .mg-modal-pokemon-name {
    color: #1a1a2e;
}

/* Details Panel Light Theme */
[data-theme="light"] .mg-details-panel {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .mg-details-panel summary {
    color: #4a5568;
}

[data-theme="light"] .mg-details-panel summary:hover {
    color: #1a1a2e;
    background: rgba(0, 0, 0, 0.02);
}

/* Info Grid Light Theme */
[data-theme="light"] .mg-info-item {
    background: rgba(0, 0, 0, 0.02);
    border-left-color: #cc9900;
}

[data-theme="light"] .mg-info-label {
    color: #5a4a2a;
}

[data-theme="light"] .mg-info-value {
    color: #1a1a2e;
}

/* Moves List Light Theme */
[data-theme="light"] .mg-moves-list li {
    background: rgba(0, 0, 0, 0.03);
    border-left-color: #cc9900;
    color: #1a1a2e;
}

/* IV Stats Light Theme */
[data-theme="light"] .mg-iv-stat {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .mg-iv-name {
    color: #5a4a2a;
}

/* Ribbons Light Theme */
[data-theme="light"] .mg-ribbon-tag {
    background: rgba(204, 163, 0, 0.1);
    color: #997700;
}

/* Language Chips Light Theme */
[data-theme="light"] .mg-language-chip {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #4a5568;
}

[data-theme="light"] .mg-language-chip:hover:not(.disabled) {
    background: rgba(255, 204, 0, 0.1);
    border-color: rgba(204, 163, 0, 0.4);
}

[data-theme="light"] .mg-language-chip.selected,
[data-theme="light"] .mg-language-chip.active {
    color: #1a1a2e;
}

/* Date Options Light Theme */
[data-theme="light"] .mg-date-option {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #4a5568;
}

[data-theme="light"] .mg-date-option:hover {
    background: rgba(255, 204, 0, 0.1);
    border-color: rgba(204, 163, 0, 0.4);
}

[data-theme="light"] .mg-date-option.selected,
[data-theme="light"] .mg-date-option.active {
    background: rgba(255, 204, 0, 0.15);
}

[data-theme="light"] .mg-date-input,
[data-theme="light"] .mg-date-input-container input[type="date"] {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
    color: #1a1a2e;
}

[data-theme="light"] .mg-date-input:focus,
[data-theme="light"] .mg-date-input-container input[type="date"]:focus {
    border-color: #cc9900;
    background: rgba(255, 204, 0, 0.05);
}

[data-theme="light"] .mg-date-hint,
[data-theme="light"] .mg-date-range-note {
    color: #5a4a2a;
}

/* Trade Button Light Theme */
[data-theme="light"] .mg-btn-trade,
[data-theme="light"] .mg-trade-button {
    color: #1a1a2e;
}

/* Trading Section Light Theme */
[data-theme="light"] .mg-trading-section,
[data-theme="light"] .mg-modal-trading {
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .mg-trade-code-display {
    background: rgba(255, 250, 235, 0.9);
    border-color: rgba(204, 163, 0, 0.3);
}

[data-theme="light"] .mg-trade-code-title {
    color: #1a1a2e;
}

[data-theme="light"] .mg-trade-code-label {
    color: #5a4a2a;
}

/* Status Timeline Light Theme */
[data-theme="light"] .mg-status-icon {
    background: rgba(204, 163, 0, 0.1);
    border-color: rgba(204, 163, 0, 0.3);
}

[data-theme="light"] .mg-status-label {
    color: #5a4a2a;
}

/* Notification Feed Light Theme */
[data-theme="light"] .mg-notification-feed,
[data-theme="light"] .mg-trade-console {
    background: rgba(255, 250, 235, 0.8);
    border-color: rgba(204, 163, 0, 0.2);
}

[data-theme="light"] .mg-notification-item,
[data-theme="light"] .mg-trade-console .trade-message {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .mg-notification-time,
[data-theme="light"] .mg-trade-console .trade-message .message-time {
    color: #5a4a2a;
}

[data-theme="light"] .mg-notification-text,
[data-theme="light"] .mg-trade-console .trade-message .message-text {
    color: #1a1a2e;
}

/* Back Button Light Theme */
[data-theme="light"] .mg-btn-back {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #4a5568;
}

[data-theme="light"] .mg-btn-back:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1a1a2e;
}

/* Login Required Light Theme */
[data-theme="light"] .mg-login-required {
    background: rgba(255, 204, 0, 0.05);
    border-color: rgba(204, 163, 0, 0.2);
}

[data-theme="light"] .mg-login-title {
    color: #1a1a2e;
}

[data-theme="light"] .mg-login-message {
    color: #5a4a2a;
}

[data-theme="light"] .mg-login-btn {
    color: #1a1a2e;
}

/* Scrollbar Light Theme */
[data-theme="light"] .mg-pokemon-grid::-webkit-scrollbar-track,
[data-theme="light"] .mg-notification-feed::-webkit-scrollbar-track,
[data-theme="light"] .mg-event-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

/* Form Group Labels Light Theme */
[data-theme="light"] .mg-form-group label {
    color: #4a5568;
}

[data-theme="light"] .mg-customization-section h4 {
    color: #4a5568;
}

/* Detail Sections Light Theme */
[data-theme="light"] .mg-detail-section {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .mg-detail-section h4 {
    color: #5a4a2a;
}

[data-theme="light"] .mg-detail-item span:first-child {
    color: #5a4a2a;
}

[data-theme="light"] .mg-detail-item span:last-child {
    color: #1a1a2e;
}

/* Details Toggle Light Theme */
[data-theme="light"] .mg-modal-details {
    border-color: rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.01);
}

[data-theme="light"] .mg-details-toggle {
    color: #4a5568;
}

[data-theme="light"] .mg-details-toggle:hover {
    color: #1a1a2e;
    background: rgba(0, 0, 0, 0.02);
}

/* Cancel/New Trade Buttons Light Theme */
[data-theme="light"] .mg-cancel-button {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
}

[data-theme="light"] .mg-cancel-button:hover {
    background: rgba(220, 53, 69, 0.15);
}

[data-theme="light"] .mg-new-trade-button {
    background: rgba(204, 163, 0, 0.1);
    border-color: rgba(204, 163, 0, 0.3);
}
