/* Military Base Access Control System - Main Stylesheet */

:root {
    --bg-dark: #071226; /* deep navy */
    --panel: #0d2536;   /* dark slate */
    --accent: #ffb400;  /* hawk-gold */
    --accent-2: #00c2a8; /* teal */
    --muted: #9eb1bf;
    --text-primary: #e6f7fb;
    --text-secondary: #9fb7c6;
    --border: rgba(255,180,0,0.12);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, rgba(255,180,0,0.06), transparent);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(4px);
}

/* Top authoritative banner */
.top-banner {
    width: 100%;
    background: linear-gradient(90deg, rgba(255,180,0,0.03), rgba(0,0,0,0.0));
    color: rgba(255,255,255,0.85);
    text-align: center;
    padding: 0.35rem 0;
    font-size: 0.85rem;
    letter-spacing: 0.6px;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    font-size: 1.6rem;
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
}

.brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-tag {
    font-size: 0.7rem;
    color: var(--muted);
}

.brand-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 6px;
    background: transparent;
}

.navbar-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
    background: rgba(255,180,0,0.04);
    transform: translateY(-1px);
}

.user-greeting {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-logout {
    background-color: var(--danger-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-logout:hover {
    background-color: #da190b;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

/* Hero Section */
.hero-section {
    background: linear-gradient(180deg, rgba(0,0,0,0.15), transparent);
    padding: 5rem 1.5rem;
    text-align: center;
}
    .hero-section {
        display: flex;
        justify-content: center;
    }

/* subtle emblem behind the hero */
.hero-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
    width: 520px;
    height: 520px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.02), rgba(0,0,0,0.0));
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.12;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-top: 1.1rem;
}

.hawkeye-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
}
    .hawkeye-hero .hero-content {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

.hawkeye-hero h1 {
    font-size: 3.2rem;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.hero-sub {
    color: var(--muted);
    margin-bottom: 1.75rem;
    font-size: 1.1rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    color: #071226;
}

.btn-primary:hover {
    background-color: #d63452;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.04);
    color: var(--muted);
}

.btn-secondary:hover {
    background-color: #0b7dda;
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #45a049;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #da190b;
}

.btn-info {
    background-color: var(--info-color);
    color: white;
    margin: 0.5rem;
}

.btn-info:hover {
    background-color: #0b7dda;
}

/* Features Section */
.features {
    padding: 3rem 1.25rem;
    background-color: transparent;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.25rem;
        max-width: 1000px;
        justify-items: center;
    }

.feature-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255,180,0,0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    text-align: center;

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255,180,0,0.12), rgba(0,0,0,0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    box-shadow: 0 4px 12px rgba(2,6,12,0.4);
}

.feature-icon::after {
    content: '';
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.feature-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* Info Section */

.feature-card h3 {
    margin-top: 0.6rem;
    margin-bottom: 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--muted);
    font-size: 0.95rem;
}
.info-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(7,18,38,0.8) 0%, rgba(13,37,54,0.6) 50%, rgba(7,18,38,0.8) 100%);
    position: relative;
    overflow: visible;
    width: 100%;
}

/* Decorative background elements */
.info-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,180,0,0.03), transparent);
    border-radius: 50%;
    pointer-events: none;
}

.info-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.info-section-subtitle {
    text-align: center;
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.info-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .info-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .info-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.info-box {
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(0,0,0,0.08));
    padding: 3rem 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255,180,0,0.1);
    border-left: 5px solid var(--accent);
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-shadow: 0 15px 40px rgba(2,6,12,0.5);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Premium accent overlay on hover */
.info-box::before {
    content: '';
    position: absolute;
    top: -100%;
    right: -100%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,180,0,0.15), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

.info-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,180,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.info-box:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(255,180,0,0.2), 0 25px 60px rgba(2,6,12,0.7);
    border-color: rgba(255,180,0,0.2);
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(0,0,0,0.1));
}

.info-box:hover::before {
    opacity: 1;
    top: -50%;
    right: -50%;
}

.info-box:hover::after {
    opacity: 1;
}

