:root {
  color-scheme: dark;
  --ink: #16110e;
  --ink-soft: #211713;
  --ink-lift: #2a1c17;
  --cream: #f7efe2;
  --sand: #efe2cf;
  --paper: #f1e2ca;
  --paper-light: #fff8ed;
  --lager: #d9a441;
  --lager-bright: #efba56;
  --ember: #b35c34;
  --merlot: #5f1f24;
  --pine: #283128;
  --success: #56765d;
  --danger: #9f4c3c;
  --line: rgba(247, 239, 226, 0.12);
  --shadow: 0 24px 70px rgba(5, 3, 2, 0.28);
  --paper-shadow: 0 20px 50px rgba(15, 9, 5, 0.16);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(217, 164, 65, 0.14), transparent 25rem),
    linear-gradient(180deg, #120d0a 0%, #18110e 40%, #211713 100%);
  color: var(--cream);
  font-family: "Manrope", "Avenir Next", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.14;
  pointer-events: none;
}

.ambient-one {
  top: -12rem;
  right: 8%;
  background: var(--lager);
}

.ambient-two {
  bottom: -14rem;
  left: 8%;
  background: var(--merlot);
}

.display {
  margin: 0;
  font-family: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-weight: 400;
  font-kerning: normal;
  letter-spacing: 0.07em;
  line-height: 0.94;
  text-rendering: geometricPrecision;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(239, 226, 207, 0.62);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.23em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.5rem;
  height: 1px;
  background: var(--lager);
  content: "";
}

.muted {
  color: rgba(239, 226, 207, 0.62);
}

.paper-muted {
  color: #795d48;
}

.text-success {
  color: #8fba96;
}

.text-warning {
  color: var(--lager-bright);
}

.app-shell {
  min-height: 100vh;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
}

.login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 5.5rem);
  background:
    linear-gradient(135deg, rgba(16, 10, 8, 0.34), rgba(33, 18, 14, 0.86)),
    radial-gradient(circle at 82% 22%, rgba(217, 164, 65, 0.24), transparent 28rem);
  border-right: 1px solid var(--line);
}

.login-story::after {
  position: absolute;
  right: -8rem;
  bottom: -11rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(217, 164, 65, 0.18);
  border-radius: 999px;
  box-shadow:
    0 0 0 5rem rgba(217, 164, 65, 0.025),
    0 0 0 10rem rgba(217, 164, 65, 0.018);
  content: "";
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.brand img {
  width: 176px;
  height: auto;
}

.brand.compact img {
  width: 142px;
}

.login-copy {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.login-copy h1 {
  max-width: 8ch;
  margin-top: 1.25rem;
  font-size: clamp(4.4rem, 9vw, 9rem);
}

.login-copy h1 span {
  color: var(--lager);
}

.login-copy > p {
  max-width: 58ch;
  margin: 1.6rem 0 0;
  color: rgba(239, 226, 207, 0.7);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.75;
}

.story-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 720px;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.story-metric {
  min-height: 110px;
  padding: 1.25rem;
  background: rgba(22, 17, 14, 0.82);
}

.story-metric strong {
  display: block;
  color: var(--lager);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 1.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.story-metric span {
  display: block;
  margin-top: 0.45rem;
  color: rgba(239, 226, 207, 0.56);
  font-size: 0.78rem;
  line-height: 1.45;
}

.login-panel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(247, 239, 226, 0.98), rgba(235, 219, 195, 0.96)),
    url("./assets/papir-textura.png") center / cover;
  color: #2f2118;
}

.login-panel {
  width: min(100%, 470px);
}

.login-panel h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(3.2rem, 7vw, 5.4rem);
}

.login-panel .intro {
  margin: 1rem 0 2rem;
  color: #73543e;
  line-height: 1.65;
}

.role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1.4rem;
  padding: 0.35rem;
  border: 1px solid rgba(47, 33, 24, 0.14);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.55);
}

.role-tab {
  min-height: 47px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #80634d;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.role-tab.active {
  background: #2f2118;
  color: var(--cream);
  box-shadow: 0 8px 22px rgba(47, 33, 24, 0.16);
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field > span,
.field-label {
  color: inherit;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.control {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(47, 33, 24, 0.16);
  border-radius: 17px;
  outline: 0;
  background: rgba(255, 250, 241, 0.74);
  color: #2f2118;
  transition: 160ms ease;
}

.field input,
.field select {
  padding: 0 1rem;
}

.field textarea {
  min-height: 112px;
  padding: 0.9rem 1rem;
  resize: vertical;
  line-height: 1.55;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(179, 92, 52, 0.7);
  background: var(--paper-light);
  box-shadow: 0 0 0 4px rgba(179, 92, 52, 0.09);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 3.4rem;
}

.icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
}

.password-wrap .icon-button {
  position: absolute;
  top: 6px;
  right: 7px;
  color: #73543e;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.25rem;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    background 160ms ease,
    opacity 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button:disabled {
  transform: none;
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--lager-bright), #c78d32);
  color: #24170f;
  box-shadow: 0 14px 28px rgba(184, 124, 45, 0.24);
}

.button.dark {
  background: #2f2118;
  color: var(--cream);
}

.button.ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--cream);
}

.button.paper-ghost {
  border: 1px solid rgba(47, 33, 24, 0.16);
  background: rgba(255, 250, 241, 0.58);
  color: #4a3527;
}

.button.danger {
  background: rgba(159, 76, 60, 0.12);
  color: #8b3c2f;
}

.button.small {
  min-height: 40px;
  padding: 0.55rem 0.95rem;
  font-size: 0.65rem;
}

.button.full {
  width: 100%;
}

