:root {
  --em-glass-bg: rgba(15, 23, 42, 0.85);
  /* Dark slate blue with transparency */
  --em-glass-border: rgba(148, 163, 184, 0.15);
  /* Subdued slate border */
  --em-glass-blur: blur(12px);
  --em-glow-primary: rgba(99, 102, 241, 0.45);
  /* Indigo glow */
  --em-glow-secondary: rgba(236, 72, 153, 0.45);
  /* Pink glow */
  --em-text-primary: #f8fafc;
  --em-text-secondary: #cbd5f5;
  --em-gradient-indigo: linear-gradient(135deg, #6366f1, #3b82f6);
  --em-gradient-pink: linear-gradient(135deg, #ec4899, #8b5cf6);
  --em-panel-shadow: 0 36px 70px rgba(2, 6, 23, 0.6);
  --em-border-radius: 20px;

  /* Intro Section Additions */
  --sky-blue: #89C2E0;
  --deep-obsidian: #0b0e14;
  --glass-panel: rgba(15, 18, 25, 0.45);
  --glass-border: rgba(255, 255, 255, 0.12);
  --impact-font: 'Impact', 'Arial Black', sans-serif;
}

/* --- INTRO SECTION --- */
.email-dashboard-intro {
  position: relative;
  min-height: 500px;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #0b0e14;
  border-radius: 40px;
  margin-bottom: 30px;
}

.email-dashboard-intro .dashboard-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://gend.me/wp-content/uploads/2026/02/Email-Dashboard-Background.png') no-repeat center center;
  background-size: cover;
  opacity: 0.8;
  z-index: 1;
  background-attachment: fixed;
}

.email-dashboard-intro .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.email-dashboard-intro .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.email-dashboard-intro .dashboard-content-frame {
  position: relative;
  z-index: 3;
  max-width: 950px;
  width: 100%;
  background: rgba(15, 18, 25, 0.45);
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  padding: 50px 70px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.email-dashboard-intro .control-center-tag {
  font-family: 'Impact', 'Arial Black', sans-serif;
  color: #89C2E0;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.9rem;
  margin-bottom: 12px;
  display: block;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.email-dashboard-intro .dashboard-intro-title {
  font-family: 'Impact', 'Arial Black', sans-serif !important;
  font-size: 4.8rem !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  line-height: 0.85 !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  letter-spacing: -1px !important;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.email-dashboard-intro .dashboard-intro-lead {
  font-family: 'Inter', sans-serif;
  color: #e2e8f0;
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 35px;
  max-width: 700px;
  font-weight: 500;
}

/* --- STAGGERED PILL BUTTONS --- */
.email-dashboard-intro .dashboard-action-row {
  display: flex;
  gap: 15px;
}

.email-dashboard-intro .pill-btn {
  text-decoration: none;
  font-family: 'Impact', 'Arial Black', sans-serif;
  background: #89C2E0;
  color: #ffffff !important;
  padding: 14px 35px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 1rem;
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none !important;
  display: inline-block;
  opacity: 0;
  transform: translateX(-20px);
}

.email-dashboard-intro .active .pill-btn {
  opacity: 1;
  transform: translateX(0);
}

.email-dashboard-intro .active .pill-btn:nth-child(1) {
  transition-delay: 0.3s;
}

.email-dashboard-intro .active .pill-btn:nth-child(2) {
  transition-delay: 0.5s;
}

.email-dashboard-intro .pill-btn:hover {
  transform: translateY(-5px) scale(1.05);
  filter: brightness(1.1);
}

.email-dashboard-intro .pill-btn.secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(5px) !important;
}

/* --- TAB ICONS --- */
.gdc-sub-tab .dashicons {
  margin-right: 10px;
  font-size: 18px;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  transition: 0.3s;
  opacity: 0.7;
}

.gdc-sub-tab.active .dashicons {
  opacity: 1;
  color: #89C2E0;
  filter: drop-shadow(0 0 5px rgba(137, 194, 224, 0.5));
}

@media (max-width: 768px) {
  .email-dashboard-intro {
    min-height: 400px;
    padding: 40px 20px;
  }

  .email-dashboard-intro .dashboard-content-frame {
    padding: 30px 20px;
    border-radius: 30px;
  }

  .email-dashboard-intro .dashboard-intro-title {
    font-size: 2.8rem !important;
  }

  .email-dashboard-intro .dashboard-action-row {
    flex-direction: column;
  }
}

.gdc-app-content a:hover {
  color: #f7afff;
}

.gdc-app-content a.button,
.gdc-app-content .button,
.gdc-app-content input[type="submit"] {
  background: var(--em-gradient-indigo);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff !important;
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gdc-app-content a.button:hover,
.gdc-app-content .button:hover,
.gdc-app-content input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--em-glow-primary);
  filter: brightness(1.1);
}

/* Subtabs Overhaul */
.gdc-app-content .gdc-subtabs {
  display: flex !important;
  gap: 20px !important;
  margin-bottom: 24px !important;
  border-bottom: 1px solid var(--em-glass-border) !important;
  padding-bottom: 0 !important;
}

.gdc-app-content .gdc-subtab {
  background: none !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
  padding: 12px 4px !important;
  cursor: pointer !important;
  font-weight: 700 !important;
  color: var(--em-text-secondary) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  font-size: 11px !important;
  transition: all 0.3s ease !important;
}

.gdc-app-content .gdc-subtab:hover {
  color: var(--em-text-primary) !important;
}

.gdc-app-content .gdc-subtab.active {
  color: #6366f1 !important;
  border-bottom-color: #6366f1 !important;
  text-shadow: 0 0 10px var(--em-glow-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
}

::-webkit-scrollbar-thumb {
  background: var(--em-glass-border);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

/* Media layout for App Content */
.gdc-app-content .gdc-media {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
}

/* Product funnels contract sections */
.gdc-product-funnels .gdc-contracts {
  margin-top: 28px;
  display: grid;
  gap: 24px;
}

.gdc-product-funnels .gdc-contracts__section {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(182, 8, 201, 0.08), rgba(110, 193, 228, 0.16));
  border: 1px solid rgba(110, 193, 228, 0.25);
  box-shadow: 0 26px 44px rgba(12, 26, 37, 0.18);
  color: #0f172a;
  position: relative;
  overflow: hidden;
}

.gdc-product-funnels .gdc-contracts__header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.gdc-product-funnels .gdc-contracts__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.gdc-product-funnels .gdc-contracts__description {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #334155;
  max-width: 640px;
}

.gdc-product-funnels .gdc-contracts__metric {
  font-weight: 700;
  font-size: 16px;
  color: #b608c9;
}

.gdc-product-funnels .gdc-contracts__body {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.gdc-product-funnels .gdc-contracts__message {
  margin: 0;
  font-size: 14px;
  color: #475569;
}

.gdc-product-funnels .gdc-contracts__list {
  display: grid;
  gap: 16px;
}

.gdc-product-funnels .gdc-contracts__item {
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(182, 8, 201, 0.18);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.12);
}

.gdc-product-funnels .gdc-contracts__item-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.gdc-product-funnels .gdc-contracts__item-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  flex: 1 1 auto;
}

.gdc-product-funnels .gdc-contracts__item-value {
  font-size: 16px;
  font-weight: 700;
  color: #cc0000;
}

.gdc-product-funnels .gdc-contracts__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6ec1e4 0%, #97e46e 100%);
  color: #0b1020;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.gdc-product-funnels .gdc-contracts__meta {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #475569;
}

.gdc-product-funnels .gdc-contracts__meta-item {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(110, 193, 228, 0.22);
}

.gdc-product-funnels .gdc-contracts__item-notes {
  margin: 12px 0 0;
  font-size: 13px;
  color: #334155;
}

@media (max-width: 782px) {
  .gdc-product-funnels .gdc-contracts {
    gap: 18px;
  }

  .gdc-product-funnels .gdc-contracts__section {
    padding: 18px;
    border-radius: 20px;
  }

  .gdc-product-funnels .gdc-contracts__item {
    padding: 14px 16px;
  }
}

.gdc-app-content .gdc-media-sidebar ul {
  margin: 0;
  padding-left: 16px;
}

.gdc-app-content .gdc-media-sidebar li {
  list-style: disc;
  color: #b9c2d0;
}

.gdc-app-content .gdc-media-sidebar a {
  color: #cbd5e1;
  text-decoration: none;
}

.gdc-app-content .gdc-media-sidebar a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Content Settings cards */
.gdc-content-settings .gdc-card-collection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.gdc-content-settings .gdc-card {
  background: #11151d;
  border: 1px solid #27313f;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 18, 23, 0.2);
}

.gdc-content-settings .gdc-card h3 {
  margin-top: 0;
  font-size: 16px;
}

.gdc-content-settings .gdc-card p {
  margin-bottom: 12px;
  line-height: 1.4;
}

.gdc-content-settings select {
  max-width: 320px;
}

/* Campaign dashboard */
.gdc-campaign-dashboard .gdc-lead {
  color: #dbe1ea;
  max-width: 980px;
}

.gdc-campaign-dashboard .gdc-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gdc-campaign-dashboard table textarea {
  min-height: 60px;
}

/* Digital Content admin surface and badges */
.gdc-app-content .gdc-admin-surface {
  position: relative;
  margin-top: 28px;
  padding: 32px 36px;
  border-radius: 26px;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.96), rgba(46, 16, 101, 0.88));
  box-shadow: 0 36px 70px rgba(15, 23, 42, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
}

