/* app/app-shell.css — Android app (SSSFashionApp) phone layout.
   Part of the split style.css. Keep the load order in includes/layout.php. */

.install-app {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: #310e14;
  color: #e7d7ae;
  font: 700 15px/1 var(--sans);
  box-shadow: 0 8px 22px rgba(49, 14, 20, .28);
}

.install-app[hidden] { display: none; }

/* Native app shell: friendly phone layout, soft jewellery cards */
body.app-shell {
  background: linear-gradient(180deg, #f6eff0 0%, #faf7f8 48%, #fff8ef 100%);
  -webkit-font-smoothing: antialiased;
}

body.app-shell .dash-card em,
body.app-shell .stat em,
body.app-shell .client-wallet em,
body.app-shell .hint:not(.gold-live):not(#plan-metal-label):not(#silver-amount):not(#silver-coin):not(#gold-total):not(#gold-rate):not(#coin-rate),
body.app-shell .referral-note,
body.app-shell .sheet-note,
body.app-shell #income-calc .section-head > p:not(.kicker),
body.app-shell .coin-quote-form > .hint:not(.gold-live) {
  display: none !important;
}

body.app-shell .gold-live,
body.app-shell #gold-rate,
body.app-shell #coin-rate,
body.app-shell #silver-amount,
body.app-shell #silver-coin,
body.app-shell #gold-total {
  display: block !important;
}

body.app-shell .desk {
  display: block;
  min-height: 100vh;
  background: transparent;
}

body.app-shell .desk-main {
  width: 100%;
  margin: 0;
  background: transparent;
}

body.app-shell .desk-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 52px;
  margin: 0;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(49, 14, 20, .08);
  box-shadow: 0 8px 20px rgba(49, 14, 20, .05);
}

body.app-shell .desk-top h1 {
  margin: 0;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #2d0c11;
  letter-spacing: .01em;
}

body.app-shell .desk-content {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 14px 14px 28px;
}

body.app-shell .client-hero {
  display: grid;
  gap: 14px;
  margin: 0 0 14px;
  padding: 20px 18px;
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(224, 179, 90, .28), transparent 55%),
    linear-gradient(135deg, #1e0509 0%, #3a0e15 40%, #741e2c 78%, #0ea5e9 140%);
  color: #fff9ef;
  box-shadow: 0 18px 34px rgba(36, 8, 12, .24);
}

