:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent: #bb86fc;
    --accent-hover: #9965f4;
    --success: #03dac6;
    --danger: #cf6679;
    --warning: #ffb74d;
    --border: #333;
    --input-bg: #2c2c2c;
    --disabled: #444;
}

[data-theme="light"] {
    --bg-color: #ffffff;
    --card-bg: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --accent: #6f42c1;
    --accent-hover: #5a2d91;
    --success: #198754;
    --danger: #dc3545;
    --warning: #fd7e14;
    --border: #dee2e6;
    --input-bg: #ffffff;
    --disabled: #e9ecef;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; outline: none; }

body { background-color: var(--bg-color); color: var(--text-primary); display: flex; flex-direction: column; height: 100vh; }

/* Navigation */
nav { 
    background-color: var(--card-bg); 
    padding: 0.8rem 2rem; 
    display: flex; align-items: center; justify-content: space-between; 
    border-bottom: 1px solid var(--border); 
    position: relative;
    z-index: 50;
}
.nav-left { display: flex; align-items: center; gap: 2rem; }
.logo { font-weight: bold; font-size: 1.1rem; color: var(--accent); letter-spacing: 1px; text-transform: uppercase; }

.nav-tabs { display: flex; gap: 1.5rem; align-items: center; }
.nav-tabs button { background: none; border: none; color: var(--text-secondary); font-size: 0.95rem; cursor: pointer; padding-bottom: 5px; transition: 0.3s; font-weight: 600; }
.nav-tabs button.active { color: var(--accent); border-bottom: 2px solid var(--accent); }
.nav-tabs button:hover { color: var(--text-primary); }
.nav-separator { color: var(--border); font-size: 1.2rem; margin: 0 0.5rem; }

.nav-right { display: flex; gap: 1rem; align-items: center; }
.market-prices { display: flex; gap: 1rem; align-items: center; margin-right: 1rem; }
.price-input-group { display: flex; align-items: center; gap: 5px; background: #252525; padding: 5px 10px; border-radius: 4px; border: 1px solid var(--border); }
.price-input-group label { color: var(--accent); font-size: 0.8rem; font-weight: bold; text-transform: uppercase; }
.price-input-group input { width: 70px; background: transparent; border: none; color: white; text-align: right; font-size: 0.9rem; }

/* Layout */
main { flex: 1; padding: 2rem; max-width: 1200px; margin: 0 auto; width: 100%; overflow-y: auto; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.2s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Cards & Common */
.card { background-color: var(--card-bg); padding: 1.5rem; border-radius: 8px; margin-bottom: 1.5rem; border: 1px solid var(--border); box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
h2 { margin-bottom: 1rem; color: var(--accent); font-size: 1.2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

textarea, input[type="text"], input[type="number"], select { background-color: var(--input-bg); border: 1px solid var(--border); color: var(--text-primary); border-radius: 4px; }
textarea { width: 100%; height: 100px; padding: 1rem; resize: vertical; margin-bottom: 1rem; font-family: monospace; font-size: 0.9rem; }
textarea:focus, input:focus, select:focus { border-color: var(--accent); }
input:disabled { background-color: var(--disabled); color: #888; cursor: not-allowed; border-color: transparent; }

/* Hide Number Arrows/Spinners */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

.btn { background: linear-gradient(135deg, #bb86fc, #9965f4); color: #000; padding: 0.7rem 1.4rem; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.2s ease; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; box-shadow: 0 2px 8px rgba(187, 134, 252, 0.2); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(187, 134, 252, 0.3); }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.8rem; }
.btn-block { width: 100%; margin-bottom: 10px; }

.btn-reset-hidden { background: none; border: none; color: #444; font-size: 0.75rem; cursor: pointer; text-decoration: underline; width: 100%; text-align: center; margin-top: 1rem; }
.btn-reset-hidden:hover { color: var(--danger); }

.btn-text-danger { background: none; border: none; color: #666; font-size: 0.8rem; cursor: pointer; text-decoration: none; padding: 0; transition: 0.2s; }
.btn-text-danger:hover { color: var(--danger); text-decoration: underline; }

.btn-outline { background: transparent; border: 1px solid #444; color: var(--text-secondary); padding: 8px; width: 100%; border-radius: 6px; cursor: pointer; transition: 0.2s; font-size: 0.9rem; margin-top: 10px; }
.btn-outline:hover { border-color: var(--accent); color: var(--text-primary); background: rgba(187, 134, 252, 0.05); }

.btn-icon { background: linear-gradient(135deg, #2c2c2c, #3a3a3a); border: 1px solid #444; border-radius: 6px; cursor: pointer; color: var(--text-secondary); padding: 6px 12px; transition: all 0.2s ease; font-size: 0.8rem; font-weight: 500; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.btn-icon:hover { background: linear-gradient(135deg, #3a3a3a, #4a4a4a); color: white; border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.btn-icon.del:hover { border-color: var(--danger); color: var(--danger); }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.stat-box { 
    background: linear-gradient(135deg, #1e1e1e, #2a2a2a); 
    padding: 1.5rem; 
    border-radius: 12px; 
    text-align: center; 
    border: 1px solid #333; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}
.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.stat-value { font-size: 1.8rem; font-weight: bold; margin-top: 0.8rem; }
.stat-label { color: var(--accent); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.positive { color: var(--success); }
.negative { color: var(--danger); }

/* Lists */
.hunt-list { list-style: none; margin-top: 1rem; }
.hunt-item { 
    background-color: #252525; padding: 1rem; margin-bottom: 0.5rem; border-radius: 6px; 
    display: flex; justify-content: space-between; align-items: center; 
    border-left: 3px solid var(--border); cursor: pointer; transition: 0.2s;
}
.hunt-item:hover { background-color: #2f2f2f; }
.hunt-item.pos { border-left-color: var(--success); }
.hunt-item.neg { border-left-color: var(--danger); }
.hunt-details-text { display: flex; flex-direction: column; gap: 4px; }
.hunt-meta { font-size: 0.8rem; color: var(--text-secondary); display: flex; gap: 15px; }
.hunt-value { font-size: 1.1rem; font-weight: bold; margin-right: 10px; }

/* Drops Interface */
.drops-container { display: flex; gap: 2rem; align-items: flex-start; }
.drops-column { flex: 1; }
.drops-history-column { order: 1; }
.drops-pending-column { order: 2; }
.drops-column h3 { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.9rem; text-transform: uppercase; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.drop-item { 
    background: #252525; padding: 1rem; margin-bottom: 0.5rem; border-radius: 6px; 
    display: flex; justify-content: space-between; align-items: center; 
    border: 1px solid var(--border); cursor: pointer; transition: 0.2s;
}
.drop-item:hover { background-color: #2f2f2f; border-color: var(--accent); }
.drop-info { display: flex; flex-direction: column; }
.drop-name { font-weight: bold; color: white; font-size: 0.95rem; }
.drop-date { font-size: 0.8rem; color: var(--text-secondary); }

/* Selects maiores para times e jogadores */
#addDropTeamSelect, #addDropPlayerSelect, #editDropPlayerSelect {
    padding: 10px;
    font-size: 0.9rem;
    min-height: 40px;
}

/* Tipo de drop com mesmo estilo */
#addDropTeamType {
    padding: 10px;
    font-size: 0.9rem;
    min-height: 40px;
}

/* Calendar */
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.calendar-day-header { text-align: center; color: var(--text-secondary); padding: 0.5rem; font-size: 0.8rem; font-weight: bold; text-transform: uppercase; }
.calendar-day { 
    background-color: #252525; 
    height: 110px;
    padding: 6px; border-radius: 6px; 
    display: flex; flex-direction: column; justify-content: space-between; 
    border: 1px solid transparent; position: relative; cursor: pointer; transition: 0.2s; 
}
.calendar-day:hover { background-color: #333; }
.calendar-day.today { border-color: var(--accent); }
.calendar-day.empty { background: transparent; cursor: default; }
.calendar-day.empty:hover { background: transparent; }
.day-profit { font-size: 0.8rem; text-align: center; font-weight: bold; }
.day-indicator { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; background-color: var(--warning); border-radius: 50%; }

/* Calendar Drops Table */
.drops-spreadsheet-container { margin-top: 2rem; border-top: 1px solid #333; padding-top: 1rem; }
.drops-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.drops-table th { text-align: left; padding: 8px; color: var(--text-secondary); border-bottom: 1px solid #444; text-transform: uppercase; font-size: 0.75rem; }
.drops-table td { padding: 8px; border-bottom: 1px solid #222; }
.drops-table tr:hover { background-color: #252525; }
.status-sold { color: var(--success); font-weight: bold; }
.status-pending { color: var(--warning); font-style: italic; }

/* Split Styles */
.split-result-box { margin-top: 2rem; background: #252525; padding: 2rem; border-radius: 8px; display: none; border: 1px solid var(--border); }
.split-summary-cards { display: flex; gap: 1rem; margin-bottom: 2rem; }
.split-card { flex: 1; background: #1e1e1e; padding: 1.5rem; border-radius: 8px; text-align: center; border: 1px solid #333; }
.split-card-val { font-size: 1.8rem; font-weight: bold; margin-top: 5px; }
.transfer-list-compact { display: flex; flex-direction: column; gap: 8px; margin-bottom: 2rem; }
.transfer-row { 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 10px 15px; background: #1a1a1a; border-radius: 4px; border-left: 3px solid var(--accent);
}
.transfer-content { font-family: monospace, sans-serif; font-size: 0.9rem; color: #ccc; }
.player-name { font-weight: bold; color: white; }
.transfer-val { font-weight: bold; color: var(--success); }
.copy-btn-small { background: transparent; border: 1px solid #444; color: #aaa; padding: 4px 8px; border-radius: 4px; cursor: pointer; transition: 0.2s; font-size: 0.75rem; text-transform: uppercase; }
.copy-btn-small:hover { border-color: var(--accent); color: var(--accent); }

/* Config Split List */
.config-list-item { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1fr 1fr 0.5fr; 
    gap: 5px; align-items: center; 
    background: #2a2a2a; padding: 8px; margin-bottom: 6px; 
    border-radius: 4px; border: 1px solid #333; 
}
.config-name { font-weight: bold; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.9rem; }

/* Input group with clear button */
.input-clear-group { position: relative; display: flex; align-items: center; }
.input-clear-group input { width: 100%; padding: 6px; padding-right: 20px; background: #1a1a1a; border: 1px solid #444; border-radius: 4px; color: white; text-align: center; font-size: 0.85rem;}
.clear-x { position: absolute; right: 4px; font-size: 0.7rem; color: #666; cursor: pointer; font-weight: bold; }
.clear-x:hover { color: var(--danger); }

/* Day Details Minimalist List */
.day-detail-list { display: flex; flex-direction: column; gap: 6px; max-height: 400px; overflow-y: auto; padding-right: 5px; }
.day-detail-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; background: #222; border-radius: 6px; border: 1px solid #333; transition: 0.2s; cursor: pointer; }
.day-detail-item:hover { background: #2a2a2a; border-color: var(--accent); }
.dd-info { display: flex; align-items: center; gap: 10px; }
.dd-badge { font-size: 0.7rem; font-weight: bold; padding: 2px 6px; border-radius: 3px; text-transform: uppercase; }
.dd-badge.hunt { background: #333; color: #ccc; border: 1px solid #555; }
.dd-badge.service { background: #1a2a1a; color: #4caf50; border: 1px solid #2e5d2e; }
.dd-badge.drop { background: #2a2010; color: #ffb74d; border: 1px solid #7a5e30; }
.dd-badge.sold { background: #112a18; color: #4caf50; border: 1px solid #2e5d2e; }
.calendar-labels { position: absolute; top: 38px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; width: 90%; pointer-events: none; }
.calendar-mini-label { font-size: 0.52rem; font-weight: bold; padding: 1px 3px; border-radius: 3px; line-height: 1; border: 1px solid #555; background: #222; }
.calendar-mini-label.drop { color: #ffb74d; border-color: #7a5e30; background: #2a2010; }
.calendar-mini-label.sold { color: #4caf50; border-color: #2e5d2e; background: #112a18; }
.dd-name { font-weight: bold; color: #eee; font-size: 0.9rem; }
.dd-sub { font-size: 0.75rem; color: #888; }
.dd-value { font-weight: bold; font-size: 0.9rem; }

/* Settings Language Buttons */

/* MODALS */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); display: none; justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(2px); }
#dayModal { z-index: 1000; }
#sellDropModal, #addDropModal, #costModal, #manualHuntModal, #splitConfigModal, #tutorialModal { z-index: 1100; }
#typeSelectionModal, #addServiceModal { z-index: 1050; }
#teamsModal { z-index: 1100; }
#createTeamModal, #editTeamModal { z-index: 1300; }
#teamDropsModal { z-index: 1200; }
#detailsModal, #editDropModal { z-index: 1250; }

.modal-box { background: var(--card-bg); width: 600px; padding: 2rem; border-radius: 10px; border: 1px solid #333; animation: popIn 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); max-height: 90vh; overflow-y: auto; }
@keyframes popIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-inputs { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.input-row { display: flex; flex-direction: column; gap: 5px; } 
.input-row label { color: var(--text-secondary); font-size: 0.85rem; }
.input-row input { padding: 10px; width: 100%; text-align: left; }
.input-with-icon { position: relative; display: flex; align-items: center; }
.input-with-icon input { padding-left: 40px !important; }
.input-icon-preview { position: absolute; left: 8px; width: 24px; height: 24px; pointer-events: none; display: none; }
.modal-actions { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 1.5rem; }
.modal-actions-split { display: flex; justify-content: space-between; align-items: center; margin-top: 1.5rem; }

.detail-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.9rem; }
.detail-table td { padding: 6px 0; border-bottom: 1px solid #333; }
.dt-label { color: var(--text-secondary); }
.dt-val { text-align: right; }

/* Stats Table Inside Detail */
.stats-subtable { width: 100%; background: #1a1a1a; border-radius: 6px; padding: 10px; margin-top: 15px; border:1px solid #333; }
.stats-subtable th { text-align: left; font-size: 0.75rem; color: var(--accent); border-bottom: 1px solid #444; padding-bottom: 5px; }
.stats-subtable td { font-size: 0.8rem; padding: 4px 0; border-bottom: 1px solid #222; }

/* Tutorial */
.tutorial-content { text-align: center; padding: 10px; }
.tutorial-step { display: none; }
.tutorial-step.active { display: block; animation: fadeIn 0.3s; }
.tut-title { font-size: 1.4rem; color: var(--accent); margin-bottom: 1rem; text-transform: uppercase; }
.tut-dots { display: flex; justify-content: center; gap: 6px; margin-top: 1.5rem; }
.tut-dot { width: 8px; height: 8px; background: #444; border-radius: 50%; }
.tut-dot.active { background: var(--accent); }



/* Toast Notifications */
.toast { position: fixed; top: 20px; right: 20px; background: var(--accent); color: #000; padding: 12px 20px; border-radius: 6px; z-index: 2000; transform: translateX(400px); transition: transform 0.3s ease; font-size: 0.9rem; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.toast.show { transform: translateX(0); }
.toast.error { background: var(--danger); color: white; }
.toast.warning { background: var(--warning); color: #000; }

/* Eventos rápidos das Equipes Online */
.team-event-notification-host {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(520px, 34vw);
    min-width: 330px;
    transform: translate(-50%, -50%);
    z-index: 2200;
    pointer-events: none;
    display: flex;
    justify-content: center;
}
.team-event-notification {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 13px;
    border: 1px solid rgba(187, 134, 252, 0.48);
    border-radius: 10px;
    background: rgba(24, 24, 24, 0.97);
    color: var(--text-primary);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(9px);
    opacity: 0;
    transform: translateY(-14px) scale(0.985);
    transition: opacity 0.28s ease, transform 0.32s cubic-bezier(.2,.8,.2,1), border-color 0.25s ease;
}
.team-event-notification.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.team-event-notification.hide {
    opacity: 0;
    transform: translateY(-10px) scale(0.99);
}
.team-event-notification.drop-sold {
    border-color: rgba(3, 218, 198, 0.52);
}
.team-event-notification.drop-removed,
.team-event-notification.split-removed {
    border-color: rgba(207, 102, 121, 0.52);
}
.team-event-notification-content {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    white-space: nowrap;
    font-size: 0.76rem;
}
.team-event-notification-title {
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.015em;
}
.team-event-notification.drop-sold .team-event-notification-title {
    color: var(--success);
}
.team-event-notification.drop-removed .team-event-notification-title,
.team-event-notification.split-removed .team-event-notification-title {
    color: var(--danger);
}
.team-event-notification-separator {
    color: #555;
    flex: 0 0 auto;
}
.team-event-notification-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
    image-rendering: auto;
    flex: 0 0 25px;
}
.team-event-notification-name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    color: #f0f0f0;
}
.team-event-notification-meta {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
}
.team-event-notification-meta strong,
.team-event-notification-value {
    color: var(--text-primary);
    font-weight: 700;
}
.team-event-notification-value {
    color: var(--success);
}
[data-theme="light"] .team-event-notification {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
[data-theme="light"] .team-event-notification-name {
    color: var(--text-primary);
}

/* Theme Toggle */
.theme-toggle { background: none; border: 1px solid var(--border); color: var(--text-secondary); padding: 6px 10px; border-radius: 4px; cursor: pointer; font-size: 0.8rem; transition: 0.2s; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* Search Box */
.search-box { position: relative; margin-bottom: 1rem; }
.search-box input { width: 100%; padding: 8px 35px 8px 12px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 4px; color: var(--text-primary); }
.search-box .search-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); }

/* Goal Progress - Design Profissional */
.goal-progress { 
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a); 
    padding: 1.5rem; 
    border-radius: 12px; 
    margin-bottom: 1rem; 
    border: 1px solid #333; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.goal-title {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.goal-bar { 
    width: 50%; 
    height: 18px; 
    background: linear-gradient(180deg, #1a1a1a, #0f0f0f); 
    border-radius: 9px; 
    overflow: hidden; 
    margin: 1rem auto;
    border: 1px solid #444;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.6);
}
.goal-fill { 
    height: 100%; 
    background: linear-gradient(180deg, var(--accent), #8a5cf6); 
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(187, 134, 252, 0.4);
}
.goal-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}
/* Mini Chart Widget */
.mini-chart-widget {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 180px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    z-index: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.mini-chart-header {
    font-size: 0.75rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 8px;
    text-align: center;
}
.mini-chart-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 3px 0;
    font-size: 0.75rem;
}
.mini-label {
    color: var(--text-secondary);
}
.mini-amount {
    font-weight: bold;
    color: var(--text-primary);
}
.mini-amount.positive { color: var(--success); }
.mini-amount.negative { color: var(--danger); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }

@media (max-width: 768px) {
    nav { flex-direction: column; gap: 1rem; padding: 1rem; }
    .nav-left, .nav-right { width: 100%; justify-content: space-between; }
    .nav-tabs { width: 100%; overflow-x: auto; gap: 1rem; padding-bottom: 5px; justify-content: flex-start; }
    .logo { font-size: 1rem; }
    main { padding: 1rem; padding-bottom: 80px; } 
    .modal-box { width: 95%; padding: 1.5rem; }
    .drops-container { flex-direction: column; }
    .drops-pending-column { order: 1; }
    .drops-history-column { order: 2; }
    .config-list-item { grid-template-columns: 1fr; gap: 5px; padding: 15px; position: relative; }
    .config-list-item .btn-icon.del { position: absolute; top: 10px; right: 10px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
}

/* Account / Cloud Sync */
input[type="password"] { background-color: var(--input-bg); border: 1px solid var(--border); color: var(--text-primary); border-radius: 4px; }
input[type="password"]:focus { border-color: var(--accent); }
.cloud-settings-card {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(187, 134, 252, 0.04);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}
.cloud-muted { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.4; }
.account-btn.logged { border-color: var(--success); color: var(--success); }
.account-modal-box { width: 520px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1.25rem; }
.auth-tabs button {
    background: #252525;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.auth-tabs button.active { background: var(--accent); color: #000; border-color: var(--accent); }
.auth-form { display: flex; flex-direction: column; gap: 0.8rem; }
.account-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: #252525;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
}
.account-name { color: var(--text-primary); font-weight: 700; }
.sync-badge {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    text-transform: uppercase;
    white-space: nowrap;
}
.sync-badge.offline { color: var(--warning); border-color: var(--warning); }
.sync-badge.online { color: var(--success); border-color: var(--success); }
.sync-badge.syncing { color: var(--accent); border-color: var(--accent); }
.sync-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 1rem; }
.danger-outline:hover { border-color: var(--danger); color: var(--danger); }
.sync-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sync-choice-card { background: #252525; border: 1px solid var(--border); border-radius: 8px; padding: 1rem; }
.sync-choice-card h3 { color: var(--accent); font-size: 0.95rem; margin-bottom: 0.5rem; text-transform: uppercase; }
.sync-choice-card .btn { width: 100%; margin-top: 1rem; }
#syncChoiceModal { z-index: 1500; }
@media (max-width: 768px) {
    .cloud-settings-card, .sync-choice-grid, .sync-actions { grid-template-columns: 1fr; }
    .account-card { flex-direction: column; align-items: flex-start; }
}

/* Profile / Account v1.6 */
.online-pill, .nav-user-name {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #252525;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.online-pill { color: var(--success); border-color: rgba(3, 218, 198, 0.35); }
.nav-user-name { color: var(--text-primary); border-color: rgba(187, 134, 252, 0.35); }
.profile-modal-box { width: 620px; }
.profile-header { text-align: center; border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; margin-bottom: 1rem; }
.profile-avatar {
    width: 64px;
    height: 64px;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #000;
    font-size: 1.6rem;
    font-weight: 800;
}
.profile-header h2 { margin: 0 0 0.35rem; }
.profile-status-row { display: flex; justify-content: center; gap: 8px; margin-top: 0.85rem; flex-wrap: wrap; }
.profile-section { background: #222; border: 1px solid var(--border); border-radius: 10px; padding: 1rem; margin-bottom: 1rem; }
.profile-section h3 { color: var(--accent); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.7rem; }
.profile-grid-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 1rem; }
.profile-footer-actions { justify-content: space-between; align-items: center; }
.btn-large { padding: 1rem 1.4rem; font-size: 0.95rem; }
.sync-choice-featured { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(187, 134, 252, 0.25), 0 8px 24px rgba(0,0,0,0.25); }
.sync-choice-featured h3 { font-size: 1.05rem; }
.sync-choice-muted { opacity: 0.92; }
.admin-users-list { display: flex; flex-direction: column; gap: 8px; }
.admin-user-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: #252525; }
.admin-user-row > div:first-child { display: flex; flex-direction: column; gap: 3px; }
.admin-user-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 6px; text-align: right; }
#profileModal, #adminModal { z-index: 1400; }

/* Calendar hotfix: keep labels away from values */
.calendar-day { justify-content: flex-start; gap: 4px; padding-bottom: 24px; overflow: hidden; }
.calendar-labels { top: auto; bottom: 4px; left: 50%; transform: translateX(-50%); width: calc(100% - 8px); }
.calendar-mini-label { font-size: 0.48rem; padding: 1px 2px; }
.calendar-day img { max-width: 28px; max-height: 28px; }
.day-profit { line-height: 1.05; }
.calendar-day.has-drop-icon .day-profit { margin-top: 30px; }

@media (max-width: 768px) {
    .profile-grid-actions { grid-template-columns: 1fr; }
    .profile-footer-actions { flex-direction: column-reverse; align-items: stretch; }
    .admin-user-row { flex-direction: column; align-items: flex-start; }
    .admin-user-meta { align-items: flex-start; text-align: left; }
}

/* Profile polish v1.7 */
.profile-modal-box {
    width: min(620px, calc(100vw - 24px));
    max-height: min(86vh, 760px);
    overflow-y: auto;
}
.profile-header {
    background: linear-gradient(180deg, rgba(187,134,252,0.08), transparent);
    border: 1px solid rgba(187,134,252,0.12);
    border-radius: 14px;
    padding: 1.35rem 1rem;
}
.profile-header h2 {
    font-size: 1.35rem;
    letter-spacing: 0.2px;
}
#profileDisplayEmail {
    margin-top: 0.2rem;
    word-break: break-word;
}
.profile-grid-actions {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}
.profile-grid-actions .btn-outline {
    min-height: 42px;
    border-radius: 10px;
    background: #222;
}
.profile-section.collapsible-section {
    border-color: rgba(187,134,252,0.2);
}
.profile-footer-actions {
    margin-top: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}
.online-pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    margin-right: 6px;
    box-shadow: 0 0 8px rgba(3, 218, 198, 0.55);
}

/* Split Loot history polish v1.8 */
.btn-danger {
    background: linear-gradient(135deg, #cf6679, #b8475c);
    color: #fff;
    box-shadow: 0 2px 8px rgba(207, 102, 121, 0.2);
}
.btn-danger:hover {
    box-shadow: 0 4px 12px rgba(207, 102, 121, 0.32);
}
.split-history-modal-box {
    width: min(760px, calc(100vw - 24px));
    max-height: min(86vh, 760px);
}
.month-switcher,
.split-history-month-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin: 0.5rem 0 1rem;
}
.split-history-month-switcher h3 {
    min-width: 180px;
    margin: 0;
    color: var(--accent);
    text-align: center;
    text-transform: capitalize;
    font-size: 1rem;
}
.split-history-list {
    max-height: 52vh;
    overflow-y: auto;
    padding-right: 4px;
}
.empty-state {
    text-align: center;
    color: #666;
    padding: 24px 12px;
}
.split-history-card {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    border: 1px solid #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.split-history-card.paid {
    border-color: rgba(3, 218, 198, 0.8);
    box-shadow: 0 0 0 1px rgba(3, 218, 198, 0.16), 0 8px 20px rgba(0,0,0,0.18);
    background: linear-gradient(135deg, rgba(3, 218, 198, 0.055), #1e1e1e 45%);
}
.split-history-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.split-history-title {
    font-weight: 700;
    color: var(--accent);
}
.split-history-meta {
    font-size: 0.8rem;
    color: #888;
    margin-top: 3px;
}
.split-paid-date {
    color: var(--success);
    margin-left: 6px;
}
.split-history-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.btn-icon.pay {
    padding: 4px 8px;
    border-color: rgba(3, 218, 198, 0.35);
    color: var(--success);
}
.btn-icon.pay.active {
    background: rgba(3, 218, 198, 0.12);
    border-color: var(--success);
    color: var(--success);
}
.split-history-values {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 10px;
    font-size: 0.86rem;
}
.split-history-values span { color: #888; }
.split-history-values .success { color: var(--success); }
.split-history-values .warning { color: var(--warning); }
.split-history-details { cursor: pointer; }
.split-history-details summary {
    color: var(--accent);
    font-size: 0.85rem;
}
.split-history-details pre {
    background: #0a0a0a;
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.8rem;
    color: #ccc;
    white-space: pre-wrap;
}
@media (max-width: 620px) {
    .split-history-head { flex-direction: column; }
    .split-history-actions { width: 100%; justify-content: flex-end; }
    .split-history-values { flex-direction: column; gap: 6px; }
}


/* Responsive layout patch v1.9 */
html {
    -webkit-text-size-adjust: 100%;
}
body {
    min-width: 0;
    overflow-x: hidden;
}
button, input, select, textarea {
    max-width: 100%;
}
img, canvas {
    max-width: 100%;
}

/* Avoid content overflowing on narrow screens */
.card, .modal-box, .stat-box, .split-card, .drop-item, .hunt-item, .day-detail-item,
.account-card, .profile-section, .split-history-card, .transfer-row {
    min-width: 0;
}
.hunt-details-text, .drop-info, .transfer-content, .dd-info, .split-history-title, .split-history-meta {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Tables become horizontally scrollable instead of breaking the viewport */
.drops-spreadsheet-container,
.stats-subtable,
.table-scroll,
.detail-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.drops-table,
.detail-table,
.stats-subtable table,
table.stats-subtable {
    min-width: 560px;
}
.detail-table {
    width: 100%;
}

/* Desktop/tablet refinement */
@media (max-width: 1100px) {
    nav {
        padding: 0.8rem 1rem;
        gap: 1rem;
        flex-wrap: wrap;
    }
    .nav-left {
        flex: 1 1 100%;
        width: 100%;
        gap: 1rem;
        justify-content: space-between;
        min-width: 0;
    }
    .nav-right {
        flex: 1 1 100%;
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.65rem;
    }
    .nav-tabs {
        overflow-x: auto;
        scrollbar-width: thin;
        max-width: 100%;
        padding-bottom: 7px;
    }
    .nav-tabs button {
        flex: 0 0 auto;
    }
    .market-prices {
        flex: 1 1 100%;
        order: 2;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.6rem;
        margin-right: 0;
        width: 100%;
    }
    .price-input-group {
        min-width: 0;
        justify-content: space-between;
    }
    .price-input-group input {
        width: min(90px, 45%);
        color: var(--text-primary);
    }
    main {
        max-width: 100%;
        padding: 1.25rem;
    }
    .mini-chart-widget {
        position: static;
        width: calc(100% - 2.5rem);
        margin: 1rem auto 0;
        display: grid;
        grid-template-columns: auto 1fr 1fr;
        gap: 0.75rem;
        align-items: stretch;
    }
    .mini-chart-header {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 0;
        padding-right: 0.75rem;
        border-right: 1px solid var(--border);
    }
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
        gap: 0.9rem;
    }
}

@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
    }
    nav {
        position: sticky;
        top: 0;
        z-index: 900;
        padding: 0.75rem;
    }
    .nav-left {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .logo {
        text-align: center;
        letter-spacing: 1.5px;
    }
    .nav-tabs {
        gap: 0.7rem;
        padding: 0 0 0.4rem;
        justify-content: flex-start;
    }
    .nav-tabs button {
        background: #252525;
        border: 1px solid var(--border);
        border-radius: 999px;
        padding: 0.55rem 0.8rem;
        font-size: 0.82rem;
        white-space: nowrap;
    }
    .nav-tabs button.active {
        border-color: var(--accent);
        background: rgba(187, 134, 252, 0.12);
    }
    .nav-separator {
        display: none;
    }
    .nav-right {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
    }
    .market-prices {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
        order: 3;
    }
    .price-input-group {
        padding: 8px 10px;
        border-radius: 8px;
    }
    .online-pill, .nav-user-name, .account-btn {
        min-height: 34px;
    }
    .nav-user-name {
        max-width: 44vw;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    main {
        padding: 0.9rem;
        overflow: visible;
    }
    .card {
        padding: 1rem;
        border-radius: 12px;
        margin-bottom: 1rem;
    }
    h2 {
        font-size: 1rem;
        line-height: 1.25;
    }
    textarea {
        min-height: 120px;
        font-size: 0.85rem;
    }
    .btn, .btn-outline, .btn-icon, .theme-toggle {
        min-height: 40px;
    }
    .btn {
        padding: 0.72rem 1rem;
    }
    .btn-sm {
        min-height: 34px;
        padding: 0.45rem 0.75rem;
    }
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
    }
    .stat-box {
        padding: 1rem 0.75rem;
        border-radius: 10px;
    }
    .stat-value, .split-card-val {
        font-size: clamp(1rem, 5vw, 1.35rem);
        word-break: break-word;
    }
    .stat-label {
        font-size: 0.68rem;
    }
    .hunt-item, .drop-item, .day-detail-item {
        align-items: flex-start;
        gap: 0.75rem;
    }
    .hunt-item, .drop-item {
        flex-direction: column;
    }
    .hunt-meta {
        flex-wrap: wrap;
        gap: 6px 12px;
    }
    .hunt-actions {
        width: 100%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }
    .hunt-value {
        margin-right: auto;
    }
    #drops .card > div:first-child,
    #split .card > div:first-child,
    .calendar-header,
    .goal-header {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    #drops .card > div:nth-child(2) {
        flex-direction: column;
    }
    #teamFilter {
        width: 100%;
        min-height: 40px;
    }
    .drops-container {
        gap: 1rem;
    }
    .drops-column h3 {
        font-size: 0.8rem;
    }
    .split-summary-cards {
        flex-direction: column;
        gap: 0.75rem;
    }
    .transfer-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .copy-btn-small {
        align-self: flex-end;
        min-height: 32px;
    }
    .config-list-item {
        grid-template-columns: 1fr;
    }
    .input-clear-group input {
        min-height: 38px;
    }
    .goal-progress {
        max-width: 100%;
        padding: 1rem;
    }
    .goal-bar {
        width: 100%;
    }
    .mini-chart-widget {
        width: calc(100% - 1.8rem);
        grid-template-columns: 1fr 1fr;
        padding: 10px;
        gap: 0.65rem;
    }
    .mini-chart-header {
        grid-column: 1 / -1;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0 0 0.45rem;
    }
    .modal-overlay {
        align-items: flex-start;
        padding: 12px;
        overflow-y: auto;
    }
    .modal-box,
    .profile-modal-box,
    .account-modal-box,
    .split-history-modal-box {
        width: 100%;
        max-width: 100%;
        max-height: calc(100dvh - 24px);
        padding: 1rem;
        border-radius: 14px;
    }
    .modal-actions,
    .modal-actions-split,
    .profile-footer-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 0.75rem;
    }
    .modal-actions .btn,
    .modal-actions .btn-outline,
    .modal-actions-split .btn,
    .profile-footer-actions .btn {
        width: 100%;
    }
    .sync-choice-grid,
    .auth-tabs,
    .profile-grid-actions {
        grid-template-columns: 1fr;
    }
    .profile-header {
        padding: 1rem 0.75rem;
    }
    .profile-avatar {
        width: 56px;
        height: 56px;
        font-size: 1.35rem;
    }
    .profile-section {
        padding: 0.9rem;
    }
    .admin-user-row,
    .account-card {
        flex-direction: column;
        align-items: stretch;
    }
    .admin-user-meta {
        align-items: flex-start;
        text-align: left;
    }
    .sync-badge {
        align-self: flex-start;
    }
    .calendar-header {
        justify-content: center;
    }
    .calendar-header > div {
        order: -1;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }
    .calendar-grid {
        gap: 3px;
    }
    .calendar-day-header {
        font-size: 0.68rem;
        padding: 0.25rem 0;
    }
    .calendar-day {
        height: 76px;
        padding: 3px;
        border-radius: 5px;
        gap: 2px;
    }
    .calendar-day img {
        max-width: 20px;
        max-height: 20px;
    }
    .calendar-day.has-drop-icon .day-profit {
        margin-top: 20px;
    }
    .day-profit {
        font-size: 0.55rem !important;
        line-height: 1.05;
    }
    .calendar-labels {
        bottom: 2px;
        gap: 2px;
    }
    .calendar-mini-label {
        font-size: 0.42rem;
        padding: 1px 1px;
    }
    .day-indicator {
        top: 3px;
        right: 3px;
        width: 5px;
        height: 5px;
    }
    .drops-table th,
    .drops-table td {
        padding: 7px 6px;
    }
    .detail-table td {
        padding: 7px 6px;
    }
    .day-detail-item {
        display: grid;
        grid-template-columns: 1fr auto;
    }
    .dd-info {
        flex-wrap: wrap;
        gap: 6px;
    }
    .dd-value {
        grid-column: 1 / -1;
        justify-self: start;
    }
    .split-history-list {
        max-height: 58vh;
    }
    .split-history-month-switcher {
        gap: 10px;
    }
    .split-history-month-switcher h3 {
        min-width: 0;
        flex: 1;
        font-size: 0.9rem;
    }
    .split-history-actions {
        justify-content: stretch;
    }
    .split-history-actions .btn-icon {
        flex: 1;
    }
    .toast {
        top: auto;
        right: 12px;
        left: 12px;
        bottom: 12px;
        transform: translateY(120px);
        text-align: center;
    }
    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .market-prices {
        gap: 0.45rem;
    }
    .price-input-group label {
        font-size: 0.72rem;
    }
    .calendar-day {
        height: 66px;
    }
    .calendar-day img {
        max-width: 18px;
        max-height: 18px;
    }
    .day-profit {
        font-size: 0.5rem !important;
    }
    .calendar-mini-label {
        font-size: 0.38rem;
    }
    .day-detail-item {
        grid-template-columns: 1fr;
    }
    .dd-value {
        justify-self: start;
    }
    .hunt-actions {
        justify-content: stretch;
    }
    .hunt-actions .btn-icon {
        flex: 1;
    }
    .btn-icon.pay {
        min-width: 80px;
    }
    .modal-box {
        padding: 0.9rem;
    }
    .tut-title {
        font-size: 1.15rem;
    }
}

/* Mobile/drop participant refinement patch */
.drop-participants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}
.drop-participant-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #252525;
    color: var(--text-primary);
    font-size: 0.82rem;
    cursor: pointer;
    user-select: none;
}
.drop-participant-pill input {
    width: auto;
    accent-color: var(--accent);
}
.drop-participant-pill:has(input:checked) {
    border-color: var(--accent);
    background: rgba(187, 134, 252, 0.12);
}
.day-number {
    position: absolute;
    top: 5px;
    left: 6px;
    font-weight: bold;
    color: #666;
    font-size: 0.72rem;
    z-index: 2;
}
.calendar-drop-icon {
    width: 28px;
    height: 28px;
    position: absolute;
    top: 17px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}
.calendar-day.has-drop-icon .calendar-labels {
    top: 48px;
}
.calendar-day:not(.has-drop-icon) .calendar-labels {
    top: 22px;
}
.calendar-labels {
    bottom: auto;
    z-index: 2;
}
.calendar-day-values {
    width: 100%;
    margin-top: auto;
    padding-top: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    line-height: 1.05;
}
.day-profit,
.day-tc,
.day-real {
    text-align: center;
    font-weight: bold;
    font-size: 0.68rem;
    line-height: 1.05;
}
.day-profit { color: white; }
.day-tc { color: #4caf50; }
.day-real { color: var(--accent); }
.calendar-day.has-drop-icon .day-profit,
.calendar-day.has-calendar-label .day-profit {
    margin-top: 0;
}

@media (max-width: 768px) {
    .nav-right {
        display: grid;
        grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.35rem;
    }
    .market-prices {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
        order: 3;
    }
    .price-input-group {
        padding: 6px 6px;
        gap: 3px;
    }
    .price-input-group label {
        font-size: 0.58rem;
        letter-spacing: -0.1px;
    }
    .price-input-group input {
        width: 100%;
        min-width: 0;
        font-size: 0.72rem;
        text-align: right;
    }
    .online-pill,
    .nav-user-name,
    .account-btn {
        min-height: 28px;
        padding: 3px 7px;
        font-size: 0.66rem;
        border-radius: 999px;
    }
    .online-pill {
        justify-self: start;
    }
    .nav-user-name {
        justify-self: stretch;
        max-width: none;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        justify-content: center;
    }
    .account-btn {
        justify-self: end;
        min-width: auto;
    }
    .online-pill::before {
        width: 5px;
        height: 5px;
        margin-right: 4px;
    }
    .mini-chart-widget {
        width: calc(100% - 1.8rem);
        grid-template-columns: auto 1fr 1fr;
        padding: 8px;
        gap: 0.45rem;
        align-items: center;
    }
    .mini-chart-header {
        grid-column: auto;
        border-bottom: none;
        border-right: 1px solid var(--border);
        padding: 0 0.5rem 0 0;
        margin: 0;
        font-size: 0.68rem;
    }
    .mini-chart-widget > div:not(.mini-chart-header) {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
    }
    .mini-chart-line {
        font-size: 0.66rem;
        margin: 1px 0;
        gap: 5px;
    }
    .mini-chart-widget div[style*="font-size: 0.7rem"] {
        font-size: 0.6rem !important;
        margin-bottom: 2px !important;
    }
    .drop-participants-list {
        gap: 6px;
    }
    .drop-participant-pill {
        flex: 1 1 calc(50% - 6px);
        justify-content: center;
        padding: 8px 6px;
        font-size: 0.76rem;
    }
    .calendar-day {
        padding: 3px;
        padding-top: 4px;
        padding-bottom: 3px;
    }
    .day-number {
        top: 3px;
        left: 4px;
        font-size: 0.6rem;
    }
    .calendar-drop-icon {
        width: 18px;
        height: 18px;
        top: 15px;
    }
    .calendar-day.has-drop-icon .calendar-labels {
        top: 34px;
    }
    .calendar-day:not(.has-drop-icon) .calendar-labels {
        top: 18px;
    }
    .calendar-mini-label {
        font-size: 0.38rem;
        padding: 1px 2px;
    }
    .calendar-day-values {
        gap: 0;
    }
    .day-profit,
    .day-tc,
    .day-real {
        font-size: 0.48rem !important;
    }
}

@media (max-width: 480px) {
    .market-prices {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .price-input-group {
        padding: 5px;
    }
    .price-input-group label {
        font-size: 0.52rem;
    }
    .price-input-group input {
        font-size: 0.68rem;
    }
    .online-pill,
    .nav-user-name,
    .account-btn {
        font-size: 0.61rem;
        padding: 3px 6px;
    }
    .mini-chart-widget {
        padding: 7px;
        gap: 0.35rem;
    }
    .mini-chart-header {
        font-size: 0.62rem;
        padding-right: 0.35rem;
    }
    .mini-chart-line {
        font-size: 0.6rem;
    }
    .calendar-drop-icon {
        width: 16px;
        height: 16px;
        top: 14px;
    }
    .calendar-day.has-drop-icon .calendar-labels {
        top: 31px;
    }
}

/* Profile/settings reorganization patch */
.settings-modal-box { width: 680px; }
.profile-main-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-section-title-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:0.75rem; }
.profile-chart-box { background:#1b1b1b; border:1px solid var(--border); border-radius:10px; height:220px; padding:0.75rem; margin-bottom:0.9rem; }
.profile-goal-progress { padding:0.85rem; margin-bottom:0.9rem; }
.profile-mini-stats { display:grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap:0.5rem; }
.profile-mini-stats div { background:#1b1b1b; border:1px solid var(--border); border-radius:8px; padding:0.55rem; display:flex; flex-direction:column; gap:0.25rem; min-width:0; }
.profile-mini-stats span { color:var(--text-secondary); font-size:0.62rem; text-transform:uppercase; letter-spacing:0.4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.profile-mini-stats strong { color:var(--text-primary); font-size:0.82rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.settings-price-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:0.75rem; margin-top:0.9rem; }
.settings-price-grid .price-input-group { margin:0; justify-content:space-between; min-width:0; }
.settings-price-grid .price-input-group input { color:var(--text-primary); width:90px; }
.settings-account-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.danger-settings-section { border-color:rgba(207,102,121,0.35); background:rgba(207,102,121,0.04); }
.btn-reset-danger { width:100%; margin-top:0.85rem; padding:0.75rem 1rem; border-radius:8px; border:1px solid rgba(207,102,121,0.65); background:rgba(207,102,121,0.08); color:var(--danger); font-weight:700; cursor:pointer; text-transform:uppercase; letter-spacing:0.5px; transition:0.2s; }
.btn-reset-danger:hover { background:rgba(207,102,121,0.16); border-color:var(--danger); color:#ff9aa9; transform:translateY(-1px); }
.discord-profile-button { width:100%; display:flex; align-items:center; justify-content:center; gap:0.7rem; padding:0.85rem; border-radius:10px; border:1px solid var(--border); background:#252525; color:var(--text-primary); cursor:pointer; transition:0.2s; }
.discord-profile-button:hover { border-color:var(--accent); background:rgba(187,134,252,0.08); transform:translateY(-1px); }
.discord-profile-button img { width:28px; height:28px; object-fit:contain; }
.discord-info-modal { width:380px; }
.discord-info-header { display:flex; align-items:center; gap:0.75rem; justify-content:center; margin-bottom:1rem; }
.discord-info-header img { width:34px; height:34px; object-fit:contain; }
.discord-info-header h2 { margin:0; }
.discord-info-content { background:#222; border:1px solid var(--border); border-radius:10px; padding:1rem; display:flex; flex-direction:column; gap:0.65rem; color:var(--text-secondary); }
.discord-info-content strong { color:var(--accent); }
.construction-card { min-height:380px; display:flex; flex-direction:column; }
.construction-content { flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; gap:0.75rem; color:var(--text-secondary); }
.construction-icon { width:58px; height:58px; display:flex; align-items:center; justify-content:center; border-radius:18px; background:rgba(187,134,252,0.08); border:1px solid var(--border); color:var(--accent); font-size:1.7rem; }
.construction-content h3 { color:var(--text-primary); font-size:1.2rem; }
.construction-content p { max-width:520px; line-height:1.5; }
#settingsModal, #discordInfoModal { z-index:1500; }

/* Calendar labels: image first, tags below image, values at bottom */
.calendar-day.has-drop-icon .calendar-labels { top:49px; }
.calendar-day:not(.has-drop-icon) .calendar-labels { top:23px; }
.calendar-labels { position:absolute; left:50%; transform:translateX(-50%); display:flex; justify-content:center; gap:3px; max-width:94%; flex-wrap:wrap; pointer-events:none; }
.calendar-day-values { padding-top:18px; }
.calendar-day.has-drop-icon .calendar-day-values { padding-top:40px; }

@media (max-width: 1100px) {
    .profile-mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .nav-right { display:flex !important; align-items:center; justify-content:space-between; gap:0.5rem; width:100%; }
    .online-pill, .nav-user-name, .account-btn { flex:0 1 auto; width:auto; min-width:0; white-space:nowrap; }
    .nav-user-name { max-width:42vw; justify-content:center; padding-left:0.65rem; padding-right:0.65rem; }
    .online-pill { max-width:30vw; }
    .account-btn { flex:0 0 auto; }
    .settings-price-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); gap:0.35rem; }
    .settings-price-grid .price-input-group { padding:6px; gap:3px; }
    .settings-price-grid .price-input-group label { font-size:0.56rem; }
    .settings-price-grid .price-input-group input { width:100%; font-size:0.7rem; }
    .profile-chart-box { height:180px; padding:0.55rem; }
    .profile-mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .profile-main-actions, .settings-account-actions { grid-template-columns:1fr; }
    .discord-info-modal, .settings-modal-box { width:min(96vw, 680px); }
    .calendar-day.has-drop-icon .calendar-labels { top:35px; }
    .calendar-day:not(.has-drop-icon) .calendar-labels { top:19px; }
    .calendar-day-values { padding-top:14px; }
    .calendar-day.has-drop-icon .calendar-day-values { padding-top:31px; }
}

@media (max-width: 480px) {
    .nav-right { gap:0.35rem; }
    .online-pill, .nav-user-name, .account-btn { padding:3px 6px; font-size:0.61rem; }
    .nav-user-name { max-width:38vw; }
    .online-pill { max-width:28vw; }
    .profile-chart-box { height:160px; }
    .profile-mini-stats { grid-template-columns:1fr 1fr; gap:0.4rem; }
    .profile-mini-stats div { padding:0.45rem; }
    .settings-price-grid .price-input-group { padding:5px 4px; }
    .settings-price-grid .price-input-group label { font-size:0.5rem; }
    .settings-price-grid .price-input-group input { font-size:0.64rem; }
    .calendar-day.has-drop-icon .calendar-labels { top:32px; }
    .calendar-day.has-drop-icon .calendar-day-values { padding-top:29px; }
}
.profile-main-actions { display:flex; gap:10px; }
.profile-main-actions .btn-outline { flex:1; }
@media (max-width: 768px) { .profile-main-actions { flex-direction:column; } }

/* Profile/statistics final layout patch */
.stats-modal-box { width: min(880px, 96vw); }
#statsModal { z-index: 1500; }
.profile-main-actions { display:grid !important; grid-template-columns:1fr !important; gap:10px; margin-bottom:1rem; }
.profile-main-actions.has-user { grid-template-columns:repeat(2, minmax(0, 1fr)) !important; }
.profile-main-actions .btn-outline { width:100%; }
.profile-footer-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.profile-footer-actions #profileLogoutButton { margin-right:auto; }
.profile-footer-actions #adminPanelButton { order:2; }
.profile-footer-actions button[data-i18n="btnClose"] { order:3; }
.discord-profile-button span { font-weight:600; }

@media (max-width: 768px) {
    .profile-footer-actions { flex-direction:row; align-items:center; justify-content:flex-end; }
    .profile-footer-actions #profileLogoutButton { margin-right:auto; }
    .profile-main-actions.has-user { grid-template-columns:repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 480px) {
    .profile-footer-actions { gap:8px; }
    .profile-footer-actions .btn,
    .profile-footer-actions .btn-outline { padding:0.55rem 0.7rem; font-size:0.72rem; }
}

/* --- Backup, diagnóstico e painel admin --- */
.settings-data-section .profile-grid-actions,
.danger-settings-section .profile-grid-actions {
    margin-top: 0.75rem;
}

.backup-modal-box,
.diagnostics-modal-box,
.admin-modal-box {
    width: min(980px, 94vw);
    max-height: 88vh;
    overflow-y: auto;
}

.backup-summary-grid,
.diagnostic-card-grid,
.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin: 1rem 0;
}

.backup-summary-card,
.diagnostic-card,
.admin-summary-card {
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.025);
    border-radius: 12px;
    padding: 0.85rem;
    min-height: 72px;
}

.backup-summary-card span,
.diagnostic-card span,
.admin-summary-card span {
    display: block;
    color: var(--text-secondary);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.backup-summary-card strong,
.diagnostic-card strong,
.admin-summary-card strong {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.diagnostics-report {
    width: 100%;
    min-height: 330px;
    resize: vertical;
    font-family: Consolas, Monaco, monospace;
    font-size: 0.78rem;
    line-height: 1.45;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 1rem;
}

.danger-outline {
    border-color: rgba(255, 90, 90, 0.45) !important;
    color: #ff9d9d !important;
}

#migrationBackupStatus.warning {
    color: var(--text-secondary);
}

.admin-panel-header,
.profile-section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.admin-tools-row {
    display: grid;
    grid-template-columns: 1fr 180px auto;
    gap: 0.75rem;
    align-items: center;
    margin: 1rem 0;
}

.admin-tools-row input,
.admin-tools-row select {
    width: 100%;
    padding: 0.75rem;
    background: var(--input-bg);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 10px;
}

.admin-user-row {
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    padding: 0.85rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.admin-user-row.warning {
    border-color: rgba(255, 198, 87, 0.55);
}

.admin-user-main {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.admin-user-main small {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.admin-user-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    align-items: center;
    max-width: 55%;
}

.sync-badge.warning {
    color: #ffd98c;
    background: rgba(255, 198, 87, 0.13);
    border-color: rgba(255, 198, 87, 0.35);
}

@media (max-width: 760px) {
    .backup-summary-grid,
    .diagnostic-card-grid,
    .admin-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-tools-row {
        grid-template-columns: 1fr;
    }

    .admin-user-row {
        flex-direction: column;
    }

    .admin-user-meta {
        justify-content: flex-start;
        max-width: 100%;
    }
}

/* Security/Admin UI hotfix */
#backupModal,
#diagnosticsModal {
    z-index: 1700;
}

#backupModal .modal-box,
#diagnosticsModal .modal-box {
    position: relative;
}

.profile-footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-footer-actions #profileLogoutButton,
.profile-footer-actions #adminPanelButton,
.profile-footer-actions button[data-i18n="btnClose"] {
    margin: 0 !important;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-footer-actions #profileLogoutButton { order: 1; }
.profile-footer-actions #adminPanelButton { order: 2; }
.profile-footer-actions button[data-i18n="btnClose"] { order: 3; }

@media (max-width: 520px) {
    .profile-footer-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .profile-footer-actions #profileLogoutButton,
    .profile-footer-actions #adminPanelButton,
    .profile-footer-actions button[data-i18n="btnClose"] {
        width: 100%;
    }
}

/* UX polish patch v2.0: conforto visual, hierarquia e fluidez */
:root {
    --surface-soft: rgba(255,255,255,0.025);
    --surface-hover: rgba(255,255,255,0.045);
    --accent-soft: rgba(187, 134, 252, 0.10);
    --success-soft: rgba(3, 218, 198, 0.10);
    --danger-soft: rgba(207, 102, 121, 0.10);
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.20);
    --radius-md: 12px;
    --radius-lg: 16px;
}

body {
    background:
        radial-gradient(circle at 18% 0%, rgba(187, 134, 252, 0.08), transparent 30rem),
        radial-gradient(circle at 90% 12%, rgba(3, 218, 198, 0.035), transparent 26rem),
        var(--bg-color);
}

main {
    padding-top: 1.35rem;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin: 0 0 1rem;
}
.page-heading h1 {
    margin: 0 0 0.25rem;
    color: var(--text-primary);
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    font-weight: 750;
    letter-spacing: -0.03em;
}
.page-heading p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.45;
}

.card {
    border-radius: var(--radius-lg);
    border-color: rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent), var(--card-bg);
    box-shadow: var(--shadow-soft);
    padding: 1.35rem;
}
.card h2 {
    color: var(--text-primary);
    letter-spacing: -0.01em;
    text-transform: none;
    font-size: 1.15rem;
}
.card h2::after,
.drops-column h3::after,
.profile-section h3::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: var(--accent);
    opacity: 0.65;
}
.action-card {
    border-color: rgba(187, 134, 252, 0.18);
}

textarea,
input[type="text"],
input[type="number"],
input[type="password"],
select {
    border-radius: 10px;
    border-color: rgba(255,255,255,0.08);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
textarea:focus,
input:focus,
select:focus {
    border-color: rgba(187,134,252,0.75);
    box-shadow: 0 0 0 3px rgba(187,134,252,0.12);
}

.btn,
.btn-icon,
.btn-outline,
.btn-reset-danger {
    border-radius: 10px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease;
}
.btn:active,
.btn-icon:active,
.btn-outline:active,
.btn-reset-danger:active {
    transform: translateY(0) scale(0.985);
}
.btn-outline {
    background: rgba(255,255,255,0.018);
    border-color: rgba(255,255,255,0.10);
    color: var(--text-primary);
}
.btn-outline:hover {
    border-color: rgba(187,134,252,0.65);
    background: var(--accent-soft);
}
.btn-danger,
.btn-reset-danger,
.danger-outline {
    box-shadow: none;
}

.stat-box,
.split-card,
.backup-summary-card,
.diagnostic-card,
.admin-summary-card,
.profile-mini-stats div {
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.14);
}
.stat-box:hover,
.split-card:hover,
.drop-item:hover,
.hunt-item:hover,
.split-history-card:hover,
.admin-user-row:hover {
    transform: translateY(-1px);
    border-color: rgba(187,134,252,0.38);
}
.stat-label {
    color: var(--text-secondary);
    font-size: 0.72rem;
}
.stat-value {
    letter-spacing: -0.03em;
}

.hunt-item,
.drop-item,
.split-history-card,
.admin-user-row,
.account-card,
.profile-section {
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.025);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 5px 16px rgba(0,0,0,0.12);
}
.hunt-item,
.drop-item,
.admin-user-row,
.split-history-card {
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.drop-name,
.account-name {
    color: var(--text-primary);
}
.drop-date,
.hunt-meta,
.split-history-meta {
    color: var(--text-secondary);
}

.drops-container {
    gap: 1.25rem;
}
.drops-column {
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-lg);
    padding: 1rem;
}
.drops-column h3 {
    border: none;
    color: var(--text-primary);
    font-size: 0.86rem;
    letter-spacing: 0.05em;
}

.empty-state-card {
    border: 1px dashed rgba(255,255,255,0.13);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.018);
    color: var(--text-secondary);
    text-align: center;
    padding: 1.35rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}
.empty-state-card .empty-state-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    border: 1px solid rgba(187,134,252,0.25);
    background: rgba(187,134,252,0.08);
    font-weight: 700;
}
.empty-state-card strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}
.empty-state-card p {
    max-width: 420px;
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
}
.empty-state-card .empty-action {
    width: auto;
    min-width: 160px;
    margin-top: 0.35rem;
    padding: 0.65rem 1rem;
}
.table-empty-cell {
    text-align: center !important;
    padding: 1.5rem !important;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.015);
}

.modal-overlay {
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(8px);
    animation: overlayFade .16s ease;
}
.modal-box {
    border-radius: 18px;
    border-color: rgba(255,255,255,0.10);
    background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent), var(--card-bg);
    box-shadow: 0 28px 80px rgba(0,0,0,0.45);
    animation: modalLift .20s ease-out;
}
.modal-actions {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 1rem;
    margin-top: 1rem;
}
@keyframes overlayFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalLift { from { opacity: 0; transform: translateY(10px) scale(0.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

.toast {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 999px;
    padding: 0.85rem 1rem;
    background: #262626;
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.toast .toast-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: var(--success-soft);
    color: var(--success);
}
.toast.error .toast-icon { background: var(--danger-soft); color: var(--danger); }
.toast.warning .toast-icon { background: rgba(255,183,77,0.12); color: var(--warning); }
.toast.error { background: #2b2024; color: var(--text-primary); border-color: rgba(207,102,121,0.28); }
.toast.warning { background: #2c261b; color: var(--text-primary); border-color: rgba(255,183,77,0.24); }

.nav-sync-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.10);
    background: #252525;
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}
.nav-sync-pill.online { color: var(--success); border-color: rgba(3,218,198,0.35); background: rgba(3,218,198,0.045); }
.nav-sync-pill.syncing { color: var(--accent); border-color: rgba(187,134,252,0.35); background: rgba(187,134,252,0.06); }
.nav-sync-pill.warning { color: var(--warning); border-color: rgba(255,183,77,0.35); background: rgba(255,183,77,0.06); }
.nav-sync-pill.offline { color: var(--text-secondary); }
.profile-mode-note {
    margin-top: 0.7rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.profile-header {
    background:
        linear-gradient(135deg, rgba(187,134,252,0.12), transparent 45%),
        rgba(255,255,255,0.018);
}
.profile-avatar {
    box-shadow: 0 8px 30px rgba(187,134,252,0.20);
}
.profile-contact-section {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.85rem;
}
.profile-contact-section h3 {
    margin: 0;
}
.profile-contact-section h3::after {
    display: none;
}
.discord-profile-button {
    margin: 0;
}

.construction-card {
    border-color: rgba(187,134,252,0.16);
}
.coming-soon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
    width: min(620px, 100%);
}
.coming-soon-grid div {
    text-align: left;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.85rem;
}
.coming-soon-grid strong,
.coming-soon-grid span {
    display: block;
}
.coming-soon-grid strong {
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}
.coming-soon-grid span {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.35;
}

.mini-chart-widget {
    border-radius: 16px;
    border-color: rgba(255,255,255,0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.035), transparent), var(--card-bg);
}

@media (max-width: 768px) {
    main { padding-top: 1rem; }
    .page-heading { margin-bottom: 0.75rem; }
    .page-heading h1 { font-size: 1.25rem; }
    .page-heading p { font-size: 0.82rem; }
    .card { padding: 1rem; box-shadow: 0 8px 22px rgba(0,0,0,0.16); }
    .drops-column { padding: 0.8rem; }
    .profile-contact-section { grid-template-columns: 1fr; }
    .coming-soon-grid { grid-template-columns: 1fr; }
    .nav-sync-pill { min-height: 28px; padding: 3px 7px; font-size: 0.62rem; }
    .nav-right { flex-wrap: wrap; }
    .market-prices { flex-basis: 100%; }
    .modal-box { border-radius: 16px; }
    .empty-state-card { padding: 1rem 0.75rem; }
}

@media (max-width: 520px) {
    .nav-sync-pill { display: none; }
    .nav-right { gap: 0.35rem; }
    .toast { border-radius: 16px; justify-content: center; }
}


/* UX corrections patch: restore solid background, simpler cards and no top save badge */
body {
    background: var(--bg-color) !important;
}

.nav-sync-pill {
    display: none !important;
}

.page-heading {
    margin-bottom: 0.85rem;
}
.page-heading p {
    display: none !important;
}

.card {
    background: var(--card-bg) !important;
    box-shadow: none !important;
    border-color: var(--border) !important;
}

.stat-box,
.split-card,
.backup-summary-card,
.diagnostic-card,
.admin-summary-card,
.profile-mini-stats div,
.hunt-item,
.drop-item,
.split-history-card,
.admin-user-row,
.account-card,
.profile-section,
.drops-column,
.construction-card,
.empty-state-card,
.profile-chart-box {
    box-shadow: none !important;
}

.stat-box:hover,
.split-card:hover,
.drop-item:hover,
.hunt-item:hover,
.split-history-card:hover,
.admin-user-row:hover {
    transform: none !important;
}

.modal-box {
    box-shadow: 0 10px 28px rgba(0,0,0,0.32) !important;
}

.btn,
.btn-icon,
.btn-outline,
.btn-reset-danger {
    box-shadow: none !important;
}
.btn:hover,
.btn-icon:hover,
.btn-outline:hover,
.btn-reset-danger:hover {
    box-shadow: none !important;
}


/* Design cleanup patch: remove artificial shadows/page headings and keep visual neutral */
.tab-content > .page-heading {
    display: none !important;
}

*,
*::before,
*::after {
    box-shadow: none !important;
    text-shadow: none !important;
    filter: none !important;
}

.card,
.modal-box,
.mini-chart-widget,
.stat-box,
.split-card,
.drop-item,
.hunt-item,
.drops-column,
.profile-section,
.account-card,
.empty-state-card,
.construction-card,
.admin-user-row,
.backup-summary-card,
.diagnostic-card,
.profile-chart-box {
    box-shadow: none !important;
}

.btn:hover,
.btn-icon:hover,
.btn-outline:hover,
.drop-item:hover,
.hunt-item:hover,
.card:hover {
    transform: none !important;
}

.mini-chart-widget {
    background: var(--card-bg) !important;
}


/* Amalyzer_1: calendário sem sobreposição entre ícone, tags e valores */
.calendar-day {
    display: block;
    position: relative;
    overflow: hidden;
}

.calendar-day-main {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding-top: 10px;
    padding-bottom: 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
}

.calendar-drop-icon,
.calendar-day img.calendar-drop-icon {
    position: static !important;
    transform: none !important;
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    margin: 0 0 1px;
    object-fit: contain;
    z-index: auto;
    flex: 0 0 auto;
}

.calendar-labels,
.calendar-day.has-drop-icon .calendar-labels,
.calendar-day:not(.has-drop-icon) .calendar-labels {
    position: static !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: auto !important;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    pointer-events: none;
    margin: 0 0 2px;
    z-index: auto;
    flex: 0 0 auto;
}

.calendar-day-values,
.calendar-day.has-drop-icon .calendar-day-values {
    width: 100%;
    margin-top: auto;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 1px;
    line-height: 1.05;
    flex: 0 0 auto;
}

.calendar-day.has-drop-icon .day-profit,
.calendar-day.has-calendar-label .day-profit,
.calendar-day.has-drop-icon .calendar-day-values .day-profit {
    margin-top: 0 !important;
}

.day-profit,
.day-tc,
.day-real {
    max-width: 100%;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .calendar-day-main {
        padding-top: 8px;
        gap: 1px;
    }

    .calendar-drop-icon,
    .calendar-day img.calendar-drop-icon {
        width: 20px;
        height: 20px;
        max-width: 20px;
        max-height: 20px;
        margin-bottom: 0;
    }

    .calendar-labels {
        gap: 2px;
        margin-bottom: 1px;
    }

    .calendar-mini-label {
        font-size: 0.38rem;
        padding: 1px 2px;
    }
}

@media (max-width: 480px) {
    .calendar-day-main {
        padding-top: 7px;
    }

    .calendar-drop-icon,
    .calendar-day img.calendar-drop-icon {
        width: 17px;
        height: 17px;
        max-width: 17px;
        max-height: 17px;
    }

    .calendar-mini-label {
        font-size: 0.34rem;
        padding: 1px 1px;
    }
}

/* Amalyzer_2 - limpeza visual e ajustes funcionais */
* {
    box-shadow: none !important;
}

.page-heading,
.tab-content > .page-heading {
    display: none !important;
}

.today-action-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.today-action-buttons .btn,
.today-action-buttons .btn-outline {
    min-width: 150px;
}

.calendar-header-refined {
    align-items: center;
}

.calendar-month-control {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 180px;
}

.calendar-month-control h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.01em;
    text-transform: none;
    line-height: 1.15;
    position: relative;
    padding-bottom: 0.35rem;
}

.calendar-month-control h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 28px;
    height: 1px;
    transform: translateX(-50%);
    background: var(--accent);
}

.calendar-today-btn {
    padding: 5px 10px;
    font-size: 0.72rem;
}

.cost-inline-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    align-items: end;
}

.input-row.compact-cost {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0;
}

.input-row.compact-cost label {
    font-size: 0.72rem;
    line-height: 1.15;
}

.input-row.compact-cost input {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.construction-content.construction-minimal {
    max-width: 460px;
    margin: 0 auto;
    text-align: center;
}

.diagnostics-report {
    min-height: 420px;
}

.calendar-day {
    overflow: hidden;
}

.calendar-day-main {
    min-height: 0;
    overflow: hidden;
}

.calendar-labels {
    order: 2;
}

.calendar-day-values {
    order: 3;
}

.calendar-drop-icon {
    order: 1;
}

@media (max-width: 768px) {
    .today-action-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .today-action-buttons .btn,
    .today-action-buttons .btn-outline {
        width: 100%;
        min-width: 0;
    }

    .cost-inline-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .input-row.compact-cost label {
        font-size: 0.62rem;
    }

    .calendar-month-control {
        min-width: 130px;
    }
}

@media (max-width: 480px) {
    .cost-inline-row {
        grid-template-columns: 1fr;
    }
}


/* Amalyzer_3: pequenos ajustes de layout */
.today-action-buttons {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
}
.today-action-buttons .btn {
    min-width: 150px;
}
.today-action-buttons .btn:last-child {
    margin-left: auto;
}

.backup-section-block {
    margin-top: 1rem;
}
.diagnostics-section-block {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Calendário: garante espaço para imagem, tags, gold, TC e R$ sem sobreposição */
.calendar-day {
    height: 126px !important;
    overflow: hidden !important;
}
.calendar-day-main {
    height: 100% !important;
    padding: 12px 2px 4px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    overflow: hidden !important;
}
.calendar-drop-icon,
.calendar-day img.calendar-drop-icon {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    margin: 0 !important;
    flex: 0 0 auto !important;
    object-fit: contain !important;
}
.calendar-labels,
.calendar-day.has-drop-icon .calendar-labels,
.calendar-day:not(.has-drop-icon) .calendar-labels {
    position: static !important;
    transform: none !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 3px !important;
    flex: 0 0 auto !important;
}
.calendar-mini-label {
    font-size: 0.47rem !important;
    line-height: 1 !important;
    padding: 1px 3px !important;
}
.calendar-day-values,
.calendar-day.has-drop-icon .calendar-day-values {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1px !important;
    line-height: 1.05 !important;
    flex: 0 0 auto !important;
}
.day-profit,
.day-tc,
.day-real {
    font-size: 0.64rem !important;
    line-height: 1.05 !important;
    white-space: nowrap !important;
}

@media (max-width: 768px) {
    .today-action-buttons {
        flex-direction: row !important;
        justify-content: space-between !important;
    }
    .today-action-buttons .btn {
        width: auto !important;
        min-width: 0 !important;
        flex: 1 1 0;
    }
    .calendar-day {
        height: 92px !important;
    }
    .calendar-day-main {
        padding: 9px 1px 3px !important;
        gap: 1px !important;
    }
    .calendar-drop-icon,
    .calendar-day img.calendar-drop-icon {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
    }
    .calendar-mini-label {
        font-size: 0.34rem !important;
        padding: 1px 2px !important;
    }
    .day-profit,
    .day-tc,
    .day-real {
        font-size: 0.45rem !important;
    }
}

/* Amalyzer_5: ajustes de calendário, backup e admin */
.calendar-day {
    height: 140px !important;
    min-height: 140px !important;
    overflow: hidden !important;
}
.calendar-day-main {
    padding: 14px 3px 5px !important;
    justify-content: flex-start !important;
    gap: 2px !important;
}
.calendar-drop-icon,
.calendar-day img.calendar-drop-icon {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
}
.calendar-mini-label {
    font-size: 0.46rem !important;
    padding: 1px 3px !important;
}
.day-profit,
.day-tc,
.day-real {
    font-size: 0.62rem !important;
    line-height: 1.04 !important;
}
.calendar-day-values,
.calendar-day.has-drop-icon .calendar-day-values {
    gap: 0 !important;
}
.backup-section-block .profile-grid-actions .btn-outline {
    margin-top: 0 !important;
    min-height: 38px;
}
.profile-footer-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.65rem !important;
    flex-wrap: wrap !important;
}
.profile-footer-actions .btn,
.profile-footer-actions .btn-outline {
    width: auto !important;
    margin-top: 0 !important;
    min-width: 120px;
    min-height: 40px;
    padding: 0.65rem 1rem !important;
}
.profile-footer-actions #profileLogoutButton {
    margin-right: auto !important;
}
.profile-footer-actions #adminPanelButton {
    margin-left: 0 !important;
    order: 2;
}
.profile-footer-actions button[data-i18n="btnClose"] {
    order: 3;
}
.admin-modal-box {
    width: min(1040px, 94vw) !important;
}
.admin-summary-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
}
.admin-summary-card {
    min-height: 56px !important;
    padding: 0.65rem !important;
    border-radius: 8px !important;
}
.admin-summary-card span {
    font-size: 0.62rem !important;
    margin-bottom: 0.2rem !important;
}
.admin-summary-card strong {
    font-size: 0.95rem !important;
}
.admin-users-list {
    gap: 0.45rem !important;
}
.admin-user-row-compact {
    display: grid !important;
    grid-template-columns: minmax(170px, 1.25fr) minmax(145px, 0.8fr) minmax(170px, auto) minmax(165px, 0.9fr) !important;
    align-items: center !important;
    gap: 0.65rem !important;
    padding: 0.55rem 0.7rem !important;
    margin-bottom: 0.45rem !important;
    border-radius: 8px !important;
}
.admin-user-identity {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
}
.admin-user-identity strong {
    color: var(--text-primary);
    font-size: 0.86rem;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-user-identity span,
.admin-user-stats,
.admin-user-dates {
    color: var(--text-secondary);
    font-size: 0.68rem;
    line-height: 1.15;
}
.admin-user-stats {
    white-space: nowrap;
}
.admin-user-badges {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.admin-user-badges .sync-badge {
    font-size: 0.62rem;
    padding: 0.22rem 0.45rem;
}
.admin-user-dates {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.1rem;
}
@media (max-width: 900px) {
    .admin-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
    .admin-user-row-compact {
        grid-template-columns: 1fr auto !important;
    }
    .admin-user-stats,
    .admin-user-dates {
        grid-column: 1 / -1;
        align-items: flex-start;
    }
    .admin-user-badges {
        justify-content: flex-end;
    }
}
@media (max-width: 768px) {
    .calendar-day {
        height: 98px !important;
        min-height: 98px !important;
    }
    .calendar-day-main {
        padding: 8px 1px 3px !important;
        gap: 1px !important;
    }
    .calendar-drop-icon,
    .calendar-day img.calendar-drop-icon {
        width: 21px !important;
        height: 21px !important;
        max-width: 21px !important;
        max-height: 21px !important;
    }
    .calendar-mini-label {
        font-size: 0.34rem !important;
        padding: 1px 2px !important;
    }
    .day-profit,
    .day-tc,
    .day-real {
        font-size: 0.44rem !important;
    }
    .profile-footer-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    .profile-footer-actions .btn,
    .profile-footer-actions .btn-outline {
        width: 100% !important;
    }
    .profile-footer-actions #profileLogoutButton {
        margin-right: 0 !important;
    }
}
@media (max-width: 560px) {
    .admin-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .admin-user-row-compact {
        grid-template-columns: 1fr !important;
    }
    .admin-user-badges,
    .admin-user-dates {
        justify-content: flex-start;
        align-items: flex-start;
    }
}


/* Amalyzer_6: calendário mais compacto, mantendo imagem/tags/valores visíveis */
.calendar-grid {
    gap: 5px !important;
}

.calendar-day {
    height: 112px !important;
    min-height: 112px !important;
    padding: 4px !important;
    overflow: hidden !important;
}

.calendar-day-main {
    height: 100% !important;
    padding: 11px 2px 4px !important;
    box-sizing: border-box !important;
    justify-content: center !important;
    gap: 1px !important;
    overflow: hidden !important;
}

.calendar-drop-icon,
.calendar-day img.calendar-drop-icon {
    width: 32px !important;
    height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    margin: 0 !important;
}

.calendar-labels,
.calendar-day.has-drop-icon .calendar-labels,
.calendar-day:not(.has-drop-icon) .calendar-labels {
    margin: 0 !important;
    gap: 2px !important;
    flex-shrink: 0 !important;
}

.calendar-mini-label {
    font-size: 0.44rem !important;
    line-height: 1 !important;
    padding: 1px 3px !important;
}

.calendar-day-values,
.calendar-day.has-drop-icon .calendar-day-values {
    gap: 0 !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
}

.day-profit,
.day-tc,
.day-real {
    font-size: 0.58rem !important;
    line-height: 1.02 !important;
    white-space: nowrap !important;
}

.day-number {
    top: 4px !important;
    left: 6px !important;
}

@media (max-width: 768px) {
    .calendar-grid {
        gap: 4px !important;
    }

    .calendar-day {
        height: 86px !important;
        min-height: 86px !important;
        padding: 3px !important;
    }

    .calendar-day-main {
        padding: 8px 1px 3px !important;
        gap: 0 !important;
    }

    .calendar-drop-icon,
    .calendar-day img.calendar-drop-icon {
        width: 20px !important;
        height: 20px !important;
        max-width: 20px !important;
        max-height: 20px !important;
    }

    .calendar-mini-label {
        font-size: 0.32rem !important;
        padding: 1px 2px !important;
    }

    .day-profit,
    .day-tc,
    .day-real {
        font-size: 0.42rem !important;
        line-height: 1.02 !important;
    }
}

/* Amalyzer_8 - Equipes Online */
.teams-page-layout { display: grid; gap: 1rem; }
.teams-hero-card { display:flex; justify-content:space-between; align-items:center; gap:1rem; }
.teams-hero-main h2 { margin:0 0 .35rem 0; }
.teams-hero-main p { margin:0; color:var(--text-secondary); font-size:.9rem; }
.compact-card { padding: 1rem; }
.join-team-row { display:flex; gap:.6rem; align-items:center; flex-wrap:wrap; }
.join-team-row input, .join-team-row select { flex:1; min-width:140px; }
.section-title-row { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:.75rem; }
.online-teams-list { display:grid; gap:.65rem; }
.online-team-card { display:flex; align-items:center; gap:.75rem; padding:.75rem; border:1px solid var(--border); border-radius:10px; background:rgba(255,255,255,.02); cursor:pointer; }
.online-team-card:hover { border-color:var(--accent); }
.online-team-icon { width:42px; height:42px; display:flex; align-items:center; justify-content:center; border-radius:9px; background:#151515; flex:0 0 auto; }
.online-team-icon.big { width:64px; height:64px; }
.online-team-fallback-icon { color:var(--accent); font-size:1.2rem; }
.online-team-info { min-width:0; flex:1; }
.online-team-name { font-weight:700; color:var(--text-primary); }
.online-team-meta { color:var(--text-secondary); font-size:.78rem; margin-top:.2rem; }
.team-icon-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(48px,1fr)); gap:.45rem; max-height:190px; overflow:auto; padding:.5rem; border:1px solid var(--border); border-radius:8px; background:#151515; }
.online-team-icon-option { cursor:pointer; padding:.45rem; border:1px solid #333; border-radius:8px; display:flex; align-items:center; justify-content:center; }
.online-team-icon-option.selected { border-color:var(--accent); background:rgba(187,134,252,.12); }
.online-team-custom-preview img { width:42px; height:42px; object-fit:cover; border-radius:8px; margin-top:.5rem; }
.modal-wide { max-width:980px; }
.online-team-details-head { display:flex; gap:1rem; align-items:center; margin-bottom:1rem; }
.online-team-details-head h2 { margin:0; }
.online-team-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.online-team-panel { border:1px solid var(--border); border-radius:10px; padding:1rem; background:rgba(255,255,255,.015); }
.online-team-panel h3 { margin:0 0 .8rem 0; color:var(--accent); font-size:.95rem; }
.online-team-members { display:grid; gap:.5rem; }
.online-member-row { display:flex; justify-content:space-between; align-items:center; gap:.6rem; padding:.55rem; border:1px solid #2a2a2a; border-radius:8px; }
.online-member-row small { display:block; color:var(--text-secondary); font-size:.72rem; margin-top:.18rem; }
.online-member-actions { display:flex; gap:.35rem; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.online-member-actions select { width:auto; min-width:90px; padding:.35rem; font-size:.75rem; }
.online-add-member-box { margin-top:1rem; padding-top:1rem; border-top:1px solid var(--border); }
.online-add-member-box h4 { margin:0 0 .6rem 0; color:var(--text-secondary); font-size:.8rem; text-transform:uppercase; }
.team-events-list { display:grid; gap:.45rem; max-height:330px; overflow:auto; }
.team-event-row { border:1px solid #2a2a2a; border-radius:8px; padding:.55rem; background:#151515; }
.team-event-row.chat { border-color:rgba(187,134,252,.35); }
.team-event-row strong { color:var(--accent); margin-right:.35rem; }
.team-event-row small { display:block; color:var(--text-secondary); margin-top:.25rem; font-size:.7rem; }
.team-chat-send { display:grid; gap:.5rem; margin-top:.8rem; }
.team-chat-send textarea { min-height:80px; }
.online-team-badge { display:inline-flex; margin-left:.4rem; padding:.12rem .4rem; border:1px solid rgba(187,134,252,.35); border-radius:999px; color:var(--accent); font-size:.68rem; font-weight:500; vertical-align:middle; }
.member-badges { display:inline-flex; align-items:center; gap:.25rem; margin-left:.35rem; flex-wrap:wrap; }
.mini-role-badge { display:inline-flex; align-items:center; padding:.08rem .38rem; border:1px solid rgba(187,134,252,.38); border-radius:999px; color:var(--accent); font-size:.64rem; font-weight:700; line-height:1.25; vertical-align:middle; }
.mini-role-badge.muted { color:var(--text-secondary); border-color:rgba(255,255,255,.18); }

@media (max-width: 760px) {
  .teams-hero-card { align-items:flex-start; flex-direction:column; }
  .join-team-row { flex-direction:column; align-items:stretch; }
  .join-team-row input, .join-team-row select, .join-team-row button { width:100%; }
  .online-team-detail-grid { grid-template-columns:1fr; }
  .online-member-row { align-items:flex-start; flex-direction:column; }
  .online-member-actions { justify-content:flex-start; width:100%; }
}

/* Amalyzer_9 - ajustes de Equipes Online */
.teams-quick-card { display:grid; gap:.75rem; padding:1rem; }
.teams-quick-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.teams-quick-header h2 { margin:0 0 .2rem 0; }
.teams-quick-header p { margin:0; color:var(--text-secondary); font-size:.82rem; }
.join-team-row.compact { gap:.5rem; }
.join-team-row.compact input { min-height:34px; }
.join-team-row.compact button { min-height:34px; }
.online-team-card.compact-request-card { padding:.6rem; }
.online-team-card-actions, .online-request-actions { display:flex; gap:.4rem; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.online-team-details-head.extended { display:grid; grid-template-columns:auto 1fr auto; gap:1rem; align-items:center; }
.online-team-details-title { min-width:0; }
.online-team-detail-actions { display:flex; gap:.45rem; align-items:center; flex-wrap:wrap; justify-content:flex-end; }
.online-team-main-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(280px,.9fr); gap:1rem; align-items:start; }
.online-team-side-panel { display:grid; gap:1rem; }
.online-team-members-panel { min-height:360px; }
.online-member-row.spacious { padding:.7rem .75rem; }
.online-add-member-box.clean { margin:0; padding:1rem; border-top:0; }
.online-add-member-box.clean p { margin:.15rem 0 .7rem 0; }
.join-team-row.single-line { flex-wrap:nowrap; }
.online-team-requests { display:grid; gap:.5rem; }
.online-request-row { display:flex; justify-content:space-between; align-items:center; gap:.6rem; padding:.6rem; border:1px solid #2a2a2a; border-radius:8px; background:#151515; }
.online-request-row small { display:block; color:var(--text-secondary); font-size:.7rem; margin-top:.18rem; }
.online-team-action-list { display:grid; gap:.55rem; }
.online-team-history-content { display:grid; gap:.6rem; max-height:65vh; overflow:auto; }
.modal-small { max-width:460px; }
.compact-danger-zone { margin-top:1rem; padding:.8rem; }
.team-chat-dock { position:fixed; right:18px; bottom:18px; width:340px; max-width:calc(100vw - 24px); background:var(--card-bg); border:1px solid var(--border); border-radius:12px; z-index:2600; overflow:hidden; }
.team-chat-header { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.7rem .8rem; background:#161616; border-bottom:1px solid var(--border); cursor:pointer; }
.team-chat-header strong { display:block; color:var(--text-primary); font-size:.9rem; }
.team-chat-header small { display:block; color:var(--text-secondary); font-size:.68rem; margin-top:.1rem; }
.team-chat-header-actions { display:flex; gap:.25rem; align-items:center; }
.team-chat-body { display:grid; grid-template-rows:1fr auto; height:380px; }
.team-chat-dock.minimized .team-chat-body { display:none; }
.team-chat-messages { overflow:auto; padding:.75rem; display:grid; align-content:start; gap:.55rem; }
.team-chat-message { border:1px solid #2a2a2a; border-radius:9px; padding:.55rem; background:#141414; }
.team-chat-message strong { color:var(--accent); font-size:.8rem; }
.team-chat-message p { margin:.25rem 0; white-space:pre-wrap; word-break:break-word; color:var(--text-primary); font-size:.82rem; line-height:1.35; }
.team-chat-message small { color:var(--text-secondary); font-size:.68rem; }
.team-chat-input-row { display:grid; grid-template-columns:1fr auto; gap:.45rem; padding:.65rem; border-top:1px solid var(--border); }
.team-chat-input-row textarea { min-height:42px; max-height:90px; resize:vertical; font-size:.8rem; }
@media (max-width: 760px) {
  .teams-quick-header { align-items:flex-start; flex-direction:column; }
  .online-team-details-head.extended { grid-template-columns:1fr; }
  .online-team-detail-actions { justify-content:flex-start; }
  .online-team-main-layout { grid-template-columns:1fr; }
  .join-team-row.single-line { flex-wrap:wrap; }
  .team-chat-dock { right:8px; bottom:8px; width:calc(100vw - 16px); }
  .team-chat-body { height:360px; }
  .online-request-row { flex-direction:column; align-items:flex-start; }
}

/* Amalyzer_10 - ajustes Equipes Online e chat */
.teams-quick-card {
    padding: .8rem .9rem !important;
    gap: .65rem !important;
}
.teams-quick-header {
    align-items: center !important;
}
.teams-quick-header > div {
    min-width: 0;
}
.teams-quick-header h2 {
    font-size: 1rem !important;
}
.teams-quick-header p {
    font-size: .76rem !important;
}
.teams-quick-header .btn {
    padding: .55rem .85rem !important;
    white-space: nowrap;
}
.join-team-row.compact {
    justify-content: flex-start;
    max-width: 460px;
}
.join-team-row.compact input#onlineTeamJoinCode {
    flex: 0 0 135px !important;
    width: 135px !important;
    min-width: 135px !important;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.join-team-row.compact button {
    flex: 0 0 auto;
    min-width: 132px;
    padding-inline: .75rem !important;
}
.modal-wide {
    max-width: 1180px !important;
    width: min(1180px, calc(100vw - 34px)) !important;
}
.online-team-details-head.extended {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.1rem;
}
.online-team-main-layout {
    grid-template-columns: minmax(560px, 2fr) minmax(270px, .78fr) !important;
    gap: 1.25rem !important;
}
.online-team-members-panel {
    min-height: 470px !important;
    padding: 1.15rem !important;
}
.online-team-side-panel {
    gap: .9rem !important;
}
.online-member-row.spacious {
    padding: .85rem .95rem !important;
    min-height: 58px;
}
.online-member-row strong {
    font-size: .92rem;
}
.online-member-row small {
    font-size: .74rem;
}
.online-member-actions .btn-icon {
    padding: .4rem .55rem !important;
    font-size: .72rem !important;
}
.online-add-member-box.clean {
    padding: .95rem !important;
}
.online-add-member-box.clean h3,
.online-team-panel h3 {
    font-size: .86rem !important;
}
.online-add-member-box.clean p {
    font-size: .73rem !important;
}
.online-team-action-list .btn-outline {
    padding: .55rem .65rem !important;
    font-size: .78rem !important;
}
.team-chat-dock {
    width: 410px !important;
    max-width: calc(100vw - 24px) !important;
    border-radius: 10px !important;
}
.team-chat-header {
    padding: .58rem .7rem !important;
}
.team-chat-header strong {
    font-size: .86rem !important;
}
.team-chat-header small {
    font-size: .65rem !important;
}
.team-chat-body {
    height: 480px !important;
}
.team-chat-messages {
    padding: .65rem !important;
    gap: .42rem !important;
}
.team-chat-message {
    padding: .42rem .5rem !important;
    border-radius: 7px !important;
}
.team-chat-message-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .18rem;
}
.team-chat-message-head strong {
    color: var(--accent);
    font-size: .75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.team-chat-message-head small {
    color: var(--text-secondary);
    font-size: .62rem;
    white-space: nowrap;
}
.team-chat-message p {
    margin: 0 !important;
    font-size: .8rem !important;
    line-height: 1.32 !important;
}
.team-chat-input-row {
    padding: .5rem !important;
    gap: .35rem !important;
    grid-template-columns: 1fr 58px !important;
}
.team-chat-input-row textarea {
    min-height: 44px !important;
    max-height: 86px !important;
    padding: .45rem .5rem !important;
}
.team-chat-input-row .btn {
    min-width: 0 !important;
    padding: .35rem .45rem !important;
    font-size: .72rem !important;
}
@media (max-width: 760px) {
    .teams-quick-header {
        display: grid !important;
        grid-template-columns: 1fr auto;
        align-items: center !important;
    }
    .teams-quick-header p {
        display: none;
    }
    .join-team-row.compact {
        flex-direction: row !important;
        align-items: center !important;
    }
    .join-team-row.compact input#onlineTeamJoinCode {
        flex: 0 0 120px !important;
        width: 120px !important;
        min-width: 120px !important;
    }
    .join-team-row.compact button {
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 112px !important;
        font-size: .72rem !important;
    }
    .online-team-main-layout {
        grid-template-columns: 1fr !important;
    }
    .online-team-members-panel {
        min-height: 340px !important;
    }
    .online-team-details-head.extended {
        grid-template-columns: auto 1fr !important;
    }
    .online-team-detail-actions {
        grid-column: 1 / -1;
        justify-content: flex-start !important;
    }
    .team-chat-dock {
        right: 8px !important;
        bottom: 8px !important;
        width: calc(100vw - 16px) !important;
    }
    .team-chat-body {
        height: 430px !important;
    }
}

/* Amalyzer_11 - entrada de Equipes Online e formato de split */
.teams-entry-card {
    display: grid;
    gap: .95rem;
    padding: 1rem 1.1rem !important;
    border: 1px solid var(--border);
}
.teams-entry-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.teams-entry-copy h2 {
    margin: 0 0 .18rem 0;
    font-size: 1rem;
    letter-spacing: .01em;
}
.teams-entry-copy p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .78rem;
    line-height: 1.35;
}
.teams-create-btn {
    min-width: 132px;
    padding: .62rem 1rem !important;
    border-radius: 9px !important;
    font-weight: 700;
    background: var(--accent) !important;
    color: #0d0d0d !important;
    border: 1px solid var(--accent) !important;
}
.team-code-entry {
    width: fit-content;
    max-width: 100%;
    display: grid;
    gap: .35rem;
    padding: .65rem .7rem;
    border: 1px solid #303030;
    border-radius: 10px;
    background: #151515;
}
.team-code-entry label {
    color: var(--text-secondary);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.team-code-control {
    display: flex;
    align-items: center;
    gap: .45rem;
}
.team-code-control input#onlineTeamJoinCode {
    width: 112px !important;
    min-width: 112px !important;
    flex: 0 0 112px !important;
    min-height: 34px !important;
    padding: .45rem .55rem !important;
    text-transform: uppercase;
    letter-spacing: .05em;
    text-align: center;
}
.team-request-btn {
    min-height: 34px !important;
    padding: .45rem .75rem !important;
    min-width: 122px !important;
    border-radius: 8px !important;
    background: #242424 !important;
    color: var(--accent) !important;
    border: 1px solid rgba(187,134,252,.55) !important;
    font-size: .76rem !important;
    font-weight: 700;
}
.team-request-btn:hover {
    background: rgba(187,134,252,.12) !important;
}
@media (max-width: 760px) {
    .teams-entry-main {
        align-items: flex-start;
    }
    .teams-entry-copy p {
        display: none;
    }
    .teams-create-btn {
        min-width: 118px;
        padding: .52rem .75rem !important;
        font-size: .78rem !important;
    }
    .team-code-entry {
        width: 100%;
        box-sizing: border-box;
    }
    .team-code-control {
        justify-content: space-between;
    }
    .team-code-control input#onlineTeamJoinCode {
        width: 104px !important;
        min-width: 104px !important;
        flex-basis: 104px !important;
    }
    .team-request-btn {
        min-width: 112px !important;
        font-size: .72rem !important;
    }
}

/* Amalyzer_12 - ajustes Equipes Online */
.team-code-control input#onlineTeamJoinCode::placeholder { text-transform:none; letter-spacing:0; }
.teams-entry-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem 1.2rem;
}
.teams-entry-main { min-width: 0; }
.teams-create-btn {
    box-shadow: none !important;
    justify-self: end;
    min-width: 150px;
}
.team-code-entry {
    grid-column: 1 / -1;
    width: max-content;
    padding: .55rem .65rem;
}
.team-code-control input#onlineTeamJoinCode {
    width: 94px !important;
    min-width: 94px !important;
    flex-basis: 94px !important;
}
.team-request-btn {
    background: var(--accent) !important;
    color: #111 !important;
    border-color: var(--accent) !important;
    min-width: 120px !important;
}
.online-team-main-layout.roomy {
    grid-template-columns: minmax(620px, 2.2fr) minmax(285px, .8fr) !important;
    gap: 1.45rem !important;
}
.online-team-members-panel.wide-members {
    min-height: 530px !important;
}
.online-member-row.spacious {
    padding: .9rem 1rem !important;
}
.member-serviceiro-row { gap: .35rem; }
.checkbox-label.compact-check {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    color: var(--text-primary);
}
.checkbox-label.compact-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}
.online-team-icon-edit-row {
    display: flex;
    align-items: center;
    gap: .7rem;
}
.online-team-icon.preview-only {
    cursor: default;
}
.team-danger-zone {
    margin-top: .9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .9rem 1rem;
    border: 1px solid rgba(255, 82, 82, .35);
    border-radius: 10px;
    background: rgba(255, 82, 82, .055);
}
.team-danger-zone h3 { margin: 0 0 .25rem 0; color: #ff7777; font-size: .9rem; }
.team-danger-zone p { margin: 0; color: var(--text-secondary); font-size: .78rem; line-height: 1.35; }
.split-history-actions {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .65rem;
    margin-bottom: .85rem;
}
.stats-table-panel { overflow-x: auto; }
.team-chat-dock {
    width: 455px !important;
    max-width: calc(100vw - 24px) !important;
}
.team-chat-header {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
}
.team-chat-title-wrap { min-width: 0; }
.team-chat-select {
    max-width: 150px;
    height: 30px;
    padding: .25rem .45rem;
    border-radius: 7px;
    border: 1px solid #333;
    background: #111;
    color: var(--text-primary);
    font-size: .72rem;
}
.chat-bank-transfer {
    color: var(--accent);
    font-weight: 800;
}
@media (max-width: 760px) {
    .teams-entry-card {
        grid-template-columns: 1fr;
    }
    .teams-create-btn {
        justify-self: stretch;
        width: 100%;
    }
    .team-code-entry {
        width: 100%;
    }
    .team-code-control {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
    }
    .online-team-main-layout.roomy {
        grid-template-columns: 1fr !important;
    }
    .online-team-members-panel.wide-members {
        min-height: 0 !important;
    }
    .team-danger-zone {
        flex-direction: column;
        align-items: stretch;
    }
    .team-chat-dock {
        width: calc(100vw - 16px) !important;
    }
    .team-chat-header {
        grid-template-columns: 1fr auto;
    }
    .team-chat-select {
        grid-column: 1 / -1;
        max-width: none;
        width: 100%;
    }
}

/* Amalyzer_13 - preferências, criação de equipe e ajustes de equipe online */
.profile-contact-section {
    padding: .55rem .65rem !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
}
.profile-contact-section h3 {
    margin: 0 !important;
    font-size: .78rem !important;
    color: var(--text-secondary) !important;
    font-weight: 600;
}
.discord-profile-button {
    padding: .38rem .55rem !important;
    min-height: 0 !important;
    font-size: .72rem !important;
}
.discord-profile-button img {
    width: 17px !important;
    height: 17px !important;
}
.preferences-modal-box .profile-section,
.preferences-section {
    display: grid;
    gap: .65rem;
}
.pref-check-row {
    padding: .72rem .8rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #151515;
    align-items: flex-start !important;
}
.pref-check-row span {
    font-size: .84rem;
    line-height: 1.35;
}
.compact-number-row {
    grid-template-columns: 1fr 90px;
    align-items: center;
}
.compact-number-row small {
    grid-column: 1 / -1;
}
.create-online-team-box {
    max-width: 540px !important;
}
.online-team-details-title .online-team-meta strong {
    color: var(--accent);
}
.online-team-main-layout.roomy {
    grid-template-columns: minmax(650px, 2.35fr) minmax(300px, .78fr) !important;
}
.online-team-members-panel.wide-members {
    min-height: 560px !important;
}
.online-member-row.spacious {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .9rem;
}
.online-member-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}
#onlineTeamMemberConvertRow {
    padding-top: .7rem;
    border-top: 1px solid var(--border);
}
.team-chat-dock {
    width: 480px !important;
}
@media (max-width: 760px) {
    .profile-contact-section {
        align-items: flex-start;
        flex-direction: column;
    }
    .compact-number-row {
        grid-template-columns: 1fr;
    }
    .online-team-main-layout.roomy {
        grid-template-columns: 1fr !important;
    }
    .online-member-row.spacious {
        grid-template-columns: 1fr;
    }
    .online-member-actions {
        justify-content: flex-start;
    }
    .team-chat-dock {
        width: calc(100vw - 16px) !important;
    }
}

/* Amalyzer_14 - ajustes de perfil, segurança e equipes */
.profile-main-actions:not(.has-user) { display: none !important; }
.profile-main-actions.has-user { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.profile-contact-mini { display:flex; align-items:center; justify-content:center; gap:.45rem; margin:.5rem 0 .75rem; color:var(--text-secondary); font-size:.82rem; }
.discord-icon-mini { width:28px; height:28px; border:1px solid var(--border); border-radius:8px; background:var(--input-bg); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.discord-icon-mini img { width:18px; height:18px; object-fit:contain; opacity:.9; }
.discord-icon-mini:hover { border-color:var(--accent); }
#securityModal, #backupModal, #diagnosticsModal { z-index: 1700; }
.security-modal-box .profile-section { margin-bottom:.85rem; }
.settings-security-entry .btn-outline { min-width:160px; }
.convert-offline-team-btn { margin-top:.55rem; width:fit-content; }
.edit-team-icon-click { width:64px; height:64px; min-width:64px; border:1px solid var(--border); background:var(--input-bg); cursor:pointer; padding:6px; }
.edit-team-icon-click img { width:54px !important; height:54px !important; object-fit:cover; }
.edit-team-icon-click:hover { border-color:var(--accent); }
.team-danger-zone { border:1px solid rgba(255,90,90,.35); background:rgba(255,90,90,.05); border-radius:10px; padding:1rem; }
.team-danger-zone .btn-danger, .team-danger-zone button { white-space:nowrap; }
@media (max-width:768px){
  .profile-main-actions.has-user { grid-template-columns:1fr !important; }
  .settings-security-entry .btn-outline { width:100%; }
}

/* Amalyzer_17 - preços no topo e indicadores abaixo do Resumo */
.mini-tibia-indicators {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}
.tibia-indicator {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 6px 5px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #252525;
    color: var(--text-secondary);
    line-height: 1;
    cursor: default;
}
.tibia-indicator img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    image-rendering: auto;
    margin-bottom: 4px;
}
.tibia-indicator span {
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.62rem;
    color: var(--text-primary);
    text-align: center;
}
.tibia-indicator::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-3px);
    background: #101010;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.74rem;
    line-height: 1.3;
    padding: 7px 9px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease .5s, transform .15s ease .5s;
    z-index: 3000;
}
.tibia-indicator:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
@media (max-width: 900px) {
    .market-prices { gap: 0.5rem; margin-right: 0.25rem; }
    .price-input-group { padding: 5px 7px; }
    .price-input-group input { width: 58px; }
}
@media (max-width: 768px) {
    .nav-right { gap: 0.35rem !important; }
    .mini-tibia-indicators { gap: 6px; margin-top: 8px; padding-top: 8px; }
    .tibia-indicator { padding: 5px 4px; border-radius: 6px; }
    .tibia-indicator img { width: 34px; height: 34px; margin-bottom: 3px; }
    .tibia-indicator span { font-size: 0.56rem; max-width: 66px; }
}
@media (max-width: 420px) {
    .tibia-indicator img { width: 30px; height: 30px; }
    .tibia-indicator span { font-size: 0.5rem; max-width: 58px; }
}

/* Amalyzer_18 - ajustes de chat, preferências e edição de hunts */
.settings-modal-box .interface-preferences-section {
    margin-top: .85rem;
}
.team-chat-dock {
    right: 12px !important;
    bottom: 0 !important;
    width: 560px !important;
    max-width: calc(100vw - 12px) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.team-chat-body {
    height: 500px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 124px !important;
    grid-template-rows: 1fr !important;
}
.team-chat-main {
    min-width: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}
.team-chat-team-list {
    border-left: 1px solid var(--border);
    background: #111;
    padding: .45rem;
    overflow-y: auto;
    display: grid;
    align-content: start;
    gap: .35rem;
}
.team-chat-team-button {
    position: relative;
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr) auto;
    align-items: center;
    gap: .35rem;
    width: 100%;
    min-height: 34px;
    border: 1px solid #292929;
    border-radius: 7px;
    padding: .35rem .4rem;
    color: var(--text-secondary);
    background: #171717;
    font-size: .68rem;
    text-align: left;
    cursor: pointer;
}
.team-chat-team-button:hover,
.team-chat-team-button.active {
    color: var(--text-primary);
    border-color: var(--accent);
    background: #1d1d1d;
}
.team-chat-team-button.has-unread:not(.active) {
    border-color: rgba(187, 134, 252, .55);
}
.team-chat-team-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.team-chat-team-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #555;
}
.team-chat-team-button.active .team-chat-team-dot,
.team-chat-team-button.has-unread .team-chat-team-dot {
    background: var(--accent);
}
.team-chat-unread-dot {
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
}
.team-chat-dock.minimized .team-chat-body {
    display: none !important;
}
.team-chat-header {
    cursor: pointer;
}
.team-chat-input-row {
    grid-template-columns: minmax(0, 1fr) 56px !important;
}
.team-chat-input-row .btn {
    width: 56px !important;
}
@media (max-width: 760px) {
    .team-chat-dock {
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
    .team-chat-body {
        height: 420px !important;
        grid-template-columns: minmax(0, 1fr) 92px !important;
    }
    .team-chat-team-list {
        padding: .35rem;
    }
    .team-chat-team-button {
        grid-template-columns: 6px minmax(0, 1fr);
        font-size: .62rem;
        padding: .32rem .35rem;
    }
    .team-chat-unread-dot {
        position: absolute;
        top: 3px;
        right: 5px;
    }
}

/* Amalyzer_20 - chat de equipes refinado */
.team-chat-wrap {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 2600;
    pointer-events: none;
}
.team-chat-wrap .team-chat-dock,
.team-chat-wrap .team-chat-team-list-floating {
    pointer-events: auto;
}
.team-chat-dock {
    right: 132px !important;
    bottom: 0 !important;
    width: 500px !important;
    max-width: calc(100vw - 148px) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.team-chat-header {
    min-height: 58px;
    padding: .55rem .7rem !important;
}
.team-chat-title-wrap {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: .55rem !important;
    min-width: 0;
}
.team-chat-header-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #2a2a2a;
    background: #111;
}
.team-chat-header-icon img { max-width: 38px; max-height: 38px; object-fit: contain; }
.team-chat-title-text { min-width: 0; }
.team-chat-title-text strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .9rem;
}
.team-chat-title-text small {
    display: block;
    color: var(--text-secondary);
    font-size: .68rem;
    margin-top: .12rem;
}
.team-chat-body {
    height: 500px !important;
    display: block !important;
}
.team-chat-main {
    height: 100%;
    min-width: 0;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
}
.team-chat-messages {
    min-height: 0;
    overflow: auto;
    padding-bottom: .6rem;
}
.team-chat-input-row {
    position: relative;
    z-index: 2;
    background: var(--card-bg);
    grid-template-columns: minmax(0, 1fr) 56px !important;
    padding: .55rem !important;
}
.team-chat-input-row textarea {
    min-height: 44px !important;
    max-height: 92px !important;
}
.team-chat-input-row .btn {
    width: 56px !important;
    min-width: 56px !important;
    padding-left: .3rem !important;
    padding-right: .3rem !important;
}
.team-chat-team-list-floating {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 124px;
    min-height: 344px;
    max-height: calc(100vh - 72px);
    border: 1px solid var(--border);
    border-right: 0;
    border-bottom: 0;
    border-top-left-radius: 10px;
    background: #111;
    padding: .42rem;
    overflow-y: auto;
    display: grid;
    align-content: start;
    gap: .35rem;
}
.team-chat-team-button {
    grid-template-columns: 30px minmax(0, 1fr) auto !important;
    min-height: 38px !important;
    padding: .32rem .35rem !important;
    gap: .35rem !important;
}
.team-chat-team-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 6px;
}
.team-chat-team-icon img { max-width: 26px; max-height: 26px; object-fit: contain; }
.team-chat-team-name {
    font-size: .66rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.team-chat-unread-dot {
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1;
}
.team-chat-dock.minimized .team-chat-body { display: none !important; }
.team-chat-dock.minimized { width: 320px !important; max-width: calc(100vw - 148px) !important; }
@media (max-width: 760px) {
    .team-chat-dock {
        right: 88px !important;
        width: calc(100vw - 88px) !important;
        max-width: calc(100vw - 88px) !important;
    }
    .team-chat-dock.minimized {
        width: calc(100vw - 88px) !important;
        max-width: calc(100vw - 88px) !important;
    }
    .team-chat-body { height: 420px !important; }
    .team-chat-team-list-floating {
        width: 88px;
        min-height: 312px;
        max-height: calc(100vh - 64px);
        padding: .32rem;
    }
    .team-chat-team-button {
        grid-template-columns: 24px minmax(0, 1fr) !important;
        min-height: 34px !important;
        font-size: .6rem;
    }
    .team-chat-team-icon { width: 24px; height: 24px; }
    .team-chat-team-icon img { max-width: 22px; max-height: 22px; }
    .team-chat-unread-dot { position: absolute; top: 3px; right: 5px; }
    .team-chat-title-wrap { grid-template-columns: 36px minmax(0, 1fr) !important; }
    .team-chat-header-icon { width: 36px; height: 36px; }
    .team-chat-header-icon img { max-width: 32px; max-height: 32px; }
}


/* Amalyzer_24 - lembrete de preços, layout de equipes e seletores em caixas */
.price-reminder-banner {
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 183, 77, 0.3);
    background: linear-gradient(180deg, rgba(255,183,77,0.08), rgba(255,183,77,0.03));
    border-radius: 14px;
    padding: 1rem 1.1rem;
}
.price-reminder-banner .price-reminder-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.price-reminder-banner strong {
    display: block;
    color: var(--warning);
    margin-bottom: .18rem;
}
.price-reminder-banner p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .92rem;
}
.price-reminder-actions {
    display: flex;
    gap: .6rem;
    align-items: center;
    flex-wrap: wrap;
}
.teams-columns-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
.team-picker-row {
    align-items: flex-start;
}
.team-picker-groups {
    display: grid;
    gap: .8rem;
    width: 100%;
}
.team-picker-group {
    display: grid;
    gap: .45rem;
}
.team-picker-group-title {
    color: var(--text-secondary);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.team-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .55rem;
}
.team-picker-choice {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    text-align: left;
    padding: .72rem .8rem;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.02);
    border-radius: 10px;
    color: var(--text-primary);
    transition: .18s ease;
}
.team-picker-choice:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}
.team-picker-choice.active {
    border-color: var(--accent);
    background: rgba(187,134,252,.12);
    box-shadow: 0 0 0 1px rgba(187,134,252,.15) inset;
}
.team-picker-choice-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #151515;
    flex: 0 0 auto;
}
.team-picker-choice-icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.team-picker-choice-name {
    display: block;
    font-weight: 700;
    line-height: 1.2;
}
.team-picker-choice-meta {
    display: block;
    color: var(--text-secondary);
    font-size: .74rem;
    margin-top: .15rem;
}
.team-picker-empty {
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: .8rem;
    color: var(--text-secondary);
    font-size: .82rem;
    background: rgba(255,255,255,.015);
}
@media (max-width: 900px) {
    .teams-columns-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 760px) {
    .price-reminder-banner .price-reminder-content {
        align-items: flex-start;
    }
    .price-reminder-actions {
        width: 100%;
    }
    .price-reminder-actions .btn,
    .price-reminder-actions .btn-outline {
        width: 100%;
    }
    .team-picker-grid {
        grid-template-columns: 1fr;
    }
}

/* Amalyzer_24 - seletores compactos e novas estatísticas de equipe */
.split-section-divider {
    margin: .95rem 0 .35rem;
    padding-top: .85rem;
    border-top: 1px solid var(--border);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.team-picker-grid {
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
}
.team-picker-choice.compact {
    min-height: 76px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: .42rem;
    padding: .58rem .45rem;
}
.team-picker-choice.compact .team-picker-choice-name {
    font-size: .78rem;
    line-height: 1.15;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.team-picker-choice.compact .team-picker-choice-icon {
    width: 32px;
    height: 32px;
}
.team-picker-choice.compact .team-picker-choice-icon img {
    width: 28px;
    height: 28px;
}
.team-stats-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: .95rem 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(187,134,252,.08), rgba(255,255,255,.015));
    margin-bottom: 1rem;
}
.team-stats-header h3 {
    margin: 0 0 .18rem 0;
    color: var(--text-primary);
    font-size: 1.05rem;
}
.team-stats-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .82rem;
}
.team-stats-period-control {
    display: flex;
    align-items: center;
    gap: .5rem;
    white-space: nowrap;
}
.team-stats-period-control strong {
    min-width: 134px;
    text-align: center;
    color: var(--accent);
    font-size: .86rem;
}
.team-stats-grid.modern {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-bottom: 1rem;
}
.team-stats-two-columns,
.team-ranking-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}
.team-stat-panel,
.team-ranking-panel {
    min-height: 220px;
}
.team-stat-panel > p,
.team-ranking-panel-head span {
    display: block;
    margin-top: -.35rem;
    margin-bottom: .8rem;
    color: var(--text-secondary);
    font-size: .78rem;
}
.team-drop-group-grid {
    display: grid;
    gap: .65rem;
}
.team-drop-group-card {
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: .72rem;
    background: rgba(255,255,255,.02);
}
.team-drop-group-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .65rem;
    margin-bottom: .42rem;
}
.team-drop-group-head strong {
    color: var(--text-primary);
}
.team-drop-group-head span {
    color: var(--accent);
    font-size: .76rem;
    font-weight: 700;
    white-space: nowrap;
}
.team-drop-group-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .7rem;
    color: var(--text-secondary);
    font-size: .72rem;
    margin-bottom: .55rem;
}
.team-stat-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: .34rem;
}
.team-stat-chip-list.compact {
    margin-top: .35rem;
}
.team-stat-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(187,134,252,.25);
    background: rgba(187,134,252,.06);
    color: var(--text-primary);
    border-radius: 999px;
    padding: .18rem .48rem;
    font-size: .68rem;
    line-height: 1.2;
}
.team-stat-chip.muted {
    color: var(--text-secondary);
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.03);
}
.team-ranking-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: .75rem;
}
.team-ranking-panel-head h3 {
    margin-bottom: 0;
}
.team-ranking-list {
    display: grid;
    gap: .58rem;
}
.team-ranking-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: .7rem;
    padding: .68rem;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    background: rgba(255,255,255,.02);
}
.team-ranking-position {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(187,134,252,.1);
    color: var(--accent);
    font-size: .78rem;
    font-weight: 900;
}
.team-ranking-main {
    min-width: 0;
}
.team-ranking-main strong {
    display: block;
    color: var(--text-primary);
}
.team-ranking-main small,
.team-ranking-value small {
    display: block;
    color: var(--text-secondary);
    font-size: .7rem;
    margin-top: .12rem;
}
.team-ranking-value {
    text-align: right;
    white-space: nowrap;
}
.team-ranking-value strong {
    color: var(--success);
    font-size: .95rem;
}
@media (max-width: 900px) {
    .team-stats-two-columns,
    .team-ranking-dashboard {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 620px) {
    .team-stats-header {
        align-items: stretch;
        flex-direction: column;
    }
    .team-stats-period-control {
        justify-content: space-between;
    }
    .team-ranking-row {
        grid-template-columns: 38px minmax(0,1fr);
    }
    .team-ranking-value {
        grid-column: 2;
        text-align: left;
    }
}

/* Amalyzer_25 - ajustes finos dos rankings e ícones de drops */
.team-picker-group:empty,
.team-picker-groups:empty {
    display: none;
}
.team-stats-header p:empty {
    display: none;
}
.team-stats-grid-three {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
}
.team-stats-grid.modern .stat-card.spacious {
    display: grid;
    gap: .42rem;
    align-content: center;
    min-height: 86px;
    padding: .9rem .95rem;
}
.team-stats-grid.modern .stat-card.spacious span {
    display: block;
    line-height: 1.25;
}
.team-stats-grid.modern .stat-card.spacious strong {
    display: block;
    margin-top: .18rem;
    line-height: 1.15;
}
.team-drop-icon-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .34rem;
    margin-top: .42rem;
}
.team-drop-icon {
    position: relative;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(187,134,252,.24);
    border-radius: 7px;
    background: rgba(255,255,255,.035);
    color: var(--text-secondary);
    font-size: .72rem;
    font-weight: 800;
    overflow: visible;
}
.team-drop-icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}
.team-drop-icon.fallback img {
    display: none;
}
.team-drop-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    min-width: max-content;
    max-width: 220px;
    padding: .35rem .5rem;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #101010;
    color: var(--text-primary);
    font-size: .7rem;
    line-height: 1.2;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s ease .5s, transform .14s ease .5s;
    z-index: 80;
    white-space: nowrap;
}
.team-drop-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.team-drop-icons-empty {
    color: var(--text-secondary);
    font-size: .72rem;
}
.team-ranking-panel-head {
    margin-bottom: .55rem;
}
.team-ranking-main .team-drop-icon-list {
    margin-top: .4rem;
}
@media (max-width: 620px) {
    .team-drop-icon::after {
        left: 0;
        transform: translateY(4px);
    }
    .team-drop-icon:hover::after {
        transform: translateY(0);
    }
}


/* Amalyzer_26 - seleção compacta e histórico visual de drops da equipe */
.team-picker-grid {
    grid-template-columns: repeat(auto-fill, minmax(116px, 136px)) !important;
    justify-content: start;
}
.team-picker-choice {
    max-width: 136px;
    min-height: 86px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: .45rem;
}
.team-picker-choice-name {
    max-width: 112px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.team-picker-choice-meta {
    display: none !important;
}
.team-picker-choice-icon {
    order: 2;
}
.team-picker-choice > span:not(.team-picker-choice-icon) {
    order: 1;
    min-width: 0;
}

.team-drop-history-groups {
    display: grid;
    gap: 1rem;
}
.team-drop-history-month {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: .85rem;
    background: rgba(255,255,255,.015);
}
.team-drop-history-month-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .8rem;
    margin-bottom: .8rem;
}
.team-drop-history-month-head h3 {
    margin: 0;
    color: var(--accent);
    font-size: .95rem;
}
.team-drop-history-month-head span {
    color: var(--text-secondary);
    font-size: .76rem;
}
.team-drop-history-list {
    display: grid;
    gap: .62rem;
}
.team-drop-history-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .85rem;
    padding: .78rem;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    background: rgba(255,255,255,.02);
}
.team-drop-history-card.sold {
    border-color: rgba(0, 200, 83, .18);
}
.team-drop-history-icons {
    display: flex;
    align-items: center;
    gap: .38rem;
}
.team-boss-icon,
.team-history-icon-placeholder {
    position: relative;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,183,77,.24);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
    color: var(--text-secondary);
    font-size: .72rem;
    font-weight: 800;
    overflow: visible;
}
.team-boss-icon img {
    width: 26px;
    height: 26px;
    object-fit: contain;
}
.team-boss-icon.fallback img {
    display: none;
}
.team-boss-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(4px);
    min-width: max-content;
    max-width: 220px;
    padding: .35rem .5rem;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #101010;
    color: var(--text-primary);
    font-size: .7rem;
    line-height: 1.2;
    box-shadow: 0 10px 24px rgba(0,0,0,.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .14s ease .5s, transform .14s ease .5s;
    z-index: 90;
    white-space: nowrap;
}
.team-boss-icon:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.team-drop-history-main {
    min-width: 0;
}
.team-drop-history-title-row {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
}
.team-drop-history-title-row strong {
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.drop-status-tag {
    display: inline-flex;
    align-items: center;
    padding: .12rem .45rem;
    border-radius: 999px;
    font-size: .66rem;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,.16);
    color: var(--text-secondary);
}
.drop-status-tag.sold {
    color: var(--success);
    border-color: rgba(0,200,83,.28);
    background: rgba(0,200,83,.06);
}
.drop-status-tag.pending {
    color: var(--warning);
    border-color: rgba(255,183,77,.28);
    background: rgba(255,183,77,.06);
}
.team-drop-history-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem .75rem;
    margin-top: .25rem;
    color: var(--text-secondary);
    font-size: .72rem;
}
.team-drop-history-values {
    display: grid;
    gap: .32rem;
    text-align: right;
    min-width: 128px;
}
.team-drop-history-values div {
    display: grid;
    gap: .08rem;
}
.team-drop-history-values span {
    color: var(--text-secondary);
    font-size: .66rem;
}
.team-drop-history-values strong {
    color: var(--success);
    font-size: .82rem;
}
@media (max-width: 720px) {
    .team-drop-history-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }
    .team-drop-history-values {
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
        text-align: left;
        min-width: 0;
    }
}
@media (max-width: 520px) {
    .team-picker-grid {
        grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important;
    }
    .team-picker-choice {
        max-width: none;
    }
}


/* Amalyzer_27 - ajustes finos de interface */
#dromeIndicator img {
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
}


/* Amalyzer_28 - layout refinado da aba Equipes e Drome maior */
.teams-online-title-row {
    align-items: center;
}
.teams-online-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .45rem;
    flex-wrap: wrap;
}
.team-code-entry.compact-inline {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.team-code-entry.compact-inline label {
    display: none;
}
.team-code-entry.compact-inline .team-code-control {
    display: flex;
    align-items: center;
    gap: .35rem;
}
.team-code-entry.compact-inline input#onlineTeamJoinCode {
    width: 105px;
    min-width: 105px;
    height: 30px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .72rem;
    padding: .35rem .5rem;
}
.team-code-entry.compact-inline .team-request-btn {
    min-height: 30px;
    padding: .35rem .58rem !important;
    font-size: .68rem !important;
}
.refresh-team-btn {
    min-width: 34px;
    font-size: .95rem !important;
    line-height: 1;
}
#dromeIndicator img,
.mini-tibia-indicators #dromeIndicator img,
#miniChart #dromeIndicator img {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    transform: scale(1.18);
    transform-origin: center;
}
@media (max-width: 760px) {
    .teams-online-title-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .teams-online-header-actions {
        justify-content: flex-start;
        width: 100%;
    }
    .team-code-entry.compact-inline .team-code-control {
        flex-wrap: wrap;
    }
}


/* Amalyzer_29 - cabeçalho de Minhas Equipes Online igual ao mockup */
.teams-online-title-row {
    display: grid !important;
    grid-template-columns: minmax(240px, 1fr) auto !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 1.05rem !important;
}
.teams-online-title-row h2 {
    margin: 0 !important;
    white-space: nowrap;
    font-size: 1.28rem;
}
.teams-online-header-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: .58rem !important;
    flex-wrap: nowrap !important;
}
.team-code-entry.compact-inline {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    min-width: 0 !important;
}
.team-code-entry.compact-inline label {
    display: none !important;
}
.team-code-entry.compact-inline .team-code-control {
    display: flex !important;
    align-items: center !important;
    gap: .48rem !important;
}
.team-code-entry.compact-inline input#onlineTeamJoinCode {
    width: 132px !important;
    min-width: 132px !important;
    height: 42px !important;
    padding: .55rem .75rem !important;
    border-radius: 12px !important;
    font-size: .84rem !important;
    text-align: center !important;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.team-code-entry.compact-inline .team-request-btn {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 .95rem !important;
    border-radius: 10px !important;
    font-size: .85rem !important;
    font-weight: 800 !important;
}
.teams-create-inline-btn {
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 1.05rem !important;
    border-radius: 10px !important;
    font-size: .82rem !important;
    white-space: nowrap !important;
}
.refresh-team-btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.05rem !important;
    line-height: 1 !important;
}
@media (max-width: 940px) {
    .teams-online-title-row {
        grid-template-columns: 1fr !important;
        align-items: flex-start !important;
    }
    .teams-online-header-actions {
        width: 100%;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }
}
@media (max-width: 520px) {
    .team-code-entry.compact-inline .team-code-control {
        flex-wrap: nowrap !important;
    }
    .team-code-entry.compact-inline input#onlineTeamJoinCode {
        width: 110px !important;
        min-width: 110px !important;
    }
    .teams-create-inline-btn {
        padding: 0 .75rem !important;
    }
}


/* Amalyzer_30 - correção do layout de Minhas Equipes Online */
.teams-page-layout {
    overflow-x: clip;
}
.teams-columns-layout {
    grid-template-columns: minmax(600px, 1.18fr) minmax(430px, 0.82fr) !important;
    gap: 1rem !important;
}
.teams-columns-layout > .card {
    min-width: 0;
    overflow: hidden;
}
.teams-online-title-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: nowrap !important;
}
.teams-online-title-row h2 {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0 !important;
    font-size: 1rem !important;
    white-space: nowrap;
}
.teams-online-header-actions {
    flex: 1 1 auto;
    min-width: 0;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: .55rem !important;
    flex-wrap: nowrap !important;
}
.team-code-entry.compact-inline,
.team-code-entry.compact-inline .team-code-control {
    flex: 0 0 auto;
}
.team-code-entry.compact-inline input#onlineTeamJoinCode {
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
    height: 40px !important;
}
.team-code-entry.compact-inline .team-request-btn {
    width: 58px !important;
    min-width: 58px !important;
    height: 40px !important;
    padding: 0 !important;
    flex: 0 0 58px;
}
.teams-create-inline-btn {
    min-width: 148px !important;
    height: 40px !important;
    flex: 0 0 auto;
}
.refresh-team-btn {
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px;
}
@media (max-width: 1280px) {
    .teams-columns-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr) !important;
    }
}
@media (max-width: 1180px) {
    .teams-columns-layout {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 840px) {
    .teams-online-title-row {
        align-items: flex-start !important;
        flex-wrap: wrap !important;
    }
    .teams-online-header-actions {
        width: 100%;
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }
}
@media (max-width: 560px) {
    .teams-online-header-actions {
        gap: .45rem !important;
    }
    .team-code-entry.compact-inline input#onlineTeamJoinCode {
        width: 110px !important;
        min-width: 110px !important;
        max-width: 110px !important;
    }
    .teams-create-inline-btn {
        min-width: 132px !important;
    }
}


