:root {
    /* Official palette from ormoc.gov.ph */
    --ormoc-primary: #215294;
    --ormoc-dark: #15326b;
    --ormoc-navy: #18233f;
    --ormoc-deep: #010066;
    --ormoc-medium: #364b76;
    --ormoc-accent: #aac9f7;
    --ormoc-gold: #c5922c;
    --ormoc-gold-hover: #a87a20;
    --ormoc-light: #ecf4ff;
    --ormoc-bg: #dfe7f2;
    --ormoc-white: #ffffff;
    --ormoc-text: #1d1d1d;
    --ormoc-muted: #5c6b82;
    --ormoc-shadow-sm: 0 2px 8px rgba(21, 50, 107, 0.08);
    --ormoc-shadow-md: 0 8px 24px rgba(21, 50, 107, 0.12);
    --ormoc-radius: 12px;
    --ormoc-font: "Inter", system-ui, -apple-system, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--ormoc-font);
    color: var(--ormoc-text);
    background: #f5f8fc;
}

a {
    color: var(--ormoc-primary);
}

a:hover {
    color: var(--ormoc-dark);
}

.bg-ormoc {
    background: linear-gradient(90deg, var(--ormoc-navy), var(--ormoc-primary) 55%, var(--ormoc-dark));
    box-shadow: var(--ormoc-shadow-sm);
}

.site-navbar {
    z-index: 1030;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: saturate(1.1);
}

.site-navbar .navbar-brand {
    min-width: 0;
}

.site-navbar .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    gap: 0.1rem;
}

.site-navbar .brand-sub {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.navbar-brand,
.nav-link {
    letter-spacing: 0.01em;
}

.site-navbar .nav-link {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    font-size: 0.925rem;
    padding: 0.45rem 0.7rem !important;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.site-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 -2px 0 var(--ormoc-gold);
}

.site-navbar .nav-user-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding-right: 0.55rem !important;
}

.nav-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: var(--ormoc-gold);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.nav-user-copy {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
    text-align: left;
    min-width: 0;
}

.nav-user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    max-width: 11rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-role {
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.nav-dropdown {
    min-width: 15.5rem;
    padding: 0.45rem;
    border: 0;
    border-radius: 12px;
    box-shadow: var(--ormoc-shadow-md);
    margin-top: 0.4rem !important;
}

.nav-dropdown .dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    white-space: normal;
    color: var(--ormoc-text);
}

.nav-dropdown .dropdown-item:hover,
.nav-dropdown .dropdown-item:focus {
    background: var(--ormoc-light);
    color: var(--ormoc-dark);
}

.nav-dropdown .dropdown-item.active {
    background: rgba(33, 82, 148, 0.12);
    color: var(--ormoc-dark);
}

.nav-dropdown .dropdown-item-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-dropdown .dropdown-item-meta {
    font-size: 0.75rem;
    color: var(--ormoc-muted);
}

.nav-dropdown .dropdown-divider {
    margin: 0.35rem 0.4rem;
    opacity: 0.2;
}

.btn-outline-light:hover {
    color: var(--ormoc-dark);
}

/* Map common Bootstrap buttons to Ormoc brand */
.btn-success,
.btn-primary {
    --bs-btn-bg: var(--ormoc-primary);
    --bs-btn-border-color: var(--ormoc-primary);
    --bs-btn-hover-bg: var(--ormoc-dark);
    --bs-btn-hover-border-color: var(--ormoc-dark);
    --bs-btn-active-bg: var(--ormoc-navy);
    --bs-btn-active-border-color: var(--ormoc-navy);
    --bs-btn-disabled-bg: var(--ormoc-medium);
    --bs-btn-disabled-border-color: var(--ormoc-medium);
}

.btn-warning {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ormoc-gold);
    --bs-btn-border-color: var(--ormoc-gold);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ormoc-gold-hover);
    --bs-btn-hover-border-color: var(--ormoc-gold-hover);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--ormoc-gold-hover);
    --bs-btn-active-border-color: var(--ormoc-gold-hover);
}

