/* FLAITOPS — Account Settings 3.0 */

.account-view.account-settings-v2 {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  background: rgba(2, 9, 15, 0.70);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #F5F7FA;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.account-view.account-settings-v2.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.account-view.account-settings-v2[hidden] {
  display: none !important;
}

body.account-open .account-view.account-settings-v2 {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: auto;
}

body.account-open .account-view.account-settings-v2 .account-glass-close,
body.account-open .account-view.account-settings-v2 .account-topbar,
body.account-open .account-view.account-settings-v2 .account-rail--legacy {
  display: none !important;
}

.account-settings-modal {
  width: 1335px;
  max-width: calc(100vw - 40px);
  height: 832px;
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  background: #081722;
  border: 1px solid #36505D;
  border-radius: 23px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  color: #F5F7FA;
}

/* —— Header with aviation photo —— */
.account-settings-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 140px;
  min-height: 140px;
  padding: 0 54px;
  border-bottom: 1px solid #304753;
  flex-shrink: 0;
  overflow: hidden;
  background: #081722;
  z-index: 1;
}

.account-settings-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      #081722 0%,
      rgba(8, 23, 34, 0.96) 34%,
      rgba(8, 23, 34, 0.62) 62%,
      rgba(8, 23, 34, 0.18) 100%
    ),
    linear-gradient(
      0deg,
      #081722 0%,
      transparent 58%
    ),
    url("../assets/account-header-aviation.jpg?v=2");
  background-size: cover;
  background-position: center 55%;
  pointer-events: none;
}

.account-settings-header-user,
.account-settings-close {
  position: relative;
  z-index: 1;
}

.account-settings-header-user {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.account-settings-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.account-settings-avatar-wrap .account-hero-avatar,
.account-settings-avatar-wrap .account-hero-initials {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(58, 86, 99, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.account-settings-avatar-wrap .account-hero-initials {
  display: grid;
  place-items: center;
  background: #15352A;
  color: #39E600;
  font-weight: 700;
  font-size: 24px;
}

.account-settings-avatar-wrap .account-avatar-upload-btn {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #3A5663;
  background: #102631;
  color: #F5F7FA;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.account-settings-avatar-wrap .account-avatar-upload-btn:hover {
  background: #15352A;
  border-color: #4a6a78;
}

.account-settings-avatar-wrap .account-avatar-upload-btn .material-symbols-rounded {
  font-size: 15px;
}

.account-settings-header-copy {
  min-width: 0;
}

.account-settings-header-copy h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #F5F7FA;
}

.account-settings-subtitle {
  margin: 6px 0 0;
  font-size: 15px;
  color: #ABBCC7;
}

/* Admin badges stay out of the main header (permissions live in Security / Profile). */
.account-settings-badges {
  display: none !important;
}

.account-settings-close {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #3A5663;
  background: transparent;
  color: #F5F7FA;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 18px;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.account-settings-close:hover {
  color: #F5F7FA;
  border-color: #5a7382;
  background: rgba(255, 255, 255, 0.04);
}

.account-settings-close .material-symbols-rounded {
  font-size: 22px;
}

/* —— Body: nav + content —— */
.account-settings-body {
  display: grid;
  grid-template-columns: 255px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
}

.account-settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 38px 16px 24px;
  background: #091925;
  border-right: 1px solid #2C4652;
  overflow: auto;
}

.account-settings-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #ABBCC7;
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.account-settings-nav-item .material-symbols-rounded {
  font-size: 22px;
  color: #8196A4;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  transition: color 160ms ease;
}

.account-settings-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #F5F7FA;
}

.account-settings-nav-item:hover .material-symbols-rounded {
  color: #C9D6DE;
}

.account-settings-nav-item.is-active {
  background: rgba(57, 230, 0, 0.15);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(57, 230, 0, 0.35);
}

.account-settings-nav-item.is-active .material-symbols-rounded {
  color: #39E600;
}

.account-settings-content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 28px 36px 32px;
  background: #081A25;
  scrollbar-width: thin;
  scrollbar-color: #4a6573 transparent;
}

