/* ═══════════════════════════════════════
   LAYOUT — card e header
═══════════════════════════════════════ */

/* ── Card ── */
.card {
    background: var(--card);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 28px 26px;
    animation: cardIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ── Header ── */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 13px;
}

.logo-icon {
    width: 46px;
    height: 46px;
    background: var(--primary);
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(26,92,58,0.35);
}
.logo-icon svg { width: 22px; height: 22px; }

h1 {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
}

.subtitle {
    font-size: 0.72rem;
    color: var(--muted);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Header actions (botões direita) ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#historyBtn {
    background: var(--bg);
    border: 1.5px solid var(--border);
    color: var(--muted);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    display: grid;
    place-items: center;
    position: relative;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}
#historyBtn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: #a7f3d0;
}
#historyBtn svg { width: 17px; height: 17px; }

#historyBtn.has-history::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    border: 1.5px solid var(--card);
}

#shareBtn {
    background: var(--primary-light);
    border: none;
    color: var(--primary);
    padding: 9px 15px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
#shareBtn:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26,92,58,0.3);
}
#shareBtn svg { width: 16px; height: 16px; flex-shrink: 0; }
