.ep-wrap {
    max-width: 880px;
    margin: 80px auto;
    padding: 24px 14px 60px;
    color: var(--text, #231805);
}

/* ── Header ── */
.ep-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(35, 24, 5, 0.07);
    border: 1px solid rgba(227, 152, 45, 0.15);
    padding: 22px;
    margin-bottom: 18px;
}

.ep-header-avatar {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(227, 152, 45, 0.25), rgba(0, 121, 104, 0.18));
    display: flex;
    align-items: center;
    justify-content: center;
}

.ep-header-avatar span {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary, #e3982d);
}

.ep-header-info h1 {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text, #231805);
    margin: 0 0 3px;
    letter-spacing: -0.4px;
    word-break: break-word;
}

.ep-header-info p {
    font-size: 0.84rem;
    color: var(--dark-gray, #555);
    margin: 0;
    word-break: break-word;
}

/* ── Tabs ── */
.ep-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 6px;
    border: 1px solid rgba(227, 152, 45, 0.15);
}

.ep-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 14px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--dark-gray, #555);
    cursor: pointer;
    transition: all 0.22s ease;
}

.ep-tab svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.ep-tab:hover {
    color: var(--primary, #e3982d);
}

.ep-tab-active,
.ep-tab-active:hover {
    background: var(--primary, #e3982d);
    color: #fff;
}

/* ── Panels ── */
.ep-panel {
    display: none;
}

.ep-panel-active {
    display: block;
    animation: epFadeIn 0.25s ease;
}

@keyframes epFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Card ── */
.ep-card {
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 4px 24px rgba(35, 24, 5, 0.07);
    border: 1px solid rgba(227, 152, 45, 0.15);
    padding: 22px;
    margin-bottom: 14px;
}

.ep-card-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary, #e3982d);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(227, 152, 45, 0.18);
    display: flex;
    align-items: center;
    gap: 7px;
}

.ep-card-title svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.ep-grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 440px;
}

.ep-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ep-col-full {
    grid-column: 1 / -1;
}

.ep-select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e3982d' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.ep-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ep-label {
    font-size: 0.71rem;
    font-weight: 600;
    color: var(--dark-slate-gray, #2f4858);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.ep-req {
    color: var(--red, #f00);
    margin-left: 2px;
}

.ep-hint {
    font-size: 0.7rem;
    color: var(--dark-gray, #888);
}

.ep-error {
    font-size: 0.72rem;
    color: var(--red, #f00);
    font-weight: 600;
}

.ep-input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--gray-80, #ddd);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: var(--text, #231805);
    background: #fff;
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease;
    box-sizing: border-box;
}

.ep-input:focus {
    border-color: var(--primary, #e3982d);
    box-shadow: 0 0 0 3px rgba(227, 152, 45, 0.13);
}

/* DOB · age hint */
.ep-dob-hint {
    margin-top: 6px;
    font-size: 0.76rem;
    color: var(--dark-gray, #777);
}

.ep-dob-hint strong {
    color: var(--primary, #e3982d);
    font-weight: 700;
}

.ep-input.ep-readonly,
.ep-input[readonly],
.ep-input[disabled] {
    background: var(--white-smoke, #f2f2f2);
    color: var(--dark-gray, #555);
    cursor: not-allowed;
}

/* Password field with show/hide toggle */
.ep-pass-wrap {
    position: relative;
}

.ep-pass-wrap .ep-input {
    padding-right: 40px;
}

.ep-pass-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--dark-gray, #999);
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.ep-pass-toggle svg {
    width: 17px;
    height: 17px;
}

.ep-pass-toggle:hover,
.ep-pass-toggle.ep-pass-visible {
    color: var(--primary, #e3982d);
}

/* ── Actions ── */
.ep-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.ep-btn-reset {
    background: transparent;
    color: var(--primary, #e3982d);
    border: 2px solid var(--primary, #e3982d);
    padding: 9px 22px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.22s ease;
}

.ep-btn-reset:hover {
    background: var(--primary, #e3982d);
    color: #fff;
}

.ep-btn-submit {
    background: var(--primary, #e3982d);
    color: #fff;
    border: none;
    padding: 10px 26px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.22s ease;
}

.ep-btn-submit:hover {
    background: var(--secondary, #007968);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .ep-wrap {
        margin: 70px auto 40px;
    }

    .ep-header {
        padding: 16px;
    }

    .ep-header-avatar {
        width: 52px;
        height: 52px;
    }

    .ep-header-info h1 {
        font-size: 1.1rem;
    }

    .ep-tabs {
        flex-direction: column;
    }

    .ep-tab {
        justify-content: flex-start;
    }

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

    .ep-card {
        padding: 16px;
    }

    .ep-actions {
        flex-direction: column-reverse;
    }

    .ep-actions .ep-btn-reset,
    .ep-actions .ep-btn-submit {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .ep-header {
        flex-direction: column;
        text-align: center;
    }
}
