:root {
    --white: #FFFFFF;
    --navy: #003256;
    --gold: #7F7141;
    --dark: #1B1B1B;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--white);
    color: var(--dark);
}

header {
    background: var(--navy);
    color: var(--white);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .logo {
    height: 50px;
    max-width: 180px;
    object-fit: contain;
}

.header-brand {
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.4rem;
}

nav a {
    color: var(--white);
    text-decoration: none;
    margin-left: 1.2rem;
    font-weight: 500;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

@media (max-width: 700px) {
    header {
        padding: 0;
        flex-wrap: nowrap;
        position: relative;
        justify-content: flex-start;
    }
    .header-brand { padding: 1rem; flex-shrink: 0; }
    .header-actions { padding: 1rem; width: auto; justify-content: flex-end; flex-shrink: 0; margin-left: auto; }
    .main-nav {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 0.5rem 0;
        gap: 0;
        z-index: 101;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    }
    .main-nav.open { display: flex; }
    .main-nav a {
        margin: 0;
        padding: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .menu-toggle { display: flex; }
    .home-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; gap: 1rem; }
    .container { padding: 0 1rem; margin: 1rem auto; }
    .card { padding: 1.2rem; }
    input, textarea, select, button { font-size: 16px; }
    .bank-card { max-width: 100%; }
}

.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.card {
    background: var(--white);
    border: 1px solid #e0e4e8;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.card h2, .card h3 {
    color: var(--navy);
    margin-top: 0;
}

.card h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 0.65rem 1.2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.btn-navy { background: var(--navy); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--white); }
.btn-dark { background: var(--dark); color: var(--white); }
.btn-danger { background: #a94442; color: var(--white); }

.btn:hover { opacity: 0.9; }

/* Forms */
form label {
    display: block;
    margin: 1rem 0 0.4rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

form input, form select, form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid #d0d7de;
    border-radius: 8px;
    font-size: 1rem;
    background: #fafbfc;
    color: var(--dark);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    outline: none;
}

form input:focus, form select:focus, form textarea:focus {
    border-color: var(--navy);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0,50,86,0.08);
}

form input::placeholder, form textarea::placeholder {
    color: #9aa3ab;
    font-size: 0.95rem;
}

form input:disabled, form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

form .btn {
    padding: 0.9rem 1.4rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.5rem;
    transition: transform 0.1s, opacity 0.2s;
}

form .btn:hover:not(:disabled) {
    opacity: 0.95;
    transform: translateY(-1px);
}

form .btn:active:not(:disabled) {
    transform: translateY(0);
}

.btn-block { width: 100%; display: block; }

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .two-col { grid-template-columns: 1fr; }
}

.field-group {
    margin-bottom: 0.6rem;
}

.field-hint {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.25rem;
}

.check {
    float: right;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 1rem;
}

