/* ═══════════════════════════════════════════════════════
   PERSONAL CABINET — Clean Design System
   Single-layer CSS, no conflicts, no legacy hacks
   ═══════════════════════════════════════════════════════ */

/* ── VARIABLES ───────────────────────────────────────── */
:root {
  --c-bg:        #0b0f19;
  --c-surface:   rgba(17,24,39,.75);
  --c-surface-2: rgba(17,24,39,.9);
  --c-border:    rgba(148,163,184,.1);
  --c-border-h:  rgba(148,163,184,.22);
  --c-accent:    #3b82f6;
  --c-accent-2:  #60a5fa;
  --c-purple:    #8b5cf6;
  --c-cyan:      #22d3ee;
  --c-green:     #10b981;
  --c-red:       #ef4444;
  --c-text:      #f1f5f9;
  --c-text-2:    #94a3b8;
  --c-text-3:    #64748b;
  --c-radius:    14px;
  --c-radius-sm: 10px;
  --c-shadow:    0 16px 40px rgba(0,0,0,.4);
  --c-shadow-sm: 0 6px 20px rgba(0,0,0,.3);
  --c-font:      'Inter', system-ui, -apple-system, sans-serif;
  --c-mono:      'JetBrains Mono', ui-monospace, monospace;
  color-scheme: dark;
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body, .m2-body {
  margin: 0;
  font-family: var(--c-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

body * { min-width: 0; }

button, input, select, textarea, a { font: inherit; }

h1, h2, h3, h4 { color: #fff; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; }
h2 { font-size: clamp(17px, 2vw, 22px); font-weight: 700; }
h3 { font-size: clamp(15px, 1.6vw, 18px); font-weight: 700; }
p { line-height: 1.6; margin: 0 0 10px; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-accent-2); text-decoration: none; transition: color .15s; }
a:hover { color: var(--c-cyan); }

::selection { background: rgba(59,130,246,.3); color: #fff; }

/* ── BACKGROUND ──────────────────────────────────────── */
.m2-bg {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}

.m2-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .35;
  will-change: transform;
}
.m2-glow-1 {
  width: 550px; height: 550px; top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(59,130,246,.4), transparent 70%);
  animation: glow-float 20s ease-in-out infinite;
}
.m2-glow-2 {
  width: 450px; height: 450px; bottom: -100px; right: -80px;
  background: radial-gradient(circle, rgba(139,92,246,.3), transparent 70%);
  animation: glow-float 24s ease-in-out infinite reverse;
}
@keyframes glow-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(25px, -30px) scale(1.04); }
}

.m2-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black, transparent);
}

/* ── APP LAYOUT ──────────────────────────────────────── */
.m2-app {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

/* ── SIDEBAR ─────────────────────────────────────────── */
.m2-sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 14px;
  border-right: 1px solid var(--c-border);
  background: linear-gradient(180deg, rgba(11,15,25,.9), rgba(8,12,20,.95));
  backdrop-filter: blur(16px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(59,130,246,.15) transparent;
}

.m2-sidebar-top { flex: 1; display: flex; flex-direction: column; gap: 4px; }

.m2-sidebar-head {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 8px;
}

.m2-sidebar-close {
  display: none;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--c-border-h);
  background: var(--c-surface);
  color: var(--c-text-2);
  cursor: pointer;
  align-items: center; justify-content: center;
  transition: .15s;
}
.m2-sidebar-close:hover { color: #fff; border-color: var(--c-accent); }
.m2-sidebar-close svg { width: 16px; height: 16px; }

.m2-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--c-radius);
  border: 1px solid var(--c-border);
  background: rgba(59,130,246,.06);
  transition: .2s;
}
.m2-brand:hover { border-color: var(--c-border-h); background: rgba(59,130,246,.1); }

.m2-brand-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--c-accent), var(--c-purple));
  box-shadow: 0 6px 18px rgba(59,130,246,.3);
  color: #fff; flex-shrink: 0;
}
.m2-brand-logo svg { width: 18px; height: 18px; }

