:root {
  --bg: #f4f8fb;
  --surface: #ffffff;
  --ink: #13233a;
  --muted: #60708a;
  --primary: #007a78;
  --primary-2: #0ba89e;
  --danger: #d34d45;
  --line: #dce6ef;
  --soft: #eef4fa;
  --shadow: 0 12px 28px rgba(10, 35, 61, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Heebo", sans-serif;
  background:
    radial-gradient(circle at 85% 10%, #d8f7f1 0%, transparent 34%),
    radial-gradient(circle at 12% 85%, #d7e8ff 0%, transparent 36%),
    var(--bg);
  color: var(--ink);
}

.app-shell { max-width: 1280px; margin: 0 auto; padding: 20px; min-height: 100vh; }
main { min-height: calc(100vh - 110px); }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
}
.brand-zone { position: relative; display: flex; align-items: center; gap: 14px; }
.logo-btn {
  border: 0; background: linear-gradient(130deg, var(--primary), var(--primary-2)); color: white;
  padding: 10px 16px; border-radius: 10px; display: flex; gap: 10px; align-items: center; cursor: pointer;
  font-weight: 700; font-size: 18px;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.2); font-weight: 800;
}
.brand-title { color: var(--muted); font-weight: 500; }
.chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 12px; font-size: 14px; color: var(--muted);
}

.dropdown {
  position: absolute; top: 52px; left: 0; width: 210px; z-index: 20;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  overflow: hidden;
}
.dropdown button {
  width: 100%; text-align: right; border: 0; background: transparent; padding: 11px 14px; cursor: pointer; font-size: 15px; color: var(--ink);
}
.dropdown button:hover { background: var(--soft); }
.hidden { display: none !important; }

.hero { margin-bottom: 14px; }
.hero h1 { margin: 0; font-size: 34px; }
.hero p { margin: 8px 0 0; color: var(--muted); }

