/* SenaSend View-Only App — Styles */
/* Do not change the brand colors, logo usage, or typography — match the waitlist UI. */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #071A2D;
    --bg-secondary: #0A2540;
    --bg-alt: #061729;
    --bg-card: rgba(255,255,255,0.05);
    --border-card: rgba(255,255,255,0.1);
    --accent: #1F6FEB;
    --accent-hover: #2F81F7;
    --success: #2DCC9F;
    --error: #E8695E;
    --warning: #E0A832;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255,255,255,0.7);
    --text-muted: rgba(255,255,255,0.5);
    --sidebar-width: 260px;
    --topbar-height: 72px;
    --radius: 18px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html {
    height: 100%;
    overflow-x: hidden;
    background: var(--bg-primary);
}

body {
    font-family: var(--font);
    font-size: 15px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    min-height: 100vh;
    min-height: 100dvh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* ========== LOGIN PAGE ========== */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.login-logo img {
    height: 48px;
}

.login-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 32px;
}

.form-hint-right {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.link-subtle {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.link-subtle:hover {
    color: var(--accent);
}

.login-alt {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.login-alt a {
    color: var(--text-secondary);
    font-weight: 600;
}

.login-alt a:hover {
    color: var(--accent);
}

/* ========== FORM ELEMENTS ========== */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='rgba(255,255,255,0.5)' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ========== BUTTONS ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    font-family: var(--font);
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31,111,235,0.3);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #26b88d;
    color: #fff;
}

/* ========== APP LAYOUT ========== */

.app-layout {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* ========== SIDEBAR ========== */

.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-alt);
    border-right: 1px solid var(--border-card);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

.sidebar-overlay {
    display: none;
}

.sidebar-logo {
    padding: 24px 24px 20px;
    border-bottom: 1px solid var(--border-card);
}

.sidebar-logo img {
    height: 30px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 16px 12px;
    flex: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-xs);
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.sidebar-nav a:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.sidebar-nav a.active {
    color: var(--text-primary);
    background: rgba(31,111,235,0.15);
    font-weight: 600;
    border-left: 3px solid var(--accent);
    padding-left: 13px;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-card);
    margin: 12px 16px;
}

/* ========== TOPBAR ========== */

.topbar {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    border-bottom: 1px solid var(--border-card);
    background: var(--bg-alt);
    position: relative;
    z-index: 50;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-title {
    font-size: 18px;
    font-weight: 700;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-bell {
    position: relative;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.topbar-bell:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

.bell-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid var(--bg-alt);
}

/* ========== PROFILE DROPDOWN ========== */

.profile-dropdown-wrap {
    position: relative;
}

.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid transparent;
    color: var(--text-secondary);
    padding: 6px 14px 6px 6px;
    border-radius: 24px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.topbar-user-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.topbar-user-btn.active {
    border-color: var(--border-card);
    background: rgba(255,255,255,0.1);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.user-name {
    white-space: nowrap;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    opacity: 0.6;
}

.topbar-user-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #0C2238;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 500;
    padding: 6px;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-xs);
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
}

.dropdown-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.dropdown-item:hover svg {
    opacity: 1;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-card);
    margin: 6px 8px;
}

.dropdown-item-danger {
    color: var(--error);
}

.dropdown-item-danger:hover {
    background: rgba(232,105,94,0.1);
    color: var(--error);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.06);
}

/* ========== MAIN CONTENT ========== */

.app-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

.app-content {
    flex: 1;
    padding: 32px;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* ========== FOOTER ========== */

.app-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 100%;
}

.app-footer a {
    color: var(--text-muted);
    font-size: 13px;
}

.app-footer a:hover {
    color: var(--text-secondary);
}

/* ========== CARDS ========== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 24px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
}

/* ========== WALLET CARDS ========== */

.wallet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.wallet-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wallet-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.wallet-flag {
    font-size: 28px;
    margin-bottom: 12px;
}

.wallet-currency {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.wallet-balance {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
}

.wallet-locked {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.wallet-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ========== QUICK ACTIONS ========== */

.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    text-decoration: none;
}

.quick-action-btn:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(31,111,235,0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.quick-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(31,111,235,0.12);
    color: var(--accent);
}

/* ========== SECTION HEADERS ========== */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
}

/* ========== TABLES ========== */

.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

thead th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-card);
}

tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

/* ========== STATUS BADGES ========== */

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: rgba(45,204,159,0.12);
    color: var(--success);
}

.badge-pending {
    background: rgba(224,168,50,0.12);
    color: var(--warning);
}

.badge-failed {
    background: rgba(232,105,94,0.12);
    color: var(--error);
}

/* ========== TOGGLE SWITCH ========== */

.toggle {
    position: relative;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.15);
    border-radius: 24px;
    transition: 0.2s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: 0.2s ease;
}

.toggle input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* ========== TOAST NOTIFICATION ========== */

