/* MC163 V61 – refinamentos visuais e responsividade */
:root{--mc61-panel:#0b2030;--mc61-panel-soft:#112b40;--mc61-border:rgba(94,201,255,.18);--mc61-glow:0 14px 40px rgba(3,17,31,.18)}
body>section:not(.hero), #proximo-evento-box{max-width:1400px;margin-left:auto;margin-right:auto}
.section-header,.hierarchy-container,#routesDisplayCard,#sponsorsBenefitsGrid,#gdeGuardiansGrid,#tier-Marketing,#tier-Lider,#tier-Vice-Lider{max-width:100%}

/* ranking */
#mc59ReferralTop{padding:0 5% 8px}
#mc59ReferralTop .mc59-ranking-shell{padding:18px 24px;border-radius:26px;background:linear-gradient(135deg,#0b1f30,#102a46 55%,#1a2942);box-shadow:var(--mc61-glow);border:1px solid rgba(122,199,255,.16)}
#mc59ReferralTop header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:14px}
#mc59ReferralTop header span{font-size:.78rem;letter-spacing:.16em;color:#f0bf5f;font-weight:800}
#mc59ReferralTop header strong{font-size:.95rem;line-height:1.35;color:#eaf8ff;max-width:520px;text-align:right}
#mc59ReferralTop .mc60-ranking-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}
#mc59ReferralTop .mc60-rank-person{background:radial-gradient(circle at top,rgba(95,214,255,.14),rgba(255,255,255,0) 43%),linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.01));border:1px solid rgba(147,219,255,.18);border-radius:22px;padding:16px 10px 13px;min-height:186px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:8px;transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;box-shadow:0 12px 28px rgba(2,12,22,.18)}
#mc59ReferralTop .mc60-rank-person:hover{transform:translateY(-3px);box-shadow:0 18px 34px rgba(2,12,22,.25);border-color:rgba(164,228,255,.34)}
#mc59ReferralTop .mc60-rank-photo{width:76px;height:76px;border-radius:50%;border:2px solid rgba(255,255,255,.88);box-shadow:0 0 0 5px rgba(52,184,230,.16),0 0 25px rgba(100,232,255,.22);overflow:hidden;background:#14324a;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:900;font-size:1.3rem}
#mc59ReferralTop .mc60-rank-photo img{width:100%;height:100%;object-fit:cover}
#mc59ReferralTop .mc60-rank-person strong{font-size:1rem;color:#fff;text-align:center;line-height:1.25;min-height:2.5em;display:flex;align-items:center;justify-content:center}
#mc59ReferralTop .mc60-rank-person small{font-size:.82rem;color:#9fdcff;text-align:center;line-height:1.2}
#mc59ReferralTop .mc60-rank-person small b{display:block;color:#ffd984;font-size:.92rem;margin-bottom:4px}
#mc59ReferralTop .mc60-medal-wrap{margin-bottom:-2px}
#mc59ReferralTop .mc60-place-1 .mc60-rank-photo{box-shadow:0 0 0 6px rgba(120,231,255,.2),0 0 30px rgba(120,231,255,.36)}
#mc59ReferralTop .mc60-place-2 .mc60-rank-photo{box-shadow:0 0 0 6px rgba(255,226,140,.2),0 0 26px rgba(255,209,94,.28)}
#mc59ReferralTop .mc60-place-3 .mc60-rank-photo{box-shadow:0 0 0 6px rgba(214,233,255,.2),0 0 26px rgba(196,216,255,.24)}
#mc59ReferralTop .mc60-place-4 .mc60-rank-photo{box-shadow:0 0 0 6px rgba(255,187,148,.2),0 0 26px rgba(255,170,118,.24)}
.mc60-ranking-dialog .mc59-dialog,.mc60-rank-dialog-native{max-width:760px!important}
.mc60-rank-profile{display:grid;grid-template-columns:180px 1fr;gap:18px;align-items:center}
.mc60-rank-profile-photo{position:relative;display:flex;justify-content:center;align-items:center;min-height:170px}
.mc60-rank-profile-photo img{width:132px;height:132px;object-fit:cover;border-radius:22px;border:2px solid #d8f6ff;box-shadow:0 14px 28px rgba(0,0,0,.12)}
.mc60-rank-profile-photo .mc60-medal-art{position:absolute;right:8px;bottom:4px}
.mc60-rank-profile-info span{display:inline-block;color:#cfab58;font-weight:800;letter-spacing:.08em;font-size:.8rem}
.mc60-rank-profile-info h3{margin:6px 0 8px;font-size:2rem;line-height:1.05;color:#102742}
.mc60-rank-profile-info p{margin:0 0 7px;color:#577086;line-height:1.45}
.mc60-rank-stats{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.mc60-rank-stats strong{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border-radius:999px;background:#eef8fd;color:#0f2940;font-size:.88rem}
.mc60-rank-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.mc60-rank-badges .mc60-badge-chip,.mc60-rank-badges .mc60-badge-fallback{display:inline-flex;align-items:center;justify-content:center;min-width:52px;min-height:52px;padding:4px;border-radius:16px;background:linear-gradient(180deg,#f9fdff,#edf7fb);border:1px solid rgba(18,84,120,.1);box-shadow:0 12px 20px rgba(10,34,50,.06)}
.mc60-rank-badges .mc49-emblem{width:48px;height:48px;background:none!important;border:0!important;box-shadow:none!important}
.mc60-rank-badges .mc49-emblem img{height:48px!important;object-fit:contain}
.mc60-rank-empty{padding:10px 12px;border-radius:14px;background:#f2f7fa;color:#4d687c;font-size:.9rem}

/* sponsors compact row */
#sponsorsTickerBar{padding-top:6px}
.sponsor-item-mini{min-width:132px;padding:8px 10px 10px;border-radius:16px;background:#fff;border:1px solid rgba(11,70,104,.08);box-shadow:0 8px 20px rgba(7,22,34,.06);display:flex;flex-direction:column;align-items:center;gap:6px}
.sponsor-logo-box{width:74px!important;height:54px!important;padding:6px}
.sponsor-name-mini{font-size:.68rem;line-height:1.2;text-align:center;color:#14283d;font-weight:800;min-height:2.4em}
.sponsor-discount-mini{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;background:linear-gradient(90deg,#00a5ff,#57e9ff);color:#fff;font-weight:900;font-size:.7rem;box-shadow:0 6px 18px rgba(0,153,255,.2)}

/* next meeting */
#proximo-evento-box{padding-bottom:10px!important}
.event-countdown-pill{padding:16px 18px!important;border-radius:24px!important;gap:16px!important;box-shadow:0 12px 28px rgba(8,23,36,.08)}
.calendar-icon-card{min-width:82px!important;width:82px!important}
.calendar-icon-header{font-size:.74rem!important;padding:7px 6px!important}
.calendar-icon-day{font-size:1.95rem!important;padding:10px 6px 12px!important}
.countdown-title{font-size:1.45rem!important;line-height:1.15!important}
.countdown-desc{font-size:.95rem!important;line-height:1.4!important}
.next-meeting-countdown{display:inline-flex!important;align-items:center!important;gap:8px!important;padding:7px 12px!important;border-radius:999px!important;background:#eef7fb!important;color:#0d3d61!important;font-size:.8rem!important;font-weight:800!important;margin-top:10px}

/* card demo */
#carteirinha-membros .section-header{margin-bottom:16px}
#carteirinha-membros .section-header p{max-width:720px}
#demoIdCard{max-width:770px;margin:0 auto;transform:scale(.92);transform-origin:top center}
#carteirinha-membros .btn.btn-outline[onclick*="openSearchCardModal"]{width:56px;height:56px;border-radius:50%;padding:0;font-size:1.3rem;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 10px 24px rgba(10,25,39,.08)}

/* shirt showcase */
.store-showcase-box{align-items:center}
.store-media-side{background:#fff!important;box-shadow:none!important;border:0!important}
.store-media-side model-viewer,.store-media-side video,.store-media-side img{background:#fff!important;border-radius:0!important;box-shadow:none!important}

/* media mural */
.mural-card{position:relative;overflow:hidden}
.mc61-media-download-btn{position:absolute;top:10px;right:10px;z-index:3;width:40px;height:40px;border-radius:50%;border:1px solid rgba(255,255,255,.22);background:rgba(6,20,35,.68);color:#fff;font-size:1.15rem;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(10px);box-shadow:0 10px 22px rgba(0,0,0,.18)}
.mc61-media-download-btn:hover{background:rgba(8,39,62,.82)}
.mc61-media-actions{display:grid;gap:10px;margin-top:14px}
.mc61-media-actions button{padding:13px 14px;border-radius:14px;border:1px solid rgba(8,55,88,.12);background:#fff;color:#102a3c;font-weight:800;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:8px}
.mc61-media-actions button span{display:block;font-size:.78rem;color:#658197;font-weight:600}

/* route section */
.route-card-pro{display:grid!important;grid-template-columns:minmax(360px,1.2fr) minmax(280px,.8fr)!important;align-items:stretch;border-radius:28px!important;overflow:hidden;background:#fff;border:1px solid rgba(8,55,88,.08);box-shadow:0 14px 32px rgba(7,25,37,.08)}
.route-media-side{min-height:420px;background:#e9eef2;display:flex;align-items:center;justify-content:center}
.route-media-side img,.route-media-side video{width:100%;height:100%;object-fit:cover}
.route-info-side{display:flex;flex-direction:column;justify-content:center;padding:36px 38px}
.mc61-route-title{font-size:1.9rem!important;line-height:1.22!important;margin:0 0 12px!important}
.mc61-route-sub{color:#70889c!important;font-size:.93rem!important;margin-bottom:22px!important}

/* sponsor benefits white */
#patrocinadores-beneficios{background:#fff!important;padding-top:8px}
.sponsors-benefits-grid{gap:18px!important}
.sponsor-benefit-card{background:#fff;border:1px solid rgba(8,55,88,.08);border-radius:22px;box-shadow:0 14px 28px rgba(12,25,38,.06)}
.sponsor-benefit-inner{padding:18px 18px 16px}
.sponsor-benefit-header{align-items:center;gap:14px}
.sponsor-benefit-logo{width:88px!important;height:48px!important;object-fit:contain}
.sponsor-benefit-box{border-radius:16px;background:#f6fbfe!important;border:1px solid rgba(0,136,204,.08)!important}
.highlight-pct{display:inline-block;padding:2px 8px;border-radius:999px;background:#12b6ff;color:#fff;font-weight:900}

/* hierarchy / guardians */
.member-card,.mc-gde-guardian-card{border-radius:22px!important}
.member-avatar,.mc-gde-guardian-photo,.mc61-member-card .member-avatar{width:86px!important;height:86px!important;object-fit:cover!important;border-radius:50%!important;display:block;margin:0 auto 10px}
.mc61-member-role{color:var(--primary-accent);font-weight:800;font-size:.82rem;margin:0}
.mc61-member-meta{font-size:.76rem;color:#85a6bb;margin-top:6px}
.member-card .member-bio-text,.mc-gde-guardian-card .member-bio-text{margin-top:8px;font-size:.83rem;line-height:1.45;color:#a6c4d2}
#gdeGuardiansGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
#gdeGuardiansGrid .mc-gde-guardian-card:first-child{grid-column:1/-1;max-width:420px;justify-self:center}
#tier-Lider,#tier-Vice-Lider,#tier-Marketing{gap:16px!important}
#tier-Lider .member-card{max-width:300px;margin:0 auto}

/* code section */
#sistema-cargos .section-header,#sistema-cargos .mc-role-system-grid, #ourCodeSection,.mc-role-system-grid{max-width:100%}
#nosso-codigo,.our-code-section,.mc-culture-section{padding-top:8px}
#nosso-codigo .section-header,.mc-role-system-section .section-header{text-align:left}
.mc-role-system-grid,.our-code-grid{justify-content:center}

@media (max-width:1100px){
  #mc59ReferralTop .mc60-ranking-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .route-card-pro{grid-template-columns:1fr!important}
  .route-media-side{min-height:280px}
  .route-info-side{padding:26px 24px}
}
@media (max-width:760px){
  body>section:not(.hero),#proximo-evento-box{max-width:100%}
  #mc59ReferralTop{padding:0 4% 6px}
  #mc59ReferralTop .mc59-ranking-shell{padding:14px 12px 12px;border-radius:20px}
  #mc59ReferralTop header{margin-bottom:10px}
  #mc59ReferralTop header strong{max-width:none;text-align:left;font-size:.82rem}
  #mc59ReferralTop .mc60-ranking-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #mc59ReferralTop .mc60-rank-person{padding:12px 8px 10px;min-height:160px;border-radius:18px}
  #mc59ReferralTop .mc60-rank-photo{width:60px;height:60px}
  #mc59ReferralTop .mc60-rank-person strong{font-size:.88rem}
  #mc59ReferralTop .mc60-rank-person small{font-size:.72rem}
  .mc60-rank-profile{grid-template-columns:1fr;gap:12px}
  .mc60-rank-profile-photo{min-height:auto}
  .mc60-rank-profile-photo img{width:108px;height:108px;border-radius:18px}
  .mc60-rank-profile-photo .mc60-medal-art{right:calc(50% - 74px);bottom:-4px}
  .mc60-rank-profile-info h3{font-size:1.5rem}
  .countdown-title{font-size:1.1rem!important}
  .countdown-desc{font-size:.82rem!important}
  .calendar-icon-card{width:70px!important;min-width:70px!important}
  .calendar-icon-day{font-size:1.55rem!important}
  #demoIdCard{transform:scale(.84)}
  .sponsor-item-mini{min-width:112px}
  #gdeGuardiansGrid{grid-template-columns:1fr}
  #gdeGuardiansGrid .mc-gde-guardian-card:first-child{grid-column:auto;max-width:none;justify-self:stretch}
}
@media (max-width:520px){
  #mc59ReferralTop .mc60-ranking-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  #mc59ReferralTop .mc60-rank-person{min-height:150px}
  #mc59ReferralTop .mc60-rank-photo{width:56px;height:56px}
  #demoIdCard{transform:scale(.76)}
  .event-countdown-pill{padding:14px!important}
  .member-avatar,.mc-gde-guardian-photo,.mc61-member-card .member-avatar{width:74px!important;height:74px!important}
}
