:root {
    --bg-color: #ffffff;
    --text-main: #1a1a1a;
    --text-secondary: #666666;
    --accent-purple: #9b5de5;
    --accent-yellow: #FFD700;
    --accent-orange: #FF8C00;
    --btn-black: #000000;
    --font-family: 'Outfit', sans-serif;
    --font-serif: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* -----------------------------------------------------------
   LOADING SCREEN (Copied from styles.css)
----------------------------------------------------------- */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000000 !important;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.2s ease-out, visibility 0.2s;
    animation: forceHide 0.5s forwards 6s;
    /* Safety net */
}

@keyframes forceHide {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* Signature Loader */
.loader-signature {
    position: relative;
    width: 250px;
    max-width: 80vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-signature img {
    width: 100%;
    height: auto;
    filter: invert(1);
    mix-blend-mode: screen;

    /* Soft Edge Ink Reveal */
    -webkit-mask-image: linear-gradient(to right, black 50%, transparent 60%);
    mask-image: linear-gradient(to right, black 50%, transparent 60%);
    -webkit-mask-size: 300% 100%;
    mask-size: 300% 100%;
    -webkit-mask-position: 100% 0;
    mask-position: 100% 0;

    animation: signInk 2.5s ease-out forwards;
}

@keyframes signInk {
    to {
        -webkit-mask-position: 0% 0;
        mask-position: 0% 0;
    }
}

.loader-bar {
    width: 150px;
    height: 3px;
    background: transparent !important;
    overflow: hidden;
    border-radius: 2px;
    margin-top: 10px;
}

.loader-progress {
    width: 0%;
    height: 100%;
    background: #FFD700;
    /* Yellow */
    animation: loaderProgress 1.5s ease-in-out forwards;
}

@keyframes fadeUpText {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loaderProgress {
    0% {
        width: 0%;
    }

    50% {
        width: 40%;
    }

    100% {
        width: 100%;
    }
}

body {
    font-family: var(--font-family);
    background-color: #f4f4f4;
    /* Light Grey BG for contrast */
    color: var(--text-main);
    overflow-x: hidden;
    height: auto;
    width: 100%;
    /* Subtle background pattern */
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px;
}

.app-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar (Inherited) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
    min-width: 150px;
}

.logo-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #000 50%, transparent 50%);
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex: 1;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.9rem;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--text-main);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
    flex-shrink: 0;
    min-width: 150px;
}

