/* ===================================================================
   91 CLUB OFFICIAL PORTAL - Crimson Red & Clean Ivory Mobile UI
   =================================================================== */

:root {
  --outer-bg: #fff1f2;
  --shell-bg: #fffafa;
  --card-bg: #ffffff;
  --red-deep: #991b1b;
  --red-main: #dc2626;
  --red-bright: #ef4444;
  --red-soft: #fef2f2;
  --coral-soft: #ffe4e6;
  --gold-accent: #d97706;
  --gold-soft: #fef3c7;

  --text-strong: #0f172a;
  --text-normal: #334155;
  --text-muted: #64748b;
  --border-soft: #fecdd3;
  --border-card: #f1e3e6;

  --shell-max: 480px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 9999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: linear-gradient(180deg, #ffe4e6 0%, #fff5f5 100%);
  color: var(--text-strong);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: var(--red-deep);
  text-decoration: none;
  transition: all 0.2s ease;
}

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

.club-shell {
  width: 100%;
  max-width: var(--shell-max);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--shell-bg);
  border-left: 1px solid var(--border-card);
  border-right: 1px solid var(--border-card);
  box-shadow: 0 12px 44px rgba(153, 27, 27, 0.14);
  display: flex;
  flex-direction: column;
  padding-bottom: 86px;
  position: relative;
}

/* TOP PROMO RIBBON */
.club-ribbon {
  background: linear-gradient(90deg, #991b1b 0%, #dc2626 100%);
  color: #fff1f2;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.club-ribbon strong {
  color: #fde68a;
  letter-spacing: 0.3px;
}

/* STICKY HEADER */
.club-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: 62px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.club-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.club-logo-img {
  width: 56px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  padding: 2px;
  border: 2px solid var(--red-main);
  background: #fe0002;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.22);
}

.club-brand-title {
  display: block;
  font-size: 1.04rem;
  font-weight: 900;
  color: var(--red-deep);
  line-height: 1.1;
  letter-spacing: 0.3px;
}

.club-brand-sub {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
}

.club-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-cta-sm {
  background: linear-gradient(135deg, var(--red-bright) 0%, var(--red-deep) 100%);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.28);
}

.pill-cta-sm:hover {
  color: #fff;
  transform: translateY(-1px);
}

.menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  background: var(--red-soft);
  color: var(--red-deep);
  font-size: 1.15rem;
  cursor: pointer;
}

/* SLIDE-DOWN DRAWER */
.club-drawer {
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 2px solid var(--red-main);
  padding: 12px 14px;
  display: none;
  flex-direction: column;
  gap: 7px;
  z-index: 890;
  box-shadow: 0 14px 28px rgba(153, 27, 27, 0.15);
}

.club-drawer.open {
  display: flex;
}

.club-drawer a {
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--shell-bg);
  color: var(--text-strong);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.club-drawer a.active,
.club-drawer a:hover {
  background: var(--coral-soft);
  color: var(--red-deep);
}

/* QUICK PILLS BAR */
.quick-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px 2px;
  scrollbar-width: none;
}

.quick-pills-bar::-webkit-scrollbar {
  display: none;
}

.quick-pill {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: #fff;
  border: 1px solid var(--border-soft);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-normal);
}

.quick-pill.active,
.quick-pill:hover {
  background: var(--red-main);
  border-color: var(--red-main);
  color: #fff;
}

/* MAIN CONTAINER */
.club-main {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* HERO CARD */
.app-hero-card {
  background: var(--card-bg);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 16px 14px;
  box-shadow: 0 8px 24px rgba(153, 27, 27, 0.08);
}

.app-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.app-icon-lg {
  width: 86px;
  height: 60px;
  border-radius: 14px;
  object-fit: contain;
  padding: 3px;
  border: 2px solid var(--red-main);
  background: #fe0002;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(220, 38, 38, 0.24);
}

.verified-tag {
  display: inline-block;
  background: var(--red-soft);
  color: var(--red-deep);
  border: 1px solid var(--border-soft);
  font-size: 0.69rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  margin-bottom: 5px;
}

.app-title {
  font-size: 1.22rem;
  line-height: 1.25;
  font-weight: 900;
  color: var(--text-strong);
}

.app-title span {
  color: var(--red-main);
}

.app-lead {
  font-size: 0.87rem;
  color: var(--text-normal);
  margin-bottom: 13px;
}

/* METRICS STRIP */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 13px;
}

.metric-cell {
  background: var(--red-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-sm);
  padding: 8px 4px;
  text-align: center;
}

.metric-num {
  display: block;
  font-size: 0.86rem;
  font-weight: 900;
  color: var(--red-deep);
}

.metric-lbl {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* INVITE CODE BOX */
.invite-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--gold-soft);
  border: 1px solid #fcd34d;
  border-radius: var(--r-sm);
  padding: 9px 12px;
  margin-bottom: 12px;
}

.invite-meta small {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-accent);
}