.gdc-app-content .gdc-admin-surface h2 {
  color: #e0e7ff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 15px;
  margin-top: 0;
  margin-bottom: 18px;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-toolbar,
.gdc-app-content .gdc-admin-surface .gdc-posts-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-filters,
.gdc-app-content .gdc-admin-surface .gdc-posts-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-filter,
.gdc-app-content .gdc-admin-surface .gdc-posts-filter {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.65);
  color: #cbd5f5;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 160ms ease;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-filter:hover {
  border-color: #7c3aed;
  color: #fff;
  background: rgba(76, 29, 149, 0.65);
  box-shadow: 0 10px 22px rgba(76, 29, 149, 0.35);
}

.gdc-app-content .gdc-admin-surface .gdc-pages-filter.is-active,
.gdc-app-content .gdc-admin-surface .gdc-posts-filter.is-active {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  border-color: transparent;
  color: #0f172a;
  box-shadow: 0 16px 32px rgba(99, 102, 241, 0.45);
}

.gdc-app-content .gdc-admin-surface .gdc-toolbar-button {
  border-radius: 999px;
  padding: 9px 22px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  border: none;
  color: #0f172a;
  box-shadow: 0 18px 38px rgba(99, 102, 241, 0.42);
}

.gdc-app-content .gdc-admin-surface .gdc-table-wrap {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  overflow: hidden;
  background: linear-gradient(170deg, rgba(15, 23, 42, 0.92), rgba(30, 64, 175, 0.55));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.gdc-app-content .gdc-admin-surface .gdc-pages-table,
.gdc-app-content .gdc-admin-surface .gdc-posts-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-table thead th,
.gdc-app-content .gdc-admin-surface .gdc-posts-table thead th {
  background: rgba(129, 140, 248, 0.14);
  color: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
  border-bottom: 1px solid rgba(129, 140, 248, 0.45);
  padding: 12px 16px;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-table tbody td,
.gdc-app-content .gdc-admin-surface .gdc-posts-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  color: #e2e8f0;
  font-size: 14px;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-table tbody tr.gdc-page-row:hover,
.gdc-app-content .gdc-admin-surface .gdc-posts-table tbody tr.gdc-page-row:hover {
  background: rgba(46, 16, 101, 0.28);
}

.gdc-app-content .gdc-admin-surface .gdc-pages-table .column-title,
.gdc-app-content .gdc-admin-surface .gdc-posts-table .column-title {
  min-width: 280px;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-table .column-title a,
.gdc-app-content .gdc-admin-surface .gdc-posts-table .column-title a {
  color: #f8fafc;
  font-weight: 600;
  text-decoration: none;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-table .column-title a:hover,
.gdc-app-content .gdc-admin-surface .gdc-posts-table .column-title a:hover {
  color: #fff;
  text-decoration: underline;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-table .column-shares,
.gdc-app-content .gdc-admin-surface .gdc-posts-table .column-shares,
.gdc-app-content .gdc-admin-surface .gdc-pages-table .column-seo,
.gdc-app-content .gdc-admin-surface .gdc-posts-table .column-seo,
.gdc-app-content .gdc-admin-surface .gdc-pages-table .column-readability,
.gdc-app-content .gdc-admin-surface .gdc-posts-table .column-readability {
  text-align: center;
  width: 80px;
  max-width: 90px;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-table .column-status,
.gdc-app-content .gdc-admin-surface .gdc-posts-table .column-status {
  text-align: center;
  width: 96px;
  max-width: 105px;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-table .column-actions,
.gdc-app-content .gdc-admin-surface .gdc-posts-table .column-actions {
  width: 220px;
}

.gdc-app-content .gdc-admin-surface .gdc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gdc-app-content .gdc-admin-surface .gdc-action {
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: #f8fafc;
  transition: transform 140ms ease, box-shadow 160ms ease, filter 140ms ease;
}

.gdc-app-content .gdc-admin-surface .gdc-action:hover,
.gdc-app-content .gdc-admin-surface .gdc-action:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.1);
  box-shadow: 0 18px 36px rgba(129, 140, 248, 0.4);
  border-color: rgba(129, 140, 248, 0.65);
}

.gdc-app-content .gdc-admin-surface .gdc-card--blank {
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  padding: 22px 24px;
  background: rgba(15, 23, 42, 0.6);
  color: #cbd5f5;
}

.gdc-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}

.gdc-status-badge.gdc-status-badge--good {
  background: linear-gradient(130deg, #22c55e, #16a34a);
  color: #042f1a;
}

.gdc-status-badge.gdc-status-badge--info {
  background: linear-gradient(130deg, #38bdf8, #2563eb);
  color: #0f172a;
}

.gdc-status-badge.gdc-status-badge--warning {
  background: linear-gradient(130deg, #fbbf24, #ea580c);
  color: #2d1602;
}

.gdc-status-badge.gdc-status-badge--neutral {
  background: linear-gradient(130deg, #475569, #1e293b);
  color: #e2e8f0;
}

.gdc-status-badge.gdc-status-badge--danger {
  background: linear-gradient(130deg, #f87171, #b91c1c);
  color: #2f0505;
}

/* Modal preview overlay */
.gdc-preview-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.86);
  z-index: 10000;
}

.gdc-preview-modal[hidden] {
  display: none;
}

.gdc-preview-modal__backdrop {
  position: absolute;
  inset: 0;
}

.gdc-preview-modal__dialog {
  position: relative;
  width: 90%;
  max-width: 1180px;
  min-height: 60vh;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.95), rgba(30, 64, 175, 0.75));
  border-radius: 26px;
  box-shadow: 0 36px 70px rgba(15, 23, 42, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gdc-preview-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.24);
}

.gdc-preview-modal__header h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #f8fafc;
}

.gdc-preview-modal__close {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: #f8fafc;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.gdc-preview-modal__close:hover,
.gdc-preview-modal__close:focus-visible {
  filter: brightness(1.08);
}

.gdc-preview-modal__body {
  flex: 1;
}

.gdc-preview-modal__body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #0b1120;
}

@media (max-width: 960px) {
  .gdc-app-content .gdc-admin-surface {
    padding: 24px 20px;
  }

  .gdc-app-content .gdc-admin-surface .gdc-pages-table .column-actions,
  .gdc-app-content .gdc-admin-surface .gdc-posts-table .column-actions {
    width: auto;
  }
}

body.gdc-preview-open {
  overflow: hidden;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-search,
.gdc-app-content .gdc-admin-surface .gdc-posts-search {
  flex: 1;
  min-width: 220px;
  max-width: 380px;
  position: relative;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-search form,
.gdc-app-content .gdc-admin-surface .gdc-posts-search form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gdc-app-content .gdc-admin-surface #gdc-pages-search,
.gdc-app-content .gdc-admin-surface #gdc-posts-search {
  flex: 1;
  min-width: 0;
  border-radius: 999px;
  padding: 9px 44px 9px 16px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.gdc-app-content .gdc-admin-surface #gdc-pages-search:focus,
.gdc-app-content .gdc-admin-surface #gdc-posts-search:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25);
}

.gdc-app-content .gdc-admin-surface .gdc-pages-search__submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #a855f7;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-search__submit:hover {
  color: #f472b6;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-search__submit:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.35);
  border-radius: 999px;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-search__submit .dashicons {
  font-size: 18px;
}

.gdc-app-content .gdc-admin-surface .gdc-posts-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  flex: 1 1 auto;
}

.gdc-app-content .gdc-admin-surface .gdc-posts-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.gdc-app-content .gdc-admin-surface .gdc-posts-control--search {
  flex: 1 1 260px;
  min-width: 260px;
}

.gdc-app-content .gdc-admin-surface .gdc-posts-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #cbd5f5;
}

.gdc-app-content .gdc-admin-surface .gdc-posts-select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.gdc-app-content .gdc-admin-surface .gdc-posts-select:focus {
  outline: none;
  border-color: #a855f7;
  box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.25);
}

.gdc-app-content .gdc-admin-surface .gdc-posts-toolbar-right {
  margin-left: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.gdc-app-content .gdc-admin-surface .gdc-posts-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  margin-left: auto;
}

.gdc-app-content .gdc-admin-surface .gdc-posts-actions .gdc-toolbar-button {
  margin-left: auto;
}

@media (max-width: 960px) {
  .gdc-app-content .gdc-admin-surface .gdc-posts-toolbar-right {
    grid-template-columns: 1fr;
  }

  .gdc-app-content .gdc-admin-surface .gdc-posts-actions {
    justify-content: flex-start;
    margin-left: 0;
  }
}


.gdc-app-content .gdc-admin-surface .gdc-pages-table tbody tr.gdc-page-row td,
.gdc-app-content .gdc-admin-surface .gdc-posts-table tbody tr.gdc-page-row td {
  border-bottom: 0;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-table tbody tr.gdc-page-row--actions td,
.gdc-app-content .gdc-admin-surface .gdc-posts-table tbody tr.gdc-page-row--actions td {
  background: rgba(15, 23, 42, 0.6);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  padding: 14px 16px 18px;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-table tbody tr.gdc-page-row--actions:hover,
.gdc-app-content .gdc-admin-surface .gdc-posts-table tbody tr.gdc-page-row--actions:hover {
  background: rgba(15, 23, 42, 0.6);
}

.gdc-app-content .gdc-admin-surface .gdc-pages-table tbody tr.gdc-pages-empty td,
.gdc-app-content .gdc-admin-surface .gdc-pages-table tbody tr.gdc-pages-error td,
.gdc-app-content .gdc-admin-surface .gdc-posts-table tbody tr.gdc-posts-empty td,
.gdc-app-content .gdc-admin-surface .gdc-posts-table tbody tr.gdc-posts-error td {
  text-align: center;
  color: #94a3b8;
  font-style: italic;
}

.gdc-app-content .gdc-admin-surface .gdc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gdc-app-content .gdc-admin-surface .gdc-actions .gdc-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gdc-app-content .gdc-admin-surface .gdc-action__icon {
  font-size: 16px;
  line-height: 1;
}

.gdc-app-content .gdc-admin-surface .gdc-actions__empty {
  margin: 0;
  color: #94a3b8;
  font-style: italic;
}

.gdc-app-content .gdc-admin-surface .gdc-table-wrap {
  position: relative;
}

.gdc-app-content .gdc-admin-surface .gdc-table-wrap.is-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  z-index: 5;
}

.gdc-app-content .gdc-admin-surface .gdc-table-wrap.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 3px solid rgba(129, 140, 248, 0.35);
  border-top-color: #f472b6;
  animation: gdc-table-spin 0.85s linear infinite;
  z-index: 6;
}

.gdc-app-content .gdc-admin-surface .gdc-pages-table,
.gdc-app-content .gdc-admin-surface .gdc-posts-table tbody tr.gdc-pages-empty td,
.gdc-app-content .gdc-admin-surface .gdc-pages-table,
.gdc-app-content .gdc-admin-surface .gdc-pages-table tbody tr.gdc-pages-error td,
.gdc-app-content .gdc-admin-surface .gdc-posts-table tbody tr.gdc-posts-empty td,
.gdc-app-content .gdc-admin-surface .gdc-posts-table tbody tr.gdc-posts-error td {
  text-align: center;
  color: #94a3b8;
  font-style: italic;
}

.gdc-app-content .gdc-admin-surface .gdc-posts-table .column-featured {
  width: 88px;
  text-align: center;
}

.gdc-app-content .gdc-admin-surface .gdc-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.65);
  overflow: hidden;
}