.account-settings-content::-webkit-scrollbar {
  width: 5px;
}

.account-settings-content::-webkit-scrollbar-track {
  background: transparent;
}

.account-settings-content::-webkit-scrollbar-thumb {
  background: #4a6573;
  border-radius: 999px;
}

.account-settings-pane[hidden] {
  display: none !important;
}

.account-settings-pane-head {
  margin-bottom: 24px;
}

.account-settings-pane-head h2 {
  margin: 0;
  font-size: 33px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #F5F7FA;
}

.account-settings-pane-head p {
  margin: 8px 0 0;
  font-size: 15px;
  color: #ABBCC7;
}

/* —— Overview grid —— */
.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.account-ov-card {
  background: #102631;
  border: 1px solid #3A5663;
  border-radius: 17px;
  padding: 22px 24px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  transition: background 160ms ease, border-color 160ms ease;
}

.account-ov-card:hover {
  background: #12303c;
  border-color: #4a6a78;
}

.account-ov-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.account-ov-card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  color: #F5F7FA;
}

.account-ov-card-title .material-symbols-rounded {
  font-size: 21px;
  color: #C9D6DE;
}

.account-ov-chevron {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #39E600;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 160ms ease;
}

.account-ov-chevron:hover {
  background: rgba(57, 230, 0, 0.1);
}

.account-ov-chevron .material-symbols-rounded {
  font-size: 22px;
  font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.account-ov-link {
  border: 0;
  background: transparent;
  color: #39E600;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  padding: 0;
  white-space: nowrap;
}

.account-ov-link:hover {
  text-decoration: underline;
}

.account-ov-btn {
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(57, 230, 0, 0.55);
  background: transparent;
  color: #39E600;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.account-ov-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.account-ov-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 38px;
  border-top: 1px solid #2C4652;
  font-size: 13.5px;
}

.account-ov-row:first-child {
  border-top: 0;
}

.account-ov-row > span:first-child {
  color: #8196A4;
}

.account-ov-row strong {
  color: #F5F7FA;
  font-weight: 600;
  text-align: right;
}

.account-ov-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.account-ov-status .material-symbols-rounded {
  font-size: 17px;
  color: #8196A4;
}

.account-ov-status .material-symbols-rounded.is-ok {
  color: #39E600;
}

.account-ov-plan-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}

.account-ov-plan-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #F5F7FA;
  min-width: 0;
}

.account-ov-plan-badge {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(57, 230, 0, 0.55);
  background: transparent;
  color: #39E600;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.account-ov-course {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 650;
  color: #F5F7FA;
}

.account-ov-progress {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-ov-progress-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.account-ov-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  color: #ABBCC7;
}

.account-ov-progress-head span:last-child {
  color: #F5F7FA;
  font-weight: 600;
}

.account-ov-bar {
  height: 8px;
  border-radius: 999px;
  background: #344854;
  overflow: hidden;
}

.account-ov-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #39E600;
  width: 0;
}

.account-ov-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  text-align: center;
  color: #8196A4;
  font-size: 13.5px;
  padding: 10px 0 4px;
}

.account-ov-empty .material-symbols-rounded {
  font-size: 32px;
  opacity: 0.65;
  color: #8196A4;
}

.account-ov-prefs .account-select {
  min-width: 120px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid #3A5663;
  background: #102631;
  color: #F5F7FA;
  font-size: 12.5px;
  padding: 0 8px;
}

/* —— Detail panes —— */
.account-settings-detail .account-card {
  background: #102631;
  border: 1px solid #3A5663;
  border-radius: 17px;
  padding: 22px 24px;
  margin: 0;
}

.account-settings-detail .account-card + .account-card {
  margin-top: 14px;
}

.account-settings-detail .account-card h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
}

.account-settings-detail .account-row {
  border-color: #2C4652;
  color: #ABBCC7;
}

.account-settings-detail .account-row strong {
  color: #F5F7FA;
}