.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: rgba(10,37,64,0.95);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* ========== CHAT UI (support page) ========== */

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 400px;
    overflow-y: auto;
    padding: 20px;
    margin-bottom: 20px;
}

.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
}

.chat-bubble.agent {
    align-self: flex-start;
    background: rgba(255,255,255,0.08);
    color: var(--text-secondary);
    border-bottom-left-radius: 4px;
}

.chat-bubble.user {
    align-self: flex-end;
    background: rgba(31,111,235,0.2);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}

.chat-input-row {
    display: flex;
    gap: 12px;
}

.chat-input-row .form-input {
    flex: 1;
}

/* ========== PAGE HEADER ========== */

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 6px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========== CONTENT TEXT (terms, privacy) ========== */

.content-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 14px;
}

.content-text h2 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    margin: 32px 0 12px;
}

.content-text h3 {
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    margin: 24px 0 8px;
}

.content-text p {
    margin-bottom: 16px;
}

.content-text ul {
    margin: 8px 0 16px 24px;
}

.content-text li {
    margin-bottom: 6px;
}

/* ========== TWO COLUMN FORM LAYOUT ========== */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ========== BENEFICIARY / SESSION LIST ========== */

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.list-item-name {
    font-size: 14px;
    font-weight: 600;
}

.list-item-detail {
    font-size: 13px;
    color: var(--text-muted);
}

.list-item-actions {
    display: flex;
    gap: 8px;
}

/* ========== FX CONVERSION ========== */

/* ========== CONVERT PAGE ========== */

.convert-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

.convert-wallet-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.convert-wallet-bal {
    font-size: 13px;
    color: var(--text-muted);
}

.convert-amount-input {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    padding: 16px;
}

.convert-details-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-rows {
    margin-top: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.detail-label {
    font-size: 14px;
    color: var(--text-muted);
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-value-muted {
    color: var(--text-muted);
    font-weight: 500;
}

.detail-value-success {
    color: var(--success);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.3px;
    text-shadow: 0 0 16px rgba(45,204,159,0.12);
}

.detail-divider {
    height: 1px;
    background: var(--border-card);
    margin: 8px 0;
}

.detail-row-total {
    padding-top: 12px;
}

.convert-info-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px 20px;
}

.convert-info-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.convert-info-icon {
    font-size: 16px;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 1px;
}

.fx-swap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
}

.fx-swap-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-card);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
    font-family: var(--font);
}

.fx-swap-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(31,111,235,0.1);
    transform: rotate(180deg);
}

.fx-preview {
    background: rgba(45,204,159,0.08);
    border: 1px solid rgba(45,204,159,0.2);
    border-radius: var(--radius-xs);
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.fx-preview-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.fx-preview-amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--success);
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(45,204,159,0.15);
}

.fx-preview-rate {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ========== TRANSFER ========== */

.transfer-or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
}

.transfer-or-line {
    flex: 1;
    height: 1px;
    background: var(--border-card);
}

.transfer-or-text {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.btn-sm {
    padding: 10px 16px;
    font-size: 13px;
}

.btn-icon {
    font-size: 16px;
    font-weight: 700;
    margin-right: 6px;
}

.form-label-optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 12px;
}

/* ========== RECENT RECIPIENTS ========== */

.recent-recipients-section {
    margin-bottom: 24px;
}

.recent-recipients-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.recent-recipients-row {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.recipient-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: var(--font);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
}

.recipient-chip:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    background: rgba(31,111,235,0.08);
}

.recipient-chip.active {
    border-color: var(--accent);
    background: rgba(31,111,235,0.15);
    color: var(--text-primary);
}

.recipient-chip-avatar {
    width: 32px;
    height: 32px;
    background: rgba(31,111,235,0.2);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.recipient-chip.active .recipient-chip-avatar {
    background: var(--accent);
    color: #fff;
}

/* ========== ACCOUNT NAME DISPLAY ========== */

.account-name-display {
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xs);
    min-height: 44px;
    display: flex;
    align-items: center;
}

