/*
 * FXCR Admin UI
 * Isolated premium-style admin skin for plugin settings pages.
 * Scope is strictly limited to `.crtoday-admin`.
 */

.crtoday-admin {
  --crtoday-admin-bg: #f8fafc;
  --crtoday-admin-surface: #ffffff;
  --crtoday-admin-surface-soft: #f9fafb;
  --crtoday-admin-border: #d1d8e0;
  --crtoday-admin-border-strong: #94a3b8;
  --crtoday-admin-text: #0f172a;
  --crtoday-admin-text-muted: #475569;
  --crtoday-admin-accent: #6366f1;
  --crtoday-admin-accent-strong: #4f46e5;
  --crtoday-admin-accent-soft: rgba(99, 102, 241, 0.16);
  --crtoday-admin-button-accent: #6366f1;
  --crtoday-admin-button-accent-strong: #4f46e5;
  --crtoday-admin-button-accent-soft: rgba(99, 102, 241, 0.2);
  --crtoday-admin-warning: #f59e0b;
  --crtoday-admin-warning-strong: #d97706;
  --crtoday-admin-warning-soft: rgba(245, 158, 11, 0.24);
  --crtoday-admin-danger: #dc2626;
  --crtoday-admin-radius-sm: 10px;
  --crtoday-admin-radius-md: 14px;
  --crtoday-admin-radius-lg: 18px;
  --crtoday-admin-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --crtoday-admin-shadow-md: 0 10px 26px rgba(15, 23, 42, 0.08);
  --crtoday-admin-shadow-lg: 0 18px 44px rgba(15, 23, 42, 0.12);
  color: var(--crtoday-admin-text);
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 6px;
  line-height: 1.45;
}

.crtoday-admin .crtoday-admin-tab-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.crtoday-admin > h1,
.crtoday-admin > .notice,
.crtoday-admin > .update-nag,
.crtoday-admin > .error {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  box-sizing: border-box;
}

.crtoday-admin h1 {
  margin-block: 12px 20px;
  color: var(--crtoday-admin-text);
  justify-content: flex-start;
}

.crtoday-admin h1 img {
  border-radius: 14px;
}

.crtoday-admin .nav-tab-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE / Edge */
  gap: 8px;
  border-bottom: 0;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 4px 16px 24px;         /* room for box-shadow */
  margin-bottom: -8px;           /* compensate extra padding */
}

.crtoday-admin .nav-tab-wrapper::-webkit-scrollbar {
  display: none;                  /* Chrome / Safari */
}

