:root {
    --rv-bg: #eef2f7;
    --rv-surface: #ffffff;
    --rv-surface-2: #f7f9fc;
    --rv-border: #d9e2ef;
    --rv-text: #152033;
    --rv-muted: #6d7786;
    --rv-primary: #1954d1;
    --rv-primary-2: #0d6efd;
    --rv-success: #198754;
    --rv-danger: #dc3545;
    --rv-shadow: 0 14px 36px rgba(22, 33, 58, .08);
}
html, body {
    margin: 0;
    padding: 0;
    background: var(--rv-bg);
    color: var(--rv-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
}
.rv-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f3f6fb 0%, #eef2f7 100%);
}
.rv-shell {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 14px 28px;
}
.rv-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(20, 28, 43, .96);
    color: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.16);
    backdrop-filter: blur(8px);
}
.rv-topbar-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 14px;
}
.rv-brand {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.rv-brand-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}
.rv-brand-sub {
    margin-top: 3px;
    font-size: .78rem;
    color: rgba(255,255,255,.7);
}
.rv-now {
    text-align: right;
    font-size: .76rem;
    color: rgba(255,255,255,.82);
    line-height: 1.45;
    white-space: nowrap;
}

.rv-common-title {
    display:inline-flex;
    align-items:center;
    gap:12px;
    font-size:1.14rem;
    font-weight:800;
    letter-spacing:-.025em;
    line-height:1.15;
}
.rv-common-title::before {
    content:"";
    width:40px;
    height:40px;
    border-radius:14px;
    display:inline-block;
    flex:0 0 40px;
    background:linear-gradient(180deg, rgba(25,84,209,.12) 0%, rgba(13,110,253,.08) 100%);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
}
.rv-common-desc {
    margin-top:6px;
    font-size:.88rem;
    line-height:1.5;
}
.rv-login-card .rv-common-desc { color: var(--rv-muted); }
.rv-hero .rv-common-title::before {
    background:rgba(255,255,255,.16);
    box-shadow:inset 0 1px 0 rgba(255,255,255,.22);
}
.rv-hero .rv-common-desc { color: rgba(255,255,255,.88); }
.rv-hero {
    margin: 16px 0 14px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #1f57d5 0%, #2f7df6 100%);
    color: #fff;
    box-shadow: var(--rv-shadow);
}
.rv-hero-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    flex-wrap: nowrap;
}
.rv-hero-title-group {
    min-width: 0;
    flex: 1 1 auto;
}
.rv-hero-action-group {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex: 0 0 auto;
}
.rv-hero-title {
    font-size: 1.14rem;
    font-weight: 800;
    margin: 0;
}
.rv-hero-meta {
    margin-top: 5px;
    font-size: .84rem;
    opacity: .9;
}
.rv-logout {
    flex-shrink: 0;
    border-radius: 999px;
}
.rv-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.rv-stat {
    border-radius: 18px;
    padding: 14px 15px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
}
.rv-stat-label {
    font-size: .78rem;
    opacity: .88;
}
.rv-stat-value {
    margin-top: 8px;
    font-size: 1.16rem;
    font-weight: 800;
    line-height: 1.2;
}
.rv-card {
    background: var(--rv-surface);
    border: 1px solid var(--rv-border);
    border-radius: 22px;
    box-shadow: var(--rv-shadow);
}
.rv-card + .rv-card {
    margin-top: 14px;
}
.rv-card-head {
    padding: 16px 18px 10px;
}
.rv-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}
.rv-card-sub {
    margin-top: 4px;
    font-size: .82rem;
    color: var(--rv-muted);
}
.rv-card-body {
    padding: 0 18px 18px;
}
.rv-register-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}
.rv-register-input {
    height: 52px;
    border-radius: 16px;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.rv-register-btn {
    min-width: 92px;
    height: 52px;
    border-radius: 16px;
    font-weight: 800;
}
.rv-info-line {
    margin-top: 10px;
    font-size: .83rem;
    color: var(--rv-muted);
}
.rv-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rv-pagination-wrap {
    margin-top: 14px;
}
.rv-pagination .page-link {
    border-radius: 12px;
    border-color: var(--rv-border);
    color: var(--rv-primary);
    min-width: 38px;
    text-align: center;
    font-weight: 700;
}
.rv-pagination .page-item + .page-item {
    margin-left: 6px;
}
.rv-pagination .page-item.active .page-link {
    background: var(--rv-primary);
    border-color: var(--rv-primary);
    color: #fff;
}
.rv-pagination .page-item.disabled .page-link {
    color: var(--rv-muted);
    background: #f5f7fb;
}
.rv-history-item {
    border: 1px solid var(--rv-border);
    border-radius: 18px;
    padding: 14px;
    background: var(--rv-surface-2);
}
.rv-history-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.rv-plate {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: .02em;
}
.rv-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: .85rem;
    color: var(--rv-muted);
    margin-top: 6px;
}
.rv-row strong {
    color: var(--rv-text);
    font-weight: 700;
}
.rv-empty {
    padding: 20px 14px;
    text-align: center;
    color: var(--rv-muted);
    border: 1px dashed var(--rv-border);
    border-radius: 18px;
    background: var(--rv-surface-2);
}
.rv-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 14px;
}
.rv-login-card {
    width: 100%;
    max-width: 430px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(16,24,40,.08);
    border-radius: 24px;
    box-shadow: 0 24px 54px rgba(21,32,51,.16);
    padding: 24px 20px 20px;
}
.rv-login-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
}
.rv-login-sub {
    margin-top: 6px;
    color: var(--rv-muted);
    font-size: .9rem;
}
.rv-login-footer {
    margin-top: 14px;
    text-align: center;
    font-size: .85rem;
    color: var(--rv-muted);
}
.rv-link {
    color: var(--rv-primary);
    text-decoration: none;
    font-weight: 700;
}
.rv-footnote {
    text-align: center;
    color: var(--rv-muted);
    font-size: .8rem;
    margin-top: 16px;
    padding-bottom: 20px;
}
@media (max-width: 575.98px) {
    .rv-shell,
    .rv-topbar-inner {
        padding-left: 12px;
        padding-right: 12px;
    }
    .rv-hero,
    .rv-card {
        border-radius: 18px;
    }
    .rv-brand {
        flex-direction: column;
        align-items: flex-start;
    }
    .rv-now {
        text-align: left;
    }
    .rv-hero-head {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .rv-hero-action-group {
        align-self: flex-start;
    }
    .rv-hero-meta {
        font-size: .8rem;
    }
    .rv-logout {
        white-space: nowrap;
    }
    .rv-register-grid {
        grid-template-columns: 1fr;
    }
    .rv-register-btn {
        width: 100%;
    }
    .rv-history-head,
    .rv-row {
        flex-direction: column;
        gap: 4px;
    }
}
