:root {
    --bg: #f6f8fb;
    --text: #172033;
    --muted: #64748b;
    --line: #d9e2ec;
    --primary: #0f8b8d;
    --primary-dark: #0a6264;
    --accent: #f2b705;
    --danger: #b42318;
    --success: #087443;
    --card: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
}

a {
    color: var(--primary-dark);
    text-decoration: none;
}

.topbar {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    align-items: center;
    color: var(--text);
    display: flex;
    font-size: 20px;
    font-weight: 800;
    gap: 10px;
}

.brand-mark {
    align-items: center;
    background: var(--primary);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.button,
button {
    align-items: center;
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
}

.button:hover,
button:hover {
    background: var(--primary-dark);
}

.button.secondary {
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--text);
}

.button.small {
    min-height: 38px;
    padding: 8px 14px;
}

.hero {
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    margin: 0 auto;
    max-width: 1180px;
    padding: 54px 28px 34px;
}

.hero-copy h1 {
    font-size: clamp(36px, 6vw, 68px);
    line-height: 1;
    margin: 0 0 18px;
}

.hero-copy p {
    color: var(--muted);
    font-size: 19px;
    margin: 0 0 24px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.support-visual {
    background: #0b1f2a;
    border-radius: 8px;
    color: #ffffff;
    min-height: 360px;
    overflow: hidden;
    position: relative;
}

.support-visual::before {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 34px 34px;
    content: "";
    inset: 0;
    position: absolute;
}

.support-window {
    background: #ffffff;
    border-radius: 8px;
    color: var(--text);
    left: 36px;
    position: absolute;
    right: 36px;
    top: 42px;
}

.window-bar {
    align-items: center;
    background: #edf2f7;
    border-radius: 8px 8px 0 0;
    display: flex;
    gap: 6px;
    padding: 12px;
}

.dot {
    border-radius: 50%;
    height: 10px;
    width: 10px;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f2b705; }
.dot.green { background: #22c55e; }

.ticket-lines {
    display: grid;
    gap: 12px;
    padding: 22px;
}

.ticket-line {
    background: #dbeafe;
    border-radius: 6px;
    height: 15px;
}

.ticket-line:nth-child(2) {
    background: #ccfbf1;
    width: 70%;
}

.ticket-line:nth-child(3) {
    background: #fee2e2;
    width: 84%;
}

.remote-card {
    background: var(--accent);
    border-radius: 8px;
    bottom: 34px;
    color: #2f2500;
    font-weight: 800;
    padding: 18px;
    position: absolute;
    right: 28px;
    width: 210px;
}

.section {
    margin: 0 auto;
    max-width: 1180px;
    padding: 28px;
}

.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.form-panel,
.table-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.card {
    padding: 22px;
}

.card h2,
.card h3,
.form-panel h1,
.table-panel h1 {
    margin-top: 0;
}

.muted {
    color: var(--muted);
}

.form-panel {
    margin: 38px auto;
    max-width: 620px;
    padding: 28px;
}

.form-grid {
    display: grid;
    gap: 16px;
}

label {
    display: grid;
    font-weight: 700;
    gap: 7px;
}

input,
select,
textarea {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

.flash {
    border-radius: 8px;
    margin: 18px auto 0;
    max-width: 1124px;
    padding: 14px 18px;
}

.flash.success {
    background: #dcfce7;
    color: var(--success);
}

.flash.error {
    background: #fee2e2;
    color: var(--danger);
}

.table-panel {
    margin: 28px auto;
    max-width: 1180px;
    overflow-x: auto;
    padding: 22px;
}

table {
    border-collapse: collapse;
    min-width: 820px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 13px;
    text-transform: uppercase;
}

.status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    padding: 5px 10px;
}

.status.pendente { background: #fff7ed; color: #9a3412; }
.status.pago { background: #dcfce7; color: #166534; }
.status.em_atendimento { background: #dbeafe; color: #1d4ed8; }
.status.concluido { background: #e0f2fe; color: #075985; }
.status.cancelado { background: #f3f4f6; color: #374151; }

.footer {
    align-items: center;
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    justify-content: space-between;
    margin-top: 36px;
    padding: 24px 28px;
}

@media (max-width: 820px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 34px 16px 20px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .section,
    .form-panel,
    .table-panel {
        margin-left: 16px;
        margin-right: 16px;
        padding: 18px;
    }
}

