/* =========================================================
 * My Account — top tabs + Plan & Billing pane
 * ========================================================= */

.one230-profile--top-tabs {
  width: 100% !important;
  max-width: none !important;
  padding-top: 0 !important;
}

.one230-profile--top-tabs .one230-profile-shell {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: none;
}

.one230-profile--top-tabs .one230-profile-nav {
  position: static;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  padding: 0 0 10px;
  margin-top: 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--p-border, #e5e5e5);
  border-radius: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.one230-profile--top-tabs .one230-profile-nav::-webkit-scrollbar {
  display: none;
}

.one230-profile--top-tabs .one230-profile-nav-icon {
  display: none;
}

/* Pill tabs — same language as #website-tabs / edit-website */
.one230-profile--top-tabs .one230-profile-nav .one230-profile-nav-item {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  min-width: 0;
  padding: 8px 14px !important;
  border: none !important;
  border-radius: 999px !important;
  background: #f1f0ed !important;
  background-image: none !important;
  color: #161513 !important;
  font-weight: 600 !important;
  text-align: center !important;
  box-shadow: none !important;
  outline: none !important;
  transition: none !important;
}

.one230-profile--top-tabs .one230-profile-nav .one230-profile-nav-item:hover,
.one230-profile--top-tabs .one230-profile-nav .one230-profile-nav-item:focus,
.one230-profile--top-tabs .one230-profile-nav .one230-profile-nav-item:focus-visible {
  background: #161513 !important;
  background-image: none !important;
  color: #ffffff !important;
  outline: none !important;
}

.one230-profile--top-tabs .one230-profile-nav .one230-profile-nav-item[aria-selected="true"],
.one230-profile--top-tabs .one230-profile-nav .one230-profile-nav-item[aria-selected="true"]:hover,
.one230-profile--top-tabs .one230-profile-nav .one230-profile-nav-item[aria-selected="true"]:focus,
.one230-profile--top-tabs .one230-profile-nav .one230-profile-nav-item[aria-selected="true"]:active {
  background: #161513 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}

.one230-profile--top-tabs .one230-profile-content,
.one230-profile--top-tabs .one230-profile-pane {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.one230-profile--top-tabs [data-one230-pane="plan-billing"] .one230-profile-pane-head {
  display: none; /* Plan & Billing has its own section heads */
}

/* =========================================================
 * Plan & Billing pane
 * ========================================================= */

.one230-pb {
  --pb-ink: #171717;
  --pb-muted: #6b7280;
  --pb-border: #e7e5e4;
  --pb-surface: #ffffff;
  --pb-fill: #f5f5f4;
  --pb-fill-deep: #e7e5e4;
  --pb-teal: #0f766e;
  --pb-teal-bg: #ccfbf1;
  --pb-amber: #92400e;
  --pb-amber-bg: #fef3c7;
  --pb-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: none;
  color: var(--pb-ink);
}

.one230-pb__card {
  background: var(--pb-surface);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius);
  padding: 20px 22px;
}

.one230-pb__section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.one230-pb__subline {
  margin: 6px 0 0;
  color: var(--pb-muted);
  font-size: 14px;
  min-height: 1.3em;
}

.one230-pb__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 9px 14px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.one230-pb__btn--primary {
  background: var(--pb-ink);
  color: #fff;
  border-color: var(--pb-ink);
}

.one230-pb__btn--primary:hover {
  background: #000;
}

.one230-pb__btn--ghost {
  background: #fff;
  color: var(--pb-ink);
  border-color: var(--pb-border);
}

.one230-pb__btn--ghost:hover {
  background: var(--pb-fill);
}

.one230-pb__btn--sm {
  padding: 7px 11px;
  font-size: 12.5px;
}

.one230-pb__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.one230-pb__chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.one230-pb__chip--teal {
  color: var(--pb-teal);
  background: var(--pb-teal-bg);
}

.one230-pb__chip--amber {
  color: var(--pb-amber);
  background: var(--pb-amber-bg);
}

.one230-pb__chip--muted {
  color: var(--pb-muted);
  background: var(--pb-fill);
}

/* Skeletons */
@keyframes one230-pb-skel {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.one230-pb__skel {
  display: inline-block;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--pb-fill) 25%, var(--pb-fill-deep) 50%, var(--pb-fill) 75%);
  background-size: 200% 100%;
  animation: one230-pb-skel 1.4s ease-in-out infinite;
  vertical-align: middle;
}

.one230-pb__skel--lg { width: 280px; height: 18px; }
.one230-pb__skel--md { width: 160px; height: 14px; }
.one230-pb__skel--sm { width: 120px; height: 12px; }
.one230-pb__skel--btn { width: 110px; height: 36px; border-radius: 10px; }

.one230-pb:not(.is-loading) .one230-pb__skel {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .one230-pb__skel { animation: none; }
}

/* Overview */
.one230-pb__overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.one230-pb__overview-line {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.one230-pb__overview-line strong {
  font-weight: 800;
}

.one230-pb__overview-sub {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--pb-muted);
  min-height: 1.2em;
}

/* Creatives */
.one230-pb__creatives-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.one230-pb__creatives-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.one230-pb__creatives-price {
  font-size: 18px;
  font-weight: 400;
  white-space: nowrap;
}

.one230-pb__creatives-price strong {
  font-weight: 800;
}

.one230-pb__creatives-price span {
  color: var(--pb-muted);
  font-size: 14px;
}

.one230-pb__usage {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.one230-pb__bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--pb-fill);
  overflow: hidden;
  min-width: 80px;
}

