/* Institute palette: navy + teal + soft gray */
:root {
    --app-primary: #1f3a5f;
    --app-primary-dark: #162a44;
    --app-accent: #1f8a8a;
    --app-bg: #f5f7fb;
}

/* Mobile: theme color for tab/status bar, safe areas for notch */
html {
    -webkit-tap-highlight-color: rgba(31, 58, 95, 0.2);
}

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, Arial, sans-serif;
    background-color: var(--app-bg);
}

@supports (padding: env(safe-area-inset-top)) {
    .app-topbar { padding-top: calc(16px + env(safe-area-inset-top)); }
    .app-sidebar .app-brand { padding-top: calc(20px + env(safe-area-inset-top)); padding-left: calc(20px + env(safe-area-inset-left)); }
    .app-nav-footer { padding-bottom: env(safe-area-inset-bottom); }
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
}

.app-navbar {
    background: var(--app-primary);
}

.app-body {
    background-color: var(--app-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    flex: 1;
}

.app-sidebar {
    width: 260px;
    min-width: 260px;
    background: linear-gradient(180deg, #152238 0%, #0f1929 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.app-sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
}

.app-brand {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.app-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.01em;
}

.app-brand-link:hover {
    color: #fff;
    opacity: 0.95;
}

.app-brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-sidebar-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 0;
    padding: 8px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #fff;
    font-size: 1.25rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.app-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
}

.app-topbar-menu-btn {
    display: none;
    background: var(--app-primary);
    border: 0;
    padding: 8px 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 1.35rem;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.app-topbar-menu-btn:hover {
    background: var(--app-primary-dark);
    color: #fff;
}

.app-sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
    cursor: pointer;
}

.app-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    flex-shrink: 0;
}

.app-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.app-nav-section {
    margin-bottom: 20px;
}

.app-nav-section:last-of-type {
    margin-bottom: 0;
}

.app-nav-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.45);
    padding: 0 12px 8px;
}

.app-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.app-nav-link i {
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
    opacity: 0.85;
}

.app-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.app-sidebar .app-nav-link.active {
    background: rgba(31, 138, 138, 0.25);
    color: #fff !important;
    font-weight: 600;
    border-left-color: var(--app-accent);
}

.app-sidebar .app-nav-link.active i {
    opacity: 1;
}

.app-nav-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.app-nav-logout {
    color: rgba(255, 255, 255, 0.6) !important;
}

.app-nav-logout:hover {
    background: rgba(220, 53, 69, 0.2) !important;
    color: #ff6b7a !important;
}

.app-user {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #fff;
}