.login-error {
  min-height: 1.4rem;
  margin: 0.8rem 0 0;
  color: #943e31;
  font-size: 0.82rem;
}

.demo-access {
  margin-top: 1.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(47, 33, 24, 0.13);
}

.demo-access p {
  margin: 0 0 0.75rem;
  color: #80634d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo-chip {
  border: 1px solid rgba(47, 33, 24, 0.14);
  border-radius: 999px;
  padding: 0.55rem 0.8rem;
  background: rgba(255, 250, 241, 0.52);
  color: #59402f;
  font-size: 0.73rem;
  font-weight: 700;
}

.portal-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 270px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 1.75rem 1.2rem;
  border-right: 1px solid var(--line);
  background: rgba(16, 11, 8, 0.78);
  backdrop-filter: blur(18px);
}

.side-profile {
  margin-top: 2rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
}

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--lager), #9d5f2b);
  color: #21130c;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.profile-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.profile-line strong {
  display: block;
  overflow: hidden;
  color: var(--cream);
  font-size: 0.87rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-line span {
  display: block;
  margin-top: 0.25rem;
  color: rgba(239, 226, 207, 0.52);
  font-size: 0.71rem;
}

.nav {
  display: grid;
  gap: 0.35rem;
  margin-top: 1.4rem;
}

.nav-button {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 0.8rem;
  border: 0;
  border-radius: 15px;
  padding: 0 0.9rem;
  background: transparent;
  color: rgba(239, 226, 207, 0.58);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: left;
  transition: 150ms ease;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
}

.nav-button.active {
  background: rgba(217, 164, 65, 0.13);
  color: var(--lager-bright);
}

.nav-button .nav-badge {
  min-width: 21px;
  margin-left: auto;
  border-radius: 999px;
  padding: 0.17rem 0.42rem;
  background: var(--ember);
  color: white;
  font-size: 0.62rem;
  text-align: center;
}

.sidebar-footer {
  display: grid;
  gap: 0.65rem;
  margin-top: auto;
}

.sidebar-footer small {
  color: rgba(239, 226, 207, 0.38);
  font-size: 0.65rem;
  line-height: 1.45;
}

.mobile-topbar {
  display: none;
}

.main-content {
  min-width: 0;
  padding: 2rem clamp(1.25rem, 3vw, 3.5rem) 4rem;
}

.content-shell {
  width: min(100%, 1440px);
  margin: 0 auto;
}

.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.8rem;
}

.page-header h1 {
  margin-top: 0.65rem;
  font-size: clamp(3.2rem, 6vw, 5.8rem);
}