.crtoday-admin .nav-tab {
  border: 1px solid var(--crtoday-admin-border);
  background: var(--crtoday-admin-surface);
  border-radius: 999px;
  padding: 9px 14px;
  margin: 0;
  color: var(--crtoday-admin-text-muted);
  box-shadow: var(--crtoday-admin-shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.crtoday-admin .nav-tab:hover {
  color: var(--crtoday-admin-text);
  border-color: var(--crtoday-admin-border-strong);
  transform: translateY(-1px);
}

.crtoday-admin .nav-tab.nav-tab-active {
  background: #eef2ff;
  border-color: #a5b4fc;
  color: #312e81;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.crtoday-admin .postbox {
  border: 1px solid var(--crtoday-admin-border);
  border-radius: var(--crtoday-admin-radius-md);
  box-shadow: var(--crtoday-admin-shadow-md);
  overflow: hidden;
  background: var(--crtoday-admin-surface);
}

.crtoday-admin .postbox .postbox-header {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--crtoday-admin-border);
}

.crtoday-admin .postbox .postbox-header h2,
.crtoday-admin .postbox .postbox-header h3 {
  color: var(--crtoday-admin-text);
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.crtoday-admin .postbox .postbox-header h2 .dashicons,
.crtoday-admin .postbox .postbox-header h3 .dashicons,
.crtoday-admin .crtoday-sc-heading-icon {
  color: var(--crtoday-admin-text) !important;
}

.crtoday-admin .postbox .inside {
  background: var(--crtoday-admin-surface);
}

.crtoday-admin .notice {
  border-radius: var(--crtoday-admin-radius-sm);
  box-shadow: var(--crtoday-admin-shadow-sm);
}

.crtoday-admin .widefat,
.crtoday-admin .form-table {
  border-color: var(--crtoday-admin-border);
}

.crtoday-admin .widefat th,
.crtoday-admin .widefat td,
.crtoday-admin .form-table th,
.crtoday-admin .form-table td {
  color: var(--crtoday-admin-text);
}

.crtoday-admin .widefat thead th {
  font-weight: 600;
}

.crtoday-admin .form-table th,
.crtoday-admin .form-table td {
  padding-block: 10px !important;
  vertical-align: middle;
}

.crtoday-admin .form-table th {
  width: 180px;
  font-weight: 600;
}

.crtoday-admin .widefat.striped > tbody > :nth-child(odd),
.crtoday-admin .widefat.striped > :nth-child(odd) {
  background-color: var(--crtoday-admin-surface-soft);
}

.crtoday-admin .widefat.striped > tbody > tr:nth-child(odd) > th,
.crtoday-admin .widefat.striped > tbody > tr:nth-child(odd) > td {
  background-color: var(--crtoday-admin-surface-soft);
}

.crtoday-admin .widefat.striped > tbody > tr:nth-child(even) > th,
.crtoday-admin .widefat.striped > tbody > tr:nth-child(even) > td {
  background-color: var(--crtoday-admin-surface);
}

.crtoday-admin .widefat tbody tr {
  border-bottom: 1px solid var(--crtoday-admin-border) !important;
}

.crtoday-admin .widefat tbody td {
  border-bottom: 1px solid var(--crtoday-admin-border) !important;
  border-right: 1px solid var(--crtoday-admin-border) !important;
}

.crtoday-admin .widefat tbody td:last-child {
  border-right: none !important;
}

.crtoday-admin .widefat thead tr {
  border-bottom: 1px solid var(--crtoday-admin-border) !important;
}

.crtoday-admin .widefat thead th {
  border-bottom: 1px solid var(--crtoday-admin-border) !important;
  border-right: 1px solid var(--crtoday-admin-border) !important;
}

.crtoday-admin .widefat thead th:last-child {
  border-right: none !important;
}

.crtoday-admin .description {
  color: var(--crtoday-admin-text-muted);
  font-size: 12.5px;
}

.crtoday-admin input[type='text'],
.crtoday-admin input[type='number'],
.crtoday-admin input[type='search'],
.crtoday-admin input[type='url'],
.crtoday-admin select,
.crtoday-admin textarea,
.crtoday-admin .regular-text {
  border-color: var(--crtoday-admin-border-strong);
  border-radius: 4px;
  min-height: 0;
  padding: 5px 10px;
  line-height: 1.4;
  font-size: 13px;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.crtoday-admin input[type='text']:focus,
.crtoday-admin input[type='number']:focus,
.crtoday-admin input[type='search']:focus,
.crtoday-admin input[type='url']:focus,
.crtoday-admin select:focus,
.crtoday-admin textarea:focus,
.crtoday-admin .regular-text:focus {
  border-color: var(--crtoday-admin-button-accent);
  box-shadow: 0 0 0 3px var(--crtoday-admin-button-accent-soft);
}

.crtoday-admin input[type='checkbox'] {
  border-radius: 3px;
  border-color: var(--crtoday-admin-border-strong);
}

.crtoday-admin input[type='range'] {
  accent-color: var(--crtoday-admin-accent);
}

.crtoday-admin .button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  box-shadow: none;
  min-height: 0;
  padding: 6px 14px;
  line-height: 1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-width: 1px;
  transition: all 0.2s ease;
  background: #fff;
  border-color: var(--crtoday-admin-border-strong);
  color: #334155;
}

.crtoday-admin .button .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 1;
  vertical-align: middle;
  margin: 0;
}

.crtoday-admin .button:hover {
  transform: translateY(-1px);
  background: #f8fafc;
  border-color: #64748b;
  color: #0f172a;
}

.crtoday-admin .button.button-small {
  padding: 4px 8px;
  font-size: 12px;
}

.crtoday-admin .button.button-small .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
}

.crtoday-admin .button-primary {
  background: var(--crtoday-admin-button-accent);
  border-color: var(--crtoday-admin-button-accent);
  color: #fff;
}

.crtoday-admin .button-primary:hover,
.crtoday-admin .button-primary:focus {
  background: var(--crtoday-admin-button-accent-strong);
  border-color: var(--crtoday-admin-button-accent-strong);
  color: #fff;
}

.crtoday-admin .button-primary:active {
  background: #4338ca;
  border-color: #4338ca;
  color: #fff;
}

.crtoday-admin .button-primary:focus {
  box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--crtoday-admin-button-accent-soft);
}

.crtoday-admin .button-secondary {
  background: #fff;
  border-color: var(--crtoday-admin-border-strong);
  color: #334155;
}

.crtoday-admin .button-secondary:hover,
.crtoday-admin .button-secondary:focus {
  background: #f8fafc;
  border-color: #64748b;
  color: #0f172a;
}

/* Fetch now — secondary (plain outline) so it doesn't compete with Save. */
.crtoday-admin .crtoday-fetch-now-btn.button,
.crtoday-admin .crtoday-fetch-now-btn.button-secondary {
  background: #fff;
  border-color: var(--crtoday-admin-border-strong);
  color: #334155;
}

.crtoday-admin .crtoday-fetch-now-btn.button:hover,
.crtoday-admin .crtoday-fetch-now-btn.button:focus,
.crtoday-admin .crtoday-fetch-now-btn.button-secondary:hover,
.crtoday-admin .crtoday-fetch-now-btn.button-secondary:focus {
  background: #f8fafc;
  border-color: #64748b;
  color: #0f172a;
}

/* Save settings — green primary, the main action. */
.crtoday-admin .crtoday-save-settings-btn.button,
.crtoday-admin .crtoday-save-settings-btn.button-primary {
  background: var(--crtoday-admin-button-accent);
  border-color: var(--crtoday-admin-button-accent);
  color: #fff;
}

.crtoday-admin .crtoday-save-settings-btn.button:hover,
.crtoday-admin .crtoday-save-settings-btn.button:focus,
.crtoday-admin .crtoday-save-settings-btn.button-primary:hover,
.crtoday-admin .crtoday-save-settings-btn.button-primary:focus {
  background: var(--crtoday-admin-button-accent-strong);
  border-color: var(--crtoday-admin-button-accent-strong);
  color: #fff;
}