.btn-outline-primary {
    --bs-btn-color: var(--ormoc-primary);
    --bs-btn-border-color: var(--ormoc-primary);
    --bs-btn-hover-bg: var(--ormoc-primary);
    --bs-btn-hover-border-color: var(--ormoc-primary);
    --bs-btn-active-bg: var(--ormoc-dark);
    --bs-btn-active-border-color: var(--ormoc-dark);
}

.btn-outline-secondary {
    --bs-btn-color: var(--ormoc-medium);
    --bs-btn-border-color: #c5d4ea;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--ormoc-medium);
    --bs-btn-hover-border-color: var(--ormoc-medium);
}

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

.alert-success {
    --bs-alert-color: var(--ormoc-dark);
    --bs-alert-bg: var(--ormoc-light);
    --bs-alert-border-color: var(--ormoc-accent);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--ormoc-accent);
    box-shadow: 0 0 0 0.2rem rgba(33, 82, 148, 0.2);
}

.form-check-input:checked {
    background-color: var(--ormoc-primary);
    border-color: var(--ormoc-primary);
}

.badge.text-bg-secondary {
    background-color: var(--ormoc-medium) !important;
}

.card {
    border-radius: var(--ormoc-radius);
    box-shadow: var(--ormoc-shadow-sm);
}

.hero-panel {
    background:
        linear-gradient(135deg, rgba(24, 35, 63, 0.94), rgba(33, 82, 148, 0.9) 55%, rgba(21, 50, 107, 0.92)),
        radial-gradient(circle at top right, rgba(197, 146, 44, 0.28), transparent 42%);
    color: #fff;
    border-radius: var(--ormoc-radius);
    padding: 2.5rem;
    box-shadow: var(--ormoc-shadow-md);
}

.citizen-type-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 7.25rem;
    height: 100%;
    padding: 1rem 1.15rem;
    color: var(--ormoc-navy);
    background: var(--ormoc-white);
    border: 1px solid #c5d4ea;
    border-radius: var(--ormoc-radius);
    box-shadow: var(--ormoc-shadow-sm);
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.citizen-type-link:hover {
    color: var(--ormoc-navy);
    border-color: var(--ormoc-accent);
    box-shadow: var(--ormoc-shadow-md);
    transform: translateY(-2px);
}

.citizen-type-link:focus-visible {
    outline: 3px solid var(--ormoc-gold);
    outline-offset: 3px;
}

.citizen-type-icon {
    display: grid;
    place-items: center;
    flex: 0 0 3.25rem;
    width: 3.25rem;
    aspect-ratio: 1;
    border-radius: 0.75rem;
}

.citizen-type-icon svg {
    width: 1.65rem;
    height: 1.65rem;
}

.citizen-type-icon-resident {
    color: #8b650f;
    background: #fff4d8;
}

.citizen-type-icon-employee {
    color: var(--ormoc-primary);
    background: var(--ormoc-light);
}

.citizen-type-icon-type {
    color: var(--ormoc-primary);
    background: var(--ormoc-light);
    font-size: 1.65rem;
    line-height: 1;
}

.citizen-type-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.citizen-type-copy strong {
    font-size: 1rem;
    line-height: 1.35;
}

