:root{
  --brand:#E14632;
  --brand-dark:#c23824;
  --teal:#2AB8B0;
  --ink:#3B3746;
  --muted:#6b6776;
  --bg:#f5f6f4;
  --white:#fff;
  --line:#e7e8e6;
  --green:#1f9d57;
  --green-bg:#e6f6ec;
  --amber:#b5780b;
  --amber-bg:#fdf2dc;
  --red:#c23824;
  --red-bg:#fbe7e3;
  --radius:14px;
  --radius-sm:10px;
  --shadow:0 10px 30px rgba(59,55,70,.08);
  --shadow-sm:0 4px 14px rgba(59,55,70,.06);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*,
*::before,
*::after{
  box-sizing:border-box;
}

html{
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:'Inter',-apple-system,'Segoe UI',Roboto,sans-serif;
  background:var(--bg);
  color:var(--ink);
  font-size:15px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ---------- Layout ---------- */
.wm-container{
  max-width:1140px;
  margin:0 auto;
  padding:0 24px;
}

/* ---------- Typography ---------- */
h1,h2,h3,h4,h5,h6{
  color:var(--ink);
  font-weight:700;
  letter-spacing:-.02em;
  line-height:1.2;
  margin:0 0 .5em;
}

h1{ font-size:2rem; font-weight:800; }
h2{ font-size:1.5rem; }
h3{ font-size:1.2rem; }
h4{ font-size:1.05rem; }

p{ margin:0 0 1em; }

a{
  color:var(--brand);
  text-decoration:none;
}
a:hover{ color:var(--brand-dark); text-decoration:underline; }

.wm-eyebrow{
  display:inline-block;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--brand);
  margin-bottom:.6em;
}

.wm-muted{ color:var(--muted); }

.wm-lead{
  font-size:1.1rem;
  color:var(--muted);
  line-height:1.6;
}

/* ---------- Cards ---------- */
.wm-card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:28px;
}

.wm-card-sm{
  padding:20px;
  border-radius:var(--radius-sm);
  box-shadow:var(--shadow-sm);
}

.wm-card-title{
  font-size:1.15rem;
  font-weight:700;
  margin:0 0 .4em;
}

/* ---------- Buttons ---------- */
.wm-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:inherit;
  font-size:.95rem;
  font-weight:600;
  line-height:1;
  border:none;
  border-radius:var(--radius-sm);
  padding:13px 24px;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease;
  text-decoration:none;
  white-space:nowrap;
}
.wm-btn:hover{ text-decoration:none; }
.wm-btn:focus-visible{
  outline:2px solid var(--brand);
  outline-offset:2px;
}
.wm-btn:disabled,
.wm-btn[disabled]{
  opacity:.55;
  cursor:not-allowed;
}

.wm-btn-primary{
  background:var(--brand);
  color:#fff;
}
.wm-btn-primary:hover{
  background:var(--brand-dark);
  color:#fff;
}

.wm-btn-ghost{
  background:#fff;
  color:var(--ink);
  border:2px solid var(--line);
  padding:11px 22px;
}
.wm-btn-ghost:hover{
  border-color:var(--muted);
  color:var(--ink);
}

.wm-btn-danger{
  background:var(--red);
  color:#fff;
}
.wm-btn-danger:hover{
  background:#a82f1d;
  color:#fff;
}

.wm-btn-sm{
  font-size:.85rem;
  padding:8px 14px;
  border-radius:8px;
}
.wm-btn-ghost.wm-btn-sm{
  padding:6px 12px;
}

.wm-btn-block{
  display:flex;
  width:100%;
}

/* ---------- Forms ---------- */
.wm-field{
  margin-bottom:18px;
}

.wm-label{
  display:block;
  font-size:.88rem;
  font-weight:600;
  color:var(--ink);
  margin-bottom:6px;
}

