/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
    --bg: #0f0f0f;
    --sidebar: #1a1a1a;
    --card: #242424;
    --card-hover: #2c2c2c;
    --border: #333;
    --accent: #25D366;
    --accent-dark: #1aab52;
    --accent-dim: rgba(37, 211, 102, 0.12);
    --danger: #e74c3c;
    --danger-dark: #c0392b;
    --warning: #f39c12;
    --text: #f0f0f0;
    --text-muted: #888;
    --text-dim: #555;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
    --sidebar-w: 240px;
    --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
img { max-width: 100%; display: block; }
input, textarea, select {
    font-family: inherit;
    font-size: 0.95rem;
    background: #1e1e1e;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    padding: 0.6rem 0.9rem;
    width: 100%;
    transition: border var(--transition), box-shadow var(--transition);
    outline: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
textarea { resize: vertical; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
code {
    background: #2a2a2a;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
    color: var(--accent);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transition: transform var(--transition);
}
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.4rem 1.2rem;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent);
}
.sidebar-logo .fab { font-size: 1.6rem; }
.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.75rem 1.2rem;
    color: var(--text-muted);
    font-size: 0.93rem;
    transition: background var(--transition), color var(--transition);
    border-left: 3px solid transparent;
}
.nav-item:hover { background: var(--accent-dim); color: var(--text); }
.nav-item.active {
    background: var(--accent-dim);
    color: var(--accent);
    border-left-color: var(--accent);
}
.nav-item i { width: 18px; text-align: center; }
.nav-section-label {
    padding: 0.8rem 1.2rem 0.3rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}
.sidebar-footer {
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.user-info { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }
.btn-logout {
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.3rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
}
.btn-logout:hover { color: var(--danger); }

/* ── Main wrapper ── */
.main-wrapper {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--sidebar);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}
.topbar-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
}
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}
.content { padding: 1.5rem; flex: 1; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-dark); color: #000; }
.btn-secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--card-hover); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-dark); }
.btn-warning { background: var(--warning); color: #000; }
.btn-warning:hover { filter: brightness(0.9); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.82rem; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash-container { padding: 0 1.5rem; margin-top: 1rem; }
.flash {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}
.flash-success { background: rgba(37,211,102,0.15); border: 1px solid var(--accent); color: var(--accent); }
.flash-error { background: rgba(231,76,60,0.15); border: 1px solid var(--danger); color: var(--danger); }
.flash-close { margin-left: auto; background: none; border: none; cursor: pointer; color: inherit; font-size: 1.1rem; line-height: 1; }
@keyframes slideIn { from { opacity:0; transform: translateY(-8px); } to { opacity:1; transform: translateY(0); } }

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.alert-error { background: rgba(231,76,60,0.15); border: 1px solid var(--danger); color: var(--danger); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.badge-active { background: rgba(37,211,102,0.18); color: var(--accent); }
.badge-inactive { background: rgba(136,136,136,0.18); color: var(--text-muted); }

/* ============================================================
   LOGIN
   ============================================================ */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: radial-gradient(ellipse at 60% 40%, #0d2b1a 0%, var(--bg) 70%);
}
.login-container { width: 100%; max-width: 420px; padding: 1.5rem; }
.login-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow);
    text-align: center;
}
.login-logo {
    width: 72px; height: 72px;
    background: var(--accent-dim);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--accent);
}
.login-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.25rem; }
.login-subtitle { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.5rem; }
.login-form { text-align: left; }
.login-form .form-group { margin-bottom: 1rem; }
.login-form label { display: block; font-size: 0.85rem; margin-bottom: 0.35rem; color: var(--text-muted); }
.login-hint { margin-top: 1.2rem; font-size: 0.8rem; color: var(--text-dim); }
.input-pw-wrap { position: relative; }
.input-pw-wrap input { padding-right: 2.8rem; }
.toggle-pw {
    position: absolute; right: 0.7rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.9rem;
}

/* ============================================================
   DASHBOARD
   ============================================================ */