.info-box h3 {
    color: var(--accent);
    margin-bottom: 1.75rem;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.info-box p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1rem;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.info-box ul {
    list-style: none;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.info-box li {
    margin-bottom: 1.1rem;
    line-height: 1.7;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding-left: 0;
}

.info-box li:last-child {
    margin-bottom: 0;
}

.info-box li strong {
    color: var(--accent);
    font-weight: 700;
}

/* Login Container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100vh - 100px);
    padding: 2rem 1rem;
    background-image: linear-gradient(180deg, rgba(7,18,38,0.85), rgba(7,18,38,0.6));
}

.hawkeye-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
    padding: 2.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 8px 30px rgba(2,6,12,0.6);
    color: var(--text-primary);
}

.login-card h1 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 2rem;
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}

.tab-button {
    flex: 1;
    padding: 0.9rem 1rem;
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.18s ease;
    font-weight: 600;
    border-radius: 6px;
}

.tab-button:hover {
    color: var(--text-primary);
    background: rgba(255, 180, 0, 0.08);
}

.tab-button.active {
    color: var(--accent);
    background: rgba(255, 180, 0, 0.12);
    border: 1px solid rgba(255, 180, 0, 0.3);
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Camera Container */
.camera-container {
    position: relative;
    width: 100%;
    margin: 0 auto 2rem;
    border-radius: 10px;
    background-color: #000;
    border: 1px solid rgba(255,180,0,0.1);
    overflow: hidden;
}

.camera-feed {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    background-color: #000;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    pointer-events: none;
}

.face-detection-box {
    width: 280px;
    height: 280px;
    border: 3px dashed rgba(255,180,0,0.25);
    border-radius: 50%;
    box-shadow: inset 0 0 18px rgba(0,0,0,0.6);
}

.camera-overlay p {
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: bold;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

/* Upload Area */
.upload-area {
    border: 2px dashed rgba(255,180,0,0.15);
    border-radius: 10px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.18s ease;
    margin-bottom: 2rem;
    background-color: rgba(255,180,0,0.01);
    display: block;
}

.upload-area:hover {
    background-color: rgba(255,180,0,0.04);
    border-color: rgba(255,180,0,0.3);
    box-shadow: 0 0 20px rgba(255,180,0,0.1);
}

.upload-content {
    cursor: pointer;
}

.upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    width: 64px;
    height: 64px;
    color: var(--accent);
    cursor: pointer;
}

.upload-icon svg {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.upload-hint {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 2rem;
}

.button-group .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Message */
.message {
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border-left: 4px solid #4CAF50;
}

.message.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border-left: 4px solid #f44336;
}

.message.info {
    background-color: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border-left: 4px solid #2196F3;
}

/* Preview Section */
.preview-container {
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,180,0,0.1);
    padding: 0.5rem;
}

#preview {
    width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    border: 1px solid rgba(255,180,0,0.1);
}

.preview-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-direction: column;
    margin-bottom: 2rem;
}

.preview-actions .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 600;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 2rem;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Dashboard */
.dashboard-container {
    min-height: calc(100vh - 100px);
    padding: 2rem 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,180,0,0.06);
    box-shadow: 0 8px 24px rgba(2,6,12,0.45);
    width: 100%;
}

.card h2 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Card - wider on larger screens */
.profile-card {
    grid-column: 1 / -1;
}

/* Access Card */
.access-card {
    grid-column: span 1;
}

/* Quick Access Card */
.quick-access-card {
    grid-column: span 1;
}

/* Stats Card */
.stats-card {
    grid-column: span 1;
}

/* Admin Panel - full width */
.admin-card {
    grid-column: 1 / -1;
}

/* Profile Card */
.profile-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-bottom: 0;
    border-bottom: none;
}

.label {
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.05rem;
}

.clearance-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    background-color: rgba(233, 69, 96, 0.2);
    color: var(--accent-color);
}

/* Access Areas */
.access-areas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.access-item {
    background: rgba(255,180,0,0.04);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    text-align: left;
    border: 1px solid rgba(255,180,0,0.08);
    color: var(--text-secondary);
    font-weight: 500;
}

.access-item.granted {
    border-color: var(--success-color);
    background-color: rgba(76, 175, 80, 0.1);
}

.access-item.granted::before {
    content: '✓ ';
    color: var(--success-color);
    font-weight: bold;
}