.citizen-type-copy > span:last-child {
    color: var(--ormoc-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

.citizen-type-kicker {
    color: var(--ormoc-muted);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
}

.citizen-type-arrow {
    flex: 0 0 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
    margin-left: auto;
    color: var(--ormoc-muted);
}

.site-footer {
    background: var(--ormoc-navy);
    color: rgba(255, 255, 255, 0.82);
    border-top: 3px solid var(--ormoc-gold);
}

.site-footer a {
    color: var(--ormoc-accent);
}

.char-counter.ok { color: var(--ormoc-primary); }
.char-counter.warn { color: var(--ormoc-gold); }
.char-counter.over { color: #dc3545; font-weight: 600; }

.registration-hero {
    background: linear-gradient(135deg, var(--ormoc-navy), var(--ormoc-primary));
    color: #fff;
    border-radius: var(--ormoc-radius);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--ormoc-shadow-sm);
}

.registration-hero-inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.wizard-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
}

.wizard-step {
    background: #e7eef8;
    color: var(--ormoc-medium);
    border-radius: 999px;
    text-align: center;
    font-size: 0.85rem;
    padding: 0.45rem 0.5rem;
    font-weight: 600;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wizard-step.active {
    background: var(--ormoc-primary);
    color: #fff;
}

.wizard-step.done {
    background: var(--ormoc-accent);
    color: var(--ormoc-dark);
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.wizard-actions .btn {
    min-height: 44px;
}

.wizard-panel .card-body {
    padding: 1.25rem;
}

.page-toolbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.85rem 1.25rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.page-toolbar > .page-seal-header {
    flex: 0 1 auto;
    min-width: 0;
}

.page-toolbar-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start;
    margin-left: auto;
}

.page-toolbar > .btn,
.page-toolbar > a.btn,
.page-toolbar-actions > .btn,
.page-toolbar-actions > a.btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.page-seal-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.page-seal-header h1,
.page-seal-header .h3 {
    word-break: break-word;
}

.filter-panel,
.data-panel {
    background: #fff;
    border: 1px solid #c5d4ea;
    border-radius: var(--ormoc-radius);
    box-shadow: var(--ormoc-shadow-sm);
}

.filter-panel {
    padding: 0.9rem;
}

.data-panel {
    overflow: hidden;
}

.table-apps thead th {
    white-space: nowrap;
    font-size: 0.85rem;
    border-bottom-width: 1px;
}

.table-apps tbody td {
    vertical-align: middle;
}

.app-cell-primary {
    font-weight: 500;
    max-width: 16rem;
    overflow-wrap: anywhere;
}

.status-badge {
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 999px;
    padding: 0.35em 0.7em;
}

.status-submitted {
    background: #215294 !important;
    color: #fff !important;
}

.status-review {
    background: #364b76 !important;
    color: #fff !important;
}

.status-correction {
    background: #c5922c !important;
    color: #fff !important;
}

.status-validated {
    background: #0f766e !important;
    color: #fff !important;
}

.status-verified {
    background: #0f766e !important;
    color: #fff !important;
}

.status-approved {
    background: #15803d !important;
    color: #fff !important;
}

.status-rejected {
    background: #b91c1c !important;
    color: #fff !important;
}

.status-default {
    background: var(--ormoc-medium) !important;
    color: #fff !important;
}

.app-card-list {
    display: grid;
    gap: 0.9rem;
}

.app-card {
    background: #fff;
    border: 1px solid #c5d4ea;
    border-radius: var(--ormoc-radius);
    box-shadow: var(--ormoc-shadow-sm);
    padding: 1rem 1.1rem 1.15rem;
}

.app-card--correction {
    border-color: var(--ormoc-gold);
    box-shadow: 0 0 0 0.15rem rgba(197, 146, 44, 0.18);
}

.app-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.app-card-kicker {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ormoc-muted);
}

.app-card-number {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ormoc-navy);
    letter-spacing: 0.01em;
}

.app-card-name {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.app-card-meta {
    margin-top: 0.2rem;
    font-size: 0.82rem;
    color: var(--ormoc-muted);
}

.app-card-next {
    margin: 0.75rem 0 0;
    font-size: 0.92rem;
    color: var(--ormoc-text);
}

.app-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 1rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .app-card-list {
        grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    }
}

