:root {
    --teal: #0197aa;
    --teal-dark: #018191;
    --ink: #17181c;
    --muted: #6b7280;
    --line: #eceff3;
    --note: #e7f6fb;
    --note-text: #1d4f93;
    --page: #ffffff;
    --disabled: #d3d7dd;
    --green: #1aa05a;
    --blue-soft: #d9ecff;
    --blue-text: #2a78c4;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body {
    margin: 0;
    min-height: 100%;
    background: var(--page);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
a { color: inherit; }

.app {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background: var(--page);
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 10px 14px 8px;
    border-bottom: 1px solid #f1f3f6;
    background: #fff;
    min-height: 64px;
}
.top-nav__left,
.top-nav__right {
    display: flex;
    align-items: center;
    gap: 2px;
    z-index: 1;
}
.top-nav__right { margin-left: auto; }
.brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    width: 56px;
    z-index: 0;
}
.brand img { width: 56px; height: auto; display: block; }
.icon-btn {
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    color: #1d2430;
    display: grid;
    place-items: center;
    padding: 0;
}
.icon-btn svg { width: 26px; height: 26px; }
.icon-btn--bell { position: relative; }
.badge {
    position: absolute;
    top: 8px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background: #e11d2e;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.main {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 16px 24px;
}
.app--plain .main { padding-top: 12px; }
.page-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--teal);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin: 4px 0 8px;
}
.back svg { width: 16px; height: 16px; }

h1 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.h1-sm { font-size: 22px; }
.lead, .copy {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.4;
    color: #222;
}
.section-title {
    margin: 16px 0 6px;
    font-size: 16px;
    font-weight: 700;
}

.note {
    background: var(--note);
    border-radius: 14px;
    padding: 12px 14px 10px;
    margin: 6px 0 16px;
    color: var(--note-text);
}
.note-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
}
.note-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid var(--note-text);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    font-style: italic;
}
.note ul {
    margin: 0;
    padding-left: 16px;
}
.note li {
    margin: 4px 0;
    font-size: 13px;
    line-height: 1.35;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    font-size: 15px;
}
.btn-outline {
    border: 1.6px solid var(--teal);
    color: var(--teal);
    background: #fff;
}
.btn-outline svg { width: 18px; height: 18px; }
.btn-fill {
    width: 100%;
    background: var(--teal);
    color: #fff;
    font-size: 15px;
}
.btn-fill:disabled,
.btn-fill.is-disabled {
    background: var(--disabled);
    color: #fff;
    pointer-events: none;
}
.btn-ghost {
    color: var(--teal);
    background: transparent;
    font-weight: 700;
    text-decoration: none;
}
.btn-outline-wide {
    width: 100%;
    border: 1.6px solid var(--teal);
    color: var(--teal);
    background: #fff;
}

.support {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: var(--teal);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}
.support svg { width: 18px; height: 18px; }

