@import url("./pro-unified.css");

@layer pro-base {
:root {
  --pro-bg: #f3eeee;
  --pro-card: #f6f1f0;
  --pro-primary: #a67c72;
  --pro-dark: #80534a;
  --pro-text: #654942;
  --pro-muted: #987c76;
  --pro-success: #4f9164;
  --pro-danger: #b45d55;
  --pro-warning: #c49539;
  --pro-info: #5d7fa6;
  --pro-shadow: rgba(166, 124, 114, 0.23);
  --pro-light: rgba(255, 255, 255, 0.96);
}
* {
  box-sizing: border-box;
}
body.pro-page {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(
      circle at 12% 0,
      rgba(255, 255, 255, 0.92),
      transparent 30%
    ),
    var(--pro-bg);
  color: var(--pro-text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  padding: max(16px, env(safe-area-inset-top)) 15px
    max(92px, calc(env(safe-area-inset-bottom) + 78px));
}
button,
input,
select,
textarea {
  font: inherit;
}
.pro-shell {
  width: min(100%, 1180px);
  margin: auto;
}
.pro-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.pro-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.pro-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}
.pro-brand strong {
  display: block;
  color: var(--pro-dark);
  font-size: 1rem;
}
.pro-brand span {
  display: block;
  color: var(--pro-muted);
  font-size: 0.7rem;
  font-weight: 700;
  margin-top: 2px;
}
.pro-icon-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 16px;
  background: var(--pro-bg);
  color: var(--pro-primary);
  cursor: pointer;
  text-decoration: none;
  box-shadow:
    7px 7px 16px var(--pro-shadow),
    -7px -7px 16px var(--pro-light);
}
.pro-hero {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 29px;
  padding: 22px 19px;
  background: linear-gradient(
    145deg,
    rgba(166, 124, 114, 0.12),
    rgba(255, 255, 255, 0.5)
  );
  box-shadow:
    11px 11px 26px var(--pro-shadow),
    -9px -9px 23px var(--pro-light);
  margin-bottom: 18px;
}
.pro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--pro-primary);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pro-hero h1 {
  margin: 8px 0 0;
  color: var(--pro-dark);
  font-size: clamp(1.55rem, 7vw, 2.5rem);
  line-height: 1.08;
}
.pro-hero p {
  margin: 10px 0 0;
  color: var(--pro-muted);
  font-size: 0.82rem;
  line-height: 1.6;
  font-weight: 650;
  max-width: 780px;
}
.pro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.pro-card {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 25px;
  background: var(--pro-bg);
  padding: 18px;
  box-shadow:
    9px 9px 22px var(--pro-shadow),
    -8px -8px 20px var(--pro-light);
}
.pro-card h2,
.pro-card h3 {
  margin: 0;
  color: var(--pro-dark);
}
.pro-card h2 {
  font-size: 1.05rem;
}
.pro-card h3 {
  font-size: 0.91rem;
}
.pro-card p {
  color: var(--pro-muted);
  font-size: 0.72rem;
  line-height: 1.5;
  font-weight: 650;
}
.pro-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.pro-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.pro-stat {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.35);
  padding: 13px;
}
.pro-stat span {
  display: block;
  color: var(--pro-muted);
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
}
.pro-stat strong {
  display: block;
  color: var(--pro-dark);
  font-size: 1.12rem;
  margin-top: 6px;
}
.pro-form {
  display: grid;
  gap: 12px;
}
.pro-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px;
}
.pro-field label {
  display: block;
  color: var(--pro-dark);
  font-size: 0.7rem;
  font-weight: 850;
  margin: 0 0 6px 4px;
}
.pro-input,
.pro-select,
.pro-textarea {
  width: 100%;
  min-height: 50px;
  border: 0;
  outline: 0;
  border-radius: 17px;
  background: var(--pro-bg);
  color: var(--pro-text);
  padding: 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow:
    inset 5px 5px 11px rgba(166, 124, 114, 0.16),
    inset -5px -5px 11px var(--pro-light);
}
.pro-textarea {
  min-height: 90px;
  padding-top: 13px;
  resize: vertical;
  line-height: 1.5;
}
.pro-input:focus,
.pro-select:focus,
.pro-textarea:focus {
  box-shadow:
    inset 5px 5px 11px rgba(166, 124, 114, 0.18),
    inset -5px -5px 11px #fff,
    0 0 0 3px rgba(93, 127, 166, 0.15);
}
.pro-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  color: var(--pro-text);
  font-size: 0.75rem;
  font-weight: 750;
}
.pro-check input {
  width: 19px;
  height: 19px;
  accent-color: var(--pro-primary);
}
.pro-btn {
  min-height: 50px;
  border: 0;
  border-radius: 18px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.77rem;
  font-weight: 900;
}
.pro-btn.primary {
  background: linear-gradient(145deg, #b88b80, #95685f);
  color: #fff;
  box-shadow: 7px 7px 16px rgba(166, 124, 114, 0.3);
}
.pro-btn.secondary {
  background: var(--pro-bg);
  color: var(--pro-dark);
  box-shadow:
    6px 6px 14px var(--pro-shadow),
    -6px -6px 14px var(--pro-light);
}
.pro-btn.danger {
  background: linear-gradient(145deg, #c87870, #a94f48);
  color: #fff;
}
.pro-btn.success {
  background: linear-gradient(145deg, #69a67b, #47835b);
  color: #fff;
}
.pro-btn:disabled {
  opacity: 0.58;
  cursor: wait;
}
.pro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 13px;
}
.pro-list {
  display: grid;
  gap: 11px;
}
.pro-item {
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.35);
  padding: 14px;
}
.pro-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.pro-item strong {
  color: var(--pro-dark);
  font-size: 0.84rem;
}
.pro-item small {
  display: block;
  color: var(--pro-muted);
  font-size: 0.68rem;
  line-height: 1.45;
  margin-top: 4px;
  font-weight: 650;
}
.pro-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 0.64rem;
  font-weight: 850;
  white-space: nowrap;
}
.pro-pill.active,
.pro-pill.paid {
  color: var(--pro-success);
}
.pro-pill.pending,
.pro-pill.trial,
.pro-pill.vacation {
  color: var(--pro-warning);
}
.pro-pill.inactive,
.pro-pill.suspended,
.pro-pill.blocked,
.pro-pill.rejected {
  color: var(--pro-danger);
}
.pro-empty {
  text-align: center;
  color: var(--pro-muted);
  padding: 24px 12px;
}
.pro-empty i {
  display: block;
  color: var(--pro-primary);
  font-size: 1.4rem;
  margin-bottom: 9px;
}
.pro-table-wrap {
  overflow: auto;
  border-radius: 18px;
}
.pro-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}
.pro-table th,
.pro-table td {
  text-align: left;
  padding: 11px;
  border-bottom: 1px solid rgba(166, 124, 114, 0.12);
  font-size: 0.71rem;
}
.pro-table th {
  color: var(--pro-dark);
  font-weight: 900;
}
.pro-table td {
  color: var(--pro-muted);
  font-weight: 650;
}
.pro-chart {
  width: 100%;
  height: 280px;
  position: relative;
}
.pro-days {
  display: grid;
  gap: 10px;
}
.pro-day {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.32);
  padding: 12px;
}
.pro-day-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}
.pro-day-head strong {
  font-size: 0.77rem;
  color: var(--pro-dark);
}
.pro-nav {
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(calc(100% - 24px), 610px);
  min-height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 23px;
  background: rgba(243, 238, 238, 0.94);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 7px;
  box-shadow:
    8px 8px 22px rgba(82, 51, 43, 0.2),
    -7px -7px 18px rgba(255, 255, 255, 0.82);
}
.pro-nav a {
  flex: 1;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--pro-muted);
  text-decoration: none;
  font-size: 0.58rem;
  font-weight: 800;
  border-radius: 16px;
}
.pro-nav a i {
  font-size: 0.96rem;
}
.pro-nav a.active {
  background: rgba(255, 255, 255, 0.5);
  color: var(--pro-primary);
}
.pro-stars {
  display: flex;
  gap: 6px;
}
.pro-stars button {
  border: 0;
  background: transparent;
  color: #c9b6b0;
  font-size: 1.25rem;
  padding: 2px;
  cursor: pointer;
}
.pro-stars button.selected {
  color: #d3a23d;
}
@media (min-width: 680px) {
  body.pro-page {
    padding-inline: 24px;
  }
  .pro-row.two {
    grid-template-columns: repeat(2, 1fr);
  }
  .pro-row.three {
    grid-template-columns: repeat(3, 1fr);
  }
  .pro-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .pro-days {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .pro-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pro-grid.sidebar {
    grid-template-columns: minmax(330px, 0.75fr) minmax(0, 1.25fr);
  }
  .pro-card {
    padding: 22px;
  }
  .pro-hero {
    padding: 28px;
  }
}
@media (max-width: 560px) {
  .pro-input,
  .pro-select,
  .pro-textarea {
    font-size: 16px;
  }
  .pro-btn {
    width: 100%;
  }
  .pro-actions .pro-btn {
    flex: 1;
  }
  .pro-chart {
    height: 235px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
}
