.bytechips-dashboard__tab-bar {
  display: flex;
  gap: 12px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 16px 28px rgba(2, 6, 23, 0.45);
}
.bytechips-dashboard__tab-button {
  flex: none;
  min-width: 120px;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #cbd5f5;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.bytechips-dashboard__tab-button:hover,
.bytechips-dashboard__tab-button:focus {
  background: rgba(96, 165, 250, 0.18);
  color: #f8fafc;
  outline: none;
}
.bytechips-dashboard__tab-button.is-active {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.35), rgba(56, 189, 248, 0.35));
  color: #fff;
  box-shadow: 0 12px 22px rgba(14, 26, 52, 0.45);
}

.bytechips-dashboard__panel {
  display: none;
  flex-direction: column;
  gap: 24px;
}
.bytechips-dashboard__panel.is-active {
  display: flex;
}
.bytechips-dashboard {
  width: 100%;
  max-width: none;
  margin: 0 0 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: #e2e8f0;
}

.bytechips-dashboard__header h2 {
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 600;
  color: #f8fafc;
}
.bytechips-dashboard__header p {
  margin: 0;
  color: #a0aec0;
  font-size: 14px;
}

.bytechips-dashboard__alerts {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  color: #cbd5f5;
  font-size: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.35);
}
.bytechips-dashboard__alerts.is-success {
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
  border-color: rgba(34, 197, 94, 0.35);
}
.bytechips-dashboard__alerts.is-error {
  background: rgba(248, 113, 113, 0.12);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
}
.bytechips-dashboard__alerts.is-info {
  background: rgba(56, 189, 248, 0.12);
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.35);
}

.bytechips-dashboard__controls {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.bytechips-dashboard__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.bytechips-dashboard__share-result {
  margin: 12px 0 24px;
  padding: 20px 22px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 20px 38px rgba(2, 6, 23, 0.35);
}
.bytechips-dashboard__share-result h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #f8fafc;
}
.bytechips-dashboard__share-result p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #cbd5f5;
}
.bytechips-dashboard__share-field {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.bytechips-dashboard__share-input {
  flex: 1 1 320px;
  min-width: 0;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 14px;
}
.bytechips-dashboard__share-input:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2);
}
.bytechips-dashboard__share-field .button {
  flex: 0 0 auto;
}

.bytechips-dashboard__filter-input,
.bytechips-dashboard__filter-select {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.28);
  color: #f8fafc;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
  min-width: 160px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}
.bytechips-dashboard__filter-input::placeholder {
  color: rgba(148, 163, 184, 0.7);
}
.bytechips-dashboard__filter-input:focus,
.bytechips-dashboard__filter-select:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35);
}

.bytechips-dashboard__actions-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.button.button-danger {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.25), rgba(239, 68, 68, 0.25));
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
}
.button.button-danger:hover {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.4), rgba(239, 68, 68, 0.4));
  border-color: rgba(248, 113, 113, 0.65);
}

.bytechips-dashboard__selection {
  font-size: 13px;
  color: #cbd5f5;
  background: rgba(96, 165, 250, 0.15);
  padding: 6px 12px;
  border-radius: 999px;
}

.bytechips-auth-guard {
  margin: 60px auto;
  max-width: 560px;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 22px 46px rgba(2, 6, 23, 0.55);
  padding: 32px 36px;
  text-align: center;
  color: #e2e8f0;
}
.bytechips-auth-guard__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.bytechips-auth-guard h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #f8fafc;
}
.bytechips-auth-guard__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bytechips-auth-guard__actions .button {
  min-width: 200px;
}
.bytechips-auth-guard__meta {
  font-size: 13px;
  color: #cbd5f5;
}

.bytechips-dashboard__table-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 0 24px 48px rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(12px);
}