.field { margin: 0 0 14px; }
.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}
.field-box,
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"] {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d5dbe3;
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: var(--ink);
}
.field-box {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 4px 0 14px;
}
.prefix {
    color: #9aa3af;
    font-size: 16px;
    white-space: nowrap;
}
.field-box input {
    border: 0;
    min-height: 44px;
    padding: 0 10px 0 0;
    outline: none;
    width: 100%;
}
.hint {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
}
.error { color: #b42318; font-size: 12px; margin: 6px 0 0; }

.sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}
.close {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: #111;
    text-decoration: none;
}
.sheet-actions {
    position: sticky;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 0 6px;
    background: linear-gradient(#fffc 30%, #fff 55%);
}
.sheet-actions .btn-ghost { min-height: 44px; }
.sheet-actions .add-btn { min-width: 0; }

.hafilat-card {
    width: 210px;
    max-width: 58%;
    height: auto;
    display: block;
    margin: 8px 0 14px;
    border-radius: 16px;
}
.pills { display: flex; gap: 8px; margin: 0 0 16px; }
.pill {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.pill-green { background: #d8f3e3; color: var(--green); }
.pill-blue { background: var(--blue-soft); color: var(--blue-text); }

.card-page {
    padding-left: 10px;
}
.card-page .note {
    padding: 10px 12px 8px;
    margin: 4px 0 12px;
    border-radius: 12px;
}
.card-page .note-title { font-size: 13px; }
.card-page .note li { font-size: 12px; margin: 3px 0; }
.card-visual { margin-left: 8px; }
.topup .card-visual { margin: 4px 0 22px 8px; }
.topup .note {
    padding: 10px 12px 8px;
    margin: 4px 0 22px;
    border-radius: 12px;
}
.topup > .btn-fill {
    margin-top: 4px;
}
.topup .note-title { font-size: 13px; }
.topup .note li { font-size: 12px; margin: 3px 0; }
.hafilat-card-wrap {
    position: relative;
    width: 178px;
    border-radius: 12px;
    overflow: hidden;
    margin: 4px 0 10px;
    line-height: 0;
}
.card-page .hafilat-card,
.topup .hafilat-card {
    width: 100%;
    max-width: none;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 0;
    transform: scale(1.04);
    transform-origin: center;
}
.hafilat-card-num {
    position: absolute;
    left: 10px;
    right: 8px;
    bottom: 9px;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.2;
    white-space: nowrap;
}
.card-page .pills { gap: 6px; margin: 0 0 12px; }
.card-page .pill {
    height: 22px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
}
.card-page .meta { margin: 0 0 10px; }
.card-page .meta dt {
    font-size: 13px;
    margin: 0;
}
.card-page .meta dd {
    margin: 1px 0 10px;
    font-size: 16px;
    font-weight: 700;
}
.card-page .link {
    font-size: 15px;
    margin: 2px 0 14px;
}
.card-page .balance-row {
    margin: 4px 0 14px;
    gap: 10px;
}
.card-page .balance-row dt { font-size: 13px; }
.card-page .balance-row dd {
    font-size: 22px;
    font-weight: 700;
}
.card-page .balance-row .btn-fill {
    min-width: 100px;
    min-height: 40px;
    font-size: 14px;
    padding: 8px 16px;
}
.card-page .btn-outline {
    min-height: 40px;
    font-size: 14px;
    padding: 8px 16px;
}

.meta { margin: 0 0 14px; }
.meta dt {
    color: #8b929c;
    font-size: 14px;
    margin: 0;
}
.meta dd {
    margin: 2px 0 12px;
    font-size: 18px;
    font-weight: 800;
}
.link {
    color: var(--teal);
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin: 4px 0 18px;
}

.balance-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 18px;
}
.balance-row dt { color: #8b929c; font-size: 14px; }
.balance-row dd {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.balance-row .btn-fill {
    width: auto;
    min-width: 118px;
    min-height: 46px;
}

.choice {
    display: block;
    padding: 12px 4px 12px;
    text-decoration: none;
    color: inherit;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
}
.choice b { display: block; font-size: 16px; font-weight: 700; }
.choice span { color: var(--muted); font-size: 13px; }
.choice.is-on {
    background: #eefaf8;
    margin: 0 -16px;
    padding: 12px 20px 14px;
    border-radius: 0;
}

.sub-block { margin-top: 6px; }
.sub-block h2 { font-size: 16px; margin: 10px 0 6px; font-weight: 700; }
.sub-line {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    font-size: 15px;
}
.total-label { color: #8b929c; font-size: 13px; font-weight: 500; }
.total-value { font-size: 22px; font-weight: 700; margin: 0 0 12px; }

.topup { padding-top: 4px; }
.topup h1 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.topup-lead {
    margin: 0 0 36px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 400;
    color: #1a1a1a;
}
.topup-option {
    display: block;
    width: 100%;
    padding: 2px 8px 6px;
    margin: 0 0 26px;
    border: 0;
    background: transparent;
    font: inherit;
    text-decoration: none;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.topup-option strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}
.topup-option span {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    color: #6b7280;
}
.topup-option--on {
    background: #e8f6f4;
    border-radius: 16px;
    padding: 18px 16px 20px;
    margin: 8px 0 12px;
}
.topup-amounts {
    margin: 0 0 8px;
}
.topup-limit {
    margin: 4px 0 10px;
    padding: 10px 12px;
    background: var(--note);
    color: var(--note-text);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}
.topup-heading {
    margin: 0;
    padding: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    border-bottom: 1px solid #eceff3;
}
.topup-row {
    padding: 20px 8px 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    border-bottom: 1px solid #eceff3;
}
.topup-total-label {
    margin: 22px 0 4px;
    color: #8b929c;
    font-size: 13px;
    font-weight: 400;
}
.topup-total {
    margin: 0 0 22px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.topup-links {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin-top: 20px;
}
.topup-links a {
    color: var(--teal);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}
.topup-back {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.topup-back svg { width: 16px; height: 16px; }

.sticky-pay {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 10px 16px 8px;
    margin: 14px -16px 0;
    box-shadow: 0 -8px 18px #0000000a;
}
.center-links {
    display: grid;
    justify-items: center;
    gap: 4px;
    margin-top: 8px;
}

.amount-list { margin: 6px 0 4px; }
.amount-item,
.other-toggle {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #f0f2f5;
    background: #fff;
    font-size: 18px;
    font-weight: 700;
    text-align: left;
}
.amount-item.is-on { color: var(--teal); }
.other-wrap {
    margin: 10px 0 16px;
}
.terms {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    font-size: 14px;
}
.terms input { width: 18px; height: 18px; accent-color: var(--teal); }
.terms a { color: var(--teal); font-weight: 700; text-decoration: none; }

.donate {
    background: #eef6fc;
    border-radius: 18px;
    padding: 14px 14px 10px;
    margin: 4px 0 16px;
}
.donate-top { display: flex; gap: 12px; align-items: center; }
.crescent {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #e31c23;
    position: relative;
    flex-shrink: 0;
}
.crescent:after {
    content: "";
    position: absolute;
    right: 6px;
    top: 6px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #eef6fc;
}
.donate h2 { margin: 0; font-size: 16px; line-height: 1.25; font-weight: 700; }
.donate-pills {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}
.donate-pills button {
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    font-weight: 700;
}
.dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 8px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: #d5dbe3; }
.dots span.is-on { background: var(--teal); }

.summary { padding-top: 10px; }
.summary h2 {
    margin: 0 0 20px;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.sum-row {
    padding: 14px 0 16px;
    border-bottom: 1px solid #eceff3;
}
.sum-label {
    color: #8b929c;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0 0 8px;
}
.sum-value {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.sum-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 22px 0 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.sum-pay-title {
    margin: 22px 0 0;
    padding: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    border-bottom: 1px solid #eceff3;
}
.pay-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 28px;
    padding: 16px 0 0;
}
.pay-method-name {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
}
.pay-brands {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pay-brands img {
    width: auto;
    display: block;
}
.pay-brands img.brand-mc {
    height: 36px;
    width: 36px;
    object-fit: contain;
}
.pay-brands img.brand-visa {
    height: 22px;
}
.pay-method b { font-size: 18px; }
.change {
    border: 0;
    background: transparent;
    color: var(--teal);
    font-weight: 700;
    font-size: 16px;
    padding: 0;
}
.stack { display: grid; gap: 12px; margin-top: 28px; }
.toast {
    display: none;
    margin-top: 12px;
    padding: 12px;
    border-radius: 12px;
    background: #e7f6fb;
    color: var(--note-text);
    text-align: center;
    font-weight: 600;
}
.toast.is-on { display: block; }

.tamm-ft {
    width: 100%;
    background: #282931;
    color: #fff;
    padding: 0 16px;
    font-weight: 400;
    pointer-events: none;
    user-select: none;
}
.tamm-ft__wrap { max-width: 430px; margin: 0 auto; }
.tamm-ft__section {
    border-bottom: 1px solid #5d5e68;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.tamm-ft__section:last-child { border-bottom: 0; padding-bottom: 32px; }
.tamm-ft a { color: inherit; text-decoration: none; }

.tamm-ft__emergency { padding-top: 28px; padding-bottom: 20px; }
.tamm-ft__emergency-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tamm-ft__phone {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    margin-bottom: 10px;
}
.tamm-ft__phone svg { width: 24px; height: 24px; }
.tamm-ft__emergency-title {
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-weight: 400;
}
.tamm-ft__emergency-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: #0eecda !important;
    font-size: 14px;
    line-height: 1.15;
}
.tamm-ft__emergency-link svg { width: 10px; height: 10px; }
.tamm-ft__emergency-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 18px;
    width: 100%;
}
.tamm-ft__emergency-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
    flex: 1;
}
.tamm-ft__emergency-label {
    color: #fff;
    font-size: 12px;
    line-height: 1.3;
    white-space: nowrap;
}
.tamm-ft__emergency-item a {
    color: #0eecda;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-top: 2px;
}

.tamm-ft__logo { padding: 4px 0 12px; }
.tamm-ft__logo img { width: 132px; height: auto; display: block; }
.tamm-ft__apps {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    margin: 0 0 8px;
}
.tamm-ft__apps a { display: block; width: 104px; flex: 0 0 104px; }
.tamm-ft__apps img { width: 100%; height: auto; display: block; }

.tamm-ft__nav { width: 100%; margin-top: 8px; }
.tamm-ft__acc { border-bottom: 1px solid #5d5e68; }
.tamm-ft__acc:first-child { border-top: 0; }
.tamm-ft__acc-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    cursor: default;
}
.tamm-ft__acc-icon {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-right: 1.6px solid #d0d0d1;
    border-bottom: 1.6px solid #d0d0d1;
    transform: rotate(45deg);
    margin-top: -4px;
}
.tamm-ft__acc[data-expanded="true"] .tamm-ft__acc-icon {
    transform: rotate(225deg);
    margin-top: 2px;
}
.tamm-ft__acc-body {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0 0 16px;
    text-align: left;
}
.tamm-ft__acc[data-expanded="true"] .tamm-ft__acc-body { display: block; }
.tamm-ft__acc-body li { margin: 0 0 6px; }
.tamm-ft__acc-body a {
    color: #d0d0d1;
    font-size: 13px;
    line-height: 1.4;
}

.tamm-ft__social {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
}
.tamm-ft__social a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
}
.tamm-ft__social img { width: 22px; height: 22px; display: block; }

.tamm-ft__legal { padding-top: 24px; }
.tamm-ft__emirates {
    width: 140px;
    height: auto;
    display: block;
    margin: 0 auto 16px;
}
.tamm-ft__copy { width: 100%; }
.tamm-ft__copy-text {
    display: block;
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 10px;
}
.tamm-ft__copy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 14px;
}
.tamm-ft__copy-links a {
    color: #83838e;
    font-size: 12px;
    line-height: 1.4;
}