.gdc-app-content .gdc-admin-surface .gdc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gdc-app-content .gdc-admin-surface .gdc-thumb--empty {
  background: rgba(76, 29, 149, 0.25);
  color: #f7afff;
  font-weight: 600;
  font-size: 18px;
  text-transform: uppercase;
}

.gdc-app-content .gdc-admin-surface .gdc-thumb--empty span {
  display: block;
}

@keyframes gdc-table-spin {
  to {
    transform: rotate(360deg);
  }
}

.gdc-app-content .gdc-admin-surface .gdc-forms-table .column-title {
  min-width: 240px;
}

.gdc-app-content .gdc-admin-surface .gdc-forms-table .column-shortcode {
  font-family: Menlo, Consolas, monospace;
  font-size: 12px;
}

.gdc-app-content .gdc-admin-surface .gdc-forms-table .column-shortcode code {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.15);
  color: #e2e8f0;
}

.gdc-app-content .gdc-admin-surface .gdc-forms-table .column-updated {
  white-space: nowrap;
}

.gdc-app-content .gdc-admin-surface .gdc-forms-table .column-actions {
  width: 280px;
}

.gdc-app-content .gdc-card--inline {
  max-width: 520px;
}

.gdc-app-content .gdc-card--inline p {
  margin-bottom: 14px;
}