.account-name-placeholder {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

.account-name-verified {
    font-size: 14px;
    font-weight: 600;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========== CUSTOM MODAL ========== */

.sena-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4,12,24,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    padding: 24px;
}

.sena-modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.sena-modal {
    background: #0C2238;
    border: 1px solid var(--border-card);
    border-radius: var(--radius);
    padding: 36px 32px 28px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.2s ease;
}

.sena-modal-overlay.show .sena-modal {
    transform: scale(1);
}

.sena-modal-icon {
    margin-bottom: 16px;
}

.sena-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.sena-modal-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.sena-modal-btn {
    min-width: 120px;
}

.sena-modal-wide {
    max-width: 440px;
}

.sena-modal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.sena-modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.sena-modal-actions .btn {
    flex: 1;
}

.confirm-detail-rows {
    text-align: left;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
}

.confirm-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.confirm-detail-label {
    font-size: 14px;
    color: var(--text-muted);
}

.confirm-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.confirm-detail-divider {
    height: 1px;
    background: var(--border-card);
    margin: 6px 0;
}

.confirm-detail-row-total {
    padding-top: 10px;
}

.confirm-detail-value-success {
    color: var(--success);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.3px;
}

/* ========== RESPONSIVE — TABLET ========== */

@media (max-width: 1024px) {
    :root {
        --sidebar-width: 220px;
    }

    .app-content {
        padding: 24px;
    }

    .wallet-balance {
        font-size: 26px;
    }

    .convert-layout {
        grid-template-columns: 1fr;
    }
}

/* ========== RESPONSIVE — MOBILE ========== */

@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        width: 280px;
        z-index: 1000;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .app-layout {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .app-main {
        margin-left: 0;
        width: 100%;
        max-width: 100vw;
        min-width: 0;
    }

    .topbar {
        padding: 0 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .app-content {
        padding: 20px 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .app-footer {
        padding: 16px;
        flex-wrap: wrap;
        gap: 12px;
        box-sizing: border-box;
    }

    .wallet-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wallet-card {
        padding: 24px 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .wallet-balance {
        font-size: 26px;
    }

    .wallet-actions-desktop {
        display: none;
    }

    .wallet-locked {
        margin-bottom: 0;
    }

    .quick-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .quick-action-btn {
        padding: 16px 6px;
        font-size: 11px;
        gap: 8px;
        min-width: 0;
        overflow: hidden;
    }

    .quick-action-icon {
        width: 38px;
        height: 38px;
        flex-shrink: 0;
    }

    .quick-action-icon svg {
        width: 18px;
        height: 18px;
    }

    .card {
        padding: 20px 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
    }

    .table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 32px 24px;
    }

    .convert-layout {
        grid-template-columns: 1fr;
    }

    .convert-amount-input {
        font-size: 20px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .toast {
        right: 16px;
        left: 16px;
        bottom: 20px;
        text-align: center;
    }

    .profile-dropdown {
        right: -16px;
        width: 200px;
    }

    .recent-recipients-row {
        gap: 8px;
    }

    .recipient-chip {
        padding: 8px 12px 8px 8px;
    }

    .recipient-chip-avatar {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .sena-modal {
        padding: 28px 20px 24px;
    }

    .sena-modal-actions {
        flex-direction: column;
    }

    .mpesa-container {
        max-width: 100%;
    }

    .mpesa-card {
        padding: 20px 16px 18px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .verify-card {
        padding: 28px 16px;
    }

    .review-card {
        padding: 24px 16px;
    }

    .result-container {
        padding: 16px 0 40px;
    }

    .result-card {
        padding: 32px 16px 28px;
    }

    .processing-card {
        padding: 36px 16px 32px;
    }

    .verify-fallback-input-wrap {
        max-width: 100%;
    }

    .paybill-account-section {
        max-width: 100%;
    }

    .country-select-container {
        max-width: 100%;
    }

    .ke-method-container {
        max-width: 100%;
    }

    .page-header {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .review-row {
        gap: 8px;
    }

    .review-value {
        word-break: break-word;
        min-width: 0;
    }

    .result-row {
        gap: 8px;
    }

    .result-value {
        word-break: break-word;
        min-width: 0;
    }

    .result-ref {
        font-size: 12px;
    }

    .sena-toast {
        left: 16px;
        right: 16px;
        transform: translateX(0) translateY(80px);
    }

    .sena-toast.show {
        transform: translateX(0) translateY(0);
    }
}

@media (max-width: 480px) {
    .user-name {
        display: none;
    }

    .topbar-user-btn {
        padding: 4px 10px 4px 4px;
    }

    .wallet-actions-desktop {
        display: none;
    }

    .login-card {
        padding: 28px 20px;
    }

    .login-logo img {
        height: 40px;
    }

    .login-title {
        font-size: 20px;
    }

    .profile-dropdown {
        right: -8px;
        width: 190px;
    }
}

/* ========== Country Select Cards (Transfer) ========== */
.country-select-container {
    max-width: 580px;
    margin: 0 auto;
}

.wallet-summary-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin-bottom: 28px;
}

.wallet-summary-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.wallet-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wallet-summary-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-summary-flag {
    font-size: 18px;
    line-height: 1;
}

.wallet-summary-label {
    font-size: 14px;
    color: var(--text-secondary);
    flex: 1;
}

.wallet-summary-amount {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.country-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.country-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 52px 24px 48px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font);
    color: var(--text-primary);
    outline: none;
    text-decoration: none;
}

.country-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(31,111,235,0.35);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(31,111,235,0.12), 0 8px 32px rgba(0,0,0,0.2);
}

.country-card:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31,111,235,0.25);
}

.country-card.selected {
    border-color: var(--accent);
    background: rgba(31,111,235,0.08);
    box-shadow: 0 0 0 2px var(--accent), 0 0 24px rgba(31,111,235,0.15);
}

.country-card-flag {
    font-size: 52px;
    line-height: 1;
}

.country-card-label {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.country-card-currency {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.04em;
}

.country-card-check {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s ease;
}

.country-card.selected .country-card-check {
    opacity: 1;
    transform: scale(1);
}

.country-select-back {
    display: flex;
    justify-content: center;
    padding: 20px 0 0;
}

.country-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.country-back-link:hover {
    color: var(--text-primary);
}

@media (max-width: 600px) {
    .country-select-container {
        max-width: 100%;
    }

    .country-select-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .country-card {
        padding: 40px 20px 36px;
    }

    .btn-continue {
        width: 100%;
    }

    .wallet-summary-card {
        padding: 16px 18px;
    }
}

/* ========== Kenya Method Selection ========== */
.ke-method-container {
    max-width: 720px;
    margin: 0 auto;
}

.ke-method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.ke-method-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 40px 16px 36px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: var(--font);
    color: var(--text-primary);
    outline: none;
    text-align: center;
    text-decoration: none;
}

.ke-method-card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(31,111,235,0.35);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(31,111,235,0.12), 0 8px 32px rgba(0,0,0,0.2);
}

.ke-method-card:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31,111,235,0.25);
}