.crtoday-admin .crtoday-save-settings-btn.button:active,
.crtoday-admin .crtoday-save-settings-btn.button-primary:active {
  background: #4338ca;
  border-color: #4338ca;
  color: #fff;
}

.crtoday-admin .crtoday-save-settings-btn.button:focus,
.crtoday-admin .crtoday-save-settings-btn.button-primary:focus {
  box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--crtoday-admin-button-accent-soft);
}

.crtoday-admin .button-link,
.crtoday-admin .button-link:focus,
.crtoday-admin .button-link:hover,
.crtoday-admin .button-link-delete:focus,
.crtoday-admin .button-link-delete:hover,
.crtoday-admin .crtoday-about-links a,
.crtoday-admin .crtoday-about-links a:focus,
.crtoday-admin .crtoday-about-links a:hover {
  color: var(--crtoday-admin-accent) !important;
}

.crtoday-admin code {
  border-radius: 8px;
}

.crtoday-admin .crtoday-panel {
  border-radius: var(--crtoday-admin-radius-sm);
  overflow: hidden;
}

.crtoday-admin .crtoday-panel .postbox-header {
  padding: 0;
}

.crtoday-admin .crtoday-panel .postbox-header:hover {
  background: #f1f5f9 !important;
}

.crtoday-admin .crtoday-panel .inside {
  background: var(--crtoday-admin-surface);
}

.crtoday-admin .crtoday-panel .form-table th {
  width: 150px;
}

.crtoday-admin .crtoday-panel .form-table td {
  width: auto;
}

.crtoday-admin #crtoday-shortcode-form,
.crtoday-admin #crtoday-conv-shortcode-form {
  align-items: start;
  gap: 20px !important;
}

.crtoday-admin #crtoday-shortcode-form > div,
.crtoday-admin #crtoday-conv-shortcode-form > div {
  min-width: 0;
}

.crtoday-admin .crtoday-sc-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.crtoday-admin .crtoday-sources-wrap {
  width: 100%;
}

.crtoday-admin .crtoday-interval-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  padding: 6px 0;
}

.crtoday-admin .crtoday-interval-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.crtoday-admin .crtoday-interval-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 280px;
}

.crtoday-admin .crtoday-interval-label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 6px;
}

.crtoday-admin .crtoday-interval-group {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.crtoday-admin .crtoday-interval-option {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.crtoday-admin .crtoday-interval-option input[type='radio'] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.crtoday-admin .crtoday-interval-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid #94a3b8;
  background: #fff;
  color: #1d2327;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  transition: all .14s ease;
}

.crtoday-admin .crtoday-interval-option input[type='radio']:checked + .crtoday-interval-chip {
  background: var(--crtoday-admin-accent);
  border-color: var(--crtoday-admin-accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, .28);
}

.crtoday-admin .crtoday-interval-option input[type='radio']:focus + .crtoday-interval-chip {
  outline: 2px solid rgba(99, 102, 241, .35);
  outline-offset: 2px;
}

.crtoday-admin .crtoday-panel-closed .crtoday-panel-body {
  display: none;
}

.crtoday-admin .crtoday-panel-closed .crtoday-panel-arrow {
  transform: rotate(-90deg);
}

/* ── Shortcode folder tabs ── */

.crtoday-admin .crtoday-sc-folder {
  border: 1px solid var(--crtoday-admin-border);
  border-radius: var(--crtoday-admin-radius-md);
  box-shadow: var(--crtoday-admin-shadow-md);
  background: var(--crtoday-admin-surface);
  overflow: hidden;
}

.crtoday-admin .crtoday-sc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--crtoday-admin-border);
  padding: 0;
}

.crtoday-admin .crtoday-sc-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  margin: 0;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--crtoday-admin-text-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.crtoday-admin .crtoday-sc-nav-btn img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}

.crtoday-admin .crtoday-sc-nav-btn:hover {
  color: var(--crtoday-admin-text);
  background: rgba(0, 0, 0, 0.03);
}

.crtoday-admin .crtoday-sc-nav-btn:hover img {
  opacity: 0.95;
}

.crtoday-admin .crtoday-sc-nav-btn.is-active {
  color: var(--crtoday-admin-accent);
  border-bottom-color: var(--crtoday-admin-accent);
  background: rgba(99, 102, 241, 0.04);
}

.crtoday-admin .crtoday-sc-nav-btn.is-active img {
  opacity: 1;
}

.crtoday-admin .crtoday-sc-pane {
  display: none;
  padding: 16px;
}

.crtoday-admin .crtoday-sc-pane.is-active {
  display: block;
}

/* ── Shortcode generator: two-column layout ── */