.stat-tile {
    background: var(--ormoc-white);
    border: 1px solid #c5d4ea;
    border-radius: var(--ormoc-radius);
    padding: 1rem 1.15rem;
    box-shadow: var(--ormoc-shadow-sm);
    height: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.stat-tile:hover {
    border-color: var(--ormoc-accent);
    box-shadow: var(--ormoc-shadow-md);
    transform: translateY(-1px);
}

.stat-tile .stat-label {
    color: var(--ormoc-muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
    min-height: 2.4em;
}

.stat-tile .stat-value-of {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ormoc-muted);
    margin-left: 0.15rem;
}

.stat-tile.has-items {
    border-color: rgba(33, 82, 148, 0.35);
    background: linear-gradient(180deg, #fff 0%, var(--ormoc-light) 100%);
}

.stat-tile.has-items .stat-value {
    color: var(--ormoc-primary);
}

.report-office-tile .stat-label {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.4em;
}

.sms-preview {
    background: #0b1220;
    color: #e8eef8;
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    font-size: 0.85rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

.validator-picker {
    max-height: 16rem;
    overflow: auto;
    border: 1px solid rgba(33, 82, 148, 0.18);
    border-radius: var(--ormoc-radius);
    padding: 0.75rem 1rem;
    background: #fff;
}

.validator-picker .form-check + .form-check {
    margin-top: 0.35rem;
}

.report-tile-meta {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    color: var(--ormoc-muted);
    line-height: 1.3;
}

.report-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.report-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.report-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(33, 82, 148, 0.22);
    background: #fff;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
}

.report-tab:hover {
    border-color: var(--ormoc-primary);
    color: var(--ormoc-primary);
}

.report-tab.is-active {
    background: var(--ormoc-primary);
    border-color: var(--ormoc-primary);
    color: #fff;
}

.report-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(33, 82, 148, 0.12);
    overflow: hidden;
}

.report-progress span {
    display: block;
    height: 100%;
    background: var(--ormoc-primary);
    border-radius: inherit;
}

.report-chart-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.report-chart {
    display: flex;
    align-items: stretch;
    gap: 0.35rem;
    min-height: 12.5rem;
    min-width: 100%;
}

.report-chart-col {
    flex: 1 0 2.7rem;
    min-width: 2.7rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.report-chart-value {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ormoc-navy);
    line-height: 1.2;
    margin-bottom: 0.35rem;
}

.report-chart-bar-wrap {
    flex: 1 1 auto;
    width: 100%;
    min-height: 8.5rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.report-chart-bar {
    width: 72%;
    max-width: 2.4rem;
    min-height: 0.2rem;
    border-radius: 6px 6px 0 0;
    background: var(--ormoc-accent);
}

.report-chart-col.is-empty .report-chart-bar {
    background: rgba(33, 82, 148, 0.14);
}

.report-chart-col.is-peak .report-chart-bar {
    background: var(--ormoc-primary);
}

.report-chart-col.is-today .report-chart-bar {
    background: var(--ormoc-gold);
}

.report-chart-col.is-today .report-chart-value,
.report-chart-col.is-today .report-chart-label {
    color: var(--ormoc-gold-hover);
    font-weight: 700;
}

.report-chart-label {
    margin-top: 0.4rem;
    font-size: 0.65rem;
    color: var(--ormoc-muted);
    text-align: center;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.report-chart-weekday {
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .report-chart {
        gap: 0.18rem;
        min-height: 11rem;
    }

    .report-chart-value {
        font-size: 0.62rem;
    }

    .report-chart-bar-wrap {
        min-height: 7rem;
    }

    .report-chart-weekday {
        display: none;
    }

    .report-chart-label {
        font-size: 0.58rem;
    }
}

.dashboard-note {
    background: #fff;
    border: 1px solid #c5d4ea;
    border-radius: var(--ormoc-radius);
    padding: 0.95rem 1.15rem;
    color: var(--ormoc-muted);
    font-size: 0.95rem;
}

/* Prevent iOS zoom on focus */
.form-control,
.form-select {
    font-size: 1rem;
}

.privacy-box {
    background: var(--ormoc-light);
    border: 1px solid #c5d4ea;
    border-radius: var(--ormoc-radius);
    padding: 1rem 1.25rem;
    max-height: 280px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.gcash-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid #c5d4ea;
    border-radius: var(--ormoc-radius);
    padding: 1rem;
    cursor: pointer;
    font-weight: 700;
    background: #fff;
    min-height: 52px;
    width: 100%;
}

.gcash-choice:has(input:checked) {
    border-color: var(--ormoc-primary);
    background: var(--ormoc-light);
    color: var(--ormoc-dark);
}

.table thead th {
    color: var(--ormoc-dark);
    background: var(--ormoc-light);
}

.document-card {
    border: 1px solid #c5d4ea;
    border-radius: var(--ormoc-radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--ormoc-shadow-sm);
}

.document-card-preview {
    position: relative;
    height: 180px;
    background: var(--ormoc-light);
    cursor: pointer;
}

.document-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.document-thumb-fallback {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--ormoc-medium);
    gap: 0.25rem;
}

.document-card-overlay {
    position: absolute;
    inset: auto 0.75rem 0.75rem auto;
    background: rgba(24, 35, 63, 0.85);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
}

.document-card-body {
    padding: 0.85rem 1rem 1rem;
}

.document-preview-body {
    min-height: 60vh;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.document-preview-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.document-preview-pdf {
    width: 100%;
    height: 70vh;
    border: 0;
    background: #fff;
}

.gcash-selfie-2x2,
.gcash-selfie-1x1 {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 1px solid rgba(33, 82, 148, 0.28);
    border-radius: 8px;
    overflow: hidden;
    background: var(--ormoc-light);
    cursor: pointer;
}

.gcash-selfie-2x2 img,
.gcash-selfie-1x1 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.gcash-crop-wrap {
    min-height: 360px;
    height: min(62vh, 520px);
    background: #0f172a;
    border-radius: 10px;
    overflow: hidden;
}

.gcash-crop-wrap img {
    display: block;
    max-width: 100%;
}

.gcash-crop-wrap .cropper-container {
    width: 100% !important;
    height: 100% !important;
}

.gcash-selfie-2x2 + .small,
.gcash-selfie-1x1 + .small {
    font-weight: 600;
}

.gcash-batch-overlay {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.55);
}

.gcash-batch-overlay.d-none {
    display: none;
}

.gcash-batch-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: 12px;
    padding: 1.25rem 1.35rem;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.28);
}