.ke-method-card.selected {
    border-color: var(--accent);
    background: rgba(31,111,235,0.08);
    box-shadow: 0 0 0 2px var(--accent), 0 0 24px rgba(31,111,235,0.15);
}

.ke-method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(31,111,235,0.1);
    margin-bottom: 4px;
}

.ke-method-name {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ke-method-desc {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.ke-method-check {
    position: absolute;
    top: 14px;
    right: 14px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s ease;
}

.ke-method-card.selected .ke-method-check {
    opacity: 1;
    transform: scale(1);
}

/* Kenya Step Toggle */
.ke-step-hidden {
    display: none !important;
}

.ke-change-method {
    margin-bottom: 24px;
}

.ke-amount-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 22px 24px 20px;
}

.ke-amount-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 8px;
}

.ke-amount-prefix {
    position: absolute;
    left: 18px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.ke-amount-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 16px 20px 16px 58px;
    font-size: 26px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-variant-numeric: tabular-nums;
}

.ke-amount-input::placeholder {
    color: rgba(255,255,255,0.18);
    font-weight: 500;
}

.ke-amount-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31,111,235,0.15), 0 0 16px rgba(31,111,235,0.08);
}

.ke-amount-balance {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.ke-proceed-btn {
    width: 100%;
    min-height: 48px;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 24px;
    transition: all 0.2s ease;
}

.ke-proceed-btn:not(:disabled):hover {
    box-shadow: 0 0 20px rgba(31,111,235,0.25), 0 4px 16px rgba(0,0,0,0.2);
}

.ke-proceed-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

.ke-proceed-btn:not(:disabled):active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .ke-method-grid {
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .ke-method-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ke-method-card {
        padding: 32px 16px 28px;
    }

    .ke-amount-card {
        padding: 20px 18px 18px;
    }

    .ke-amount-input {
        font-size: 22px;
        padding: 14px 16px 14px 52px;
    }

    .ke-amount-prefix {
        font-size: 15px;
        left: 16px;
    }
}

/* ========== M-PESA Send Money ========== */
.mpesa-container {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.mpesa-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 24px 24px 22px;
}

.mpesa-phone-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.mpesa-country-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    height: 48px;
    white-space: nowrap;
    flex-shrink: 0;
}

.mpesa-pill-flag {
    font-size: 15px;
    line-height: 1;
}

.mpesa-pill-code {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.mpesa-phone-input {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    height: 48px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.04em;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.mpesa-phone-input::placeholder {
    color: rgba(255,255,255,0.2);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.mpesa-phone-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31,111,235,0.15), 0 0 16px rgba(31,111,235,0.08);
}

.mpesa-contacts-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: rgba(31,111,235,0.1);
    border: 1.5px solid rgba(31,111,235,0.2);
    border-radius: var(--radius-sm);
    color: var(--accent);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.mpesa-contacts-btn:hover {
    background: rgba(31,111,235,0.18);
    border-color: var(--accent);
}

.mpesa-contacts-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(31,111,235,0.25);
}

.mpesa-phone-hint {
    min-height: 18px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 500;
}

.mpesa-hint-default {
    color: var(--text-muted);
    opacity: 0.7;
}

.mpesa-hint-valid {
    color: var(--success);
}

.mpesa-hint-error {
    color: var(--error);
}

/* Amount Input */
.mpesa-amount-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.mpesa-currency-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 0 14px;
    height: 48px;
    white-space: nowrap;
    flex-shrink: 0;
}

.mpesa-currency-pill .mpesa-pill-code {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.mpesa-amount-input {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    height: 48px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
}

.mpesa-amount-input::placeholder {
    color: rgba(255,255,255,0.15);
    font-weight: 500;
}

.mpesa-amount-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31,111,235,0.15), 0 0 16px rgba(31,111,235,0.08);
}