.crtoday-admin .crtoday-sc-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Preview column */
.crtoday-admin .crtoday-sc-preview-column {
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

/* Preview container */
.crtoday-admin .crtoday-sc-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8fafc;
  background-image:
    radial-gradient(circle, #94a3b8 0.8px, transparent 0.8px);
  background-size: 16px 16px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  padding: 24px 24px 32px;
  min-height: 200px;
  position: relative;
  transition: opacity 0.2s ease;
  overflow-x: auto;
  text-align: center;
  flex: 1 1 0%;
}

.crtoday-admin .crtoday-sc-preview > .crtoday-widget:not(.crtoday-fit-width) {
  width: 100%;
}

.crtoday-admin .crtoday-sc-preview > .crtoday-price-badge {
  width: auto;
}

.crtoday-admin .crtoday-sc-preview > .crtoday-price-badge:not(.crtoday-fit-width) {
  width: 100%;
}

.crtoday-admin .crtoday-sc-preview .crtoday-price-badge.crtoday-fit-width .crtoday-price-badge__panel {
  left: 50%;
  transform: translateX(-50%);
}

.crtoday-admin .crtoday-sc-preview .crtoday-price-badge--expanded .crtoday-price-badge__panel {
  left: auto;
  transform: none;
}

/* Flag border visibility on light preview background */
.crtoday-admin .crtoday-sc-preview {
  --crtoday-flag-border: rgba(148, 163, 184, 0.35);
  --crtoday-glass-border: rgba(148, 163, 184, 0.35);
}

/* Force flag borders in admin — @layer styles lose to WP global img{border:0} */
.crtoday-admin .crtoday-sc-preview .crtoday-rate-card-flags img,
.crtoday-admin .crtoday-sc-preview .crtoday-ticker-flags img,
.crtoday-admin .crtoday-sc-preview .crtoday-price-badge__flag,
.crtoday-admin .crtoday-sc-preview .crtoday-base-flag {
  border: 0.0938rem solid var(--crtoday-flag-border, rgba(148, 163, 184, 0.35)) !important;
  box-shadow: var(--crtoday-flag-shadow, 0 1px 3px rgba(0, 0, 0, 0.06)) !important;
  border-radius: 50% !important;
}

/* Hint text pinned to bottom of preview column */
.crtoday-admin .crtoday-preview-hint {
  margin: 0;
  text-align: center;
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  pointer-events: none;
}

/* Settings column */
.crtoday-admin .crtoday-sc-settings-column {
  display: flex;
  flex-direction: column;
}

/* Shared section heading style */
.crtoday-admin .crtoday-sc-heading {
  margin: 0 0 16px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #1d2327;
}

.crtoday-admin .crtoday-sc-heading-icon {
  font-size: 14px;
  width: 14px;
  height: 14px;
  vertical-align: text-top;
  margin-right: 4px;
}

/* Loading spinner inside preview */
.crtoday-admin .crtoday-sc-preview > .spinner {
  float: none;
  margin: 60px auto;
  display: block;
}

.crtoday-admin .crtoday-sc-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.crtoday-admin .crtoday-sc-tabs .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0;
  font-weight: 500;
}

.crtoday-admin .crtoday-admin-shortcodes .crtoday-panel,
.crtoday-admin .crtoday-admin-shortcodes .postbox[data-crtoday-pane] {
  border-radius: 8px;
  overflow: hidden;
}

.crtoday-admin .crtoday-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-width: 380px;
}

.crtoday-admin .crtoday-theme-swatch {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #b0b5bd;
  border-radius: 8px;
  background: #fff;
  padding: 6px 8px;
  cursor: pointer;
  min-height: 34px;
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.crtoday-admin .crtoday-theme-swatch:hover {
  border-color: #64748b;
}

.crtoday-admin .crtoday-theme-swatch.is-active {
  border-color: var(--crtoday-admin-accent);
  box-shadow: 0 0 0 1px var(--crtoday-admin-accent) inset;
}

.crtoday-admin .crtoday-theme-swatch:is(:focus, :focus-visible) {
  outline: none;
  border-color: var(--crtoday-admin-accent);
  box-shadow: 0 0 0 2px var(--crtoday-admin-accent-soft);
}

.crtoday-admin .crtoday-theme-swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  flex: 0 0 14px;
}

.crtoday-admin .crtoday-theme-swatch-name {
  font-size: 12px;
  line-height: 1.2;
  color: #1d2327;
}

.crtoday-admin .crtoday-admin-grid {
  margin-inline: auto;
  width: 100%;
  gap: 20px !important;
}

.crtoday-admin .crtoday-admin-kpis {
  gap: 10px !important;
}

.crtoday-admin .crtoday-admin-kpis > div {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 12px !important;
}

.crtoday-admin .crtoday-admin-shortcode-output {
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--crtoday-admin-border);
  border-radius: var(--crtoday-admin-radius-md);
}

.crtoday-admin .crtoday-admin-shortcode-output .crtoday-sc-heading {
  margin-bottom: 8px;
}

.crtoday-admin .crtoday-admin-shortcode-output-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.crtoday-admin .crtoday-admin-shortcode-output-row code {
  flex: 1;
  min-height: 42px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--crtoday-admin-border-strong);
  border-radius: 10px;
  font-size: 13px;
  word-break: break-all;
  display: flex;
  align-items: center;
  line-height: 1.5;
  font-family: Consolas, Monaco, 'Courier New', monospace;
}

.crtoday-admin .crtoday-admin-shortcode-output-row .button {
  min-width: 108px;
  justify-content: center;
  white-space: nowrap;
  height: auto;
}



.crtoday-admin .crtoday-admin-shortcode-output > .description {
  margin-top: 8px;
}

.crtoday-admin .crtoday-preview-loading {
  opacity: 0.7;
  position: relative;
}

