@charset "UTF-8";

:root {
  --ink-2: #b3ada1;
  --ok-bg: #16210f;
  --ok-bd: rgba(154, 214, 110, .42);
  --ok-fg: #b9e79a;
  --err-bg: #2a1414;
  --err-bd: rgba(240, 130, 130, .42);
  --err-fg: #f0a6a6;
}

.rc-body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
.rc-wrap {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 14px 40px;
}
.rc-wrap--narrow { max-width: 460px; }

.rc-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0 10px;
  flex-wrap: wrap;
}
.rc-back {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--tint-a);
  color: var(--gold);
  text-decoration: none;
}
.rc-back:hover { background: var(--tint-b); text-decoration: none; }
.rc-topbar-title {
  flex: 1 1 auto; min-width: 0;
  font-size: 1.05rem; font-weight: 700; color: var(--gold);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rc-home-link { flex: 0 0 auto; font-size: .86rem; color: var(--gold); }
.rc-who {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 100%; min-width: 0;
  padding: .3em .8em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tint-a);
  font-size: .84rem; color: var(--ink);
}
.rc-who b {
  font-weight: 700; color: var(--gold);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  max-width: 12em;
}
.rc-logout {
  flex: 0 0 auto;
  padding: .34em .9em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font-size: .84rem; font-weight: 700; cursor: pointer;
}
.rc-logout:hover { background: var(--tint-b); }

.rc-hero {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px;
  margin-bottom: 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(227, 179, 77, .12), transparent 60%),
    var(--card);
  box-shadow: var(--shadow);
}
.rc-hero-left { flex: 1 1 220px; min-width: 0; }
.rc-hero-label { font-size: .84rem; color: var(--ink-2); }
.rc-hero-balance {
  font-size: 2.2rem; line-height: 1.15; font-weight: 800;
  color: var(--gold);
  overflow-wrap: anywhere;
}
.rc-hero-sub { font-size: .8rem; color: var(--ink-2); margin-top: 2px; }
.rc-hero-right {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
.rc-hero-btn {
  padding: .5em 1.15em;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--tint-b);
  color: var(--gold);
  font-size: .86rem; font-weight: 700; cursor: pointer;
  white-space: nowrap;
}
.rc-hero-btn:hover { background: var(--tint-a); }
.rc-hero-link { font-size: .8rem; color: var(--ink-2); }
.rc-hero-link:hover { color: var(--gold); }

.rc-sections { display: block; }
.rc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 16px 18px;
  margin-bottom: 16px;
}
.rc-card--login { padding: 20px 18px 22px; }
.rc-card-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 1.02rem; font-weight: 700; color: var(--gold);
  margin-bottom: 4px;
}
.rc-card-title i { color: var(--gold); }
.rc-card-title-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.rc-subtitle { margin: 0 0 14px; font-size: .84rem; color: var(--ink-2); }
.rc-lead { margin: 0 0 16px; font-size: .92rem; color: var(--ink); line-height: 1.8; }
.rc-note { margin: 12px 0 0; font-size: .82rem; color: var(--ink-2); line-height: 1.7; }
.rc-note a { color: var(--gold); }

.rc-field { margin-bottom: 14px; min-width: 0; }
.rc-field--gap { margin-top: 14px; }
.rc-label {
  display: block; margin-bottom: 6px;
  font-size: .84rem; font-weight: 600; color: var(--ink);
}
.rc-label--block { margin-top: 16px; }
.rc-label--key { color: var(--gold); }
.rc-input {
  width: 100%; max-width: 100%; min-width: 0;
  box-sizing: border-box;
  padding: .62em .8em;
  font-size: .94rem;
  color: var(--ink);
  background: var(--tint-a);
  border: 1px solid var(--line);
  border-radius: var(--r);
  outline: none;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}
.rc-input:focus { border-color: var(--line-2); background: var(--tint-b); }
.rc-input::placeholder { color: #8d887e; }
select.rc-input {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%),
                    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 17px) calc(50% + 1px), calc(100% - 12px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
select.rc-input option { background: var(--card); color: var(--ink); }
select.rc-input:disabled { color: var(--ink-2); opacity: .75; }
input.rc-input[readonly] { color: var(--ink-2); }
.rc-hint { margin: 6px 0 0; font-size: .78rem; color: var(--ink-2); line-height: 1.65; }

.rc-row2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.rc-inline { display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.rc-inline .rc-input { flex: 1 1 auto; min-width: 0; }
.rc-actions {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 14px;
}
.rc-pay-fixed {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .84rem; color: var(--ink-2);
}
.rc-pay-fixed i { color: var(--gold); }
.rc-pay-fixed b { color: var(--gold); font-weight: 700; }

.rc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: .72em 1.5em;
  border: 0; border-radius: var(--r);
  background-color: var(--btn-b);
  background-image: linear-gradient(180deg, var(--btn-a), var(--btn-b));
  color: var(--btn-fg);
  font-size: .96rem; font-weight: 700; letter-spacing: .02em;
  font-family: inherit; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 14px rgba(193, 145, 58, .28);
  transition: filter .15s ease;
}
.rc-btn:hover { filter: brightness(1.07); color: var(--btn-fg); text-decoration: none; }
.rc-btn[disabled] { opacity: .55; cursor: not-allowed; }
.rc-btn--block { width: 100%; margin-top: 16px; }
.rc-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6em 1.25em;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--tint-b); color: var(--gold);
  font-size: .88rem; font-weight: 700; font-family: inherit; cursor: pointer;
}
.rc-btn-ghost:hover { background: var(--tint-a); }
.rc-mini-btn {
  flex: 0 0 auto;
  padding: .5em 1em;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--tint-b); color: var(--gold);
  font-size: .84rem; font-weight: 700; font-family: inherit;
  cursor: pointer; white-space: nowrap;
}
.rc-mini-btn:hover { background: var(--tint-a); }

