:root{
  /* Brand-ish palette (QuePedal vibe) */
  --ce-accent:#003482;
  --ce-accent-2:#F2A100;
  --ce-focus:rgba(37,99,235,.18);

  --ce-bg:#ffffff;
  --ce-surface:#ffffff;
  --ce-page:#f4f7fb;
  --ce-border:#e5e7eb;
  --ce-text:#111827;
  --ce-muted:#6b7280;
  --ce-primary:#0f172a;
  --ce-primary-contrast:#ffffff;
  --ce-radius:16px;
  --ce-radius-sm:12px;
  --ce-shadow:0 1px 2px rgba(16,24,40,.06),0 6px 24px rgba(16,24,40,.08);
}

/* Utility */
.ce-flex{display:flex}
.ce-justify-between{justify-content:space-between}
.ce-align-center{align-items:center}
.ce-gap-sm{gap:10px}
.ce-ml-xs{margin-left:8px}
.ce-mb-0{margin-bottom:0}

/* Defensive reset (Elementor/themes) */
.ce-portal, .ce-portal *{ box-sizing:border-box; }
.ce-portal *::before, .ce-portal *::after{ box-sizing:border-box; }
.ce-portal img{max-width:100%;height:auto;}
.ce-portal input, .ce-portal select, .ce-portal textarea{
  max-width:100% !important;
  width:100%;
  box-sizing:border-box !important;
}
.ce-portal label{display:block;}
.ce-portal form{margin:0;}

/* Container */
.ce-portal{
  color:var(--ce-text);
  background:linear-gradient(180deg, rgba(0,52,130,.06), rgba(242,161,0,.04) 36%, var(--ce-page) 100%);
  border-radius:24px;

  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,Apple Color Emoji,Segoe UI Emoji;
}
.ce-container{
  max-width:1180px;
  margin:0 auto;
  padding:24px 16px;
}