.crtoday-admin .crtoday-preview-loading::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-start: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--crtoday-admin-accent) 50%, transparent 100%);
  animation: crtoday-admin-loading 1.1s linear infinite;
}

@keyframes crtoday-admin-loading {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes rotation {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.crtoday-admin #crtoday-sc-symbols-wrap {
  border-color: var(--crtoday-admin-border-strong) !important;
  border-radius: 10px !important;
  padding: 6px 8px !important;
  gap: 6px !important;
}

.crtoday-admin .crtoday-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e2e8f0 !important;
  color: #1e293b;
  border-radius: 4px !important;
  padding: 5px 10px 5px 6px !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.crtoday-admin .crtoday-tag .crtoday-tag-flag {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
}

.crtoday-admin .crtoday-tag-remove {
  background: none;
  border: none;
  padding: 0;
  margin-inline-start: 2px;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #787c82;
  font-weight: 400;
}

.crtoday-admin .crtoday-tag-remove:hover {
  color: #d63638;
}

.crtoday-admin [style*='margin-left:8px'] {
  margin-left: 0 !important;
  margin-inline-start: 8px !important;
}

.crtoday-admin [style*='margin-right:4px'] {
  margin-right: 0 !important;
  margin-inline-end: 4px !important;
}

.crtoday-admin [style*='text-align:center'] {
  text-align: center;
}

.crtoday-admin [style*='width:160px'] {
  max-width: 100%;
}

.crtoday-admin .dashicons {
  vertical-align: middle;
  margin-inline-end: 4px;
}

.crtoday-admin .nav-tab .dashicons,
.crtoday-admin h2 .dashicons,
.crtoday-admin h3 .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  vertical-align: text-top;
  margin-right: 4px !important;
  margin-inline-end: 4px !important;
}

.crtoday-admin #crtoday-local-source-dialog {
  backdrop-filter: blur(2px);
}

.crtoday-admin #crtoday-local-source-dialog > div {
  border-radius: var(--crtoday-admin-radius-lg) !important;
  box-shadow: var(--crtoday-admin-shadow-lg) !important;
  border: 1px solid var(--crtoday-admin-border) !important;
  overflow: hidden;
}

.crtoday-admin #crtoday-dialog-title {
  letter-spacing: 0.01em;
}

.crtoday-admin #crtoday-rates-table input[type='text'] {
  width: 100%;
}

.crtoday-admin .dashicons {
  vertical-align: middle;
}

/* Responsive */
@media (max-width: 1220px) {
  .crtoday-admin .crtoday-admin-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
  }

  .crtoday-admin .crtoday-admin-kpis {
    grid-template-columns: 1fr 1fr !important;
  }

  .crtoday-admin #crtoday-shortcode-form,
  .crtoday-admin #crtoday-conv-shortcode-form {
    grid-template-columns: 1fr !important;
  }

  .crtoday-admin .crtoday-theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 782px) {
  .crtoday-admin {
    padding-inline: 12px;
    box-sizing: border-box;
  }

  .crtoday-admin h1 {
    align-items: center;
    gap: 10px;
  }

  .crtoday-admin .nav-tab-wrapper {
    gap: 6px;
  }

  .crtoday-admin .nav-tab {
    padding: 7px 12px;
  }

  .crtoday-admin .crtoday-admin-kpis {
    grid-template-columns: 1fr !important;
  }

  .crtoday-admin .crtoday-interval-row {
    align-items: flex-start;
  }

  .crtoday-admin .crtoday-sources-wrap .widefat th,
  .crtoday-admin .crtoday-sources-wrap .widefat td {
    font-size: 12px;
    padding: 6px 4px;
  }

  .crtoday-admin .crtoday-sources-wrap .widefat .crtoday-col-hide-mobile {
    display: none;
  }

  .crtoday-admin .crtoday-theme-grid {
    grid-template-columns: 1fr;
  }

  .crtoday-admin .crtoday-admin-shortcode-output-row {
    flex-direction: column;
  }

  .crtoday-admin .crtoday-admin-shortcode-output-row .button {
    width: 100%;
  }

  .crtoday-admin .crtoday-sc-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .crtoday-admin .crtoday-sc-nav-btn {
    padding: 10px 12px;
    font-size: 12px;
  }
}

/* RTL support */
body.rtl .crtoday-admin,
.crtoday-admin:dir(rtl) {
  text-align: right;
}

body.rtl .crtoday-admin .nav-tab,
.crtoday-admin:dir(rtl) .nav-tab {
  flex-direction: row-reverse;
}

body.rtl .crtoday-admin h1,
.crtoday-admin:dir(rtl) h1 {
  justify-content: flex-start;
}

body.rtl .crtoday-admin .dashicons,
.crtoday-admin:dir(rtl) .dashicons {
  margin-inline: 0 4px;
}

body.rtl .crtoday-admin .description,
.crtoday-admin:dir(rtl) .description {
  margin-inline: 0;
}

body.rtl .crtoday-admin #crtoday-shortcode-form,
body.rtl .crtoday-admin #crtoday-conv-shortcode-form,
.crtoday-admin:dir(rtl) #crtoday-shortcode-form,
.crtoday-admin:dir(rtl) #crtoday-conv-shortcode-form {
  direction: rtl;
}

/* ================================================================
 * Currency Picker
 * ================================================================ */