body.app-shell .client-hero-copy .dash-kicker {
  margin: 0;
  color: #ffe7b0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

body.app-shell .client-hero-copy h2 {
  margin: 8px 0;
  color: #fff9ef;
  font-size: 26px;
  line-height: 1.2;
}

body.app-shell .client-hero-copy .dash-meta {
  color: rgba(255, 249, 239, .9);
  font-size: 13px;
}

body.app-shell .client-wallet {
  display: block;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(212, 175, 103, .45);
  color: #fff9ef;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

body.app-shell .client-wallet span,
body.app-shell .client-wallet em {
  display: block;
  color: #f0dcb0;
  font-size: 12px;
}

body.app-shell .client-wallet strong {
  display: block;
  margin: 6px 0;
  color: #fff9ef;
  font-size: 26px;
}

body.app-shell .referral-card,
body.app-shell .client-group,
body.app-shell .team-business-head,
body.app-shell .level-block,
body.app-shell .filters,
body.app-shell .member-command {
  margin: 0 0 14px;
  padding: 16px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(49, 14, 20, .08);
  box-shadow: 0 12px 28px rgba(49, 14, 20, .06);
}

body.app-shell .table-wrap {
  margin: 0 0 14px;
  padding: 0;
  overflow-x: auto;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(49, 14, 20, .08);
  box-shadow: 0 12px 28px rgba(49, 14, 20, .05);
  -webkit-overflow-scrolling: touch;
}

body.app-shell .client-group h3,
body.app-shell .team-business-head h2,
body.app-shell .level-block h2 {
  margin: 0 0 12px;
  color: #2d0c11;
  font-size: 16px;
  font-weight: 800;
}

body.app-shell .dash-cards,
body.app-shell .client-group-account .dash-cards,
body.app-shell .client-group-team .dash-cards,
body.app-shell .stat-grid.team-business {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.app-shell .dash-card,
body.app-shell .stat {
  margin: 0;
  padding: 16px 14px;
  border-radius: 22px;
  background: #fbf7f8;
  border: 1px solid rgba(49, 14, 20, .08);
  border-top: 4px solid #8c1529;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 14px 28px rgba(49, 14, 20, .07);
  animation: sssCardIn .5s cubic-bezier(.22, .9, .3, 1) both;
  transition: transform .18s ease, box-shadow .18s ease;
  min-height: 92px;
}

body.app-shell .dash-card:active,
body.app-shell .stat:active {
  transform: scale(.97);
  box-shadow: 0 6px 14px rgba(49, 14, 20, .08);
}

body.app-shell .dash-card:nth-child(6n+1),
body.app-shell .stat:nth-child(6n+1) { border-top-color: #8c1529; background: linear-gradient(180deg, #fcf1f3, #fff); }

body.app-shell .dash-card:nth-child(6n+2),
body.app-shell .stat:nth-child(6n+2) { border-top-color: #2563eb; background: linear-gradient(180deg, #eff6ff, #fff); }

body.app-shell .dash-card:nth-child(6n+3),
body.app-shell .stat:nth-child(6n+3) { border-top-color: #e04761; background: linear-gradient(180deg, #fef4f6, #fff); }

body.app-shell .dash-card:nth-child(6n+4),
body.app-shell .stat:nth-child(6n+4) { border-top-color: #ea580c; background: linear-gradient(180deg, #fff7ed, #fff); }

body.app-shell .dash-card:nth-child(6n+5),
body.app-shell .stat:nth-child(6n+5) { border-top-color: #e11d48; background: linear-gradient(180deg, #fff1f2, #fff); }

body.app-shell .dash-card:nth-child(6n),
body.app-shell .stat:nth-child(6n) { border-top-color: #d4af67; background: linear-gradient(180deg, #fffbeb, #fff); }

body.app-shell .share-btn {
  min-height: 42px;
  border-radius: 14px !important;
  font-weight: 700;
}

body.app-shell .share-btn.share-wa { background: #c92f48; color: #fff; border-color: #c92f48; }

body.app-shell .share-btn.share-fb { background: #1877f2; color: #fff; border-color: #1877f2; }

body.app-shell .share-btn.share-tg { background: #229ed9; color: #fff; border-color: #229ed9; }

body.app-shell .share-btn.share-x { background: #111827; color: #fff; border-color: #111827; }

body.app-shell .share-btn.share-mail { background: #ea580c; color: #fff; border-color: #ea580c; }

body.app-shell .client-wallet { border-top: 3px solid #d4af67; }

body.app-shell .referral-card { border-top: 4px solid #c92f48; }

body.app-shell .client-group { border-top: 4px solid #2563eb; }

body.app-shell .team-business-head,
body.app-shell .level-block { border-top: 4px solid #e04761; }

body.app-shell .dash-card span,
body.app-shell .stat span {
  display: block;
  color: #6e5e75;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.app-shell .dash-card strong,
body.app-shell .stat strong {
  display: block;
  margin-top: 6px;
  color: #2d0c11;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body.app-shell .dash-card em,
body.app-shell .stat em {
  display: block;
  margin-top: 4px;
  color: #897990;
  font-size: 12px;
  font-style: normal;
}

body.app-shell input,
body.app-shell select,
body.app-shell textarea,
body.app-shell button,
body.app-shell .btn,
body.app-shell .button {
  min-height: 44px;
  border-radius: 14px;
}

body.app-shell table.data {
  width: max-content;
  min-width: 100%;
  margin: 0;
  font-size: 13px;
  background: #fff;
}

body.app-shell table.data th,
body.app-shell table.data td {
  padding: 12px 14px;
  white-space: nowrap;
  vertical-align: middle;
  border-bottom: 1px solid rgba(49, 14, 20, .08);
}

body.app-shell table.data th {
  background: linear-gradient(90deg, #24080c, #310e14);
  color: #fff9ef;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.app-shell table.data td {
  background: #fff;
  color: #1f1517;
}

body.app-shell table.data tbody tr:nth-child(even) td {
  background: #fbf7f8;
}

body.app-shell .referral-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

body.app-shell .referral-copy input {
  width: 100%;
  min-width: 0;
}

body.app-shell .share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.app-shell .empty,
body.app-shell .note,
body.app-shell .help,
body.app-shell .muted {
  line-height: 1.45;
}

body.app-shell .topup-filters .filter-date,
.desk-member:not(.desk-admin) .topup-filters .filter-date {
  display: flex !important;
}

body.app-shell .list-total-bar {
  display: grid !important;
}

body.app-shell .list-total-note {
  display: block !important;
}

body.app-shell .list-total-main,
body.app-shell .list-total-meta {
  display: flex !important;
}
