@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600;1,700&display=swap');
/* ==========================================================================
   MU ONLINE 0.97k - P2P MARKET & DAILY QUESTS STYLES
   ========================================================================== */

/* --- Market Section --- */
.market-section {
    background: linear-gradient(180deg, rgba(24, 28, 42, 0.95), rgba(15, 17, 28, 0.98));
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.market-header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.btn-market-action {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-market-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-market-action.btn-secondary {
    background: linear-gradient(135deg, #475569, #334155);
}

.btn-market-action.btn-secondary:hover {
    box-shadow: 0 4px 15px rgba(71, 85, 105, 0.4);
}

/* Market Controls & Filters */
.market-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
    margin: 1.25rem 0;
    padding: 0.85rem;
    background: rgba(10, 12, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.market-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.market-filter-select, .market-search-input {
    background: #0f172a;
    color: #e2e8f0;
    border: 1px solid #334155;
    padding: 0.5rem 0.85rem;
    border-radius: 6px;
    font-size: 0.85rem;
    outline: none;
}

.market-filter-select:focus, .market-search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

/* Market Items Grid */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.market-item-card {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.market-item-card:hover {
    transform: translateY(-4px);
    border-color: #f59e0b;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 158, 11, 0.2);
}

.market-item-card.is-exc {
    border-color: rgba(34, 197, 94, 0.4);
}

.market-item-card.is-exc:hover {
    border-color: #22c55e;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(34, 197, 94, 0.3);
}

.market-card-top {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.market-icon-box {
    width: 68px;
    height: 68px;
    background: radial-gradient(circle, #1e293b, #090d16);
    border: 1px solid #475569;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.market-icon-box img {
    max-width: 58px;
    max-height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
}

.market-item-info {
    flex: 1;
    min-width: 0;
}

.market-item-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.market-item-card.is-exc .market-item-name {
    color: #4ade80;
    text-shadow: 0 0 8px rgba(74, 222, 128, 0.4);
}

.market-item-cat {
    font-size: 0.75rem;
    color: #94a3b8;
}

.market-options-list {
    margin: 0.85rem 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 0.6rem;
    font-size: 0.78rem;
    line-height: 1.45;
}

.market-opt-line {
    color: #93c5fd;
}

.market-opt-exc {
    color: #86efac;
    font-weight: 600;
}

.market-opt-luck {
    color: #38bdf8;
}

.market-opt-skill {
    color: #c084fc;
}

.market-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.market-price-tag {
    display: flex;
    flex-direction: column;
}

.market-price-val {
    font-size: 1.15rem;
    font-weight: 900;
}

.market-price-val.currency-coin {
    color: #facc15;
    text-shadow: 0 0 10px rgba(250, 204, 21, 0.3);
}

.market-price-val.currency-zen {
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.market-seller-label {
    font-size: 0.72rem;
    color: #64748b;
}

.btn-market-buy {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-market-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.btn-market-cancel {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-market-cancel:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

/* Warehouse Sell Modal Items Grid */
.wh-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 0.75rem;
    max-height: 380px;
    overflow-y: auto;
    padding: 0.5rem;
    background: rgba(10, 12, 20, 0.7);
    border: 1px solid #334155;
    border-radius: 8px;
    margin: 1rem 0;
}

.wh-picker-item {
    background: #1e293b;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 0.6rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wh-picker-item:hover {
    background: #334155;
    border-color: #60a5fa;
}

.wh-picker-item.selected {
    background: #1e3a8a;
    border-color: #facc15;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.wh-picker-item img {
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
    margin-bottom: 0.35rem;
}

.wh-picker-name {
    font-size: 0.75rem;
    font-weight: 700;
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Daily Quests Section --- */
.quests-section {
    background: linear-gradient(180deg, rgba(20, 26, 46, 0.95), rgba(12, 16, 32, 0.98));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.quests-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.quest-timer-badge {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #475569;
    border-radius: 8px;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.quest-timer-badge strong {
    color: #facc15;
    font-family: monospace;
    font-size: 0.95rem;
}

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

.quest-card {
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s ease;
    position: relative;
}

.quest-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.quest-card.is-completed {
    border-color: #22c55e;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}

.quest-card.is-claimed {
    opacity: 0.7;
    border-color: #475569;
}

.quest-top {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.quest-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.quest-title-wrap {
    flex: 1;
}

.quest-name {
    font-size: 1rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 0.25rem;
}

.quest-desc {
    font-size: 0.8rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* Quest Progress Bar */
.quest-progress-wrap {
    margin: 1rem 0;
}

.quest-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: #cbd5e1;
}

.quest-progress-bar {
    width: 100%;
    height: 10px;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 5px;
    overflow: hidden;
}

.quest-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 5px;
    transition: width 0.3s ease;
}

.quest-card.is-completed .quest-progress-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
}

/* Quest Rewards & Claim Button */
.quest-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.quest-reward-info {
    font-size: 0.82rem;
    color: #fbbf24;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.btn-quest-claim {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    animation: pulseGlow 1.8s infinite;
}

.btn-quest-claim:hover {
    transform: scale(1.06);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 18px rgba(16, 185, 129, 0.8); }
    100% { box-shadow: 0 0 5px rgba(16, 185, 129, 0.4); }
}

.btn-quest-status {
    background: #334155;
    color: #94a3b8;
    border: none;
    border-radius: 6px;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: not-allowed;
}

/* ==========================================================================
   ARENA 3V3 STYLES
   ========================================================================== */
.arena3v3-section {
    background: linear-gradient(180deg, rgba(28, 20, 36, 0.95), rgba(15, 14, 25, 0.98));
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.arena3v3-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

.arena3v3-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin: 1.25rem 0;
}

.arena3v3-reward-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, border-color 0.2s;
}

.arena3v3-reward-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.4);
}

.arena3v3-card-gold {
    border-color: rgba(245, 158, 11, 0.5);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(0, 0, 0, 0.4));
}

.arena3v3-card-silver {
    border-color: rgba(148, 163, 184, 0.4);
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.08), rgba(0, 0, 0, 0.4));
}

.arena3v3-card-bronze {
    border-color: rgba(217, 119, 6, 0.35);
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.08), rgba(0, 0, 0, 0.4));
}

.arena3v3-icon-badge {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.arena3v3-info-banner {
    background: rgba(239, 68, 68, 0.08);
    border-left: 4px solid #ef4444;
    border-radius: 6px;
    padding: 0.85rem 1.2rem;
    font-size: 0.88rem;
    color: #e2e8f0;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.arena3v3-my-stats {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.arena3v3-table-wrap {
    overflow-x: auto;
}

.arena3v3-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.arena3v3-table th {
    background: rgba(0, 0, 0, 0.4);
    color: #94a3b8;
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.arena3v3-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #e2e8f0;
}

.arena3v3-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.82rem;
}
.rank-badge-1 { background: linear-gradient(135deg, #fbbf24, #d97706); color: #000; box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
.rank-badge-2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #000; }
.rank-badge-3 { background: linear-gradient(135deg, #f59e0b, #b45309); color: #fff; }
.rank-badge-default { background: rgba(255, 255, 255, 0.1); color: #94a3b8; }

.market-section,
.market-section *:not(code):not(pre),
.quests-section,
.quests-section *:not(code):not(pre),
.arena-section,
.arena-section *:not(code):not(pre),
.modal-overlay *:not(code):not(pre) {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