.crtoday-currency-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid #d1d8e0;
  border-radius: 4px;
  background: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-width: 120px;
}

.crtoday-currency-picker-btn:hover {
  border-color: #6366f1;
}

.crtoday-currency-picker-btn:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.crtoday-currency-picker-btn .crtoday-picker-flag {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  object-fit: cover;
}

.crtoday-currency-picker-btn .crtoday-picker-code {
  flex: 1;
  text-align: left;
}

.crtoday-currency-picker-btn .crtoday-picker-chevron {
  font-size: 18px;
  color: #475569;
  line-height: 1;
}

/* Dropdown */
.crtoday-picker-dropdown {
  z-index: 100010;
  background: #ffffff;
  border: 1px solid #d1d8e0;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  max-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.crtoday-picker-search-wrap {
  padding: 8px;
  border-bottom: 1px solid #d1d8e0;
  background: #ffffff;
}

.crtoday-picker-search {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #d1d8e0;
  border-radius: 6px;
  font-size: 13px;
  background: #ffffff;
  color: #1e293b;
}

.crtoday-picker-search:focus {
  outline: none;
  border-color: #6366f1;
}

.crtoday-picker-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
  background: #ffffff;
}

.crtoday-picker-group {
  padding: 4px 0;
}

.crtoday-picker-group-label {
  padding: 4px 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
}

.crtoday-picker-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.1s;
}

.crtoday-picker-option:hover,
.crtoday-picker-option-focused {
  background: #f8fafc;
}

.crtoday-picker-option-selected {
  background: rgba(99, 102, 241, 0.08);
}

.crtoday-picker-flag-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.crtoday-picker-flag-wrap img {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  object-fit: cover;
}

.crtoday-picker-opt-code {
  font-weight: 600;
  font-size: 12px;
  color: #1e293b;
  min-width: 36px;
}

.crtoday-picker-opt-name {
  flex: 1;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crtoday-picker-check {
  color: #6366f1;
  font-weight: 700;
  font-size: 12px;
}

/* ── Multi-picker ── */

.crtoday-multi-picker-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid #8c8f94;
  border-radius: 6px;
  background: #fff;
  min-height: 38px;
}

.crtoday-multi-picker-tags {
  display: contents;
}

.crtoday-multi-picker-add {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1px dashed #94a3b8;
  border-radius: 4px;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: #3c434a;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.crtoday-multi-picker-add:hover {
  border-color: #6366f1;
  color: #6366f1;
}

.crtoday-multi-picker-add:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

/* ── Pairs picker (Exchange Rates Ticker) ── */

.crtoday-pairs-picker-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid #8c8f94;
  border-radius: 6px;
  background: #fff;
}

.crtoday-pairs-picker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
}

.crtoday-pairs-picker-add-row {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 10px;
  border-top: 1px dashed #94a3b8;
}

.crtoday-pairs-picker-add-row .crtoday-currency-picker-btn {
  min-width: 90px;
}

.crtoday-pairs-picker-add-row .crtoday-pair-add-btn {
  padding: 5px 10px;
  line-height: 1.4;
  min-height: 0;
  border-radius: 4px;
  font-size: 12px;
}

.crtoday-pair-tag {
  min-width: 130px;
  justify-content: center;
}

.crtoday-picker-checkbox {
  font-size: 14px;
  color: #475569;
  line-height: 1;
  width: 16px;
  text-align: center;
}

.crtoday-picker-option-selected .crtoday-picker-checkbox {
  color: #6366f1;
}

/* ═══════════════════════════════════════════════════════════════════
   Currencies Tab
   ═══════════════════════════════════════════════════════════════════ */

.crtoday-currencies-tab {
  max-width: 100%;
}

.crtoday-currencies-tab .postbox {
  max-width: 100%;
  overflow: hidden;
}

.crtoday-currencies-tab table {
  table-layout: auto;
  width: 100%;
  min-width: 600px;
}

.crtoday-currencies-tab th,
.crtoday-currencies-tab td {
  padding: 8px 10px;
  white-space: nowrap;
}

.crtoday-currencies-tab th:nth-child(4),
.crtoday-currencies-tab td:nth-child(4) {
  white-space: normal;
  word-break: break-word;
}

/* ── Utility classes for inline style extraction ── */

/* Dashicon inside nav-tabs & postbox headers */
.crtoday-admin .crtoday-dashicon-nav {
  font-size: 16px;
  width: 16px;
  height: 16px;
  vertical-align: text-top;
  margin-right: 4px;
}

.crtoday-admin .crtoday-dashicon-heading {
  font-size: 18px;
  width: 18px;
  height: 18px;
  vertical-align: text-top;
  margin-right: 4px;
}

.crtoday-admin .crtoday-dashicon-external {
  font-size: 12px;
  width: 12px;
  height: 12px;
  margin-left: 2px;
  opacity: 0.6;
}

/* KPI cards container */
.crtoday-admin .crtoday-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 14px 16px;
}