.gdc-app-content .gdc-admin-surface .gdc-share-embed {
  margin-top: 20px;
}

.gdc-app-content .gdc-admin-surface .gdc-app-settings {
  margin-top: 28px;
}

.gdc-app-content .gdc-admin-surface .gdc-app-settings select {
  max-width: 320px;
}

.gdc-app-content .gdc-admin-surface .gdc-app-settings label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #cbd5f5;
}

/* New layout adjustments */
.gdc-app-content .gdc-toolbar,
.gdc-app-content .gdc-page-header {
  background: var(--em-glass-bg);
  backdrop-filter: var(--em-glass-blur);
  border: 1px solid var(--em-glass-border);
  border-radius: 24px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--em-panel-shadow);
  position: relative;
  overflow: hidden;
}

.gdc-app-content .gdc-page-header::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at center, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.gdc-app-content .gdc-kicker {
  color: #8b5cf6;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
  font-size: 11px;
  margin-bottom: 12px;
}

.gdc-app-content .gdc-page-header h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--em-text-primary);
  margin: 0 0 16px 0;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #fff, #cbd5f5);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gdc-app-content .gdc-lead {
  color: var(--em-text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 720px;
}

.gdc-app-content .gdc-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--em-glass-border);
  color: var(--em-text-primary);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.gdc-app-content .gdc-pill--accent {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  color: #a5b4fc;
}