.wm-input,
.wm-select,
.wm-textarea{
  display:block;
  width:100%;
  font-family:inherit;
  font-size:.95rem;
  color:var(--ink);
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  padding:12px 14px;
  transition:border-color .15s ease,box-shadow .15s ease;
}
.wm-input::placeholder,
.wm-textarea::placeholder{ color:#a8a5b0; }

.wm-input:focus,
.wm-select:focus,
.wm-textarea:focus{
  outline:none;
  border-color:var(--brand);
  box-shadow:0 0 0 3px rgba(225,70,50,.12);
}

.wm-textarea{
  min-height:120px;
  resize:vertical;
}

.wm-select{
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b6776' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:18px;
  padding-right:40px;
}

.wm-hint{
  font-size:.82rem;
  color:var(--muted);
  margin-top:6px;
}

.wm-error-text{
  font-size:.82rem;
  color:var(--red);
  margin-top:6px;
}

.wm-input-error{
  border-color:var(--red);
}
.wm-input-error:focus{
  box-shadow:0 0 0 3px rgba(194,56,36,.12);
}

/* ---------- Tables ---------- */
.wm-table-wrap{
  width:100%;
  overflow-x:auto;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:var(--white);
  box-shadow:var(--shadow-sm);
}

.wm-table{
  width:100%;
  border-collapse:collapse;
  font-size:.92rem;
}

.wm-table thead th{
  text-align:left;
  font-weight:600;
  font-size:.78rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted);
  background:#fafbfa;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  white-space:nowrap;
}

.wm-table tbody td{
  padding:14px 18px;
  border-bottom:1px solid var(--line);
  vertical-align:middle;
}

.wm-table tbody tr:last-child td{
  border-bottom:none;
}

.wm-table tbody tr{
  transition:background .12s ease;
}
.wm-table tbody tr:hover{
  background:#fafbfa;
}

.wm-table .wm-table-num{
  text-align:right;
  font-variant-numeric:tabular-nums;
}

/* ---------- Badges ---------- */
.wm-badge{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:.76rem;
  font-weight:600;
  line-height:1;
  padding:5px 10px;
  border-radius:999px;
  white-space:nowrap;
}
.wm-badge::before{
  content:"";
  width:6px;
  height:6px;
  border-radius:50%;
  background:currentColor;
  opacity:.8;
}

.wm-badge-active,
.wm-badge-paid{
  color:var(--green);
  background:var(--green-bg);
}

.wm-badge-trial{
  color:var(--amber);
  background:var(--amber-bg);
}

.wm-badge-suspended,
.wm-badge-cancelled{
  color:var(--red);
  background:var(--red-bg);
}

.wm-badge-neutral{
  color:var(--muted);
  background:#eef0ee;
}

/* ---------- Empty state ---------- */
.wm-empty{
  text-align:center;
  padding:56px 24px;
  color:var(--muted);
  background:var(--white);
  border:1px dashed var(--line);
  border-radius:var(--radius);
}
.wm-empty svg{
  width:48px;
  height:48px;
  color:var(--line);
  margin-bottom:16px;
}
.wm-empty-title{
  font-size:1.05rem;
  font-weight:700;
  color:var(--ink);
  margin-bottom:6px;
}
.wm-empty-text{
  font-size:.92rem;
  margin:0 auto;
  max-width:380px;
}

/* ---------- Helpers ---------- */
.wm-mark{
  color:var(--brand);
}
.wm-stack{ display:flex; flex-direction:column; gap:16px; }
.wm-row{ display:flex; align-items:center; gap:12px; }
.wm-row-between{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.wm-grid{ display:grid; gap:24px; }
.wm-grid-2{ grid-template-columns:repeat(2,1fr); }
.wm-grid-3{ grid-template-columns:repeat(3,1fr); }
.wm-flex-wrap{ flex-wrap:wrap; }
.wm-gap-sm{ gap:8px; }
.wm-mt-0{ margin-top:0; }
.wm-mb-0{ margin-bottom:0; }
.wm-text-center{ text-align:center; }

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .wm-grid-3{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:680px){
  body{ font-size:14px; }
  .wm-container{ padding:0 18px; }
  h1{ font-size:1.6rem; }
  h2{ font-size:1.3rem; }
  .wm-card{ padding:20px; }
  .wm-grid-2,
  .wm-grid-3{ grid-template-columns:1fr; }
  .wm-btn{ padding:12px 20px; }
  .wm-table thead th,
  .wm-table tbody td{ padding:12px 14px; }
  .wm-row-between{ flex-direction:column; align-items:stretch; }
}