.account-settings-detail .account-select {
  border-color: #3A5663;
  background: #102631;
  color: #F5F7FA;
}

.account-settings-detail .account-link-btn {
  color: #39E600;
}

#accountPrefsRailDecorChoose {
  color: #39E600;
  font-weight: 650;
  cursor: pointer;
}

#accountPrefsRailDecorChoose:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.account-settings-detail .account-btn--primary {
  background: #15352A;
  border-color: rgba(57, 230, 0, 0.45);
  color: #39E600;
}

.account-settings-detail .account-progress-bar {
  background: #344854;
  height: 8px;
  border-radius: 999px;
}

.account-settings-detail .account-progress-bar > span {
  background: #39E600;
}

.account-settings-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-settings-group-title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8196A4;
}

.account-pill--soon {
  background: rgba(126, 146, 159, 0.16);
  color: #ABBCC7;
  border: 1px solid #3A5663;
}

.account-settings-avatar-wrap .account-avatar-picker {
  z-index: 5;
}

@media (max-width: 1200px) {
  .account-settings-header {
    padding: 0 28px;
  }
  .account-settings-content {
    padding: 24px 24px 28px;
  }
}

@media (max-width: 1100px) {
  .account-settings-modal {
    width: calc(100vw - 32px);
    height: calc(100dvh - 32px);
  }
  .account-settings-body {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .account-overview-grid {
    grid-template-columns: 1fr;
  }
  .account-settings-header-copy h1 {
    font-size: 24px;
  }
}

@media (max-width: 860px) {
  .account-settings-body {
    grid-template-columns: 1fr;
  }
  .account-settings-header {
    height: auto;
    min-height: 110px;
    padding: 18px 20px;
  }
  .account-settings-avatar-wrap,
  .account-settings-avatar-wrap .account-hero-avatar,
  .account-settings-avatar-wrap .account-hero-initials {
    width: 68px;
    height: 68px;
  }
  .account-settings-close {
    margin-top: 0;
    align-self: center;
    width: 40px;
    height: 40px;
  }
  .account-settings-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid #2C4652;
    gap: 4px;
  }
  .account-settings-nav-item {
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 40px;
  }
  .account-settings-nav-item span:last-child {
    display: none;
  }
  .account-settings-nav-item.is-active span:last-child,
  .account-settings-nav-item:hover span:last-child {
    display: inline;
  }
  .account-settings-pane-head h2 {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .account-view.account-settings-v2 {
    padding: 0;
  }
  .account-settings-modal {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    border-radius: 0;
    border: 0;
  }
  .account-settings-header-copy h1 {
    font-size: 18px;
  }
  .account-settings-subtitle {
    font-size: 13px;
  }
  .account-settings-content {
    padding: 16px;
  }
}

/* —— Plan & Subscription 3.0 —— */
.account-plan-pane-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.account-plan-pane-head-icon {
  color: #39E600;
  margin-top: 2px;
  flex-shrink: 0;
}

.account-plan-pane-head-icon .material-symbols-rounded {
  font-size: 26px;
}

.account-plan-pane-head h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #F4F7F9;
}

.account-plan-pane-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #A5B5BF;
}

.account-plan-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #102631;
  border: 1px solid #304854;
  margin-bottom: 16px;
}

.account-plan-status-metrics {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
  flex: 1;
}

.account-plan-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.account-plan-metric-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #132934;
  color: #A5B5BF;
  flex-shrink: 0;
}

.account-plan-metric-icon.is-accent {
  background: #123D25;
  color: #39E600;
}

.account-plan-metric-icon .material-symbols-rounded {
  font-size: 18px;
}

.account-plan-metric-label {
  display: block;
  font-size: 11px;
  color: #A5B5BF;
  line-height: 1.2;
}

.account-plan-metric-value {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 650;
  color: #F4F7F9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-plan-status-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.account-plan-btn {
  height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid #304854;
  background: #132934;
  color: #F4F7F9;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.account-plan-btn:hover:not(:disabled) {
  border-color: #3B5663;
  background: #163040;
}