.mpesa-amount-balance {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.mpesa-amount-balance strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Saved Recipients Modal */
.mpesa-recipients-modal {
    width: 380px;
    max-width: 92vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.mpesa-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.mpesa-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.mpesa-modal-close:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.mpesa-search-wrap {
    position: relative;
    margin-bottom: 12px;
}

.mpesa-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.mpesa-search-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 12px 14px 12px 40px;
    font-size: 14px;
    color: var(--text-primary);
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s ease;
}

.mpesa-search-input::placeholder {
    color: var(--text-muted);
}

.mpesa-search-input:focus {
    border-color: var(--accent);
}

.mpesa-recipient-list {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mpesa-recipient-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 12px;
    background: transparent;
    border: 1.5px solid transparent;
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: var(--font);
    color: var(--text-primary);
    outline: none;
    text-align: left;
}

.mpesa-recipient-item:hover {
    background: rgba(255,255,255,0.06);
}

.mpesa-recipient-item:focus-visible {
    border-color: var(--accent);
}

.mpesa-recipient-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(31,111,235,0.15);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.mpesa-recipient-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.mpesa-recipient-name {
    font-size: 14px;
    font-weight: 700;
}

.mpesa-recipient-number {
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    font-weight: 400;
}

.mpesa-recipient-empty {
    text-align: center;
    padding: 24px 0;
    color: var(--text-muted);
    font-size: 14px;
}

/* Toast */
.sena-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(10,37,64,0.95);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    pointer-events: none;
}

.sena-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 520px) {
    .mpesa-card {
        padding: 20px 18px 18px;
    }

    .mpesa-phone-row {
        gap: 8px;
    }

    .mpesa-country-pill {
        padding: 0 10px;
        height: 46px;
    }

    .mpesa-phone-input {
        height: 46px;
        padding: 0 12px;
        font-size: 16px;
    }

    .mpesa-contacts-btn {
        width: 46px;
        height: 46px;
    }

    .mpesa-recipients-modal {
        max-height: 70vh;
    }
}

/* ========================================
   Verification Page
   ======================================== */
.verify-card {
    text-align: center;
    padding: 36px 28px;
}

.verify-number-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.verify-flag {
    font-size: 18px;
}

.verify-number {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.verify-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    min-height: 100px;
    justify-content: center;
}

.verify-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.08);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: verifySpinAnim 0.9s linear infinite;
}

@keyframes verifySpinAnim {
    to { transform: rotate(360deg); }
}

.verify-status-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

.verify-text-success {
    color: var(--success);
    font-weight: 600;
    font-size: 16px;
}

.verify-text-fail {
    color: var(--warning);
    font-weight: 600;
    font-size: 16px;
}

.verify-icon {
    margin-bottom: 4px;
}

.verify-recipient-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
}

.verify-recipient-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.verify-recipient-num {
    font-size: 14px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.verify-pill-verified {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    background: rgba(45,204,159,0.12);
    border: 1px solid rgba(45,204,159,0.25);
    border-radius: 20px;
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-top: 4px;
}

.verify-pill-sm {
    padding: 2px 10px;
    font-size: 11px;
    margin-top: 0;
    margin-left: 6px;
}

.verify-fallback-hint {
    font-size: 13px;
    color: var(--text-muted);
    opacity: 0.8;
    margin-top: 2px;
}

.verify-fallback-input-wrap {
    width: 100%;
    max-width: 320px;
    margin-top: 16px;
    text-align: left;
}

.verify-fallback-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    height: 48px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    font-family: var(--font);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-top: 8px;
}

.verify-fallback-input::placeholder {
    color: rgba(255,255,255,0.2);
}

.verify-fallback-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31,111,235,0.15);
}

.verify-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.verify-retry-btn {
    width: 100%;
    min-height: 48px;
    margin-top: 0;
}

/* ========================================
   Review Page
   ======================================== */
.review-card {
    padding: 32px 28px;
}

.review-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    text-align: center;
}

.review-rows {
    display: flex;
    flex-direction: column;
}

.review-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.review-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.review-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-amount {
    font-size: 16px;
    font-weight: 700;
}

.review-fees {
    color: var(--text-secondary);
}

.review-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
}

.review-divider-total {
    background: rgba(255,255,255,0.12);
}

.review-row-total .review-label {
    font-weight: 600;
    color: var(--text-secondary);
}

.review-total {
    font-size: 17px;
    font-weight: 700;
    color: var(--accent);
}

.review-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

/* ========================================
   Result Page
   ======================================== */
.result-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 0 60px;
    width: 100%;
    box-sizing: border-box;
}

.result-card {
    flex-direction: column;
    align-items: center;
    padding: 44px 32px 40px;
    text-align: center;
}

.result-icon {
    margin-bottom: 20px;
}

.result-icon-success svg {
    filter: drop-shadow(0 0 12px rgba(45,204,159,0.3));
}

