
:root {
  --background: #0b1220;
  --surface: #111c2e;
  --surface-light: #18263b;
  --border: rgba(255,255,255,0.08);
  --text: #f5f7fb;
  --muted: #91a0b5;
  --gold: #d6ad62;
  --gold-light: #f0d59e;
  --green: #26c58b;
  --red: #f07171;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.app-container {
  width: 100%;
  max-width: 1440px;
  margin: auto;
  padding: 0 38px;
}

/* CABEÇALHO */

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border: 1px solid var(--gold);
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  font-weight: 800;
  letter-spacing: -1px;
}

.brand h1 {
  font-size: 19px;
  font-weight: 800;
}

.brand span {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--muted);
}

.profile-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-light);
  color: var(--gold-light);
  font-weight: 700;
}

/* CONTEÚDO */

.main-content {
  padding-top: 48px;
  padding-bottom: 65px;
}

.welcome-section {
  max-width: 690px;
  margin-bottom: 34px;
}

.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  margin-bottom: 12px;
}

.welcome-section h2 {
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.welcome-section p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* RESUMO */

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  margin-bottom: 55px;
}

.summary-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 23px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.summary-card span {
  color: var(--muted);
  font-size: 12px;
}

.summary-card strong {
  font-size: clamp(22px, 3vw, 29px);
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}

.summary-card small {
  color: var(--muted);
  font-size: 11px;
}

/* OBJETIVOS */

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 23px;
}

.primary-button {
  background: linear-gradient(135deg, #e7c47f, #c99a48);
  color: #17202c;
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 12px;
  font-weight: 800;
  transition: 0.2s;
}

.primary-button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.primary-button span {
  font-size: 17px;
  margin-right: 5px;
}

.objectives-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.empty-state {
  grid-column: 1 / -1;
  min-height: 275px;
  border: 1px dashed rgba(214,173,98,0.3);
  background: rgba(17,28,46,0.55);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
}

.empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(214,173,98,0.1);
  color: var(--gold);
  font-size: 32px;
  margin-bottom: 17px;
}

.empty-state h3 {
  font-size: 17px;
  margin-bottom: 9px;
}

.empty-state p {
  max-width: 390px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* CARTÕES DOS OBJETIVOS */

.objective-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 22px;
  min-width: 0;
}

.objective-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
}

.objective-name {
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.objective-status {
  font-size: 10px;
  color: var(--green);
  background: rgba(38,197,139,0.1);
  padding: 6px 9px;
  border-radius: 20px;
  white-space: nowrap;
}

.objective-amount {
  font-size: 25px;
  font-weight: 800;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}

.objective-target {
  font-size: 11px;
  color: var(--muted);
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: 20px;
  background: var(--surface-light);
  overflow: hidden;
  margin: 17px 0 9px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #bd9147, #f0d59e);
  border-radius: inherit;
  transition: width 0.3s;
}

.objective-progress-info {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}

.objective-actions {
  display: flex;
  gap: 9px;
  margin-top: 19px;
}

.secondary-button {
  flex: 1;
  padding: 11px;
  border-radius: 9px;
  background: var(--surface-light);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

/* MODAL */

.modal-container {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: rgba(0,0,0,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-container.hidden {
  display: none;
}

.modal {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 19px;
  padding: 25px;
}

.modal h2 {
  font-size: 21px;
  margin-bottom: 7px;
}

.modal-description {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 8px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--background);
  color: var(--text);
  outline: none;
  font: inherit;
  font-size: 13px;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--gold);
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.modal-actions button {
  flex: 1;
}

.cancel-button {
  padding: 13px;
  border-radius: 10px;
  background: var(--surface-light);
  color: var(--text);
  font-weight: 700;
}

/* RODAPÉ */

.app-footer {
  border-top: 1px solid var(--border);
  min-height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
}

/* CELULAR */

@media (max-width: 700px) {
  .app-container {
    padding: 0 17px;
  }

  .topbar {
    min-height: 75px;
  }

  .brand-logo {
    width: 41px;
    height: 41px;
  }

  .brand h1 {
    font-size: 16px;
  }

  .brand span {
    font-size: 7px;
  }

  .main-content {
    padding-top: 34px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
    gap: 11px;
    margin-bottom: 40px;
  }

  .summary-card {
    padding: 17px;
  }

  .summary-card strong {
    font-size: 25px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 20px;
  }

  .section-heading .primary-button {
    padding: 11px;
    font-size: 10px;
  }

  .objectives-list {
    grid-template-columns: 1fr;
  }

  .app-footer {
    gap: 10px;
    font-size: 9px;
  }
}

@media (max-width: 380px) {
  .section-heading {
    flex-direction: column;
  }

  .section-heading .primary-button {
    width: 100%;
  }
}
