/* WACHAT SaaS — Public Styles */

.wcss-wrap { max-width: 640px; margin: 2rem auto; padding: 0 1rem; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.wcss-wrap * { box-sizing: border-box; }
.wcss-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 2rem; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.wcss-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; }
.wcss-logo-circle { width: 48px; height: 48px; background: #25D366; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wcss-logo-sm { width: 36px; height: 36px; }
.wcss-brand-name { font-size: 18px; font-weight: 700; color: #111; line-height: 1.2; }
.wcss-brand-sub  { font-size: 12px; color: #6b7280; }
.wcss-card-title { font-size: 22px; font-weight: 700; color: #111; margin: 0 0 .4rem; }
.wcss-card-desc  { font-size: 14px; color: #6b7280; margin: 0 0 1.5rem; }
.req { color: #ef4444; }

/* Steps bar */
.wcss-steps-bar { display: flex; align-items: center; gap: 0; margin-bottom: 1.5rem; }
.wcss-step-dot  { width: 28px; height: 28px; border-radius: 50%; background: #e5e7eb; color: #9ca3af; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all .2s; flex-shrink: 0; }
.wcss-step-dot.active { background: #25D366; color: #fff; }
.wcss-step-dot.done   { background: #16a34a; color: #fff; }
.wcss-step-line { flex: 1; height: 2px; background: #e5e7eb; }
.wcss-step-title { font-size: 15px; font-weight: 600; color: #374151; margin: 0 0 1rem; }

/* Form steps */
.wcss-form-step { display: none; }
.wcss-form-step.active { display: block; }

/* Fields */
.wcss-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.wcss-field label { font-size: 13px; font-weight: 600; color: #374151; }
.wcss-field input, .wcss-field select, .wcss-field textarea {
    padding: 9px 12px; border: 1px solid #d1d5db; border-radius: 8px;
    font-size: 14px; color: #111; background: #fff; width: 100%;
    transition: border-color .15s;
}
.wcss-field input:focus, .wcss-field select:focus, .wcss-field textarea:focus {
    outline: none; border-color: #25D366; box-shadow: 0 0 0 3px rgba(37,211,102,.12);
}
.wcss-field textarea { resize: vertical; font-family: inherit; }
.wcss-field small { font-size: 11px; color: #9ca3af; font-weight: 400; }
.wcss-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media(max-width:480px){ .wcss-row-2 { grid-template-columns: 1fr; } }
.wcss-color-input { padding: 3px; height: 42px; cursor: pointer; }

/* Layout selector */
.wcss-layout-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 4px; }
.wcss-layout-opt  { border: 1.5px solid #e5e7eb; border-radius: 8px; padding: 10px 4px; text-align: center; cursor: pointer; font-size: 11px; color: #6b7280; transition: all .15s; }
.wcss-layout-opt:hover   { border-color: #25D366; }
.wcss-layout-opt.selected{ border-color: #25D366; background: #f0fdf4; color: #15803d; font-weight: 600; }

/* Buttons */
.wcss-btn-next, .wcss-btn-submit {
    display: block; width: 100%; padding: 11px; font-size: 15px; font-weight: 600;
    color: #fff; background: #25D366; border: none; border-radius: 8px; cursor: pointer;
    margin-top: 8px; transition: background .15s;
}
.wcss-btn-next:hover, .wcss-btn-submit:hover { background: #1db954; }
.wcss-btn-next:disabled, .wcss-btn-submit:disabled { opacity: .6; cursor: not-allowed; }
.wcss-btn-back {
    flex: 1; padding: 11px; font-size: 14px; font-weight: 600; color: #374151;
    background: transparent; border: 1.5px solid #e5e7eb; border-radius: 8px; cursor: pointer;
    transition: background .15s;
}
.wcss-btn-back:hover { background: #f9fafb; }
.wcss-btn-group { display: flex; gap: 10px; margin-top: 8px; }
.wcss-btn-group .wcss-btn-next { flex: 2; margin-top: 0; }
.wcss-login-link { text-align: center; font-size: 13px; color: #6b7280; margin-top: 1.2rem; }
.wcss-login-link a { color: #25D366; font-weight: 600; text-decoration: none; }

/* Message */
.wcss-msg { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 1rem; }
.wcss-msg.error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.wcss-msg.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }

/* ----- DASHBOARD ----- */
.wcss-dashboard { max-width: 860px; }
.wcss-dash-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 1rem; }
.wcss-dash-logo { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: #111; }
.wcss-dash-user { display: flex; align-items: center; gap: 10px; }
.wcss-dash-name { font-size: 14px; font-weight: 600; color: #374151; }
.wcss-avatar { width: 34px; height: 34px; border-radius: 50%; background: #25D366; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.wcss-logout-btn { font-size: 13px; color: #ef4444; text-decoration: none; }
.wcss-plan-badge { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.wcss-plan-badge.free { background: #f3f4f6; color: #6b7280; }
.wcss-plan-badge.pro  { background: #fef3c7; color: #92400e; }

/* Tabs */
.wcss-dash-tabs { display: flex; gap: 4px; margin-bottom: 1rem; }
.wcss-tab { padding: 8px 16px; font-size: 14px; font-weight: 500; color: #6b7280; background: transparent; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; transition: all .15s; }
.wcss-tab:hover  { background: #f9fafb; }
.wcss-tab.active { background: #25D366; color: #fff; border-color: #25D366; }
.wcss-tab-content { display: none; }
.wcss-tab-content.active { display: block; }
.wcss-card h3 { font-size: 17px; font-weight: 700; color: #111; margin: 0 0 .8rem; }
.wcss-info-text { font-size: 13px; color: #6b7280; margin-bottom: 1rem; line-height: 1.6; }
.wcss-info-text code { background: #f3f4f6; padding: 1px 5px; border-radius: 4px; font-size: 12px; }

/* Snippet preview */
.wcss-snippet-preview { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 14px; margin-bottom: 1rem; }
.wcss-preview-agent { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.wcss-preview-avatar { width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wcss-preview-name { font-size: 14px; font-weight: 600; color: #111; }
.wcss-preview-role { font-size: 12px; color: #6b7280; }
.wcss-preview-dot { width: 8px; height: 8px; background: #25D366; border-radius: 50%; margin-left: auto; }
.wcss-preview-bubble { background: #25D366; color: #fff; border-radius: 0 10px 10px 10px; padding: 10px 14px; font-size: 13px; line-height: 1.5; max-width: 340px; }

/* Code box */
.wcss-code-wrap { border: 1px solid #e5e7eb; border-radius: 10px; overflow: hidden; margin-bottom: 1rem; }
.wcss-code-header { display: flex; justify-content: space-between; align-items: center; background: #f9fafb; padding: 8px 14px; border-bottom: 1px solid #e5e7eb; font-size: 12px; color: #6b7280; font-weight: 600; }
.wcss-copy-btn { font-size: 12px; padding: 4px 12px; background: #25D366; color: #fff; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; }
.wcss-copy-btn:hover { background: #1db954; }
.wcss-code-box { display: block; width: 100%; padding: 14px; font-family: 'Courier New', monospace; font-size: 12px; line-height: 1.6; background: #1e1e1e; color: #d4d4d4; border: none; resize: none; min-height: 200px; }

/* Install steps */
.wcss-install-steps { counter-reset: inst; }
.wcss-install-step { display: flex; gap: 12px; margin-bottom: 10px; counter-increment: inst; align-items: flex-start; }
.wcss-install-step span { width: 22px; height: 22px; border-radius: 50%; background: #25D366; color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.wcss-install-step p { font-size: 13px; color: #6b7280; line-height: 1.6; margin: 0; }
.wcss-install-step strong { color: #374151; }
.wcss-install-step code { background: #f3f4f6; padding: 1px 5px; border-radius: 4px; font-size: 11px; }

/* Plan grid */
.wcss-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:540px){ .wcss-plan-grid { grid-template-columns: 1fr; } }
.wcss-plan-card { background: #fff; border: 1.5px solid #e5e7eb; border-radius: 14px; padding: 1.5rem; position: relative; }
.wcss-plan-card.featured { border-color: #25D366; }
.wcss-plan-card.current { background: #f0fdf4; }
.wcss-plan-popular { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #25D366; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 14px; border-radius: 99px; white-space: nowrap; }
.wcss-plan-name { font-size: 14px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.wcss-plan-price { font-size: 28px; font-weight: 800; color: #111; margin-bottom: 1rem; }
.wcss-plan-price small { font-size: 14px; font-weight: 400; color: #9ca3af; }
.wcss-plan-features { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.wcss-plan-features li { font-size: 13px; color: #374151; padding: 5px 0; border-bottom: 1px solid #f3f4f6; }
.wcss-plan-features li.off { color: #9ca3af; }
.wcss-current-badge { text-align: center; font-size: 12px; font-weight: 700; color: #15803d; background: #dcfce7; padding: 6px; border-radius: 8px; }
.wcss-btn-plan-up, .wcss-btn-plan-down {
    width: 100%; padding: 10px; font-size: 14px; font-weight: 700; border: none; border-radius: 8px; cursor: pointer;
}
.wcss-btn-plan-up   { background: #25D366; color: #fff; }
.wcss-btn-plan-up:hover { background: #1db954; }
.wcss-btn-plan-down { background: #f3f4f6; color: #374151; }
.wcss-plan-note { font-size: 12px; color: #9ca3af; text-align: center; margin-top: 1rem; }