.result-icon-fail svg {
    filter: drop-shadow(0 0 12px rgba(232,105,94,0.3));
}

.result-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
}

.result-reassurance {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.result-title-success {
    color: #2DCC9F;
}

.result-title-fail {
    color: var(--error);
}

.result-fail-message {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.result-details {
    width: 100%;
    text-align: left;
    margin-bottom: 0;
    padding: 20px 0 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.result-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.result-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

.result-ref-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-ref {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: #5BA3F5;
}

.result-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.result-copy-btn:hover {
    background: rgba(31,111,235,0.15);
    border-color: rgba(31,111,235,0.3);
    color: var(--accent);
}

.result-amount {
    font-weight: 700;
}

.result-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
}

.result-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 36px;
}

.result-actions .ke-proceed-btn,
.result-actions .verify-retry-btn {
    text-decoration: none;
    text-align: center;
}

@media (max-width: 480px) {
    .result-container {
        padding: 20px 0 40px;
    }

    .result-card {
        padding: 32px 20px 28px;
    }

    .verify-fallback-input-wrap {
        max-width: 100%;
    }
}

/* ========================================
   Processing / Sending Page
   ======================================== */
.processing-card {
    text-align: center;
    padding: 48px 28px 40px;
    position: relative;
    overflow: hidden;
}

.processing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--success), var(--accent), transparent);
    background-size: 300% 100%;
    animation: processingShimmer 2s ease-in-out infinite;
}

@keyframes processingShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.processing-spinner-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}

.processing-spinner {
    animation: processingSpin 1.2s linear infinite;
}

@keyframes processingSpin {
    to { transform: rotate(360deg); }
}

.processing-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.processing-subtitle {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.processing-progress {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 20px;
}

.processing-bar {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}

.processing-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.processing-details {
    display: flex;
    justify-content: center;
}

.processing-detail-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

@media (max-width: 480px) {
    .processing-card {
        padding: 36px 20px 32px;
    }

    .processing-progress {
        max-width: 100%;
    }
}

/* ========================================
   Till Number Input
   ======================================== */
.till-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.till-icon-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 48px;
    background: rgba(31,111,235,0.08);
    border: 1.5px solid rgba(31,111,235,0.15);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

/* ========================================
   Result Page – Warning & Error States
   ======================================== */
.result-icon-warn svg {
    filter: drop-shadow(0 0 12px rgba(245,166,35,0.3));
}

.result-title-warn {
    color: var(--warning);
}

.result-error-code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.6;
    letter-spacing: 0.04em;
    margin-bottom: 28px;
}

.paybill-account-section {
    width: 100%;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-card);
}

.paybill-account-section .form-label {
    margin-bottom: 8px;
}

.paybill-account-section .verify-fallback-input {
    margin-bottom: 6px;
}

/* ========================================
   Nigeria Bank Transfer
   ======================================== */
.ng-recipient-card {
    padding: 0;
    overflow: visible;
}

.ng-fav-section {
    padding: 12px 24px 6px;
}

.ng-fav-header {
    margin-bottom: 6px;
}

.ng-fav-header .form-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ng-fav-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
}

.ng-fav-chips::-webkit-scrollbar {
    display: none;
}

.ng-fav-chip {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 6px 12px;
    background: rgba(224,168,50,0.06);
    border: 1px solid rgba(224,168,50,0.18);
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font);
    color: var(--text-primary);
    outline: none;
    transition: all 0.15s ease;
}

.ng-fav-chip:hover {
    background: rgba(224,168,50,0.12);
    border-color: rgba(224,168,50,0.3);
}

.ng-fav-chip:focus-visible {
    border-color: #E0A832;
    box-shadow: 0 0 0 2px rgba(224,168,50,0.2);
}

.ng-fav-chip-star {
    color: #E0A832;
    font-size: 13px;
    line-height: 1;
    flex-shrink: 0;
}

.ng-fav-chip-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ng-fav-chip-name {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.ng-fav-chip-detail {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
    white-space: nowrap;
}

.ng-saved-section {
    padding: 10px 24px 2px;
}

.ng-saved-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.ng-saved-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ng-new-recipient-btn {
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
}

.ng-new-recipient-btn:hover {
    color: var(--accent);
}

.ng-view-all-btn {
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 0;
}

.ng-view-all-btn:hover {
    color: var(--accent-hover);
}

.ng-saved-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ng-saved-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 4px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.12s ease;
    font-family: var(--font);
    color: var(--text-primary);
    outline: none;
    text-align: left;
}

.ng-saved-row:last-child {
    border-bottom: none;
}

.ng-saved-row:hover {
    background: rgba(255,255,255,0.04);
}

.ng-saved-row:focus-visible {
    background: rgba(31,111,235,0.08);
}

.ng-saved-row-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ng-saved-row-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.ng-saved-row-detail {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

.ng-saved-row-arrow {
    opacity: 0.25;
    flex-shrink: 0;
}

.ng-saved-row:hover .ng-saved-row-arrow {
    opacity: 0.5;
}

.ng-section-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0;
}

