:root {
  --bg: #f5f6fa;
  --sidebar-bg: #14162b;
  --sidebar-text: #c7c9e0;
  --sidebar-text-active: #ffffff;
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --card-bg: #ffffff;
  --text: #1c1d2b;
  --text-muted: #6b6d80;
  --border: #e4e5ef;
  --success: #2ecc71;
  --sidebar-width: 260px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

/* ---------- Layout shell ---------- */

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px 20px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.sidebar__brand span {
  color: var(--primary);
}

.sidebar__category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 8px;
  padding: 10px 24px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(108, 92, 231, 0.55), rgba(108, 92, 231, 0.08));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 3px 0 0 var(--primary);
}

.sidebar__category:first-child {
  margin-top: 0;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 24px;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--sidebar-text);
  border-left: 3px solid transparent;
}

.sidebar__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sidebar__link.is-active {
  background: rgba(108, 92, 231, 0.18);
  border-left-color: var(--primary);
  color: var(--sidebar-text-active);
  font-weight: 600;
}

.sidebar__link.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.sidebar__toggle {
  display: none;
}

.main {
  flex: 1;
  min-width: 0;
  padding: 32px 24px 64px;
}

.topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--sidebar-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar__burger {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

/* ---------- Generator card (LastPass-style) ---------- */

.tool {
  max-width: 640px;
  margin: 0 auto;
}

.tool__eyebrow {
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.tool__title {
  text-align: center;
  font-size: 2rem;
  line-height: 1.25;
  margin: 0 0 12px;
}

.tool__subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 1rem;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(20, 22, 43, 0.08);
  border: 1px solid var(--border);
  padding: 32px;
}

.result {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.result__value {
  flex: 1;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-family: "Consolas", "SFMono-Regular", monospace;
  border: none;
  background: transparent;
  color: var(--text);
  width: 100%;
}

.result__value:focus {
  outline: none;
}

.copy-btn {
  position: relative;
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.copy-btn:hover {
  background: var(--primary-dark);
}

.copy-btn__toast {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--success);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
  white-space: nowrap;
}

.copy-btn__toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.field-row {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.field {
  flex: 1;
  min-width: 160px;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field select,
.field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.95rem;
  color: var(--text);
  box-sizing: border-box;
}

.field input:disabled {
  background: #f3f3f7;
  color: var(--text-muted);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.checkbox-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
}

.generate-btn {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.generate-btn:hover {
  background: var(--primary-dark);
}

.batch-list {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  max-height: 220px;
  overflow-y: auto;
}

.batch-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 0.95rem;
}

.batch-list__item button {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}

.disclaimer {
  margin-top: 22px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

/* ---------- Validators ---------- */

.validate-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 1.2rem;
  font-family: "Consolas", "SFMono-Regular", monospace;
  text-align: center;
  margin-bottom: 18px;
}

.validation-result {
  display: none;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 1.05rem;
}

.validation-result.is-visible {
  display: flex;
}

.validation-result--valid {
  background: rgba(46, 204, 113, 0.12);
  color: #1e8449;
  border: 1px solid rgba(46, 204, 113, 0.35);
}

.validation-result--invalid {
  background: rgba(231, 76, 60, 0.1);
  color: #c0392b;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* ---------- Password strength meter ---------- */

.strength-meter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.strength-meter__bar {
  flex: 1;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.strength-meter__fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: var(--border);
  transition: width 0.2s ease, background 0.2s ease;
}

.strength-meter__label {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 60px;
  text-align: right;
}

/* ---------- Range slider (length) ---------- */

.field-slider {
  margin-bottom: 20px;
}

.field-slider__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field-slider__head strong {
  color: var(--text);
  font-family: "Consolas", "SFMono-Regular", monospace;
}

.field-slider input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  margin-bottom: 20px;
}

/* ---------- Profile list (Pessoa/Empresa) ---------- */

.profile-list {
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.profile-list__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.profile-list__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 130px;
}

.profile-list__value {
  flex: 1;
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 0.92rem;
  word-break: break-word;
}

.profile-list__row button {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* ---------- Text tools (Funções String / Encode-Decode) ---------- */

.text-tool-field {
  margin-bottom: 16px;
}

.text-tool-field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.phone-field {
  display: flex;
  gap: 8px;
}

.phone-field__pais-wrap {
  position: relative;
  flex: 0 0 auto;
}

.phone-field__bandeira {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.phone-field__pais {
  width: 150px;
  height: 52px;
  padding: 0 12px 0 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}

.phone-field__numero {
  flex: 1;
  min-width: 0;
  height: 52px;
  margin-bottom: 0 !important;
  text-align: left;
}

@media (max-width: 480px) {
  .phone-field {
    flex-direction: column;
  }

  .phone-field__pais-wrap {
    flex: 1 1 auto;
  }

  .phone-field__pais {
    width: 100%;
  }
}

.text-tool-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 0.92rem;
  resize: vertical;
  background: #fff;
  color: var(--text);
}

.text-tool-output-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  gap: 10px;
  align-items: center;
}

.text-tool-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: auto;
}

.text-tool-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.text-tool-row .text-tool-field {
  flex: 1;
  min-width: 140px;
  margin-bottom: 0;
}

/* ---------- Homepage grid ---------- */

.hero {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.home-section {
  max-width: 1000px;
  margin: 0 auto 36px;
}

.home-section__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.hero h1 {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 22, 43, 0.08);
}

.tool-card.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.tool-card__title {
  font-weight: 700;
  margin-bottom: 4px;
}

.tool-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.tool-card__badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
}

/* ---------- Ad slots ---------- */

.ad-slot {
  max-width: 728px;
  margin: 28px auto 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.footer-image {
  max-width: 728px;
  margin: 28px auto 0;
  display: flex;
  justify-content: center;
}

.footer-image img {
  max-width: 100%;
  max-height: 120px;
}

/* ---------- Ferramentas relacionadas ---------- */

.related-tools {
  max-width: 640px;
  margin: 32px auto 0;
}

.related-tools__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-align: center;
}

.related-tools__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.related-tools__list a {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text);
  text-decoration: none;
}

