/* ============================================================
   PloxAds Dashboard CSS — v1.1.8
============================================================ */
.pdx-app, .pdx-auth-wrap {
  --pdx-brand:       var(--color-brand, #7c3aed);
  --pdx-brand-dark:  var(--color-brand-dark, #5b21b6);
  --pdx-brand-light: var(--color-brand-light, #ede9fe);
  --pdx-title:       var(--color-title, #0f172a);
  --pdx-text-mid:    var(--color-text-mid, #64748b);
  --pdx-muted:       var(--color-muted, #94a3b8);
  --pdx-border:      var(--color-border, #e2e8f0);
  --pdx-card-bg:     #ffffff;
  --pdx-radius-card: 16px;
  --pdx-radius-btn:  50px;
  --pdx-shadow:      0 2px 16px rgba(0,0,0,0.07);
  --pdx-shadow-lg:   0 8px 40px rgba(0,0,0,0.12);
  --pdx-font:        var(--font-main, 'Plus Jakarta Sans', sans-serif);
  --pdx-green: #16a34a; --pdx-yellow: #d97706; --pdx-red: #dc2626;
  font-family: 'Plus Jakarta Sans', sans-serif; color: var(--pdx-title);
}
.pdx-app *, .pdx-auth-wrap *, .pdx-modal * { box-sizing: border-box; }

/* ── Fullscreen ── */
.pdx-fullscreen { background: #f1f5f9; overflow: hidden; }
#pdx-page-root  { display: flex; flex-direction: column; min-height: 100vh; height: 100vh; }
.pdx-app        { display: flex; height: 100vh; overflow: hidden; }

/* ── Sidebar ── */
.pdx-sidebar {
  width: 230px; flex-shrink: 0; height: 100vh; overflow-y: auto;
  background: linear-gradient(180deg, #1a0a3c 0%, #1e1033 50%, #0f1f40 100%);
  display: flex; flex-direction: column; transition: transform .25s ease; position: relative; z-index: 20;
}
.pdx-sidebar-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.06); flex-shrink: 0;
}
.pdx-logo, .pdx-header-logo { display: flex; align-items: center; text-decoration: none; }
.pdx-logo img { max-height: 30px; width: auto; filter: brightness(0) invert(1); }
.pdx-header-logo img { max-height: 28px; width: auto; }
.pdx-logo-text { font-weight: 800; font-size: 17px; color: #fff; }
.pdx-sidebar-toggle { display: none; background: none; border: none; cursor: pointer; color: rgba(255,255,255,.5); width: 24px; height: 24px; }

.pdx-menu { padding: 10px 8px 16px; flex: 1; }
.pdx-menu-label-group { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.25); padding: 12px 10px 6px; text-transform: uppercase; }
.pdx-menu-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-radius: 10px;
  color: rgba(255,255,255,.55); text-decoration: none; font-weight: 600; font-size: 13.5px;
  cursor: pointer; margin-bottom: 2px; border: none; background: none; width: 100%; text-align: left;
  transition: background .15s, color .15s; position: relative;
}
.pdx-menu-icon { width: 17px; height: 17px; flex-shrink: 0; display: flex; }
.pdx-menu-icon svg { width: 100%; height: 100%; }
.pdx-menu-item:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.9); }
.pdx-menu-item.is-active {
  background: linear-gradient(90deg, rgba(124,58,237,.45), rgba(124,58,237,.1));
  color: #fff; border-left: 3px solid #a78bfa; padding-left: 9px;
}
.pdx-menu-item.is-disabled { opacity: .38; cursor: not-allowed; }
.pdx-menu-item.is-disabled:hover { background: none; color: rgba(255,255,255,.38); }
.pdx-soon { margin-left: auto; font-size: 9px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.3); padding: 2px 6px; border-radius: 20px; font-weight: 700; letter-spacing: .03em; }

.pdx-sidebar-footer { padding: 12px 16px 16px; border-top: 1px solid rgba(255,255,255,.06); flex-shrink: 0; }
.pdx-sidebar-footer-text { font-size: 10px; color: rgba(255,255,255,.2); font-weight: 600; letter-spacing: .04em; }

.pdx-sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.6); z-index: 40; }

/* ── Main ── */
.pdx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; height: 100vh; overflow: hidden; }