.bytechips-dashboard__table {
  width: 100%;
  border-collapse: collapse;
}
.bytechips-dashboard__table th,
.bytechips-dashboard__table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 14px;
  vertical-align: middle;
  writing-mode: horizontal-tb;
}
.bytechips-dashboard__table th {
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  color: #f8fafc;
  white-space: nowrap;
}
.bytechips-dashboard__table td {
  white-space: nowrap;
  color: #e2e8f0;
}
.bytechips-dashboard__name {
  color: #60a5fa;
  text-decoration: none;
  font-size: 14px;
}
.bytechips-dashboard__name:hover,
.bytechips-dashboard__name:focus {
  color: #3b82f6;
  text-decoration: underline;
  outline: none;
}
.bytechips-dashboard__table th.bytechips-dashboard__select,
.bytechips-dashboard__table td.bytechips-dashboard__select {
  width: 44px;
  text-align: center;
  padding: 0 12px;
}
.bytechips-dashboard__table td:nth-child(2) {
  white-space: normal;
  max-width: 320px;
}
.bytechips-dashboard__table td:nth-child(3),
.bytechips-dashboard__table td:nth-child(4),
.bytechips-dashboard__table td:nth-child(5),
.bytechips-dashboard__table td:nth-child(6) {
  min-width: 120px;
}
.bytechips-dashboard__table td:last-child {
  min-width: 200px;
}
.bytechips-dashboard__table tbody tr:hover {
  background: rgba(59, 130, 246, 0.12);
}
.bytechips-dashboard__table tbody tr:last-child td {
  border-bottom: none;
}

.bytechips-dashboard__placeholder td,
.bytechips-dashboard__error {
  text-align: center;
  color: #94a3b8;
}

.bytechips-dashboard__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.bytechips-dashboard__actions .button {
  font-size: 12px;
  padding: 6px 12px;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.35);
}
.bytechips-dashboard__actions .button:hover {
  background: rgba(148, 163, 184, 0.32);
  border-color: rgba(148, 163, 184, 0.55);
}
.bytechips-dashboard__actions .button-link-delete {
  background: none;
  color: #f87171;
  border: none;
  box-shadow: none;
}
.bytechips-dashboard__actions .button-link-delete:hover {
  color: #fca5a5;
  text-decoration: underline;
}

.bytechips-dashboard__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  color: #f1f5f9;
}
.bytechips-dashboard__badge.is-deleted {
  background: rgba(248, 113, 113, 0.15);
  color: #fecaca;
}

.bytechips-dashboard__empty {
  text-align: center;
  padding: 32px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5f5;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
}
.bytechips-dashboard__empty a {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: none;
}
.bytechips-dashboard__empty a:hover {
  text-decoration: underline;
}

.bytechips-dashboard .button.button-secondary {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(56, 189, 248, 0.25));
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #e0f2fe;
  border-radius: 999px;
  box-shadow: 0 18px 32px rgba(14, 26, 52, 0.45);
}
.bytechips-dashboard .button.button-secondary:hover {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.4), rgba(56, 189, 248, 0.4));
  border-color: rgba(96, 165, 250, 0.65);
}

.bytechips-dashboard__controls .button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.bytechips-dashboard__checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.bytechips-dashboard__preview {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 24px;
}
.bytechips-dashboard__preview[hidden] {
  display: none;
}
.bytechips-dashboard__preview-backdrop {
  position: absolute;
  inset: 0;
}
.bytechips-dashboard__preview-dialog {
  position: relative;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 16px;
  box-shadow: 0 32px 64px rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.35);
  max-width: min(90%, 720px);
  width: 100%;
  max-height: 90%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
  backdrop-filter: blur(8px);
}
.bytechips-dashboard__preview-body {
  flex: 1;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
}
.bytechips-dashboard__preview-image {
  max-width: 100%;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.45);
}
.bytechips-dashboard__preview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #e2e8f0;
  width: 32px;
  height: 32px;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}
.bytechips-dashboard__preview-close:hover {
  color: #f8fafc;
  background: rgba(96, 165, 250, 0.25);
}
.bytechips-dashboard__preview-footer {
  display: flex;
  justify-content: flex-end;
}

body.bytechips-dashboard__preview-open {
  overflow: hidden;
}

.bytechips-dashboard__card {
  border-radius: 18px;
  padding: 24px 26px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 22px 44px rgba(2, 6, 23, 0.55);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bytechips-dashboard__ad-manager textarea {
  width: 100%;
  min-height: 160px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.92);
  padding: 14px 16px;
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08);
}
.bytechips-dashboard__ad-manager textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.65);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.45);
}