.page-header p {
  max-width: 60ch;
  margin: 0.65rem 0 0;
  color: rgba(239, 226, 207, 0.58);
  line-height: 1.6;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.grid {
  display: grid;
  gap: 1.2rem;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.main-side {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
}

.card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: var(--shadow);
}

.card.paper {
  border-color: rgba(47, 33, 24, 0.14);
  background:
    linear-gradient(180deg, rgba(247, 239, 226, 0.97), rgba(235, 219, 195, 0.94)),
    url("./assets/papir-textura.png") center / cover;
  color: #2f2118;
  box-shadow: var(--paper-shadow);
}

.card-pad {
  padding: clamp(1.2rem, 2.5vw, 2rem);
}

.hero-card {
  position: relative;
  min-height: 390px;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  background:
    radial-gradient(circle at 90% 10%, rgba(217, 164, 65, 0.24), transparent 18rem),
    linear-gradient(145deg, rgba(30, 20, 16, 0.96), rgba(45, 27, 21, 0.88));
}

.hero-card::after {
  position: absolute;
  right: -3rem;
  bottom: -7rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(217, 164, 65, 0.15);
  border-radius: 999px;
  box-shadow:
    0 0 0 3.5rem rgba(217, 164, 65, 0.025),
    0 0 0 7rem rgba(217, 164, 65, 0.018);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: space-between;
}

.hero-card h2 {
  max-width: 9ch;
  margin: 1rem 0 0;
  font-size: clamp(3.7rem, 8vw, 7.2rem);
}

.hero-card h2 span {
  color: var(--lager);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.hero-bottom p {
  max-width: 48ch;
  margin: 0;
  color: rgba(239, 226, 207, 0.62);
  line-height: 1.7;
}

.level-stamp {
  display: grid;
  min-width: 112px;
  min-height: 112px;
  place-items: center;
  flex: 0 0 auto;
  transform: rotate(3deg);
  border: 2px solid var(--lager);
  border-radius: 999px;
  color: var(--lager);
  text-align: center;
}

.level-stamp strong {
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2.45rem;
  font-weight: 400;
  line-height: 1;
}

.level-stamp span {
  display: block;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.metric-card {
  min-height: 152px;
  padding: 1.35rem;
}

.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.metric-icon,
.section-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgba(217, 164, 65, 0.12);
  color: var(--lager-bright);
}

.paper .metric-icon,
.paper .section-icon {
  background: rgba(179, 92, 52, 0.1);
  color: #8c4d30;
}

.metric-card .metric-value {
  margin-top: 1.15rem;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.metric-card .metric-label {
  margin-top: 0.25rem;
  color: rgba(239, 226, 207, 0.48);
  font-size: 0.72rem;
  font-weight: 700;
}

.paper.metric-card .metric-label {
  color: #80634d;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.section-heading h2,
.section-heading h3 {
  margin: 0;
  font-size: 1.12rem;
}

.section-heading p {
  margin: 0.35rem 0 0;
  color: rgba(239, 226, 207, 0.48);
  font-size: 0.8rem;
  line-height: 1.5;
}

.paper .section-heading p {
  color: #80634d;
}

.frequency-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.frequency-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.frequency-option span {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(47, 33, 24, 0.14);
  border-radius: 17px;
  background: rgba(255, 250, 241, 0.55);
  color: #795d48;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  transition: 150ms ease;
}

.frequency-option input:checked + span {
  border-color: #2f2118;
  background: #2f2118;
  color: var(--cream);
  box-shadow: 0 10px 22px rgba(47, 33, 24, 0.15);
}

.package-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
}

.package-toolbar p {
  margin: 0;
  color: #795d48;
  font-size: 0.82rem;
  line-height: 1.5;
}

.count-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.72rem;
  background: rgba(179, 92, 52, 0.1);
  color: #7d402c;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.beer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.beer-item {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(47, 33, 24, 0.13);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255, 250, 241, 0.55);
}

.beer-item-top {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  margin-bottom: 0.8rem;
}

.beer-icon {
  position: relative;
  display: grid;
  width: 42px;
  height: 50px;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid #4a3325;
  border-radius: 5px 5px 10px 10px;
  background: linear-gradient(180deg, #f1d38c 0 18%, #d49a32 18% 100%);
  color: #4a3325;
}

.beer-icon::before {
  position: absolute;
  top: -5px;
  left: -3px;
  width: 44px;
  height: 10px;
  border-radius: 8px 8px 4px 4px;
  background: #fff6e5;
  box-shadow: 0 3px 0 rgba(255, 246, 229, 0.48);
  content: "";
}

.beer-icon::after {
  position: absolute;
  top: 16px;
  right: -10px;
  width: 12px;
  height: 21px;
  border: 2px solid #4a3325;
  border-left: 0;
  border-radius: 0 8px 8px 0;
  content: "";
}

.beer-item strong {
  display: block;
  font-size: 0.82rem;
}

.beer-item small {
  display: block;
  margin-top: 0.22rem;
  color: #92745d;
  font-size: 0.65rem;
}

.beer-item select {
  width: 100%;
  min-height: 43px;
  border: 1px solid rgba(47, 33, 24, 0.14);
  border-radius: 13px;
  padding: 0 0.75rem;
  outline: 0;
  background: rgba(255, 248, 237, 0.9);
  color: #39271d;
  font-size: 0.77rem;
  font-weight: 700;
}

.subscription-settings-card {
  border-color: rgba(222, 138, 92, 0.34);
}

.subscription-settings-card .frequency-option span,
.subscription-settings-card .beer-item {
  border-color: rgba(217, 121, 77, 0.46);
  background: rgba(255, 248, 237, 0.62);
  color: #3a281f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.subscription-settings-card .frequency-option input:checked + span {
  border-color: rgba(179, 92, 52, 0.72);
  background: linear-gradient(180deg, rgba(255, 246, 230, 0.92), rgba(247, 225, 196, 0.72));
  color: #3a281f;
  box-shadow:
    0 10px 22px rgba(179, 92, 52, 0.13),
    inset 0 0 0 1px rgba(179, 92, 52, 0.13);
}

.subscription-settings-card .package-toolbar p,
.subscription-settings-card .beer-item small {
  color: #8c6b55;
}

.subscription-settings-card .beer-item strong {
  color: #34241b;
}

.subscription-settings-card .beer-item select {
  border-color: rgba(217, 121, 77, 0.38);
  background: rgba(255, 250, 241, 0.8);
}

.subscription-settings-card .beer-item select:focus {
  border-color: rgba(179, 92, 52, 0.72);
  background: #fff8ed;
  box-shadow: 0 0 0 4px rgba(179, 92, 52, 0.1);
}

.product-thumb {
  display: grid;
  width: 72px;
  height: 86px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(47, 33, 24, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 24%, rgba(217, 164, 65, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.86), rgba(244, 230, 208, 0.7));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 11px 24px rgba(47, 33, 24, 0.12);
  overflow: hidden;
}

.product-thumb img {
  width: 76%;
  height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(47, 33, 24, 0.23));
}

.product-thumb--card {
  width: 78px;
  height: 94px;
  border-radius: 20px;
}

.product-thumb--small {
  width: 74px;
  height: 88px;
}

.product-thumb--tiny {
  width: 34px;
  height: 42px;
  border-radius: 10px;
  box-shadow: none;
}

.product-thumb--tiny img {
  width: 78%;
  height: 90%;
}

.product-thumb--catalog {
  width: 110px;
  height: 138px;
  border-radius: 24px;
}

.product-thumb--catalog img {
  width: 82%;
  height: 94%;
}

.save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(47, 33, 24, 0.13);
}

.save-bar p {
  margin: 0;
  color: #80634d;
  font-size: 0.75rem;
  line-height: 1.45;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 0.8rem;
  padding-bottom: 1.35rem;
}

.timeline-item:not(:last-child)::before {
  position: absolute;
  top: 28px;
  bottom: 0;
  left: 14px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-dot {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  z-index: 1;
  border: 1px solid rgba(217, 164, 65, 0.28);
  border-radius: 999px;
  background: #211713;
  color: var(--lager);
}

.timeline-item strong {
  display: block;
  font-size: 0.8rem;
}

.timeline-item p {
  margin: 0.25rem 0 0;
  color: rgba(239, 226, 207, 0.48);
  font-size: 0.72rem;
  line-height: 1.5;
}

.callout {
  padding: 1.15rem;
  border: 1px solid rgba(217, 164, 65, 0.2);
  border-radius: 20px;
  background: rgba(217, 164, 65, 0.075);
}

.callout strong {
  display: block;
  color: var(--lager-bright);
  font-size: 0.82rem;
}

.callout p {
  margin: 0.45rem 0 0;
  color: rgba(239, 226, 207, 0.56);
  font-size: 0.75rem;
  line-height: 1.55;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 1.2rem;
}

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

.field.full-span {
  grid-column: 1 / -1;
}

.level-options {
  display: grid;
  gap: 0.65rem;
}

.level-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(47, 33, 24, 0.14);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 250, 241, 0.5);
}