.m2-brand-title {
  display: block; font-size: 14px; font-weight: 700;
  color: #fff; line-height: 1.15;
}
.m2-brand-sub {
  display: block; font-size: 11px;
  color: var(--c-text-3); margin-top: 2px;
}

/* Navigation */
.m2-nav { display: flex; flex-direction: column; gap: 2px; }
.m2-nav-group { margin-top: 12px; }
.m2-nav-group:first-child { margin-top: 0; }

.m2-nav-label {
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--c-text-3); padding: 8px 12px 4px;
}

.m2-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: var(--c-radius-sm);
  font-size: 13.5px; font-weight: 600;
  color: var(--c-text-2);
  text-decoration: none;
  transition: all .18s;
  border: 1px solid transparent;
}
.m2-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .65; transition: opacity .18s; }
.m2-nav-link:hover { color: #fff; background: rgba(59,130,246,.07); border-color: var(--c-border); }
.m2-nav-link:hover svg { opacity: 1; }
.m2-nav-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, rgba(59,130,246,.18), rgba(139,92,246,.12));
  border-color: rgba(59,130,246,.25);
  box-shadow: 0 4px 14px rgba(59,130,246,.12);
}
.m2-nav-link.is-active svg { opacity: 1; color: var(--c-accent-2); }

/* Sidebar footer */
.m2-sidebar-foot {
  padding-top: 12px;
  border-top: 1px solid var(--c-border);
  margin-top: auto;
}
.m2-sidebar-foot form { margin: 0; }

.m2-logout-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 8px 12px;
  border-radius: var(--c-radius-sm);
  border: 1px solid rgba(239,68,68,.18);
  background: rgba(239,68,68,.05);
  color: #fca5a5; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: .18s;
}
.m2-logout-btn:hover { background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); }
.m2-logout-btn svg { width: 16px; height: 16px; }

/* Overlay */
.m2-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
}
.m2-overlay[hidden] { display: none; }

/* ── MAIN CONTENT ────────────────────────────────────── */
.m2-main { min-width: 0; display: flex; flex-direction: column; }

.m2-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 8px 20px;
  border-bottom: 1px solid var(--c-border);
  background: rgba(11,15,25,.75);
  backdrop-filter: blur(12px);
}
.m2-header-spacer { flex: 1; }

.m2-user-badge {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--c-border-h);
  background: var(--c-surface);
  font-size: 12px; font-weight: 600; color: var(--c-text-2);
}
.m2-user-badge svg { width: 14px; height: 14px; }

.m2-burger {
  display: none;
  width: 38px; height: 38px;
  border-radius: var(--c-radius-sm);
  border: 1px solid var(--c-border-h);
  background: var(--c-surface);
  color: var(--c-text); cursor: pointer;
  align-items: center; justify-content: center;
  transition: .15s;
}
.m2-burger:hover { border-color: var(--c-accent); }
.m2-burger svg { width: 18px; height: 18px; }

.m2-content-wrap {
  flex: 1; max-width: 1200px; width: 100%;
  margin: 0 auto; padding: 20px;
}

/* ── TOPBAR ──────────────────────────────────────────── */
.m2-topbar {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  padding: 16px 20px;
  box-shadow: var(--c-shadow-sm);
  margin-bottom: 16px;
}

.m2-topbar-main {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}

.m2-topbar-title { font-size: 20px; font-weight: 800; color: #fff; }
.m2-topbar-sub { font-size: 13px; color: var(--c-text-2); margin-top: 3px; }

.m2-topbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── CARDS ───────────────────────────────────────────── */
.m2-card, .card {
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--c-shadow-sm);
  transition: border-color .2s;
}
.m2-card:hover, .card:hover { border-color: var(--c-border-h); }

