.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  backdrop-filter: blur(14px);
  transition: transform var(--transition-medium), border-color var(--transition-fast), box-shadow var(--transition-medium);
  contain: content;
}

.card--toolkit {
  gap: var(--space-5);
  min-height: 100%;
  justify-content: flex-start;
}

.card--toolkit .hero__actions {
  justify-content: flex-start;
}

.card[data-state='active'] {
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--elevation-2);
}

.card__heading {
  display: grid;
  gap: var(--space-2);
}

.card__description {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.card__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
}

.card__amount {
  display: inline-flex;
  align-items: baseline;
}

.card__billing {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.card__highlight {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.card__features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-2);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.card--pricing {
  min-height: 100%;
}

.card--pricing:focus-within {
  border-color: var(--color-accent);
  box-shadow: var(--elevation-1);
}

.card--pricing .card__cta {
  margin-top: auto;
  align-self: flex-start;
}

.card--pricing .card__cta:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(2.75rem, 4.5vw, 3.5rem);
  height: clamp(2.75rem, 4.5vw, 3.5rem);
  border-radius: 16px;
  background: rgba(90, 125, 255, 0.16);
  color: var(--color-accent);
  max-inline-size: clamp(2.75rem, 4.5vw, 3.5rem);
  max-block-size: clamp(2.75rem, 4.5vw, 3.5rem);
  object-fit: contain;
}

.pricing-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.client-auth-pricing {
  display: grid;
  gap: var(--space-4);
  margin-block-start: var(--space-4);
}

.access-section__inner {
  display: grid;
  gap: var(--space-6);
}

.connector-card__footnote {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.quick-links {
  display: grid;
  gap: var(--space-2);
}

.quick-links__title {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.quick-links__grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.quick-links__action {
  justify-self: start;
}

.quick-links__helper {
  grid-column: 1 / -1;
  margin-block-start: calc(var(--space-3) / -2);
}

.client-auth-pricing__header {
  display: grid;
  gap: var(--space-2);
  text-align: start;
  max-inline-size: 60ch;
}

.client-auth-pricing__title {
  margin: 0;
  font-size: clamp(1.5rem, 2vw + 0.75rem, 2rem);
}

.client-auth-pricing__subtitle {
  margin: 0;
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.segmented-control {
  display: inline-flex;
  position: relative;
  background: rgba(148, 163, 184, 0.12);
  padding: var(--space-1);
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  gap: var(--space-1);
}

.segmented-control__thumb {
  position: absolute;
  top: var(--space-1);
  bottom: var(--space-1);
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.18);
  transform: translateX(0);
  transition: transform var(--transition-medium), width var(--transition-medium);
  pointer-events: none;
}

.segmented-control button {
  position: relative;
  z-index: 1;
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  font-weight: 500;
  color: var(--color-text-muted);
  background: transparent;
}

.segmented-control button[data-active='true'] {
  color: var(--color-text);
}

.menu-button {
  position: relative;
  contain: layout inline-size;
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menu-button > button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding-block: var(--space-2);
  padding-inline: var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(148, 163, 184, 0.08);
  color: var(--color-text);
}

.menu-button > button svg {
  width: 16px;
  height: 16px;
}

.menu-button[data-open='true'] > button {
  border-color: var(--color-accent);
}

.menu-button__menu {
  position: absolute;
  inset-inline-end: 0;
  margin-block-start: var(--space-2);
  min-width: 200px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  box-shadow: var(--elevation-1);
  padding: var(--space-2);
  display: grid;
  gap: var(--space-1);
  list-style: none;
  margin-inline: 0;
  z-index: 1000;
  overflow: auto;
  overscroll-behavior: contain;
  max-height: 320px;
  contain: layout paint;
  scrollbar-gutter: stable both-edges;
  transform-origin: top right;
}

.menu-button__menu[data-floating='true'] {
  position: fixed;
  inset: auto auto auto auto;
  margin-block-start: 0;
  z-index: 1200;
  pointer-events: auto;
}

.menu-button__menu[data-placement='top'] {
  transform-origin: bottom right;
}

.menu-button__menu[data-placement='bottom'] {
  transform-origin: top right;
}

.menu-button__menu[dir='rtl'] {
  text-align: right;
}

.menu-button__menu[dir='rtl'][data-placement='top'] {
  transform-origin: bottom left;
}

.menu-button__menu[dir='rtl'][data-placement='bottom'] {
  transform-origin: top left;
}

.menu-button__menu[hidden] {
  display: none;
}

.menu-button__menu button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-xs);
  text-align: left;
  gap: var(--space-2);
}

