/* =====================================================================
   ARCA — Sports & Culture Design System
   ===================================================================== */

/* ── 1. CSS Custom Properties ── */
:root {
  --navy:        #0B1D35;
  --navy-mid:    #163356;
  --navy-light:  #1E4A7A;
  --green:       #00703C;
  --green-mid:   #009150;
  --green-light: #E6F4EE;
  --gold:        #C97D0A;
  --gold-light:  #FEF3DC;
  --white:       #FFFFFF;
  --cream:       #F9F7F2;
  --light:       #F1F5F9;
  --border:      #DDE3EC;
  --text:        #0B1D35;
  --text-mid:    #2D4A6B;
  --muted:       #637D9A;
  --radius:      8px;
  --radius-lg:   14px;
  --shadow-sm:   0 1px 4px rgba(11,29,53,.08);
  --shadow:      0 4px 20px rgba(11,29,53,.11);
  --shadow-lg:   0 12px 48px rgba(11,29,53,.18);
  --transition:  .22s cubic-bezier(.4,0,.2,1);
}

/* ── 2. Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: .5rem;
}

a { color: var(--green); transition: color var(--transition); }
a:hover { color: var(--green-mid); }

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

/* ── 3. Utility Buttons ── */
.btn-arca,
.btn-arca-outline,
.btn-green,
.btn-gold,
.hero-cta,
.hero-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .65rem 1.6rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .875rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-arca, .hero-cta {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-arca:hover, .hero-cta:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-arca-outline, .hero-cta-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-arca-outline:hover, .hero-cta-outline:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-1px);
}

/* outline on light backgrounds */
.btn-arca-outline.dark,
a.btn-arca-outline.dark {
  color: var(--navy);
  border-color: var(--navy);
}
.btn-arca-outline.dark:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-green:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: #b36c06;
  border-color: #b36c06;
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn-gold:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}
.btn-outline-arca {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: .55rem 1.25rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  transition: background .2s, color .2s;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.btn-outline-arca:hover {
  background: var(--navy);
  color: var(--white);
}

/* ── 4. Alerts & Badges ── */
.alert-arca-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  color: #991b1b;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: .875rem;
  margin-bottom: 1rem;
}
.alert-arca-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--green);
  color: #166534;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: .875rem;
  margin-bottom: 1rem;
}
.alert-arca-warning {
  background: var(--gold-light);
  border: 1px solid #fde68a;
  border-left: 4px solid var(--gold);
  color: #92400e;
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: .875rem;
  margin-bottom: 1rem;
}

.badge-paid    { background:#dcfce7; color:#15803d; font-size:.72rem; font-weight:700; padding:.22rem .6rem; border-radius:50px; }
.badge-overdue { background:#fee2e2; color:#b91c1c; font-size:.72rem; font-weight:700; padding:.22rem .6rem; border-radius:50px; }
.badge-pending { background:#fef3c7; color:#92400e; font-size:.72rem; font-weight:700; padding:.22rem .6rem; border-radius:50px; }

/* ── 5. NAVBAR / HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--green);
  box-shadow: 0 2px 16px rgba(11,29,53,.10);
}

.site-header .navbar {
  padding: .75rem 0;
}

.navbar-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}
.brand-arca {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--navy);
  line-height: 1;
}
.brand-arca span.green-dot {
  color: var(--green);
}
.brand-sub {
  font-family: 'Open Sans', sans-serif;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

.navbar-toggler {
  border: none;
  padding: .4rem;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230B1D35' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Nav links */
.site-header .nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mid) !important;
  padding: .45rem .75rem !important;
  border-radius: 6px;
  position: relative;
  text-decoration: none;
  transition: color var(--transition);
}
.site-header .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: .75rem;
  right: .75rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform var(--transition);
  border-radius: 2px;
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
  color: var(--green) !important;
}
.site-header .nav-link:hover::after,
.site-header .nav-link.active::after {
  transform: scaleX(1);
}

/* Área de Sócios: pill button */
.site-header .nav-link-member {
  background: var(--green);
  color: var(--white) !important;
  padding: .42rem 1rem !important;
  border-radius: 50px;
  margin-left: .35rem;
}
.site-header .nav-link-member::after { display: none; }
.site-header .nav-link-member:hover {
  background: var(--green-mid);
  color: var(--white) !important;
}

/* ── 6. HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #142a4a 55%, #1a3a60 100%);
  color: var(--white);
  padding: 5rem 0 7rem;
  position: relative;
  overflow: hidden;
}
/* diagonal bottom cut */
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 70px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
/* subtle sport-lines decoration */
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,112,60,.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(0,112,60,.30);
  border: 1px solid rgba(0,144,80,.50);
  color: #6EE7B7;
  font-family: 'Montserrat', sans-serif;
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: .75rem;
}
.hero-title .accent { color: #4ADE80; }

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 500;
  color: rgba(255,255,255,.8);
  margin-bottom: .75rem;
}

.hero-description {
  color: rgba(255,255,255,.65);
  font-size: .95rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: rgba(255,255,255,.07);
  border: 2px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  backdrop-filter: blur(4px);
}

/* hero decoration: diagonal green bar */
.hero-deco-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--green-mid), var(--green));
}

/* ── 7. STATS STRIP ── */
.stats-strip {
  background: var(--white);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}
