.admin-body { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; background: #050608; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--border); background: rgba(7,8,11,.96); padding: 22px; display: flex; flex-direction: column; gap: 24px; }
.admin-logo img { width: 120px; display: block; margin: 0 auto; }
.admin-nav { display: grid; gap: 8px; }
.admin-nav a { padding: 13px 14px; border-radius: 12px; color: #ccc; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(212,173,86,.12); color: var(--gold-2); }
.admin-user { margin-top: auto; border-top: 1px solid var(--border); padding-top: 18px; color: var(--muted); font-size: 13px; }
.admin-main { padding: 32px; width: min(1240px, 100%); }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.admin-header h1 { font-size: 32px; line-height: 1.1; margin: 0; }
.admin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.metric-card, .admin-card { border: 1px solid var(--border); background: var(--panel); border-radius: 18px; padding: 20px; box-shadow: 0 16px 45px rgba(0,0,0,.22); }
.metric-card span { color: var(--muted); font-size: 13px; }
.metric-card b { display: block; color: #fff; font-size: 32px; margin-top: 6px; }
.table-wrap { overflow: auto; }
.admin-table { width: 100%; border-collapse: collapse; min-width: 780px; }
.admin-table th, .admin-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; }
.admin-table th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.admin-table tr:hover td { background: rgba(255,255,255,.025); }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm { padding: 9px 12px; border-radius: 10px; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 12px; font-size: 14px; }
.kv span { color: var(--muted); }
.admin-form { display: grid; gap: 16px; }
.admin-form .form-grid { margin: 0; }
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(circle at top, rgba(212,173,86,.14), transparent 45%), #050608; }
.login-card { width: min(430px, calc(100% - 28px)); border: 1px solid var(--border); background: var(--panel); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.login-card img { width: 150px; display: block; margin: 0 auto 18px; }
.login-card h1 { font-size: 24px; text-align: center; margin: 0 0 6px; }
.login-card p { color: var(--muted); text-align: center; }
.alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; background: rgba(207,71,71,.15); color: #ffabab; border: 1px solid rgba(207,71,71,.28); }
.success { background: rgba(29,168,72,.14); color: #9effba; border-color: rgba(29,168,72,.25); }
.drink-thumb { width: 58px; height: 48px; object-fit: cover; border-radius: 10px; }
.status-form { display: flex; gap: 8px; align-items: center; }
.status-form select { min-width: 190px; }
@media (max-width: 900px) {
    .admin-body { grid-template-columns: 1fr; }
    .admin-sidebar { position: relative; height: auto; }
    .admin-main { padding: 18px; }
    .admin-grid, .detail-grid { grid-template-columns: 1fr; }
}

/* Correções do catálogo e upload de imagens */
.admin-table { table-layout: fixed; }
.admin-table th, .admin-table td { vertical-align: middle; }
.admin-table th:nth-child(1), .admin-table td:nth-child(1) { width: 120px; }
.admin-table th:nth-child(2), .admin-table td:nth-child(2) { width: 240px; }
.admin-table th:nth-child(3), .admin-table td:nth-child(3) { width: 170px; }
.admin-table th:nth-child(4), .admin-table td:nth-child(4) { width: 150px; }
.admin-table .col-status, .admin-table .status-cell { width: 120px; text-align: center; }
.admin-table .col-actions, .admin-table .actions-cell { width: 250px; }
.admin-actions { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.actions-cell { white-space: nowrap; }
.drink-thumb { width: 66px; height: 52px; object-fit: cover; border-radius: 12px; display: block; box-shadow: 0 8px 22px rgba(0,0,0,.35); }
.form-label { color: #f2f2f2; font-size: 14px; font-weight: 800; }
.upload-field { display: grid; gap: 8px; }
.image-preview-box {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--border);
    background: rgba(255,255,255,.045);
    border-radius: 14px;
    padding: 10px;
    min-height: 88px;
}
.image-preview-box img { width: 92px; height: 68px; object-fit: cover; border-radius: 11px; display: block; background: #050608; }
.image-preview-box strong { display: block; color: #fff; word-break: break-word; font-size: 13px; }
.image-preview-box small, .file-upload-label small { color: var(--muted); font-weight: 500; line-height: 1.45; }
.file-upload-label input[type="file"] {
    padding: 13px;
    cursor: pointer;
    background: rgba(255,255,255,.055);
}
.file-upload-label input[type="file"]::file-selector-button {
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), #b98728);
    color: #14100a;
    font-weight: 900;
    padding: 10px 14px;
    margin-right: 12px;
    cursor: pointer;
}
.checkbox-label { display:flex; align-items:center; gap:10px; margin-top:25px; }
.checkbox-label input { width:auto; accent-color: var(--gold); }
.admin-form .btn-animated { min-height: 52px; }
@media (max-width: 900px) {
    .admin-table { table-layout: auto; }
    .admin-actions { flex-wrap: wrap; }
    .image-preview-box { grid-template-columns: 1fr; }
    .image-preview-box img { width: 100%; height: 160px; }
}


/* Página de detalhes da solicitação - v3 */
.solicitation-header { align-items: flex-start; }
.breadcrumb-line { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px; margin-bottom:8px; }
.breadcrumb-line a { color: var(--gold-2); }
.header-actions { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.btn-whatsapp-admin { background: linear-gradient(135deg, #20c458, #13943d); color:#fff; border:0; }
.panel-kicker { display:block; color:var(--gold-2); text-transform:uppercase; letter-spacing:.12em; font-size:11px; font-weight:900; margin-bottom:6px; }
.pretty-card { position:relative; overflow:hidden; }
.pretty-card::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at top right, rgba(212,173,86,.12), transparent 34%); pointer-events:none; }
.pretty-card > * { position:relative; z-index:1; }
.card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:18px; }
.card-heading h2 { margin:0; }
.status-panel { display:grid; grid-template-columns: 280px 1fr; gap:18px; align-items:center; margin-bottom:18px; }
.status-panel h2 { margin:0 0 6px; }
.status-actions { display:flex; justify-content:flex-end; gap:10px; flex-wrap:wrap; }
.status-action {
    border:1px solid rgba(255,255,255,.14);
    background:rgba(255,255,255,.055);
    color:#fff;
    border-radius:999px;
    padding:12px 15px;
    font-weight:900;
    cursor:pointer;
    transition:.2s ease;
}
.status-action:hover { transform:translateY(-2px); border-color:rgba(240,201,108,.55); color:var(--gold-2); }
.status-action.active { background:linear-gradient(135deg, var(--gold), #b98728); color:#14100a; border-color:transparent; box-shadow:0 12px 28px rgba(212,173,86,.18); }
.request-layout { display:grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap:18px; align-items:start; }
.event-info-grid { display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; }
.info-tile, .proposal-tile {
    border:1px solid rgba(255,255,255,.11);
    background:linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
    border-radius:16px;
    padding:15px;
    min-height:76px;
}
.info-tile.wide, .info-tile.full { grid-column:1 / -1; }
.info-tile span, .proposal-tile span { display:block; color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.08em; margin-bottom:7px; }
.info-tile strong, .proposal-tile strong { color:#fff; font-size:15px; line-height:1.35; word-break:break-word; }
.info-tile .badge, .header-actions .badge { color:inherit; }
.request-drinks-list { display:grid; gap:12px; }
.request-drink-item {
    display:grid;
    grid-template-columns:64px 1fr auto;
    gap:14px;
    align-items:center;
    border:1px solid rgba(255,255,255,.11);
    background:linear-gradient(90deg, rgba(255,255,255,.065), rgba(255,255,255,.025));
    border-radius:18px;
    padding:10px 12px;
}
.request-drink-item img { width:64px; height:58px; border-radius:14px; object-fit:cover; box-shadow:0 10px 24px rgba(0,0,0,.35); }
.request-drink-item strong { display:block; color:#fff; font-size:15px; margin-bottom:4px; }
.request-drink-item small { color:var(--muted); }
.request-drink-item span {
    min-width:44px;
    height:36px;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    color:#14100a;
    background:linear-gradient(135deg, var(--gold), #b98728);
    font-weight:900;
}
.proposal-card { margin-top:18px; }
.proposal-info-grid { display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:12px; }
.proposal-tile.total { border-color:rgba(240,201,108,.38); background:radial-gradient(circle at top right, rgba(240,201,108,.15), rgba(255,255,255,.035)); }
.proposal-tile.total strong { color:var(--gold-2); font-size:24px; }
.badge { color:#111 !important; border:1px solid transparent; white-space:nowrap; }
.badge-warning { background:#ffd477 !important; color:#17110a !important; }
.badge-info { background:#91d8ff !important; color:#06121a !important; }
.badge-primary { background:#aebdff !important; color:#071034 !important; }
.badge-success { background:#8bf3b1 !important; color:#061d0f !important; }
.badge-danger { background:#ff9c9c !important; color:#2b0707 !important; }
.badge-secondary { background:#d8d8d8 !important; color:#111 !important; }
@media (max-width: 1050px) {
    .status-panel, .request-layout { grid-template-columns:1fr; }
    .status-actions { justify-content:flex-start; }
}
@media (max-width: 680px) {
    .header-actions { justify-content:flex-start; }
    .event-info-grid, .proposal-info-grid { grid-template-columns:1fr; }
    .request-drink-item { grid-template-columns:58px 1fr auto; }
    .request-drink-item img { width:58px; height:54px; }
}

/* Página de listagem de solicitações - v4 */
.requests-page-header {
    margin-bottom: 18px;
}
.request-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.request-metric-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    background: linear-gradient(180deg, rgba(18,20,26,.98), rgba(12,13,17,.92));
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
}
.request-metric-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(212,173,86,.12), transparent 42%);
    opacity: .8;
    pointer-events: none;
}
.request-metric-card.highlight {
    border-color: rgba(240,201,108,.32);
    background: radial-gradient(circle at top right, rgba(240,201,108,.16), transparent 40%), linear-gradient(180deg, rgba(18,20,26,.98), rgba(12,13,17,.94));
}
.request-metric-card span,
.request-metric-card strong,
.request-metric-card small {
    position: relative;
    z-index: 1;
}
.request-metric-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 900;
}
.request-metric-card strong {
    display: block;
    color: #fff;
    font-size: 34px;
    line-height: 1;
    margin-top: 12px;
}
.request-metric-card small {
    display: block;
    color: #bdbdbd;
    margin-top: 9px;
    line-height: 1.35;
}
.requests-toolbar-card {
    margin-bottom: 18px;
}
.requests-toolbar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 230px auto;
    gap: 14px;
    align-items: end;
}
.request-search-box,
.request-status-select {
    display: grid;
    gap: 7px;
}
.request-search-box span,
.request-status-select span {
    color: #efefef;
    font-size: 13px;
    font-weight: 900;
}
.toolbar-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.status-filter-pills {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.status-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.045);
    color: #eee;
    border-radius: 999px;
    padding: 10px 13px;
    font-size: 12px;
    font-weight: 900;
    transition: .2s ease;
}
.status-filter-pill b {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    color: #fff;
    padding: 0 7px;
}
.status-filter-pill:hover,
.status-filter-pill.active {
    transform: translateY(-2px);
    border-color: rgba(240,201,108,.55);
    color: var(--gold-2);
    box-shadow: 0 12px 26px rgba(0,0,0,.22);
}
.status-filter-pill.active {
    background: rgba(212,173,86,.12);
}
.status-filter-pill.active b {
    background: linear-gradient(135deg, var(--gold), #b98728);
    color: #16100a;
}
.requests-list-card {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(15,17,22,.95), rgba(10,11,15,.92));
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 18px 48px rgba(0,0,0,.24);
}
.requests-list-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.requests-list-head h2 {
    margin: 2px 0 0;
    font-size: 22px;
}
.request-cards-list {
    display: grid;
    gap: 12px;
}
.request-row-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(430px, 1.35fr) 150px 168px;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.105);
    background: linear-gradient(90deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
    border-radius: 20px;
    padding: 16px;
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.request-row-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: rgba(255,255,255,.18);
}
.request-row-card:hover {
    transform: translateY(-3px);
    border-color: rgba(240,201,108,.32);
    box-shadow: 0 18px 42px rgba(0,0,0,.28);
    background: linear-gradient(90deg, rgba(255,255,255,.075), rgba(255,255,255,.03));
}
.status-border-novo::before { background: #ffd477; }
.status-border-em-atendimento::before { background: #91d8ff; }
.status-border-orcamento-enviado::before { background: #aebdff; }
.status-border-fechado::before { background: #8bf3b1; }
.status-border-cancelado::before { background: #ff9c9c; }
.request-client-block {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 13px;
    align-items: center;
    min-width: 0;
}
.client-avatar {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(240,201,108,.42), rgba(212,173,86,.16));
    border: 1px solid rgba(240,201,108,.28);
    color: var(--gold-2);
    font-size: 22px;
    font-weight: 950;
    box-shadow: 0 12px 26px rgba(0,0,0,.25);
}
.request-id-line {
    color: var(--gold-2);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}
.request-client-block h3 {
    margin: 0;
    font-size: 17px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.request-phone {
    display: inline-flex;
    color: #bdbdbd;
    font-size: 13px;
    margin-top: 5px;
}
.request-phone:hover {
    color: #8bf3b1;
}
.request-info-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.request-info-strip div {
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(0,0,0,.14);
    border-radius: 14px;
    padding: 11px 12px;
    min-height: 66px;
}
.request-info-strip span,
.request-status-block small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}
.request-info-strip strong {
    display: block;
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
}
.money-highlight {
    color: var(--gold-2) !important;
    font-size: 15px !important;
}
.request-status-block {
    display: grid;
    justify-items: start;
    gap: 8px;
}
.request-status-block small {
    margin: 0;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
}
.request-row-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.mini-action {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 950;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.055);
    color: #fff;
    transition: .2s ease;
}
.mini-action:hover {
    transform: translateY(-2px);
    border-color: rgba(240,201,108,.55);
    color: var(--gold-2);
}
.mini-action.whatsapp {
    background: rgba(32,196,88,.12);
    border-color: rgba(32,196,88,.2);
    color: #9effba;
}
.mini-action.open {
    background: linear-gradient(135deg, var(--gold), #b98728);
    color: #14100a;
    border: 0;
}
.empty-state {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 48px 20px;
    border: 1px dashed rgba(255,255,255,.15);
    border-radius: 18px;
    background: rgba(255,255,255,.025);
}
.empty-icon {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    background: rgba(212,173,86,.12);
    font-size: 34px;
    margin-bottom: 14px;
}
.empty-state h3 {
    margin: 0;
    font-size: 22px;
}
.empty-state p {
    margin: 8px 0 18px;
}
@media (max-width: 1180px) {
    .request-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .request-row-card { grid-template-columns: 1fr; align-items: stretch; }
    .request-row-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
    .requests-toolbar { grid-template-columns: 1fr; }
    .request-metrics-grid { grid-template-columns: 1fr; }
    .requests-list-head { display: grid; }
    .request-info-strip { grid-template-columns: 1fr; }
    .request-row-card { padding: 14px; border-radius: 18px; }
    .request-client-block h3 { white-space: normal; }
    .mini-action { flex: 1; }
}


/* Dashboard premium com gráficos - v6 */
.dashboard-header { margin-bottom: 18px; }
.dashboard-filter-card {
    display: grid;
    grid-template-columns: minmax(220px, .42fr) 1fr;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
    position: relative;
    overflow: hidden;
}
.dashboard-filter-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(212,173,86,.12), transparent 36%);
    pointer-events: none;
}
.dashboard-filter-card > * { position: relative; z-index: 1; }
.dashboard-filter-card h2 { margin: 0; }
.dashboard-period-form {
    display: grid;
    grid-template-columns: 1fr 150px 150px auto;
    gap: 12px;
    align-items: end;
}
.period-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.period-pill {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.045);
    color: #eee;
    font-weight: 900;
    font-size: 12px;
    transition: .2s ease;
}
.period-pill:hover,
.period-pill.active {
    transform: translateY(-2px);
    border-color: rgba(240,201,108,.55);
    color: var(--gold-2);
    background: rgba(212,173,86,.1);
}
.dashboard-period-form label {
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
}
.dashboard-period-form label span {
    color: #efefef;
    font-weight: 900;
}
.dashboard-period-form input[type="date"] { min-height: 42px; padding: 10px 12px; }
.dashboard-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}
.dashboard-metric-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.11);
    background: linear-gradient(180deg, rgba(18,20,26,.98), rgba(10,11,15,.94));
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
    min-height: 138px;
}
.dashboard-metric-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(212,173,86,.13), transparent 42%);
    pointer-events: none;
}
.dashboard-metric-card.primary { border-color: rgba(240,201,108,.28); }
.dashboard-metric-card.success::before { background: radial-gradient(circle at top right, rgba(139,243,177,.15), transparent 42%); }
.dashboard-metric-card.money { border-color: rgba(240,201,108,.34); }
.dashboard-metric-card.money::before { background: radial-gradient(circle at top right, rgba(240,201,108,.19), transparent 42%); }
.dashboard-metric-card span,
.dashboard-metric-card strong,
.dashboard-metric-card small { position: relative; z-index: 1; }
.dashboard-metric-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 950;
}
.dashboard-metric-card strong {
    display: block;
    color: #fff;
    font-size: clamp(26px, 2.4vw, 34px);
    line-height: 1;
    margin-top: 14px;
    word-break: break-word;
}
.dashboard-metric-card.money strong,
.dashboard-metric-card.success strong { color: var(--gold-2); }
.dashboard-metric-card small {
    display: block;
    color: #bdbdbd;
    margin-top: 10px;
    line-height: 1.35;
}
.dashboard-charts-grid {
    display: grid;
    grid-template-columns: 1.35fr .85fr;
    gap: 18px;
    margin-bottom: 18px;
}
.dashboard-chart-card {
    overflow: hidden;
    min-height: 330px;
}
.dashboard-chart-card.wide { grid-row: span 2; }
.chart-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.chart-title-row h2 { margin: 0; }
.chart-title-row small {
    color: var(--gold-2);
    border: 1px solid rgba(240,201,108,.25);
    background: rgba(212,173,86,.08);
    padding: 8px 10px;
    border-radius: 999px;
    font-weight: 900;
    white-space: nowrap;
}
.vertical-chart {
    min-height: 300px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(42px, 1fr);
    align-items: end;
    gap: 12px;
    padding: 22px 4px 0;
    border-top: 1px solid rgba(255,255,255,.08);
    overflow-x: auto;
}
.chart-bar-wrap {
    min-width: 42px;
    height: 270px;
    display: grid;
    grid-template-rows: 1fr auto;
    gap: 10px;
    align-items: end;
    text-align: center;
}
.chart-bar {
    position: relative;
    height: var(--bar-height);
    min-height: 28px;
    border-radius: 14px 14px 7px 7px;
    background: linear-gradient(180deg, var(--gold-2), #b98728);
    box-shadow: 0 12px 28px rgba(212,173,86,.17);
    transition: .22s ease;
}
.chart-bar:hover { transform: translateY(-4px); filter: brightness(1.08); }
.chart-bar span {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}
.chart-bar-wrap b {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}
.status-funnel-list,
.package-bars-list { display: grid; gap: 14px; }
.funnel-item,
.package-bar-item {
    border: 1px solid rgba(255,255,255,.1);
    background: linear-gradient(90deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
    border-radius: 16px;
    padding: 13px;
}
.funnel-line,
.package-bar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.funnel-line strong,
.package-bar-head strong { color: #fff; font-size: 14px; }
.funnel-line span,
.package-bar-head span {
    color: var(--gold-2);
    font-weight: 950;
    white-space: nowrap;
}
.funnel-progress,
.package-progress {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
    margin-bottom: 8px;
}
.funnel-progress i,
.package-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
}
.funnel-item small,
.package-bar-item small { color: var(--muted); font-size: 12px; }
.package-progress i { background: linear-gradient(90deg, #8bf3b1, var(--gold-2)); }
.dashboard-recent-card { margin-bottom: 28px; }
.dashboard-recent-list { display: grid; gap: 12px; }
.dashboard-recent-item {
    display: grid;
    grid-template-columns: minmax(220px, .85fr) minmax(420px, 1.4fr) 150px;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(255,255,255,.105);
    background: linear-gradient(90deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
    border-radius: 20px;
    padding: 15px;
    transition: .2s ease;
}
.dashboard-recent-item:hover {
    transform: translateY(-2px);
    border-color: rgba(240,201,108,.32);
    box-shadow: 0 18px 42px rgba(0,0,0,.25);
}
.dashboard-recent-info {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.dashboard-recent-info div {
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(0,0,0,.14);
    border-radius: 14px;
    padding: 11px 12px;
    min-height: 62px;
}
.dashboard-recent-info span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}
.dashboard-recent-info strong {
    display: block;
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
}
.dashboard-recent-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex-wrap: wrap;
}
.empty-state.mini {
    padding: 28px 18px;
}
.empty-state.mini .empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    font-size: 26px;
}
@media (max-width: 1180px) {
    .dashboard-filter-card,
    .dashboard-period-form,
    .dashboard-charts-grid { grid-template-columns: 1fr; }
    .dashboard-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-chart-card.wide { grid-row: auto; }
    .dashboard-recent-item { grid-template-columns: 1fr; }
    .dashboard-recent-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
    .dashboard-metrics-grid,
    .dashboard-recent-info { grid-template-columns: 1fr; }
    .period-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .period-pill { width: 100%; }
    .vertical-chart { grid-auto-columns: minmax(46px, 58px); }
    .chart-title-row { display: grid; }
}


/* Dashboard line chart */
.line-chart-wrap {
    position: relative;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 16px;
}
.line-chart-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: #fff;
    font-weight: 900;
}
.line-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
}
.line-chart-legend small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    margin-left: auto;
}
.legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 0 0 4px rgba(255,255,255,.05);
}
.legend-dot.total { background: var(--gold-2); }
.legend-dot.closed { background: #8bf3b1; }
.line-chart-scroll {
    width: 100%;
    overflow: visible;
    padding-bottom: 0;
}
.line-chart-svg {
    display: block;
    width: 100%;
    height: 360px;
    min-width: 0;
    max-width: 100%;
    background: radial-gradient(circle at 18% 8%, rgba(240,201,108,.08), transparent 30%), linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0));
    border-radius: 18px;
}
.chart-grid-line {
    stroke: rgba(255,255,255,.09);
    stroke-width: 1;
    stroke-dasharray: 5 7;
}
.chart-axis-main {
    stroke: rgba(255,255,255,.18);
    stroke-width: 1.3;
}
.chart-axis-label {
    fill: rgba(255,255,255,.62);
    font-size: 12px;
    font-weight: 900;
}
.chart-axis-label.x {
    fill: rgba(255,255,255,.72);
    font-size: 11px;
}
.chart-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: url(#softGlow);
}
.total-line { stroke: var(--gold-2); }
.closed-line { stroke: #8bf3b1; stroke-width: 3; opacity: .95; }
.chart-point {
    cursor: pointer;
    stroke-width: 3;
    transition: .18s ease;
}
.total-point {
    fill: var(--gold-2);
    stroke: rgba(8,8,10,.96);
}
.closed-point {
    fill: #8bf3b1;
    stroke: rgba(8,8,10,.96);
}
.chart-point:hover {
    r: 9;
    filter: drop-shadow(0 0 10px rgba(240,201,108,.55));
}
.line-chart-tooltip {
    position: absolute;
    z-index: 20;
    min-width: 190px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .14s ease, transform .14s ease;
    border: 1px solid rgba(240,201,108,.34);
    background: linear-gradient(180deg, rgba(22,23,28,.98), rgba(8,9,13,.98));
    box-shadow: 0 18px 46px rgba(0,0,0,.42);
    border-radius: 16px;
    padding: 12px 13px;
    color: #fff;
}
.line-chart-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}
.line-chart-tooltip strong {
    display: block;
    color: var(--gold-2);
    font-size: 13px;
    margin-bottom: 8px;
}
.line-chart-tooltip span {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}
.line-chart-tooltip b {
    color: #fff;
    font-weight: 950;
}
@media (max-width: 760px) {
    .line-chart-legend small { width: 100%; margin-left: 0; }
    .line-chart-svg { height: 320px; }
    .chart-axis-label.x { font-size: 10px; }
}
