/* Onboarding Redesign */
#onboarding-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex; /* Flex to center content */
    /* align-items: center; REMOVED to allow scroll */
    justify-content: center;
    color: white;
    font-family: 'Inter', sans-serif;
    overflow-y: auto; /* ENABLE SCROLL */
    padding: 20px 0; /* Add some padding */
}

/* Background Image Layer */
.onboarding-background {
    position: fixed; /* FIXED POSITION */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/ximage.jpg') no-repeat center center;
    background-size: cover;
    z-index: -2;
}

/* Dark Overlay */
.onboarding-overlay {
    position: fixed; /* FIXED POSITION */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.85); /* Dark blue/black tint */
    backdrop-filter: blur(5px);
    z-index: -1;
}

/* Main Container - Centered Column */
.onboarding-container {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: auto; /* CENTER VERTICALLY AND HORIZONTALLY IN FLEX CONTAINER */
    padding: 3rem 2rem; /* Increased vertical padding for better spacing */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;

    /* Glass Effect */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08); /* Subtle border */
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* Logo Section */
.ob-logo-section {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ob-logo-img {
    height: 80px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.ob-welcome-text {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
    margin-bottom: 5px;
    background: linear-gradient(to right, #fff, #ccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ob-tagline {
    font-size: 0.95rem;
    color: #aaa;
    margin: 0;
    margin-bottom: 15px;
    font-weight: 400;
}

.ob-warning-text {
    font-size: 0.8rem;
    color: #e74c3c;
    margin-top: 5px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* Activation Section */
.ob-activation-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ob-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    color: #fff;
}

.ob-scan-text {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 20px;
}

/* QR Code */
.ob-qr-container {
    background: white;
    padding: 10px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#ob-qr-code {
    width: 150px;
    height: 150px;
}

#ob-qr-code img {
    display: block; /* Fix weird spacing */
}

/* Device ID */
.ob-device-id-container {
    margin-bottom: 30px;
    text-align: center;
}

.ob-device-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.ob-device-id {
    font-family: 'Courier New', monospace; /* Monospace for alignment */
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Action Area (Terms + Button) */
.ob-action-area {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.ob-terms-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.ob-terms-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #3498db; 
}

.ob-terms-checkbox label {
    font-size: 0.9rem;
    color: #ccc;
    cursor: pointer;
}

.ob-btn-start {
    background: #1e2535; /* Dark Theme Button */
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
}

.ob-btn-start:hover:not(:disabled), .ob-btn-start:focus {
    background: #3498db;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    outline: none;
}

.ob-btn-start:disabled {
    background: #222;
    color: #555;
    cursor: not-allowed;
    border-color: transparent;
}

/* Footer Link */
.ob-footer-link {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.ob-footer-link:hover {
    color: #fff;
}

/* Animation */
@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.onboarding-container {
    animation: fadeInSlide 0.8s ease-out;
}

/* Help Dropdown Styles */
.ob-help-dropdown {
    width: 100%;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: slideDown 0.3s ease-out;
    transform-origin: top;
    backdrop-filter: blur(10px); /* Nested glass effect */
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px) scaleY(0.95); max-height: 0; }
    to { opacity: 1; transform: translateY(0) scaleY(1); max-height: 300px; }
}

.ob-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.03); /* Subtle bg */
    padding: 12px 15px;
    border-radius: 12px;
    transition: background 0.2s, transform 0.2s;
    border: 1px solid transparent;
}

.ob-contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
}

.ob-contact-item i {
    font-size: 20px;
    color: #ffd700;
    width: 30px;
    text-align: center;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

.ob-contact-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ob-contact-text label {
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.ob-contact-text span {
    color: #fff;
    font-weight: 500;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.selectable {
    user-select: text;
}