body.gcash-batch-busy {
    overflow: hidden;
}

.ormoc-seal {
    display: inline-block;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.ormoc-seal-sm { width: 40px; }
.ormoc-seal-md { width: 64px; }
.ormoc-seal-lg { width: 96px; }
.ormoc-seal-xl { width: 140px; }

.navbar-brand .navbar-seal {
    background: #fff;
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.footer-seal {
    background: #fff;
    border-radius: 50%;
    padding: 4px;
}

.hero-seal {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 6px;
    box-shadow: var(--ormoc-shadow-md);
}

/* Guided ID selfie capture */
.selfie-guide-card {
    background: var(--ormoc-light);
    border: 1px solid rgba(33, 82, 148, 0.18);
    border-radius: var(--ormoc-radius);
    padding: 1rem 1.1rem;
}

.selfie-guide-list {
    padding-left: 1.15rem;
    color: var(--ormoc-muted);
    font-size: 0.925rem;
}

.selfie-guide-list li + li {
    margin-top: 0.2rem;
}

/* Attachment sample previews (e.g. GCash Fully Verified) */
.attachment-sample {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
    align-items: start;
    background: var(--ormoc-light);
    border: 1px solid rgba(33, 82, 148, 0.18);
    border-radius: var(--ormoc-radius);
    padding: 1rem 1.1rem;
}

@media (min-width: 768px) {
    .attachment-sample {
        grid-template-columns: minmax(0, 1.15fr) minmax(180px, 0.85fr);
        gap: 1.25rem;
    }
}

.attachment-sample-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ormoc-primary);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.attachment-sample-title {
    color: var(--ormoc-ink, #12233d);
}

.attachment-sample-highlight {
    font-size: 0.925rem;
    color: var(--ormoc-muted);
}

.attachment-sample-highlight strong {
    color: #0b5cab;
}

.attachment-sample-steps {
    padding-left: 1.15rem;
    margin: 0;
    color: var(--ormoc-muted);
    font-size: 0.925rem;
}

.attachment-sample-steps li + li {
    margin-top: 0.25rem;
}

.attachment-sample-figure {
    margin: 0;
}

.attachment-sample-thumb {
    position: relative;
    display: block;
    width: 100%;
    max-width: 280px;
    margin-inline: auto;
    padding: 0;
    border: 2px solid rgba(33, 82, 148, 0.28);
    border-radius: calc(var(--ormoc-radius) - 2px);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--ormoc-shadow-md);
    cursor: zoom-in;
}

.attachment-sample-thumb img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.attachment-sample-zoom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.4rem 0.55rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    background: linear-gradient(transparent, rgba(8, 24, 48, 0.78));
}