.m2-card h1, .m2-card h2, .m2-card h3,
.card h1, .card h2, .card h3 { color: #fff; margin: 0; }

.m2-card p, .card p { margin: 0 0 10px; }
.m2-card p:last-child, .card p:last-child { margin-bottom: 0; }

.inner, .m2-tariff-item, .m2-app-card,
.m2-install-sidebar, .m2-install-main,
.m2-auth-side, .m2-auth-main {
  background: rgba(17,24,39,.45);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
}

/* Hero card */
.m2-hero-card {
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 300px at -5% 0%, rgba(59,130,246,.15), transparent 60%),
    var(--c-surface-2);
  border-color: rgba(59,130,246,.2);
}
.m2-hero-card::after {
  content: ""; position: absolute;
  right: -50px; top: -50px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.2), transparent 65%);
  pointer-events: none;
}

/* Metric cards */
.m2-metric-card { min-height: 110px; position: relative; overflow: hidden; }
.m2-metric-card::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-purple));
  opacity: .45; border-radius: var(--c-radius) var(--c-radius) 0 0;
}

.m2-kicker {
  color: var(--c-text-2); font-size: 11px;
  text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}

.m2-metric { margin-top: 8px; font-size: 26px; font-weight: 800; color: #fff; }

.m2-quick-panel { display: flex; flex-direction: column; }
.m2-dashboard-hero-grid { align-items: stretch; }

/* ── BUTTONS ─────────────────────────────────────────── */
.m2-btn, .btn {
  border: 0; border-radius: var(--c-radius-sm);
  min-height: 42px; padding: 10px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  line-height: 1.2; text-align: center;
  white-space: normal; word-break: break-word; max-width: 100%;
  text-decoration: none; cursor: pointer;
  font-weight: 700; font-size: 13.5px;
  background: linear-gradient(135deg, var(--c-accent), var(--c-purple));
  color: #fff;
  box-shadow: 0 6px 20px rgba(59,130,246,.25);
  transition: transform .15s, box-shadow .15s, opacity .15s;
}
.m2-btn:hover, .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(59,130,246,.35);
}

.m2-btn-ghost {
  background: var(--c-surface);
  border: 1px solid var(--c-border-h);
  color: var(--c-text); box-shadow: none;
}
.m2-btn-ghost:hover {
  background: rgba(59,130,246,.08);
  border-color: var(--c-accent);
  transform: translateY(-1px);
}

.m2-btn-danger {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #fca5a5; box-shadow: none;
}
.m2-btn-danger:hover { background: rgba(239,68,68,.18); border-color: rgba(239,68,68,.45); }

.m2-actions-wrap .m2-btn, .m2-inline-form .m2-btn {
  min-height: 34px; padding: 6px 12px; font-size: 12px; border-radius: 8px;
}
.m2-actions-wrap .m2-input, .m2-inline-form .m2-input {
  min-height: 34px; padding: 5px 8px; font-size: 12px;
}

/* ── FORMS ───────────────────────────────────────────── */
.m2-form-grid { display: grid; gap: 14px; }

.m2-field { display: grid; gap: 6px; font-size: 13px; color: var(--c-text-2); min-width: 0; }
.m2-field > span { font-weight: 600; color: var(--c-text); line-height: 1.35; margin-bottom: 2px; }

.m2-input,
.m2-body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.m2-body select, select,
.m2-body textarea, textarea,
.admin-input {
  width: 100%; box-sizing: border-box;
  min-height: 44px; padding: 10px 14px;
  border-radius: var(--c-radius-sm);
  border: 1px solid var(--c-border);
  background: rgba(17,24,39,.5);
  color: var(--c-text);
  font-family: var(--c-font); font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.m2-input:focus, input:focus, select:focus, textarea:focus, .admin-input:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,.18);
  outline: none;
}
.m2-input::placeholder, input::placeholder, textarea::placeholder {
  color: var(--c-text-3);
}

input[type="checkbox"], input[type="radio"] {
  width: auto; min-height: 0; height: auto;
  padding: 0; border: 0; background: transparent;
  box-shadow: none; accent-color: var(--c-accent);
}

