/* PavoBank - 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%;
}

.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;
}

.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;
}

.modal-overlay.active {
    display: flex;
}

.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;
    }
}