.attachment-sample-caption {
    margin-top: 0.45rem;
    font-size: 0.78rem;
    color: var(--ormoc-muted);
    text-align: center;
}

.attachment-sample-modal-img {
    max-height: min(78vh, 720px);
    width: auto;
}

.selfie-stage {
    position: relative;
    width: min(100%, 420px, 68dvh);
    margin-inline: auto;
    aspect-ratio: 1 / 1;
    border-radius: var(--ormoc-radius);
    overflow: hidden;
    background: #0b1220;
    box-shadow: var(--ormoc-shadow-md);
    border: 2px solid rgba(33, 82, 148, 0.35);
}

.selfie-stage.is-captured {
    border-color: var(--ormoc-gold);
}

.selfie-video,
.selfie-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: none !important;
}

.selfie-video.is-mirrored {
    transform: none !important;
}

.selfie-stage-document {
    width: min(100%, 560px, calc(58dvh * 1.586));
    aspect-ratio: 1.586 / 1; /* ISO ID-1 card proportion */
    border-radius: 6px;
}

.selfie-stage-document .selfie-overlay {
    background: transparent;
    padding-bottom: 0.65rem;
    align-items: flex-end;
}

.selfie-document-frame {
    position: absolute;
    left: 50%;
    top: 47%;
    width: 92%;
    height: 78%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 4px; /* card corners, not circular */
    box-shadow:
        0 0 0 9999px rgba(8, 14, 28, 0.66),
        inset 0 0 0 1px rgba(197, 146, 44, 0.55);
    background: transparent;
}

.selfie-stage-document .selfie-guide-caption {
    position: relative;
    z-index: 2;
    margin-bottom: 0.35rem;
}

.selfie-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.85rem;
}

.selfie-square {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 92%;
    height: 92%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow:
        0 0 0 9999px rgba(8, 14, 28, 0.38),
        inset 0 0 0 1px rgba(197, 146, 44, 0.55);
}

.selfie-oval {
    display: none;
}

.selfie-guide-caption {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}

.selfie-idle {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 1.25rem;
    text-align: center;
    color: #e8eef8;
    background:
        linear-gradient(180deg, rgba(24, 35, 63, 0.92), rgba(33, 82, 148, 0.88));
}

.selfie-idle-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.selfie-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.selfie-toolbar .btn {
    min-height: 44px;
    flex: 1 1 140px;
    max-width: 220px;
}

.selfie-camera-facing {
    text-align: center;
}

.selfie-facing-group {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}

.selfie-facing-group .btn {
    min-height: 42px;
    min-width: 9.5rem;
}

.selfie-fallback summary {
    cursor: pointer;
    color: var(--ormoc-primary);
    padding: 0.35rem 0;
}

/* —— Mobile / small screens —— */
@media (max-width: 991.98px) {
    .site-navbar .navbar-nav {
        padding-top: 0.85rem;
        padding-bottom: 0.75rem;
        gap: 0.2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        margin-top: 0.65rem;
    }

    .site-navbar .nav-link {
        padding: 0.7rem 0.75rem !important;
    }

    .site-navbar .nav-link.active {
        box-shadow: inset 3px 0 0 var(--ormoc-gold);
    }

    .site-navbar .nav-user-toggle {
        width: 100%;
    }

    .nav-dropdown {
        width: 100%;
        margin-top: 0.25rem !important;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.96);
    }

    .navbar .btn {
        width: 100%;
        margin-top: 0.35rem;
    }
}

