:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --border: #e5e7eb;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 14px rgba(0,0,0,.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

.container { max-width: 1120px; margin: 0 auto; padding: 24px 20px 60px; }

/* Navbar */
.navbar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-size: 1.2rem; font-weight: 700; color: var(--text); text-decoration: none; }
.brand span { color: var(--primary); }
.nav-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--text); text-decoration: none; font-size: .95rem; }
.nav-links a:hover { color: var(--primary); }

/* Trial banner */
.trial-banner { background: linear-gradient(90deg, var(--primary), #7c3aed); color: #fff; padding: 10px 20px; text-align: center; font-size: .95rem; }
.trial-banner a { color: #fff; font-weight: 700; margin-left: 12px; text-decoration: underline; }

/* Buttons */
.btn { display: inline-block; background: var(--primary); color: #fff; border: none; padding: 12px 22px; border-radius: 10px; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn:hover { background: var(--primary-dark); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-green { background: var(--green); }
.btn-green:hover { background: #0ea371; }
.btn-ghost { background: #eef0f6; color: var(--text); }
.btn-ghost:hover { background: #e2e5ef; }
.btn-danger { background: var(--red); }
.btn-block { width: 100%; text-align: center; }

/* Cards */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* Hero */
.hero { text-align: center; padding: 60px 20px 40px; }
.hero h1 { font-size: 2.6rem; line-height: 1.15; margin-bottom: 16px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--primary), #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Stats */
.stat { text-align: center; }
.stat .num { font-size: 1.7rem; font-weight: 800; color: var(--primary); }
.stat .lbl { color: var(--muted); font-size: .85rem; }

/* Section titles */
.section-title { font-size: 1.7rem; margin: 40px 0 18px; text-align: center; }
.muted { color: var(--muted); }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; font-size: 1rem; font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--primary); }
.form-card { max-width: 460px; margin: 40px auto; }
.error { background: #fee2e2; color: #b91c1c; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; }

/* Tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: .92rem; }
th { color: var(--muted); font-weight: 600; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-gray { background: #e5e7eb; color: #374151; }
.badge-blue { background: #dbeafe; color: #1e40af; }

/* Employee card */
.emp-card { display: flex; flex-direction: column; gap: 10px; }
.emp-card .head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; }
.emp-card .role { color: var(--muted); font-size: .85rem; }

/* Activity feed */
.feed { list-style: none; }
.feed li { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; font-size: .9rem; }
.feed .time { color: var(--muted); white-space: nowrap; font-size: .8rem; }
.feed .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 6px; flex-shrink: 0; }

/* Tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.tab { padding: 8px 16px; border-radius: 8px; background: #eef0f6; cursor: pointer; font-size: .9rem; border: none; }
.tab.active { background: var(--primary); color: #fff; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Chat */
.chat-box { border: 1px solid var(--border); border-radius: 12px; background: #fff; height: 360px; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 78%; padding: 9px 13px; border-radius: 12px; font-size: .92rem; }
.msg.contact { align-self: flex-start; background: #eef0f6; }
.msg.employee { align-self: flex-end; background: var(--primary); color: #fff; }
.chat-input { display: flex; gap: 10px; margin-top: 12px; }
.chat-input input { flex: 1; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; }

/* Pricing */
.plan-card { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.plan-card .price { font-size: 2rem; font-weight: 800; }
.plan-card .per { color: var(--muted); }
.plan-card.featured { border: 2px solid var(--primary); }
.plan-card ul { list-style: none; text-align: left; font-size: .9rem; margin: 8px 0; }
.plan-card ul li { padding: 3px 0; }

.footer { text-align: center; color: var(--muted); padding: 30px 20px; font-size: .85rem; }
.mt { margin-top: 18px; }
.mb { margin-bottom: 18px; }
.flex { display: flex; gap: 12px; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.text-center { text-align: center; }