.stats-strip .stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  display: block;
}
.stats-strip .stat-num.accent { color: var(--green); }
.stats-strip .stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: .25rem;
}
.stats-strip .stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ── 8. SECTIONS ── */
.section {
  padding: 5rem 0;
}
.section-alt {
  background: var(--cream);
}
.section-dark {
  background: var(--navy);
  color: var(--white);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .6rem;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--navy);
  margin-bottom: .5rem;
}
.section-dark .section-title { color: var(--white); }

.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 540px;
}

/* legacy aliases */
.section-title-bar {
  width: 40px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin-bottom: .5rem;
}

/* ── 9. NEWS CARDS ── */
.card-arca {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-arca:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green);
}

.card-arca-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.card-arca-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--navy-mid) 0%, var(--green) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,.7);
}

.card-arca-body {
  padding: 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-arca-date {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .5rem;
}
.card-arca-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: .6rem;
}
.card-arca-summary {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.1rem;
}
.card-arca-body .btn-arca {
  align-self: flex-start;
}

/* ── 10. FEATURE TILES (about preview grid) ── */
.feature-tile {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature-tile:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.feature-tile .tile-icon {
  font-size: 2.2rem;
  margin-bottom: .6rem;
  display: block;
}
.feature-tile .tile-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
}
.feature-tile.green  { border-top: 3px solid var(--green);  }
.feature-tile.navy   { border-top: 3px solid var(--navy);   }
.feature-tile.gold   { border-top: 3px solid var(--gold);   }
.feature-tile.purple { border-top: 3px solid #7c3aed;       }

/* ── 11. CTA CONTACT STRIP ── */
.cta-strip {
  background: linear-gradient(135deg, var(--green) 0%, #004d2a 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
}

/* ── 12. FOOTER ── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: 3.5rem 0 2rem;
}
.footer-brand {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.footer-tagline {
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1.5;
}
.footer-green-bar {
  width: 36px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin: .8rem 0 1rem;
}
.footer-heading {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: .9rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li + li { margin-top: .45rem; }
.footer-links a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-contact-item {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .5rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.footer-contact-item i { color: var(--green); margin-top: .1rem; }
.footer-divider {
  border-color: rgba(255,255,255,.1);
  margin: 2rem 0 1rem;
}
.footer-copy {
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  margin: 0;
}

/* ── 13. PAGE HERO (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--white);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.page-hero.cream::after  { background: var(--cream); }
.page-hero .page-hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--white);
}
.page-hero .page-hero-sub {
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  margin-top: .5rem;
}

/* ── 14. ABOUT SECTION ── */
.about-section-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2rem 2rem 2.2rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--green);
  margin-bottom: 1.5rem;
}
.about-section-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--navy);
  margin-bottom: .5rem;
}
.about-section-card p { color: var(--text-mid); line-height: 1.8; margin: 0; }

/* ── 15. CONTACT CARDS ── */
.contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  height: 100%;
}
.contact-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.contact-card .cc-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.contact-card h5 {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .3rem;
}
.contact-card p { color: var(--navy); font-weight: 600; margin: 0; }

/* social buttons */
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.1rem;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.social-btn.facebook {
  background: #1877f2;
  color: white;
}
.social-btn.facebook:hover {
  background: #1558c0;
  color: white;
  transform: translateY(-1px);
}

/* ── 16. LOGIN ── */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, #163356 45%, #004A2A 100%);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.login-wrapper::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,112,60,.18) 0%, transparent 65%);
}
.login-wrapper::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,74,122,.28) 0%, transparent 65%);
}

.login-card {
  background: var(--white);
  border-radius: 20px;
  padding: 2.8rem 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,.3);
  position: relative;
  z-index: 1;
}
.login-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--navy);
  text-align: center;
  line-height: 1;
  text-transform: uppercase;
}
.login-logo-accent {
  display: block;
  width: 40px;
  height: 4px;
  background: var(--green);
  border-radius: 2px;
  margin: .5rem auto .3rem;
}
.login-logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1.8rem;
}
.login-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
}
.login-card .form-control {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .6rem .9rem;
  font-size: .88rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.login-card .form-control:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,112,60,.12);
  outline: none;
}
.login-card .form-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* ── 17. ADMIN LAYOUT ── */
.admin-sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--navy);
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  flex-shrink: 0;
}
.admin-sidebar-top {
  padding: 1.6rem 1.2rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-logo {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--white);
  text-transform: uppercase;
  text-decoration: none;
}
.admin-logo-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-top: .15rem;
}
.admin-green-bar {
  width: 32px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin: .6rem 0;
}
.admin-nav {
  flex: 1;
  padding: 1rem .75rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .9rem;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.admin-nav-link:hover {
  background: rgba(255,255,255,.08);
  color: var(--white);
}
.admin-nav-link.active {
  background: var(--green);
  color: var(--white);
}
.admin-nav-link i { font-size: 1rem; width: 18px; text-align: center; }

.admin-sidebar-footer {
  padding: .8rem .75rem 1.2rem;
  border-top: 1px solid rgba(255,255,255,.08);
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}
.admin-content {
  flex: 1;
  min-width: 0;
  background: var(--light);
  padding: 2rem 2.2rem;
}

/* ── 18. ADMIN COMPONENTS ── */
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.admin-page-header h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--navy);
  margin: 0;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.admin-card h5 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* Stat cards for admin dashboard + member area */
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 4px solid var(--navy-light);
  transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon.green  { background: var(--green-light); }
