/* CM Account Layout & Sidebar (scoped, additive — does not break existing CSS) */

/* Layout grid */
.account-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
}
@media (max-width: 1024px) {
  .account-shell {
    grid-template-columns: 1fr;
  }
}

/* Sidebar */
.account-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  background: #0b1220;
  border: 1px solid #0f1b2e;
  border-radius: 14px;
  padding: 16px;
  color: #e2e8f0;
}
.account-sidebar__head {
  padding: 6px 8px 10px 8px;
  border-bottom: 1px solid #0f1b2e;
  margin-bottom: 10px;
}
.account-sidebar__title {
  font-weight: 800;
  font-size: 18px;
  color: #a7f3d0; /* emerald-ish tint */
}

/* Nav lists */
.account-nav__list {
  list-style: none;
  margin: 0;
  padding: 10px 0 0 0; /* reset bullets/indent */
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.account-nav__list--secondary {
  border-top: 1px dashed #17304f;
  margin-top: 12px;
  padding-top: 12px;
}

/* Nav items/links */
.account-nav__item {
  margin: 0;
  padding: 0;
}
.account-nav__link,
.account-nav__link:link,
.account-nav__link:visited {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #cbd5e1;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .1s ease;
}
.account-nav__link:hover {
  background: #0f1b2e;
  color: #e2e8f0;
  border-color: #10223d;
}
.account-nav__link.is-active {
  background: #062b27; /* deep emerald tint */
  color: #a7f3d0;
  border-color: #115e59;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.25) inset;
}
.account-nav__icon {
  width: 16px;
  height: 16px;
  color: #a7f3d0;
}

/* Main content wrapper */
.account-main {
  background: #0b1220;
  border: 1px solid #0f1b2e;
  border-radius: 14px;
  padding: 18px;
  color: #e2e8f0;
}
.account-section-title {
  font-size: 26px;
  font-weight: 800;
  color: #a7f3d0;
  letter-spacing: .2px;
  margin: 0 0 8px 0;
}

/* Reusable cards and grid */
.account-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 768px) {
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.account-card {
  background: #0e1628;
  border: 1px solid #13223b;
  border-radius: 12px;
  padding: 14px;
}
.account-label {
  font-size: 12px;
  color: #93b0d0;
}
.account-value {
  font-size: 16px;
  font-weight: 700;
  color: #e2e8f0;
}

/* Form controls */
.cm-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 768px) {
  .cm-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.cm-label {
  display: block;
  font-size: 12px;
  color: #93b0d0;
  margin-bottom: 6px;
}
.cm-input {
  width: 100%;
  background: #0b1220;
  color: #e2e8f0;
  border: 1px solid #0f1b2e;
  padding: 10px 12px;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cm-input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

/* Buttons */
.cm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #1f2937;
  color: #e2e8f0;
  cursor: pointer;
  transition: transform .05s ease, background-color .2s ease, border-color .2s ease;
  text-decoration: none;
}
.cm-btn:hover {
  background: #243145;
}
.cm-btn:active {
  transform: translateY(1px);
}
.cm-btn--primary {
  background: #10b981;
  color: #051b19;
}
.cm-btn--primary:hover {
  background: #0ea472;
}
.cm-btn--ghost {
  background: transparent;
  border-color: #13324f;
  color: #a7f3d0;
}

/* Utility text colors (non-Tailwind contexts) */
.text-gray-300 {
  color: #cbd5e1;
}
.text-gray-400 {
  color: #94a3b8;
}

/* Small icon helper */
.icon-16 {
  width: 16px;
  height: 16px;
}

/* Table compatibility within account-main */
.account-main .min-w-full {
  width: 100%;
}