/* Amalyzer_31 - largura original das colunas e ações compactas */
.teams-columns-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 1rem !important;
}
.teams-online-title-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: .75rem !important;
    flex-wrap: nowrap !important;
}
.teams-online-title-row h2 {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    font-size: 1rem !important;
    margin: 0 !important;
}
.teams-online-header-actions {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: .4rem !important;
    flex-wrap: nowrap !important;
}
.team-code-entry.compact-inline,
.team-code-entry.compact-inline .team-code-control {
    flex: 0 0 auto !important;
    min-width: 0 !important;
}
.team-code-entry.compact-inline input#onlineTeamJoinCode {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: .3rem .45rem !important;
    border-radius: 8px !important;
    font-size: .68rem !important;
}
.team-code-entry.compact-inline .team-request-btn {
    width: auto !important;
    min-width: 36px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 .55rem !important;
    border-radius: 8px !important;
    font-size: .68rem !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
}
.teams-create-inline-btn {
    width: auto !important;
    min-width: 0 !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 .7rem !important;
    border-radius: 8px !important;
    font-size: .68rem !important;
    line-height: 1 !important;
    flex: 0 0 auto !important;
}
.refresh-team-btn {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    font-size: .85rem !important;
    flex: 0 0 30px !important;
}
@media (max-width: 1120px) {
    .teams-columns-layout {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 720px) {
    .teams-online-title-row {
        align-items: flex-start !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }
    .teams-online-header-actions {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }
}


/* Amalyzer_32 - ajuste fino do Código/Ok no cabeçalho das equipes */
.teams-online-header-actions {
    gap: .42rem !important;
}
.team-code-entry.compact-inline {
    margin-right: .65rem !important;
}
.team-code-entry.compact-inline .team-code-control {
    gap: .16rem !important;
}
.team-code-entry.compact-inline .team-request-btn {
    min-width: 30px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 0 .42rem !important;
    border-radius: 7px !important;
    font-size: .66rem !important;
}
.team-code-entry.compact-inline input#onlineTeamJoinCode {
    height: 28px !important;
    min-height: 28px !important;
    border-radius: 7px !important;
}