/* Top Level Tabs (Pills) */
.gdc-app-content .gdc-tabs--pills {
  background: rgba(15, 23, 42, 0.4) !important;
  backdrop-filter: var(--em-glass-blur) !important;
  border: 1px solid var(--em-glass-border) !important;
  padding: 6px !important;
  border-radius: 16px !important;
  gap: 8px !important;
  margin-bottom: 32px !important;
}

.gdc-app-content .gdc-sub-tab {
  background: transparent !important;
  border: 1px solid transparent !important;
  color: var(--em-text-secondary) !important;
  padding: 10px 24px !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.gdc-app-content .gdc-sub-tab:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--em-text-primary) !important;
}

.gdc-app-content .gdc-sub-tab.active {
  background: var(--em-gradient-indigo) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 24px var(--em-glow-primary) !important;
}

.gdc-app-content .gdc-toolbar,
.gdc-app-content .gdc-posts-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.gdc-app-content .gdc-toolbar__start {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.gdc-app-content .gdc-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.gdc-app-content .gdc-toolbar--forms .gdc-toolbar__start {
  align-items: flex-start;
  max-width: 520px;
  gap: 10px;
}

.gdc-app-content .gdc-forms-summary h3 {
  margin: 0;
  font-size: 18px;
  color: #e0e7ff;
}

.gdc-app-content .gdc-forms-summary p {
  margin: 4px 0 0;
  color: #cbd5f5;
  max-width: 520px;
}

.gdc-app-content .gdc-pages-search,
.gdc-app-content .gdc-posts-toolbar form {
  position: relative;
  min-width: 260px;
}

.gdc-app-content .gdc-pages-search input,
.gdc-app-content .gdc-posts-toolbar input {
  width: 100%;
  padding: 10px 42px 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.gdc-app-content .gdc-pages-search input:focus,
.gdc-app-content .gdc-posts-toolbar input:focus {
  border-color: #818cf8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.35);
}

.gdc-app-content .gdc-pages-search__submit,
.gdc-app-content .gdc-posts-search__submit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #a855f7;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gdc-app-content .gdc-toolbar__actions .gdc-toolbar-button {
  margin-left: 0;
}

.gdc-app-content .gdc-toolbar__actions .button-secondary.gdc-toolbar-button {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(129, 140, 248, 0.35);
  color: #e0e7ff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.45);
}

.gdc-app-content .gdc-toolbar__actions .button-secondary.gdc-toolbar-button:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(129, 140, 248, 0.65);
  color: #f8fafc;
}