.level-option.active {
  border-color: rgba(179, 92, 52, 0.5);
  box-shadow: inset 0 0 0 1px rgba(179, 92, 52, 0.15);
}

.level-option.selected {
  border-color: #2f2118;
  background: #2f2118;
  color: var(--cream);
  box-shadow: 0 10px 22px rgba(47, 33, 24, 0.14);
}

.level-option.selected span {
  color: rgba(247, 239, 226, 0.66);
}

.level-option.selected .level-radio {
  border-color: rgba(247, 239, 226, 0.48);
}

.level-option strong {
  display: block;
  font-size: 0.86rem;
}

.level-option span {
  display: block;
  margin-top: 0.25rem;
  color: #866850;
  font-size: 0.7rem;
}

.level-radio {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(47, 33, 24, 0.3);
  border-radius: 999px;
}

.level-option.selected .level-radio::after {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--lager);
  content: "";
}

.subscription-level-card {
  border-color: rgba(222, 138, 92, 0.34);
}

.subscription-level-card .section-heading p {
  color: #80634d;
}

.subscription-level-card .level-options {
  gap: 0.78rem;
}

.subscription-level-card .level-option {
  border-color: rgba(217, 121, 77, 0.5);
  background: rgba(255, 248, 237, 0.6);
  color: #3a281f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.subscription-level-card .level-option.active,
.subscription-level-card .level-option.selected {
  border-color: rgba(217, 121, 77, 0.62);
  background: rgba(255, 248, 237, 0.72);
  color: #3a281f;
  box-shadow: inset 0 0 0 1px rgba(217, 121, 77, 0.14);
}

.subscription-level-card .level-option.selected:not(.active) {
  border-color: rgba(179, 92, 52, 0.72);
  background: linear-gradient(180deg, rgba(255, 246, 230, 0.92), rgba(247, 225, 196, 0.72));
  box-shadow:
    0 10px 22px rgba(179, 92, 52, 0.13),
    inset 0 0 0 1px rgba(179, 92, 52, 0.13);
}

.subscription-level-card .level-option span,
.subscription-level-card .level-option.selected span {
  color: #8c6b55;
}

.subscription-level-card .level-radio,
.subscription-level-card .level-option.selected .level-radio {
  border-color: rgba(179, 92, 52, 0.42);
  background: rgba(255, 250, 241, 0.72);
}

.subscription-level-card .level-option.selected .level-radio::after {
  background: #b35c34;
}

.status-pill {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  gap: 0.38rem;
  border-radius: 999px;
  padding: 0.2rem 0.62rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill.active,
.status-pill.done {
  background: rgba(86, 118, 93, 0.15);
  color: #6f9276;
}

.status-pill.pending {
  background: rgba(217, 164, 65, 0.14);
  color: #9b6822;
}

.status-pill.new {
  background: rgba(179, 92, 52, 0.13);
  color: #934c31;
}

.chat-layout {
  display: grid;
  min-height: 650px;
  grid-template-columns: 330px minmax(0, 1fr);
}

.conversation-list {
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
}

.conversation-list-header,
.chat-header {
  min-height: 82px;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.conversation-list-header h3,
.chat-header h3 {
  margin: 0;
  font-size: 0.92rem;
}

.conversation-list-header p,
.chat-header p {
  margin: 0.25rem 0 0;
  color: rgba(239, 226, 207, 0.46);
  font-size: 0.7rem;
}

.conversation-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  border-bottom: 1px solid rgba(247, 239, 226, 0.07);
  padding: 1rem 1.2rem;
  background: transparent;
  color: var(--cream);
  text-align: left;
}

.conversation-item.active {
  background: rgba(217, 164, 65, 0.1);
}

.conversation-item .avatar {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-size: 0.72rem;
}

.conversation-item strong {
  display: block;
  font-size: 0.78rem;
}

.conversation-item p {
  overflow: hidden;
  max-width: 185px;
  margin: 0.25rem 0 0;
  color: rgba(239, 226, 207, 0.43);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-window {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.chat-messages {
  display: flex;
  min-height: 450px;
  max-height: 540px;
  flex: 1;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  padding: 1.4rem;
}

.message {
  max-width: min(76%, 620px);
}

.message.mine {
  align-self: flex-end;
}

.message.theirs {
  align-self: flex-start;
}

.message-bubble {
  border: 1px solid var(--line);
  border-radius: 20px 20px 20px 5px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(247, 239, 226, 0.85);
  font-size: 0.82rem;
  line-height: 1.6;
}

.message.mine .message-bubble {
  border-color: rgba(217, 164, 65, 0.22);
  border-radius: 20px 20px 5px 20px;
  background: rgba(217, 164, 65, 0.14);
}

.message time {
  display: block;
  margin-top: 0.35rem;
  color: rgba(239, 226, 207, 0.34);
  font-size: 0.61rem;
}

.message.mine time {
  text-align: right;
}

.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.chat-form textarea {
  width: 100%;
  min-height: 50px;
  max-height: 130px;
  flex: 1;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 0.85rem 1rem;
  outline: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--cream);
}

.chat-form textarea:focus {
  border-color: rgba(217, 164, 65, 0.42);
}

.chat-form textarea::placeholder {
  color: rgba(239, 226, 207, 0.35);
}

.table-card {
  overflow: hidden;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  border-bottom: 1px solid var(--line);
}

.search-wrap {
  position: relative;
  width: min(100%, 360px);
}

.search-wrap .icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  color: rgba(239, 226, 207, 0.4);
}

.search-wrap input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 1rem 0 2.6rem;
  outline: 0;
  background: rgba(255, 255, 255, 0.04);
  color: var(--cream);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 0.85rem 1.1rem;
  color: rgba(239, 226, 207, 0.4);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.data-table td {
  padding: 1rem 1.1rem;
  border-top: 1px solid rgba(247, 239, 226, 0.075);
  color: rgba(247, 239, 226, 0.78);
  font-size: 0.77rem;
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(255, 255, 255, 0.018);
}

.user-cell {
  display: flex;
  min-width: 190px;
  align-items: center;
  gap: 0.75rem;
}

.user-cell .avatar {
  width: 37px;
  height: 37px;
  border-radius: 12px;
  font-size: 0.69rem;
}

.user-cell strong {
  display: block;
  color: var(--cream);
  font-size: 0.77rem;
}

.user-cell span {
  display: block;
  margin-top: 0.2rem;
  color: rgba(239, 226, 207, 0.4);
  font-size: 0.67rem;
}

.action-row {
  display: flex;
  gap: 0.45rem;
}

.notification-list {
  display: grid;
  gap: 0.75rem;
}

.notification {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
}

.notification .metric-icon {
  flex: 0 0 auto;
}

.notification-content {
  min-width: 0;
  flex: 1;
}

.notification-content strong {
  display: block;
  font-size: 0.8rem;
}

.notification-content p {
  margin: 0.3rem 0 0;
  color: rgba(239, 226, 207, 0.48);
  font-size: 0.72rem;
  line-height: 1.5;
}

.notification-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.invite-card {
  min-height: 100%;
}

.invite-preview {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  padding: 2rem;
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 164, 65, 0.23), transparent 17rem),
    #1c1310;
}