.account-plan-btn--primary,
#accountChangePlanBtn.is-selected {
  border-color: rgba(57, 230, 0, 0.55);
  background: #123D25;
  color: #F4F7F9;
}

.account-plan-btn--primary:hover:not(:disabled),
#accountChangePlanBtn.is-selected:hover {
  border-color: #39E600;
  background: #154a2c;
}

.account-plan-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.account-plan-catalog {
  margin-top: 0;
  padding: 16px 18px 18px;
  border-radius: 17px;
  background: #0D222D;
  border: 1px solid #304854;
}

.account-plan-catalog[hidden] {
  display: none !important;
}

.account-plan-catalog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.account-plan-catalog-title-wrap {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.account-plan-catalog-icon {
  color: #39E600;
  flex-shrink: 0;
  margin-top: 1px;
}

.account-plan-catalog-icon .material-symbols-rounded {
  font-size: 22px;
}

.account-plan-catalog-head h3 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  color: #F4F7F9;
  letter-spacing: -0.02em;
}

.account-plan-catalog-head p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #A5B5BF;
}

.account-plan-catalog-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #29414D;
  background: transparent;
  color: #A5B5BF;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.account-plan-catalog-close:hover {
  color: #F4F7F9;
  border-color: #3B5663;
}

.account-plan-catalog-close .material-symbols-rounded {
  font-size: 18px;
}

.account-plan-selection-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.account-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 345px;
  padding: 18px 14px 14px;
  border-radius: 14px;
  background: #102530;
  border: 1px solid #304854;
  color: #F4F7F9;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.account-plan-card.is-current {
  border: 1.5px solid rgba(57, 230, 0, .55);
  background: #102a32;
  box-shadow: 0 0 0 1px rgba(57, 230, 0, .12);
}
.account-plan-card.is-current .account-plan-card-badge.is-current {
  background: #1f3a44;
  color: #9FE87A;
  border: 1px solid rgba(57, 230, 0, .35);
}
.account-plan-card.is-featured,
.account-plan-card.is-suggested {
  border: 1.5px solid #39E600;
  background: #0f2a2a;
  box-shadow: 0 0 0 1px rgba(57, 230, 0, .18);
}
.account-plan-card.is-current.is-featured,
.account-plan-card.is-current.is-suggested {
  border: 1.5px solid rgba(57, 230, 0, .55);
  background: #102a32;
}

/* Hover dinâmico: o cartão sob o rato passa a ser o destaque */
.account-plan-selection-grid.is-hovering .account-plan-card.is-featured:not(.is-hover-focus):not(.is-current) {
  border: 1px solid #304854;
  background: #102530;
  box-shadow: none;
}
.account-plan-selection-grid.is-hovering .account-plan-card.is-featured:not(.is-hover-focus):not(.is-current) .account-plan-card-badge {
  opacity: 0;
  pointer-events: none;
}
.account-plan-selection-grid.is-hovering .account-plan-card.is-featured:not(.is-hover-focus):not(.is-current) .account-plan-card-cta:not(:disabled) {
  background: #0d2430;
  border-color: #3B5663;
  color: #F4F7F9;
}
.account-plan-card.is-hover-focus {
  border: 1.5px solid #39E600;
  background: #0f2a2a;
  box-shadow: 0 0 0 1px rgba(57, 230, 0, .22);
  transform: translateY(-2px);
  z-index: 1;
}
.account-plan-card.is-hover-focus .account-plan-card-cta:not(:disabled) {
  background: #45D52B;
  border-color: #45D52B;
  color: #081722;
  font-weight: 650;
}