.rc-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.rc-product { display: block; margin: 0; cursor: pointer; min-width: 0; }
.rc-product-input { position: absolute; opacity: 0; width: 0; height: 0; }
.rc-product-card {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 12px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--tint-a);
  transition: border-color .15s, background .15s;
  min-width: 0;
}
.rc-product-name { font-size: .76rem; color: var(--ink-2); overflow-wrap: anywhere; }
.rc-product-price { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.rc-product-input:checked + .rc-product-card {
  border-color: var(--gold);
  background: var(--tint-b);
  box-shadow: 0 0 0 1px rgba(227, 179, 77, .35) inset;
}
.rc-product-input:checked + .rc-product-card .rc-product-price { color: var(--gold); }
.rc-product-input:focus-visible + .rc-product-card { border-color: var(--gold); }

.rc-pay-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.rc-pay { display: block; margin: 0; cursor: pointer; min-width: 0; }
.rc-pay-input { position: absolute; opacity: 0; width: 0; height: 0; }
.rc-pay-card {
  display: flex; align-items: center; gap: 8px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--tint-a);
  color: var(--ink);
  transition: border-color .15s, background .15s;
  min-width: 0;
}
.rc-pay-card i { color: var(--gold); font-size: 1.1rem; flex: none; }
.rc-pay-card b { font-weight: 700; overflow-wrap: anywhere; }
.rc-pay-input:checked + .rc-pay-card {
  border-color: var(--gold);
  background: var(--tint-b);
  box-shadow: 0 0 0 1px rgba(227, 179, 77, .35) inset;
}
.rc-pay-input:focus-visible + .rc-pay-card { border-color: var(--gold); }

.rc-detail-box {
  padding: 12px 14px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  background: var(--tint-a);
  font-size: .84rem; color: var(--ink); line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.rc-cart {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--tint-a);
  padding: 8px;
  margin-top: 8px;
}
.rc-cart-empty { padding: 10px 6px; font-size: .84rem; color: var(--ink-2); }
.rc-cart-item {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 6px;
  border-bottom: 1px solid var(--line);
}
.rc-cart-item:last-child { border-bottom: 0; }
.rc-cart-info { flex: 1 1 auto; min-width: 0; font-size: .86rem; color: var(--ink); overflow-wrap: anywhere; }
.rc-cart-remove {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: transparent; color: var(--gold);
  cursor: pointer; line-height: 1;
}
.rc-cart-remove:hover { background: var(--tint-b); }
.rc-cart-err { flex: 1 1 100%; font-size: .78rem; color: var(--err-fg); overflow-wrap: anywhere; }

.rc-msg {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--tint-a);
  font-size: .86rem; color: var(--ink); line-height: 1.7;
  overflow-wrap: anywhere;
}
.rc-msg--ok { background: var(--ok-bg); border-color: var(--ok-bd); color: var(--ok-fg); }
.rc-msg--err { background: var(--err-bg); border-color: var(--err-bd); color: var(--err-fg); }

.rc-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 16px; }
.rc-modal[hidden] { display: none; }
.rc-modal__mask { position: absolute; inset: 0; background: rgba(0, 0, 0, .68); }
.rc-modal__card {
  position: relative;
  width: 100%; max-width: 620px;
  max-height: 84vh;
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.rc-modal__hd {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.rc-modal__title { flex: 1 1 auto; min-width: 0; font-weight: 700; color: var(--gold); }
.rc-modal__x {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: transparent; color: var(--ink); cursor: pointer; line-height: 1;
}
.rc-modal__x:hover { color: var(--gold); border-color: var(--line-2); }
.rc-modal__bd { padding: 14px 16px 18px; overflow-y: auto; overflow-x: hidden; }

.rc-order-section { margin-bottom: 18px; }
.rc-order-section:last-child { margin-bottom: 0; }
.rc-order-h { font-size: .88rem; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.rc-order-empty { font-size: .84rem; color: var(--ink-2); }
.rc-order-row {
  padding: 8px 10px;
  margin-bottom: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--tint-a);
  font-size: .8rem; color: var(--ink); line-height: 1.7;
  overflow-wrap: anywhere; word-break: break-word;
}

@media (max-width: 560px) {
  .rc-wrap { padding-left: 12px; padding-right: 12px; }
  .rc-topbar { gap: 8px; }
  .rc-topbar-title { flex: 1 1 100%; order: -1; }
  .rc-who { max-width: calc(100% - 88px); }
  .rc-who b { max-width: 8em; }
  .rc-hero { padding: 14px; }
  .rc-hero-right { flex: 1 1 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .rc-hero-balance { font-size: 1.9rem; }
  .rc-row2 { grid-template-columns: minmax(0, 1fr); }
  .rc-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-pay-methods { grid-template-columns: minmax(0, 1fr); }
  .rc-actions { flex-direction: column; align-items: stretch; }
  .rc-btn-ghost { width: 100%; }
  .rc-modal { padding: 10px; }
  .rc-modal__card { max-height: 90vh; }
}

@media (max-width: 360px) {
  .rc-products { grid-template-columns: minmax(0, 1fr); }
  .rc-hero-balance { font-size: 1.7rem; }
}
