* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a2e1a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #eee;
    min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────────────── */
header {
    background-color: #1a1a1a;
    width: 100%;
    padding: 14px 20px;
}
.header-inner {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
header h1 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}
.btn-board {
    color: #c9a834;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid #c9a834;
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}
.btn-board:hover {
    background: #c9a834;
    color: #1a1a1a;
}
.btn-logout {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.btn-logout:hover { background: #e74c3c; color: #fff; }

/* ── Main layout ─────────────────────────────────────────────────── */
main {
    max-width: 680px;
    margin: 28px auto;
    padding: 0 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.card {
    background: #162616;
    border: 1px solid #2a4a2a;
    border-radius: 12px;
    padding: 22px;
}
.card h2 {
    font-size: 1.05rem;
    color: #c9a834;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a4a2a;
}

/* ── Add seller form ─────────────────────────────────────────────── */
#formSeller {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.photo-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.photo-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px dashed #c9a834;
    background: #0d200d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.15s;
}
.photo-circle:hover { border-color: #fff; }
.photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-icon { font-size: 1.8rem; line-height: 1; }
.photo-hidden { display: none; }
.photo-hint {
    color: #8a8a8a;
    font-size: 0.82rem;
    line-height: 1.5;
}
#sellerName {
    padding: 11px 14px;
    border: 2px solid #2a4a2a;
    border-radius: 8px;
    background: #0d200d;
    color: #fff;
    font-size: 1rem;
    width: 100%;
}
#sellerName:focus {
    border-color: #c9a834;
    outline: none;
}
.btn-add {
    background: #c9a834;
    color: #1a1a1a;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-add:hover { background: #e8c444; }

/* ── Seller cards ────────────────────────────────────────────────── */
#sellerCards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.empty-msg {
    color: #666;
    text-align: center;
    padding: 24px 0;
    font-size: 0.95rem;
}
.seller-card {
    background: #0d200d;
    border: 1px solid #2a4a2a;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.seller-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #c9a834;
    object-fit: cover;
    background: #162616;
    flex-shrink: 0;
}
.seller-initials {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 2px solid #c9a834;
    background: #2d8c4e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}
.seller-info {
    flex: 1;
    min-width: 0;
}
.seller-info strong {
    display: block;
    font-size: 0.98rem;
    color: #fff;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.position-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.position-row label {
    color: #888;
    font-size: 0.8rem;
    white-space: nowrap;
}
.position-row input[type=number] {
    width: 64px;
    padding: 5px 8px;
    border: 1px solid #3a5a3a;
    border-radius: 6px;
    background: #162616;
    color: #fff;
    font-size: 0.9rem;
    -moz-appearance: textfield;
    appearance: textfield;
}
.position-row input[type=number]::-webkit-inner-spin-button,
.position-row input[type=number]::-webkit-outer-spin-button {
    opacity: 1;
}
.position-row input[type=number]:focus {
    border-color: #c9a834;
    outline: none;
}
.pos-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}
.pos-badge.none   { background: #333; color: #888; }
.pos-badge.active { background: #2d8c4e; color: #fff; }
.pos-badge.finish { background: linear-gradient(90deg, #8B6914, #c9a834); color: #fff; }

.team-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.team-row label {
    color: #888;
    font-size: 0.8rem;
    white-space: nowrap;
}
.team-select {
    padding: 4px 8px;
    border: 1px solid #3a5a3a;
    border-radius: 6px;
    background: #162616;
    color: #fff;
    font-size: 0.82rem;
    cursor: pointer;
}
.team-select:focus { border-color: #c9a834; outline: none; }

.form-team-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.form-team-row label {
    color: #ccc;
    font-size: 0.9rem;
    white-space: nowrap;
}
#sellerTeam {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #2a4a2a;
    border-radius: 8px;
    background: #0d200d;
    color: #fff;
    font-size: 0.95rem;
    cursor: pointer;
}
#sellerTeam:focus { border-color: #c9a834; outline: none; }

.btn-delete {
    background: transparent;
    border: 1px solid #7a2020;
    color: #c0392b;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.btn-delete:hover { background: #c0392b; color: #fff; }

/* ── Mobile ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    header h1 { font-size: 1rem; }
    .card { padding: 16px; }
}

/* ── Logo da Empresa ────────────────────────────────────────────── */
.logo-upload-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.logo-preview-wrap {
    width: 120px;
    height: 80px;
    border: 3px dashed #c9a834;
    border-radius: 10px;
    background: #0d200d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
.logo-preview-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.logo-placeholder { font-size: 2.2rem; line-height: 1; }
.logo-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.btn-logo-select {
    background: #c9a834; color: #1a1a1a; border: none;
    padding: 9px 16px; border-radius: 8px; font-weight: 700;
    cursor: pointer; font-size: 0.9rem;
}
.btn-logo-select:hover { background: #e8c444; }
.btn-logo-save {
    background: #2d8c4e; color: #fff; border: none;
    padding: 9px 16px; border-radius: 8px; font-weight: 700;
    cursor: pointer; font-size: 0.9rem; opacity: 0.45;
}
.btn-logo-save:not(:disabled) { opacity: 1; }
.btn-logo-save:not(:disabled):hover { background: #3aad62; }
.btn-logo-remove {
    background: transparent; color: #c0392b;
    border: 1px solid #7a2020; padding: 7px 16px;
    border-radius: 8px; font-size: 0.85rem; cursor: pointer;
}
.btn-logo-remove:hover { background: #c0392b; color: #fff; }
.logo-status {
    font-size: 0.82rem; margin-top: 10px; min-height: 1.2em;
}
.logo-status.success { color: #2ecc71; }
.logo-status.error   { color: #e74c3c; }