.dashboard-header {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.5rem; flex-wrap: wrap;
}
.search-form { display: flex; gap: 0.5rem; flex: 1; min-width: 220px; }
.search-wrap {
    position: relative; flex: 1;
}
.search-wrap i { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-wrap input { padding-left: 2.3rem; }

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}
.empresa-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.empresa-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow);
    transform: translateY(-2px);
}
.card-logo { display: flex; justify-content: center; }
.card-logo img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.logo-placeholder {
    width: 72px; height: 72px; border-radius: 50%;
    background: var(--accent-dim); border: 2px solid var(--accent);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; color: var(--accent);
}
.logo-placeholder.lg { width: 90px; height: 90px; font-size: 2.2rem; }
.card-body { text-align: center; }
.card-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; }
.card-phone { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.card-phone .fab { color: var(--accent); }
.card-actions { display: flex; gap: 0.5rem; justify-content: center; }

.empty-state {
    text-align: center; padding: 4rem 2rem; color: var(--text-muted);
}
.empty-state i { font-size: 3.5rem; color: var(--text-dim); margin-bottom: 1rem; }
.empty-state h2 { font-size: 1.3rem; margin-bottom: 0.4rem; color: var(--text); }
.empty-state p { margin-bottom: 1.2rem; }

/* ============================================================
   FORMS (Config, Nueva empresa)
   ============================================================ */
.form-page { max-width: 780px; margin: 0 auto; }
.form-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.4rem; display: flex; align-items: center; gap: 0.5rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 0.35rem; color: var(--text-muted); }
.form-section-title { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); margin: 1rem 0 0.8rem; display: flex; align-items: center; gap: 0.5rem; }
.form-divider { margin: 1.5rem 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 0.7rem; margin-top: 1.5rem; flex-wrap: wrap; }
.form-check .switch-label { display: flex; align-items: center; gap: 0.7rem; cursor: pointer; color: var(--text); font-size: 0.9rem; }
.form-check input[type=checkbox] { display: none; }
.switch {
    width: 42px; height: 22px; background: var(--border); border-radius: 11px;
    position: relative; transition: background var(--transition);
}
.switch::after {
    content: ''; position: absolute; top: 3px; left: 3px;
    width: 16px; height: 16px; background: #fff; border-radius: 50%;
    transition: transform var(--transition);
}
input[type=checkbox]:checked + .switch { background: var(--accent); }
input[type=checkbox]:checked + .switch::after { transform: translateX(20px); }