.stat-icon.gold   { background: var(--gold-light);  }
.stat-icon.blue   { background: #dbeafe;             }
.stat-icon.red    { background: #fee2e2;             }

.stat-value {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .73rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .2rem;
}

/* data table helpers */
.due-th {
  font-family: 'Montserrat', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .7rem 1rem;
  border: none;
  white-space: nowrap;
}
.due-td {
  padding: .7rem 1rem;
  border: none;
  border-top: 1px solid var(--border);
  vertical-align: middle;
  font-size: .86rem;
}
.fw-600 { font-weight: 600; }
.blue   { color: var(--navy); }
.grey   { color: var(--muted); }

/* ── 19. MEMBER LAYOUT ── */
.member-topbar {
  background: var(--navy);
  color: var(--white);
  padding: .75rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
  border-bottom: 3px solid var(--green);
}
.member-topbar .brand {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  font-size: 1.3rem;
}
.member-topbar .welcome {
  font-size: .83rem;
  color: rgba(255,255,255,.65);
  font-family: 'Montserrat', sans-serif;
}
.member-content {
  background: var(--light);
  min-height: calc(100vh - 61px);
  padding: 2.5rem 0;
}

/* ── 20. NEWS DETAIL ── */
.news-detail-header  { padding: 3.5rem 0 2rem; background: var(--white); border-bottom: 1px solid var(--border); }
.news-detail-title   { font-family: 'Oswald', sans-serif; font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--navy); }
.news-detail-content { font-size: 1.02rem; line-height: 1.85; color: var(--text-mid); max-width: 760px; }
.news-detail-content h2, .news-detail-content h3 { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); }
.news-detail-content a { color: var(--green); }
.news-detail-content img { border-radius: var(--radius); max-width: 100%; margin: 1.5rem 0; }

/* ── 21. FORM CONTROLS (global) ── */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .55rem .85rem;
  font-size: .88rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0,112,60,.12);
  outline: none;
}
.form-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: .35rem;
}

/* ── 22. BLAZOR ERROR / RECONNECT UI ── */
#blazor-error-ui {
  color-scheme: light only;
  background: #fef2f2;
  border-top: 2px solid #dc2626;
  color: #991b1b;
  bottom: 0;
  box-shadow: 0 -2px 8px rgba(0,0,0,.12);
  display: none;
  left: 0;
  padding: .8rem 1.5rem;
  position: fixed;
  width: 100%;
  z-index: 9999;
  font-size: .88rem;
}
#blazor-error-ui .dismiss {
  cursor: pointer;
  position: absolute;
  right: 1rem;
  top: .6rem;
  font-size: 1.1rem;
}

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--green); }
.invalid                             { outline: 1px solid #dc2626; }
.validation-message                  { color: #dc2626; font-size: .82rem; }

/* ── 23. RESPONSIVE ── */
@media (max-width: 768px) {
  .hero { padding: 3.5rem 0 5.5rem; }
  .hero::after { height: 40px; }
  .section { padding: 3.5rem 0; }
  .admin-sidebar { display: none; } /* mobile: hide sidebar */
  .admin-content { padding: 1.25rem 1rem; }
  .login-card { padding: 2rem 1.5rem; }
}

@media (min-width: 769px) {
  .admin-wrapper { flex-direction: row; }
}

/* ── 24. ADMIN LAYOUT — class aliases from AdminLayout.razor ── */
.admin-sidebar-header,
.admin-sidebar-top {
  padding: 1.6rem 1.2rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand {
  display: block;
  text-decoration: none;
}
.sidebar-brand-main {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--white);
  text-transform: uppercase;
  display: block;
  line-height: 1;
}
.sidebar-brand-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-top: .25rem;
  display: block;
}
/* green bar auto-injected via pseudo on sidebar-brand */
.sidebar-brand::after {
  content: '';
  display: block;
  width: 32px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
  margin-top: .65rem;
}

.admin-nav-section {
  font-family: 'Montserrat', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  padding: .25rem .9rem;
  margin: .6rem 0 .15rem;
}

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: -2rem -2.2rem 1.75rem;
}
.admin-welcome {
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  color: var(--muted);
}
.admin-welcome strong { color: var(--navy); }

.admin-main { min-height: calc(100vh - 180px); }

.btn-logout {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .55rem .9rem;
  border: none;
  border-radius: var(--radius);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.65);
  font-family: 'Montserrat', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-align: left;
}
.btn-logout:hover {
  background: rgba(220,38,38,.2);
  color: #fca5a5;
}

/* ═══════════════════════════════════════════════════════════════════
   ERP
   ═══════════════════════════════════════════════════════════════════ */