@media (max-width: 767.98px) {
    main.container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }

    .hero-panel {
        padding: 1.35rem 1.15rem;
        border-radius: 10px;
    }

    .hero-panel .display-6 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .hero-panel .lead {
        font-size: 1rem;
        margin-bottom: 1.25rem !important;
    }

    .hero-panel .btn {
        flex: 1 1 100%;
        min-height: 44px;
    }

    .ormoc-seal-xl { width: 88px; }
    .ormoc-seal-lg { width: 64px; }
    .ormoc-seal-md { width: 48px; }

    .registration-hero {
        padding: 1rem 1.1rem;
    }

    .registration-hero-inner {
        align-items: flex-start;
    }

    .registration-hero .h3 {
        font-size: 1.2rem;
    }

    .wizard-steps {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.35rem;
        margin-bottom: 1rem !important;
    }

    .wizard-step {
        font-size: 0;
        line-height: 0;
        padding: 0.65rem 0.25rem;
        border-radius: 10px;
    }

    .wizard-step::before {
        content: attr(data-step-label);
        font-size: 0.9rem;
        line-height: 1.2;
        font-weight: 700;
    }

    .wizard-step.active::after {
        content: "";
        display: block;
        width: 1.1rem;
        height: 3px;
        margin: 0.35rem auto 0;
        border-radius: 99px;
        background: var(--ormoc-gold);
    }

    .wizard-step-caption {
        text-align: center;
        margin-top: -0.35rem;
    }

    .wizard-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .wizard-actions .btn {
        width: 100%;
        max-width: none;
    }

    .wizard-panel .card-body {
        padding: 1rem !important;
    }

    .privacy-box {
        max-height: 42vh;
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .page-toolbar {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: stretch;
    }

    .page-toolbar-actions {
        width: 100%;
    }

    .page-toolbar > .btn,
    .page-toolbar > a.btn,
    .page-toolbar-actions > .btn,
    .page-toolbar-actions > a.btn {
        width: 100%;
        min-height: 44px;
    }

    .page-seal-header {
        align-items: flex-start;
    }

    .filter-panel {
        padding: 0.85rem;
    }

    .app-cell-primary {
        max-width: 9.5rem;
    }

    .selfie-stage {
        width: min(100%, 62dvh);
    }

    .selfie-stage-document {
        width: min(100%, calc(48dvh * 1.586));
        border-radius: 6px;
    }

    .selfie-guide-card {
        padding: 0.85rem 0.95rem;
        font-size: 0.92rem;
    }

    .selfie-toolbar .btn {
        max-width: none;
        flex: 1 1 calc(50% - 0.5rem);
    }

    .document-preview-body {
        min-height: 50vh;
    }

    .document-preview-image {
        max-height: 55vh;
    }

    .document-preview-pdf {
        height: 55vh;
    }

    .site-footer {
        text-align: center;
    }

    .site-footer .container {
        align-items: center !important;
    }
}

@media (max-width: 575.98px) {
    .stat-tile {
        padding: 0.9rem 1rem;
    }

    .gcash-choice {
        padding: 0.9rem;
    }

    .selfie-idle {
        padding: 1rem;
    }

    .selfie-guide-caption {
        font-size: 0.72rem;
        padding: 0 0.5rem;
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    dl.row > dt,
    dl.row > dd {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding-left: 0;
        padding-right: 0;
    }

    dl.row > dt {
        margin-top: 0.65rem;
        margin-bottom: 0.1rem;
        font-weight: 600;
        color: var(--ormoc-muted);
        font-size: 0.85rem;
    }

    dl.row > dt:first-child {
        margin-top: 0;
    }

    dl.row > dd {
        margin-bottom: 0;
    }
}
@supports (padding: max(0px)) {
    body {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }

    .site-footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* Password show/hide toggle (create account) */
.password-field {
    position: relative;
}

.password-field .form-control {
    padding-right: 2.75rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--ormoc-muted);
    cursor: pointer;
    padding: 0;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--ormoc-primary);
    background: rgba(33, 82, 148, 0.08);
    outline: none;
}

.password-toggle-icon {
    width: 1.15rem;
    height: 1.15rem;
    display: block;
}

#resubmit {
    scroll-margin-top: 5.5rem;
}

.resubmit-panel--prompt {
    box-shadow: 0 0 0 0.2rem rgba(33, 82, 148, 0.25);
    animation: resubmit-pulse 1.4s ease-out 2;
}

@keyframes resubmit-pulse {
    0% { box-shadow: 0 0 0 0 rgba(33, 82, 148, 0.35); }
    100% { box-shadow: 0 0 0 0.55rem rgba(33, 82, 148, 0); }
}