.invite-preview::after {
  position: absolute;
  right: -5rem;
  bottom: -7rem;
  width: 19rem;
  height: 19rem;
  border: 1px solid rgba(217, 164, 65, 0.16);
  border-radius: 999px;
  content: "";
}

.invite-preview-content {
  position: relative;
  z-index: 1;
}

.invite-preview img {
  width: 145px;
}

.invite-preview h3 {
  max-width: 7ch;
  margin: 3.5rem 0 1rem;
  font-size: 4rem;
}

.invite-preview h3 span {
  color: var(--lager);
}

.invite-preview p {
  max-width: 40ch;
  color: rgba(239, 226, 207, 0.56);
  font-size: 0.82rem;
  line-height: 1.65;
}

.empty-state {
  display: grid;
  min-height: 320px;
  place-items: center;
  padding: 2rem;
  text-align: center;
}

.empty-state .section-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto;
  border-radius: 19px;
}

.empty-state h3 {
  margin: 1rem 0 0;
  font-size: 1rem;
}

.empty-state p {
  max-width: 42ch;
  margin: 0.6rem auto 0;
  color: rgba(239, 226, 207, 0.45);
  font-size: 0.75rem;
  line-height: 1.6;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  max-width: min(390px, calc(100vw - 2.5rem));
  min-height: 54px;
  align-items: center;
  gap: 0.7rem;
  transform: translateY(30px);
  border: 1px solid rgba(217, 164, 65, 0.3);
  border-radius: 17px;
  padding: 0.8rem 1rem;
  background: #2b1d16;
  color: var(--cream);
  box-shadow: 0 18px 45px rgba(5, 3, 2, 0.36);
  font-size: 0.78rem;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: 200ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--lager);
  content: "";
}

.mobile-nav-overlay {
  display: none;
}

@media (max-width: 1180px) {
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid.main-side,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .beer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-editor-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .login-copy {
    margin-top: 5rem;
  }

  .login-copy h1 {
    font-size: clamp(4.5rem, 16vw, 8rem);
  }

  .login-panel-wrap {
    min-height: auto;
    padding: 4rem 1.25rem;
  }

  .portal-layout {
    display: block;
    padding-top: 71px;
  }

  .sidebar {
    position: fixed;
    z-index: 70;
    top: 0;
    left: 0;
    width: 280px;
    transform: translateX(-102%);
    transition: transform 200ms ease;
  }

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

  .mobile-nav-overlay {
    position: fixed;
    z-index: 60;
    inset: 0;
    display: block;
    visibility: hidden;
    background: rgba(8, 5, 4, 0.62);
    opacity: 0;
    transition: 200ms ease;
  }

  .mobile-nav-overlay.open {
    visibility: visible;
    opacity: 1;
  }

  .mobile-topbar {
    position: fixed;
    z-index: 55;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: 71px;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(17, 12, 9, 0.9);
    backdrop-filter: blur(16px);
  }

  .mobile-topbar .brand img {
    width: 120px;
  }

  .main-content {
    padding-top: 1.5rem;
  }

  .chat-layout {
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .table-scroll {
    overflow-x: auto;
  }

  .data-table {
    min-width: 850px;
  }
}

@media (max-width: 720px) {
  .login-story {
    padding: 1.5rem;
  }

  .login-copy {
    margin-top: 4rem;
  }

  .story-metrics {
    grid-template-columns: 1fr;
  }

  .story-metric {
    min-height: auto;
  }

  .main-content {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    justify-content: flex-start;
  }

  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 430px;
  }

  .hero-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .level-stamp {
    min-width: 92px;
    min-height: 92px;
    align-self: flex-end;
  }

  .frequency-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .beer-grid,
  .settings-form {
    grid-template-columns: 1fr;
  }

  .catalog-editor-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .catalog-remove {
    width: 100%;
  }

  .save-bar,
  .package-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-layout {
    display: block;
    min-height: auto;
  }

  .conversation-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .conversation-list-body {
    display: flex;
    overflow-x: auto;
  }

  .conversation-item {
    min-width: 220px;
    border-right: 1px solid rgba(247, 239, 226, 0.07);
  }

  .chat-messages {
    min-height: 420px;
  }

  .message {
    max-width: 88%;
  }

  .notification {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .notification-actions {
    width: 100%;
    padding-left: 3.7rem;
  }

  .invite-preview h3 {
    font-size: 3.4rem;
  }
}

/* Product-list inspired refresh */

.login-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at 18% 0%, rgba(217, 164, 65, 0.2), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(165, 77, 63, 0.13), transparent 25rem),
    linear-gradient(180deg, #120d0a 0%, #17110e 42%, #1f1612 100%);
}

