.esfl-auth-wrap,
.esfl-box {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
    margin-bottom: 24px;
}

.esfl-auth-head,
.esfl-page-head {
    margin-bottom: 20px;
}

.esfl-auth-head h2,
.esfl-page-head h2,
.esfl-box h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.esfl-auth-head p,
.esfl-page-head p,
.esfl-box > p {
    margin: 0;
    color: #64748b;
}

.esfl-auth-grid,
.esfl-grid-2,
.esfl-stats-grid,
.esfl-voucher-grid,
.esfl-summary-grid {
    display: grid;
    gap: 18px;
}

.esfl-auth-grid,
.esfl-grid-2,
.esfl-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.esfl-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 18px 0 22px;
}

.esfl-voucher-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 18px;
}

.esfl-auth-box,
.esfl-panel,
.esfl-stat-card,
.esfl-voucher-card,
.esfl-summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.esfl-auth-box h3,
.esfl-panel h3,
.esfl-voucher-card h3,
.esfl-summary-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 20px;
}

.esfl-stat-card strong {
    display: block;
    font-size: 30px;
    line-height: 1.1;
    color: #0f172a;
}

.esfl-stat-card span,
.esfl-summary-card p,
.esfl-voucher-card p,
.esfl-muted {
    color: #64748b;
}

.esfl-points-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    color: #fff;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    margin-top: 10px;
}

.esfl-voucher-card {
    position: relative;
    overflow: hidden;
}

.esfl-voucher-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 5px;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
}

.esfl-voucher-card.is-disabled {
    opacity: 0.78;
}

.esfl-voucher-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.esfl-price-tag,
.esfl-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
}

.esfl-price-tag {
    background: #eff6ff;
    color: #1d4ed8;
    padding: 8px 12px;
    white-space: nowrap;
}

.esfl-chip {
    background: #ecfeff;
    color: #0f766e;
    padding: 6px 10px;
    font-size: 13px;
}

.esfl-chip.is-muted {
    background: #f1f5f9;
    color: #475569;
}

.esfl-chip.is-danger {
    background: #fef2f2;
    color: #b91c1c;
}

.esfl-voucher-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.esfl-voucher-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

.esfl-inline-code,
.esfl-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
    background: #0f172a;
    color: #fff;
    border-radius: 12px;
}

.esfl-inline-code {
    padding: 3px 8px;
    font-size: 13px;
}

.esfl-code {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
}

.esfl-table-wrap {
    overflow-x: auto;
}

.esfl-table-wrap table {
    min-width: 640px;
}

.esfl-table-wrap .shop_table th {
    background: #f8fafc;
}

.esfl-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    color: #64748b;
    background: #f8fafc;
}

.esfl-form .form-row label {
    font-weight: 600;
}

.esfl-form input[type="text"],
.esfl-form input[type="email"],
.esfl-form input[type="password"],
.esfl-form textarea,
.esfl-form select {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    border: 1px solid #cbd5e1;
    padding: 10px 12px;
    background: #fff;
}

.esfl-redeem-form .button,
.esfl-auth-box .button,
.esfl-form .button {
    min-height: 42px;
    border-radius: 999px;
    padding: 0 18px;
}

.esfl-redeem-form .button.is-loading {
    opacity: 0.8;
    pointer-events: none;
}

@media (max-width: 767px) {
    .esfl-auth-wrap,
    .esfl-box {
        padding: 18px;
        border-radius: 16px;
    }

    .esfl-voucher-top,
    .esfl-voucher-foot {
        flex-direction: column;
        align-items: flex-start;
    }

    .esfl-table-wrap table {
        min-width: 560px;
    }
}

.esfl-divider {
    position: relative;
    text-align: center;
    margin-bottom: 16px;
}

.esfl-divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e7eb;
}

.esfl-divider span {
    position: relative;
    display: inline-block;
    padding: 0 12px;
    background: #fff;
    color: #6b7280;
    font-size: 13px;
}

.esfl-social-buttons {
    display: flex;
    gap: 12px;
}

.esfl-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #d0d5dd;
    transition: all .2s ease;
}

.esfl-social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

.esfl-social-btn--google {
    background: #fff;
    color: #111827;
}

.esfl-social-btn--facebook {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}



.esfl-social-phone-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: block;
}

.esfl-social-phone-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.esfl-social-phone-modal__dialog {
    position: relative;
    z-index: 2;
    width: min(92vw, 520px);
    margin: 8vh auto 0;
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.esfl-social-phone-modal__head h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.3;
}

.esfl-social-phone-modal__head p {
    margin: 0 0 18px;
    color: #666;
}

.esfl-social-phone-form .form-row {
    margin-bottom: 14px;
}

.esfl-social-phone-form input[type="text"] {
    width: 100%;
    min-height: 44px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    padding: 10px 12px;
    box-sizing: border-box;
    background: #fff;
}

.esfl-social-phone-form .button.alt {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
}
.esfl-social-popup-notice {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.esfl-social-popup-notice--error {
    background: #fdeaea;
    color: #a12622;
    border: 1px solid #f3b7b5;
}

.esfl-social-popup-notice--success {
    background: #eaf7ea;
    color: #1f6b2a;
    border: 1px solid #b7dfbd;
}

.esfl-social-popup-notice--notice {
    background: #eef4ff;
    color: #244a8f;
    border: 1px solid #bfd0f3;
}
