/* TavoBank - Soft graphite + warm yellow */
:root {
    --primary: #474a50;
    --primary-light: #3d4046;
    --primary-dark: #2f3238;
    --accent: #f2d76a;
    --accent-soft: #f5e6a8;
    --accent-hover: #e8c84e;
    --accent-dark: #d4b13a;
    --text: #f0f0f0;
    --text-dark: #ffffff;
    --text-muted: #b0b2b8;
    --success: #22c55e;
    --danger: #ef4444;
    --card-bg: #3d4046;
    --border: rgba(255, 255, 255, 0.1);
    --radius: 16px;
    --shadow: 0 12px 40px -10px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(71, 74, 80, 0.92);
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

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

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

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(242, 215, 106, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.logo .pavo {
    background: linear-gradient(145deg, #f5e6a8, var(--accent));
    color: #111111;
    font-weight: 900;
    font-size: 1.45rem;
    padding: 5px 13px 6px;
    border-radius: 10px;
    letter-spacing: -0.8px;
    line-height: 1;
    box-shadow: 0 3px 14px rgba(242, 215, 106, 0.4);
}

.logo .bank {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.4px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(145deg, #f5e6a8, var(--accent));
    color: #111111;
    font-weight: 700;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(145deg, var(--accent), var(--accent-hover));
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(242, 215, 106, 0.4);
    color: #111111;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.35);
    color: var(--text-dark);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--text-dark);
    color: var(--text-dark);
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 0.9rem;
}

/* Hero */
.hero {
    padding: 40px 0 30px;
    text-align: center;
    background: 
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(242, 215, 106, 0.28) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(242, 215, 106, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 50% 30% at 15% 40%, rgba(242, 215, 106, 0.08) 0%, transparent 45%),
        linear-gradient(180deg, #4a4d54 0%, var(--primary) 45%, var(--primary) 100%);
    overflow-x: hidden;
}

.hero h1 {
    font-size: clamp(1.6rem, 4.2vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.8px;
    color: #ffffff;
}

.hero h1 .highlight {
    color: #ffffff;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-block;
    background: rgba(242, 215, 106, 0.25);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(242, 215, 106, 0.4);
}

/* Features */
.features {
    padding: 50px 0 80px;
    background: linear-gradient(180deg, var(--primary) 0%, #42454b 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

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

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(242, 215, 106, 0.45);
    box-shadow: 0 16px 40px -12px rgba(0,0,0,0.35), 0 0 0 1px rgba(242, 215, 106, 0.15);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--accent-soft), var(--accent));
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
    box-shadow: 0 4px 14px rgba(242, 215, 106, 0.25);
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Auth pages */
.auth-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow);
}

.auth-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.25);
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(242, 215, 106, 0.3);
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.4);
}

.phone-input {
    display: flex;
    align-items: center;
    gap: 0;
}

.phone-prefix {
    padding: 14px 12px;
    background: rgba(0,0,0,0.3);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.phone-input input {
    border-radius: 0 12px 12px 0;
}

.error-msg {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 6px;
    display: none;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Cabinet */
.cabinet-page {
    padding: 40px 0 80px;
}

.cabinet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.cabinet-header h1 {
    font-size: 1.6rem;
}

.user-info {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Credit Card visual */
.visa-card {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1.586;
    background: #1c1c1c;
    background: linear-gradient(165deg, #252525 0%, #161616 45%, #0f0f0f 100%);
    border-radius: 18px;
    padding: 24px 26px 20px;
    position: relative;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin: 0 auto 32px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.visa-card::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.03) 0%, transparent 65%);
    pointer-events: none;
}

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

.card-balance-block {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-balance-label {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1.8px;
    color: rgba(255, 255, 255, 0.92);
    text-transform: uppercase;
}

.card-balance-amount {
    font-size: 1.85rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.5px;
}

.card-type {
    font-size: 0.95rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.2px;
    font-family: Georgia, 'Times New Roman', serif;
}

.card-row-top .card-balance-amount {
    margin-left: auto;
}

.card-row-mid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0 2px;
}

.card-chip {
    width: 50px;
    height: 38px;
    background: linear-gradient(135deg, #f0d78c 0%, #d4af37 25%, #b8962e 50%, #c9a227 75%, #e8c56a 100%);
    border-radius: 7px;
    position: relative;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), inset 0 -1px 1px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

/* chip grid lines */
.card-chip::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 3px;
    background:
        linear-gradient(to right, transparent 32%, rgba(0,0,0,0.12) 32%, rgba(0,0,0,0.12) 34%, transparent 34%, transparent 66%, rgba(0,0,0,0.12) 66%, rgba(0,0,0,0.12) 68%, transparent 68%),
        linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.12) 30%, rgba(0,0,0,0.12) 32%, transparent 32%, transparent 68%, rgba(0,0,0,0.12) 68%, rgba(0,0,0,0.12) 70%, transparent 70%);
}