.login-panel-wrap {
  display: block;
  width: min(100%, 540px);
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--cream);
}

.login-panel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(247, 239, 226, 0.11);
  border-radius: 30px;
  padding: clamp(28px, 6vw, 48px);
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 164, 65, 0.13), transparent 18rem),
    linear-gradient(145deg, rgba(26, 18, 14, 0.96), rgba(33, 23, 18, 0.9));
  box-shadow: 0 30px 80px rgba(8, 5, 3, 0.34);
}

.login-panel::after {
  position: absolute;
  right: -110px;
  bottom: -145px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(217, 164, 65, 0.1);
  border-radius: 999px;
  box-shadow:
    0 0 0 42px rgba(217, 164, 65, 0.018),
    0 0 0 84px rgba(217, 164, 65, 0.012);
  content: "";
  pointer-events: none;
}

.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 44px;
}

.login-brand img {
  width: 190px;
}

.login-heading {
  position: relative;
  z-index: 1;
  margin-bottom: 28px;
  text-align: center;
}

.login-heading > span {
  display: block;
  margin-bottom: 14px;
  color: rgba(239, 226, 207, 0.64);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-heading h1 {
  font-size: clamp(2.75rem, 8.4vw, 4.35rem);
  letter-spacing: 0.085em;
  line-height: 0.96;
}

.login-panel .form-grid {
  position: relative;
  z-index: 1;
}

.login-panel .field > span {
  color: rgba(239, 226, 207, 0.62);
}

.login-panel .field input {
  border-color: rgba(247, 239, 226, 0.11);
  background: rgba(255, 255, 255, 0.055);
  color: var(--cream);
}

.login-panel .field input::placeholder {
  color: rgba(239, 226, 207, 0.3);
}

.login-panel .field input:focus {
  border-color: rgba(217, 164, 65, 0.5);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 4px rgba(217, 164, 65, 0.08);
}

.login-panel .password-wrap .icon-button {
  color: rgba(239, 226, 207, 0.58);
}

.login-subscription-button {
  border: 1px solid rgba(217, 164, 65, 0.34);
  background: rgba(217, 164, 65, 0.06);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.015);
}

.login-subscription-button:hover {
  border-color: rgba(217, 164, 65, 0.58);
  background: rgba(217, 164, 65, 0.11);
}

.login-forgot-link {
  justify-self: center;
  margin-top: -0.2rem;
  border: 0;
  padding: 0.28rem 0.5rem;
  background: transparent;
  color: rgba(239, 226, 207, 0.58);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: underline;
  text-decoration-color: rgba(217, 164, 65, 0.34);
  text-underline-offset: 0.28rem;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.login-forgot-link:hover {
  color: var(--cream);
  text-decoration-color: var(--lager-bright);
}

.login-subscription-button:focus-visible,
.login-forgot-link:focus-visible {
  outline: 2px solid var(--lager-bright);
  outline-offset: 3px;
}

.login-panel .login-error {
  position: relative;
  z-index: 1;
  color: #e49a87;
  text-align: center;
}

.dashboard-header {
  margin-bottom: 24px;
}

.membership-product {
  display: grid;
  min-height: 410px;
  grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1.28fr);
  background: linear-gradient(180deg, rgba(244, 227, 185, 0.13), rgba(217, 164, 65, 0.08));
}

.membership-product__visual {
  position: relative;
  display: grid;
  min-height: 410px;
  place-items: center;
  overflow: hidden;
  border-right: 1px solid rgba(247, 239, 226, 0.09);
  background:
    radial-gradient(circle at 50% 54%, rgba(217, 164, 65, 0.2), transparent 42%),
    rgba(0, 0, 0, 0.15);
}

.membership-product__glow {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(217, 164, 65, 0.18);
  filter: blur(70px);
}

.membership-product__beer {
  position: relative;
  z-index: 2;
  width: min(76%, 330px);
  height: 350px;
  object-fit: contain;
  filter: drop-shadow(0 26px 28px rgba(5, 3, 2, 0.38));
}

.membership-product__level-icon {
  position: relative;
  z-index: 2;
  width: min(82%, 330px);
  height: 330px;
  object-fit: contain;
  filter: drop-shadow(0 25px 26px rgba(5, 3, 2, 0.35));
}

.membership-product__hops {
  position: absolute;
  z-index: 1;
  right: -38px;
  bottom: -45px;
  width: 210px;
  opacity: 0.52;
  transform: rotate(-10deg);
  filter: saturate(0.72);
}

.membership-product__badge {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 22px;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid rgba(247, 239, 226, 0.14);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(22, 17, 14, 0.76);
  color: var(--sand);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.membership-product__content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 52px);
}

.product-kicker {
  color: rgba(239, 226, 207, 0.62);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.membership-product__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 10px;
}

.membership-product__title h2 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
}

