<style>
:root {
    --primary: #f15a24;
    --dark: #1e293b;
    --gray-light: #f8fafc;
    --border: #e2e8f0;
}

.gran-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Sidebar Estilo Gran */
.gran-filters {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 20px;
}
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    font-size: 0.75rem;
    margin-bottom: 20px;
}
.filter-group label {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: var(--dark);
}
.filter-group select, .filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 15px;
}
.btn-apply {
    width: 100%;
    background: var(--dark);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* Questão Estilo Gran */
.q-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
}
.q-top-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 15px;
}
.badge-id {
    background: var(--dark);
    color: #fff;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.7rem;
    font-weight: 800;
}
.badge-meta {
    font-size: 0.75rem;
    color: #64748b;
    margin-left: 10px;
}

.q-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark);
    margin-bottom: 25px;
}

/* Alternativas */
.q-options { display: flex; flex-direction: column; gap: 10px; }
.opt-label { cursor: pointer; }
.opt-label input { display: none; }
.opt-box {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: 0.2s;
}
.opt-letter {
    min-width: 30px;
    height: 30px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-right: 15px;
    font-size: 0.8rem;
    color: #64748b;
}
.opt-label:hover .opt-box { background: var(--gray-light); }
.opt-label input:checked + .opt-box {
    border-color: var(--primary);
    background: rgba(241, 90, 36, 0.05);
}
.opt-label input:checked + .opt-box .opt-letter {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Botões de Ação */
.q-footer { margin-top: 25px; display: flex; gap: 10px; }
.btn-respond {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}
.btn-outline-gran {
    background: none;
    border: 1px solid var(--border);
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
}

/* Gabarito Premium */
.gabarito-pane {
    margin-top: 20px;
    background: #fdf2f0;
    border-left: 4px solid var(--primary);
    padding: 20px;
    border-radius: 8px;
}
.lock-banner { text-align: center; color: #94a3b8; }
.lock-banner a { color: var(--primary); font-weight: 700; text-decoration: none; }

@media (max-width: 900px) {
    .gran-container { grid-template-columns: 1fr; }
    .gran-filters { position: relative; top: 0; }
}
</style>