body.accountPage {
  background: #f5f5f5;
  color: #111;
}

.accountShell {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(243, 180, 74, 0.18), transparent 29%),
    radial-gradient(circle at top right, rgba(229, 57, 53, 0.10), transparent 24%),
    linear-gradient(180deg, #faf5ee 0%, #f5f5f5 34%, #f0ece7 100%);
}

.accountShell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.42) 0, rgba(255,255,255,0.42) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.28) 0, rgba(255,255,255,0.28) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.25;
  pointer-events: none;
}

.accountWrap {
  position: relative;
  z-index: 1;
  max-width: 1460px;
}

.accountPage .header {
  align-items: flex-start;
  margin-bottom: 1.1rem;
}

.accountPage .tagline {
  color: #3b302b;
}

.accountTopActions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}

.accountGrid {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.accountCard {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(251,248,244,0.98));
  border: 1px solid #eadfd7;
  box-shadow: 0 18px 44px rgba(52, 28, 19, 0.07);
}

.accountCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(229,57,53,0.92), rgba(243,180,74,0.92));
}

.authCard {
  max-width: 760px;
  margin: 0 auto 24px;
}

.sidebarCard {
  align-self: start;
  position: sticky;
  top: 18px;
}

.detailCard {
  min-height: 70vh;
}

.workspaceSummary {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.billingCard {
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #efe0d9;
  background: linear-gradient(180deg, #fffdfa, #faf4ee);
}

.billingPlans {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.billingPlanItem {
  border: 1px solid #f0e1da;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(71, 39, 28, 0.04);
}

.eventList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.eventItem {
  border: 1px solid #eadfd8;
  border-radius: 16px;
  padding: 12px;
  background: #fffdfb;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.eventItem:hover {
  border-color: rgba(229,57,53,0.26);
  box-shadow: 0 12px 28px rgba(92, 47, 32, 0.08);
  transform: translateY(-1px);
}

.eventItem.active {
  border-color: rgba(229,57,53,0.55);
  box-shadow: 0 0 0 1px rgba(229,57,53,0.16) inset, 0 16px 32px rgba(95, 46, 32, 0.08);
  background: linear-gradient(180deg, #fffdfa, #fff4ef);
}

.eventItem h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.eventItem .meta {
  font-size: 0.84rem;
  color: #776458;
}

.panelGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.subpanel {
  border: 1px solid #eee0d9;
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #fff, #fbf7f3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.sectionHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.accountInlineActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tableWrap {
  overflow: auto;
  margin-top: 14px;
  border-radius: 14px;
}

.tableWrap table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.tableWrap th,
.tableWrap td {
  border-bottom: 1px solid #f0e5df;
  padding: 8px 6px;
  text-align: left;
  font-size: 0.93rem;
}

.tableWrap th {
  background: #fbf7f2;
  color: #6a564a;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tableWrap tbody tr:hover {
  background: #fff8f4;
}

.flash {
  margin-top: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(229,57,53,0.08);
  color: #5f342b;
  box-shadow: 0 8px 18px rgba(78, 37, 29, 0.06);
}

.reviewBox {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid #f1e2db;
  background: #fff7f1;
  min-height: 72px;
  white-space: pre-wrap;
}

.liveLinks {
  margin: 14px 0 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #edd8cf;
  background: linear-gradient(180deg, #fffaf6, #fff3ed);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.libraryGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.libraryList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
}

.libraryItem {
  border: 1px solid #f0e0d8;
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  box-shadow: 0 10px 18px rgba(71, 39, 28, 0.04);
}

.historyNote {
  font-size: 0.78rem;
  color: #7a6458;
  margin-top: 4px;
  line-height: 1.35;
}

.summaryStrip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 4px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffaf5, #fff3ec);
  border: 1px solid #ead6cc;
  box-shadow: 0 12px 28px rgba(93, 46, 30, 0.06);
}

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

.metricCard {
  border: 1px solid #f0e2da;
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(71, 39, 28, 0.04);
}

.metricLabel {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #866953;
  font-weight: 800;
}

.metricValue {
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 900;
  color: #2a1d18;
}

.deskGrid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 16px;
  align-items: start;
}

.deskQrCard {
  border: 1px solid #ecddd6;
  border-radius: 16px;
  padding: 14px;
  background: #fffdf9;
}

.deskQrImage {
  width: 220px;
  max-width: 100%;
  display: block;
  margin: 12px auto 14px;
  background: #fff;
  border: 1px solid #efe1db;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 10px 22px rgba(71, 39, 28, 0.06);
}

.seatingTables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.seatingTableCard {
  border: 1px solid #ecddd6;
  border-radius: 16px;
  padding: 12px;
  background: #fffdf9;
}

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

.seatListItem {
  border: 1px solid #f0e1da;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

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

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

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

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

.miniListItem {
  border: 1px solid #f0e2db;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.tableWrap select,
.tableWrap input {
  min-width: 96px;
}

.accountPage .muted {
  color: #6a5a4e;
  opacity: 1;
}

.accountPage label {
  color: #5f4c41;
  opacity: 1;
  font-weight: 600;
}

.accountPage input[type="number"],
.accountPage input[type="text"],
.accountPage input[type="email"],
.accountPage input[type="url"],
.accountPage input[type="tel"],
.accountPage select,
.accountPage textarea,
.accountPage input[type="file"] {
  border-color: #dccdc6;
  background: #fffdfa;
}

.accountPage input[type="number"]:focus,
.accountPage input[type="text"]:focus,
.accountPage input[type="email"]:focus,
.accountPage input[type="url"]:focus,
.accountPage input[type="tel"]:focus,
.accountPage select:focus,
.accountPage textarea:focus {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,0.14);
}

.accountPage .btn.primary {
  box-shadow: 0 10px 24px rgba(229,57,53,0.20);
}

.accountPage .btn.outline {
  background: #fffaf6;
  border-color: #dccdc6;
}

.accountPage .btn.outline:hover {
  background: #fff;
}

.accountPage #emptyState {
  padding: 32px;
  border: 1px dashed #e2d0c5;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdfb, #faf4ee);
  color: #6d584b;
}

@media (max-width: 1120px) {
  .accountGrid { grid-template-columns: 1fr; }
  .sidebarCard { position: static; }
  .panelGrid { grid-template-columns: 1fr; }
  .libraryGrid { grid-template-columns: 1fr; }
  .deskGrid { grid-template-columns: 1fr; }
  .seatingTables { grid-template-columns: 1fr; }
  .cashierSplit { grid-template-columns: 1fr; }
  .metricGrid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .accountPage .header {
    gap: 0.75rem;
  }

  .accountPage .tagline {
    width: 100%;
    text-align: left;
  }

  .accountTopActions {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }
}
