        :root {
            --font-family: 'Segoe UI', san-serif;
            --primary: #005aab;
            --bg: #f0f4f8; }
            --accent: #3b82f6;
            --bg-main: #f1f5f9;
            --bg-sidebar: #1e293b;
            --bg-card: #ffffff;
            --text-main: #334155;
            --border: #e2e8f0;      
            --success: #10b981;
            --danger: #ef4444;
            --text-muted: #64748b;
            --risk-high: #ef4444;
            --risk-med: #f59e0b;

        body { background: var(--primary); display: flex; height: 100vh; overflow: hidden; }
.logo { 
    font-family: 'Segoe UI', san-serif;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    margin-bottom: 0rem;
    padding-bottom: 0rem;
} 
        .sim-container { max-width: 1200px; margin: auto; background: white; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); overflow: hidden; }
.top-bar {     background: #1e293b;
    color: white;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;}
        .stats { font-family: 'Segoe UI'; display: flex; gap: 20px; font-weight: bold; }
        .scenario-card { background-color: #eef2f7; font-family: 'Segoe UI'; padding: 10px 30px; min-height: 400px; }
        .inbox-header { color: blue; font-size: .9em; margin-bottom: 10px; border-bottom: 1px solid #ddd; padding-bottom: 5px; }
        .chat-bubble { font-family: 'Segoe UI'; background: lightblue; padding: 10px; border-radius: 15px 15px 15px 0; margin-bottom: 20px; position: relative; border-left: 5px solid var(--primary); }
        .options-list { font-family: 'Segoe UI'; display: flex; flex-direction: column; gap: 12px; }
        .opt-btn { background: white; border: 2px solid #ddd; padding: 15px; border-radius: 8px; cursor: pointer; text-align: left; font-size: 15px; transition: 0.3s; }
        .opt-btn:hover { border-color: var(--primary); background: #f0f7ff; transform: translateX(5px); }
        .feedback { display: none; margin-top: 20px; padding: 5px 20px; border-radius: 8px; font-weight: 500; }
        .audit-log { background: #222; color: #4ade80; padding: 15px; font-family: 'Segoe UI'; font-size: 0.85em; max-height: 150px; overflow-y: auto; }
    .btn-primary { background: linear-gradient(135deg, black, blue); border: none; color: white; padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 5px 5px rgba(34, 197, 94, 0.35);    }
    .btn-primary:hover { filter: brightness(1.05); }
    .btn-ghost { background: transparent; border-radius: 999px; border: 1px solid rgba(148, 163, 184, 0.5); color: var(--muted); padding: 9px 14px; font-size: 12px; cursor: pointer; }

/*Doc Generator*/
        .doc-paper { background: #fff; color: #333; padding: 0 px 50px; font-family: 'Sego UI', sans-serif; box-shadow: 0 0 15px rgba(0,0,0,0.1); 
            border: 1px solid #ccc; line-height: 1.6; position: relative;             max-width: 850px; margin: 20px auto;        }
        .rev-header { border-bottom: 4px solid #005aab; margin-bottom: 25px; padding-bottom: 10px; }
        .rev-logo { font-weight: bold; color: #005aab; font-size: 28px; letter-spacing: -1px; }
        .rev-sub { font-size: 12px; color: #444; text-transform: uppercase; }
        .doc-meta { float: right; text-align: right; font-size: 12px; color: #555; }
        .doc-title { font-size: 20px; font-weight: bold; text-align: center; margin: 40px 0 20px 0; text-transform: uppercase; }
        .vat-table { width: 100%; border-collapse: collapse; margin: 25px 0; }
        .vat-table th { background: #f2f2f2; border: 1px solid #ddd; padding: 12px; text-align: left; }
        .vat-table td { border: 1px solid #ddd; padding: 12px; }
        .box-code { font-weight: bold; background: #eef2f7; padding: 2px 6px; border: 1px solid #005aab; color: #005aab; }
        .stamp-red { position: absolute; top: 120px; right: 60px; border: 4px double #d32f2f; color: #d32f2f; 
                     padding: 15px; transform: rotate(-20deg); font-weight: bold; font-size: 1.2em; opacity: 0.7; }
        .footer-note { font-size: 11px; color: #777; border-top: 1px solid #eee; margin-top: 50px; padding-top: 10px; }
/* The dark background that dims the rest of the screen */
#documentPreview {
    display: none; 
    /* Ensures it floats exactly where the user is looking */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Semi-transparent backdrop to keep simulator visible but blurred */
    background: rgba(30, 41, 59, 0.85); 
    backdrop-filter: blur(5px);
    z-index: 10000; 
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.preview-content-wrapper {
    background: white;
    max-width: 850px;
    margin: 40px auto; /* Centers the paper horizontally */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
    position: relative;
}
#paywall-screen, #results-screen { display: none; padding: 0px 50px; text-align: center; }
        .cta-btn { background: var(--primary); color: white; padding: 15px 30px; font-size: 18px; text-decoration: none; border-radius: 8px; display: inline-block; margin-top: 20px; }
#paywall-screen {
    /* Layout & Positioning */
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 100000000;

    /* Professional Glassmorphism Effect */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);

    /* Center the "Card" */
    align-items: center;
    justify-content: center;
    
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* The Blue Rounded Border Box */
.paywall-container {
    border: 2px solid #00bee7;
    border-radius: 15px;
    padding: 60px 40px;
    max-width: 900px;
    width: 90%;
    background: white;
    text-align: center;
}

/* Typography matching the image */
.paywall-container h2 {
    color: #00bee7;
    font-size: 28px;
    margin-bottom: 20px;
}

.paywall-container p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.paywall-container .highlight {
    color: #00bee7;
    font-weight: bold;
}

/* The Bright Blue Button */
.paywall-btn {
    background-color: #00bee7;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 20px;
}

.paywall-btn:hover {
    background-color: #009dbf;
}

/* Footer Link */
.paywall-footer {
    margin-top: 15px;
    font-size: 14px;
}

.paywall-footer a {
    color: blue;
    text-decoration: underline;
}