.gdc-app-content .gdc-posts-actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-left: auto;
}

.gdc-app-content .gdc-forms-table code {
  font-size: 12px;
  background: rgba(148, 163, 184, 0.15);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}

.gdc-app-content .gdc-error-row td {
  text-align: center;
  color: #94a3b8;
  font-style: italic;
}

.gdc-modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 18, 28, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 28px;
  z-index: 1000;
}

.gdc-modal[hidden] {
  display: none;
}

.gdc-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: #0f172a;
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(8, 11, 18, 0.65);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.gdc-modal__dialog h2 {
  margin: 0;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  color: #e0e7ff;
  font-size: 18px;
}

.gdc-modal__dialog iframe {
  border: 0;
  width: 100%;
  min-height: 70vh;
  background: #0f172a;
}

.gdc-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: rgba(15, 23, 42, 0.6);
  color: #f1f5f9;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gdc-modal__close:hover {
  background: rgba(129, 140, 248, 0.3);
  color: #fff;
}

body.gdc-modal-open {
  overflow: hidden;
}

.gdc-content-settings .gdc-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.gdc-content-settings .gdc-tab {
  border: 1px solid #2a2f3a;
  background: #11151d;
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

.gdc-content-settings .gdc-tab.active {
  background: linear-gradient(180deg, #4f46e5, #3b82f6);
  color: #fff;
  border-color: transparent;
}

.gdc-content-settings .gdc-tabpanel {
  background: #101522;
  border: 1px solid #243043;
  border-radius: 18px;
  padding: 28px 32px;
  color: #dbe4f3;
}

.gdc-content-settings .gdc-embed-wrap iframe {
  height: 900px;
}

.gdc-app-content .gdc-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 6px;
}

.gdc-app-content .gdc-item-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gdc-app-content .gdc-item-meta .gdc-item-path {
  font-family: Menlo, Consolas, monospace;
  opacity: 0.85;
}

.gdc-app-content .gdc-admin-surface .gdc-posts-table .column-featured {
  width: 100px;
  max-width: 110px;
  text-align: center;
}

.gdc-app-content .gdc-admin-surface .gdc-posts-table .column-featured img {
  display: inline-block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #0f172a;
}

.gdc-app-content .gdc-quick-links {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gdc-app-content .gdc-quick-links .gdc-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.24);
  padding: 18px;
  border-radius: 18px;
  color: #cbd5f5;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.gdc-app-content .gdc-quick-links .gdc-card h3 {
  margin-top: 0;
}