.menu-button__menu[dir='rtl'] button {
  text-align: right;
  flex-direction: row-reverse;
}

.menu-button__menu button:hover,
.menu-button__menu button:focus-visible {
  background: rgba(90, 125, 255, 0.12);
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(var(--space-3), 3vw, var(--space-5));
  padding-block: clamp(var(--space-3), 2vw, var(--space-4));
  flex-wrap: wrap;
}

.app-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex: 0 0 auto;
  min-inline-size: 0;
  text-decoration: none;
}

.app-header__brand .brand {
  display: inline-flex;
  align-items: center;
  gap: inherit;
  text-decoration: none;
  color: inherit;
}

.app-header__nav {
  display: flex;
  flex: 1 1 min(360px, 100%);
  justify-content: center;
  min-inline-size: min(280px, 100%);
}

.app-header__nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(var(--space-2), 2vw, var(--space-3));
  list-style: none;
  margin: 0;
  padding: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.app-header__nav-list::-webkit-scrollbar {
  display: none;
}

.app-header__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding-block: var(--space-2);
  padding-inline: var(--space-3);
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.app-header__link:hover,
.app-header__link:focus-visible {
  color: var(--color-text);
  background: rgba(90, 125, 255, 0.12);
  outline: none;
}

.app-header__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(var(--space-2), 2vw, var(--space-3));
  margin-inline-start: auto;
}

.app-header__actions > * {
  flex: 0 0 auto;
}

.app-header__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.app-header__cta .btn {
  min-block-size: clamp(2.25rem, 4vw, 2.75rem);
  padding-inline: clamp(var(--space-3), 2.8vw, var(--space-5));
}

.app-header__language {
  position: relative;
  display: inline-flex;
}

.app-header__language .menu-button__menu {
  min-inline-size: 10rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: clamp(2.25rem, 4vw, 2.75rem);
  block-size: clamp(2.25rem, 4vw, 2.75rem);
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(148, 163, 184, 0.12);
  color: inherit;
  cursor: pointer;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: rgba(90, 125, 255, 0.6);
  background: rgba(90, 125, 255, 0.16);
  outline: none;
}

.icon-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.icon-btn .icon {
  display: inline-flex;
}

.icon-btn .icon svg {
  inline-size: clamp(1.1rem, 2.4vw, 1.35rem);
  block-size: clamp(1.1rem, 2.4vw, 1.35rem);
}

.app-header__logout {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  white-space: nowrap;
  padding-inline: clamp(0.65rem, 1vw, 0.85rem);
}

.app-header__logout .icon {
  display: inline-flex;
}

@media (max-width: 960px) {
  .app-header {
    justify-content: center;
  }

  .app-header__brand {
    width: 100%;
    justify-content: center;
  }

  .app-header__nav {
    flex: 1 1 100%;
    order: 3;
  }

  .app-header__actions {
    width: 100%;
    justify-content: flex-end;
    margin-inline-start: 0;
  }
}

@media (max-width: 768px) {
  .app-header__nav {
    justify-content: flex-start;
  }

  .app-header__nav-list {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-block-end: 6px;
    margin-inline-end: auto;
  }

  .app-header__nav-list::after {
    content: '';
    flex: 0 0 var(--space-4);
  }
}