/* ── Header ── */
.pdx-header {
  display: flex; align-items: center; gap: 12px; padding: 12px 22px;
  background: #fff; border-bottom: 1px solid var(--pdx-border); flex-shrink: 0;
  box-shadow: 0 1px 0 var(--pdx-border);
}
.pdx-header-spacer { flex: 1; }
.pdx-burger { display: none; flex-direction: column; justify-content: center; gap: 4px; width: 28px; height: 28px; background: none; border: none; cursor: pointer; }
.pdx-burger span { display: block; height: 2px; background: var(--pdx-title); border-radius: 2px; }
.pdx-header-logo { display: none; }
.pdx-header-logo img { max-height: 26px; }

.pdx-btn-create {
  display: inline-flex; align-items: center; gap: 7px; background: var(--pdx-brand); color: #fff;
  border: none; padding: 9px 18px; border-radius: var(--pdx-radius-btn); font-weight: 700; font-size: 13.5px;
  cursor: pointer; white-space: nowrap; font-family: 'Plus Jakarta Sans', sans-serif; transition: background .15s, transform .1s;
}
.pdx-btn-create svg { width: 15px; height: 15px; }
.pdx-btn-create:hover { background: var(--pdx-brand-dark); transform: translateY(-1px); }
.pdx-btn-create span { }

.pdx-header-balance {
  display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--pdx-title);
  background: #f8fafc; border: 1px solid var(--pdx-border); padding: 8px 14px;
  border-radius: var(--pdx-radius-btn); cursor: pointer; font-size: 13.5px;
}
.pdx-header-balance svg { width: 16px; height: 16px; color: var(--pdx-brand); }
.pdx-icon-btn { background: none; border: none; cursor: pointer; color: var(--pdx-muted); width: 20px; height: 20px; }
.pdx-icon-btn svg { width: 100%; height: 100%; }

.pdx-user-menu { position: relative; }
.pdx-avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--pdx-brand), var(--pdx-brand-dark)); color: #fff; border: none; font-weight: 800; font-size: 14px; cursor: pointer; }
.pdx-user-dropdown { display: none; position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--pdx-border); border-radius: 14px; box-shadow: var(--pdx-shadow-lg); padding: 14px; width: 220px; z-index: 30; }
.pdx-user-dropdown.is-open { display: block; }
.pdx-user-dropdown-name { font-weight: 700; font-size: 14px; }
.pdx-user-dropdown-email { font-size: 12px; color: var(--pdx-text-mid); margin-bottom: 8px; word-break: break-all; }
.pdx-user-dropdown hr { border: none; border-top: 1px solid var(--pdx-border); margin: 10px 0; }
.pdx-logout-btn { display: flex; align-items: center; gap: 8px; background: none; border: none; color: #dc2626; font-weight: 700; cursor: pointer; padding: 0; font-size: 13.5px; font-family: 'Plus Jakarta Sans', sans-serif; }
.pdx-logout-btn svg { width: 15px; height: 15px; }

/* ── Content ── */
.pdx-content { padding: 20px 24px; flex: 1; overflow-y: auto; background: #f1f5f9; }

/* ── Welcome bar ── */
.pdx-welcome-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 10px;
}
.pdx-welcome-text { display: flex; flex-direction: column; gap: 2px; }
.pdx-greeting { font-size: 20px; font-weight: 800; color: var(--pdx-title); }
.pdx-greeting strong { color: var(--pdx-brand); }
.pdx-welcome-sub { font-size: 13px; color: var(--pdx-text-mid); font-weight: 500; }
.pdx-welcome-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #dcfce7; color: #15803d; border: 1px solid #86efac;
  padding: 6px 14px; border-radius: 30px; font-size: 12px; font-weight: 700;
}
.pdx-welcome-badge svg { width: 13px; height: 13px; }

/* ── Sections ── */
.pdx-section { display: none; }
.pdx-section.is-active { display: block; }

.pdx-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.pdx-section-head h2 { font-size: 20px; font-weight: 800; }

