:root {
    --tnsc-primary: #0d4f8b;
    --tnsc-accent: #f4a72a;
}

body {
    background: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.navbar.bg-primary {
    background-color: var(--tnsc-primary) !important;
}

.btn-primary,
.bg-primary {
    background-color: var(--tnsc-primary) !important;
    border-color: var(--tnsc-primary) !important;
}

.btn-outline-primary {
    color: var(--tnsc-primary);
    border-color: var(--tnsc-primary);
}

.btn-outline-primary:hover {
    background-color: var(--tnsc-primary);
    color: #fff;
}

.text-primary {
    color: var(--tnsc-primary) !important;
}

.card {
    border: 0;
    border-radius: .75rem;
}

.qr-wrap {
    background: #fff;
    padding: 1rem;
    border-radius: .75rem;
    border: 2px dashed #dee2e6;
    width: 312px;
    height: 312px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-wrap canvas,
.qr-wrap .qr-img {
    max-width: 100%;
    height: auto;
    display: block;
}

code {
    color: #6f42c1;
    font-size: .8em;
}

.hero h1 {
    font-weight: 700;
    color: var(--tnsc-primary);
}

.table th {
    font-weight: 600;
    font-size: .85rem;
    text-transform: uppercase;
    color: #6c757d;
}

/* Payment received overlay */
.paid-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 30, 60, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: paidFadeIn .25s ease-out;
}

.paid-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 48px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: paidPop .35s cubic-bezier(.2,.9,.3,1.2);
}

.paid-icon {
    font-size: 88px;
    line-height: 1;
    color: #198754;
    animation: paidCheck .5s ease-out .1s both;
}

@keyframes paidFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes paidPop {
    from { transform: scale(.85); opacity: 0; }
    to   { transform: scale(1);   opacity: 1; }
}

@keyframes paidCheck {
    0%   { transform: scale(0);   opacity: 0; }
    60%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1);   opacity: 1; }
}
