/* =============================================================================
   NEW FEATURES CSS - Streaks, Heatmap, Skill Calc, Boss Log, 
   Collection Log, Smart Suggestions, Achievements
   ============================================================================= */

/* =============================================================================
   ACCOUNT TABS (Shared across all tool modals)
   ============================================================================= */

.account-tabs {
    display: flex;
    gap: 4px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.account-tabs::-webkit-scrollbar { display: none; }

.account-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary, #aaa);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.account-tab:hover {
    background: rgba(255, 152, 0, 0.08);
    border-color: rgba(255, 152, 0, 0.2);
    color: #fff;
}

.account-tab.active {
    background: rgba(255, 152, 0, 0.12);
    border-color: rgba(255, 152, 0, 0.4);
    color: #fff;
    font-weight: 600;
}

.account-tab img {
    border-radius: 50%;
    object-fit: cover;
}

/* =============================================================================
   STREAK BADGE (Header)
   ============================================================================= */

.streak-badge {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-full, 50px);
    background: rgba(255, 152, 0, 0.1);
    border: 1px solid rgba(255, 152, 0, 0.2);
    cursor: default;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary, #fff);
    transition: all 0.2s;
}

.streak-badge.streak-active {
    background: rgba(255, 69, 0, 0.15);
    border-color: rgba(255, 69, 0, 0.4);
    animation: streak-glow 2s ease-in-out infinite alternate;
}

@keyframes streak-glow {
    from { box-shadow: 0 0 4px rgba(255, 69, 0, 0.2); }
    to   { box-shadow: 0 0 12px rgba(255, 69, 0, 0.4); }
}

.streak-fire { font-size: 1rem; }
.streak-count { font-family: 'Rajdhani', sans-serif; font-size: 1rem; }

/* =============================================================================
   HEATMAP CALENDAR (Modal)
   ============================================================================= */

.heatmap-modal-content {
    max-width: 650px;
    max-height: 80vh;
}

.heatmap-modal-content .modal-body {
    overflow-x: auto;
    padding: 16px;
}

/* Shared modal header for new feature modals */
.heatmap-modal-content .modal-header,
.suggestions-modal-content .modal-header,
.skill-calc-content .modal-header,
.boss-log-content .modal-header,
.clog-content .modal-header,
.achievements-content .modal-header,
.drop-calc-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.heatmap-modal-content .modal-header h3,
.suggestions-modal-content .modal-header h3,
.skill-calc-content .modal-header h3,
.boss-log-content .modal-header h3,
.clog-content .modal-header h3,
.achievements-content .modal-header h3,
.drop-calc-content .modal-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: #fff;
    font-weight: 600;
}