.login-btn {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

.register-btn {
    text-decoration: none;
    background-color: var(--btn-black);
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 500;
    transition: transform 0.2s;
    font-size: 0.9rem;
}

.register-btn:hover {
    transform: scale(1.05);
}

.register-btn.active {
    background-color: var(--text-main);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 100;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-actions {
        display: none;
    }
}


/* -----------------------------------------------------------
   SPLIT TERMINAL LAYOUT
----------------------------------------------------------- */
.split-terminal-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Symmetrical padding */
    height: 100vh;
    /* Force height to viewport */
    box-sizing: border-box;
    overflow: hidden;
    /* Hide overflow if possible */
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.split-terminal {
    display: flex;
    width: 100%;
    max-width: 1050px;
    /* Reduced from 1150px */
    height: auto;
    max-height: 85vh;
    /* Reduced from 90vh */
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
}

/* COL 1: DARK MODE TERMINAL (Retainer) */
.terminal-dark {
    flex: 0.9;
    background: #111;
    color: #fff;
    padding: 30px;
    /* Reduce padding */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at top right, #1a1a1a, #000);
}

/* Black Card Design */
.hiring-card {
    width: 310px;
    /* Reduced from 340px */
    height: 450px;
    /* Reduced from 480px */
    background: linear-gradient(135deg, #1c1c1c 0%, #0d0d0d 100%);
    border-radius: 18px;
    position: relative;
    padding: 25px;
    /* Reduced padding */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: transform 0.4s ease;
}

.hiring-card:hover {
    transform: translateY(-5px) rotateX(2deg);
}

/* Card Sheen Effect */
.card-sheen {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-25deg);
    transition: left 0.5s;
    pointer-events: none;
}

.hiring-card:hover .card-sheen {
    left: 150%;
    transition: left 1s ease-in-out;
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chip {
    width: 40px;
    height: 28px;
    background: #FFD700 !important;
    background: linear-gradient(135deg, #FFD700, #FDB931) !important;
    border-radius: 6px;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 10;
}

.chip-circuit {
    position: absolute;
    background: rgba(0, 0, 0, 0.15);
    height: 1px;
    width: 70%;
    left: 15%;
}

.chip-circuit:first-child {
    top: 30%;
}

.chip-circuit:last-child {
    top: 70%;
}

.card-brand {
    font-family: 'Space Mono', monospace;
    letter-spacing: 2px;
    font-size: 0.65rem;
    /* Reduced */
    opacity: 0.6;
}

.card-body {
    flex: 1;
    margin-top: 22px;
    /* Reduced */
}

.card-title {
    font-size: 1.25rem;
    /* Reduced */
    font-weight: 600;
    margin-bottom: 12px;
    background: linear-gradient(90deg, #fff, #bbb);
    -webkit-background-clip: text;
    background-clip: text;
    /* Compatible */
    -webkit-text-fill-color: transparent;
}

.card-price {
    font-family: var(--font-serif);
    font-size: 1.85rem;
    /* Reduced */
    color: #fff;
    margin-bottom: 22px;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.card-price .currency {
    font-size: 1.1rem;
    vertical-align: top;
}

.card-price .period {
    font-size: 0.8rem;
    color: #666;
    font-family: var(--font-family);
}

.card-features {
    list-style: none;
}

.card-features li {
    font-size: 0.85rem;
    /* Reduced */
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-features .check {
    color: #4caf50;
    font-size: 0.95rem;
}

.btn-contract {
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 13px;
    /* Reduced */
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.78rem;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-contract:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* COL 2: LIGHT MODE TERMINAL (Payment) */
.terminal-light {
    flex: 1.3;
    padding: 30px 40px;
    /* Reduced from 40px 50px */
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.payment-header {
    margin-bottom: 25px;
}

.payment-header h2 {
    font-size: 1.8rem;
    /* Reduced from 2rem */
    font-weight: 600;
    margin-bottom: 5px;
    color: #000;
}

.payment-header p {
    color: #888;
    font-size: 0.9rem;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    /* Reduced from 30px */
    flex: 1;
}

/* 1. Service Selector */
.service-selector label,
.amount-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.pills-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

.pills-scroll::-webkit-scrollbar {
    display: none;
}

.pill {
    background: #f5f5f5;
    border: 1px solid transparent;
    padding: 9px 18px;
    /* Slightly larger */
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.pill:hover {
    background: #e0e0e0;
}

.pill.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* 2. Amount Input */
.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: baseline;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    transition: border-color 0.3s;
}

.amount-input-wrapper:focus-within {
    border-color: #000;
}

.currency-prefix {
    font-size: 2rem;
    font-family: var(--font-serif);
    color: #000;
    margin-right: 8px;
}

#amountInput {
    border: none;
    background: transparent;
    font-family: var(--font-serif);
    font-size: 3.4rem;
    /* Increased from 3rem */
    color: #000;
    width: 100%;
    outline: none;
    line-height: 1;
}

#amountInput::placeholder {
    color: #999;
    /* Darker placeholder */
}

/* Client Info Group */
.client-info-group {
    margin-top: -10px;
}

.input-row {
    display: flex;
    gap: 20px;
}

.mini-input {
    flex: 1;
}

.mini-input label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    /* Darker label */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.mini-input input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 8px 0;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: #333;
    background: transparent;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s;
}

.mini-input input:focus {
    border-color: #000;
}

.mini-input input::placeholder {
    color: #888;
    /* Darker input placeholder */
}

/* 3. Scope Meter */
.scope-meter-container {
    padding: 10px 0;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 6px;
}

.meter-label-left {
    color: #888;
}

.meter-label-right {
    font-weight: 600;
    color: #000;
}

.meter-track {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.meter-fill {
    height: 100%;
    width: 0%;
    /* Dynamic */
    background: linear-gradient(90deg, #4caf50, #ff9800, #f44336);
    background-size: 200% 100%;
    transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), background-position 0.4s;
}

.meter-dots {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    padding: 0 2px;
}

.dot {
    width: 4px;
    height: 4px;
    background: #ddd;
    border-radius: 50%;
    transition: background 0.3s;
}

/* 4. Payment Button */
.payment-actions {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
}

.btn-pay {
    background: #000;
    color: #fff;
    border: none;
    padding: 14px 28px;
    /* Larger */
    border-radius: 40px;
    font-size: 0.95rem;
    /* Larger */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.btn-pay:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    color: #666;
    background: #f9f9f9;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #eee;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .split-terminal-wrapper {
        height: auto;
        padding: 80px 20px 40px;
        overflow-y: auto;
    }

    .split-terminal {
        flex-direction: column;
        max-height: none;
    }

    .terminal-dark,
    .terminal-light {
        width: 100%;
        padding: 40px 20px;
    }

    .hiring-card {
        width: 100%;
        max-width: 320px;
        height: auto;
        min-height: 480px;
    }

    #amountInput {
        font-size: 3rem;
    }

    .payment-actions {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .btn-pay {
        justify-content: center;
    }

    .security-badge {
        justify-content: center;
        width: fit-content;
        margin: 0 auto;
    }
}

/* =========================================
   NEW PAYMENT FLOW STYLES
   ========================================= */

/* QR Code Styles */
.qr-container {
    text-align: center;
    margin-bottom: 20px;
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qr-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 10px;
    padding: 10px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#qrcode {
    width: 100%;
    height: 100%;
}

#qrcode img {
    width: 100%;
    display: block;
}

.scan-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #00ff00;
    box-shadow: 0 0 4px #00ff00;
    top: 0;
    left: 0;
    animation: scan 2s infinite linear;
    opacity: 0.5;
}

@keyframes scan {
    0% {
        top: 0;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0;
    }
}

.qr-instruction {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.qr-amount {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    font-family: var(--font-serif);
}

/* UTR Input Styles */
.utr-group {
    background: #f0f0f0;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 2px solid #000;
    animation: fadeIn 0.4s;
}

.utr-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.utr-group input {
    width: 100%;
    padding: 10px;
    font-size: 1.1rem;
    font-family: 'Space Mono', monospace;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
}

.utr-group input:focus {
    border-color: #000;
    background: #fff;
}

.utr-hint {
    font-size: 0.75rem;
    color: #666;
    margin-top: 6px;
}

/* Payment Success Screen */
.payment-success {
    text-align: center;
    animation: fadeIn 0.5s ease;
    padding: 20px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(76, 175, 80, 0.3);
}

.success-icon .checkmark {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
}

.payment-success h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.payment-success p {
    color: #666;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.payment-success .verification-note {
    font-size: 0.85rem;
    color: #888;
    margin: 15px 0 30px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        margin-top: 10px;
    }

    to {
        opacity: 1;
        margin-top: 0;
    }
}

/* Toggle Logic to Hide Flow Steps */
.payment-form.show-qr .amount-group,
.payment-form.show-qr .client-info-group,
.payment-form.show-qr .scope-meter-container,
.payment-form.show-qr .service-selector {
    display: none;
}

.payment-form.show-success .amount-group,
.payment-form.show-success .client-info-group,
.payment-form.show-success .scope-meter-container,
.payment-form.show-success .service-selector,
.payment-form.show-success .payment-actions,
.payment-form.show-success .qr-container,
.payment-form.show-success .utr-group,
/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #000;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10000;
}

.toast-notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 20px;
    height: 20px;
    background: #FFD700;
    color: #000;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.toast-notification.error .toast-icon {
    background: #FF4444;
    color: #fff;
}

/* =========================================
   ONBOARDING MODAL STYLES (Premium Dark)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeInModal 0.3s forwards;
}

@keyframes fadeInModal {
    to {
        opacity: 1;
    }
}

.modal-content-dark {
    background: #111;
    width: 90%;
    max-width: 400px;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(20px);
    animation: slideUpModal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    color: #fff;
    text-align: center;
}

@keyframes slideUpModal {
    to {
        transform: translateY(0);
    }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-header-dark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.logo-icon-small {
    width: 12px;
    height: 12px;
    background: #fff;
    border-radius: 50%;
}

.modal-content-dark h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.modal-subtitle {
    color: #888;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.input-group-dark {
    text-align: left;
    margin-bottom: 15px;
}

.input-group-dark label {
    display: block;
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.input-group-dark input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 12px 15px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

.input-group-dark input:focus {
    border-color: #fff;
}

.btn-onboard {
    width: 100%;
    background: #fff;
    color: #000;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-onboard:hover {
    background: #ddd;
    transform: translateY(-2px);
}

/* Success State */
.onboarding-success {
    padding: 20px 0;
}

.success-icon-small {
    width: 50px;
    height: 50px;
    background: #4caf50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin: 0 auto 15px;
}

.onboarding-success h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.onboarding-success p {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.btn-close-small {
    background: transparent;
    border: 1px solid #333;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.btn-close-small:hover {
    border-color: #fff;
}

/* Loader Spinner */
.btn-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* -----------------------------------------------------------
   MOBILE WARNING & OVERRIDE (TERMINAL STYLE)
   ----------------------------------------------------------- */
#mobile-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Coding Terminal Style Card */
.terminal-alert {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    font-family: 'Outfit', monospace;
    text-align: left;
    animation: alertPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes alertPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.terminal-alert-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dots span:nth-child(1) {
    background: #ff5f56;
}

.terminal-dots span:nth-child(2) {
    background: #ffbd2e;
}

.terminal-dots span:nth-child(3) {
    background: #27c93f;
}

.terminal-alert-title {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: #888;
    margin-right: 42px;
}

.terminal-alert-body {
    padding: 25px;
    color: #ddd;
}

.alert-code {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-family: monospace;
}

.alert-keyword {
    color: #ff5f56;
}

.alert-cmd {
    color: #27c93f;
}

#forceDesktopBtn {
    width: 100%;
    padding: 12px;
    background: #333;
    border: 1px solid #555;
    color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#forceDesktopBtn:hover {
    background: #444;
    border-color: #FFD700;
    color: #FFD700;
}

@media (max-width: 1024px) {
    #mobile-warning {
        display: flex;
    }

    .app-container,
    .navbar,
    .split-terminal-wrapper {
        display: none !important;
    }
}

/* Force Desktop Mode */
body.force-desktop-mode #mobile-warning {
    display: none !important;
}

body.force-desktop-mode .app-container,
body.force-desktop-mode .navbar,
body.force-desktop-mode .split-terminal-wrapper {
    display: flex !important;
}

/* ROTATE HINT */
#rotate-hint {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    animation: fadeOutHint 0.5s ease-out 3s forwards;
}

@keyframes fadeOutHint {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.phone-rotate-icon {
    width: 40px;
    height: 70px;
    border: 3px solid #fff;
    border-radius: 6px;
    position: relative;
    margin-bottom: 25px;
    animation: rotatePhone 2.5s ease-in-out infinite;
}

.phone-rotate-icon::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
}

@keyframes rotatePhone {
    0% {
        transform: rotate(0deg);
        opacity: 1;
    }

    20% {
        transform: rotate(90deg);
        opacity: 1;
    }

    50% {
        transform: rotate(90deg);
        opacity: 1;
    }

    60% {
        transform: rotate(0deg);
        opacity: 0;
    }

    100% {
        transform: rotate(0deg);
        opacity: 1;
    }
}

#rotate-hint p {
    color: #fff;
    font-family: monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-align: center;
    text-transform: uppercase;
}