/* Vybic Site Functions — orange #FF4D1C on dark, matches Vybic theme */
.vsf-wrap { max-width: 860px; margin: 0 auto; padding: 24px 16px 60px; color: #f2f2f2; font-family: inherit; }
.vsf-hero { text-align: center; margin-bottom: 26px; }
.vsf-title { font-size: clamp(28px, 5vw, 42px); font-weight: 800; margin: 0 0 8px; color: #fff; }
.vsf-title span { color: #FF4D1C; }
.vsf-sub { color: #bdbdbd; margin: 0; font-size: 16px; }
.vsf-panel { background: #18181a; border: 1px solid #2c2c2e; border-radius: 16px; padding: 28px; }
.vsf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.vsf-wrap label { display: block; font-size: 14px; font-weight: 600; color: #d7d7d7; }
.vsf-wrap select, .vsf-wrap input[type=text], .vsf-wrap input[type=number] {
    width: 100%; margin-top: 6px; background: #101012; border: 1px solid #333; color: #fff;
    border-radius: 10px; padding: 12px 14px; font-size: 15px; box-sizing: border-box; font-family: inherit;
}
.vsf-wrap select:focus, .vsf-wrap input:focus { outline: none; border-color: #FF4D1C; }
.vsf-checks { margin: 6px 0 18px; }
.vsf-checks strong { display: block; margin-bottom: 8px; font-size: 14px; color: #d7d7d7; }
.vsf-checks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0 14px 8px 0; font-size: 14px; }
.vsf-checks input[type=checkbox] { width: 16px; height: 16px; accent-color: #FF4D1C; }
.vsf-note { color: #bdbdbd; font-size: 14px; margin: 0 0 14px; }
.vsf-note a { color: #FF4D1C; }
.vsf-result { display: flex; gap: 14px; margin: 18px 0; }
.vsf-total, .vsf-per { flex: 1; background: #101012; border: 1px solid #2c2c2e; border-radius: 12px; padding: 16px; text-align: center; }
.vsf-total small, .vsf-per small { display: block; color: #9e9e9e; font-size: 13px; margin-bottom: 6px; }
.vsf-total strong { font-size: 34px; color: #FF4D1C; }
.vsf-per strong { font-size: 24px; color: #fff; }
.vsf-btn { display: inline-block; background: #FF4D1C; color: #fff; border: none; border-radius: 999px; padding: 14px 34px; font-size: 16px; font-weight: 700; cursor: pointer; text-decoration: none; transition: .2s; text-align: center; }
.vsf-btn:hover { background: #e04418; color: #fff; }
.vsf-btn.vsf-ghost { background: transparent; border: 1px solid #444; color: #ddd; }
.vsf-btn.vsf-ghost:hover { border-color: #FF4D1C; color: #fff; }
.vsf-btn.vsf-wa { background: #25D366; width: 100%; box-sizing: border-box; }
.vsf-btn.vsf-wa:hover { background: #1fb857; }

/* Chatbot */
#vsf-chat { position: fixed; left: 18px; bottom: 18px; z-index: 99999; font-family: inherit; }
#vsf-chat-btn { width: 46px; height: 46px; border-radius: 50%; background: #FF4D1C; border: none; font-size: 21px; cursor: pointer; box-shadow: 0 4px 18px rgba(0,0,0,.4); transition: .2s; }
#vsf-chat-btn:hover { transform: scale(1.08); }
#vsf-chat-win { width: 330px; max-width: calc(100vw - 36px); height: 460px; max-height: 70vh; background: #18181a; border: 1px solid #2c2c2e; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; margin-bottom: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
#vsf-chat-head { background: #FF4D1C; color: #fff; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
#vsf-chat-close { cursor: pointer; font-size: 18px; }
#vsf-chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.vsf-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.vsf-msg.bot { background: #242426; color: #eee; align-self: flex-start; border-bottom-left-radius: 4px; }
.vsf-msg.user { background: #FF4D1C; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.vsf-msg a { color: #FFB59D; }
.vsf-msg.bot a { color: #FF8A5C; }
#vsf-chat-chips { display: flex; gap: 8px; padding: 0 14px 10px; flex-wrap: wrap; }
.vsf-chip { background: #242426; border: 1px solid #3a3a3c; color: #ddd; border-radius: 999px; padding: 6px 14px; font-size: 13px; cursor: pointer; }
.vsf-chip:hover { border-color: #FF4D1C; color: #fff; }
#vsf-chat-inputrow { display: flex; border-top: 1px solid #2c2c2e; }
#vsf-chat-input { flex: 1; background: #101012; border: none; color: #fff; padding: 14px; font-size: 14px; }
#vsf-chat-input:focus { outline: none; }
#vsf-chat-send { background: #FF4D1C; border: none; color: #fff; padding: 0 20px; font-size: 18px; cursor: pointer; }

/* Size guide */
.vsf-sg-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.vsf-sg-tab { background: #242426; border: 1px solid #3a3a3c; color: #ddd; border-radius: 999px; padding: 8px 18px; font-size: 14px; cursor: pointer; }
.vsf-sg-tab.is-active { background: #FF4D1C; border-color: #FF4D1C; color: #fff; font-weight: 700; }
.vsf-sg-pane { display: none; }
.vsf-sg-pane.is-active { display: block; }
.vsf-sg-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vsf-sg-table th, .vsf-sg-table td { padding: 10px 14px; border-bottom: 1px solid #2c2c2e; text-align: left; }
.vsf-sg-table th { color: #FF4D1C; font-size: 14px; }
.vsf-sg-table td { color: #e8e8e8; }
.vsf-modal { position: fixed; inset: 0; background: rgba(0,0,0,.7); z-index: 99998; display: flex; align-items: center; justify-content: center; padding: 20px; }
.vsf-modal-box { background: #18181a; border: 1px solid #2c2c2e; border-radius: 16px; padding: 28px; max-width: 560px; width: 100%; max-height: 85vh; overflow-y: auto; position: relative; color: #f2f2f2; }
.vsf-modal-box h2 { color: #fff; }
.vsf-modal-close { position: absolute; top: 14px; right: 18px; cursor: pointer; font-size: 20px; color: #999; }
.vsf-modal-close:hover { color: #fff; }

@media (max-width: 640px) {
    .vsf-grid2 { grid-template-columns: 1fr; }
    .vsf-result { flex-direction: column; }
    .vsf-panel { padding: 20px 16px; }
}