.heatmap-modal-content .modal-header svg,
.suggestions-modal-content .modal-header svg,
.skill-calc-content .modal-header svg,
.boss-log-content .modal-header svg,
.clog-content .modal-header svg,
.achievements-content .modal-header svg,
.drop-calc-content .modal-header svg {
    color: var(--accent, #ff9800);
}

.heatmap-months {
    display: flex;
    gap: 0;
    padding-left: 30px;
    margin-bottom: 4px;
    font-size: 0.7rem;
    color: var(--text-secondary, #aaa);
}

.heatmap-month-label {
    min-width: 42px;
}

.heatmap-wrapper {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.heatmap-days {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: 4px;
    padding-top: 0;
}

.heatmap-day-label {
    height: 11px;
    font-size: 0.6rem;
    color: var(--text-secondary, #aaa);
    line-height: 11px;
    width: 24px;
    text-align: right;
}

.heatmap-cells {
    display: flex;
    gap: 2px;
}

.heatmap-week {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.heatmap-cell {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
}

.heatmap-cell[data-level="0"] { background: rgba(255, 255, 255, 0.06); }
.heatmap-cell[data-level="1"] { background: rgba(255, 152, 0, 0.25); }
.heatmap-cell[data-level="2"] { background: rgba(255, 152, 0, 0.45); }
.heatmap-cell[data-level="3"] { background: rgba(255, 152, 0, 0.65); }
.heatmap-cell[data-level="4"] { background: rgba(255, 152, 0, 0.9); }
.heatmap-cell.heatmap-future  { background: transparent; }

.heatmap-cell:hover:not(.heatmap-future) {
    outline: 1px solid var(--accent, #ff9800);
    transform: scale(1.3);
    z-index: 1;
}

.heatmap-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 0.7rem;
    color: var(--text-secondary, #aaa);
}

.heatmap-stats {
    display: flex;
    gap: 12px;
}

.heatmap-legend {
    display: flex;
    align-items: center;
    gap: 3px;
}

.heatmap-legend .heatmap-cell {
    cursor: default;
}

.heatmap-legend .heatmap-cell:hover {
    outline: none;
    transform: none;
}

/* =============================================================================
   SMART SUGGESTIONS MODAL ("What Should I Do Next?")
   ============================================================================= */

.suggestions-modal-content {
    max-width: 500px;
    max-height: 80vh;
}

.suggestions-modal-content .modal-body {
    padding: 0;
}

.suggest-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary, #aaa);
}

.suggest-empty span { font-size: 2rem; display: block; margin-bottom: 8px; }

.suggest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s;
}

.suggest-item:last-child { border-bottom: none; }
.suggest-item:hover { background: rgba(255, 255, 255, 0.03); }

.suggest-top {
    background: rgba(255, 152, 0, 0.06);
    border-left: 3px solid var(--accent, #ff9800);
}

.suggest-rank {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 28px;
    text-align: center;
    color: var(--text-secondary, #aaa);
}

.suggest-top .suggest-rank { color: #ffd700; font-size: 1.1rem; }

.suggest-info { flex: 1; min-width: 0; }

.suggest-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggest-desc {
    font-size: 0.72rem;
    color: var(--text-secondary, #aaa);
    margin-top: 2px;
}

.suggest-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 0.72rem;
}

.suggest-type {
    font-weight: 600;
    text-transform: capitalize;
}

.suggest-time {
    color: var(--text-secondary, #aaa);
}

/* =============================================================================
   SKILL CALCULATOR MODAL
   ============================================================================= */

.skill-calc-content {
    max-width: 600px;
    max-height: 80vh;
}

.skill-calc-body {
    overflow-y: auto;
    max-height: 65vh;
}

.calc-skill-select {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
    justify-content: center;
}

.calc-skill-btn {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 4px;
}

.calc-skill-btn:hover {
    background: rgba(255, 152, 0, 0.15);
    border-color: rgba(255, 152, 0, 0.3);
}

.calc-skill-btn.active {
    background: rgba(255, 152, 0, 0.2);
    border-color: var(--accent, #ff9800);
    box-shadow: 0 0 8px rgba(255, 152, 0, 0.3);
}

.calc-skill-btn img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.calc-inputs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.calc-field {
    flex: 1;
}

.calc-field label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary, #aaa);
    margin-bottom: 4px;
}

.calc-field input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #fff);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    box-sizing: border-box;
}

.calc-field input:focus {
    outline: none;
    border-color: var(--accent, #ff9800);
}

.calc-xp-info {
    margin-bottom: 16px;
}

.calc-xp-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.calc-xp-row:last-child { border-bottom: none; }

.calc-xp-val {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.calc-xp-needed {
    font-weight: 700;
    font-size: 0.95rem;
}

.calc-xp-val.highlight {
    color: var(--accent, #ff9800);
}

.calc-methods-header {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary, #aaa);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calc-method-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
}

.calc-method-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary, #fff);
    margin-bottom: 4px;
}

.calc-method-name .calc-wiki-link {
    color: var(--accent, #ff9800);
    text-decoration: none;
    transition: opacity 0.15s;
}

.calc-method-name .calc-wiki-link:hover {
    text-decoration: underline;
    opacity: 0.85;
}

.calc-rank {
    font-size: 0.6rem;
    letter-spacing: -1px;
    color: #f5a623;
    margin-left: 4px;
    vertical-align: middle;
}

/* Ironman toggle */
.calc-mode-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.calc-ironman-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 0.82rem;
}

.calc-ironman-toggle input {
    display: none;
}

.calc-toggle-slider {
    position: relative;
    width: 36px;
    height: 20px;
    background: var(--bg-tertiary, #333);
    border-radius: 10px;
    transition: background 0.25s;
}

.calc-toggle-slider::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #aaa;
    border-radius: 50%;
    transition: transform 0.25s, background 0.25s;
}

.calc-ironman-toggle input:checked + .calc-toggle-slider {
    background: #6e6e6e;
}

.calc-ironman-toggle input:checked + .calc-toggle-slider::after {
    transform: translateX(16px);
    background: #c0c0c0;
}

.calc-toggle-label {
    color: var(--text-secondary, #aaa);
    transition: color 0.25s;
}

.calc-ironman-toggle input:checked ~ .calc-toggle-label {
    color: #c0c0c0;
    font-weight: 600;
}

.calc-method-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--text-secondary, #aaa);
    margin-bottom: 6px;
}

.calc-method-count {
    color: var(--accent, #ff9800);
    font-weight: 600;
}

.calc-method-items {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 6px;
}

.calc-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    padding: 2px 0;
    color: var(--text-secondary, #aaa);
}

.calc-item-qty {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    color: var(--text-primary, #fff);
}

.calc-no-methods, .calc-placeholder p {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary, #aaa);
    font-size: 0.85rem;
}

/* =============================================================================
   BOSS KILL LOG MODAL
   ============================================================================= */

.boss-log-content {
    max-width: 600px;
    max-height: 80vh;
}

.boss-log-body {
    overflow-y: auto;
    max-height: 65vh;
}

.boss-log-summary {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.boss-stat {
    text-align: center;
}

.boss-stat-val {
    display: block;
    font-size: 1.4rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--accent, #ff9800);
}

.boss-stat-label {
    font-size: 0.72rem;
    color: var(--text-secondary, #aaa);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.boss-log-entry {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin-bottom: 4px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.boss-log-entry.has-data {
    border-color: rgba(255, 152, 0, 0.15);
}

.boss-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.boss-log-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.boss-log-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
}

.boss-log-name img {
    border-radius: 4px;
    object-fit: contain;
}

.boss-log-kc {
    font-size: 0.8rem;
    color: var(--text-secondary, #aaa);
}

.boss-kc-value {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary, #fff);
}

.boss-log-details {
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
}

.boss-log-controls {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
}

.boss-btn {
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #fff);
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.15s;
}

.boss-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.boss-btn-accent {
    background: rgba(255, 152, 0, 0.15);
    border-color: rgba(255, 152, 0, 0.3);
    color: var(--accent, #ff9800);
}

.boss-kc-input {
    width: 70px;
    padding: 4px 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary, #fff);
    font-size: 0.9rem;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
}

.boss-drops-list {
    margin-bottom: 8px;
}

.boss-drop-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.8rem;
}

.boss-drop-name { flex: 1; color: var(--text-primary, #fff); }
.boss-drop-date { color: var(--text-secondary, #aaa); font-size: 0.72rem; }

.boss-drop-remove {
    background: none;
    border: none;
    color: var(--text-secondary, #aaa);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 4px;
    transition: color 0.15s;
}

.boss-drop-remove:hover { color: #ff3333; }

.boss-wiki-link {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent-blue, #4fc3f7);
    text-decoration: none;
    margin-top: 4px;
}

.boss-wiki-link:hover { text-decoration: underline; }

/* =============================================================================
   ADVENTURE LOG SYNC BAR (Boss Log + Collection Log)
   ============================================================================= */

.boss-log-sync-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 16px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sync-advlog-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-secondary, #bbb);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sync-advlog-btn:hover {
    background: rgba(255, 152, 0, 0.12);
    border-color: var(--accent, #ff9800);
    color: var(--accent, #ff9800);
}

.sync-advlog-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.sync-advlog-btn.syncing svg {
    animation: syncSpin 0.8s linear infinite;
}

@keyframes syncSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sync-status {
    font-size: 0.75rem;
    transition: opacity 0.3s ease;
}

.sync-status.sync-loading { color: var(--text-secondary, #aaa); }
.sync-status.sync-success { color: #4caf50; }
.sync-status.sync-warn { color: var(--accent, #ff9800); }
.sync-status.sync-error { color: #f44336; }

/* =============================================================================
   COLLECTION LOG MODAL
   ============================================================================= */

.clog-content {
    max-width: 550px;
    max-height: 80vh;
}

.clog-body {
    overflow-y: auto;
    max-height: 65vh;
}

.clog-overall {
    margin-bottom: 16px;
}

.clog-overall-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 6px;
}

.clog-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent, #ff9800), #ffd700);
    border-radius: 4px;
    transition: width 0.3s;
}

.clog-overall-text {
    font-size: 0.8rem;
    color: var(--text-secondary, #aaa);
    text-align: center;
}

.clog-category {
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    margin-bottom: 6px;
    overflow: hidden;
}

.clog-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.15s;
}

.clog-cat-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.clog-cat-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.clog-cat-progress {
    font-size: 0.78rem;
    color: var(--accent, #ff9800);
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
}

.clog-cat-items {
    display: none;
    padding: 6px 14px 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.1);
}

.clog-category.clog-open .clog-cat-items {
    display: block;
}

.clog-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 0.82rem;
    color: var(--text-secondary, #aaa);
    cursor: pointer;
    transition: color 0.15s;
}

.clog-item:hover { color: var(--text-primary, #fff); }

.clog-item.checked {
    color: var(--accent, #ff9800);
}

.clog-item.checked span {
    text-decoration: line-through;
    text-decoration-color: rgba(255, 152, 0, 0.4);
}

.clog-item input[type="checkbox"] {
    accent-color: var(--accent, #ff9800);
    width: 14px;
    height: 14px;
}

/* =============================================================================
   ACHIEVEMENTS MODAL
   ============================================================================= */

.achievements-content {
    max-width: 550px;
    max-height: 80vh;
}

.achievements-body {
    overflow-y: auto;
    max-height: 65vh;
}

.ach-summary {
    text-align: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* =============================================================================
   DROP RATE CALCULATOR
   ============================================================================= */

/* Modal shell */
.drop-calc-content {
    width: min(96vw, 1060px);
    max-width: min(96vw, 1060px);
    height: min(92vh, 720px);
    padding: 0;
    overflow: hidden;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.drop-calc-content .modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 1.4rem;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1;
}
.drop-calc-content .modal-close:hover { color: #fff; }

/* Header */
.dc-header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
}
.dc-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

/* Two-panel layout */
.dc-panels {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* Left panel — boss picker */
.dc-panel-left {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #222;
    background: #131313;
}

.dc-search-input {
    width: 100%;
    padding: 10px 14px;
    background: #0e0e0e;
    border: none;
    border-bottom: 1px solid #222;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
    flex-shrink: 0;
}
.dc-search-input::placeholder { color: #555; }
.dc-search-input:focus { background: #111; }

.dc-boss-list {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.06) transparent;
}
.dc-boss-list::-webkit-scrollbar { width: 4px; }
.dc-boss-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.06); border-radius: 99px; }

.dc-boss-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: none;
    border: none;
    color: #bbb;
    font-size: 0.82rem;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.dc-boss-btn:hover { background: rgba(255,255,255,0.04); }
.dc-boss-btn.active {
    background: rgba(255,152,0,0.1);
    color: var(--accent, #ff9800);
}

.dc-boss-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}
.dc-boss-emoji {
    font-size: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dc-boss-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dc-boss-empty {
    padding: 20px 14px;
    color: #555;
    font-size: 0.8rem;
    text-align: center;
}

/* Right panel — config + results */
.dc-panel-right {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    padding: 20px 24px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.dc-panel-right::-webkit-scrollbar { width: 4px; }
.dc-panel-right::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 99px; }

/* Placeholder when no boss selected */
.dc-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 10px;
    color: #444;
    font-size: 0.88rem;
}
.dc-placeholder-icon { font-size: 2rem; opacity: 0.6; }

/* Shared field / label / note */
.dc-field { margin-bottom: 14px; }
.dc-label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.dc-note {
    margin-top: 6px;
    font-size: 0.72rem;
    line-height: 1.4;
    color: #888;
}

/* Inputs */
.dc-input {
    width: 100%;
    padding: 9px 12px;
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    color: #fff;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
    appearance: textfield;
    -moz-appearance: textfield;
}
.dc-input::-webkit-outer-spin-button,
.dc-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dc-input:focus { border-color: var(--accent, #ff9800); }

/* Item Chips */
.dc-item-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dc-item-btn {
    padding: 6px 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #bbb;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
}
.dc-item-btn:hover { background: rgba(255,255,255,0.06); border-color: #444; }
.dc-item-btn.active {
    background: rgba(255,152,0,0.1);
    border-color: rgba(255,152,0,0.35);
    color: #fff;
}
.dc-item-name { font-size: 0.78rem; font-weight: 600; }
.dc-item-rate { font-size: 0.68rem; color: #666; font-family: 'Rajdhani', sans-serif; }
.dc-item-btn.active .dc-item-rate { color: var(--accent, #ff9800); }

/* Divider */
.dc-divider { height: 1px; background: #2a2a2a; margin: 16px 0; }

/* Probability Display */
.dc-prob-display { text-align: center; margin-bottom: 10px; }
.dc-prob-label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.dc-prob-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

/* Progress Bar */
.dc-bar-wrap {
    height: 6px;
    background: #222;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 14px;
}
.dc-prob-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
    min-width: 2px;
}
.dc-bar-low { background: #ef5350; }
.dc-bar-med { background: #ff9800; }
.dc-bar-good { background: #ffca28; }
.dc-bar-high { background: #66bb6a; }
.dc-bar-max { background: #26c6da; }

/* Stats Grid — 4 columns */
.dc-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}
.dc-stat {
    padding: 8px 10px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.dc-stat-label {
    font-size: 0.6rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.dc-stat-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Rajdhani', sans-serif;
    font-variant-numeric: tabular-nums;
}

/* Verdict */
.dc-verdict {
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 12px;
}
.dc-verdict-lucky { background: rgba(76,175,80,0.08); border: 1px solid rgba(76,175,80,0.2); color: #81c784; }
.dc-verdict-normal { background: rgba(255,235,59,0.05); border: 1px solid rgba(255,235,59,0.15); color: #fff59d; }
.dc-verdict-dry { background: rgba(255,152,0,0.08); border: 1px solid rgba(255,152,0,0.2); color: #ffb74d; }
.dc-verdict-extreme { background: rgba(244,67,54,0.08); border: 1px solid rgba(244,67,54,0.2); color: #ef9a9a; }

/* Milestones — inline row */
.dc-milestones {
    padding: 10px 14px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.dc-ms-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.dc-ms-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
}
.dc-ms-row span:first-child { color: #888; font-weight: 600; }
.dc-ms-row span:last-child {
    color: #fff;
    font-weight: 700;
    font-family: 'Rajdhani', sans-serif;
    font-variant-numeric: tabular-nums;
}

/* Source */
.dc-source { font-size: 0.68rem; color: #555; line-height: 1.4; }
.dc-source a { color: #4fc3f7; text-decoration: none; }
.dc-source a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
    .drop-calc-content {
        width: calc(100vw - 16px);
        height: auto;
        max-height: 92vh;
        margin: 0 8px;
    }
    .dc-panels { flex-direction: column; }
    .dc-panel-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #222;
        max-height: 240px;
    }
    .dc-stats-grid { grid-template-columns: 1fr 1fr; }
    .dc-milestones { flex-direction: column; align-items: flex-start; gap: 4px; }
    .dc-ms-row { justify-content: space-between; width: 100%; }
    .dc-prob-value { font-size: 1.7rem; }
}

.ach-count {
    display: block;
    font-size: 1.6rem;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    color: var(--accent, #ff9800);
}

.ach-label {
    font-size: 0.75rem;
    color: var(--text-secondary, #aaa);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ach-category {
    margin-bottom: 16px;
}

.ach-cat-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary, #aaa);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ach-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ach-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    opacity: 0.4;
    filter: grayscale(1);
    transition: all 0.2s;
}

.ach-badge.unlocked {
    opacity: 1;
    filter: none;
    border-color: rgba(255, 152, 0, 0.2);
    background: rgba(255, 152, 0, 0.05);
}

.ach-icon {
    font-size: 1.3rem;
    min-width: 28px;
    text-align: center;
}

.ach-badge-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.ach-badge-desc {
    font-size: 0.72rem;
    color: var(--text-secondary, #aaa);
}

/* Achievement Toast Notification */

.achievement-toast {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.98), rgba(20, 20, 20, 0.98));
    border: 1px solid rgba(255, 152, 0, 0.4);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 152, 0, 0.15);
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: var(--text-primary, #fff);
}

.achievement-toast.show {
    transform: translateX(0);
}

.achievement-toast-icon {
    font-size: 1.8rem;
}

.achievement-toast-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent, #ff9800);
    font-weight: 600;
}

.achievement-toast-name {
    font-weight: 700;
    font-size: 0.95rem;
}

/* =============================================================================
   TOOLS SECTION IN DROPDOWN (Skill Calc, Boss Log, Collection Log, Achievements)
   ============================================================================= */

.dropdown-section-header {
    font-size: 0.68rem;
    color: var(--text-secondary, #aaa);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 14px 4px;
    font-weight: 600;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 768px) {
    .skill-calc-content,
    .boss-log-content,
    .clog-content,
    .achievements-content,
    .heatmap-modal-content,
    .suggestions-modal-content {
        max-width: 95vw;
        max-height: 85vh;
        margin: 10px;
    }

    .calc-skill-select {
        gap: 3px;
    }

    .calc-skill-btn {
        width: 32px;
        height: 32px;
    }

    .calc-skill-btn img {
        width: 20px;
        height: 20px;
    }

    .calc-inputs {
        flex-direction: column;
        gap: 8px;
    }

    .heatmap-cell {
        width: 9px;
        height: 9px;
    }

    .suggest-item {
        padding: 6px 10px;
    }

    .achievement-toast {
        right: 10px;
        bottom: 70px;
        left: 10px;
    }
}
