/* ===== Reset / Base ===== */
html, body {
    margin: 0; padding: 0; height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    overflow: hidden; background-color: #f5f7fa;
    display: flex; flex-direction: column;
}

/* ===== Header ===== */
.header-bar {
    background-color: #0d1b2a; color: #ffffff; padding: 12px 24px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); z-index: 101;
}

.brand-logo {
    display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700;
}
.brand-logo span { color: #e0a96d; }

.status-badge {
    background-color: rgba(224, 169, 109, 0.2); border: 1px solid #e0a96d; color: #e0a96d;
    padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
}

/* ===== Main iframe area ===== */
.iframe-container { position: relative; flex-grow: 1; width: 100%; overflow: hidden; }
.iframe-container iframe { width: 100%; height: 100%; border: none; }

/* Chat shield (server-token gate) */
.chat-shield {
    display: none;
    position: absolute; bottom: 0; left: 0; width: 100%; height: 180px;
    background: linear-gradient(to top, rgba(255,255,255,0.95) 70%, rgba(255,255,255,0));
    z-index: 9998; align-items: flex-end; justify-content: center; padding-bottom: 30px;
}
.chat-shield-card {
    text-align: center; font-family: sans-serif; padding: 15px; background: #ffffff;
    border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 450px; margin: 0 20px; border: 1px solid #e2e8f0;
}
.shield-text {
    margin: 0 0 10px 0; font-size: 0.9rem; color: #1e293b; font-weight: 600;
}

/* ===== Footer ===== */
.app-disclaimer {
    background-color: #ffffff; color: #64748b; font-size: 0.78rem;
    text-align: center; padding: 8px 16px; border-top: 1px solid #e2e8f0; font-weight: 500;
}

/* ===== Buttons ===== */
.btn-primary {
    background: #0d1b2a; color: #ffffff; border: none; padding: 10px 20px;
    border-radius: 6px; font-weight: bold; cursor: pointer;
}
.btn-block { width: 100%; padding: 12px; }

/* ===== Lead capture modal ===== */
.modal-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 9999; justify-content: center; align-items: center;
}
.modal-box {
    background: #ffffff; padding: 30px; border-radius: 12px; width: 90%; max-width: 400px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2); position: relative; text-align: center; font-family: sans-serif;
}
.modal-title { margin-top: 0; color: #0d1b2a; }
.modal-desc { color: #64748b; font-size: 0.9rem; margin-bottom: 20px; }
.modal-close {
    position: absolute; top: 10px; right: 15px; background: none; border: none;
    font-size: 1.2rem; cursor: pointer; color: #94a3b8;
}
.modal-input {
    width: 100%; padding: 12px; margin-bottom: 12px;
    border: 1px solid #cbd5e1; border-radius: 6px; box-sizing: border-box;
}