.bytechips-dashboard__ad-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.bytechips-dashboard__ad-heading h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #f8fafc;
}
.bytechips-dashboard__ad-plan {
  font-size: 13px;
  color: #cbd5f5;
  background: rgba(96, 165, 250, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
}

.bytechips-dashboard__ad-desc {
  margin: 0;
  font-size: 14px;
  color: #a0aec0;
}
.bytechips-dashboard__ad-guideline {
  margin: 6px 0 12px;
  font-size: 13px;
  color: #cbd5f5;
  line-height: 1.6;
}
.bytechips-dashboard__ad-note {
  margin: -6px 0 0;
  font-size: 12px;
  color: #94a3b8;
}
.bytechips-dashboard__ad-note code {
  background: rgba(15, 23, 42, 0.8);
  padding: 2px 6px;
  border-radius: 6px;
  color: #f8fafc;
}

.bytechips-dashboard__ad-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.bytechips-dashboard__ad-actions .button-primary {
  border-radius: 999px;
  padding: 8px 18px;
}
.bytechips-dashboard__ad-actions .button {
  border-radius: 999px;
}
.bytechips-dashboard__ad-count {
  font-size: 12px;
  color: #cbd5f5;
  margin-left: auto;
}
.bytechips-dashboard__ad-count.is-error {
  color: #fca5a5;
}

.bytechips-dashboard__ad-status {
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.bytechips-dashboard__ad-status.is-success {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}
.bytechips-dashboard__ad-status.is-error {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}
.bytechips-dashboard__ad-status.is-info {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.35);
  color: #cbd5f5;
}

.bytechips-dashboard__ad-preview {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 16px;
}
.bytechips-dashboard__ad-preview h4 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: #f8fafc;
}
.bytechips-dashboard__ad-preview-body {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 18px;
  color: #f8fafc;
  line-height: 1.6;
}

.bytechips-dashboard__ad-info {
  color: #cbd5f5;
}
.bytechips-dashboard__ad-info h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #f8fafc;
}
.bytechips-dashboard__ad-info p {
  margin: 0;
  font-size: 14px;
  color: #a0aec0;
}

@media (max-width: 640px) {
  .bytechips-dashboard__tab-bar {
    flex-direction: column;
  }

  .bytechips-dashboard__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .bytechips-dashboard__actions-bar {
    justify-content: flex-start;
    margin-left: 0;
  }

  .bytechips-dashboard__filters {
    width: 100%;
  }

  .bytechips-dashboard__filter-input,
  .bytechips-dashboard__filter-select {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
  }

  .bytechips-dashboard__ad-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .bytechips-dashboard__ad-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .bytechips-dashboard__ad-count {
    margin-left: 0;
  }
}

.bytechips-dashboard__logout-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  justify-content: center;
  align-items: center;
}
.bytechips-dashboard__logout-section .button {
  min-width: 120px;
}

.bytechips-dashboard__usage-card {
  margin-top: 24px;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 18px 32px rgba(2, 6, 23, 0.35);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bytechips-dashboard__usage-card.is-error {
  border-color: rgba(248, 113, 113, 0.35);
}

.bytechips-dashboard__usage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.bytechips-dashboard__usage-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #f8fafc;
}

.bytechips-dashboard__usage-plan {
  margin: 4px 0 0;
  color: #cbd5f5;
  font-size: 13px;
}

.bytechips-dashboard__usage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.bytechips-dashboard__usage-block {
  padding: 16px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bytechips-dashboard__usage-label {
  font-size: 13px;
  color: #94a3b8;
  letter-spacing: 0.04em;
}

.bytechips-dashboard__usage-values {
  font-size: 20px;
  font-weight: 600;
  color: #f8fafc;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.bytechips-dashboard__usage-limit {
  font-size: 14px;
  color: #94a3b8;
}

.bytechips-dashboard__usage-progress {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.bytechips-dashboard__usage-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #2563eb);
  transition: width 0.3s ease;
}

.bytechips-dashboard__usage-block.is-unlimited .bytechips-dashboard__usage-progress {
  opacity: 0.35;
}

.bytechips-dashboard__usage-note {
  margin: 0;
  font-size: 12px;
  color: #94a3b8;
}

.bytechips-dashboard__usage-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.bytechips-dashboard__usage-summary-label {
  margin: 0 0 4px;
  font-size: 12px;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bytechips-dashboard__usage-summary-value {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #f8fafc;
}

.bytechips-dashboard__usage-status {
  font-size: 13px;
  color: #cbd5f5;
}

.bytechips-dashboard__usage-status.is-error {
  color: #fecaca;
}

.bytechips-dashboard__usage-status[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .bytechips-dashboard__usage-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .bytechips-dashboard__usage-header button {
    width: 100%;
  }
}