/* Amalyzer_33 - ajuste fino do grupo Código/confirmar */
.team-code-entry.compact-inline {
    margin-right: 1.15rem !important;
}
.team-code-entry.compact-inline .team-code-control {
    gap: .12rem !important;
}
.team-code-entry.compact-inline input#onlineTeamJoinCode {
    height: 31px !important;
    min-height: 31px !important;
    width: 86px !important;
    min-width: 86px !important;
    max-width: 86px !important;
    border-radius: 8px !important;
}
.team-code-entry.compact-inline .team-request-btn {
    width: 31px !important;
    min-width: 31px !important;
    height: 31px !important;
    min-height: 31px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.team-code-entry.compact-inline .team-request-btn:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}
.teams-create-inline-btn,
.refresh-team-btn {
    height: 31px !important;
    min-height: 31px !important;
}
.refresh-team-btn {
    width: 31px !important;
    min-width: 31px !important;
    flex-basis: 31px !important;
}


/* Amalyzer_34 - mini interface de Split Loot no chat da equipe */
.team-split-chat-card {
    display: grid;
    gap: .28rem;
    width: 100%;
    text-align: left;
    padding: .62rem .7rem;
    border: 1px solid rgba(187,134,252,.32);
    border-radius: 10px;
    background: rgba(187,134,252,.08);
    color: var(--text-primary);
    cursor: pointer;
}
.team-split-chat-card:hover {
    border-color: var(--accent);
}
.team-split-chat-title {
    font-weight: 800;
    color: var(--accent);
}
.team-split-chat-meta {
    color: var(--text-secondary);
    font-size: .72rem;
}
.team-split-chat-stats {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
    font-size: .72rem;
    color: var(--text-secondary);
}
.team-split-chat-stats strong {
    color: var(--success);
}
.team-split-interface {
    display: grid;
    gap: 1rem;
}
.team-split-interface-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    background: rgba(255,255,255,.02);
}
.team-split-interface-head h3 {
    margin: 0 0 .2rem 0;
    color: var(--accent);
}
.team-split-interface-head p {
    margin: 0;
    color: var(--text-secondary);
}
.team-split-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .75rem;
}
.team-split-summary-grid div {
    display: grid;
    gap: .32rem;
    padding: .9rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
}
.team-split-summary-grid span {
    color: var(--text-secondary);
    font-size: .74rem;
}
.team-split-summary-grid strong {
    color: var(--success);
    font-size: 1.05rem;
}
.team-split-interface-section {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    background: rgba(255,255,255,.015);
}
.team-split-interface-section h4 {
    margin: 0 0 .7rem 0;
    color: var(--accent);
}
.team-split-transfer-list,
.team-split-comment-list {
    display: grid;
    gap: .5rem;
}
.team-split-transfer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .62rem;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    background: rgba(255,255,255,.02);
}
.team-split-transfer-row small {
    display: block;
    margin-top: .14rem;
    color: var(--text-secondary);
}
.team-split-comment {
    padding: .62rem;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    background: #141414;
}
.team-split-comment strong {
    color: var(--accent);
}
.team-split-comment small {
    margin-left: .45rem;
    color: var(--text-secondary);
    font-size: .68rem;
}
.team-split-comment p {
    margin: .35rem 0 0 0;
    white-space: pre-wrap;
}
.team-split-comment-input {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .55rem;
    margin-top: .75rem;
}
@media (max-width: 620px) {
    .team-split-interface-head,
    .team-split-transfer-row {
        align-items: stretch;
        flex-direction: column;
    }
    .team-split-comment-input {
        grid-template-columns: 1fr;
    }
}