.card-chip::after {
    display: none;
}

.card-contactless {
    opacity: 0.75;
    transform: rotate(90deg);
}

.card-number {
    font-size: 1.45rem;
    letter-spacing: 4px;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    color: #f5f5f5;
    text-align: left;
    margin: auto 0 14px 0;
    padding: 0;
    width: 100%;
    border: none;
    text-decoration: none;
    box-shadow: none;
    background: transparent;
}
.card-holder {
    min-height: 1.1em;
    border: none;
    text-decoration: none;
}

.card-row-bottom {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    column-gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
}

.card-holder {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    text-align: left;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    justify-self: start;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-expiry {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    justify-self: end;
}

.card-expiry-label {
    font-size: 0.48rem;
    line-height: 1.25;
    letter-spacing: 0.6px;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    text-align: right;
}

.card-expiry-value {
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 1.5px;
}

.credit-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: -12px auto 28px;
    max-width: 380px;
    display: none;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 28px;
    max-width: 380px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    transition: transform 0.2s;
    width: 90px;
    position: relative;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-height: 88px;
}

.action-item:hover {
    transform: translateY(-3px);
}

.action-item:hover .action-circle {
    border-color: #ffffff;
    background: #000;
    box-shadow: 0 8px 20px rgba(242, 215, 106, 0.3);
}

.action-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #000;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.25s ease;
}

.action-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    color: #fff;
    line-height: 1.3;
}

.action-item:hover .action-label {
    color: #ffffff;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
    pointer-events: none;
}

.modal-overlay.active {
    display: flex;
    pointer-events: auto;
}

.modal {
    background: var(--primary-light);
    border-radius: 20px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow);
}

.modal h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

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

/* Footer */
.footer {
    border-top: 1px solid rgba(242, 215, 106, 0.1);
    padding: 30px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer p {
    margin-bottom: 6px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1a2e1a;
    color: #4ade80;
    padding: 14px 28px;
    border-radius: 12px;
    border: 1px solid rgba(74, 222, 128, 0.3);
    font-weight: 500;
    z-index: 300;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.toast.error {
    background: #2e1a1a;
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.3);
}

/* Responsive */
@media (max-width: 600px) {
    .hero {
        padding: 50px 0 70px;
    }
    .auth-card {
        padding: 28px 20px;
    }
    .visa-card {
        padding: 22px;
    }
    .card-number {
        font-size: 1.15rem;
        letter-spacing: 2px;
    }
}

/* Logo on card */
.card-brand-logo {
    display: flex;
    align-items: center;
    gap: 0;
    line-height: 1;
}
.card-brand-pavo {
    background: linear-gradient(145deg, #f5e6a8, #f2d76a);
    color: #111;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    padding: 4px 7px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.card-brand-bank {
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 5px;
    letter-spacing: 0.2px;
}

/* Currency rates widget */
.rates-widget {
    max-width: 380px;
    margin: 20px auto 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 16px;
}
.rates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.rates-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}
.rates-updated {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
}
.rates-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rates-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.rates-row:last-child { border-bottom: none; }
.rates-cur {
    font-weight: 700;
    font-size: 0.9rem;
    color: #f2d76a;
    letter-spacing: 0.5px;
}
.rates-val {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.site-footer {
    margin-top: 40px;
    padding: 28px 16px 40px;
    text-align: center;
}

/* Help button */
.help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 16px auto 0;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.25);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.help-btn:hover {
    border-color: var(--accent, #f2d76a);
    background: rgba(242,215,106,0.08);
    transform: translateY(-1px);
}
.help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.help-btn {
    display: flex; /* center on page */
    width: auto;
    max-width: 220px;
}
/* center the button in cabinet */
button.help-btn {
    margin-left: auto;
    margin-right: auto;
}

/* FAQ modal */
.modal-help {
    max-width: 420px;
}
.faq-list {
    margin-bottom: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    overflow: visible;
}
.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 12px 14px;
    cursor: pointer;
    position: relative;
    padding-right: 32px;
}
.faq-q::after {
    content: '+';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #f2d76a;
    font-size: 1.1rem;
    font-weight: 700;
}
.faq-item.open .faq-q::after { content: '−'; }
.faq-a {
    display: none;
    padding: 0 14px 12px;
    color: rgba(255,255,255,0.65);
    font-size: 0.85rem;
    line-height: 1.5;
}
.faq-item.open .faq-a { display: block; }

.help-support-block {
    text-align: center;
    margin-top: 8px;
}
.help-support-title {
    color: rgba(255,255,255,0.55);
    font-size: 0.85rem;
    margin: 0 0 12px;
}
.help-support-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}
.btn-tg-small {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 10px;
    background: #2AABEE;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
}
.btn-tg-small:hover { opacity: 0.92; }