/* Professional — brevemente / coming soon */
.account-plan-card.is-coming-soon {
  filter: blur(1.1px) saturate(.72);
  opacity: .62;
  pointer-events: none;
  user-select: none;
  border-color: #2a3f49;
  box-shadow: none;
  transform: none;
}
.account-plan-card.is-coming-soon .account-plan-card-badge.is-soon {
  background: #3B5663;
  color: #F4F7F9;
  opacity: 1;
}
.account-plan-card.is-coming-soon .account-plan-card-cta:disabled {
  background: #152a35;
  border-color: #304854;
  color: #8AA0AA;
  opacity: 1;
}
.account-plan-selection-grid.is-hovering .account-plan-card.is-coming-soon {
  filter: blur(1.1px) saturate(.72);
  opacity: .55;
  transform: none;
  box-shadow: none;
}

.account-plan-card-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  height: 20px;
  padding: 0 10px;
  border-radius: 999px;
  background: #39E600;
  color: #081722;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.account-plan-card-icon {
  color: #39E600;
  margin-bottom: 8px;
}

.account-plan-card-icon .material-symbols-rounded {
  font-size: 24px;
}

.account-plan-card-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.account-plan-card-price {
  margin: 6px 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.account-plan-card-price span {
  font-size: 12px;
  font-weight: 500;
  color: #A5B5BF;
}

.account-plan-card-desc {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: #A5B5BF;
  min-height: 2.7em;
}

.account-plan-card-features {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.account-plan-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #D5DEE5;
}

.account-plan-card-features .material-symbols-rounded {
  font-size: 15px;
  color: #39E600;
  flex-shrink: 0;
  margin-top: 1px;
}

.account-plan-card-cta {
  margin-top: 14px;
  width: 100%;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #3B5663;
  background: #0d2430;
  color: #F4F7F9;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.account-plan-card-cta:hover:not(:disabled) {
  border-color: #4a6a78;
  background: #12303c;
}

.account-plan-card.is-featured:not(.is-current) .account-plan-card-cta {
  background: #45D52B;
  border-color: #45D52B;
  color: #081722;
  font-weight: 650;
}

.account-plan-card.is-featured:not(.is-current) .account-plan-card-cta:hover:not(:disabled) {
  background: #4FDC30;
  border-color: #4FDC30;
}

.account-plan-card-cta:disabled,
.account-plan-card.is-current .account-plan-card-cta {
  opacity: 1;
  cursor: default;
  background: #132934;
  border-color: #263D49;
  color: #A5B5BF;
}

.account-plan-teams {
  position: relative;
  margin-top: 16px;
  min-height: 70px;
  padding: 14px 16px 14px 18px;
  border-radius: 13px;
  border: 1px solid #304854;
  background: #102631;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
}

.account-plan-teams::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #39E600;
  opacity: 0.75;
}

.account-plan-teams-copy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.account-plan-teams-copy > .material-symbols-rounded {
  color: #39E600;
  font-size: 22px;
  margin-top: 1px;
}

.account-plan-teams-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #F4F7F9;
}

.account-plan-teams-copy p {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: #A5B5BF;
}

#accountPlanTeamsBtn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

#accountPlanTeamsBtn .material-symbols-rounded {
  font-size: 16px;
}

.account-plan-confirm {
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #35505D;
  background: #102631;
}

.account-plan-confirm[hidden] {
  display: none !important;
}

.account-plan-confirm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-plan-confirm-head h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.account-plan-confirm-name {
  margin: 12px 0 0;
  font-size: 18px;
  font-weight: 700;
}

.account-plan-confirm-price {
  margin: 4px 0 0;
  font-size: 15px;
  color: #39E600;
  font-weight: 650;
}

.account-plan-confirm-features {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.account-plan-confirm-features li {
  font-size: 13px;
  color: #D5DEE5;
}

.account-plan-confirm-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: #A5B5BF;
}

@media (max-width: 1200px) {
  .account-plan-selection-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .account-plan-status-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .account-plan-status-metrics {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
  .account-plan-status-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 860px) {
  .account-plan-selection-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-plan-teams {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .account-plan-selection-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .account-view.account-settings-v2,
  .account-settings-nav-item,
  .account-ov-card,
  .account-ov-chevron,
  .account-settings-close,
  .account-settings-avatar-wrap .account-avatar-upload-btn,
  .account-plan-card-cta {
    transition: none;
  }
}