.app-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-topbar {
    background: #fff;
    border-bottom: 1px solid #e6e9f0;
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.app-page-title {
    font-weight: 600;
    color: var(--app-primary-dark);
}

.app-top-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8f0f4;
    color: var(--app-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.app-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.app-user-menu {
    position: relative;
    cursor: pointer;
}

.app-user-dropdown {
    position: absolute;
    right: 0;
    top: 48px;
    background: #fff;
    border: 1px solid #e6e9f0;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
    min-width: 160px;
    display: none;
    z-index: 100;
}

.app-user-dropdown::before {
    content: "";
    position: absolute;
    top: -10px;
    right: 12px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-left: 1px solid #e6e9f0;
    border-top: 1px solid #e6e9f0;
    transform: rotate(45deg);
}

.app-user-dropdown a {
    display: block;
    padding: 10px 12px;
    color: #1f2a44;
    text-decoration: none;
}

.app-user-dropdown a:hover {
    background: #f5f7fb;
}

.app-user-menu:hover .app-user-dropdown,
.app-user-dropdown:hover {
    display: block;
}

.app-profile-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #e8f0f4;
    color: var(--app-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    overflow: hidden;
}

.app-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.app-main {
    flex: 1;
    padding: 24px;
}

.app-public-main {
    flex: 1;
}

.card {
    border-radius: 12px;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.text-primary-dark {
    color: var(--app-primary-dark);
}

.btn-primary {
    background-color: var(--app-accent);
    border-color: var(--app-accent);
}

.btn-primary:hover {
    background-color: #177070;
    border-color: #177070;
}

.btn-outline-primary {
    color: var(--app-primary);
    border-color: var(--app-primary);
}

.btn-outline-primary:hover {
    background-color: var(--app-primary);
    border-color: var(--app-primary);
}

.table-light {
    --bs-table-bg: #eef2f7;
}

.app-footer {
    color: #6c757d;
    background: #fff;
    border-top: 1px solid #e6e9f0;
    padding: 12px 0;
}

.app-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-login-panel {
    background: linear-gradient(135deg, var(--app-primary-dark), var(--app-primary));
}

.app-logo-preview {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #e6e9f0;
    background: #fff;
    padding: 8px;
}

.public-main-content .login-wrapper {
    padding: 2rem 1rem;
}

.auth-page {
    position: relative;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
}

.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?w=1600&q=30') center/cover;
    opacity: 0.08;
    pointer-events: none;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.login-card {
    width: 100%;
    max-width: 960px;
    max-height: calc(100vh - 1.5rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.login-card .row {
    flex: 1;
    min-height: 0;
}

.auth-form-col {
    overflow-y: auto;
    min-height: 0;
}

/* Back to Home link must sit above login card so it remains clickable */
.auth-page .back-to-home-link {
    z-index: 1050;
    pointer-events: auto;
    top: 0.75rem;
    left: 0.75rem;
}

/* ----- Register page & auth mobile responsive ----- */
@media (max-width: 991.98px) {
    .auth-page {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    .login-wrapper {
        align-items: flex-start;
        padding: 0.5rem;
        min-height: 100vh;
    }
    .register-page-wrapper {
        padding-top: calc(3.25rem + env(safe-area-inset-top, 0px));
        padding-bottom: 1.5rem;
    }
    .login-card {
        max-height: none;
        max-width: 100%;
    }
    .register-card .row {
        min-height: 0;
    }
    .register-panel {
        padding: 1rem 1.25rem;
    }
    .register-panel .h4 {
        font-size: 1.15rem;
    }
    .register-form-col {
        overflow-y: visible;
    }
    .register-form-col .card-body {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }
    .auth-page .back-to-home-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        top: env(safe-area-inset-top, 0.5rem);
        left: env(safe-area-inset-left, 0.5rem);
        margin: 0;
    }
}

@media (max-width: 575.98px) {
    .login-wrapper {
        padding: 0.35rem;
    }
    .register-page-wrapper {
        padding-top: calc(3rem + env(safe-area-inset-top, 0px));
    }
    .register-form-col .card-body {
        padding: 1rem 1.25rem 1.5rem;
    }
    .register-form .form-control {
        font-size: 16px;
    }
    .btn-submit-register {
        min-height: 48px;
        font-weight: 600;
    }
    .auth-page .back-to-home-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
        top: env(safe-area-inset-top, 0.35rem);
        left: env(safe-area-inset-left, 0.35rem);
    }
}

@supports (padding: env(safe-area-inset-bottom)) {
    .register-form-col .card-body {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

.login-brand {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 10px;
}

.landing-hero {
    background: linear-gradient(120deg, #ffffff, #f3f6fb);
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #e9edf5;
}

.landing-badge {
    display: inline-block;
    background: #e9f1f7;
    color: var(--app-primary-dark);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.landing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.landing-stat-value {
    font-weight: 700;
    color: var(--app-primary-dark);
}

.landing-stat-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.landing-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px;
    border: 1px solid #eef2f7;
}

.landing-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--app-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.chart-canvas {
    height: 180px;
    min-height: 160px;
    position: relative;
    width: 100%;
}

.chart-canvas canvas {
    width: 100% !important;
    height: 100% !important;
    min-height: 160px;
    display: block;
}

@media (max-width: 991px) {
    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        position: relative;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .app-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        padding: 12px;
        overflow-x: auto;
    }

    .app-nav-section {
        margin-bottom: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        align-items: center;
    }

    .app-nav-label {
        display: none;
    }

    .app-nav-link {
        padding: 8px 14px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .app-nav-footer {
        display: flex;
        padding: 12px 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .app-nav-footer .app-nav-link {
        padding: 6px 12px;
    }

    .app-topbar {
        padding: 12px 16px;
    }

    .app-topbar .app-page-title {
        font-size: 1rem;
    }

    .app-topbar .text-end {
        display: none;
    }

    .app-main {
        padding: 20px;
    }

    .app-footer-inner {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}

@media (max-width: 575px) {
    .app-sidebar-toggle,
    .app-topbar-menu-btn {
        display: inline-flex;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100vh;
        width: 260px;
        max-width: 85vw;
        min-width: 260px;
        z-index: 1050;
        transform: translateX(-100%);
        transition: transform 0.25s ease-out;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2);
    }

    .app-sidebar.open {
        transform: translateX(0);
    }

    .app-sidebar.open + .app-sidebar-backdrop {
        display: block;
    }

    .app-brand {
        padding: 14px 16px;
    }

    .app-nav {
        flex-direction: column;
        align-items: stretch;
        overflow-x: visible;
        overflow-y: auto;
        display: flex;
        padding: 12px 16px;
    }

    .app-nav-section {
        display: block;
        margin-bottom: 12px;
    }

    .app-nav-section:last-child {
        margin-bottom: 0;
    }

    .app-nav-label {
        display: block;
        padding: 8px 12px 6px;
    }

    .app-nav-footer {
        display: flex;
        padding: 12px 16px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .app-nav-link {
        padding: 10px 12px;
    }

    .app-topbar > .d-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .app-topbar {
        flex-wrap: wrap;
        gap: 8px;
    }

    .app-top-avatar {
        width: 34px;
        height: 34px;
        font-size: 0.85rem;
    }

    .app-main {
        padding: 16px;
    }
}

/* Toast notifications - top right */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 360px;
    pointer-events: none;
}

.toast-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    pointer-events: auto;
    animation: toastSlideIn 0.35s ease;
}

.toast-item.success { border-left: 4px solid #198754; }
.toast-item.error { border-left: 4px solid #dc3545; }
.toast-item.warning { border-left: 4px solid #ffc107; }
.toast-item.info { border-left: 4px solid #0dcaf0; }

.toast-item .toast-icon {
    flex-shrink: 0;
    font-size: 1.25rem;
}

.toast-item.success .toast-icon { color: #198754; }
.toast-item.error .toast-icon { color: #dc3545; }
.toast-item.warning .toast-icon { color: #ffc107; }
.toast-item.info .toast-icon { color: #0dcaf0; }

.toast-item .toast-body {
    flex: 1;
    font-size: 0.9rem;
    color: #333;
}

.toast-item .toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    font-size: 1.1rem;
    line-height: 1;
}

.toast-item .toast-close:hover { color: #333; }

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== Public Header ===== */
.public-header {
    background: linear-gradient(135deg, var(--app-primary-dark) 0%, var(--app-primary) 100%);
    box-shadow: 0 4px 20px rgba(21, 42, 68, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.public-header .navbar {
    padding: 0.75rem 0;
}

.public-brand {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff !important;
}

.public-brand i {
    font-size: 1.5rem;
    opacity: 0.95;
}

.public-brand:hover {
    color: #fff !important;
    opacity: 0.9;
}

.public-header .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s;
}

.public-header .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.public-header .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

.public-header .btn.active {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    color: #fff !important;
    font-weight: 600;
}

.public-header .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.public-header .btn-outline-light:hover {
    background: #fff;
    color: var(--app-primary);
    border-color: #fff;
}

.public-header .navbar-toggler {
    color: #fff;
}

.public-main-content {
    flex: 1;
    min-height: calc(100vh - 200px);
}

/* ===== Public Footer ===== */
.public-footer {
    background: linear-gradient(180deg, #0f1929 0%, #152238 100%);
    color: rgba(255, 255, 255, 0.9);
}

/* Ensure all footer text is readable on dark background */
.public-footer .text-muted,
.public-footer p {
    color: rgba(255, 255, 255, 0.85) !important;
}

.public-footer-brand {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff !important;
}

.public-footer-brand i {
    font-size: 1.25rem;
}

.public-footer h6 {
    color: #fff !important;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.public-footer ul a,
.public-footer ul li,
.public-footer .public-footer-links-top a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.public-footer ul a:hover,
.public-footer .public-footer-links-top a:hover {
    color: #fff !important;
}

.public-footer hr {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ===== Landing Hero V2 ===== */
.landing-hero-v2 {
    position: relative;
    overflow: hidden;
}

.landing-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0f1929 0%, #152238 50%, #1f3a5f 100%);
    background-image: url('https://images.unsplash.com/photo-1523050854058-8df90110c9f1?w=1920&q=60');
    background-size: cover;
    background-position: center;
}

.landing-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 25, 41, 0.92) 0%, rgba(31, 58, 95, 0.88) 100%);
}

.min-vh-75 {
    min-height: 75vh;
}

.landing-badge-v2 {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.landing-hero-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.landing-hero-lead {
    font-size: 1.15rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 540px;
}

.landing-hero-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.landing-stat-item {
    display: flex;
    flex-direction: column;
}

.landing-stat-num {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
}

.landing-stat-txt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
}

.landing-hero-img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.landing-hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* ===== Landing Features ===== */
.landing-features {
    background: #fff;
}

.landing-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--app-primary-dark);
}

.landing-section-sub {
    font-size: 1.05rem;
}

.landing-feature-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.75rem;
    height: 100%;
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
    overflow: hidden;
}

.landing-feature-card:hover {
    box-shadow: 0 12px 40px rgba(31, 58, 95, 0.12);
    border-color: transparent;
    transform: translateY(-4px);
}

.landing-feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.bg-primary-subtle { background: #e8f4f8; }
.bg-success-subtle { background: #e8f8f0; }
.bg-info-subtle { background: #e8f2fa; }

.landing-feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.landing-feature-title {
    font-weight: 600;
    color: var(--app-primary-dark);
    margin-bottom: 0.5rem;
}

.landing-feature-desc {
    font-size: 0.95rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.55;
}

/* ===== Landing Verify ===== */
.landing-verify-v2 {
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4f8 100%);
}

.landing-verify-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(31, 58, 95, 0.08);
    border: 1px solid #eef2f7;
}

.landing-verify-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* ===== Landing CTA ===== */
.landing-cta {
    background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-primary-dark) 100%);
    color: #fff;
}

.landing-cta h2,
.landing-cta p {
    color: #fff !important;
}

.landing-cta .text-muted {
    color: rgba(255, 255, 255, 0.85) !important;
}

.landing-cta .btn-primary {
    background: #fff;
    color: var(--app-primary);
    border-color: #fff;
}

.landing-cta .btn-primary:hover {
    background: #f0f4f8;
    border-color: #f0f4f8;
    color: var(--app-primary-dark);
}

/* ===== Verify Page ===== */
.verify-page {
    min-height: 100vh;
}

.verify-hero {
    position: relative;
    background: linear-gradient(135deg, var(--app-primary-dark) 0%, var(--app-primary) 100%);
}

.verify-hero-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1564981797816-1043664bf78d?w=1920&q=40') center/cover;
    opacity: 0.15;
}

.verify-search-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.verify-search-header {
    color: var(--app-primary-dark);
}

.verify-search-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--app-primary) 0%, var(--app-accent) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.75rem;
}

.verify-search-form .input-group {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(31, 58, 95, 0.12);
}

.verify-search-form .input-group-text {
    border: 1px solid #eef2f7;
    padding: 0 1rem;
}

.verify-search-form .form-control {
    border: 1px solid #eef2f7;
}

.verify-search-form .form-control:focus {
    box-shadow: none;
    border-color: var(--app-accent);
}

.verify-search-form .btn-primary {
    border-radius: 0 12px 12px 0;
}

.verify-search-card a {
    color: var(--app-primary);
    text-decoration: none;
}

.verify-search-card a:hover {
    text-decoration: underline;
}

/* Verify Result Cards */
.verify-result-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(31, 58, 95, 0.1);
    border: 1px solid #eef2f7;
}

.verify-result-verified {
    border-left: 4px solid #198754;
}

.verify-result-pending {
    border-left: 4px solid #ffc107;
}

.verify-result-notfound {
    border-left: 4px solid #6c757d;
}

.verify-result-badge {
    padding: 1.5rem 2rem;
    text-align: center;
}

.verify-result-verified .verify-result-badge {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.08) 0%, rgba(25, 135, 84, 0.04) 100%);
}

.verify-result-pending .verify-result-badge {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.12) 0%, rgba(255, 193, 7, 0.04) 100%);
}

.verify-result-notfound .verify-result-badge {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.08) 0%, rgba(108, 117, 125, 0.04) 100%);
}

.verify-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.verify-badge.verified {
    background: #198754;
    color: #fff;
}

.verify-badge.verified i {
    font-size: 1.25rem;
}

.verify-badge.pending {
    background: #ffc107;
    color: #000;
}

.verify-badge.pending i {
    font-size: 1.25rem;
}

.verify-badge.notfound {
    background: #6c757d;
    color: #fff;
}

.verify-badge.notfound i {
    font-size: 1.25rem;
}

.verify-result-desc {
    color: #6c757d;
    margin: 0;
    font-size: 0.95rem;
}

.verify-result-body {
    padding: 2rem;
    border-top: 1px solid #eef2f7;
}

.verify-result-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--app-primary-dark);
    margin-bottom: 1.25rem;
}

.verify-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

.verify-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
}

.verify-detail-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.verify-detail-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--app-primary-dark);
}