.pdx-range-buttons { display: flex; gap: 4px; background: #fff; border: 1px solid var(--pdx-border); border-radius: var(--pdx-radius-btn); padding: 4px; box-shadow: var(--pdx-shadow); }
.pdx-range-buttons button { border: none; background: none; padding: 6px 14px; border-radius: 30px; font-weight: 700; font-size: 12.5px; cursor: pointer; color: var(--pdx-text-mid); font-family: 'Plus Jakarta Sans', sans-serif; }
.pdx-range-buttons button.is-active { background: var(--pdx-brand); color: #fff; }

/* ── Stat cards ── */
.pdx-cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.pdx-stat-card {
  background: var(--pdx-card-bg); border: 1px solid var(--pdx-border);
  border-radius: var(--pdx-radius-card); padding: 18px 20px;
  box-shadow: var(--pdx-shadow); position: relative; overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.pdx-stat-card:hover { box-shadow: var(--pdx-shadow-lg); transform: translateY(-2px); }
.pdx-stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--pdx-brand), var(--pdx-brand-light)); }
.pdx-stat-label { display: block; font-size: 12px; color: var(--pdx-text-mid); font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.pdx-stat-value { display: block; font-size: 26px; font-weight: 800; color: var(--pdx-title); }

/* ── Cards ── */
.pdx-card { background: var(--pdx-card-bg); border: 1px solid var(--pdx-border); border-radius: var(--pdx-radius-card); padding: 20px; box-shadow: var(--pdx-shadow); margin-bottom: 16px; }
.pdx-card--narrow { max-width: 500px; }
.pdx-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.pdx-card-head h3 { font-size: 15px; font-weight: 800; }
.pdx-hint { color: var(--pdx-text-mid); font-size: 13px; margin-bottom: 14px; line-height: 1.6; }

/* ── Table ── */
.pdx-table-wrap { overflow-x: auto; }
.pdx-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pdx-table th { text-align: left; color: var(--pdx-text-mid); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; padding: 8px 12px; border-bottom: 1px solid var(--pdx-border); white-space: nowrap; }
.pdx-table td { padding: 11px 12px; border-bottom: 1px solid var(--pdx-border); vertical-align: middle; white-space: nowrap; }
.pdx-table tr:last-child td { border-bottom: none; }
.pdx-table tbody tr:hover { background: #fafafa; }
.pdx-empty { text-align: center; color: var(--pdx-muted); padding: 32px !important; white-space: normal !important; }

/* ── Badges ── */
.pdx-badge { display: inline-block; padding: 3px 10px; border-radius: 30px; font-size: 11px; font-weight: 700; }
.pdx-badge--active   { background: #dcfce7; color: #16a34a; }
.pdx-badge--pending  { background: #fef3c7; color: var(--pdx-yellow); }
.pdx-badge--paused   { background: #f1f5f9; color: var(--pdx-text-mid); }
.pdx-badge--rejected { background: #fee2e2; color: #dc2626; }

/* ── Row actions ── */
.pdx-row-actions { display: flex; gap: 7px; }
.pdx-icon-action { background: none; border: 1px solid var(--pdx-border); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; color: var(--pdx-text-mid); display: inline-flex; align-items: center; justify-content: center; }
.pdx-icon-action svg { width: 14px; height: 14px; }
.pdx-icon-action:hover { border-color: #7c3aed; color: var(--pdx-brand); }

.pdx-link-copy { color: var(--pdx-brand); cursor: pointer; font-weight: 700; text-decoration: underline; background: none; border: none; padding: 0; font-size: 13px; font-family: 'Plus Jakarta Sans', sans-serif; }

/* ── FAQ ── */
.pdx-faq details { border-bottom: 1px solid var(--pdx-border); padding: 12px 0; }
.pdx-faq details:last-child { border-bottom: none; }
.pdx-faq summary { font-weight: 700; cursor: pointer; font-size: 14px; }
.pdx-faq p { color: var(--pdx-text-mid); font-size: 13px; margin-top: 8px; line-height: 1.6; }

/* ── Buttons ── */
.pdx-btn-secondary {
  display: inline-flex; align-items: center; gap: 7px; background: #f8fafc; color: var(--pdx-title);
  border: 1px solid var(--pdx-border); padding: 8px 16px; border-radius: var(--pdx-radius-btn);
  font-weight: 700; font-size: 13px; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; transition: background .15s;
}
.pdx-btn-secondary svg { width: 14px; height: 14px; }
.pdx-btn-secondary:hover { background: var(--pdx-border); }

/* ── Modals ── */
.pdx-modal { display: none; position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 200; overflow-y: auto; padding: 32px 20px; backdrop-filter: blur(3px); }
.pdx-modal.is-open { display: block; }
.pdx-modal-card {
  background: #fff; border-radius: 18px; width: 100%; max-width: 480px;
  padding: 26px; box-shadow: 0 8px 40px rgba(0,0,0,.18);
  margin: 0 auto;
}
.pdx-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pdx-modal-head h3 { font-size: 17px; font-weight: 800; }
.pdx-modal-close { background: none; border: none; cursor: pointer; width: 24px; height: 24px; color: var(--pdx-text-mid); flex-shrink: 0; }
.pdx-modal-close svg { width: 100%; height: 100%; }

/* ── Forms ── */
.pdx-app form label, .pdx-modal form label, .pdx-auth-wrap form label { display: block; font-weight: 700; font-size: 12.5px; margin: 13px 0 5px; color: var(--pdx-title); }
.pdx-app input[type="text"], .pdx-app input[type="email"], .pdx-app input[type="url"],
.pdx-app input[type="number"], .pdx-app input[type="password"], .pdx-app select, .pdx-app textarea,
.pdx-modal input, .pdx-modal select, .pdx-modal textarea, .pdx-auth-wrap input {
  width: 100%; padding: 10px 13px; border: 1.5px solid var(--pdx-border); border-radius: 10px;
  font-size: 13.5px; font-family: 'Plus Jakarta Sans', sans-serif; background: #f8fafc; color: var(--pdx-title); transition: border-color .15s;
}
.pdx-app input:focus, .pdx-app select:focus, .pdx-app textarea:focus,
.pdx-modal input:focus, .pdx-modal textarea:focus, .pdx-modal select:focus, .pdx-auth-wrap input:focus {
  outline: none; border-color: #7c3aed; background: #fff; box-shadow: 0 0 0 3px rgba(124,58,237,.08);
}
.pdx-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pdx-btn-primary {
  width: 100%; margin-top: 18px; background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #fff; border: none; padding: 13px; border-radius: 50px;
  font-weight: 800; font-size: 14px; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif;
  transition: opacity .15s, transform .1s; letter-spacing: .01em; display: block;
}
.pdx-btn-primary:hover { opacity: .92; transform: translateY(-1px); }
.pdx-btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.pdx-form-msg { margin-top: 10px; font-size: 13px; font-weight: 600; display: none; padding: 10px 12px; border-radius: 8px; }
.pdx-form-msg.is-error   { display: block; background: #fee2e2; color: #dc2626; }
.pdx-form-msg.is-success { display: block; background: #dcfce7; color: #16a34a; }

/* ── Add Funds ── */
#pdx-stripe-card-element, #pdx-setup-card-element {
  border: 1.5px solid var(--pdx-border); border-radius: 10px; padding: 13px 14px; background: #f8fafc;
}
#pdx-setup-card-element.StripeElement--focus,
#pdx-stripe-card-element.StripeElement--focus { border-color: #7c3aed; background: #fff; }
#pdx-setup-card-element.StripeElement--invalid,
#pdx-stripe-card-element.StripeElement--invalid { border-color: #dc2626; }
.pdx-stripe-card-errors { color: #dc2626; font-size: 12px; margin-top: 8px; min-height: 16px; }
.pdx-stripe-note { font-size: 11.5px; color: var(--pdx-muted); margin-top: 14px; text-align: center; line-height: 1.5; }

.pdx-saved-card-row { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(135deg, #f8fafc, #f1f5f9); border: 1.5px solid var(--pdx-border); border-radius: 12px; padding: 13px 16px; }
.pdx-saved-card-info { display: flex; align-items: center; gap: 12px; }
.pdx-saved-card-logo { display: flex; align-items: center; background: #fff; border: 1px solid var(--pdx-border); border-radius: 8px; padding: 6px 10px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.pdx-saved-card-logo svg { display: block; }
.pdx-saved-card-text { display: flex; flex-direction: column; gap: 2px; }
.pdx-saved-card-brand { font-size: 11px; font-weight: 700; color: var(--pdx-text-mid); text-transform: uppercase; letter-spacing: .05em; }
.pdx-saved-card-num { font-size: 15px; font-weight: 800; color: var(--pdx-title); letter-spacing: .06em; }
.pdx-change-card-btn { background: none; border: none; color: var(--pdx-text-mid); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 8px; border-radius: 6px; font-family: 'Plus Jakarta Sans', sans-serif; }
.pdx-change-card-btn:hover { color: #dc2626; background: #fee2e2; }

.pdx-quick-amounts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pdx-quick-amt { background: var(--pdx-brand-light); color: var(--pdx-brand-dark); border: none; padding: 7px 16px; border-radius: 30px; font-weight: 700; font-size: 13px; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; transition: background .15s; }
.pdx-quick-amt:hover { background: #ddd6fe; }

/* ── Ticket thread ── */
.pdx-ticket-thread { max-height: 260px; overflow-y: auto; margin-bottom: 10px; }
.pdx-ticket-msg { padding: 10px 13px; border-radius: 12px; margin-bottom: 8px; font-size: 13px; line-height: 1.5; max-width: 85%; }
.pdx-ticket-msg.from-user { background: var(--pdx-brand-light); margin-left: auto; color: var(--pdx-brand-dark); }
.pdx-ticket-msg.from-admin { background: #f1f5f9; color: var(--pdx-title); }
.pdx-ticket-msg small { display: block; margin-top: 4px; opacity: .6; font-weight: 600; font-size: 10.5px; }

/* ── Auth screen ── */
.pdx-auth-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 30px 16px; background: #f1f5f9; }
.pdx-auth-box { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; box-shadow: var(--pdx-shadow-lg); padding: 32px 28px; border: 1px solid var(--pdx-border); }
.pdx-auth-logo { text-align: center; margin-bottom: 20px; }
.pdx-auth-logo img { max-height: 36px; }
.pdx-auth-logo-text { font-weight: 800; font-size: 22px; }
.pdx-auth-tabs { display: flex; background: #f1f5f9; border-radius: var(--pdx-radius-btn); padding: 4px; margin-bottom: 18px; }
.pdx-auth-tab { flex: 1; border: none; background: none; padding: 9px; border-radius: 30px; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--pdx-text-mid); font-family: 'Plus Jakarta Sans', sans-serif; }
.pdx-auth-tab.is-active { background: #fff; color: var(--pdx-brand-dark); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.pdx-auth-form { display: none; }
.pdx-auth-form.is-active { display: block; }
.pdx-auth-foot { text-align: center; font-size: 11.5px; color: var(--pdx-muted); margin-top: 16px; }
.pdx-auth-pending-note { font-size: 12px; color: var(--pdx-text-mid); margin-top: 12px; line-height: 1.5; text-align: center; background: #fef9c3; border-radius: 8px; padding: 10px 12px; }
.pdx-alert { padding: 11px 14px; border-radius: 10px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.pdx-alert--error   { background: #fee2e2; color: #dc2626; }
.pdx-alert--success { background: #dcfce7; color: #16a34a; }

/* ── Campaign create modal extras ── */
.pdx-modal-subhead { font-size: 13px; color: var(--pdx-text-mid); margin-top: 3px; }
.pdx-req { color: #dc2626; font-size: 12px; }
.pdx-field-hint { font-size: 11px; color: var(--pdx-muted); margin-top: 3px; }
.pdx-modal-section-label { display: flex; align-items: center; }

.pdx-url-source-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.pdx-src-tab {
  background: #f1f5f9; border: 1.5px solid var(--pdx-border);
  color: var(--pdx-text-mid); padding: 7px 16px; border-radius: 30px;
  font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all .15s; display: inline-flex; align-items: center; gap: 5px;
}
.pdx-src-tab.is-active { background: #7c3aed; color: #fff; border-color: #7c3aed; }
.pdx-src-tab:hover:not(.is-active) { border-color: #7c3aed; color: #7c3aed; }
.pdx-src-tab--small { padding: 4px 10px; font-size: 11px; }
.pdx-import-badge {
  background: #e8e0fb; color: #5b21b6;
  padding: 2px 7px; border-radius: 10px; font-size: 10px; font-weight: 700;
}
.pdx-src-tab.is-active .pdx-import-badge { background: rgba(255,255,255,.2); color: #fff; }

.pdx-file-drop {
  border: 2px dashed var(--pdx-border); border-radius: 12px; padding: 32px 20px;
  text-align: center; cursor: pointer; transition: all .15s; background: #fafafa;
}
.pdx-file-drop:hover, .pdx-file-drop.is-over { border-color: #7c3aed; background: var(--pdx-brand-light); }
.pdx-file-drop-icon { color: var(--pdx-muted); margin-bottom: 10px; }
.pdx-file-drop:hover .pdx-file-drop-icon, .pdx-file-drop.is-over .pdx-file-drop-icon { color: var(--pdx-brand); }
.pdx-file-drop-text { font-size: 13.5px; font-weight: 600; color: var(--pdx-title); }
.pdx-file-link { color: var(--pdx-brand); text-decoration: underline; cursor: pointer; }
.pdx-file-drop-hint { font-size: 11px; color: var(--pdx-muted); margin-top: 6px; }
.pdx-import-result-head { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 6px; }
.pdx-import-result-head span { font-size: 12.5px; font-weight: 700; color: #16a34a; }

/* ── Invoice button ── */
.pdx-invoice-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f1f5f9; color: var(--pdx-text-mid); border: 1px solid var(--pdx-border);
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: all .15s;
}
.pdx-invoice-btn:hover { background: var(--pdx-brand-light); color: var(--pdx-brand-dark); border-color: #7c3aed; }

/* ── Ticket CTA ── */
.pdx-ticket-cta {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  background: linear-gradient(135deg, #1e1033 0%, #2d1b5e 100%);
  border-radius: var(--pdx-radius-card); padding: 22px 24px; margin-bottom: 18px;
}
.pdx-ticket-cta-content { display: flex; align-items: center; gap: 16px; }
.pdx-ticket-cta-icon { width: 44px; height: 44px; background: rgba(255,255,255,.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #a78bfa; }
.pdx-ticket-cta-icon svg { width: 22px; height: 22px; }
.pdx-ticket-cta-title { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 3px; }
.pdx-ticket-cta-sub { font-size: 13px; color: rgba(255,255,255,.6); }
.pdx-btn-ticket {
  display: inline-flex; align-items: center; gap: 8px; background: #7c3aed; color: #fff;
  border: none; padding: 11px 22px; border-radius: var(--pdx-radius-btn); font-weight: 700;
  font-size: 13.5px; cursor: pointer; white-space: nowrap; font-family: 'Plus Jakarta Sans', sans-serif;
  transition: background .15s, transform .1s; flex-shrink: 0;
}
.pdx-btn-ticket svg { width: 15px; height: 15px; }
.pdx-btn-ticket:hover { background: #5b21b6; transform: translateY(-1px); }

/* ── Wide modal ── */
.pdx-modal-card--wide { max-width: 580px; }
.pdx-modal-section-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--pdx-text-mid); margin: 18px 0 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--pdx-border);
}
.pdx-modal-section-label:first-of-type { margin-top: 4px; }

.pdx-campaign-notice {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fef9c3; border: 1px solid #fde68a; border-radius: 10px;
  padding: 12px 14px; margin-top: 18px; font-size: 13px; color: #92400e; line-height: 1.5;
}
.pdx-campaign-notice svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: #d97706; }

/* ── Responsive ticket CTA ── */
@media (max-width: 600px) {
  .pdx-ticket-cta { flex-direction: column; align-items: flex-start; }
  .pdx-btn-ticket { width: 100%; justify-content: center; }
}
@media (max-width: 900px) {
  .pdx-header-logo { display: flex; }
  .pdx-burger { display: flex; }
  .pdx-sidebar { position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; transform: translateX(-100%); width: 260px; box-shadow: 0 0 40px rgba(0,0,0,.3); height: 100vh; }
  .pdx-sidebar.is-open { transform: translateX(0); }
  .pdx-sidebar-toggle { display: block; }
  .pdx-sidebar-overlay.is-open { display: block; }
  .pdx-btn-create span { display: none; }
  .pdx-form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pdx-header { padding: 10px 14px; gap: 8px; }
  .pdx-content { padding: 14px; }
}