/* Form */
.form-select {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255,180,0,0.04);
    color: var(--text-primary);
    border: 1px solid rgba(255,180,0,0.12);
    border-radius: 8px;
    margin-bottom: 1.25rem;
    cursor: pointer;
    font-weight: 500;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(255,180,0,0.2);
}

.form-select option {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* Stats Card */
.stats-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(255,180,0,0.04);
    border-radius: 8px;
    border: 1px solid rgba(255,180,0,0.08);
}

.stat-label {
    color: var(--muted);
    font-weight: 500;
}

.stat-value {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Admin Panel */
.admin-card {
    border-left-color: #ff9800;
    grid-column: 1 / -1;
}

.admin-card h2 {
    color: #ff9800;
}

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--secondary-color);
    padding: 2rem;
    border-radius: 8px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--text-primary);
}

#modalBody table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

#modalBody th,
#modalBody td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

#modalBody th {
    background-color: var(--primary-color);
    color: var(--accent-color);
    font-weight: bold;
}

#modalBody tr:hover {
    background-color: rgba(233, 69, 96, 0.05);
}

/* Footer */
.footer {
    background: transparent;
    border-top: 1px solid rgba(255,180,0,0.04);
    text-align: center;
    padding: 1.5rem;
    color: var(--text-secondary);
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .profile-card {
        grid-column: 1 / -1;
    }
    
    .admin-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

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

    .features-grid,
    .info-content {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
    }
    
    .profile-info {
        grid-template-columns: 1fr;
    }
}

/* Face Scanning Animation */
.scanning-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.scan-container {
    position: relative;
    width: 300px;
    height: 380px;
    border: 2px solid var(--accent);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(7, 18, 38, 0.4), rgba(0, 0, 0, 0.6));
    box-shadow: 0 0 40px rgba(255, 180, 0, 0.4), inset 0 0 40px rgba(255, 180, 0, 0.05);
}

.scan-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent), transparent);
    animation: scanDown 2.5s ease-in-out infinite;
    box-shadow: 0 0 25px rgba(255, 180, 0, 0.8), 0 0 40px rgba(255, 180, 0, 0.4);
    filter: blur(1px);
}

.scan-line:nth-child(1) {
    animation-delay: 0s;
}

.scan-line:nth-child(2) {
    animation-delay: 0.8s;
}

.scan-line:nth-child(3) {
    animation-delay: 1.6s;
}

.scan-corners {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.corner {
    position: absolute;
    width: 35px;
    height: 35px;
    border: 2.5px solid var(--accent);
    box-shadow: inset 0 0 10px rgba(255, 180, 0, 0.3);
}

.corner.top-left {
    top: -2px;
    left: -2px;
    border-right: none;
    border-bottom: none;
    border-radius: 20px 0 0 0;
}

.corner.top-right {
    top: -2px;
    right: -2px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 20px 0 0;
}

.corner.bottom-left {
    bottom: -2px;
    left: -2px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 20px;
}

.corner.bottom-right {
    bottom: -2px;
    right: -2px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 20px 0;
}

/* Face frame guides */
.face-guides {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.guide-line {
    position: absolute;
    background: var(--accent);
    opacity: 0.15;
}

.guide-horizontal {
    width: 100%;
    height: 1px;
}

.guide-horizontal:nth-child(1) {
    top: 33%;
}

.guide-horizontal:nth-child(2) {
    top: 66%;
}

.guide-vertical {
    width: 1px;
    height: 100%;
}

.guide-vertical:nth-child(3) {
    left: 33%;
}

.guide-vertical:nth-child(4) {
    left: 66%;
}

.scan-text {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 1px;
    animation: pulse 1.5s ease-in-out infinite;
}

.scan-status {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

@keyframes scanDown {
    0% {
        top: -4px;
        opacity: 0;
        box-shadow: 0 0 15px rgba(255, 180, 0, 0.4);
    }
    20% {
        opacity: 1;
        box-shadow: 0 0 30px rgba(255, 180, 0, 0.8);
    }
    80% {
        opacity: 1;
        box-shadow: 0 0 30px rgba(255, 180, 0, 0.8);
    }
    100% {
        top: 100%;
        opacity: 0;
        box-shadow: 0 0 15px rgba(255, 180, 0, 0.4);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        text-shadow: 0 0 10px rgba(255, 180, 0, 0.3);
    }
    50% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(255, 180, 0, 0.6);
    }
}

