@import url('https://fonts.googleapis.com/css2?family=Concert+One&display=swap');

:root {
  --bg1: #fff8dc;
  --bg2: #ffd0ea;
  --bg3: #b8ecff;
  --ink: #1c2230;
  --white: #ffffff;
  --pink: #ff8fc7;
  --yellow: #ffd84d;
  --blue: #82ddff;
  --mint: #9ff2b8;
  --danger: #ff8e8e;
  --border: #1d2433;
  --shadow: 8px 8px 0 rgba(29, 36, 51, 0.95);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, #ffe159 0%, transparent 24%),
    radial-gradient(circle at right, #ff79c6 0%, transparent 28%),
    radial-gradient(circle at left bottom, #63d4ff 0%, transparent 30%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 45%, var(--bg3) 100%);
  min-height: 100vh;
}

.page-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px;
}

.hero-card,
.filters-card,
.reminder-card,
.modal-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(6px);
  border: 3px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 20px;
}

.hero-title {
  margin: 8px 0 12px;
  font-size: 52px;
  line-height: 1;
  font-family: 'Concert One', Arial, sans-serif;
  font-weight: 400;
}

.hero-card p {
  margin: 0;
  max-width: 700px;
  font-size: 18px;
  line-height: 1.6;
}

.eyebrow {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.stat-card {
  border: 3px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 5px 5px 0 rgba(29, 36, 51, 0.95);
}

.stat-card span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  margin-bottom: 10px;
}

.stat-card strong {
  font-size: 44px;
}

.stat-card.pink { background: var(--pink); }
.stat-card.yellow { background: var(--yellow); }
.stat-card.blue { background: var(--blue); }

.filters-card {
  padding: 22px;
  margin-bottom: 20px;
  display: flex;
  gap: 16px;
  align-items: end;
}

.grow {
  flex: 1;
}

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

.field label {
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 18px;
  border: 2px solid #cfd6de;
  background: #fff;
}

textarea {
  resize: vertical;
}

.checkbox-field {
  justify-content: end;
}

.checkbox-field label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-field input {
  width: auto;
}

.form-grid,
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.btn,
.icon-btn,
.action-btn {
  border: 2px solid var(--border);
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.12s ease;
}

.btn:hover,
.icon-btn:hover,
.action-btn:hover {
  transform: translateY(-1px);
}

.btn {
  padding: 12px 16px;
  font-weight: 700;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.reminders-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.reminder-card {
  position: relative;
  padding: 14px;
  overflow: hidden;
}

.urgency-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
}

.urgency-safe { background: linear-gradient(180deg, #78f0a3 0%, #42cc74 100%); }
.urgency-month { background: linear-gradient(180deg, #8fdcff 0%, #42a8ff 100%); }
.urgency-soon { background: linear-gradient(180deg, #ffe77a 0%, #ffb347 100%); }
.urgency-expired { background: linear-gradient(180deg, #ff9c9c 0%, #ff5f6d 100%); }

.reminder-inner {
  padding-left: 10px;
}

.reminder-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.reminder-title-wrap h2 {
  margin: 8px 0 0;
  font-size: 23px;
  line-height: 1.05;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,0.08);
  padding: 7px 11px;
  font-weight: 700;
  font-size: 12px;
}

.badge.status-active { background: #b7f4ca; }
.badge.status-soon { background: #ffe28a; }
.badge.status-month { background: #bdeaff; }
.badge.status-expired { background: #ffb0b0; }
.badge.type { background: #fff; }

.reminder-layout {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 12px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 10px;
  margin-bottom: 10px;
  align-items: stretch;
}

.info-box,
.notes-box {
  border-radius: 18px;
  border: 2px solid #dde5ec;
  background: rgba(255,255,255,0.82);
  padding: 12px;
}

.notes-box {
  min-height: auto;
}

.info-box span,
.notes-box span {
  display: block;
  font-size: 12px;
  color: #576173;
  margin-bottom: 6px;
  font-weight: 700;
}

.info-box strong,
.notes-box strong {
  font-size: 15px;
  line-height: 1.3;
  display: block;
  word-break: break-word;
}

.info-box.client-box {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-box.client-box strong {
  font-size: 28px;
  line-height: 1.05;
}

.info-stack {
  display: grid;
  gap: 10px;
}

.info-box.compact-box {
  min-height: 54px;
}

.info-box.compact-box strong {
  font-size: 14px;
  line-height: 1.25;
}

.date-compact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 4px;
  align-items: baseline;
}

.date-compact strong {
  font-size: 14px;
  line-height: 1.2;
}

.countdown-panel {
  border: 3px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(180deg, #ffe066 0%, #ffb5d9 100%);
}

.countdown-title {
  font-size: 14px;
  margin-bottom: 10px;
  font-weight: 800;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.count-unit {
  border-radius: 16px;
  background: rgba(255,255,255,0.76);
  padding: 10px 8px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.7);
}

.count-unit strong {
  display: block;
  font-size: 22px;
}

.count-unit span {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 10px;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.action-btn {
  background: #fff;
  padding: 9px 12px;
  font-weight: 700;
  font-size: 14px;
}

.action-btn.danger {
  background: #fff0f0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 34, 48, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.modal-card {
  width: min(760px, 100%);
  padding: 22px;
  background: #fff9f0;
}

.small-modal {
  width: min(520px, 100%);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  background: white;
  font-size: 18px;
}

.hidden {
  display: none;
}

.full-width {
  grid-column: 1 / -1;
}

.empty-box {
  padding: 34px;
  text-align: center;
  border: 3px dashed #7c8696;
  border-radius: 28px;
  background: rgba(255,255,255,0.6);
}

.confirm-message {
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 1180px) {
  .reminders-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .hero-card,
  .stats-grid,
  .form-grid,
  .settings-grid,
  .info-grid,
  .reminder-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-card {
    align-items: start;
  }

  .filters-card {
    flex-direction: column;
    align-items: stretch;
  }
}