.actions-4 {
    display: flex;
    justify-content: center;
    gap: 14px;
    max-width: 420px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.actions-4 .action-item {
    width: 88px;
}
.actions-4 .action-label {
    font-size: 0.72rem;
    line-height: 1.25;
}
.actions-4 .action-circle {
    width: 60px;
    height: 60px;
}
.actions-4 .action-circle svg {
    display: block;
}

/* Cashback */
.cashback-btn { background: linear-gradient(135deg, rgba(242,215,106,0.15), rgba(242,215,106,0.05)); }
.cb-balance {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.cb-cats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}
.cb-cat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,0.1);
    background: rgba(0,0,0,0.2);
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.cb-cat span {
    color: #f2d76a;
    font-weight: 700;
}
.cb-cat.active {
    border-color: #f2d76a;
    background: rgba(242,215,106,0.12);
}
.cb-hint {
    margin: 10px 0 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

/* Floating support FAB */
.support-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(145deg, #f5e6a8, #f2d76a);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    cursor: pointer;
    z-index: 9990;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s, box-shadow 0.15s;
}
.support-fab:hover { transform: scale(1.06); box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.support-fab-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.support-chat {
    position: fixed;
    right: 14px;
    bottom: 80px;
    width: min(480px, calc(100vw - 16px));
    height: min(720px, calc(100vh - 88px));
    background: #1e222a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    z-index: 9991;
    display: none;
    flex-direction: column;
    overflow: hidden;
    pointer-events: none;
    font-size: 1rem;
}
/* тільки явний клас .open — щоб чат не відкривався сам через aria-hidden */
.support-chat.open {
    display: flex !important;
    pointer-events: auto;
}
.support-chat:not(.open) {
    display: none !important;
    pointer-events: none !important;
}
.support-chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(242,215,106,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.support-chat-title { font-weight: 800; color: #fff; font-size: 1.12rem; }
.support-chat-sub { font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-top: 3px; }
.support-chat-close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
}
.support-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.support-empty {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
    margin: auto;
    padding: 20px;
}
.support-msg {
    max-width: 90%;
    padding: 11px 14px;
    border-radius: 14px;
    font-size: 1rem;
    line-height: 1.5;
}
.support-msg-user {
    align-self: flex-end;
    background: rgba(242,215,106,0.2);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.support-msg-admin {
    align-self: flex-start;
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-bottom-left-radius: 4px;
}
.support-msg-from {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f2d76a;
    margin-bottom: 4px;
}
.support-msg-user .support-msg-from { color: rgba(255,255,255,0.5); }
.support-msg-time {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-top: 5px;
    text-align: right;
}
.support-chat-form {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.support-chat-form input {
    flex: 1;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.3);
    color: #fff;
    padding: 12px 14px;
    font-size: 1rem;
}
.support-chat-send {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: none;
    background: #f2d76a;
    color: #111;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: 700;
    flex-shrink: 0;
}

/* Monobank-style cashback header button */
.cb-header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s, border-color 0.15s;
}
.cb-header-btn:hover {
    background: rgba(242,215,106,0.12);
    border-color: rgba(242,215,106,0.4);
}
.cb-header-icon {
    display: flex;
    color: #f2d76a;
}
.cb-header-amount {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #fff;
}
.cb-header-label {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    text-transform: lowercase;
}
@media (max-width: 420px) {
    .cb-header-label { display: none; }
}

.activate-btn-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 18px auto 10px;
    padding: 14px 28px;
    min-width: 220px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(145deg, #f5e6a8, #f2d76a);
    color: #111;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(242,215,106,0.28);
    transition: transform 0.15s, box-shadow 0.15s;
}
.activate-btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(242,215,106,0.38);
}
.help-btn {
    opacity: 0.9;
    margin-top: 8px !important;
}
.btn-support-site {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(242,215,106,0.5);
    background: rgba(242,215,106,0.14);
    color: #f2d76a;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}
.btn-support-site:hover {
    background: rgba(242,215,106,0.22);
}
.btn-support-tg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid rgba(34, 158, 217, 0.55);
    background: linear-gradient(145deg, #2AABEE, #1e96d2);
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    box-shadow: 0 3px 12px rgba(34, 158, 217, 0.28);
}
.btn-support-tg:hover {
    filter: brightness(1.06);
    color: #fff !important;
}
.card-activate-btn {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 120px;
    max-width: 160px;
    height: 36px;
    margin: 0 8px;
    padding: 0 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(145deg, #f5e6a8, #f2d76a);
    color: #111;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 2;
    white-space: nowrap;
}
.card-activate-btn:hover { filter: brightness(1.05); }
.card-row-mid {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 40px;
}

.support-link {
    color: #f2d76a !important;
    text-decoration: underline;
    word-break: break-all;
}
.support-att { margin-top: 6px; }
.support-att-img {
    max-width: 220px;
    max-height: 180px;
    border-radius: 10px;
    display: block;
}
.support-file-link {
    color: #f2d76a;
    font-size: 0.85rem;
    word-break: break-all;
}
.support-attach-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    cursor: pointer;
    font-size: 1.1rem;
    flex-shrink: 0;
}


/* ===== Android / touch safety ===== */
button, a, .btn, .action-item, .gpay-btn, .ref-btn, .help-btn, .activate-btn-main, .support-fab, .pin-key {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}
input, textarea, select {
    -webkit-user-select: text !important;
    user-select: text !important;
    touch-action: auto;
}

/* Support chat FAQ + TG */
.support-empty {
    text-align: left !important;
    margin: 0 !important;
    padding: 8px 4px 12px !important;
    width: 100%;
    color: rgba(255,255,255,0.75) !important;
}
.support-empty-head {
    text-align: center;
    margin-bottom: 12px;
    padding: 4px 8px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.support-empty-icon { font-size: 1.6rem; margin-bottom: 6px; }
.support-empty-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 6px;
}
.support-empty-text {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.45;
}
.support-empty-text strong { color: #f2d76a; }
.support-faq {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}
.support-faq-item {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    background: rgba(0,0,0,0.22);
    overflow: hidden;
}
.support-faq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 14px;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: flex-start;
}
.support-faq-q::after {
    content: '+';
    color: #f2d76a;
    font-weight: 800;
    flex-shrink: 0;
}
.support-faq-item.open .support-faq-q::after { content: '−'; }
.support-faq-a {
    display: none;
    padding: 0 14px 14px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(255,255,255,0.78);
}
.support-faq-item.open .support-faq-a {
    display: block;
    max-height: none;
    overflow: visible;
    white-space: normal;
    height: auto;
}
.support-tg-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 14px !important;
    border-radius: 14px !important;
    border: none !important;
    background: linear-gradient(145deg, #2AABEE 0%, #229ED9 45%, #1a8bc4 100%) !important;
    color: #ffffff !important;
    font-size: 0.88rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    font-family: inherit;
    line-height: 1.2;
    box-shadow: 0 6px 18px rgba(34, 158, 217, 0.35);
    cursor: pointer;
    margin-top: 4px;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.support-tg-btn:hover {
    filter: brightness(1.06);
    box-shadow: 0 8px 22px rgba(34, 158, 217, 0.45);
    transform: translateY(-1px);
}
.support-tg-btn:active {
    transform: translateY(0);
    filter: brightness(0.98);
}
.support-tg-btn svg {
    flex-shrink: 0;
}
.support-chat-tools {
    padding: 8px 12px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .support-chat {
        right: 6px;
        left: 6px;
        width: auto;
        bottom: 72px;
        height: min(78vh, 760px);
    }
}


/* Mobile modal scroll fixes */
.modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.modal {
    max-height: calc(100dvh - 24px);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


/* TavoBank logo mark */
.logo { display: inline-flex; align-items: center; gap: 8px; }
.logo img, header .logo svg, .header .logo img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
}
.logo-mark {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    flex: 0 0 28px;
    display: block;
    border-radius: 8px;
}
.logo .pavo {
    letter-spacing: 0.2px;
}

.btn {
    min-height: 44px;
    gap: 8px;
    line-height: 1.15;
    white-space: nowrap;
}
.btn-block { width: 100%; }
.btn:disabled,
.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    filter: grayscale(0.15);
}
.btn-primary:disabled:hover {
    background: linear-gradient(145deg, #f5e6a8, var(--accent));
    transform: none;
    box-shadow: none;
}

.verify-modal { max-width: 440px; text-align: left; }
.verify-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: rgba(242,215,106,0.12);
    border: 1px solid rgba(242,215,106,0.28);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 12px;
}
.verify-modal h3 { margin: 0 0 8px; }
.verify-lead {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 0 14px;
}
.verify-steps {
    margin: 0 0 18px;
    padding-left: 1.15em;
    color: rgba(255,255,255,0.88);
    font-size: 0.9rem;
    line-height: 1.55;
}
.verify-steps li { margin-bottom: 4px; }
.verify-hint {
    margin: -4px 0 4px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
}