.gdc-app-content .gdc-quick-links .gdc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(99, 102, 241, 0.35);
}

/* Email workspace styling */
.gdc-app-content .gdc-email-surface {
  margin-top: 24px;
}

.gdc-app-content .gdc-email-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.gdc-app-content .gdc-email-card {
  padding: 24px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 100%;
}

.gdc-app-content .gdc-email-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.gdc-app-content .gdc-email-card p {
  margin: 0;
  color: #cbd5f5;
}

.gdc-app-content .gdc-email-card p+p {
  margin-top: 6px;
}

.gdc-app-content .gdc-email-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.gdc-app-content .gdc-email-controls select {
  min-width: 220px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
}

.gdc-app-content .gdc-email-controls select:focus {
  border-color: #818cf8;
  outline: none;
  box-shadow: 0 0 0 2px rgba(129, 140, 248, 0.35);
}

.gdc-app-content .gdc-email-embed iframe {
  height: 780px;
}

.gdc-app-content .gdc-email-workspace-embed iframe {
  height: 900px;
  min-height: 80vh;
}

.gdc-email-settings .gdc-embed-wrap iframe {
  height: 900px;
  width: 100%;
  border: 0;
  background: #0f172a;
}

.gdc-email-settings-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.gdc-email-settings-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 36px rgba(8, 11, 18, 0.22);
}

.gdc-email-settings-card .dashicons {
  font-size: 22px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.22);
  color: #c7d2fe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.gdc-email-settings-card strong {
  display: block;
  font-size: 14px;
  color: #e2e8f0;
  margin-bottom: 2px;
}

.gdc-email-settings-card p {
  margin: 0;
  color: #cbd5f5;
  font-size: 13px;
  line-height: 1.5;
}

.gdc-email-settings .gdc-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.gdc-email-settings .gdc-tab .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  line-height: 18px;
}

.gdc-email-settings .gdc-tabpanel[hidden] {
  display: none !important;
}

.gdc-email-settings-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 24px;
}

.gdc-email-settings-panel__copy h2 {
  margin-top: 0;
  font-size: 1.4rem;
  color: #f8fafc;
}

.gdc-email-settings-panel__copy p {
  color: #cbd5f5;
  margin-bottom: 16px;
}

.gdc-email-settings-panel__bullets {
  margin: 0;
  padding-left: 20px;
  display: grid;
  row-gap: 10px;
  color: #d1d9ed;
}

.gdc-email-settings-panel__bullets li {
  list-style: disc;
}

.gdc-email-settings-panel__iframe iframe {
  height: 860px;
  width: 100%;
  background: #0f172a;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 22px 46px rgba(8, 11, 18, 0.35);
}



.gdc-pages-menu-embed {
  margin-top: 16px;
}

.gdc-pages-menu-embed .gdc-embed-wrap {
  height: 80vh;
}

.gdc-pages-menu-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #0f1217;
}

.gdc-pages-menu-fallback {
  margin-top: 12px;
}

.gdc-pages-menu-fallback .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Social Scheduler - "Bio-Digital / Glass" Theme
   ========================================================================== */
:root {
  --gdc-glass-bg: rgba(15, 23, 42, 0.65);
  --gdc-glass-border: rgba(255, 255, 255, 0.08);
  --gdc-glass-highlight: rgba(255, 255, 255, 0.03);
  --gdc-primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --gdc-surface-depth: #020617;
  --gdc-text-main: #f8fafc;
  --gdc-text-muted: #94a3b8;
  --gdc-success: #10b981;
}

/* Modal Overlay with scale animation */
#aas-social-poster-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  animation: gdc-fade-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.aas-modal-content {
  background: linear-gradient(165deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.98) 100%);
  box-shadow: 0 0 0 1px var(--gdc-glass-border), 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 100px -20px rgba(99, 102, 241, 0.15);
  /* Glow */
  border-radius: 20px !important;
  transform-origin: center;
  animation: gdc-scale-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Header */
.aas-modal-header {
  background: transparent !important;
  border-bottom: 1px solid var(--gdc-glass-border) !important;
  padding: 20px 30px !important;
}