.membership-product__title .level-stamp {
  min-width: 86px;
  min-height: 86px;
}

.membership-product__title .level-stamp strong {
  font-size: 2rem;
}

.membership-product__lead {
  max-width: 650px;
  margin: 18px 0 0;
  color: rgba(239, 226, 207, 0.72);
  font-size: 1rem;
  line-height: 1.75;
}

.membership-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.membership-facts > div {
  min-width: 0;
  border: 1px solid rgba(247, 239, 226, 0.09);
  border-radius: 18px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.045);
}

.membership-facts span {
  display: block;
  color: rgba(239, 226, 207, 0.42);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.membership-facts strong {
  display: block;
  overflow: hidden;
  margin-top: 7px;
  color: var(--cream);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.membership-product__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 18px;
  margin-top: 18px;
}

.dashboard-side {
  display: grid;
  align-content: start;
  gap: 18px;
}

.next-box-card {
  min-height: 100%;
}

.package-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.package-preview__item {
  position: relative;
  display: grid;
  min-height: 142px;
  place-items: center;
  border: 1px solid rgba(47, 33, 24, 0.12);
  border-radius: 20px;
  padding: 17px 12px 13px;
  background: rgba(255, 250, 241, 0.56);
  text-align: center;
}

.package-preview__item > span {
  position: absolute;
  top: 10px;
  right: 12px;
  color: rgba(47, 33, 24, 0.38);
  font-size: 0.62rem;
  font-weight: 900;
}

.package-preview__item strong {
  margin-top: 8px;
  color: #422d20;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.beer-glass {
  --beer-color: #d99a2e;
  --glass-stroke: #493326;
  position: relative;
  width: 46px;
  height: 58px;
  flex: 0 0 auto;
  border: 3px solid var(--glass-stroke);
  border-top-width: 2px;
  border-radius: 5px 5px 11px 11px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 27% 72%, rgba(255, 255, 255, 0.14)),
    linear-gradient(180deg, #fff5dc 0 16%, var(--beer-color) 16% 100%);
  box-shadow:
    inset 0 -7px 0 rgba(63, 35, 18, 0.09),
    0 8px 15px rgba(47, 33, 24, 0.12);
}

.beer-glass::before {
  position: absolute;
  z-index: 2;
  top: -5px;
  right: -2px;
  left: -2px;
  height: 12px;
  border: 2px solid var(--glass-stroke);
  border-radius: 8px 8px 4px 4px;
  background: #fff6e5;
  content: "";
}

.beer-glass::after {
  position: absolute;
  top: 17px;
  right: -15px;
  width: 15px;
  height: 26px;
  border: 3px solid var(--glass-stroke);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  content: "";
}

.beer-glass > span {
  position: absolute;
  z-index: 1;
  top: 12px;
  bottom: 8px;
  left: 10px;
  width: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.beer-glass > span::after {
  position: absolute;
  top: 13px;
  left: 8px;
  color: rgba(54, 37, 27, 0.58);
  content: "0,7";
  font-size: 7px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.beer-glass--lager {
  --beer-color: #e5a12b;
}

.beer-glass--ale {
  --beer-color: #bb8757;
}

.beer-glass--mix {
  --beer-color: #8c8b87;
}

.beer-glass--nonalcoholic {
  --beer-color: #69a9ce;
}

.beer-glass--limited {
  --beer-color: #d7ab38;
  --glass-stroke: #6d4b13;
  filter: drop-shadow(0 0 7px rgba(215, 171, 56, 0.34));
}

.beer-glass--small {
  width: 39px;
  height: 51px;
  transform: translateX(-3px);
}

.beer-glass--small::after {
  top: 14px;
  right: -13px;
  width: 13px;
  height: 23px;
}

.beer-glass--small > span::after {
  font-size: 6px;
}

.mini-beer {
  position: relative;
  width: 32px;
  height: 47px;
  border: 2px solid #4a3325;
  border-radius: 5px 5px 9px 9px;
  background: linear-gradient(180deg, #fff4da 0 17%, #d69b32 17% 100%);
}

.mini-beer::after {
  position: absolute;
  top: 15px;
  right: -9px;
  width: 10px;
  height: 19px;
  border: 2px solid #4a3325;
  border-left: 0;
  border-radius: 0 7px 7px 0;
  content: "";
}

.admin-package-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.package-pill {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(47, 33, 24, 0.12);
  border-radius: 999px;
  padding: 0.26rem 0.58rem 0.26rem 0.3rem;
  background: rgba(255, 250, 241, 0.72);
  color: #5b3b27;
  font-size: 0.72rem;
  font-weight: 900;
}

.package-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-editor-list {
  display: grid;
  gap: 0.9rem;
}

.catalog-editor-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(47, 33, 24, 0.12);
  border-radius: 24px;
  padding: 0.9rem;
  background: rgba(255, 250, 241, 0.58);
}

.catalog-editor-preview {
  display: grid;
  place-items: center;
}

.catalog-editor-fields {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(230px, 1.1fr);
  gap: 0.8rem;
  min-width: 0;
}

.catalog-remove {
  align-self: end;
  white-space: nowrap;
}

.asset-path-list {
  display: grid;
  gap: 0.5rem;
}

.asset-path-list code {
  display: block;
  overflow-wrap: anywhere;
  border: 1px solid rgba(47, 33, 24, 0.12);
  border-radius: 13px;
  padding: 0.62rem 0.72rem;
  background: rgba(255, 250, 241, 0.62);
  color: #6b4934;
  font-size: 0.68rem;
  font-weight: 800;
}

.inline-secret {
  display: inline-flex;
  border: 1px solid rgba(217, 164, 65, 0.28);
  border-radius: 999px;
  padding: 0.26rem 0.52rem;
  background: rgba(217, 164, 65, 0.12);
  color: #70421d;
  font-size: 0.72rem;
  font-weight: 900;
}

.storage-list,
.email-log-list {
  display: grid;
  gap: 0.55rem;
}

.storage-status {
  display: flex;
  align-items: center;
  gap: 0.82rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(47, 33, 24, 0.12);
  border-radius: 20px;
  padding: 0.88rem 1rem;
  background: rgba(255, 250, 241, 0.72);
  color: #422d20;
}

.storage-status > span {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #c78d2f;
  box-shadow: 0 0 0 6px rgba(199, 141, 47, 0.13);
}

.storage-status.active > span {
  background: #3fa268;
  box-shadow: 0 0 0 6px rgba(63, 162, 104, 0.13);
}

.storage-status strong {
  display: block;
  font-size: 0.82rem;
}

.storage-status p {
  margin: 0.18rem 0 0;
  color: #80634d;
  font-size: 0.7rem;
  line-height: 1.45;
}

.storage-row,
.email-log-item {
  display: grid;
  gap: 0.2rem;
  border: 1px solid rgba(47, 33, 24, 0.12);
  border-radius: 17px;
  padding: 0.78rem 0.88rem;
  background: rgba(255, 250, 241, 0.62);
}

.storage-row strong,
.email-log-item strong {
  color: #422d20;
  font-size: 0.82rem;
}

.storage-row span,
.email-log-item span,
.email-log-item small {
  color: #80634d;
  font-size: 0.68rem;
  line-height: 1.4;
}

.email-log-item .email-error {
  color: var(--danger);
  font-weight: 800;
}

.code-area,
.html-template-area {
  width: 100%;
  min-height: 260px;
  border: 1px solid rgba(47, 33, 24, 0.14);
  border-radius: 18px;
  padding: 1rem;
  outline: 0;
  background: rgba(255, 248, 237, 0.9);
  color: #39271d;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.75rem;
  line-height: 1.55;
  resize: vertical;
}

.html-template-area {
  min-height: 300px;
}

.email-template-block {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
  border-top: 1px solid rgba(47, 33, 24, 0.13);
  padding-top: 1.2rem;
}

.compact-heading {
  margin-bottom: 0;
}

.delivery-card {
  background:
    radial-gradient(circle at 100% 0%, rgba(217, 164, 65, 0.15), transparent 13rem),
    rgba(255, 255, 255, 0.045);
}

.delivery-date {
  color: var(--lager-bright);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.05;
}

.delivery-detail {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(247, 239, 226, 0.09);
}

.delivery-detail span {
  display: block;
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 800;
}

.delivery-detail p {
  margin: 6px 0 0;
  color: rgba(239, 226, 207, 0.48);
  font-size: 0.72rem;
  line-height: 1.55;
}

.membership-status-card {
  min-height: 180px;
}

.membership-status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(247, 239, 226, 0.09);
  border-radius: 17px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.035);
}

.membership-status-line strong {
  font-size: 0.8rem;
}

@media (max-width: 1120px) {
  .membership-product {
    grid-template-columns: minmax(280px, 0.65fr) minmax(0, 1.35fr);
  }

  .dashboard-lower {
    grid-template-columns: 1fr;
  }

  .dashboard-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .membership-product {
    grid-template-columns: 1fr;
  }

  .membership-product__visual {
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid rgba(247, 239, 226, 0.09);
  }

  .membership-product__beer,
  .membership-product__level-icon {
    height: 285px;
  }

  .membership-facts {
    grid-template-columns: 1fr;
  }

  .membership-facts strong {
    white-space: normal;
  }

  .dashboard-side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .login-shell {
    padding: 16px;
  }

  .login-panel {
    border-radius: 24px;
    padding: 28px 20px;
  }

  .login-brand {
    margin-bottom: 34px;
  }

  .login-brand img {
    width: 158px;
  }

  .login-heading h1 {
    font-size: clamp(2rem, 9.5vw, 2.55rem);
    letter-spacing: 0.055em;
  }

  .membership-product__content {
    padding: 24px 20px;
  }

  .membership-product__visual {
    min-height: 270px;
  }

  .membership-product__level-icon {
    width: min(76%, 245px);
    height: 235px;
  }

  .membership-product__title {
    align-items: flex-start;
  }

  .membership-product__title .level-stamp {
    min-width: 72px;
    min-height: 72px;
  }

  .package-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .membership-product__actions .button {
    width: 100%;
  }

  .page-header h1 {
    font-size: clamp(2.7rem, 15vw, 4.3rem);
  }

  .page-header p {
    font-size: 0.9rem;
  }

  .card,
  .card.paper {
    border-radius: 22px;
  }

  .card-pad {
    padding: 18px;
  }

  .frequency-options {
    gap: 8px;
  }

  .frequency-option span {
    min-height: 52px;
    padding: 7px;
    font-size: 0.62rem;
  }

  .beer-item {
    padding: 15px;
  }

  .beer-item-top {
    align-items: flex-start;
  }

  .product-thumb--card {
    width: 68px;
    height: 84px;
  }

  .product-thumb--catalog {
    width: 94px;
    height: 120px;
  }

  .profile-grid,
  .settings-form {
    grid-template-columns: 1fr;
  }

  .level-option {
    padding: 14px;
  }

  .save-bar .button,
  .chat-form .button,
  .notification-actions .button {
    width: 100%;
  }

  .chat-form {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-form textarea {
    min-height: 90px;
  }

  .table-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-wrap {
    width: 100%;
  }

  .notification-actions {
    padding-left: 0;
  }
}
