/* ========================================================
   MODALS, MASTER ANALYTICS & MONTHLY DRILLDOWN
   ======================================================== */
.lumina-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(14, 10, 9, 0.88);
    backdrop-filter: blur(16px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.full-graph-modal-dialog {
    background: rgba(22, 15, 13, 0.98);
    backdrop-filter: blur(24px);
    border: 1.5px solid rgba(206, 160, 90, 0.45);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.9), 0 0 40px rgba(206, 160, 90, 0.2);
    border-radius: 22px;
    width: 100%;
    max-width: 1260px;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalScaleUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.full-graph-header {
    flex: 0 0 auto;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(28, 19, 17, 0.85);
}

.full-graph-stats-bar {
    flex: 0 0 auto;
    padding: 10px 20px;
    background: rgba(24, 16, 14, 0.65);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
}

.graph-stat-pill {
    font-size: 0.80rem;
    color: var(--text-dim);
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    white-space: nowrap;
}
.graph-stat-pill strong { color: #ffffff; }

.full-graph-canvas-wrap {
    flex: 1 1 auto;
    min-height: 320px;
    position: relative;
    padding: 14px 18px;
    background: radial-gradient(circle at 50% 30%, rgba(206, 160, 90, 0.05) 0%, transparent 70%);
}

.full-graph-canvas-wrap canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.full-graph-footer {
    flex: 0 0 auto;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    background: rgba(24, 16, 14, 0.85);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

@keyframes modalScaleUp {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.master-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 16px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.master-chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
}
.master-chart-card:hover {
    transform: translateY(-2px);
    border-color: rgba(206, 160, 90, 0.35);
    box-shadow: 0 12px 30px -4px rgba(0, 0, 0, 0.6), 0 0 15px rgba(206, 160, 90, 0.12);
}
.master-chart-card.full-width {
    grid-column: 1 / -1;
}

.category-emoji-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 1.10rem;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
}
.category-emoji-btn:hover {
    background: rgba(148, 54, 54, 0.2);
    border-color: var(--border-fire);
    transform: scale(1.15);
}

.btn-discord-copy {
    background: linear-gradient(135deg, #B26B2F, #943636);
    color: #ffffff;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    font-size: 0.76rem;
    transition: all 0.15s ease;
}
.btn-discord-copy:hover {
    background: linear-gradient(135deg, #CEA05A, #B26B2F);
    box-shadow: 0 0 12px rgba(206, 160, 90, 0.45);
}

.discord-report-textarea {
    width: 100%;
    height: 125px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.76rem;
    line-height: 1.45;
    padding: 8px 10px;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}
.discord-report-textarea:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 8px var(--cyan-glow);
}