.team-split-chat-card.disabled {
    opacity: .65;
    cursor: default;
    border-color: rgba(255,255,255,.12);
    background: rgba(255,255,255,.025);
}


/* Amalyzer_35 - exclusão de hunt/split por escopo e copy de transferências no chat */
.hunt-delete-scope-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0,0,0,.72);
    backdrop-filter: blur(3px);
}
.hunt-delete-scope-box {
    width: min(440px, 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.2rem;
    background: #151515;
    box-shadow: 0 18px 44px rgba(0,0,0,.45);
}
.hunt-delete-scope-box h3 {
    margin: 0 0 .45rem 0;
    color: var(--accent);
}
.hunt-delete-scope-box p {
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
    line-height: 1.45;
}
.hunt-delete-scope-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
}
.hunt-delete-scope-actions .btn,
.hunt-delete-scope-actions .btn-outline {
    width: 100%;
}
.hunt-delete-cancel {
    width: 100%;
    margin-top: .65rem;
    border: 0;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    padding: .45rem;
}
.hunt-delete-cancel:hover {
    color: var(--text-primary);
}
.chat-transfer-inline {
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    flex-wrap: wrap;
}
.chat-transfer-copy {
    border: 1px solid #444;
    background: #242424;
    color: var(--text-secondary);
    border-radius: 6px;
    padding: .08rem .32rem;
    font-size: .62rem;
    line-height: 1.2;
    cursor: pointer;
}
.chat-transfer-copy:hover {
    color: var(--accent);
    border-color: var(--accent);
}
@media (max-width: 520px) {
    .hunt-delete-scope-actions {
        grid-template-columns: 1fr;
    }
}

/* Amalyzer_39 - notificações de eventos das Equipes Online */
@media (max-width: 1280px) {
    .team-event-notification-host {
        position: fixed;
        top: 8px;
        left: 50%;
        width: min(520px, 92vw);
        min-width: 0;
        transform: translateX(-50%);
    }
}
@media (max-width: 600px) {
    .team-event-notification-host {
        top: 7px;
        width: calc(100vw - 20px);
    }
    .team-event-notification {
        min-height: 44px;
        padding: 7px 10px;
    }
    .team-event-notification-content {
        gap: 5px;
        font-size: 0.68rem;
        white-space: normal;
        flex-wrap: wrap;
        line-height: 1.2;
    }
    .team-event-notification-name {
        max-width: 105px;
    }
    .team-event-notification-icon {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }
}