.grid { display: grid; gap: 14px; margin-bottom: 14px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.card h3, .card h4 { margin-top: 0; margin-bottom: 12px; }
.card p { margin: 0 0 10px; color: var(--muted); }

.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kv div { background: var(--soft); border-radius: 8px; padding: 10px; }
.kv span { color: var(--muted); display: block; }

.actions { display: flex; gap: 10px; flex-wrap: wrap; }
button {
  font-family: inherit;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 13px;
  cursor: pointer;
  background: var(--primary);
  color: white;
  font-weight: 600;
}
button:hover { filter: brightness(0.97); }

.package-card .card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.month-rail {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.month-choice {
  background: #eaf2fb;
  color: #38516f;
  border-color: #d2dfec;
  padding: 6px 10px;
}
.month-choice.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.usage-text { margin: 14px 0 9px; }
.progress-wrap { background: #ebf2f8; height: 16px; border-radius: 999px; overflow: hidden; }
.progress { background: linear-gradient(90deg, #0ba89e, #00c08b); height: 100%; width: 0%; transition: width .3s ease; }
.service-ring {
  height: 138px;
  border-radius: 999px;
  margin-bottom: 10px;
  background:
    radial-gradient(circle at center, #fff 47%, transparent 49%),
    conic-gradient(#13b4a9 0 355deg, #dfe9f3 355deg 360deg);
  display: grid;
  place-items: center;
  border: 1px solid #d6e5ef;
}
.ring-value { font-size: 28px; font-weight: 800; color: var(--ink); line-height: 1; }
.ring-label { color: var(--muted); font-size: 13px; }
.channel-list { display: grid; gap: 8px; }
.channel-list div {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f4f8fd;
  border: 1px solid #deebf6;
  border-radius: 8px;
}
.activity-timeline { display: grid; gap: 8px; }
.activity-item {
  border-right: 3px solid #c9dbea;
  background: #fbfdff;
  border-radius: 8px;
  padding: 10px 12px;
}
.activity-item span { color: var(--muted); font-size: 13px; display: block; margin-bottom: 4px; }
.activity-item p { margin: 0; }

.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.tab { background: white; color: var(--muted); border: 0; border-left: 1px solid var(--line); }
.tab.active { background: var(--ink); color: white; }

.stat strong { font-size: 34px; display: block; margin-top: 4px; }
canvas { width: 100%; max-width: 100%; background: #fbfdff; border: 1px solid #edf2f7; border-radius: 8px; }

.card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: inherit;
}
label { display: block; color: var(--muted); margin-bottom: 10px; }

.task-toolbar {
  display: grid;
  grid-template-columns: 1.4fr 1fr .9fr .8fr auto;
  gap: 8px;
  margin-bottom: 10px;
}
.jira-list-head {
  display: grid;
  grid-template-columns: 1.7fr .8fr .7fr .9fr 1fr .6fr;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  padding: 4px 4px 8px;
}
.jira-list { display: grid; gap: 8px; }
.jira-item {
  display: grid;
  grid-template-columns: 1.7fr .8fr .7fr .9fr 1fr .6fr;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fcfeff;
  border-radius: 8px;
  padding: 8px;
}
.jira-title { font-weight: 600; }
.jira-meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.inline-select {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 8px;
  padding: 6px 8px;
}
.badge { border-radius: 999px; padding: 4px 8px; font-size: 12px; display: inline-block; }
.priority-high { background: #ffe5e3; color: #9d2f28; }
.priority-mid { background: #fff2df; color: #9f6a14; }
.priority-low { background: #e1f7ea; color: #1f7a49; }

.guide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 10px; }
.chat-workspace {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 12px;
  min-height: calc(100vh - 280px);
}
.chat-sidebar { display: flex; flex-direction: column; gap: 8px; }
.chat-thread {
  background: #f3f8fe;
  color: var(--ink);
  border-color: #d9e5f1;
  text-align: right;
}
.chat-thread.active {
  background: #13233a;
  color: #fff;
  border-color: #13233a;
}
.chat-main { display: flex; flex-direction: column; min-height: 100%; }
.chat-topline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--muted); }
.chat-messages { flex: 1; min-height: 360px; max-height: 62vh; overflow-y: auto; padding-left: 4px; }
.msg { max-width: 76%; margin: 8px 0; padding: 10px 12px; border-radius: 10px; }
.from-agent { background: #ebf4ff; }
.from-user { background: #e7f9f6; margin-right: auto; }
.chat-input { margin-top: 14px; display: flex; gap: 8px; }

.settings-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.setting-tab { background: white; color: var(--ink); border-color: var(--line); }
.setting-tab.active { background: var(--primary); color: white; border-color: var(--primary); }
.setting-panel { display: none; }
.setting-panel.active { display: block; }
.mini { background: var(--soft); border: 1px solid #d7e4f1; border-radius: 8px; padding: 10px; font-weight: 600; }
.payment-list, .simple-list { list-style: none; padding: 0; margin: 0 0 12px; }
.payment-list li, .simple-list li {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line);
}
.task-history-box {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.task-history-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.notif-fab {
  position: fixed; left: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 999px;
  font-size: 24px; box-shadow: var(--shadow); z-index: 50;
}
.notif-panel {
  position: fixed; left: 18px; bottom: 86px; width: min(340px, calc(100vw - 36px));
  background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 14px; z-index: 50;
}
.notif-panel h4 { margin: 0 0 10px; }
.notif-panel ul { margin: 0; padding-right: 18px; color: var(--muted); }
.notif-panel li { margin-bottom: 8px; }

.view { display: none; animation: fade-in .24s ease; }
.view.active { display: block; min-height: calc(100vh - 170px); padding-bottom: 34px; }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #11243d;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 80;
  opacity: 0;
  transform: translateY(12px);
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

.academy-article p { line-height: 1.65; }
.academy-article ol { margin: 8px 0 0; padding-right: 18px; color: var(--muted); }

.pricing-header { margin-bottom: 16px; }
.pricing-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}
.plan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfdff;
}
.plan-card.featured {
  border: 2px solid #0aa39a;
  background: linear-gradient(180deg, #f4fffe, #f8fcff);
}
.plan-name { font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.plan-price { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.plan-price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.plan-list { margin: 0; padding-right: 18px; color: var(--muted); min-height: 115px; }
.plan-action { width: 100%; margin-top: 12px; }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 8px;
}
.compare-table th, .compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: right;
}
.compare-table th { color: var(--muted); font-weight: 600; }

@media (max-width: 980px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .task-toolbar { grid-template-columns: 1fr; }
  .jira-list-head { display: none; }
  .jira-item { grid-template-columns: 1fr; }
  .chat-workspace { grid-template-columns: 1fr; min-height: auto; }
  .chat-messages { max-height: 50vh; }
  .pricing-cards { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  .topbar { align-items: flex-start; }
  .card-head { flex-direction: column; align-items: stretch; }
}
