:root {
    --ep-accent: #EF7819;
    --ep-bg: #f8fafc;
    --ep-panel: #fff;
    --ep-text: #0f172a;
    --ep-muted: #475569;
    --ep-line: #e2e8f0;
    --ep-ok: #0f9d58;
    --ep-danger: #b91c1c;
    --ep-focus: #0ea5e9;
    --ep-radius: 16px;
    --ep-shadow: 0 6px 22px rgba(2, 8, 23, .06);
    --ep-shadow-soft: 0 2px 10px rgba(2, 8, 23, .05);
    --ep-space: 18px;
}

.edupanel-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--ep-space)*1.2) var(--ep-space);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans", Ubuntu, Cantarell, Arial;
    color: var(--ep-text);
    line-height: 1.6;
}

.edupanel-container * {
    box-sizing: border-box;
}

.edupanel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.edupanel-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.edupanel-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--ep-accent), #ffb27c);
    box-shadow: var(--ep-shadow-soft);
}

.edupanel-title {
    font-weight: 800;
    letter-spacing: .2px;
    font-size: 22px;
    margin: 0;
}

.edupanel-card {
    background: var(--ep-panel);
    border: 1px solid var(--ep-line);
    border-radius: var(--ep-radius);
    box-shadow: var(--ep-shadow);
    padding: calc(var(--ep-space)*1.2);
    margin-bottom: var(--ep-space);
}

.edupanel-grid {
    display: grid;
    gap: var(--ep-space);
}

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

@media(min-width: 768px) {
    .edupanel-grid.two {
        grid-template-columns: 1fr 1fr;
    }
}

@media(min-width: 980px) {
    .edupanel-layout {
        display: grid;
        grid-template-columns: .75fr .25fr;
        gap: var(--ep-space);
    }
}

.edupanel-steps {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 12px;
}

.edupanel-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--ep-line);
    background: #fff;
    font-weight: 700;
    font-size: 14px;
}

.edupanel-step.active {
    border-color: var(--ep-accent);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ep-accent), white 60%);
}

.edupanel-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.edupanel-field label {
    font-weight: 800;
    font-size: 14px;
}

.edupanel-input,
.edupanel-select,
.edupanel-textarea {
    padding: 14px;
    border: 2px solid var(--ep-line);
    border-radius: 12px;
    background: #fff;
    font: inherit;
    width: 100%;
}

.edupanel-input[readonly] {
    background: #f3f6fb;
}

.edupanel-input:focus,
.edupanel-select:focus,
.edupanel-textarea:focus,
.edupanel-btn:focus {
    outline: 3px solid color-mix(in hsl, var(--ep-accent), white 30%);
    outline-offset: 2px;
}

.edupanel-hint {
    color: var(--ep-muted);
    font-size: 14px;
    margin: 0;
}

.edupanel-error {
    color: var(--ep-danger);
    font-size: 14px;
    display: none;
}

.edupanel-btn {
    appearance: none;
    border: 2px solid transparent;
    background: var(--ep-accent);
    color: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: var(--ep-shadow-soft);
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.edupanel-btn:hover {
    background: color-mix(in srgb, var(--ep-accent), black 10%);
    color: #fff;
}

.edupanel-btn.ghost {
    background: #fff;
    color: var(--ep-text);
    border-color: var(--ep-line);
}

.edupanel-btn.ghost:hover {
    background: #f1f5f9;
    color: var(--ep-text);
}

.edupanel-btn[disabled] {
    opacity: .6;
    cursor: not-allowed;
}

.edupanel-summary {
    position: sticky;
    top: 16px;
    align-self: start;
}

.edupanel-summary .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--ep-line);
    font-size: 14px;
}

.edupanel-summary .total {
    font-size: 18px;
    font-weight: 800;
}

.edupanel-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid var(--ep-line);
    font-weight: 700;
    font-size: 12px;
    background: #fff;
}

.edupanel-badge.b-ok {
    color: var(--ep-ok);
    border-color: rgba(15, 157, 88, .35);
    background: rgba(15, 157, 88, .08);
}

.edupanel-banner {
    border: 2px dashed #ffd9c2;
    background: #fff6f0;
    color: #3a2a1f;
    border-radius: var(--ep-radius);
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--ep-shadow-soft);
    margin-bottom: 12px;
}

.edupanel-balance {
    padding: 6px 10px;
    border: 1px solid var(--ep-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--ep-shadow-soft);
    font-weight: 800;
}

/* Modal */
.edupanel-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2, 8, 23, .45);
    backdrop-filter: blur(2px);
    z-index: 9999;
}

.edupanel-modal.active {
    display: flex;
}

.edupanel-modal-card {
    width: min(740px, 92vw);
    background: #fff;
    border: 1px solid var(--ep-line);
    border-radius: 18px;
    box-shadow: var(--ep-shadow);
    padding: 18px;
}

.edupanel-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.edupanel-close {
    appearance: none;
    background: transparent;
    border: 0;
    font-size: 26px;
    cursor: pointer;
    color: var(--ep-muted);
}

.edupanel-footer {
    color: var(--ep-muted);
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
}

.edupanel-pill {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--ep-line);
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    margin-bottom: 8px;
}

.edupanel-pill:hover {
    border-color: var(--ep-accent);
}