.aas-modal-title-group h2 {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #fff, #cbd5e1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.aas-modal-close:hover {
  transform: rotate(90deg);
  color: #fff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Tabs */
.aas-modal-tabs {
  background: rgba(0, 0, 0, 0.2) !important;
  gap: 10px;
  padding: 0 30px !important;
}

.aas-tab-btn {
  position: relative;
  font-size: 13px !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.7;
  transition: all 0.3s ease !important;
  border-radius: 8px 8px 0 0;
  margin-top: 5px;
}

.aas-tab-btn:hover {
  opacity: 1;
  background: var(--gdc-glass-highlight) !important;
}

.aas-tab-btn.is-active {
  opacity: 1;
  color: #fff !important;
  background: #1e293b !important;
  /* Tab background matches body? Or distinctive? */
  background: linear-gradient(to top, rgba(99, 102, 241, 0.1), transparent) !important;
  border-bottom: 2px solid #818cf8 !important;
}

.aas-tab-btn.is-active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gdc-primary-gradient);
  box-shadow: 0 -5px 15px rgba(99, 102, 241, 0.6);
}

/* Sidebar Tool */
.aas-side-tool {
  background: rgba(15, 23, 42, 0.3) !important;
  border-right: 1px solid var(--gdc-glass-border) !important;
}

.aas-tool-section label {
  color: #94a3b8 !important;
  letter-spacing: 0.05em;
}

/* Inputs */
.aas-side-tool input,
.aas-side-tool textarea,
#aas-post-content,
#aas-post-time {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(148, 163, 184, 0.1) !important;
  transition: all 0.2s ease;
  color: #e2e8f0 !important;
}

.aas-side-tool input:focus,
#aas-post-content:focus {
  border-color: #818cf8 !important;
  background: rgba(0, 0, 0, 0.4) !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
  outline: none;
}

/* Search Results */
#aas-social-search-results {
  background: #0b101a !important;
  border: 1px solid var(--gdc-glass-border);
}

.aas-search-item {
  border-radius: 6px;
  margin: 2px !important;
  border: 1px solid transparent !important;
}

.aas-search-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Main Content Area */
.aas-main-content {
  background: radial-gradient(circle at top right, rgba(30, 41, 59, 0.4), transparent 40%);
}

#aas-post-content {
  font-size: 15px;
  line-height: 1.6;
}

/* Buttons */
#aas-schedule-btn,
.gdc-success-btn {
  background: var(--gdc-primary-gradient) !important;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  position: relative;
  overflow: hidden;
}

#aas-schedule-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.45);
  filter: brightness(1.1);
}

#aas-schedule-btn:active {
  transform: translateY(1px);
}

/* Platform Badges */
.aas-platform-badge {
  /* Dynamic interaction styles handled via class toggling in JS, but base here */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

/* Animations */
@keyframes gdc-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes gdc-scale-in {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes gdc-pop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

/* Stat Cards */
.aas-stat-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)) !important;
  border: 1px solid var(--gdc-glass-border);
  backdrop-filter: blur(10px);
}

.aas-stat-card:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Channels Grid */
#aas-channels-list {
  display: grid;
  gap: 15px;
}

.aas-channel-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--gdc-glass-border);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s;
}

.aas-channel-card:hover {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(99, 102, 241, 0.3);
}

/* FullCalendar Customizations for Dark Mode */
.fc .fc-toolbar-title {
  color: #f8fafc;
  font-size: 1.25em;
}

.fc .fc-button-primary {
  background: rgba(51, 65, 85, 0.8);
  border: none;
  text-transform: capitalize;
}

.fc .fc-button-primary:hover {
  background: #475569;
}

.fc .fc-button-primary:not(:disabled).fc-button-active {
  background: #6366f1;
}

.fc-theme-standard .fc-scrollgrid {
  border-color: rgba(255, 255, 255, 0.1);
}

.fc-theme-standard td,
.fc-theme-standard th {
  border-color: rgba(255, 255, 255, 0.05);
}


/* Email Panel Styles (Migrated/Polyfilled) */
.gdc-app-content .gdc-email-panel {
  background: #11151d;
  border: 1px solid #27313f;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.gdc-app-content .gdc-email-panel h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #e2e8f0;
}

.gdc-app-content .gdc-email-panel .description {
  color: #94a3b8;
  margin-bottom: 20px;
}

.gdc-app-content .gdc-email-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.gdc-app-content .gdc-email-panel__header--stacked {
  align-items: flex-start;
}

.gdc-email-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.gdc-email-search input {
  background: #0f172a;
  border: 1px solid #334155;
  color: #e2e8f0;
  border-radius: 6px;
  padding: 6px 10px;
}

.gdc-app-content .gdc-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #1e293b;
  color: #94a3b8;
}

.gdc-app-content .gdc-pill--success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.gdc-app-content .gdc-pill--error {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.gdc-app-content .gdc-pill--muted {
  background: #334155;
  color: #94a3b8;
}