.one230-pb__bar-fill {
  display: block;
  height: 100%;
  background: #3f3f46;
  border-radius: inherit;
  transition: width 0.25s ease;
}

.one230-pb__usage-label {
  font-size: 13px;
  color: var(--pb-ink);
  white-space: nowrap;
}

.one230-pb__creatives-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.one230-pb__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.one230-pb__hint {
  margin: 0;
  font-size: 12.5px;
  color: var(--pb-muted);
  text-align: right;
}

.one230-pb__suggest {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: var(--pb-muted);
  width: 100%;
}

.one230-pb__plan-picker {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--pb-border);
}

.one230-pb__plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.one230-pb__plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px;
  margin: 0;
  text-align: left;
  background: #fff;
  border: 1px solid var(--pb-border);
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.one230-pb__plan-card:hover:not(:disabled) {
  border-color: #a8a29e;
  background: #fafaf9;
}

.one230-pb__plan-card.is-current,
.one230-pb__plan-card:disabled {
  cursor: default;
  background: var(--pb-fill);
  opacity: 0.9;
}

.one230-pb__plan-card-name {
  font-weight: 800;
  font-size: 14px;
}

.one230-pb__plan-card-name em {
  font-style: normal;
  font-weight: 700;
  color: var(--pb-teal);
  font-size: 12px;
  margin-left: 4px;
}

.one230-pb__plan-card-price {
  font-size: 15px;
}

.one230-pb__plan-card-meta {
  font-size: 12.5px;
  color: var(--pb-muted);
}

/* Care */
.one230-pb__care-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.one230-pb__care-count {
  color: var(--pb-muted);
  font-size: 14px;
  font-weight: 600;
}

.one230-pb__care-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.one230-pb__care-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--pb-border);
}

.one230-pb__care-row:first-child {
  border-top: none;
  padding-top: 8px;
}

.one230-pb__care-main {
  min-width: 0;
  flex: 1;
}

.one230-pb__care-domain {
  font-weight: 800;
  font-size: 15px;
}

.one230-pb__care-status {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--pb-muted);
}

.one230-pb__care-status.is-amber {
  color: var(--pb-amber);
  font-weight: 600;
}

.one230-pb__usage--care {
  margin-top: 10px;
  max-width: none;
  width: 100%;
}

.one230-pb__care-aside {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.one230-pb__care-price {
  font-size: 16px;
  white-space: nowrap;
  min-width: 64px;
  text-align: right;
}

.one230-pb__care-price strong {
  font-weight: 800;
}

.one230-pb__care-price span {
  color: var(--pb-muted);
  font-size: 13px;
}

.one230-pb__menu {
  position: relative;
}

.one230-pb__menu-trigger {
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--pb-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  color: var(--pb-muted);
}

.one230-pb__menu-trigger:hover {
  background: var(--pb-fill);
  color: var(--pb-ink);
}

.one230-pb__menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  min-width: 180px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--pb-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.one230-pb__menu-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pb-ink);
  text-decoration: none;
  cursor: pointer;
}

.one230-pb__menu-item:hover {
  background: var(--pb-fill);
}

/* Footer */
.one230-pb__footer {
  padding: 4px 4px 8px;
  font-size: 12.5px;
  color: var(--pb-muted);
  line-height: 1.5;
}

.one230-pb__footer p {
  margin: 0 0 2px;
}

/* Error */
.one230-pb__error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  border-radius: var(--pb-radius);
  color: #991b1b;
}

.one230-pb__error p {
  margin: 0;
  font-weight: 700;
}

.one230-pb__login {
  padding: 24px;
  background: var(--pb-surface);
  border: 1px solid var(--pb-border);
  border-radius: var(--pb-radius);
}

/* Mobile */
@media (max-width: 720px) {
  .one230-pb__overview {
    flex-direction: column;
    align-items: stretch;
  }

  .one230-pb__overview .one230-pb__btn {
    width: 100%;
  }

  .one230-pb__plan-grid {
    grid-template-columns: 1fr;
  }

  .one230-pb__care-row {
    flex-direction: column;
    gap: 12px;
  }

  .one230-pb__care-aside {
    width: 100%;
    justify-content: space-between;
  }

  .one230-pb__creatives-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .one230-pb__hint {
    text-align: left;
  }
}