.invite-meta strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-strong);
  letter-spacing: 0.4px;
}

.copy-code-btn {
  border: none;
  background: var(--red-deep);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  cursor: pointer;
}

.copy-code-btn:hover {
  background: var(--red-main);
}

/* PRIMARY & SOFT CTA BUTTONS */
.btn-crimson {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.3);
}

.btn-crimson:hover {
  color: #fff;
  transform: translateY(-2px);
}

.btn-crimson-soft {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--red-main);
  color: var(--red-deep);
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 9px;
  background: #fff;
}

.btn-crimson-soft:hover {
  background: var(--red-soft);
}

/* GALLERY CARD */
.gallery-card {
  background: var(--card-bg);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 14px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 1.04rem;
  font-weight: 900;
  color: var(--red-deep);
}

.pill-badge {
  background: var(--coral-soft);
  color: var(--red-deep);
  font-size: 0.66rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--r-pill);
}

.gallery-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.g-tab {
  border: 1px solid var(--border-soft);
  background: var(--red-soft);
  color: var(--text-normal);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 7px 6px;
  border-radius: var(--r-sm);
  cursor: pointer;
}

.g-tab.active {
  background: var(--red-main);
  border-color: var(--red-main);
  color: #fff;
}

.gallery-stage {
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff5f5;
}

.g-panel {
  display: none;
}

.g-panel.active {
  display: block;
}

.g-panel img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: cover;
}

.g-panel.portrait-frame img {
  height: 310px;
  max-height: 310px;
  object-fit: contain;
  background: #fff1f2;
  padding: 8px;
}

.g-caption {
  padding: 9px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--red-deep);
  background: #fff;
  border-top: 1px solid var(--border-card);
}

/* CONTENT CARDS */
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border-card);
  border-radius: var(--r-lg);
  padding: 16px 14px;
}

.content-card h2 {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--red-deep);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--red-soft);
}

.content-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-strong);
  margin: 13px 0 6px;
}

.content-card p {
  font-size: 0.87rem;
  color: var(--text-normal);
  margin-bottom: 10px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul {
  padding-left: 18px;
  color: var(--text-normal);
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.content-card li {
  margin-bottom: 6px;
}

/* TRUST GRID */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.trust-item {
  background: var(--red-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  padding: 12px 10px;
}

.trust-ico {
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.trust-item h3 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--red-deep);
  margin: 0 0 4px;
}

.trust-item p {
  font-size: 0.76rem;
  line-height: 1.45;
  margin: 0;
}

/* INFO TABLE */
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}

.info-table tr {
  border-bottom: 1px solid var(--border-soft);
}

.info-table td {
  padding: 9px 4px;
}

.info-table td:first-child {
  color: var(--text-muted);
  font-weight: 600;
}

.info-table td:last-child {
  text-align: right;
  font-weight: 800;
  color: var(--text-strong);
}

.info-table td.accent {
  color: var(--red-deep);
}

/* STEPS */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-box {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: var(--shell-bg);
  border: 1px solid var(--border-card);
  border-radius: var(--r-md);
  padding: 11px;
}

.step-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--red-main);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-box h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 3px;
}

.step-box p {
  font-size: 0.8rem;
  margin: 0;
}

/* FAQ */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-row {
  border: 1px solid var(--border-card);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--shell-bg);
}

.faq-row.active {
  background: #fff;
  border-color: var(--red-main);
}

.faq-trigger {
  width: 100%;
  border: none;
  background: transparent;
  padding: 12px;
  text-align: left;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.faq-sign {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--red-main);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 12px;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.faq-row.active .faq-content {
  max-height: 240px;
  padding: 0 12px 12px;
}

.faq-content p {
  font-size: 0.82rem;
  margin: 0;
}

/* PAGE LINKS */
.page-nav-list {
  list-style: none;
  padding-left: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0 !important;
}

.page-nav-list li {
  margin-bottom: 0 !important;
}

.page-nav-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--red-soft);
  color: var(--red-deep);
  font-size: 0.86rem;
  font-weight: 700;
}

.page-nav-list a:hover {
  background: var(--coral-soft);
}

/* FOOTER */
.club-footer {
  margin-top: auto;
  padding: 18px 14px;
  background: #7f1d1d;
  color: #ffe4e6;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.footer-disclaimer {
  font-size: 0.72rem;
  color: #fecdd3;
  margin-bottom: 4px;
}

/* BOTTOM MOBILE NAVIGATION */
.club-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--shell-max);
  height: 64px;
  background: #fff;
  border-top: 2px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 950;
}

.b-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.67rem;
  font-weight: 700;
  color: var(--text-muted);
}

.b-tab.active {
  color: var(--red-deep);
}

.b-ico {
  font-size: 1.1rem;
}

.b-tab-center {
  position: relative;
  top: -12px;
}

.b-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-bright) 0%, var(--red-deep) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 3px solid #fff;
  box-shadow: 0 5px 14px rgba(220, 38, 38, 0.4);
}