.check.valid { color: #00A878; opacity: 1; }
.check.invalid { color: #a94442; opacity: 1; }

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

table th, table td {
    padding: 0.75rem;
    border-bottom: 1px solid #ddd;
    text-align: left;
}

table th { background: var(--navy); color: var(--white); }

.alert {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    border-left: 4px solid transparent;
}

.alert-info { background: #eef7ff; color: var(--navy); border-left-color: var(--navy); }
.alert-warning { background: #fff9e6; color: #856404; border-left-color: var(--gold); }
.alert-danger { background: #fff0f1; color: #721c24; border-left-color: #a94442; }

footer.main {
    background: var(--gold);
    color: var(--white);
    padding: 1.5rem 2rem;
    text-align: center;
}

footer.sub {
    background: var(--dark);
    color: var(--white);
    padding: 0.8rem 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* FDIC-style corporate homepage */
.header-gold-line {
    height: 5px;
    background: var(--gold);
}

.main-nav a {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-left: 1.2rem;
    margin-right: 0;
}

.header-search {
    color: var(--white);
    cursor: pointer;
    transition: opacity 0.2s;
}

.header-search:hover { opacity: 0.7; }

.search-bar {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: var(--navy);
    padding: 1rem 2rem;
}

.search-bar.open { display: flex; }

.search-bar input {
    flex: 1;
    padding: 0.7rem;
    border: none;
    border-radius: 4px;
}

.home-main {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
    min-height: calc(100vh - 230px);
}

.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    min-height: calc(100vh - 310px);
}

.featured-card {
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.featured-image-box {
    flex: 1;
    min-height: 420px;
}

.featured-img {
    height: 100%;
    min-height: 420px;
}

@media (max-width: 900px) {
    .home-main { min-height: auto; }
    .home-grid { grid-template-columns: 1fr; min-height: auto; }
    .featured-card, .featured-image-box { min-height: 300px; }
}

.featured-card {
    background: var(--white);
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.featured-image-box {
    position: relative;
    min-height: 420px;
}

.featured-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.8s ease-in-out;
}

.banner-slide:first-child {
    opacity: 1;
}

.featured-placeholder {
    width: 100%;
    height: 420px;
    background: linear-gradient(135deg, var(--navy), #001a2e);
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.2s;
}

.slider-dot.active, .slider-dot:hover {
    background: var(--white);
}

.alert-section {
    position: relative;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: var(--white);
}

.featured-label {
    display: inline-block;
    color: #6ec1ff;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.featured-overlay h2 {
    margin: 0 0 0.5rem;
    font-size: 1.7rem;
    max-width: 500px;
}

.featured-overlay p {
    margin: 0;
    font-size: 1rem;
    max-width: 520px;
}

.side-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-card {
    background: var(--white);
    border: 1px solid #e0e4e8;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 2rem;
}

.login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef1f4;
}

.login-logo img {
    max-height: 80px;
    max-width: 200px;
    object-fit: contain;
}

.login-logo h3 {
    margin: 0;
    color: var(--navy);
    font-size: 1.5rem;
}

.login-tagline {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0.5rem 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-card h3 {
    margin-top: 0;
    color: var(--navy);
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

.btn-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid var(--white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.side-card {
    background: var(--white);
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    padding: 1.5rem;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
    background: linear-gradient(rgba(0,50,86,0.6), rgba(0,50,86,0.9)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect width="100" height="100" fill="%23003256"/></svg>');
    background-size: cover;
}

.side-label {
    color: #6ec1ff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.side-card h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.alert-section {
    display: flex;
    gap: 1rem;
    background: #e7f4ff;
    border-left: 5px solid var(--navy);
    padding: 1.5rem;
    margin-top: 2rem;
    align-items: flex-start;
}

.alert-icon {
    color: var(--navy);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.alert-content h4 {
    margin: 0 0 0.4rem;
    color: var(--navy);
}

.alert-content p {
    margin: 0;
    color: #333;
    line-height: 1.5;
}

.alert-close {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--navy);
    cursor: pointer;
    line-height: 1;
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 800px) {
    .two-col { grid-template-columns: 1fr; }
}

/* Bank-style dashboard */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dash-greeting {
    margin: 0;
    color: var(--navy);
    font-size: 1.8rem;
}

.dash-meta {
    color: #777;
    margin: 0.3rem 0 0;
    font-size: 0.95rem;
}

.dash-status .status-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--white);
    background: var(--navy);
}

.dash-status .status-active { background: #00A878; }
.dash-status .status-hold { background: var(--gold); }
.dash-status .status-suspended { background: #a94442; }
.dash-status .status-disabled { background: #555; }

.account-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #eef1f4;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    background: #fafbfc;
}

.inline-form { display: inline; margin: 0; }

.account-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.account-card {
    background: var(--white);
    border: 1px solid #e0e4e8;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.account-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--navy);
}

.account-card.primary-account::before { background: var(--gold); }

.account-info {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #eef1f4;
}

.account-name {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
}

.account-type {
    display: block;
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.2rem;
}

.account-balances {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.balance-pair {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.balance-label {
    color: #777;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.balance-amount {
    font-size: 1.4rem;
    font-weight: 700;
}

.balance-amount.credit { color: #006b4e; }
.balance-amount.hold { color: #a94442; }
.balance-amount.total { color: var(--navy); }

.dash-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 900px) {
    .dash-grid { grid-template-columns: 1fr; }
    .dash-balance-grid { grid-template-columns: 1fr; }
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.transaction-table th {
    background: var(--navy);
    color: var(--white);
    padding: 0.8rem;
    text-align: left;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.transaction-table td {
    padding: 0.9rem 0.8rem;
    border-bottom: 1px solid #eef1f4;
}

.transaction-table tr:last-child td { border-bottom: none; }

.tx-type {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    background: #eef1f4;
    color: var(--dark);
}

.tx-deposit, .tx-release { background: #e6f8f3; color: #00A878; }
.tx-debit, .tx-hold { background: #fff0f1; color: #a94442; }

.tx-amount { font-weight: 600; }
.tx-deposit, .tx-release { color: #00A878; }
.tx-debit, .tx-hold { color: #a94442; }

.empty-state {
    color: #888;
    font-style: italic;
    padding: 1rem 0;
}

/* Password toggle */
.password-wrapper {
    position: relative;
    display: block;
}

.password-wrapper input {
    padding-right: 2.8rem;
}

.toggle-password {
    position: absolute;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    border: none;
    cursor: pointer;
    color: #777;
    padding: 0.25rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.2s;
}

.toggle-password:hover { color: var(--navy); }

.login-card .toggle-password, .card .toggle-password {
    background: #fafbfc;
}

.login-card .password-wrapper input:focus + .toggle-password,
.card .password-wrapper input:focus + .toggle-password,
.password-wrapper input:focus ~ .toggle-password {
    background: var(--white);
}

/* Field validation */
.field-group { position: relative; margin-bottom: 0.6rem; }
.field-hint { display: block; font-size: 0.8rem; color: #777; margin-top: 0.2rem; }
.check { float: right; font-weight: bold; opacity: 0; transition: opacity 0.2s; }
.check.valid { color: #00A878; opacity: 1; }
.check.invalid { color: #a94442; opacity: 1; }
input.valid, textarea.valid, select.valid { border-color: #00A878 !important; }
input.invalid, textarea.invalid, select.invalid { border-color: #a94442 !important; }

/* Loading overlay */
.overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,50,86,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: var(--white);
}
.overlay-box {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
}
.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255,255,255,0.2);
    border-top: 5px solid var(--gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.checkmark {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #00A878;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: popIn 0.4s ease-out;
}
.checkmark svg {
    width: 50px;
    height: 50px;
    stroke: var(--white);
    stroke-width: 5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawCheck 0.5s ease-out 0.2s forwards;
}
@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
@keyframes drawCheck {
    to { stroke-dashoffset: 0; }
}

/* Shake on error */
.shake { animation: shake 0.4s; }
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Bank cards */
.card-page {
    max-width: 700px;
}

.card-page-title {
    color: var(--navy);
    margin-bottom: 1rem;
}

.card-status-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 6px solid;
    background: #f8f9fa;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-status-banner.status-preparing { border-left-color: var(--gold); background: #fff9e6; }
.card-status-banner.status-on_way { border-left-color: #00A878; background: #e6f8f3; }
.card-status-banner.status-on_hold { border-left-color: #a94442; background: #fff0f1; }
.card-status-banner.status-shipped { border-left-color: var(--navy); background: #eef7ff; }
.card-status-banner.status-revoked { border-left-color: #555; background: #f0f0f0; }

.status-icon { flex-shrink: 0; color: var(--navy); }
.status-text h3 { margin: 0 0 0.2rem; color: var(--navy); font-size: 1.1rem; }
.status-text p { margin: 0; color: #555; }

.card-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bank-card {
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1.586;
    border-radius: 18px;
    padding: 1.8rem;
    color: var(--white);
    background: linear-gradient(135deg, var(--navy), #001a2e);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

.bank-card:hover {
    transform: translateY(-6px) rotateX(4deg);
    box-shadow: 0 18px 40px rgba(0,0,0,0.3);
}

.bank-card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
    transform: rotate(30deg);
    pointer-events: none;
    animation: shine 4s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) rotate(30deg); }
    100% { transform: translateX(100%) rotate(30deg); }
}

.bank-card-preparing { background: linear-gradient(135deg, #7F7141, #5a4f2e); }
.bank-card-on_way { background: linear-gradient(135deg, #003256, #001a2e); }
.bank-card-on_hold { background: linear-gradient(135deg, #a94442, #6e2b2b); }
.bank-card-shipped { background: linear-gradient(135deg, #006b4e, #003d2c); }

.bank-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.bank-card-brand {
    font-family: 'Segoe UI', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

.bank-card-wifi { opacity: 0.8; }

.bank-card-chip {
    position: relative;
    z-index: 1;
    margin: 0.5rem 0 1rem;
}

.bank-card-number {
    font-size: 1.6rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.bank-card-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.bank-card-label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.75;
    margin-bottom: 0.2rem;
}

.bank-card-value {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.admin-card-preview {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}

.card-actions { display: flex; gap: 1rem; }

.empty-card { text-align: center; padding: 2rem; }

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid #eef1f4;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    background: #fafbfc;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.table-wrap table { min-width: 600px; }

.card table {
    width: 100%;
    border-collapse: collapse;
}

@media (max-width: 700px) {
    .dash-transactions { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .dash-transactions table { min-width: 600px; }
    .table-wrap { margin: 0 -1rem; width: calc(100% + 2rem); }
    .card table th, .card table td { white-space: nowrap; }
    .account-row { flex-direction: column; align-items: stretch; }
    .document-item { flex-direction: column; align-items: flex-start; }
    .bank-card-number { font-size: 1.2rem; letter-spacing: 2px; }
}

.identity-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.identity-card {
    background: var(--white);
    border: 1px solid #e0e4e8;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
}
