/* ============================================================
   EAS Legal — Secure Payment Portal
   Border radius: 0 — Sharp institutional branding
   ============================================================ */

.epp-portal {
    font-family: var(--global-body-font-family, 'Yantramanav', sans-serif);
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.1),
        0 8px 24px -4px rgba(0, 0, 0, 0.18),
        0 32px 64px -12px rgba(0, 0, 0, 0.22);
    max-width: 560px;
    width: 100%;
    position: relative;
}

.epp-portal::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(
        90deg,
        var(--global-palette1, #906f2c) 0%,
        var(--global-palette2, #c49e4f) 50%,
        var(--global-palette1, #906f2c) 100%
    );
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

/* ---- HEADER ---- */
.epp-header {
    background: var(--global-palette3, #141418);
    padding: 32px 32px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.epp-header__logo {
    display: block;
    height: 40px;
    width: auto;
    object-fit: contain;
    object-position: left center;
}

.epp-header__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.epp-header__portal-label {
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.epp-header__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.epp-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 0;
    padding: 4px 9px;
    font-size: 0.6rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.38);
    letter-spacing: 0.05em;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Gold rule under header */
.epp-header-rule {
    height: 1px;
    background: linear-gradient(
        90deg,
        var(--global-palette1, #906f2c) 0%,
        rgba(196,158,79,0.15) 100%
    );
}

/* ---- BODY ---- */
.epp-body {
    padding: 32px;
    background: #ffffff;
}

.epp-body__heading-wrap {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 10px;
}

.epp-body__heading-rule {
    width: 3px;
    background: linear-gradient(
        180deg,
        var(--global-palette1, #906f2c),
        var(--global-palette2, #c49e4f)
    );
    flex-shrink: 0;
}

.epp-body__heading-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.epp-body__heading {
    font-family: var(--global-heading-font-family, 'Noto Sans', sans-serif) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--global-palette3, #141418) !important;
    margin: 0 0 6px !important;
    letter-spacing: -0.025em;
    line-height: 1.15 !important;
}

.epp-body__subtext {
    font-size: 0.86rem;
    color: var(--global-palette6, #828486);
    line-height: 1.65;
    margin: 0;
}

.epp-divider {
    height: 1px;
    background: var(--global-palette7, #EDF2F7);
    margin: 26px 0;
}

/* ---- FIELDS ---- */
.epp-field {
    margin-bottom: 22px;
}

.epp-field__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--global-palette4, #1d2238);
    margin-bottom: 8px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.epp-field__optional {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--global-palette6, #828486);
    text-transform: none;
    letter-spacing: 0;
    background: var(--global-palette7, #EDF2F7);
    padding: 2px 7px;
    border-radius: 0;
}

.epp-field__currency {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--global-palette1, #906f2c);
    text-transform: none;
    letter-spacing: 0.06em;
    background: rgba(144, 111, 44, 0.08);
    padding: 2px 7px;
    border-radius: 0;
}

.epp-field__input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.epp-field__icon {
    position: absolute;
    left: 14px;
    color: #b0b3b5;
    pointer-events: none;
    flex-shrink: 0;
}

.epp-field__input {
    width: 100%;
    height: 50px;
    padding: 0 16px 0 60px !important;
    font-family: var(--global-body-font-family, 'Yantramanav', sans-serif);
    font-size: 0.95rem;
    color: var(--global-palette3, #141418);
    background: var(--global-palette8, #F7FAFC);
    border: 1.5px solid #e4e6e8;
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.epp-field__input::placeholder {
    color: #c0c3c5;
    font-weight: 300;
}

.epp-field__input:focus {
    border-color: var(--global-palette1, #906f2c);
    background: #fff;
    box-shadow: 4px 0 0 0 var(--global-palette1, #906f2c) inset;
}

.epp-field__input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Amount field */
.epp-field__input-wrap--amount {
    position: relative;
}

.epp-field__prefix {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--global-palette1, #906f2c);
    background: rgba(144, 111, 44, 0.06);
    border-right: 1.5px solid #e4e6e8;
    pointer-events: none;
    z-index: 1;
    transition: all 0.2s ease;
    border-radius: 0;
}

.epp-field__input--amount {
    padding-left: 64px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.epp-field__input-wrap--amount:focus-within .epp-field__prefix {
    background: rgba(144, 111, 44, 0.1);
    border-color: var(--global-palette1, #906f2c);
}

.epp-field__input--amount::-webkit-outer-spin-button,
.epp-field__input--amount::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.epp-field__hint {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    color: #b0b3b5;
}

/* ---- MESSAGE ---- */
.epp-message {
    font-size: 0.875rem;
    border-radius: 0;
    transition: all 0.2s ease;
}

.epp-message:not(:empty) {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-left: 3px solid;
}

.epp-message.epp-message--error {
    background: rgba(184, 33, 5, 0.05);
    border-color: var(--global-palette13, #b82105);
    color: var(--global-palette13, #b82105);
}

.epp-message.epp-message--success {
    background: rgba(19, 97, 46, 0.05);
    border-color: var(--global-palette11, #13612e);
    color: var(--global-palette11, #13612e);
}

.epp-message.epp-message--info {
    background: rgba(29, 34, 56, 0.04);
    border-color: var(--global-palette5, #525252);
    color: var(--global-palette5, #525252);
}

/* ---- BUTTON ---- */
.epp-btn {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--global-palette1, #906f2c);
    color: #ffffff;
    border: none;
    border-radius: 0;
    font-family: var(--global-heading-font-family, 'Noto Sans', sans-serif);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
}

.epp-btn:hover:not(:disabled) {
    background: var(--global-palette2, #c49e4f);
    box-shadow: 0 6px 24px rgba(144, 111, 44, 0.45);
}

.epp-btn:active:not(:disabled) {
    background: var(--global-palette1, #906f2c);
    box-shadow: none;
}

.epp-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.epp-btn__icon { flex-shrink: 0; }

.epp-btn__loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: epp-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes epp-spin { to { transform: rotate(360deg); } }

.epp-btn.epp-btn--loading .epp-btn__icon,
.epp-btn.epp-btn--loading .epp-btn__text {
    opacity: 0;
    position: absolute;
}

.epp-btn.epp-btn--loading .epp-btn__loader {
    display: block;
}

/* ---- CARDS ---- */
.epp-cards {
    display: flex;
    align-items: center;
    gap: 12px;
}

.epp-cards__label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #b0b3b5;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.epp-cards__img {
    height: 22px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    display: block;
    opacity: 0.8;
    filter: grayscale(0.1);
}

/* ---- FOOTER ---- */
.epp-footer {
    background: var(--global-palette3, #141418);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.epp-footer__security {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.68rem;
    color: rgba(255,255,255,0.28);
    letter-spacing: 0.03em;
}

.epp-footer__security svg {
    color: var(--global-palette2, #c49e4f);
    flex-shrink: 0;
    opacity: 0.7;
}

.epp-footer__right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.epp-footer__divider {
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.epp-footer__powered {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.25);
}

.epp-footer__powered strong {
    color: rgba(255,255,255,0.4);
}

.epp-footer__help {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.28);
}

.epp-footer__help a {
    color: var(--global-palette2, #c49e4f);
    font-weight: 600;
    text-decoration: none;
}

.epp-footer__help a:hover {
    text-decoration: underline;
}

/* ---- SUCCESS STATE ---- */
.epp-success-state {
    padding: 48px 32px;
    text-align: center;
}

.epp-success-state__icon {
    width: 64px;
    height: 64px;
    background: rgba(19, 97, 46, 0.07);
    border: 1px solid rgba(19, 97, 46, 0.15);
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    color: var(--global-palette11, #13612e);
}

.epp-success-state__heading {
    font-family: var(--global-heading-font-family, 'Noto Sans', sans-serif) !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--global-palette3, #141418) !important;
    margin: 0 0 12px !important;
    letter-spacing: -0.02em;
}

.epp-success-state__text {
    font-size: 0.9rem;
    color: var(--global-palette6, #828486);
    margin: 0 0 6px;
    line-height: 1.65;
}

.epp-success-state__txid {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: var(--global-palette7, #EDF2F7);
    border-radius: 0;
    border-left: 3px solid var(--global-palette1, #906f2c);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--global-palette4, #1d2238);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 480px) {
    .epp-header { padding: 26px 20px 20px; }
    .epp-header__logo { height: 30px; }
    .epp-body { padding: 24px 20px; }
    .epp-footer { padding: 14px 20px; flex-direction: column; align-items: flex-start; gap: 10px; }
    .epp-footer__divider { display: none; }
    .epp-header__badges { gap: 4px; }
}