.erp-kpi {
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.erp-kpi-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  margin-bottom: .45rem;
}
.erp-kpi-value {
  font-family: 'Oswald', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1;
  color: #0b1d35;
}
.erp-kpi-green  { border-left: 4px solid var(--green); }
.erp-kpi-red    { border-left: 4px solid #dc2626; }
.erp-kpi-navy   { border-left: 4px solid var(--navy); }
.erp-kpi-gold   { border-left: 4px solid var(--gold); }
.erp-kpi-light  { border-left: 4px solid #cbd5e1; }
.erp-kpi-green .erp-kpi-value { color: #00703c; }
.erp-kpi-red   .erp-kpi-value { color: #dc2626; }
.erp-kpi-gold  .erp-kpi-value { color: var(--gold); }

.erp-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #64748b;
  margin-bottom: 1rem;
}
.erp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .855rem;
}
.erp-table th {
  background: #f8fafc;
  color: #475569;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .6rem .75rem;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}
.erp-table td {
  padding: .55rem .75rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}
.erp-table tbody tr:hover td { background: #f8fafc; }
.erp-table tfoot td {
  padding: .6rem .75rem;
  border-top: 2px solid #e2e8f0;
}
.erp-acct-selected {
  border: 2px solid var(--green) !important;
  box-shadow: 0 0 0 3px rgba(0,112,60,.12);
}

/* ── ERP Badge styles ────────────────────────────────────────────────────── */
.badge-erp-paid       { background:#dcfce7;color:#15803d;padding:.25rem .55rem;border-radius:6px;font-size:.75rem;font-weight:700; }
.badge-erp-pending    { background:#fef9c3;color:#ca8a04;padding:.25rem .55rem;border-radius:6px;font-size:.75rem;font-weight:700; }
.badge-erp-cancelled  { background:#fee2e2;color:#dc2626;padding:.25rem .55rem;border-radius:6px;font-size:.75rem;font-weight:700; }
.badge-erp-emitido    { background:#dbeafe;color:#1d4ed8;padding:.25rem .55rem;border-radius:6px;font-size:.75rem;font-weight:700; }
.badge-erp-draft      { background:#f1f5f9;color:#64748b;padding:.25rem .55rem;border-radius:6px;font-size:.75rem;font-weight:700; }

/* ── POS Product card (management page) ─────────────────────────────────── */
.pos-product-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: .75rem;
  height: 100%;
  transition: border-color .15s;
}
.pos-product-card:hover { border-color: #94a3b8; }
.pos-product-name { font-weight: 700; font-size: .88rem; color: #0b1d35; line-height: 1.3; }
.pos-product-price { font-size: 1.05rem; font-weight: 800; color: var(--gold); margin-top: .3rem; }
.pos-product-add-btn {
  width: 100%; height: 100%; min-height: 72px;
  background: none; border: 2px dashed #cbd5e1; border-radius: 10px;
  color: #94a3b8; font-size: .82rem; cursor: pointer; transition: all .15s;
}
.pos-product-add-btn:hover { border-color: var(--navy); color: var(--navy); background: #f1f5f9; }

/* ── POS Terminal ────────────────────────────────────────────────────────── */
.pos-cat-tab {
  padding: .4rem 1rem;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #334155;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.pos-cat-tab:hover { border-color: var(--navy); color: var(--navy); }
.pos-cat-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.pos-product-btn {
  width: 100%;
  min-height: 88px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: .75rem .5rem;
  cursor: pointer;
  transition: all .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  text-align: center;
}
.pos-product-btn:hover { border-color: var(--gold); background: #fffbf0; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(201,146,42,.15); }
.pos-product-btn-name  { font-weight: 700; font-size: .85rem; color: #0b1d35; line-height: 1.3; }
.pos-product-btn-price { font-size: 1.05rem; font-weight: 800; color: var(--gold); }
.pos-product-btn-cat   { font-size: .7rem; color: #94a3b8; }

/* Cart */
.pos-cart { position: sticky; top: 1rem; }
.pos-cart-items { max-height: 320px; overflow-y: auto; }
.pos-cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4rem 0;
  border-bottom: 1px solid #f1f5f9;
  gap: .5rem;
}
.pos-cart-line-name  { font-size: .85rem; color: #0b1d35; font-weight: 600; flex: 1; }
.pos-cart-line-price { font-size: .88rem; font-weight: 700; color: #0b1d35; min-width: 70px; text-align: right; }
.pos-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .6rem 0 0;
  font-weight: 800;
  font-size: 1.1rem;
  color: #0b1d35;
}
.pos-qty-btn {
  width: 28px; height: 28px;
  border: 1px solid #e2e8f0; background: #f8fafc;
  border-radius: 6px; font-size: 1rem; cursor: pointer; line-height: 1;
}
.pos-qty-btn:hover { background: #e2e8f0; }
.pos-qty-val { min-width: 22px; text-align: center; font-size: .88rem; font-weight: 700; }
.pos-remove-btn {
  width: 24px; height: 24px;
  border: none; background: none;
  color: #dc2626; font-size: 1.1rem; cursor: pointer;
}
.pos-pay-btn {
  padding: .35rem .8rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  font-size: .8rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all .15s;
}
.pos-pay-btn:hover { border-color: var(--navy); color: var(--navy); }
.pos-pay-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── Modal overlay ───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

/* ── Document Print / Detail ─────────────────────────────────────────────── */
.erp-doc-print {
  max-width: 860px;
  margin: 0 auto;
}
.erp-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.erp-doc-assoc-name { font-family:'Montserrat',sans-serif; font-weight:800; font-size:1.4rem; color:var(--navy); }
.erp-doc-assoc-sub  { font-size:.82rem; color:#64748b; }
.erp-doc-type-badge {
  padding: .5rem 1.25rem;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .08em;
}
.erp-doc-badge-fatura  { background:#dbeafe;color:#1d4ed8; }
.erp-doc-badge-fr      { background:#ccfbf1;color:#0f766e; }
.erp-doc-badge-recibo  { background:#dcfce7;color:#15803d; }
.erp-doc-badge-nc      { background:#fef9c3;color:#ca8a04; }
.erp-doc-badge-nd      { background:#fee2e2;color:#dc2626; }
.erp-doc-badge-di      { background:#f1f5f9;color:#475569; }
.erp-doc-badge-orc     { background:#f5f3ff;color:#7c3aed; }
.erp-doc-badge-outro   { background:#f1f5f9;color:#64748b; }
.erp-doc-divider { border-color: #e2e8f0; margin: 1rem 0; }
.erp-doc-meta-block { margin-bottom: .25rem; }
.erp-doc-meta-label { font-size:.72rem; text-transform:uppercase; letter-spacing:.07em; color:#94a3b8; font-weight:700; margin-bottom:.1rem; }
.erp-doc-meta-value { font-weight: 600; color: #0b1d35; }
.erp-doc-entity-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem;
  margin-top: .5rem;
}
.erp-doc-notes-box {
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: 8px;
  padding: .75rem 1rem;
}
.erp-doc-footer { text-align: center; padding-top: 1rem; border-top: 1px solid #e2e8f0; }

/* ── Print media ─────────────────────────────────────────────────────────── */
@media print {
  .no-print,
  .admin-sidebar,
  .admin-topbar,
  .admin-page-header .d-flex,
  .no-print * { display: none !important; }
  .admin-wrapper { display: block; }
  .admin-content { margin: 0 !important; padding: 0 !important; }
  .admin-main { padding: 0 !important; }
  .erp-doc-print { box-shadow: none !important; border: none !important; max-width: 100% !important; }
  body { background: #fff !important; }
}

/* ══════════════════════════════════════════════════════════════════════════
   POS TERMINAL — Full layout & component styles
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Wrapper & two-panel layout ─────────────────────────────────────────── */
.pos-wrapper {
  display: flex;
  height: calc(100vh - 56px);
  overflow: hidden;
  background: #f1f5f9;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}
.pos-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f8fafc;
}
.pos-right {
  width: 400px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-left: 2px solid #e2e8f0;
  overflow-y: auto;
}

/* ── Top bar ────────────────────────────────────────────────────────────── */
.pos-topbar {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.25rem;
  background: #0b1d35;
  color: #fff;
  flex-shrink: 0;
}
.pos-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .03em;
  color: #c9922a;
  flex: 1;
}
.pos-topbar-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 6px;
  padding: .35rem .75rem;
  font-size: .8rem;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}
.pos-topbar-btn:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ── Category tabs bar ──────────────────────────────────────────────────── */
.pos-pages-bar {
  display: flex;
  gap: .4rem;
  padding: .6rem 1rem;
  overflow-x: auto;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  scrollbar-width: thin;
}
.pos-page-tab {
  flex-shrink: 0;
  padding: .42rem 1rem;
  border-radius: 20px;
  border: 2px solid #cbd5e1;
  background: #fff;
  color: #475569;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.pos-page-tab:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.pos-page-tab-active {
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

/* ── Products grid ──────────────────────────────────────────────────────── */
.pos-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .65rem;
  padding: .9rem 1rem;
  overflow-y: auto;
  flex: 1;
  align-content: start;
}
.pos-prod-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .18rem;
  padding: .75rem .8rem .65rem;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 80px;
}
.pos-prod-btn:hover {
  border-color: #94a3b8;
  box-shadow: 0 3px 12px rgba(0,0,0,.1);
  transform: translateY(-1px);
}
.pos-prod-btn:active { transform: translateY(0); }
.pos-prod-cat-dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 10px 0 0 10px;
}
.pos-prod-name {
  font-weight: 700;
  font-size: .82rem;
  color: #1e293b;
  line-height: 1.25;
  word-break: break-word;
}
.pos-prod-price {
  font-size: .88rem;
  font-weight: 700;
  color: #c9922a;
}
.pos-prod-desc {
  font-size: .7rem;
  color: #94a3b8;
  line-height: 1.2;
}
.pos-loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #94a3b8;
}
.pos-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: #cbd5e1;
}
.pos-empty-icon { font-size: 2.8rem; }

/* ── Section headers ────────────────────────────────────────────────────── */
.pos-section-header {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #94a3b8;
  padding: .65rem 1rem .3rem;
}

/* ── Customer panel ─────────────────────────────────────────────────────── */
.pos-customer-area {
  padding: .6rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}
.pos-customer-tabs {
  display: flex;
  gap: .4rem;
  margin-bottom: .5rem;
}
.pos-cust-tab {
  flex: 1;
  padding: .36rem .6rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #64748b;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}
.pos-cust-tab:hover { border-color: #94a3b8; }
.pos-cust-tab.active {
  background: #0b1d35;
  border-color: #0b1d35;
  color: #fff;
}
.pos-member-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: .3rem .65rem;
  font-size: .78rem;
  color: #1d4ed8;
  font-weight: 600;
  margin-top: .25rem;
}

/* ── Cart ───────────────────────────────────────────────────────────────── */
.pos-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #c9922a;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: .72rem;
  font-weight: 700;
  margin-left: auto;
}
.pos-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: .5rem;
  color: #cbd5e1;
}
.pos-cart-empty-icon { font-size: 2.2rem; }
.pos-cart-list {
  max-height: 300px;
  overflow-y: auto;
  padding: .25rem .75rem;
  flex-shrink: 0;
  scrollbar-width: thin;
}
.pos-cart-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.pos-cart-item:last-child { border-bottom: none; }
.pos-cart-item-name {
  flex: 1;
  font-size: .82rem;
  font-weight: 600;
  color: #1e293b;
  word-break: break-word;
}
.pos-cart-item-controls {
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-shrink: 0;
}
.pos-cart-item-price {
  font-weight: 700;
  font-size: .85rem;
  color: #c9922a;
  min-width: 52px;
  text-align: right;
  flex-shrink: 0;
}
.pos-qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .12s;
  line-height: 1;
}
.pos-qty-btn:hover { border-color: #94a3b8; background: #e2e8f0; }
.pos-qty-val {
  font-size: .82rem;
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}
.pos-remove-btn {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: none;
  background: #fee2e2;
  color: #b91c1c;
  font-size: .82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .12s;
  flex-shrink: 0;
}
.pos-remove-btn:hover { background: #fecaca; }
.pos-cart-subtotal {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: .45rem .75rem;
  font-size: .82rem;
  color: #64748b;
  border-top: 1px dashed #e2e8f0;
  flex-shrink: 0;
}
.pos-cart-subtotal strong { color: #1e293b; margin-left: .5rem; }

/* ── Payment methods ────────────────────────────────────────────────────── */
.pos-pay-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .4rem;
  padding: .5rem .75rem;
  flex-shrink: 0;
}
.pos-pay-btn {
  padding: .5rem .3rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all .15s;
  color: #475569;
  line-height: 1.25;
}
.pos-pay-btn:hover:not(.pos-pay-disabled) { border-color: #94a3b8; }
.pos-pay-btn.active {
  background: #0b1d35;
  border-color: #0b1d35;
  color: #fff;
}
.pos-pay-credit.active {
  background: #7e22ce;
  border-color: #7e22ce;
  color: #fff;
}
.pos-pay-disabled {
  opacity: .45;
  cursor: not-allowed !important;
}
.pos-pay-lock { font-size: .9rem; display: block; }

/* ── MBWay, notes, errors ───────────────────────────────────────────────── */
.pos-mbway-box {
  padding: .3rem .75rem .5rem;
  flex-shrink: 0;
}
.pos-field-label {
  font-size: .72rem;
  font-weight: 700;
  color: #64748b;
  margin-bottom: .25rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.pos-field-err {
  font-size: .72rem;
  color: #b91c1c;
  margin-top: .2rem;
}
.pos-notes-row { padding: .2rem .75rem .4rem; flex-shrink: 0; }
.pos-credit-note {
  background: #f3e8ff;
  border: 1px solid #d8b4fe;
  border-radius: 7px;
  padding: .45rem .75rem;
  font-size: .78rem;
  color: #6b21a8;
  line-height: 1.4;
}
.pos-info-note {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  padding: .45rem .75rem;
  font-size: .78rem;
  color: #1d4ed8;
  line-height: 1.4;
}
.pos-sale-error {
  margin: .3rem .75rem;
  padding: .45rem .75rem;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 7px;
  font-size: .8rem;
  color: #b91c1c;
  flex-shrink: 0;
}

/* ── Checkout area ──────────────────────────────────────────────────────── */
.pos-checkout {
  padding: .75rem;
  border-top: 2px solid #e2e8f0;
  margin-top: auto;
  flex-shrink: 0;
  background: #fff;
}
.pos-checkout-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: .6rem;
}
.pos-checkout-total .label {
  font-size: .78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.pos-checkout-total .amount {
  font-size: 1.7rem;
  font-weight: 800;
  font-family: 'Montserrat', sans-serif;
  color: #1e293b;
}
.pos-confirm-btn {
  width: 100%;
  padding: .75rem;
  background: #c9922a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s;
}
.pos-confirm-btn:hover:not(:disabled) { background: #b07c20; }
.pos-confirm-btn:disabled { opacity: .6; cursor: not-allowed; }
.pos-clear-btn {
  width: 100%;
  margin-top: .4rem;
  padding: .45rem;
  background: transparent;
  border: 1.5px solid #e2e8f0;
  color: #94a3b8;
  border-radius: 8px;
  font-size: .78rem;
  cursor: pointer;
  transition: all .12s;
  font-weight: 600;
}
.pos-clear-btn:hover { border-color: #f87171; color: #ef4444; }

/* ── Receipt ────────────────────────────────────────────────────────────── */
.pos-receipt {
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.pos-receipt-header {
  text-align: center;
  margin-bottom: .5rem;
}
.pos-receipt-icon { font-size: 2.5rem; }
.pos-receipt-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #15803d;
}
.pos-receipt-sub {
  font-size: .82rem;
  color: #64748b;
  margin-top: .15rem;
}
.pos-receipt-rows {
  width: 100%;
  background: #f8fafc;
  border-radius: 10px;
  padding: .75rem .85rem;
  margin: .25rem 0;
}
.pos-receipt-row {
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  padding: .2rem 0;
  color: #475569;
}
.pos-receipt-row strong { color: #1e293b; }
.pos-receipt-total {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1e293b;
  border-top: 2px solid #e2e8f0;
  padding-top: .5rem;
}
.pos-receipt-credit-note {
  border-radius: 8px;
  padding: .5rem .85rem;
  font-size: .8rem;
  line-height: 1.4;
  text-align: center;
  background: #f3e8ff;
  border: 1px solid #d8b4fe;
  color: #6b21a8;
  width: 100%;
}
.pos-receipt-pay-method {
  font-size: .82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.pos-btn-new-sale {
  width: 100%;
  padding: .65rem;
  background: #0b1d35;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  margin-top: .25rem;
}
.pos-btn-new-sale:hover { background: #1a3a5c; }

/* ── Responsive: collapse right panel on small screens ─────────────────── */
@media (max-width: 900px) {
  .pos-wrapper { flex-direction: column; height: auto; overflow: visible; }
  .pos-right { width: 100%; border-left: none; border-top: 2px solid #e2e8f0; }
  .pos-products-grid { max-height: 50vh; }
  .pos-cart-list { max-height: 200px; }
}


/* =====================================================================
   CALENDAR
   ===================================================================== */

/* Month nav */
.cal-nav { margin-bottom: .5rem; }
.cal-nav-btn {
  background: none; border: 1.5px solid var(--border); border-radius: 8px;
  width: 2.2rem; height: 2.2rem; font-size: 1.4rem; line-height: 1;
  color: var(--navy); cursor: pointer; transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.cal-nav-btn:hover { background: var(--light); }
.cal-month-title {
  font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.25rem;
  letter-spacing: .06em; color: var(--navy);
}

/* Grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-dow {
  text-align: center; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); padding: .4rem 0;
}
.cal-day-empty { min-height: 68px; background: transparent; }
.cal-day {
  min-height: 68px; background: #fff;
  border: 1.5px solid var(--border); border-radius: 7px;
  padding: .3rem .35rem; cursor: pointer; transition: border-color .15s, box-shadow .15s;
  position: relative;
}
.cal-day:hover { border-color: var(--gold); box-shadow: 0 2px 8px rgba(201,122,10,.12); }
.cal-day-today { border-color: var(--gold) !important; background: #fffbf0 !important; }
.cal-day-has-items { background: #f9fafb; }
.cal-day-num {
  font-family: 'Montserrat', sans-serif; font-size: .75rem; font-weight: 700;
  color: var(--navy); display: block; margin-bottom: .15rem;
}
.cal-day-today .cal-day-num {
  background: var(--gold); color: #fff; border-radius: 50%;
  width: 1.4rem; height: 1.4rem; display: inline-flex; align-items: center; justify-content: center;
}
.cal-pills { display: flex; flex-direction: column; gap: 2px; }
.cal-pill {
  font-size: .62rem; font-weight: 600; padding: .08rem .3rem;
  border-radius: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-pill-event { background: #dbeafe; color: #1d4ed8; }
.cal-pill-game  { background: #dcfce7; color: #15803d; }
.cal-pill-more  { font-size: .6rem; color: var(--muted); font-weight: 600; }

/* Day detail */
.cal-detail {
  background: #f8fafc; border: 1.5px solid var(--border); border-radius: 10px;
  padding: 1rem 1.25rem;
}
.cal-detail-item {
  display: flex; gap: .6rem; align-items: flex-start;
  padding: .55rem 0; border-bottom: 1px solid var(--border);
}
.cal-detail-item:last-child { border-bottom: none; }
.cal-detail-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: .3rem;
}

/* Upcoming list */
.section-heading {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1rem;
  color: var(--navy); border-bottom: 2px solid var(--border); padding-bottom: .5rem; margin-bottom: 1rem;
}
.cal-list { display: flex; flex-direction: column; gap: .65rem; }
.cal-list-item {
  display: flex; gap: .85rem; align-items: flex-start;
  background: #fff; border: 1.5px solid var(--border); border-radius: 10px; padding: .7rem .9rem;
}
.cal-list-date {
  min-width: 46px; height: 50px; border-radius: 8px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; flex-shrink: 0; color: #fff;
}
.cal-list-day { font-size: 1.15rem; font-weight: 800; line-height: 1; }
.cal-list-mon { font-size: .58rem; font-weight: 700; letter-spacing: .08em; }
.cal-list-body { flex: 1; min-width: 0; }
.cal-list-title { font-weight: 700; font-size: .92rem; color: var(--navy); margin-bottom: .15rem; }
.cal-list-meta { font-size: .78rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.cal-list-cat {
  background: var(--light); color: var(--text-mid); font-size: .68rem; font-weight: 700;
  padding: .1rem .4rem; border-radius: 4px;
}
.cal-list-desc { font-size: .82rem; color: #475569; margin-top: .25rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Sidebar */
.cal-sidebar-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: 12px; padding: 1rem 1.1rem;
}
.cal-sidebar-title {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .9rem;
  color: var(--navy); margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem;
}

/* Futsal fixtures */
.futsal-fixture {
  padding: .65rem 0; border-bottom: 1px solid var(--border);
}
.futsal-fixture:last-child { border-bottom: none; }
.futsal-fixture-comp { font-size: .7rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.futsal-fixture-teams {
  display: flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 700;
  color: var(--navy); margin: .2rem 0; flex-wrap: wrap;
}
.futsal-fixture-vs { color: var(--muted); font-weight: 400; font-size: .75rem; }
.futsal-fixture-meta { font-size: .75rem; color: var(--muted); }

/* Futsal results */
.futsal-result {
  padding: .6rem .75rem; border-radius: 8px; margin-bottom: .5rem;
  border-left: 4px solid var(--border);
}
.futsal-result-win  { background: #f0fdf4; border-left-color: #22c55e; }
.futsal-result-draw { background: #f8fafc; border-left-color: #94a3b8; }
.futsal-result-loss { background: #fff1f2; border-left-color: #f43f5e; }
.futsal-result-comp { font-size: .68rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .25rem; }
.futsal-result-row  { display: flex; align-items: center; gap: .5rem; font-size: .88rem; }
.futsal-result-team { flex: 1; font-weight: 600; color: var(--navy); font-size: .82rem; }
.futsal-result-team.text-end { text-align: right; }
.futsal-result-arca { color: var(--green) !important; }
.futsal-result-score{
  font-size: 1.1rem; font-weight: 800; color: var(--navy);
  background: var(--light); padding: .1rem .5rem; border-radius: 6px; white-space: nowrap;
}

/* Home widgets */
.home-widget-card {
  background: #fff; border-radius: 14px; border: 1.5px solid var(--border);
  padding: 1.4rem 1.5rem; height: 100%;
}
.home-widget-title {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: .95rem;
  color: var(--navy); border-bottom: 2px solid var(--border); padding-bottom: .5rem; margin-bottom: .9rem;
  display: flex; align-items: center; gap: .45rem;
}

@media (max-width: 600px) {
  .cal-grid { gap: 2px; }
  .cal-day  { min-height: 52px; padding: .2rem; }
  .cal-pill { display: none; }
  .cal-day-has-items::after {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold); position: absolute; bottom: 3px; right: 3px;
  }
}

/* ===== GAME DAY PAGE ===== */
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #4ade80; display: inline-block; flex-shrink: 0;
  animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  50%       { opacity: .7; transform: scale(1.35); box-shadow: 0 0 0 6px rgba(74,222,128,0); }
}

.gender-section { margin-bottom: 2rem; }
.gender-section-header {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 1.05rem; color: var(--navy);
  border-bottom: 2px solid var(--border);
  padding-bottom: .45rem; margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .5rem;
}

.game-badge-gender {
  display: inline-block; border-radius: 20px;
  padding: .18rem .65rem; font-size: .7rem; font-weight: 700;
  letter-spacing: .03em; text-transform: uppercase;
}
.badge-masc  { background: #dbeafe; color: #1e40af; }
.badge-fem   { background: #fce7f3; color: #9d174d; }
.badge-misto { background: #ede9fe; color: #5b21b6; }

.game-card {
  border-radius: 14px; padding: 1.3rem 1.5rem;
  border: 1.5px solid var(--border); background: #fff;
  transition: box-shadow .2s;
}
.game-card:hover { box-shadow: 0 4px 18px rgba(13,42,53,.07); }
.game-card-live  { border-color: #22c55e !important; background: #f0fdf4 !important; }
.game-card-win   { border-left: 4px solid #22c55e; background: #f0fdf4; }
.game-card-draw  { border-left: 4px solid #94a3b8; background: #f8fafc; }
.game-card-loss  { border-left: 4px solid #f43f5e; background: #fff1f2; }
.game-card-upcoming { border-left: 4px solid var(--gold); }

.game-scoreboard {
  display: flex; align-items: center; justify-content: center;
  gap: 1.2rem; flex-wrap: wrap; margin: .6rem 0;
}
.game-team-block {
  display: flex; flex-direction: column; align-items: center;
  gap: .3rem; min-width: 90px; flex: 1; max-width: 160px;
}
.game-team-block span { font-size: .82rem; color: #64748b; text-align: center; }
.game-team-block strong { font-family: 'Montserrat',sans-serif; font-weight: 800;
  font-size: .95rem; color: var(--navy); text-align: center; }
.game-team-arca strong { color: #c9922a !important; }

.game-score {
  font-family: 'Montserrat', sans-serif; font-weight: 900;
  font-size: 2.4rem; color: var(--navy); min-width: 90px;
  text-align: center; letter-spacing: .04em; line-height: 1;
}
.game-score-live { color: #15803d !important; text-shadow: 0 0 14px rgba(34,197,94,.35); }

.game-badge-live {
  display: inline-flex; align-items: center; gap: .35rem;
  background: #dcfce7; color: #15803d;
  border: 1.5px solid #86efac; border-radius: 20px;
  padding: .22rem .75rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .04em; animation: liveBadgePulse 2s ease-in-out infinite;
}
@keyframes liveBadgePulse {
  0%,100% { background: #dcfce7; } 50% { background: #bbf7d0; }
}

.game-result-label {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; margin-top: .25rem;
}
.result-win  { color: #15803d; }
.result-draw { color: #475569; }
.result-loss { color: #be123c; }

/* Live admin panel rows */
.live-admin-game-row {
  border: 1.5px solid #bbf7d0; border-radius: 10px;
  padding: .75rem 1rem; margin-bottom: .65rem; background: #fff;
}
.live-admin-meta { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.live-admin-row-inner { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.live-admin-team { font-family: 'Montserrat',sans-serif; font-weight: 700; color: var(--navy); min-width: 100px; flex: 1; }

/* Home live banner */
.home-live-banner {
  background: #052e16; border-bottom: 3px solid #22c55e;
  padding: .65rem 0; display: flex; align-items: center;
}
.home-live-banner a { color: #4ade80; font-weight: 700; text-decoration: none; }
.home-live-banner a:hover { text-decoration: underline; }
.home-live-banner span { color: #d1fae5; font-size: .92rem; }