.related-tools__list a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------- Support / footer ---------- */

.support {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.support a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 30;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .topbar {
    display: flex;
  }

  .main {
    padding: 24px 16px 48px;
  }

  .tool__title {
    font-size: 1.6rem;
  }

  .card {
    padding: 22px;
  }
}

/* ---------- Currículo builder ---------- */

.cv-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

.cv-form-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(20, 22, 43, 0.08);
  border: 1px solid var(--border);
  padding: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  position: sticky;
  top: 16px;
}

.cv-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.cv-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cv-section__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cv-field {
  margin-bottom: 12px;
}

.cv-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.cv-field input[type="text"],
.cv-field input[type="email"],
.cv-field input[type="tel"],
.cv-field input[type="month"],
.cv-field select,
.cv-field textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-family: inherit;
}

.cv-field-row {
  display: flex;
  gap: 10px;
}

.cv-field-row .cv-field {
  flex: 1;
}

.cv-entry {
  background: var(--bg);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
}

.cv-entry__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #c0392b;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
}

.cv-add-btn {
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  border: 1px dashed var(--primary);
  background: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.cv-photo-field {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cv-photo-preview-wrap {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.cv-photo-preview {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}

.cv-photo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg);
}

.cv-photo-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.cv-photo-btn {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.cv-photo-actions button {
  background: none;
  border: none;
  color: #c0392b;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.cv-photo-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cv-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.cv-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108, 92, 231, 0.12);
  color: var(--primary-dark);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}

.cv-chip button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
}

/* Preview do currículo — tipografia neutra, pensada pra impressão */
.cv-preview {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(20, 22, 43, 0.08);
  border: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
  color: #222;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 400px;
}

.cv-preview__header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.cv-preview__foto {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.cv-preview__header-info {
  flex: 1;
  min-width: 0;
}

.cv-preview__name {
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
}

.cv-preview__contato {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.92);
}

.cv-preview__contato-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cv-preview__contato-item svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.92);
}

