/* Verify Design System */
:root {
    --primary-blue: #002266;
    --secondary-blue: #0044cc;
    --accent-green: #22c55e;
    --soft-green: #f0fdf4;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --premium-font: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Loader Styles */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* Blur Backgrounds */
.loader-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    z-index: -1;
    pointer-events: none;
}

.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: pulseBlur 8s infinite alternate;
}

.blur-1 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    top: -50px;
    left: -50px;
}

.blur-2 {
    width: 250px;
    height: 250px;
    background: #f97316;
    bottom: -30px;
    right: -20px;
    animation-delay: -2s;
}

.blur-3 {
    width: 200px;
    height: 200px;
    background: #22c55e;
    top: 50%;
    left: 10%;
    animation-delay: -4s;
}

@keyframes pulseBlur {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 0.1;
    }

    100% {
        transform: scale(1.2) translate(10px, 10px);
        opacity: 0.2;
    }
}

.loader-logo-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    border-radius: 50%;
    padding: 10px;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.loader-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.loader-org-name {
    font-size: 38px;
    font-weight: 900;
    color: #000080;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.loader-subtext {
    font-size: 14px;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 60px;
}

.progress-container {
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
}

.progress-bar {
    height: 4px;
    background: #f1f5f9;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #000080 0%, #22c55e 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

/* Set width dynamically via JS */
.progress-bar-inner {
    width: var(--progress, 0%);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-percent {
    color: #000080;
}

body {
    font-family: var(--premium-font);
    background: #f8fafc;
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* Container */
.verify-container {
    width: 100%;
    max-width: 900px;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
    border: 1px solid #e2e8f0;
}

/* Border Gradient Top */
.verify-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #f97316 0%, #ffffff 50%, #22c55e 100%);
    z-index: 10;
}

.main-layout {
    display: flex;
    min-height: 500px;
}

/* Profile Section (Left) */
.profile-section {
    flex: 1;
    background: linear-gradient(to bottom, #fcfdfd, #f1f5f9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-right: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    /* Ensure scan line is clipped to section */
}

.photo-wrapper {
    position: relative;
    width: 220px;
    height: 220px;
}

.photo-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(45deg, #f97316, #22c55e);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-green);
    box-shadow: 0 0 15px 4px rgba(34, 197, 94, 0.7);
    z-index: 2;
    animation: scan 2.5s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.8;
}

@keyframes scan {
    0% {
        top: -5%;
    }

    50% {
        top: 105%;
    }

    100% {
        top: -5%;
    }
}

.photo-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
}

.verified-badge-icon {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: white;
    border-radius: 50%;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.verified-badge-icon img {
    width: 80%;
}

.member-badge {
    background: #000080;
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-name-hi {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-blue);
    margin-top: 15px;
}

.user-title-hi {
    color: #f97316;
    font-size: 18px;
    font-weight: 700;
    margin-top: 5px;
}

/* Content Section (Right) */
.content-section {
    flex: 1.5;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.org-logo {
    width: 60px;
        border-radius: 4px;
    box-shadow: 2px 4px 19px 1px #5e5f61;
}

.org-info {
    text-align: right;
}

.org-name {
    font-size: 20px;
    font-weight: 900;
    color: #334155;
    line-height: 1;
}

.org-sub {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 5px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

.detail-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

.verifications-card {
    background: #eff6ff;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.v-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.authenticity-label {
    font-size: 11px;
    font-style: italic;
    color: var(--text-muted);
}

.status-box {
    border: 2px solid var(--accent-green);
    border-radius: 16px;
    padding: 15px;
    background: var(--soft-green);
    position: relative;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.status-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.active-pill {
    background: #dcfce7;
    color: #166534;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
}

.status-title {
    font-size: 24px;
    font-weight: 800;
    color: #166534;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-title::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--accent-green);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

.status-time {
    color: var(--accent-green);
    font-size: 14px;
    font-weight: 600;
    margin-top: 5px;
}

@keyframes blink {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* Footer Section */
.footer-panel {
    background: #f8fafc;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

.authority-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 12px 30px;
    border-radius: 50px;
    color: var(--primary-blue);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.authority-btn:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

/* Popup / Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    background: #000080;
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 20px 20px;
    padding: 40px 20px;
    text-align: center;
    color: white;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #000080;
    /* Match header blue */
    border: none;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: all 0.3s ease;
}

.close-modal:hover {
    transform: rotate(90deg) scale(1.1);
    background: #f1f5f9;
}

.header-logo-container {
    width: 70px;
    height: 70px;
    /* background: white; */
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.header-logo-container img {
    width: 100%;
}

.modal-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 1px;
}

.modal-subtitle {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    opacity: 0.8;
}

.modal-body {
    padding: 30px;
}

.authority-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.auth-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.auth-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    flex-shrink: 0;
    padding: 4px;
    background: linear-gradient(45deg, #f97316, #22c55e);
}

.auth-photo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
}

.auth-name {
    font-size: 20px;
    font-weight: 800;
    color: #000080;
}

.auth-role {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.auth-org {
    font-size: 11px;
    color: #f97316;
    font-weight: 800;
}

.mission-box {
    margin-top: 40px;
    background: #f8fafc;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    border: 1px solid #e2e8f0;
}

.mission-title {
    color: #000080;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.mission-text {
    font-size: 12px;
    line-height: 1.6;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .main-layout {
        flex-direction: column;
    }

    .profile-section {
        padding: 30px;
        border-right: none;
        border-bottom: 1px solid #f1f5f9;
    }

    .content-section {
        padding: 30px;
    }


}


.detail-item{
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 10px;
}

.icon-box{
    width: 45px;
    height: 45px;
    background: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
}

.detail-label{
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.detail-value{
    font-weight: 600;
    margin: 0;
}

/* MOBILE RESPONSIVE */
@media (max-width:768px){

    .details-grid{
        grid-template-columns: 1fr;
    }

    .detail-item{
        padding: 12px;
    }

    .icon-box{
        width:40px;
        height:40px;
        font-size:16px;
    }

}