.file-upload-wrap { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.file-upload-label {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.5rem 1rem; background: var(--card-hover); border: 1px dashed var(--border);
    border-radius: var(--radius-sm); cursor: pointer; font-size: 0.88rem; color: var(--text-muted);
    transition: border-color var(--transition);
}
.file-upload-label:hover { border-color: var(--accent); color: var(--accent); }
.file-upload-label input[type=file] { display: none; }
.logo-preview { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.hidden { display: none !important; }

.webhook-url-wrap { display: flex; gap: 0.5rem; }
.webhook-url-wrap input { flex: 1; color: var(--text-muted); font-size: 0.82rem; }

.test-result {
    margin-top: 1rem; padding: 0.75rem 1rem; border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 500;
}
.test-ok { background: rgba(37,211,102,0.15); border: 1px solid var(--accent); color: var(--accent); }
.test-error { background: rgba(231,76,60,0.15); border: 1px solid var(--danger); color: var(--danger); }

/* ============================================================
   EMPRESA DETALLE
   ============================================================ */
.detalle-header {
    display: flex; align-items: center; gap: 1.5rem;
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.detalle-info h2 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.detalle-info p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.5rem; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.2rem; display: flex; align-items: center; gap: 1rem;
}
.stat-card i { font-size: 1.8rem; color: var(--accent); }
.stat-num { display: block; font-size: 1.3rem; font-weight: 700; }
.stat-label { font-size: 0.78rem; color: var(--text-muted); }
.quick-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ============================================================
   NODES EDITOR
   ============================================================ */
.nodes-layout { display: grid; grid-template-columns: 1fr 340px; gap: 1.2rem; height: calc(100vh - 80px); }
.nodes-panel {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    display: flex; flex-direction: column; overflow: hidden;
}
.nodes-toolbar { padding: 0.9rem 1rem; border-bottom: 1px solid var(--border); display: flex; gap: 0.5rem; flex-wrap: wrap; }
.nodes-tree { flex: 1; overflow-y: auto; padding: 1rem; }
.loading { color: var(--text-muted); display: flex; align-items: center; gap: 0.5rem; }

/* Node item */
.node-item { margin-bottom: 0.5rem; }
.node-header {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.65rem 0.8rem; background: #1e1e1e; border: 1px solid var(--border);
    border-radius: var(--radius-sm); cursor: pointer;
    transition: border-color var(--transition);
}
.node-header:hover { border-color: var(--accent); }
.node-header.default-node { border-color: var(--warning); }
.node-toggle { background: none; border: none; color: var(--text-muted); cursor: pointer; width: 18px; text-align: center; font-size: 0.75rem; }
.node-trigger {
    background: var(--accent); color: #000; font-weight: 700; font-size: 0.78rem;
    padding: 0.15rem 0.5rem; border-radius: 4px; white-space: nowrap;
}
.node-trigger.default { background: var(--warning); }
.node-msg { flex: 1; font-size: 0.85rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-actions { display: flex; gap: 0.3rem; }
.node-actions button {
    background: none; border: none; color: var(--text-dim);
    cursor: pointer; font-size: 0.8rem; padding: 0.2rem 0.35rem;
    border-radius: 4px; transition: color var(--transition), background var(--transition);
}
.node-actions button:hover { background: #333; }
.node-actions .btn-add:hover { color: var(--accent); }
.node-actions .btn-edit:hover { color: #3498db; }
.node-actions .btn-del:hover { color: var(--danger); }
.node-actions .btn-preview:hover { color: var(--warning); }

.node-children { margin-left: 1.5rem; margin-top: 0.4rem; border-left: 2px solid var(--border); padding-left: 0.8rem; }

/* ── Preview phone ── */
.preview-panel {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    display: flex; align-items: flex-start; justify-content: center; padding: 1rem; overflow-y: auto;
}
.preview-phone {
    width: 100%; max-width: 300px;
    background: #111b21; border-radius: 16px; overflow: hidden;
    border: 1px solid #2a3942; box-shadow: var(--shadow);
}
.phone-header {
    background: #1f2c34; padding: 0.8rem 1rem;
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.88rem; font-weight: 600;
}
.phone-header .fab { color: var(--accent); font-size: 1.2rem; }
.phone-status { margin-left: auto; font-size: 0.72rem; color: var(--accent); font-weight: 400; }
.phone-chat { padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; min-height: 200px; }
.chat-bubble {
    padding: 0.55rem 0.9rem; border-radius: 10px; max-width: 90%;
    font-size: 0.83rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word;
}
.chat-bubble.bot { background: #1f2c34; color: #e9edef; align-self: flex-start; border-bottom-left-radius: 2px; }
.chat-bubble.user { background: #005c4b; color: #e9edef; align-self: flex-end; border-bottom-right-radius: 2px; }

/* Interactive buttons preview */
.chat-btn-preview {
    background: #1f2c34; color: #00a884;
    padding: 0.6rem 0.9rem; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600; text-align: center;
    border-top: 1px solid #2a3942;
    cursor: default; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.chat-list-preview {
    background: #1f2c34; color: #00a884;
    padding: 0.6rem 0.9rem; border-radius: 8px;
    font-size: 0.85rem; font-weight: 600; text-align: center;
    border-top: 1px solid #2a3942;
    cursor: default; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.7);
    z-index: 200; display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease;
}
.modal-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    width: 100%; max-width: 480px; box-shadow: var(--shadow);
    animation: scaleIn 0.2s ease;
}
.modal-header {
    padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
}
.modal-header h3 { font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.modal-close { background: none; border: none; font-size: 1.4rem; color: var(--text-muted); cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 1.5rem; }
.modal-body .form-group { margin-bottom: 1rem; }
.modal-body .form-group label { display: block; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.6rem; }

@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes scaleIn { from { opacity:0; transform: scale(0.95); } to { opacity:1; transform: scale(1); } }

/* ============================================================
   TOAST
   ============================================================ */
#toast {
    position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
    background: var(--card); border: 1px solid var(--accent); color: var(--accent);
    padding: 0.7rem 1.2rem; border-radius: var(--radius-sm);
    font-size: 0.88rem; font-weight: 500;
    animation: slideUp 0.3s ease;
    display: none;
}
@keyframes slideUp { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: translateY(0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .nodes-layout { grid-template-columns: 1fr; }
    .preview-panel { display: none; }
    .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open { transform: translateX(0); }
    .main-wrapper { margin-left: 0; }
    .sidebar-toggle { display: block; }
    .cards-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .dashboard-header { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   LANDING PAGE – DialogiX
   ============================================================ */
.landing-body {
    background: #080a0d;
    color: var(--text);
}
.landing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Navbar ── */
.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 1rem 0;
    transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
.landing-nav.scrolled {
    background: rgba(8,10,13,0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0,0,0,0.5);
    padding: 0.6rem 0;
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 1.25rem; font-weight: 800; color: #fff; text-decoration: none;
}
.brand-icon, .brand-icon-sm {
    font-size: 1.6rem; color: #2dd4a8; font-weight: 900;
}
.brand-icon-sm { font-size: 1.2rem; }
.brand-text { letter-spacing: 0.04em; }
.nav-links {
    display: flex; align-items: center; gap: 2rem;
}
.nav-links a {
    color: #999; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; text-decoration: none;
}
.nav-links a:hover { color: #fff; }
.btn-nav-login {
    background: #2dd4a8; color: #000 !important; padding: 0.5rem 1.2rem;
    border-radius: 8px; font-weight: 600; font-size: 0.88rem;
}
.btn-nav-login:hover { background: #25b890; }
.nav-mobile-toggle {
    display: none; background: none; border: none; color: #fff; font-size: 1.3rem; cursor: pointer;
}

/* ── Hero ── */
.hero {
    padding: 8rem 0 4rem;
    position: relative; overflow: hidden;
    min-height: 100vh; display: flex; align-items: center;
}
.hero-bg-glow {
    position: absolute; top: -200px; right: -200px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(45,212,168,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
    position: relative; z-index: 1;
}
.hero-badge {
    display: inline-block; padding: 0.35rem 1rem;
    background: rgba(45,212,168,0.1); border: 1px solid rgba(45,212,168,0.25);
    border-radius: 20px; font-size: 0.78rem; font-weight: 600;
    color: #2dd4a8; margin-bottom: 1.2rem; letter-spacing: 0.04em;
}
.hero-title {
    font-size: 3rem; font-weight: 800; line-height: 1.15;
    margin-bottom: 1.2rem; color: #fff;
}
.text-accent { color: #2dd4a8; }
.hero-subtitle {
    font-size: 1.1rem; color: #888; line-height: 1.7;
    margin-bottom: 2rem; max-width: 500px;
}
.hero-actions { display: flex; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.btn-hero-primary {
    background: #2dd4a8; color: #000; padding: 0.8rem 1.8rem;
    border-radius: 10px; font-size: 1rem; font-weight: 700;
    display: inline-flex; align-items: center; gap: 0.5rem;
    transition: background 0.2s, transform 0.2s; text-decoration: none;
}
.btn-hero-primary:hover { background: #25b890; transform: translateY(-2px); color: #000; }
.btn-hero-secondary {
    background: rgba(255,255,255,0.06); color: #ccc; padding: 0.8rem 1.8rem;
    border-radius: 10px; font-size: 1rem; font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
    display: inline-flex; align-items: center; gap: 0.5rem;
    transition: all 0.2s; text-decoration: none;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; }
.hero-stats {
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
}
.hero-stat-num { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: 0.78rem; color: #666; }
.hero-stat-divider { width: 1px; height: 35px; background: #333; }

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone-mockup {
    width: 280px; background: #111b21; border-radius: 28px;
    border: 2px solid #2a3942; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(45,212,168,0.1);
}
.phone-notch {
    width: 120px; height: 22px; background: #111b21; margin: 0 auto;
    border-radius: 0 0 14px 14px; position: relative; z-index: 2;
    border: 2px solid #2a3942; border-top: none;
}
.phone-screen { padding: 0 0 1rem; }
.phone-chat-header {
    background: #1f2c34; padding: 0.6rem 0.8rem;
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.8rem; font-weight: 600;
}
.phone-chat-header .fab { color: #25d366; }
.online-dot { width: 7px; height: 7px; background: #25d366; border-radius: 50%; margin-left: auto; }
.phone-messages { padding: 0.6rem; display: flex; flex-direction: column; gap: 0.4rem; }
.msg {
    padding: 0.45rem 0.7rem; border-radius: 8px; font-size: 0.75rem;
    max-width: 85%; line-height: 1.4; white-space: pre-wrap;
}
.msg-user { background: #005c4b; color: #e9edef; align-self: flex-end; border-bottom-right-radius: 2px; }
.msg-bot { background: #1f2c34; color: #e9edef; align-self: flex-start; border-bottom-left-radius: 2px; }
.msg-options { display: flex; flex-direction: column; gap: 0.3rem; align-self: flex-start; width: 100%; }
.msg-btn {
    background: #1f2c34; color: #00a884; padding: 0.4rem 0.6rem;
    border-radius: 6px; font-size: 0.72rem; font-weight: 600;
    text-align: center; border-top: 1px solid #2a3942;
}

/* ── Features ── */
.features { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 0.6rem; }
.section-header p { color: #888; font-size: 1.05rem; }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.feature-card {
    background: rgba(255,255,255,0.03); border: 1px solid #1e2a32;
    border-radius: 14px; padding: 1.8rem; transition: all 0.3s;
}
.feature-card:hover {
    border-color: rgba(45,212,168,0.3);
    background: rgba(45,212,168,0.04);
    transform: translateY(-3px);
}
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: rgba(45,212,168,0.1); color: #2dd4a8;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.feature-card p { color: #888; font-size: 0.9rem; line-height: 1.6; }

/* ── How it works ── */
.how-section { padding: 5rem 0; background: rgba(255,255,255,0.015); }
.steps-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
}
.step-card { text-align: center; padding: 1.5rem 1rem; }
.step-num {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #2dd4a8, #1a9a7a);
    color: #000; font-size: 1.4rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
}
.step-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.4rem; }
.step-card p { color: #888; font-size: 0.88rem; line-height: 1.5; }

/* ── Pricing ── */
.pricing-section { padding: 5rem 0; }
.pricing-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
    align-items: start;
}
.pricing-card {
    background: rgba(255,255,255,0.03); border: 1px solid #1e2a32;
    border-radius: 16px; padding: 2rem; text-align: center; position: relative;
    transition: all 0.3s;
}
.pricing-card:hover { border-color: rgba(45,212,168,0.3); }
.pricing-featured {
    border-color: #2dd4a8;
    background: rgba(45,212,168,0.05);
    transform: scale(1.03);
}
.pricing-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: #2dd4a8; color: #000; padding: 0.2rem 1rem;
    border-radius: 12px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
}
.pricing-name { font-size: 0.85rem; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.pricing-price { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 1.5rem; }
.pricing-price span { font-size: 0.9rem; font-weight: 400; color: #666; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 1.5rem; }
.pricing-features li {
    padding: 0.45rem 0; font-size: 0.88rem; color: #aaa;
    display: flex; align-items: center; gap: 0.6rem;
}
.pricing-features li i { color: #2dd4a8; font-size: 0.8rem; }
.btn-pricing {
    display: block; width: 100%; padding: 0.7rem; border-radius: 10px;
    background: rgba(255,255,255,0.06); color: #ccc; font-weight: 600;
    border: 1px solid #333; transition: all 0.2s; text-decoration: none; text-align: center;
}
.btn-pricing:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-pricing-featured {
    display: block; width: 100%; padding: 0.7rem; border-radius: 10px;
    background: #2dd4a8; color: #000; font-weight: 700;
    transition: all 0.2s; text-decoration: none; text-align: center;
}
.btn-pricing-featured:hover { background: #25b890; color: #000; }

/* ── Footer ── */
.landing-footer {
    padding: 3rem 0 1.5rem; border-top: 1px solid #1a1a1a;
}
.footer-inner { text-align: center; }
.footer-brand { margin-bottom: 1rem; }
.footer-brand .brand-icon { font-size: 1.3rem; color: #2dd4a8; }
.footer-brand .brand-text { font-size: 1.1rem; font-weight: 800; color: #fff; }
.footer-brand p { color: #555; font-size: 0.8rem; margin-top: 0.3rem; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1.2rem; }
.footer-links a { color: #666; font-size: 0.85rem; transition: color 0.2s; text-decoration: none; }
.footer-links a:hover { color: #2dd4a8; }
.footer-copy { color: #444; font-size: 0.78rem; }

/* ── Login brand icon ── */
.login-brand-icon { font-size: 2rem; color: #2dd4a8; font-weight: 900; }

/* ── Landing responsive ── */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { margin-top: 2rem; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .pricing-featured { transform: none; }
}
@media (max-width: 600px) {
    .hero-title { font-size: 2rem; }
    .features-grid, .steps-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .nav-links.open {
        display: flex; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; background: rgba(8,10,13,0.98);
        padding: 1.5rem; gap: 1rem; border-bottom: 1px solid #1a1a1a;
    }
    .nav-mobile-toggle { display: block; }
    .phone-mockup { width: 240px; }
}