.ng-manual-section {
    padding: 16px 24px 20px;
}

.ng-error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 24px 20px;
    padding: 12px 14px;
    background: rgba(232,105,94,0.08);
    border: 1px solid rgba(232,105,94,0.2);
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 500;
    color: var(--error);
}

.ng-error-banner svg {
    flex-shrink: 0;
}

.ng-bank-select-wrap {
    position: relative;
    margin-top: 8px;
}

.ng-bank-select-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.06);
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    padding: 0 16px;
    height: 48px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    font-family: var(--font);
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ng-bank-select-btn:hover {
    border-color: rgba(255,255,255,0.18);
}

.ng-bank-select-btn:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(31,111,235,0.15);
}

.ng-bank-select-text.ng-bank-selected {
    color: var(--text-primary);
    font-weight: 600;
}

.ng-bank-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #0C2238;
    border: 1px solid var(--border-card);
    border-radius: var(--radius-sm);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    z-index: 200;
    max-height: 280px;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.ng-bank-dropdown.show {
    display: flex;
}

.ng-bank-search-wrap {
    position: relative;
    padding: 10px 10px 6px;
}

.ng-bank-search-wrap .mpesa-search-icon {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
}

.ng-bank-search-wrap .mpesa-search-input {
    padding-left: 40px;
}

.ng-bank-list {
    overflow-y: auto;
    max-height: 220px;
    padding: 0 6px 6px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ng-bank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: left;
    transition: all 0.12s ease;
    outline: none;
}

.ng-bank-item:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-primary);
}

.ng-bank-item:focus-visible {
    background: rgba(31,111,235,0.1);
    color: var(--text-primary);
}

.ng-bank-item svg {
    opacity: 0.4;
    flex-shrink: 0;
}

.ng-bank-item:hover svg {
    opacity: 0.7;
}

.ng-verify-page-card {
    text-align: center;
    padding: 56px 32px;
}

.ng-verify-page-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 4px 0 8px;
}

.ng-verify-page-sub {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
    margin: 0;
}

.ng-verified-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #2DCC9F;
    background: rgba(45,204,159,0.1);
    border: 1px solid rgba(45,204,159,0.2);
    padding: 2px 7px;
    border-radius: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.ng-save-options {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ng-save-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: var(--font);
    user-select: none;
    -webkit-user-select: none;
}

.ng-save-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.ng-check-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.ng-save-check input[type="checkbox"]:checked + .ng-check-box {
    background: var(--accent);
    border-color: var(--accent);
}

.ng-save-check input[type="checkbox"]:checked + .ng-check-box::after {
    content: '';
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -1px;
}

.ng-save-check input[type="checkbox"]:checked + .ng-check-box-star {
    background: rgba(224,168,50,0.15);
    border-color: #E0A832;
}

.ng-save-check input[type="checkbox"]:checked + .ng-check-box-star::after {
    content: '★';
    font-size: 11px;
    color: #E0A832;
    border: none;
    transform: none;
    margin-top: 0;
}

.ng-check-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ng-fav-check {
    padding-left: 28px;
}

.ng-save-nested {
    margin-left: 28px;
    padding: 10px 14px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-xs);
}

.ng-save-label-row {
    margin-bottom: 10px;
}

.ng-save-label-text {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.ng-save-label-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-xs);
    padding: 8px 12px;
    font-family: var(--font);
    font-size: 13px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.ng-save-label-input::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.ng-save-label-input:focus {
    border-color: var(--accent);
}

.ng-save-nested .ng-save-check {
    padding-left: 0;
}

.ng-review-card {
    padding: 28px 24px;
}

.ng-review-total {
    font-size: 19px;
    font-weight: 700;
    color: var(--accent);
}

.ng-result-container .result-card {
    padding: 36px 28px 32px;
}

.ng-result-icon {
    margin-bottom: 16px;
}

.ng-result-icon svg {
    filter: drop-shadow(0 0 14px rgba(45,204,159,0.3));
}

@media (max-width: 520px) {
    .ng-bank-dropdown {
        max-height: 240px;
    }

    .ng-fav-section {
        padding: 12px 16px 6px;
    }

    .ng-fav-chip {
        padding: 7px 12px;
    }

    .ng-saved-section {
        padding: 12px 16px 4px;
    }

    .ng-manual-section {
        padding: 14px 16px 18px;
    }

    .ng-error-banner {
        margin: 12px 16px 16px;
    }

    .ng-saved-row {
        padding: 8px 2px;
    }

    .ng-verify-page-card {
        padding: 40px 20px;
    }

    .ng-review-card {
        padding: 22px 18px;
    }

    .ng-result-container .result-card {
        padding: 28px 18px 24px;
    }
}

/* ========================================
   Tier Badge (Topbar)
   ======================================== */
.tier-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tier-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    white-space: nowrap;
}

.tier-badge-lg {
    padding: 5px 14px;
    font-size: 11px;
}