/* Typography */
.ce-h2{font-size:34px;line-height:1.15;margin:0 0 10px;letter-spacing:-.02em}
.ce-h3{font-size:18px;line-height:1.3;margin:0 0 10px}
.ce-h4{font-size:14px;line-height:1.3;margin:14px 0 8px}
.ce-subtitle{color:var(--ce-muted);font-size:14px;line-height:1.45}
.ce-small{font-size:12px;color:var(--ce-muted);margin-top:6px;line-height:1.4}
.ce-prose{color:#374151}
.ce-prose strong{font-weight:800;color:#111827}
.ce-prose p{margin:10px 0}
.ce-divider{height:1px;background:var(--ce-border);margin:14px 0}

/* Panels / cards */
.ce-panel{
  background:var(--ce-surface);
  overflow:hidden;
  border:1px solid var(--ce-border);
  border-radius:var(--ce-radius);
  box-shadow:var(--ce-shadow);
  padding:16px;
}

/* Public cards grid */
.ce-portal-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}
.ce-card{display:block;border:1px solid var(--ce-border);border-radius:var(--ce-radius);overflow:hidden;text-decoration:none;background:#fff;box-shadow:var(--ce-shadow)}
.ce-card-img{width:100%;height:150px;object-fit:cover;display:block}
.ce-card-body{padding:12px}
.ce-card-body h3{margin:0 0 6px;font-size:16px;color:var(--ce-text)}
.ce-card-body p{margin:0;color:var(--ce-muted);font-size:13px;line-height:1.35}

/* Top header blocks */
.ce-portal-header{display:flex;gap:14px;align-items:flex-end;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap}

/* Event page: tighter spacing between title and info boxes */
.ce-event .ce-portal-header{margin-bottom:6px;}
.ce-event .ce-h2{margin:0;}

/* Auth layouts */
.ce-auth{max-width:980px;margin:0 auto;}
.ce-auth .ce-portal-header{margin-bottom:8px;}

/* Forms */
.ce-form{margin-top:12px}
.ce-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ce-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.ce-field label{font-size:13px;font-weight:600;color:var(--ce-text)}
.ce-req{color:#dc2626;font-weight:700}
.ce-field input,
.ce-field select,
.ce-field textarea{
  width:100%;
  padding:11px 12px;
  border:1px solid var(--ce-border);
  border-radius:var(--ce-radius-sm);
  background:#fff;
  color:var(--ce-text);
  outline:none;
  min-width:0;
}
.ce-field textarea{min-height:96px;resize:vertical}
.ce-field input:focus,
.ce-field select:focus,
.ce-field textarea:focus{border-color:var(--ce-accent);box-shadow:0 0 0 4px var(--ce-focus)}
.ce-field-full{grid-column:1 / -1}

.ce-radio{display:flex;gap:10px;flex-wrap:wrap}
.ce-radio-item{display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--ce-border);border-radius:999px;background:#fff;color:var(--ce-text);font-size:13px}
.ce-radio-item input{width:auto;padding:0;margin:0}

.ce-check{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--ce-text);font-weight:600}
.ce-check input{width:auto;padding:0;margin:0}

.ce-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.ce-actions--sticky{justify-content:flex-start}

/* Subsection inside a panel/card (used for "Campos extras do formulário" so it doesn't look like a separate box) */
.ce-subsection{margin-top:12px;padding-top:0;border-top:0}
.ce-subsection-head{display:flex;flex-direction:column;gap:6px;margin-bottom:10px}

/* Fallback access (CPF + validação) */
.ce-fb-field-phone{display:none}
.ce-fb-mode-phone .ce-fb-field-birth{display:none}
.ce-fb-mode-phone .ce-fb-field-phone{display:block}

/* Form builder (Campos extras) */
.ce-builder{display:grid;gap:10px;}
.ce-builder-head{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ce-builder-rows{display:grid;gap:10px;}
.ce-builder-row{border:1px solid var(--ce-border);border-radius:var(--ce-radius);padding:12px;background:#fff;box-shadow:var(--ce-shadow)}
.ce-builder-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px;align-items:end}
.ce-builder-grid .ce-field{margin:0}
.ce-builder-actions{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-top:10px}

/* Square preview */
.ce-square-preview{width:160px;height:160px;object-fit:cover;border-radius:14px;border:1px solid var(--ce-border);box-shadow:var(--ce-shadow);}

/* Ticket batches */
.ce-batches-box{border:1px dashed var(--ce-border);border-radius:var(--ce-radius);padding:12px;background:#fff}
.ce-batch-rows{display:grid;gap:10px;margin-top:10px}
.ce-batch-row{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:10px;align-items:end}
.ce-batch-row .ce-btn{height:42px}
@media (max-width: 720px){
  .ce-batch-row{grid-template-columns:1fr;}
  .ce-batch-row .ce-btn{width:100%}
}
.ce-mini{font-size:12px;color:var(--ce-muted);}
.ce-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;border:1px solid var(--ce-border);background:#fff;font-size:12px;color:var(--ce-muted)}
.ce-pill--answered{border-color:#bbf7d0;background:#f0fdf4;color:#166534}
.ce-danger{color:#b91c1c;border-color:#fecaca;background:#fef2f2}

/* Buttons */
.ce-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border-radius:999px;border:1px solid var(--ce-border);background:#fff;color:var(--ce-text);cursor:pointer;text-decoration:none;font-weight:600;font-size:13px}
.ce-btn:hover{filter:brightness(.98)}
.ce-btn-primary{background:linear-gradient(180deg, var(--ce-accent), #001f52);color:var(--ce-primary-contrast);border-color:rgba(0,0,0,.06)}
.ce-btn-secondary{background:#fff;color:var(--ce-text)}
.ce-btn-secondary{border-color:rgba(0,0,0,.12)}

/* Auth layouts */
.ce-auth{max-width:980px;margin:0 auto;}

/* Better spacing between cards inside Elementor containers */
.ce-portal .ce-panel + .ce-panel{margin-top:14px;}

/* Alerts */
.ce-alert{padding:10px 12px;border-radius:14px;margin:12px 0;font-size:13px;border:1px solid var(--ce-border)}
.ce-alert-success{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.ce-alert-error{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.ce-alert-warn{background:#fffbeb;border-color:#fde68a;color:#92400e}

/* Honeypot field (anti-spam) */
.ce-hp{position:absolute;left:-9999px;top:-9999px;height:1px;width:1px;overflow:hidden;opacity:0}

/* Event */
.ce-event{display:grid;gap:14px}

/* Spacing utilities */
.ce-mt{margin-top:14px}
.ce-mt-sm{margin-top:10px}

/* Event layout */
.ce-event-layout{display:grid;grid-template-columns:1fr 420px;gap:14px;align-items:start}
.ce-event-left,.ce-event-right{min-width:0}
.ce-event-desc .ce-prose{font-size:15px;line-height:1.7;color:#374151}
.ce-event-desc .ce-prose p{margin:10px 0}
.ce-register{padding-top:18px}
.ce-pay-hint{font-size:13px;line-height:1.45;color:var(--ce-muted);padding:10px 12px;border-radius:14px;border:1px dashed rgba(0,0,0,.12);background:linear-gradient(180deg,#fff,#fbfdff)}

/* Pricing / batches: consistent typography */
.ce-paybox .ce-price{font-size:15px;line-height:1.35;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ce-paybox .ce-price strong{font-size:18px;letter-spacing:-.01em}
.ce-price-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ce-price-label{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--ce-muted)}
.ce-price-amount{font-size:22px;font-weight:800;letter-spacing:-.02em;color:var(--ce-text)}
.ce-batch-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ce-batch-sub{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.ce-batches-title{margin-top:10px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--ce-muted)}
.ce-batch-list li{display:flex;flex-wrap:wrap;gap:8px;align-items:baseline}
.ce-batch-list li strong{font-size:16px;letter-spacing:-.01em}

.ce-batch-list{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:8px}
.ce-batch-list li{padding:10px 12px;border-radius:14px;border:1px solid var(--ce-border);background:#fff}
.ce-batch-list li.is-active{border-color:rgba(59,130,246,.35);background:linear-gradient(180deg,#fff,rgba(59,130,246,.06));box-shadow:0 10px 24px rgba(2,6,23,.08)}
.ce-pill-active{background:rgba(59,130,246,.10);border-color:rgba(59,130,246,.25);color:#1e40af;font-weight:750}

/* PIX */
.ce-pixbox{padding:16px}
.ce-pixbox-title{font-size:15px;font-weight:750;letter-spacing:-.01em;color:var(--ce-text)}
.ce-pixbox-grid{display:grid;grid-template-columns:220px 1fr;gap:12px;align-items:start}
.ce-pixbox-qr{display:flex;justify-content:center}
.ce-pix-qr{max-width:220px;width:100%;border-radius:16px;border:1px solid var(--ce-border);box-shadow:var(--ce-shadow)}
.ce-pixbox-copy textarea{min-height:110px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;line-height:1.35}


/* Tabs (Minhas Inscrições) */

/* -----------------------------
   Minhas Inscrições (login cards)
-------------------------------- */
.ce-auth-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px 0}
@media (max-width: 820px){.ce-auth-grid{grid-template-columns:1fr}}

.ce-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}
.ce-tab{border:1px solid var(--ce-border);border-radius:var(--ce-radius);padding:14px;background:#fff;box-shadow:var(--ce-shadow)}

/* List items */
.ce-list{display:grid;gap:12px}
.ce-item{border:1px solid var(--ce-border);border-radius:var(--ce-radius);padding:14px;background:#fff;box-shadow:var(--ce-shadow)}

/* Dashboard */
.ce-dashboard{display:grid;gap:14px}
.ce-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ce-split{display:grid;grid-template-columns:340px 1fr;gap:14px;align-items:start}
.ce-left,.ce-right{min-width:0}
.ce-event-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.ce-event-list li{padding:10px 0;border-bottom:1px solid #f1f5f9}
.ce-event-list a{text-decoration:none;color:var(--ce-text);font-weight:700}
.ce-badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:12px;margin-left:6px;border:1px solid var(--ce-border)}
.ce-badge-ok{background:#ecfdf5;color:#065f46;border-color:#a7f3d0}
.ce-badge-warn{background:#fffbeb;color:#92400e;border-color:#fde68a}
.ce-badge-pending{background:rgba(59,130,246,.12);border-color:rgba(59,130,246,.28);color:#1e40af}
.ce-planbox{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.ce-plan{border:1px solid var(--ce-border);border-radius:var(--ce-radius);padding:12px;background:#fff}

/* Responsive */
@media (max-width: 900px){
  .ce-form-grid{grid-template-columns:1fr}
  .ce-tabs{grid-template-columns:1fr}
  .ce-split{grid-template-columns:1fr}
  .ce-builder-grid{grid-template-columns:1fr}
  .ce-event-layout{grid-template-columns:1fr}
  .ce-pixbox-grid{grid-template-columns:1fr}
  .ce-h2{font-size:28px}

  /* Event page spacing (mobile) */
  .ce-event .ce-portal-header{margin-bottom:4px;}
  .ce-hero{height:200px;margin-bottom:10px;}
  /* Slightly tighter spacing on smaller screens */
  .ce-event-info{margin:8px 0 18px;}

  /* Gallery slider (mobile) */
  .ce-slide img{height:220px;}
  .ce-slider-btn{width:38px;height:38px;font-size:20px;}
}


/* Hero */
.ce-hero{
  width:100%;
  height:240px;
  border-radius:20px;
  background-size:cover;
  background-position:center;
  margin-bottom:14px;
  box-shadow:var(--ce-shadow);
}

/* Event info card */
/* Keep a comfortable but not oversized gap before the next row (Sobre/Valor). */
.ce-event-info{ margin:10px 0 22px; }
.ce-info-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.ce-info-item{
  padding:14px 14px;
  border:1px solid var(--ce-border);
  border-radius:14px;
  background:linear-gradient(180deg, #fff, #fbfdff);
}
.ce-info-label{ font-size:12px; color:var(--ce-muted); margin-bottom:6px; }
.ce-info-value{ font-weight:650; }

/* Gallery (event page slider) */
.ce-gallery-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:10px}
.ce-gallery .ce-mini{margin:0}
.ce-slider{position:relative}
.ce-slider-viewport{overflow:auto;scroll-snap-type:x mandatory;border-radius:18px}
.ce-slider-viewport::-webkit-scrollbar{display:none}
.ce-slider-track{display:flex;gap:0}
.ce-slide{min-width:100%;scroll-snap-align:start;position:relative}
.ce-slide img{display:block;width:100%;height:320px;object-fit:cover}
.ce-slider-btn{position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:42px;height:42px;border-radius:999px;border:1px solid rgba(0,0,0,.10);background:rgba(255,255,255,.92);box-shadow:var(--ce-shadow);cursor:pointer;font-size:22px;line-height:1}
.ce-slider-btn:hover{filter:brightness(.98)}
.ce-slider-btn.ce-prev{left:10px}
.ce-slider-btn.ce-next{right:10px}
.ce-slider-dots{display:flex;gap:8px;justify-content:center;margin-top:10px}
.ce-dot{width:10px;height:10px;border-radius:999px;border:1px solid rgba(0,0,0,.14);background:rgba(0,0,0,.10);cursor:pointer}
.ce-dot.is-active{background:var(--ce-accent);border-color:rgba(0,0,0,.06)}

/* Organizer gallery thumbs */
.ce-gallery-admin{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.ce-gallery-item{position:relative;display:inline-flex;align-items:center;justify-content:center}
.ce-gallery-thumb{width:72px;height:72px;object-fit:cover;border-radius:14px;border:1px solid var(--ce-border);box-shadow:var(--ce-shadow)}
.ce-gallery-remove{position:absolute;top:-8px;right:-8px;width:26px;height:26px;border-radius:999px;border:1px solid var(--ce-border);background:#fff;box-shadow:var(--ce-shadow);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;line-height:1;font-weight:800;color:#111;}
.ce-thumb-lg{width:140px;height:140px}
.ce-single-image{margin-top:10px;margin-bottom:10px}
.ce-single-remove{position:absolute;top:-8px;right:-8px;width:26px;height:26px;border-radius:999px;border:1px solid var(--ce-border);background:#fff;box-shadow:var(--ce-shadow);display:flex;align-items:center;justify-content:center;font-size:18px;line-height:1;cursor:pointer}

.ce-gallery-remove:hover{transform:translateY(-1px)}

/* Better spacing for tab buttons */
.ce-tab .ce-form-grid{ margin-bottom:12px; }

/* Coupons (organizer panel) */
.ce-coupon-grid{grid-template-columns:1.2fr 1fr .7fr .9fr;align-items:end}
@media (max-width: 980px){.ce-coupon-grid{grid-template-columns:1fr 1fr}}
@media (max-width: 560px){.ce-coupon-grid{grid-template-columns:1fr}}
.ce-tab .ce-btn{ margin-top:10px; }

/* Plan status card */
.ce-plan-status{ margin:0 0 16px; padding:18px; }
.ce-billing-cards{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:12px 0 14px;
}
.ce-billing-card{
  border:1px solid var(--ce-border);
  border-radius:16px;
  padding:14px;
  background:#fff;
}
.ce-billing-title{ font-weight:700; margin-bottom:4px; }
.ce-badge{ display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; margin-left:8px; border:1px solid var(--ce-border); }
.ce-badge-ok{ background:rgba(34,197,94,.12); border-color:rgba(34,197,94,.28); color:#166534; }
.ce-badge-warn{ background:rgba(245,158,11,.12); border-color:rgba(245,158,11,.28); color:#92400e; }

/* Extras builder */
.ce-extra-builder{ margin-top:10px; }
.ce-extra-head{ display:flex; justify-content:flex-end; margin-bottom:10px; }
.ce-extra-row{
  display:grid;
  grid-template-columns: 1.2fr .8fr 1.2fr .6fr auto;
  gap:12px;
  align-items:end;
  padding:12px;
  border:1px solid var(--ce-border);
  border-radius:16px;
  background:#fff;
  margin-bottom:10px;
}
.ce-btn-danger{
  background:#ef4444;
  color:#fff;
  border:none;
}
.ce-btn-danger:hover{ filter:brightness(.96); }

/* Responsive fixes */
@media (max-width: 860px){
  .ce-info-grid{ grid-template-columns:1fr; }
  .ce-billing-cards{ grid-template-columns:1fr; }
  .ce-extra-row{
    grid-template-columns:1fr;
  }
  .ce-extra-row .ce-btn-danger{ width:100%; }
}


/* --- UI fixes v1.2.4 --- */
.ce-details{margin-bottom:12px;}
.ce-plan-status form{margin-top:12px;}
.ce-actions{margin-top:14px;}
.ce-actions .ce-btn{margin-top:0;}
/* Intro billing cards (different from plan cards) */
.ce-billing-intro{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:10px 0 18px;}
@media (max-width: 860px){.ce-billing-intro{grid-template-columns:1fr;}}
.ce-billing-intro-card{
  border:1px solid rgba(0,0,0,.06);
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.00));
  border-radius:18px;
  padding:18px 18px;
}
.ce-billing-title{font-weight:800;font-size:22px;letter-spacing:-0.02em;}
/* Invoices table */
.ce-invoices .ce-table{width:100%;border-collapse:separate;border-spacing:0;}
.ce-invoices .ce-table th,.ce-invoices .ce-table td{padding:12px 12px;font-size:14px;vertical-align:top;}
.ce-invoices .ce-table thead th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:rgba(0,0,0,.55);}
.ce-invoices .ce-table tbody tr{background:#fff;}
.ce-invoices .ce-table tbody tr+tr td{border-top:1px solid rgba(0,0,0,.06);}
/* Registration cards */
.ce-reg-card{padding:18px;font-size:14px;line-height:1.4;}
.ce-reg-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;}
.ce-reg-title{font-weight:800;font-size:20px;letter-spacing:-0.02em;}
.ce-reg-meta{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:12px;color:rgba(0,0,0,.7);font-size:14px;}
.ce-reg-meta strong{font-weight:800;}
.ce-k{font-size:12px;color:rgba(0,0,0,.55);text-transform:uppercase;letter-spacing:.06em;margin-right:6px;}
.ce-link{font-weight:700;}
.ce-reg-qr{padding:12px 14px;border:1px dashed rgba(0,0,0,.12);border-radius:14px;margin-bottom:14px;}
.ce-qr-wrap{display:flex;gap:14px;align-items:center;margin-top:8px;flex-wrap:wrap;}
.ce-qr-img{width:140px;height:140px;border-radius:14px;border:1px solid rgba(15,23,42,.12);background:#fff;object-fit:cover;}
.ce-qr-side{min-width:160px;}
.ce-qr-side .ce-code{font-weight:900;letter-spacing:.08em;font-size:18px;margin:2px 0 6px 0;}
.ce-proof h4{margin:10px 0 10px;}
.ce-proof .ce-field{margin-top:10px;}
/* Badges */
.ce-badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-weight:800;font-size:12px;letter-spacing:.02em;border:1px solid rgba(0,0,0,.08);}
.ce-badge-success{background:rgba(16,185,129,.10);border-color:rgba(16,185,129,.25);}
.ce-badge-warning{background:rgba(245,158,11,.12);border-color:rgba(245,158,11,.25);}
.ce-badge-danger{background:rgba(239,68,68,.10);border-color:rgba(239,68,68,.25);}
.ce-badge-muted{background:rgba(0,0,0,.04);}
/* Fallback toggle fields */
.ce-fb-field{display:none;}

.ce-proof input[type=file]{margin-top:8px;}
.ce-proof .ce-actions{margin-top:12px;}


/* === Organizer extra sections === */
.ce-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.ce-card-header h2{margin:0;font-size:20px !important;line-height:1.25}
.ce-muted{color:rgba(17,24,39,.65);font-size:14px}
.ce-mt{margin-top:16px}
.ce-mt-sm{margin-top:10px}
.ce-inline{display:inline}
.ce-btn-sm{padding:8px 12px;border-radius:999px;font-size:13px}
.ce-table-wrap{overflow:auto}
.ce-link{color:inherit;text-decoration:underline}

/* Generic tables inside portal cards (used by Inscritos, etc.) */
.ce-table{width:100%;border-collapse:separate;border-spacing:0;min-width:720px;}
.ce-table th,.ce-table td{padding:12px 12px;font-size:14px;vertical-align:top;white-space:nowrap;}
.ce-table thead th{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:rgba(0,0,0,.55);}
.ce-table tbody tr{background:#fff;}
.ce-table tbody tr+tr td{border-top:1px solid rgba(0,0,0,.06);}
.ce-table td .ce-btn{white-space:nowrap;}

@media (max-width: 860px){
  .ce-table{min-width:640px;}
}


/* Proof upload spacing */
.ce-proof form .ce-btn{margin-top:12px}


/* Check-in scanner */
.ce-checkin-scan { margin: 14px 0; }
.ce-scan-header { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:10px; }
.ce-scan-wrap { margin-top:10px; }
.ce-scan-video { width:100%; max-width:560px; border-radius:14px; background:#000; border:1px solid rgba(0,0,0,.08); }
.ce-btn.ce-btn-ghost { background:transparent; border:1px solid rgba(0,0,0,.12); }
.ce-badge { display:inline-block; padding:4px 10px; border-radius:999px; border:1px solid rgba(0,0,0,.12); background:rgba(0,0,0,.03); }

/* === SaaS polish === */
.ce-filterbar{margin-top:12px}
.ce-filter-grid{display:grid;grid-template-columns:1.2fr .7fr 1fr auto;gap:12px;align-items:end}
.ce-field-actions{display:flex;gap:10px;align-items:center;justify-content:flex-start}
@media (max-width: 900px){
  .ce-filter-grid{grid-template-columns:1fr;}
  .ce-field-actions{flex-wrap:wrap}
}

.ce-pagination{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.ce-page{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 12px;border-radius:999px;border:1px solid rgba(0,0,0,.10);text-decoration:none;color:var(--ce-text);background:#fff;font-weight:700}
.ce-page:hover{filter:brightness(.98)}
.ce-page-active{background:linear-gradient(180deg, rgba(0,52,130,.12), rgba(0,52,130,.06));border-color:rgba(0,52,130,.25)}

.ce-pay-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:16px;border:1px solid rgba(0,0,0,.08);background:linear-gradient(180deg, rgba(242,161,0,.10), rgba(255,255,255,1));}
.ce-pay-amount{font-size:14px}

/* Better spacing for file + button blocks */
.ce-proof .ce-actions{gap:12px}
.ce-proof input[type=file]{padding:10px 12px;border-radius:14px;border:1px dashed rgba(0,0,0,.18);background:#fff}

/* Modal */
.ce-modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(15,23,42,.55);z-index:999999}
.ce-modal.open{display:flex}
.ce-modal-card{width:min(520px, calc(100vw - 28px));background:#fff;border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.4);padding:18px}
.ce-modal-title{font-size:16px;font-weight:900;margin:0 0 6px;letter-spacing:-.02em}
.ce-modal-text{margin:0 0 14px;color:rgba(17,24,39,.7);font-size:14px;line-height:1.4}
.ce-modal-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}

/* Loading state */
.ce-loading{opacity:.65;pointer-events:none}
.ce-spinner{display:inline-block;width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;animation:ceSpin .8s linear infinite}
@keyframes ceSpin{to{transform:rotate(360deg)}}


/* Details accordion (organizer) */
.ce-details{border:1px solid rgba(0,0,0,.08); background:#fff; border-radius:16px; padding:0; overflow:hidden;}
.ce-details-summary{list-style:none; cursor:pointer; padding:14px 16px; font-weight:700; display:flex; align-items:center; justify-content:space-between;}
.ce-details-body{padding:0 16px 16px;}
.ce-details-body>.ce-small{margin-top:6px;}

.ce-center{justify-content:center !important; text-align:center;}
.ce-details-summary--primary{
  background: linear-gradient(180deg, rgba(11,22,38,1) 0%, rgba(11,22,38,.92) 100%);
  color:#fff;
}
.ce-details[open] .ce-details-summary--primary{border-bottom:1px solid rgba(255,255,255,.12);}
.ce-details-summary::-webkit-details-marker{display:none;}
.ce-details[open] .ce-details-summary{border-bottom:1px solid rgba(0,0,0,.06);}
.ce-details .ce-form, .ce-details .ce-actions, .ce-details .ce-form-grid, .ce-details .ce-field{padding-left:16px; padding-right:16px;}
.ce-details .ce-actions{padding-bottom:16px;}

/* Organizer event page layout: keep sections aligned and prevent "left squeezed" layout when theme styles interfere */
.ce-event-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start;}
.ce-event-grid .ce-panel{margin-top:0;}
.ce-event-grid .ce-span-2{grid-column:1 / -1;}
.ce-panel-in-details{width:100%;}
@media (max-width: 900px){
  .ce-event-grid{grid-template-columns:1fr;}
  .ce-event-grid .ce-span-2{grid-column:auto;}
}


.ce-form-feedback{min-height:0}


/* Organizer overview */
.ce-overview-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}
.ce-grid{display:grid;gap:14px}
.ce-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ce-grid-4{grid-template-columns:1.3fr 1fr .6fr .9fr}
.ce-gap-sm{gap:12px}
@media (max-width: 860px){.ce-grid-2{grid-template-columns:1fr}}
@media (max-width: 860px){.ce-grid-4{grid-template-columns:1fr}}

/* Organizer overview should be stacked (full-width cards) */
.ce-overview .ce-grid-2{grid-template-columns:1fr}
.ce-card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:14px;box-shadow:0 2px 10px rgba(0,0,0,.04)}
.ce-card-warn{border-color: rgba(220,38,38,.25);background: rgba(220,38,38,.03)}
.ce-card-title{font-weight:700;margin-bottom:6px}
.ce-chart-wrap{width:100%;min-height:220px}
.ce-chart{display:block;width:100%}
.ce-inv-list{display:flex;flex-direction:column;gap:10px;margin-top:10px}
.ce-inv-item{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap;border:1px solid rgba(0,0,0,.06);border-radius:14px;padding:14px;background:#fff}
.ce-inv-title{font-weight:700}
.ce-inv-proof{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.ce-file-btn{cursor:pointer}
.ce-file-btn input[type="file"]{display:none}


/* ------------------------
   Organizer overview polish
   ------------------------ */
.ce-overview{padding:18px;background:linear-gradient(180deg, rgba(0,52,130,.04), rgba(0,0,0,0) 120%);border:1px solid rgba(0,0,0,.06)}
.ce-overview-head{align-items:center}
.ce-overview-head .ce-h3{margin:0;font-size:18px;letter-spacing:-.2px}
.ce-overview-head .ce-small{margin-top:4px}

.ce-overview .ce-grid{gap:16px}
.ce-overview .ce-card{
  border-radius:16px;
  padding:16px;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 10px 24px rgba(16,24,40,.06);
}
.ce-overview .ce-card-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0 0 10px 0;
  font-size:14px;
  font-weight:800;
  letter-spacing:-.2px;
}
.ce-overview .ce-card-title:after{
  content:"";
  display:block;
  flex:1 1 auto;
  height:1px;
  background:rgba(0,0,0,.06);
  margin-left:10px;
}
.ce-overview .ce-chart-wrap{
  margin-top:12px;
  border-radius:14px;
  background:rgba(0,0,0,.02);
  border:1px solid rgba(0,0,0,.05);
  padding:10px;
  min-height:240px;
}
.ce-overview .ce-chart{border-radius:10px}

.ce-overview .ce-inv-list{gap:12px;margin-top:12px}
.ce-overview .ce-inv-item{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  gap:14px;
  padding:12px;
  border-radius:14px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(0,0,0,.06);
}
.ce-overview .ce-inv-main{min-width:0}
.ce-overview .ce-inv-title{font-size:14px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ce-overview .ce-inv-proof{justify-content:flex-end;gap:10px}
.ce-overview .ce-inv-proof .ce-btn{white-space:nowrap}
.ce-overview .ce-badge{border-radius:999px;padding:4px 10px;font-weight:800}
.ce-overview .ce-badge-warn{background:rgba(242,161,0,.12);border:1px solid rgba(242,161,0,.25);color:#7a4b00}

@media (max-width: 860px){
  .ce-overview .ce-inv-item{grid-template-columns:1fr}
  .ce-overview .ce-inv-proof{justify-content:flex-start}
  .ce-overview .ce-card-title:after{display:none}
}

/* Event cards: professional typography + stable sizing under Elementor/themes */
.ce-portal .ce-card--event .ce-card-body{padding:14px 14px 16px}
.ce-portal .ce-card--event .ce-card-title{margin:0 0 10px;font-size:18px;line-height:1.15;font-weight:800;letter-spacing:-.01em;color:var(--ce-text)}
.ce-portal .ce-card--event .ce-card-meta{display:flex;flex-direction:column;gap:6px}
.ce-portal .ce-card--event .ce-card-meta-row{font-size:14px;line-height:1.25;color:var(--ce-muted);font-weight:600}
.ce-portal .ce-card--event .ce-card-meta-row--date{color:#111827;font-weight:700}
.ce-portal .ce-card--event .ce-card-meta-row--date::before{content:'🗓️ ';}
.ce-portal .ce-card--event .ce-card-meta-row--loc::before{content:'📍 ';}
/* Organizer event editor - section cards */
.ce-form-card{
  background:var(--ce-surface);
  border:1px solid var(--ce-border);
  border-radius:18px;
  box-shadow:0 8px 24px rgba(15,23,42,.06);
  overflow:hidden;
}
.ce-form-card__head{
  padding:16px 18px;
  border-bottom:1px solid var(--ce-border);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.ce-form-card__head .ce-h3{ margin:0; }
.ce-form-card__body{ padding:16px 18px; }
.ce-form-card .ce-field + .ce-field{ margin-top:12px; }
.ce-form-card .ce-form-grid{ gap:14px; }
@media (max-width: 720px){
  .ce-form-card__head, .ce-form-card__body{ padding:14px 14px; }
}

/* -----------------------------
   Support (messages)
-------------------------------- */
.ce-support-head{margin-bottom:14px}
.ce-support-head .ce-mini{margin-top:6px}
.ce-support-head .ce-h3{line-height:1.15}

/* Contato (shortcode [ce_contato]) */
.ce-contactbox{max-width:760px;margin:0 auto;border-radius:18px}
.ce-contactbox .ce-support-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;flex-wrap:wrap}
.ce-contactbox .ce-mini{color:var(--ce-muted,#64748b);font-size:13px}
.ce-contactbox .ce-form{width:100%}
.ce-contactbox input,.ce-contactbox textarea,.ce-contactbox select{width:100%;box-sizing:border-box}
.ce-contactbox textarea{min-height:140px;resize:vertical}
.ce-contactbox .ce-actions{display:flex;justify-content:flex-end}
.ce-supportbox .ce-mini{font-size:13px;opacity:.85;margin-top:4px}
.ce-thread{display:flex;flex-direction:column;gap:10px}
.ce-bubble{max-width:92%;border-radius:14px;padding:10px 12px;box-shadow:0 1px 2px rgba(0,0,0,.06)}
.ce-bubble-meta{font-size:12px;opacity:.8;margin-bottom:6px}
.ce-bubble-body p{margin:0 0 8px}
.ce-bubble-body p:last-child{margin-bottom:0}
.ce-bubble-user{align-self:flex-start;background:#fff;border:1px solid rgba(0,0,0,.08)}
.ce-bubble-org{align-self:flex-end;background:rgba(0,52,130,.06);border:1px solid rgba(0,52,130,.18)}
.ce-support-inline .ce-support-body{margin-top:10px}
.ce-support-new{background:rgba(0,0,0,.02)}
.ce-tabs{display:flex;gap:8px;flex-wrap:wrap}
.ce-tab{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border-radius:999px;border:1px solid rgba(0,0,0,.10);text-decoration:none;font-size:13px;color:inherit;background:#fff}
.ce-tab-active{border-color:rgba(0,52,130,.40);background:rgba(0,52,130,.06)}

.ce-support-actions{display:flex;gap:10px;flex-wrap:wrap}
.ce-support-actions .ce-btn{border-radius:999px}

/* Support badge on buttons */
.ce-btn-badge{position:relative;padding-right:42px;}
.ce-msg-badge{
  position:absolute;
  top:-6px;
  right:-6px;
  min-width:20px;
  height:20px;
  padding:0 6px;
  border-radius:999px;
  font-size:12px;
  line-height:20px;
  font-weight:800;
  background:#ef4444;
  color:#fff;
  box-shadow:0 8px 18px rgba(239,68,68,.22);
  border:2px solid #fff;
}

.ce-support-compose{box-shadow:0 10px 20px rgba(0,0,0,.08)}


/* --- Support Inbox & Modern bubbles --- */
.ce-support-inbox-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ce-support-inbox-toggle{white-space:nowrap}
.ce-support-inbox-body{margin-top:12px}
.ce-inbox-thread{border:1px solid rgba(0,0,0,.08);border-radius:14px;background:#fff;overflow:hidden;margin-top:10px}
.ce-inbox-thread:first-child{margin-top:0}
.ce-inbox-thread-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;background:transparent;border:0;cursor:pointer;text-align:left}
.ce-inbox-thread-title{font-weight:800;font-size:14px;line-height:1.2}
.ce-inbox-thread-meta{display:flex;align-items:center;gap:8px}
.ce-inbox-thread-body{padding:12px 14px;border-top:1px solid rgba(0,0,0,.06);background:rgba(0,0,0,.015)}
.ce-pill{display:inline-flex;align-items:center;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:700}
.ce-pill-muted{background:rgba(0,0,0,.05);color:rgba(0,0,0,.72)}
.ce-pill-unread{background:rgba(0,52,130,.10);border:1px solid rgba(0,52,130,.25);color:#003482}
.ce-bubble{border-radius:18px;padding:12px 14px;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.ce-bubble-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:12px}
.ce-bubble-who{font-weight:800;color:rgba(0,0,0,.78)}
.ce-bubble-date{font-weight:700;color:rgba(0,0,0,.62);background:rgba(0,0,0,.05);padding:3px 8px;border-radius:999px;white-space:nowrap}
.ce-bubble-org .ce-bubble-date{background:rgba(0,52,130,.10);color:#003482}
.ce-support-new textarea{min-height:92px}


/* --- Minhas Inscrições: cards mais premium --- */
.ce-reg-section{margin-top:16px}
.ce-reg-section__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}
.ce-pill{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:22px;padding:0 8px;border-radius:999px;border:1px solid var(--ce-border);background:#fff;font-size:12px;color:var(--ce-muted)}
.ce-reg-grid{display:grid;grid-template-columns:1fr;gap:14px}
@media (min-width: 900px){
  .ce-reg-grid{grid-template-columns:1fr}
}
.ce-reg-card2{padding:16px}
.ce-reg2-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}
.ce-reg2-title{font-size:18px;font-weight:800;letter-spacing:-.01em}
.ce-reg2-sub{font-size:12px;color:var(--ce-muted);margin-top:4px}
.ce-reg2-actions{display:flex;gap:10px;flex-wrap:wrap;margin:8px 0 0}
/* Support button: keep text centered even with notification badge */
.ce-btn-support{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.ce-notif{position:absolute;top:-8px;right:-8px;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#ef4444;color:#fff;font-size:12px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 22px rgba(239,68,68,.25)}
.ce-support-inline{background:rgba(0,52,130,.03);border:1px solid var(--ce-border);border-radius:var(--ce-radius-sm);padding:12px;margin-top:10px}
.ce-reg2-checkin{margin-top:12px;border:1px dashed rgba(17,24,39,.18);border-radius:var(--ce-radius-sm);padding:12px;background:rgba(242,161,0,.04)}
.ce-reg2-checkin__head{font-size:12px;color:var(--ce-muted);margin-bottom:10px}
.ce-reg2-checkin__body{display:flex;gap:14px;align-items:center;flex-wrap:wrap}
.ce-reg2-qr{width:116px;height:116px;border-radius:14px;overflow:hidden;background:#fff;border:1px solid var(--ce-border);display:flex;align-items:center;justify-content:center}
.ce-reg2-qr img{width:100%;height:100%;object-fit:contain}
.ce-reg2-code__val{font-size:18px;font-weight:900;letter-spacing:.06em}
.ce-reg2-proof{border-top:1px solid var(--ce-border);padding-top:12px;margin-top:12px}
.ce-reg2-proof__head{font-weight:800}
.ce-file{display:flex;align-items:center;gap:10px;border:1px dashed rgba(17,24,39,.22);border-radius:14px;padding:10px;background:#fff}
.ce-file input[type=file]{display:none}
.ce-file__label{display:inline-flex;align-items:center;justify-content:center;padding:8px 10px;border-radius:12px;border:1px solid var(--ce-border);background:rgba(0,52,130,.06);color:var(--ce-primary);font-weight:700;font-size:14px;cursor:pointer}
.ce-file__hint{font-size:12px;color:var(--ce-muted)}
.ce-details.ce-reg-done summary{font-weight:800}



/* Organizer: payments awaiting approval */
.ce-approvals-list{display:flex;flex-direction:column;gap:12px}
.ce-approvals-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid rgba(0,0,0,.08);border-radius:14px;background:#fff;box-shadow:0 1px 8px rgba(0,0,0,.04)}
.ce-approvals-item__title{font-weight:800;font-size:14px;line-height:1.2}
.ce-approvals-item__actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

.ce-proof-modal{position:fixed;inset:0;z-index:99999}
.ce-proof-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.ce-proof-modal__card{position:relative;max-width:860px;margin:6vh auto 0; background:#fff;border-radius:18px;box-shadow:0 10px 40px rgba(0,0,0,.25);overflow:hidden}
.ce-proof-modal__head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid rgba(0,0,0,.08)}
.ce-proof-modal__title{font-weight:800}
.ce-proof-modal__close{appearance:none;border:0;background:transparent;font-size:22px;line-height:1;cursor:pointer;padding:6px 10px;border-radius:10px}
.ce-proof-modal__close:hover{background:rgba(0,0,0,.06)}
.ce-proof-modal__body{padding:14px 16px;max-height:70vh;overflow:auto}
.ce-proof-modal__body img{width:100%;height:auto;border-radius:12px;border:1px solid rgba(0,0,0,.08)}
html.ce-modal-open{overflow:hidden}
@media(max-width:768px){.ce-proof-modal__card{margin:10vh 12px 0}}


/* Organizer dashboard: open events summary */
.ce-open-events-card .ce-empty{margin-top:12px;padding:10px 12px;border:1px dashed rgba(0,0,0,.12);border-radius:12px;background:rgba(0,0,0,.02)}
.ce-open-events-list{display:flex;flex-direction:column;gap:10px;margin-top:12px}
.ce-open-event{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid rgba(0,0,0,.10);border-radius:14px;background:#fff;text-decoration:none;color:inherit;transition:transform .12s ease, box-shadow .12s ease,border-color .12s ease}
.ce-open-event:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(0,0,0,.08);border-color:rgba(0,0,0,.16)}
.ce-open-event__title{font-weight:900;letter-spacing:-.01em;line-height:1.15}
.ce-open-event__meta{font-size:12px;color:rgba(0,0,0,.60);margin-top:4px}
.ce-open-event__stats{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.ce-kpi{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:92px;padding:8px 10px;border-radius:12px;border:1px solid rgba(0,0,0,.10);background:rgba(0,0,0,.02)}
.ce-kpi .n{font-weight:1000;font-size:18px;line-height:1}
.ce-kpi .l{font-size:11px;color:rgba(0,0,0,.60);margin-top:4px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.ce-kpi--ok{background:rgba(16,185,129,.10);border-color:rgba(16,185,129,.25)}
.ce-kpi--muted{background:rgba(0,0,0,.03)}
@media (max-width: 520px){
  .ce-open-event{flex-direction:column;align-items:flex-start}
  .ce-open-event__stats{justify-content:flex-start;width:100%}
  .ce-kpi{min-width:0;flex:1}
}


/* Organizer dashboard: old events list spacing */
.ce-event-list-old li{
  padding:12px 14px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
}
.ce-event-list-old li a{display:inline-block}
.ce-event-list-old .ce-small{margin-top:6px}


/* Details summary subtitle */
.ce-details-summary{display:flex;flex-direction:column;gap:2px;align-items:center;}
.ce-summary-title{font-weight:800;}
.ce-summary-desc{font-size:12px;opacity:.85;}


/* Closed registrations badge */
.ce-badge{display:inline-block;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:700;line-height:1;margin-top:8px;}
.ce-badge--closed{background:#f3f4f6;color:#111827;border:1px solid #e5e7eb;}

/* Closed registrations badge on event cards (frontend listing) */
.ce-card--event .ce-badge{
  align-self:center;
}
.ce-card--event .ce-badge--closed{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.02em;
  line-height:1;
  background:rgba(245,158,11,.12);
  border:1px solid rgba(245,158,11,.30);
  color:#92400e;
  margin:0;
  width:fit-content;
}
.ce-card--event .ce-badge--closed::before{
  content:"⏳";
  font-size:12px;
  line-height:1;
}

/* Centered badge container under event meta */
.ce-card-badge-wrap{display:flex;justify-content:center;margin-top:10px;}
.ce-card--event .ce-card-badge-wrap .ce-badge--closed{transform:none;}

/* Description helper (organizer create/edit event) */
.ce-desc-help{
  margin-top:8px;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,.55);
  background:rgba(248,250,252,.9);
  color:#334155;
  font-size:12px;
  line-height:1.35;
}
.ce-desc-help strong{font-weight:800;color:#0f172a;}
.ce-desc-help__label{font-weight:800;color:#0f172a;margin-right:4px;}
.ce-desc-help code{
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:12px;
  padding:2px 6px;
  border-radius:8px;
  background:rgba(0,0,0,.06);
  border:1px solid rgba(0,0,0,.08);
}

/* Organizer invoices: actions + PIX pay toggle */
.ce-inv-actions{display:flex;gap:10px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.ce-overview .ce-inv-actions{justify-content:flex-end}
@media (max-width: 860px){
  .ce-overview .ce-inv-actions{justify-content:flex-start}
}

.ce-inv-pix{ margin:0; padding:0; border:0; background:transparent; }
.ce-inv-pix > summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
  outline:none;
  white-space:nowrap;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.ce-inv-pix > summary::-webkit-details-marker{ display:none; }
.ce-inv-pix > summary::marker{ content:''; }
.ce-inv-pix-btn{
  white-space:nowrap;
  min-height:42px;
  padding:10px 14px;
}
.ce-inv-pix[open]{
  flex:1 1 100%;
  margin-top:10px;
  padding:12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:#fff;
}
.ce-inv-pix[open] > summary{ margin-bottom:10px; }
.ce-inv-pix-body{width:100%}
.ce-inv-pix-qr{ display:flex; justify-content:center; margin-bottom:10px; }
.ce-inv-pix-qr img{ width:160px; height:160px; object-fit:cover; border-radius:12px; border:1px solid #e5e7eb; background:#fff; }
/*
 * IMPORTANT:
 * We use a compact PIX copy layout inside organizer invoices (details > summary).
 * Do NOT apply flex layout globally, otherwise it breaks the event PIX box (label wraps vertically).
 */
.ce-inv-pix-body .ce-pix-copy{ display:flex; gap:10px; align-items:stretch; }
.ce-inv-pix-body .ce-pix-copy textarea{ flex:1; resize:none; border-radius:12px; border:1px solid #e5e7eb; padding:10px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size:13px; line-height:1.3; background:#fff; }

/* Event page: PIX copy box */
.ce-pixbox-copy{display:flex;flex-direction:column;gap:8px}
.ce-pixbox-copy label{margin:0}
.ce-pixbox-copy textarea{width:100%;resize:none;border-radius:14px;border:1px solid var(--ce-border);padding:10px 12px;min-height:110px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;line-height:1.35;background:#fff}
.ce-pixbox-copy .ce-copy-btn{align-self:flex-start;white-space:nowrap}



/* Invoice: Pay via PIX button (summary) */

.ce-inv-pix-btn{background:#fff;border:1px solid rgba(0,0,0,.12);color:var(--ce-text)}
.ce-inv-pix-btn:hover{filter:brightness(.98)}

.ce-inv-pix summary{list-style:none}
.ce-inv-pix summary::-webkit-details-marker{display:none}
.ce-inv-pix-btn{white-space:nowrap;user-select:none;font-size:13px !important;line-height:1.1}
.ce-inv-pix-btn:focus{outline:none;box-shadow:0 0 0 3px rgba(0,52,130,.18)}
.ce-inv-pix-btn:active{transform:translateY(0)}



/* Organizer invoices: layout refinements */
.ce-inv-main{flex:1 1 260px; min-width:220px;}
.ce-inv-proof{flex:1 1 100%; display:flex; flex-wrap:wrap; gap:12px; justify-content:flex-end; margin-top:10px;}
.ce-inv-proof .ce-btn{white-space:nowrap;}


/* Coupons */
.ce-coupons-card .ce-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ce-coupon-form .ce-field label{display:block;font-size:12px;font-weight:800;color:#0b1220;margin-bottom:6px}
.ce-coupon-form .ce-field input,.ce-coupon-form .ce-field select{width:100%;border:1px solid rgba(15,23,42,.14);border-radius:12px;padding:10px 12px;font-size:14px;outline:none;background:#fff}
.ce-coupon-form .ce-field input:focus,.ce-coupon-form .ce-field select:focus{border-color:rgba(0,52,130,.45);box-shadow:0 0 0 3px rgba(0,52,130,.12)}
.ce-code{display:inline-block;padding:4px 8px;border-radius:10px;border:1px dashed rgba(15,23,42,.18);background:rgba(15,23,42,.03);font-size:12px}
.ce-td-actions{text-align:right;white-space:nowrap}

/* Lock screen */
.ce-lockbox{border:1px solid rgba(15,23,42,.10);border-radius:18px;padding:18px;background:linear-gradient(180deg,#ffffff,rgba(15,23,42,.02));box-shadow:0 10px 30px rgba(2,6,23,.06)}
.ce-lock-head{display:flex;flex-direction:column;gap:6px}
.ce-lock-title{font-size:20px;font-weight:900;color:#0b1220}
.ce-invoice-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid rgba(15,23,42,.10);border-radius:14px;background:#fff;margin-top:10px}
.ce-invoice-main{min-width:0}
.ce-invoice-title{font-weight:800;color:#0b1220;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:520px}

/* Helpdesk (organizer) attachments + lightbox */
.ce-hd-attachments{display:flex;flex-wrap:wrap;gap:10px}
.ce-hd-attachments a{display:block;border:1px solid var(--ce-border);border-radius:14px;overflow:hidden;box-shadow:var(--ce-shadow);background:#fff}
.ce-hd-attachments img{display:block;width:88px;height:88px;object-fit:cover}

.ce-hd-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.72);
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.ce-hd-modal-inner{position:relative;max-width:980px;width:100%}
.ce-hd-modal-img{display:block;max-width:100%;max-height:86vh;margin:0 auto;border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.35);background:#fff}
.ce-hd-modal-close{position:absolute;top:-12px;right:-12px;width:40px;height:40px;border-radius:999px;border:1px solid rgba(255,255,255,.35);background:rgba(0,0,0,.55);color:#fff;font-size:24px;line-height:1;cursor:pointer}
.ce-hd-modal-close:hover{filter:brightness(1.05)}

/* ------------------------
   Produtos do evento (organizador + página do evento)
------------------------ */
.ce-products-box{
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:16px;
  background:#fff;
}
.ce-products-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.ce-products-title{font-weight:700;}
.ce-product-rows{display:flex; flex-direction:column; gap:12px;}
.ce-product-row{
  display:grid;
  grid-template-columns:92px 1fr auto;
  gap:12px;
  padding:12px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:rgba(0,0,0,.015);
}
.ce-product-thumb{
  width:92px; height:92px;
  border-radius:14px;
  overflow:hidden;
  background:rgba(0,0,0,.04);
  display:flex; align-items:center; justify-content:center;
}
.ce-product-thumb img{width:100%; height:100%; object-fit:cover; display:block;}
.ce-thumb-ph{font-size:12px; color:rgba(0,0,0,.55);}
.ce-product-fields{min-width:0;}
@media (max-width: 720px){
  .ce-product-row{grid-template-columns:72px 1fr;}
  .ce-product-row .ce-btn-danger{grid-column:1/-1; justify-self:flex-end;}
  .ce-product-thumb{width:72px; height:72px;}
}

/* Frontend event products grid */
.ce-event-products{margin:18px 0;}
.ce-products-title-row{display:flex; flex-direction:column; gap:6px; margin:0 0 12px 0;}
.ce-products-grid{
  display:grid;
  /* Balanced cards: not too tight on desktop and not huge on mobile */
  grid-template-columns:repeat(auto-fit, minmax(240px, 300px));
  justify-content:center;
  gap:16px;
}
@media (max-width: 640px){
  .ce-products-grid{grid-template-columns:repeat(2, minmax(0, 1fr)); justify-content:stretch;}
}
@media (max-width: 420px){
  .ce-products-grid{grid-template-columns:1fr;}
}
.ce-product-card{
  border:1px solid rgba(0,0,0,.08);
  border-radius:18px;
  overflow:hidden;
  background:#fff;
  display:flex;
  flex-direction:column;
}
.ce-product-card__img{aspect-ratio: 4 / 3; background:rgba(0,0,0,.04); display:flex; align-items:center; justify-content:center;}
.ce-product-card__img img{width:100%; height:100%; object-fit:cover; display:block;}
.ce-product-card__body{padding:12px; display:flex; flex-direction:column; gap:8px;}
.ce-product-card__title{font-weight:800; font-size:16px; line-height:1.2;}
.ce-product-card__price{font-weight:800; font-size:14px;}
.ce-product-card .ce-field{margin:0;}
.ce-product-card select,
.ce-product-card input[type="number"]{
  width:100%;
  max-width:100%;
}

/* Frontend product card control hardening (themes/Elementor may override inputs) */
.ce-product-card select,
.ce-product-card input[type="number"]{
  box-sizing:border-box;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.14);
  background:#fff;
  font-size:14px;
  line-height:1.2;
}

@media (max-width: 640px){
  /* On mobile, reduce vertical height and oversized typography */
  .ce-product-card__img{aspect-ratio: 16 / 11;}
  .ce-product-card__body{padding:10px; gap:6px;}
  .ce-product-card__title{font-size:15px;}
  .ce-product-card__price{font-size:13px;}
}