textarea { min-height: 96px; resize: vertical; }

.m2-form-grid input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.m2-form-grid select, .m2-form-grid textarea {
  min-width: 0; max-width: 100%;
}

/* ── NOTICES ─────────────────────────────────────────── */
.m2-notice, .notice {
  margin-bottom: 12px; padding: 12px 14px;
  border-radius: var(--c-radius-sm);
  border: 1px solid var(--c-border-h);
  background: rgba(59,130,246,.05);
}

.m2-success, .notice.success {
  border-color: rgba(16,185,129,.35);
  background: rgba(16,185,129,.07);
}

.m2-error, .notice.error {
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.07);
}

/* ── PILLS & CHIPS ───────────────────────────────────── */
.m2-kpi-pill {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 28px; border-radius: 999px; padding: 0 12px;
  background: rgba(59,130,246,.1);
  border: 1px solid rgba(59,130,246,.25);
  font-size: 12px; font-weight: 600; color: var(--c-accent-2);
}

.m2-chip {
  display: inline-flex; min-height: 24px; padding: 0 10px;
  border-radius: 999px; align-items: center;
  background: rgba(59,130,246,.08);
  border: 1px solid rgba(59,130,246,.2);
  color: var(--c-accent-2); font-size: 12px; font-weight: 600;
}

/* ── CHIP ROW & NAV ──────────────────────────────────── */
.m2-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.m2-chip-link, .top-link {
  border: 1px solid var(--c-border); border-radius: var(--c-radius-sm);
  min-height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px;
  color: var(--c-text-2); text-decoration: none;
  background: var(--c-surface);
  transition: .18s; font-weight: 600; font-size: 13px;
  line-height: 1.2; text-align: center; white-space: normal; word-break: break-word;
}
.m2-chip-link:hover, .top-link:hover {
  border-color: var(--c-border-h); color: #fff;
  background: rgba(59,130,246,.06);
}
.m2-chip-link.is-active, .top-link.is-active {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--c-accent), var(--c-purple));
  box-shadow: 0 5px 16px rgba(59,130,246,.2);
}

.m2-sidebar-logout {
  margin-top: 12px;
  border-color: rgba(239,68,68,.2);
  color: #fca5a5;
  background: rgba(239,68,68,.05);
}

/* ── TABLES ──────────────────────────────────────────── */
.m2-table-wrap { overflow: auto; border-radius: var(--c-radius); }

.m2-table, table { width: 100%; border-collapse: collapse; min-width: 680px; }

.m2-table th, th {
  padding: 10px; border-bottom: 1px solid var(--c-border-h);
  text-align: left; vertical-align: top;
  color: var(--c-text-2); font-size: 11px;
  letter-spacing: .04em; text-transform: uppercase; font-weight: 700;
}

.m2-table td, td {
  padding: 10px; border-bottom: 1px solid var(--c-border);
  text-align: left; vertical-align: top; color: var(--c-text);
}

.m2-table tbody tr:hover td, tbody tr:hover td {
  background: rgba(59,130,246,.03);
}

/* ── PROPERTIES LIST ─────────────────────────────────── */
.m2-props p {
  margin: 0; display: flex; align-items: center;
  justify-content: space-between; gap: 10px;
  border-bottom: 1px solid var(--c-border); padding: 9px 0;
}
.m2-props span { color: var(--c-text-2); }
.m2-props b { color: #fff; font-family: var(--c-mono); font-size: 13px; }

/* ── UTILITY ─────────────────────────────────────────── */
.m2-muted, .muted { color: var(--c-text-2); }
.m2-stack-16 { margin-top: 16px; }
.m2-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.m2-break-all, .break-all { word-break: break-all; }

.m2-break-all, .break-all, .m2-table td, .m2-table th,
td, th, .m2-props p, .m2-kpi-pill, .m2-chip,
.m2-notice, .notice { overflow-wrap: anywhere; }

/* ── GRID ────────────────────────────────────────────── */
.m2-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.m2-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m2-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ── AUTH LAYOUT ─────────────────────────────────────── */
.m2-auth-layout {
  display: grid;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  gap: 14px; align-items: start;
}
.m2-auth-side-lg, .m2-auth-main-lg { align-self: start; }
.m2-auth-main { overflow: hidden; }
.m2-auth-main, .m2-auth-side, .m2-form-grid, .m2-field { min-width: 0; }

.m2-feature-list {
  margin: 0; padding-left: 18px;
  display: grid; gap: 8px; color: var(--c-text);
}

/* ── KEYS / INSTALL ──────────────────────────────────── */
.m2-keys-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: 12px;
}