.crtoday-admin .crtoday-kpi-grid--lg {
  gap: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

/* Individual KPI card */
.crtoday-admin .crtoday-kpi-card {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
}

.crtoday-admin .crtoday-kpi-card--lg {
  padding: 16px;
}

.crtoday-admin .crtoday-kpi-value {
  font-size: 18px;
  font-weight: 700;
  color: #1d2327;
}

.crtoday-admin .crtoday-kpi-value--lg {
  font-size: 22px;
}

.crtoday-admin .crtoday-kpi-label {
  font-size: 10px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.crtoday-admin .crtoday-kpi-label--lg {
  font-size: 11px;
  color: #1d2327;
}

/* Postbox flex container (zero-margin, column layout) */
.crtoday-admin .crtoday-postbox {
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Postbox header padding normalization */
.crtoday-admin .crtoday-postbox-heading {
  padding: 8px 16px;
  margin: 0;
}

/* Postbox inside — flex grow, no padding */
.crtoday-admin .crtoday-postbox-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
}

/* Dashboard 2-col grid */
.crtoday-admin .crtoday-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  gap: 20px;
}

/* Borderless table (for tables inside panes) */
.crtoday-admin .crtoday-table-borderless {
  border-bottom: none;
  border-left: none;
  border-right: none;
}

.crtoday-admin .crtoday-table-noborder {
  border: none;
}

/* Table label cell (bold, fixed width) */
.crtoday-admin .crtoday-td-label {
  font-weight: 600;
  width: 180px;
}

.crtoday-admin .crtoday-td-bold {
  font-weight: 600;
}

/* Pane-level padding:0 */
.crtoday-admin .crtoday-pane-flush {
  padding: 0;
}

/* Section heading (uppercase, small) */
.crtoday-admin .crtoday-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #64748b;
  margin-bottom: 6px;
}

.crtoday-admin .crtoday-section-hint {
  font-size: 11px;
  color: #64748b;
  margin-top: 6px;
}

/* Flex row utility */
.crtoday-admin .crtoday-flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Action form row (form with button + description) */
.crtoday-admin .crtoday-action-form {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px;
}

.crtoday-admin .crtoday-action-form--inline {
  display: inline;
  margin: 0;
}

/* Danger button variant */
.crtoday-admin .crtoday-btn-danger {
  color: #d63638;
  border-color: #d63638;
}

.crtoday-admin .crtoday-btn-danger:hover {
  background: #fcecec;
}

.crtoday-admin .crtoday-btn-danger-fill {
  background: #d63638;
  border-color: #d63638;
  color: #fff;
}

.crtoday-admin .crtoday-btn-danger-fill:hover {
  background: #b32d2e;
  border-color: #b32d2e;
  color: #fff;
}

/* Color dot indicator */
.crtoday-admin .crtoday-color-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Progress bar */
.crtoday-admin .crtoday-progress-track {
  background: #eef2ff;
  border-radius: 3px;
  height: 14px;
  overflow: hidden;
}

.crtoday-admin .crtoday-progress-track--sm {
  height: 10px;
  background: #f0f0f1;
}

.crtoday-admin .crtoday-progress-track--xs {
  height: 4px;
  background: #f0f0f1;
  margin-top: 3px;
}

.crtoday-admin .crtoday-progress-bar {
  background: #6366f1;
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Nav dashicons count badge */
.crtoday-admin .crtoday-nav-count {
  font-weight: 400;
  color: var(--crtoday-admin-text-muted);
}

/* Empty state */
.crtoday-admin .crtoday-empty-state {
  text-align: center;
  padding: 24px 16px;
}

.crtoday-admin .crtoday-empty-state .dashicons {
  font-size: 32px;
  width: 32px;
  height: 32px;
  color: #c3c4c7;
  display: block;
  margin: 0 auto 8px;
}

/* Dialog overlay */
.crtoday-admin .crtoday-dialog-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.6);
  overflow: auto;
}

.crtoday-admin .crtoday-dialog-box {
  background: #fff;
  max-width: 700px;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.crtoday-admin .crtoday-dialog-header {
  background: #1d2327;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crtoday-admin .crtoday-dialog-header h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.crtoday-admin .crtoday-dialog-close {
  background: none;
  border: none;
  color: #ccc;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.crtoday-admin .crtoday-dialog-body {
  padding: 20px;
}

/* HR divider */
.crtoday-admin .crtoday-hr {
  margin: 0;
  border: none;
  border-top: 1px solid var(--crtoday-admin-border);
}

.crtoday-admin .crtoday-hr--light {
  border-top-color: #f0f0f1;
}

/* Sub-nav dashicon (18px, used in sc-nav buttons) */
.crtoday-admin .crtoday-sc-nav-btn .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* ── Shortcodes panel system ── */

/* Panel postbox (flat, no shadow) */
.crtoday-admin .crtoday-sc-panel {
  box-shadow: none;
  border: 1px solid #c3c4c7;
  margin: 0;
}

.crtoday-admin .crtoday-sc-panel.is-hidden {
  display: none;
}

/* Panel heading h3 */
.crtoday-admin .crtoday-sc-panel-heading {
  padding: 6px 16px;
  margin: 0;
  font-size: 13px;
}

.crtoday-admin .crtoday-sc-panel-heading .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  vertical-align: text-top;
  margin-right: 4px;
}

/* Panel body (inside div) */
.crtoday-admin .crtoday-sc-panel-body {
  padding: 16px;
}

/* Panel form-table (no margin) */
.crtoday-admin .crtoday-sc-form-table {
  margin: 0;
}