.tier-badge-1 {
    background: rgba(224,168,50,0.12);
    border: 1px solid rgba(224,168,50,0.25);
    color: #E0A832;
}

.tier-badge-2 {
    background: rgba(45,204,159,0.12);
    border: 1px solid rgba(45,204,159,0.25);
    color: #2DCC9F;
}

.tier-badge-3 {
    background: rgba(31,111,235,0.12);
    border: 1px solid rgba(31,111,235,0.25);
    color: #5BA3F5;
}

.tier-upgrade-link {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    transition: color 0.2s ease;
}

.tier-upgrade-link:hover {
    color: var(--accent-hover);
}

/* ========================================
   Profile Page
   ======================================== */
.profile-container {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-header-card {
    padding: 32px 28px;
}

.profile-hero {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar-lg {
    width: 64px;
    height: 64px;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.profile-hero-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.profile-fullname {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-email {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.profile-tier-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.profile-upgrade-btn {
    padding: 5px 16px;
    font-size: 12px;
    border-radius: 20px;
}

.tier-status-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
}

.profile-settings-card {
    padding: 0;
    overflow: hidden;
}

.profile-settings-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 18px 24px 12px;
}

.profile-settings-list {
    display: flex;
    flex-direction: column;
}

.profile-settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: all 0.15s ease;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    text-decoration: none;
}

.profile-settings-item:last-child {
    border-bottom: none;
}

.profile-settings-item:hover {
    background: rgba(255,255,255,0.04);
    color: var(--text-primary);
}

.profile-settings-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-settings-item-left svg {
    opacity: 0.6;
    flex-shrink: 0;
}

.profile-settings-item:hover svg {
    opacity: 1;
}

.profile-settings-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-settings-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.profile-settings-item > svg {
    opacity: 0.3;
    flex-shrink: 0;
}

.profile-settings-item-danger {
    color: var(--error);
}

.profile-settings-item-danger:hover {
    background: rgba(232,105,94,0.06);
    color: var(--error);
}

.profile-settings-item-danger svg {
    opacity: 0.7;
}

/* ========================================
   Upgrade / Account Verification Page
   ======================================== */
.upgrade-container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.upgrade-current {
    padding: 22px 28px;
    margin-bottom: 24px;
}

.upgrade-current-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.upgrade-current-left,
.upgrade-current-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.upgrade-current-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.upgrade-current-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.upgrade-tiers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

.upgrade-tier-card {
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upgrade-tier-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.upgrade-tier-status {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.upgrade-tier-status-current {
    color: var(--warning);
}

.upgrade-tier-status-next {
    color: var(--accent);
}

.upgrade-tier-status-locked {
    color: var(--text-muted);
    opacity: 0.6;
}

.upgrade-tier-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.upgrade-tier-desc {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.5;
}

.upgrade-tier-limits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.upgrade-limit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upgrade-limit-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.upgrade-limit-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.upgrade-tier-reqs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.upgrade-reqs-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.upgrade-req-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.upgrade-req-done {
    color: var(--success);
}

.upgrade-req-done svg {
    color: var(--success);
}

.upgrade-req-pending {
    color: var(--text-secondary);
}

.upgrade-req-pending svg {
    color: var(--accent);
    opacity: 0.5;
}

.upgrade-req-locked {
    color: var(--text-muted);
    opacity: 0.5;
}

.upgrade-req-locked svg {
    color: var(--text-muted);
}

.upgrade-cta {
    margin-top: 8px;
}

.upgrade-tier-active {
    border-color: rgba(224,168,50,0.2);
}

.upgrade-tier-next {
    border-color: rgba(31,111,235,0.25);
    background: rgba(31,111,235,0.03);
}

.upgrade-tier-locked {
    opacity: 0.55;
}

.upgrade-back {
    display: flex;
    justify-content: center;
    padding: 8px 0 0;
}

@media (max-width: 900px) {
    .upgrade-tiers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .tier-indicator {
        gap: 6px;
    }

    .tier-upgrade-link {
        display: none;
    }

    .profile-header-card {
        padding: 24px 16px;
    }

    .profile-hero {
        gap: 14px;
    }

    .profile-avatar-lg {
        width: 52px;
        height: 52px;
        font-size: 17px;
    }

    .profile-fullname {
        font-size: 18px;
    }

    .profile-settings-item {
        padding: 14px 16px;
    }

    .profile-settings-title {
        padding: 16px 16px 10px;
    }

    .upgrade-current {
        padding: 18px 16px;
    }

    .upgrade-tier-card {
        padding: 20px 16px;
    }
}

@media (max-width: 480px) {
    .tier-badge {
        font-size: 9px;
        padding: 2px 8px;
    }

    .profile-hero {
        flex-direction: column;
        text-align: center;
    }

    .profile-hero-info {
        align-items: center;
    }

    .profile-tier-row {
        justify-content: center;
    }

    .upgrade-current-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