.m2-install-top-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.m2-install-grid {
  margin-top: 14px; display: grid;
  grid-template-columns: 300px minmax(0, 1fr); gap: 14px;
}

.m2-platform-tabs { display: flex; flex-wrap: wrap; gap: 6px; }

.m2-platform-tab, .m2-app-btn {
  border: 1px solid var(--c-border); border-radius: var(--c-radius-sm);
  background: var(--c-surface); color: var(--c-text-2);
  min-height: 38px; padding: 8px 12px;
  cursor: pointer; transition: .18s; font-weight: 600; font-size: 13px;
  line-height: 1.2; text-align: center; white-space: normal; word-break: break-word;
}
.m2-platform-tab:hover, .m2-app-btn:hover { border-color: var(--c-border-h); color: #fff; }
.m2-platform-tab.is-active, .m2-app-btn.is-active {
  color: #fff; border-color: transparent;
  background: linear-gradient(135deg, var(--c-accent), var(--c-purple));
  box-shadow: 0 5px 14px rgba(59,130,246,.2);
}

.m2-apps-grid { display: grid; grid-template-columns: 1fr; gap: 6px; }

/* ── STEPS ───────────────────────────────────────────── */
.m2-list-steps {
  margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--c-text);
}
.m2-list-steps li::marker { color: var(--c-accent-2); font-weight: 700; }

/* ── ACTIONS & SPACING ───────────────────────────────── */
.m2-actions, .m2-actions-wrap, .m2-inline-form,
.admin-actions, .profile-menu, .m2-chip-row {
  display: flex; flex-wrap: wrap; gap: 10px;
}

.m2-actions > *, .m2-actions-wrap > *, .m2-chip-row > *,
.m2-inline-form > *, .admin-actions > *, .profile-menu > * {
  flex: 0 1 auto;
}

.m2-payments-top-grid { align-items: stretch; }
.m2-payment-info-card { display: flex; flex-direction: column; }

.m2-card .m2-actions, .m2-card .m2-actions-wrap, .m2-card .m2-chip-row,
.card .profile-menu { margin-top: 10px; }

.m2-card .m2-btn, .card .m2-btn, .m2-card .btn, .card .btn { margin-top: 8px; }

.m2-chip-row + .m2-form-grid { margin-top: 14px; }
.m2-row-between + .m2-install-top-actions,
.m2-card h2 + .m2-install-top-actions { margin-top: 14px; }

.m2-form-grid > .m2-btn, .m2-form-grid > .btn,
.m2-form-grid > button, .m2-form-grid > .m2-actions,
.m2-form-grid > .m2-actions-wrap { margin-top: 6px; }

/* ── CHART ───────────────────────────────────────────── */
.m2-chart-wrap { position: relative; width: 100%; min-height: 220px; height: 260px; max-height: 260px; }
.m2-chart-wrap canvas { width: 100% !important; height: 100% !important; display: block; }

/* ── LUCIDE ICONS ────────────────────────────────────── */
[data-lucide] { width: 18px; height: 18px; stroke-width: 2; }

/* ── TOAST NOTIFICATIONS ─────────────────────────────── */
.wc-toast-container {
  position: fixed; top: 14px; right: 14px;
  width: min(92vw, 380px); display: grid; gap: 10px;
  z-index: 9999; pointer-events: none;
}