/* Panel th (compact padding) */
.crtoday-admin .crtoday-sc-th {
  padding: 8px 10px 8px 0;
}

.crtoday-admin .crtoday-sc-th--w130 {
  width: 130px;
}

.crtoday-admin .crtoday-sc-th--w140 {
  width: 140px;
}

/* Panel td (compact padding) */
.crtoday-admin .crtoday-sc-td {
  padding: 8px 0;
}

/* Checkbox label (block display, spacing) */
.crtoday-admin .crtoday-check-label {
  display: block;
  margin-bottom: 6px;
}

.crtoday-admin .crtoday-check-label:last-child {
  margin-bottom: 0;
}

.crtoday-admin .crtoday-check-label--mt {
  margin-top: 6px;
}

/* Range input (slider) */
.crtoday-admin .crtoday-range-input {
  width: 160px;
  vertical-align: middle;
}

/* Range value display */
.crtoday-admin .crtoday-range-value {
  font-weight: 600;
  margin-left: 8px;
}

/* Small number/text inputs */
.crtoday-admin .crtoday-input-sm {
  width: 120px;
}

.crtoday-admin .crtoday-input-md {
  width: 180px;
}

/* Field hint (description below input) */
.crtoday-admin .crtoday-field-hint {
  margin: 4px 0 0;
}

/* Inline description (beside button) */
.crtoday-admin .crtoday-desc-inline {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

/* Description with left margin */
.crtoday-admin .crtoday-desc-beside {
  margin-left: 8px;
  display: inline;
  vertical-align: middle;
}

/* Text align utility */
.crtoday-admin .crtoday-text-right {
  text-align: right;
}

.crtoday-admin .crtoday-text-center {
  text-align: center;
}

/* Font-size utilities */
.crtoday-admin .crtoday-text-xs {
  font-size: 11px;
}

.crtoday-admin .crtoday-text-sm {
  font-size: 11.5px;
}

.crtoday-admin .crtoday-text-md {
  font-size: 16px;
}

/* Spinner centered */
.crtoday-admin .crtoday-spinner-centered {
  margin: 40px auto;
}

/* Shortcode preview min-heights */
.crtoday-admin .crtoday-sc-preview--sm {
  min-height: 80px;
}

.crtoday-admin .crtoday-sc-preview--md {
  min-height: 120px;
}

/* Pane padding */
.crtoday-admin .crtoday-pad-16 {
  padding: 16px;
}

/* Separator slash */
.crtoday-admin .crtoday-separator-slash {
  color: #50575e;
}

/* td with vertical-align middle + fixed width */
.crtoday-admin .crtoday-td-label--w140 {
  font-weight: 600;
  width: 140px;
  vertical-align: middle;
}

/* Empty state container */
.crtoday-admin .crtoday-empty-state {
  text-align: center;
  padding: 24px 16px;
}

.crtoday-admin .crtoday-empty-state .dashicons {
  font-size: 32px;
  width: 32px;
  height: 32px;
  color: #c3c4c7;
  display: block;
  margin: 0 auto 8px;
}

/* Danger text description */
.crtoday-admin .crtoday-desc-danger {
  margin: 0;
  color: #d63638;
  display: inline-flex;
  align-items: center;
}

/* History inline label */
.crtoday-admin .crtoday-label-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── CTA banners (support + review) ── */

/* ── External nav-tab links (Support, Review) ── */

.crtoday-admin .crtoday-nav-spacer {
  flex: 1 1 auto;
}

.crtoday-admin .nav-tab.crtoday-nav-external {
  border-style: dashed;
  opacity: 0.88;
}

.crtoday-admin .nav-tab.crtoday-nav-external:hover {
  opacity: 1;
}

/* Review button — indigo accent + premium shimmer */
.crtoday-admin .nav-tab.crtoday-nav-review {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  border-color: #6366f1;
  border-style: solid;
  color: #fff;
  opacity: 1;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.crtoday-admin .nav-tab.crtoday-nav-review .dashicons {
  color: rgba(255, 255, 255, 0.9);
}

.crtoday-admin .nav-tab.crtoday-nav-review:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  border-color: #4f46e5;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.crtoday-admin .nav-tab.crtoday-nav-review::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  pointer-events: none;
  opacity: 0;
}

.crtoday-admin .nav-tab.crtoday-nav-review:hover::after {
  animation: crtoday-shimmer 0.6s ease-out forwards;
}

@keyframes crtoday-shimmer {
  0%   { left: -100%; opacity: 1; }
  100% { left: 140%; opacity: 0.6; }
}

/* ── Admin footer ── */

.crtoday-admin .crtoday-admin-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 12px 0;
  border-top: 1px solid var(--crtoday-admin-border);
  font-size: 12px;
  color: var(--crtoday-admin-text-muted);
}

.crtoday-admin .crtoday-admin-footer__links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crtoday-admin .crtoday-admin-footer a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--crtoday-admin-text-muted);
  text-decoration: none;
}

.crtoday-admin .crtoday-admin-footer a .dashicons {
  font-size: 10px;
  width: 10px;
  height: 10px;
  opacity: 0.65;
}

.crtoday-admin .crtoday-admin-footer a:hover {
  color: var(--crtoday-admin-accent);
}

.crtoday-admin .crtoday-admin-footer__sep {
  opacity: 0.55;
}