.workflow {
  display: grid;
  gap: var(--space-7);
}

.workflow__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
  counter-reset: workflow-step;
}

.workflow__item {
  position: relative;
  display: grid;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  backdrop-filter: blur(14px);
  transition: border-color var(--transition-fast), transform var(--transition-medium), box-shadow var(--transition-medium);
}

.workflow__item:focus-within,
.workflow__item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--elevation-1);
  transform: translateY(-2px);
}

.workflow__badge {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(90, 125, 255, 0.14);
  color: var(--color-accent);
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 1rem;
}

.workflow__title {
  margin: 0;
  font-size: 1.25rem;
}

.workflow__body {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.workflow__content {
  display: grid;
  gap: var(--space-2);
}

@media (min-width: 48rem) {
  .workflow__list {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.drawer {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr minmax(320px, min(480px, 90vw));
  background: transparent;
  z-index: 1200;
}

.drawer[hidden] {
  display: none;
}

.drawer__backdrop {
  background: var(--color-backdrop);
}

.drawer__panel {
  background: var(--color-surface-alt);
  border-left: 1px solid var(--color-border);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  box-shadow: var(--elevation-2);
}

.drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-3);
}

.drawer__title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.drawer__body {
  overflow-y: auto;
  max-height: calc(100vh - 200px);
  padding-right: var(--space-1);
  display: grid;
  gap: var(--space-3);
}

.drawer-section {
  display: grid;
  gap: var(--space-3);
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.toast-stack {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  display: grid;
  gap: var(--space-3);
  width: min(320px, 90vw);
  z-index: 2000;
}

.toast {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  box-shadow: var(--elevation-1);
  animation: toast-enter var(--transition-medium);
}

.toast__title {
  font-weight: 600;
  margin: 0;
}

.toast[data-variant='success'] {
  border-color: rgba(61, 220, 151, 0.5);
}

.toast[data-variant='error'] {
  border-color: rgba(248, 113, 113, 0.6);
}

.toast button {
  justify-self: start;
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.badges-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
}

.badge-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: var(--space-4);
  display: grid;
  gap: var(--space-3);
  background: var(--color-surface);
  transition: border-color var(--transition-fast), transform var(--transition-medium);
  contain: content;
}

.badge-card:hover,
.badge-card:focus-visible {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

.badge-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
}

.badge-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(90, 125, 255, 0.16);
  display: grid;
  place-items: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.badge-card__icon .icon {
  width: 28px;
  height: 28px;
}

.badge-card__title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.badge-card__value {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.ops-log {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-height: 480px;
}

.ops-log__controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.ops-log__viewport {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.45;
  overflow-y: auto;
  padding: var(--space-4);
  display: grid;
  gap: var(--space-1);
}

.ops-log__status {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
}

.form {
  display: grid;
  gap: var(--space-3);
}

.form__row {
  display: grid;
  gap: var(--space-3);
}

.form__row--split {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.form__field {
  display: grid;
  gap: var(--space-2);
}

.form__field > label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

body.is-rtl .form__field > label {
  text-align: start;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.input {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(15, 23, 42, 0.6);
  padding: var(--space-3);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input::placeholder,
textarea.input::placeholder {
  color: rgba(226, 232, 240, 0.55);
}

.input:focus-visible {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(90, 125, 255, 0.24);
}

.helper-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.inline-error {
  color: var(--color-error);
  font-size: 0.85rem;
}

.status-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.6);
  padding: var(--space-4);
  display: grid;
  gap: var(--space-3);
  transition: border-color var(--transition-fast), background var(--transition-fast), opacity var(--transition-fast);
}

.status-panel[data-state='empty'] {
  border-style: dashed;
  border-color: var(--color-border);
  background: rgba(15, 23, 42, 0.46);
}

.status-panel[data-state='ready'] {
  border-color: var(--color-border-strong);
}

.status-panel[data-state='warn'] {
  border-color: var(--color-warn);
}

.status-panel[data-state='error'] {
  border-color: var(--color-error);
}

.status-panel[data-state='busy'] {
  opacity: 0.76;
}

.status-panel__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.status-panel__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.status-summary {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

.status-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin: 0;
}

.status-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-2);
}

.status-list__empty {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.status-list__item {
  position: relative;
  padding-left: var(--space-4);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.status-list__item::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0.15rem;
  color: var(--color-accent);
  font-size: 1rem;
  line-height: 1;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.status-pill::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

.status-pill[data-state='ok'] {
  color: var(--color-success);
}

.status-pill[data-state='warn'] {
  color: var(--color-warn);
}

.status-pill[data-state='error'] {
  color: var(--color-error);
}

.code-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 1rem;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  background: rgba(90, 125, 255, 0.12);
  color: var(--color-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  word-break: break-all;
}

.code-chip[data-variant='warn'] {
  background: rgba(234, 179, 8, 0.12);
  color: var(--color-warn);
}

.code-chip[data-variant='error'] {
  background: rgba(248, 113, 113, 0.12);
  color: var(--color-error);
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(15, 23, 42, 0.55);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.data-table th,
.data-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.data-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
}

.data-table tbody tr:hover {
  background: rgba(90, 125, 255, 0.08);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(90, 125, 255, 0.12);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkbox-field {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.checkbox-field input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent);
}

@media (max-width: 768px) {
  .toast-stack {
    right: var(--space-3);
    left: var(--space-3);
    width: auto;
  }
  .drawer {
    grid-template-columns: 1fr;
  }
  .drawer__panel {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }
}
.menu-button__menu button,
.menu-button > button {
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

@media (prefers-reduced-motion: reduce) {
  .menu-button__menu,
  .menu-button__menu button,
  .menu-button > button {
    transition: none !important;
    animation: none !important;
  }
}


/* ===========================================
   TOKEN MANAGER COMPONENT
   إدارة رموز API للعميل
   =========================================== */

.token-manager {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.token-list-container {
  margin: var(--space-4) 0;
}

.token-empty-state {
  text-align: center;
  padding: var(--space-6);
  color: var(--color-text-muted);
}

.token-empty-state p {
  margin: var(--space-2) 0;
}

.token-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.token-card {
  padding: var(--space-4);
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-fast);
}

.token-card:hover {
  border-color: var(--color-accent);
}

.token-card--inactive {
  opacity: 0.5;
}

.token-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.token-card__prefix {
  font-family: var(--font-mono, monospace);
  font-size: 0.9rem;
  padding: var(--space-1) var(--space-2);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  color: var(--color-accent);
}

.token-card__name {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.token-card__meta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.token-card__actions {
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
}

.token-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.token-count {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.token-warning {
  margin-top: var(--space-4);
  padding: var(--space-3);
  background: rgba(255, 193, 7, 0.1);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-warning, #ffc107);
}

.token-warning__text {
  margin: var(--space-1) 0;
  font-size: 0.85rem;
}

.new-token-display {
  margin-top: var(--space-4);
  padding: var(--space-4);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
  border-radius: var(--radius-md);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.new-token-display__header {
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-success, #22c55e);
}

.new-token-display__body {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
}

.new-token-value {
  flex: 1;
  min-width: 200px;
  padding: var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  word-break: break-all;
  border: 1px solid var(--color-border);
}

.new-token-display__warning {
  margin-top: var(--space-3);
  font-size: 0.85rem;
  color: var(--color-warning, #ffc107);
  font-weight: 500;
}

.new-token-close {
  margin-top: var(--space-3);
}

@media (max-width: 600px) {
  .token-card__header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .token-actions {
    flex-direction: column;
  }
  
  .new-token-display__body {
    flex-direction: column;
    align-items: stretch;
  }
}