.wc-toast {
  pointer-events: auto;
  display: grid; grid-template-columns: 1fr auto;
  align-items: start; gap: 10px;
  padding: 12px 14px; border-radius: var(--c-radius);
  border: 1px solid var(--c-border-h);
  background: rgba(17,24,39,.96);
  color: var(--c-text); backdrop-filter: blur(10px);
  box-shadow: var(--c-shadow);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .2s, transform .2s;
}
.wc-toast.is-visible { opacity: 1; transform: translateY(0); }
.wc-toast.is-hiding { opacity: 0; transform: translateY(-10px); }
.wc-toast-success { border-color: rgba(16,185,129,.4); background: rgba(6,78,59,.92); }
.wc-toast-error { border-color: rgba(239,68,68,.4); background: rgba(127,29,29,.92); }
.wc-toast-close {
  border: 0; background: transparent; color: var(--c-text-2);
  cursor: pointer; padding: 0; font-size: 18px; line-height: 1;
  min-height: auto; box-shadow: none;
}
.wc-toast-close:hover { color: #fff; transform: none; box-shadow: none; }

/* ── SCROLLBAR ───────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(59,130,246,.15); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(59,130,246,.28); }

/* ── KEYS TABLE MOBILE ───────────────────────────────── */
@media (max-width: 760px) {
  .m2-table.keys-table, .m2-table.keys-table thead,
  .m2-table.keys-table tbody, .m2-table.keys-table tr,
  .m2-table.keys-table td { display: block; width: 100%; }
  .m2-table.keys-table { min-width: 0 !important; border: 0; }
  .m2-table.keys-table thead { display: none; }
  .m2-table.keys-table tr {
    margin-bottom: 10px; padding: 10px 12px;
    border-radius: var(--c-radius);
    border: 1px solid var(--c-border);
    background: var(--c-surface);
  }
  .m2-table.keys-table td { border: 0; padding: 5px 0; }
  .m2-table.keys-table td::before {
    content: attr(data-label); display: block;
    font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
    color: var(--c-text-3); margin-bottom: 2px; font-weight: 700;
  }
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 960px) {
  .m2-app { display: block; }

  .m2-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: min(280px, 85vw); z-index: 90;
    transform: translateX(-105%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
  }
  .m2-sidebar.is-open { transform: translateX(0); }

  .m2-sidebar-close, .m2-burger { display: inline-flex !important; align-items: center; justify-content: center; }

  .m2-content-wrap { padding: 14px; }
}

@media (max-width: 900px) {
  .m2-grid-3, .m2-grid-2, .m2-auth-layout,
  .m2-dashboard-hero-grid, .m2-payments-top-grid,
  .grid.two { grid-template-columns: 1fr; }

  .m2-install-grid { grid-template-columns: 1fr; }

  .m2-hero-card, .m2-keys-header, .m2-topbar-main {
    flex-direction: column; align-items: flex-start;
  }

  .m2-btn, .btn, .m2-chip-link, .m2-platform-tab,
  .m2-app-btn, .top-link { width: 100%; }

  .m2-inline-form, .m2-actions-wrap, .admin-actions { width: 100%; }
  .m2-inline-form > *, .m2-actions-wrap > *, .admin-actions > * { width: 100%; }
}

@media (max-width: 640px) {
  .m2-content-wrap { padding: 10px; }

  .m2-topbar, .m2-card, .card { padding: 12px; border-radius: 12px; }
  .m2-topbar-title { font-size: 17px; }
  .m2-metric { font-size: 22px; }
  .m2-btn, .btn { min-height: 40px; padding: 8px 14px; font-size: 13px; }

  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select, textarea { font-size: 16px; line-height: 1.3; }

  .m2-table { min-width: 560px; }

  .m2-header { padding: 6px 12px; min-height: 48px; }
}