.cv-preview__body {
  padding: 32px 40px 40px;
}

.cv-preview__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 5px;
  margin: 22px 0 10px;
}

.cv-preview__section-title svg {
  color: var(--primary);
  flex-shrink: 0;
}

.cv-preview__section-title:first-of-type {
  margin-top: 0;
}

.cv-preview__entry {
  margin-bottom: 14px;
}

.cv-preview__entry-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #222;
}

.cv-preview__entry-meta {
  font-size: 0.8rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.cv-preview__entry-desc {
  font-size: 0.88rem;
  margin-top: 4px;
  white-space: pre-line;
  color: #444;
}

.cv-preview__skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cv-preview__skill {
  display: inline-block;
  background: rgba(108, 92, 231, 0.12);
  color: var(--primary-dark);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.cv-preview__empty {
  color: #999;
  font-style: italic;
}

.cv-print-btn-wrap {
  text-align: center;
  margin: 20px auto 0;
  max-width: 1200px;
}

@media (max-width: 900px) {
  .cv-layout {
    grid-template-columns: 1fr;
  }

  .cv-form-card {
    position: static;
    max-height: none;
  }
}

/* ---------- Sorteio ao vivo (contagem + balões) ---------- */

.sorteio-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1c3a, #2d1b4e);
  overflow: hidden;
}

.sorteio-overlay__fechar {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.sorteio-overlay__fechar:hover {
  background: rgba(255, 255, 255, 0.28);
}

.sorteio-overlay__contagem {
  font-size: clamp(6rem, 22vw, 14rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 50px rgba(255, 255, 255, 0.55);
}

.sorteio-overlay__contagem--pulso {
  animation: sorteio-contagem-pulso 0.8s ease;
}

@keyframes sorteio-contagem-pulso {
  0% { transform: scale(0.4); opacity: 0; }
  40% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.sorteio-overlay__resultado {
  max-width: 90vw;
  padding: 0 24px;
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 800;
  text-align: center;
  color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  animation: sorteio-resultado-entrada 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  word-break: break-word;
  z-index: 1;
}

@keyframes sorteio-resultado-entrada {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.sorteio-overlay__baloes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sorteio-balao {
  position: absolute;
  bottom: -10vh;
  animation-name: sorteio-balao-subir;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;
}

@keyframes sorteio-balao-subir {
  0% { transform: translateY(0) translateX(0) rotate(-4deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(-125vh) translateX(30px) rotate(6deg); opacity: 0; }
}

/* ---------- Relógios digitais (conversor de fuso) ---------- */

.clocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin-bottom: 12px;
}

.digital-clock {
  position: relative;
  background: linear-gradient(135deg, #1a1c3a, #2d1b4e);
  border-radius: 14px;
  padding: 16px 14px;
  text-align: center;
}

.digital-clock__remover {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.digital-clock__remover:hover {
  color: #fff;
}

.digital-clock__select {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.75rem;
  margin-bottom: 12px;
}

.digital-clock__select option {
  color: #1c1d2b;
}

.digital-clock__time {
  font-family: "Consolas", "SFMono-Regular", monospace;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
  text-shadow: 0 0 18px rgba(108, 92, 231, 0.65);
}

.digital-clock__date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
  text-transform: capitalize;
}

/* ---------- Símbolos para copiar ---------- */

.simbolos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.simbolo-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.simbolo-btn:hover {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.08);
}

.simbolo-btn--copiado {
  border-color: var(--success);
  color: var(--success);
}

@media print {
  .topbar,
  .sidebar,
  .cv-form-card,
  .cv-print-btn-wrap,
  .ad-slot,
  .footer-image,
  .related-tools,
  .support,
  .tool__eyebrow,
  .tool__title,
  .tool__subtitle,
  .disclaimer,
  .cv-privacy-note {
    display: none !important;
  }

  .app,
  .main {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .cv-layout {
    display: block !important;
  }

  .cv-preview {
    box-shadow: none !important;
    border: none !important;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    background: #fff;
  }
}
