/* 
    Circuito Paulista de SUP 2026
    Styles (Tema Claro)
*/

:root {
    --primary: #0077b6;
    --primary-hover: #0096c7;
    --secondary: #ff7b00;
    --secondary-hover: #e56b00;
    --bg-light: #ffffff;
    --bg-lighter: #f8f9fa;
    --card-bg: #ffffff;
    --card-border: #e9ecef;
    --text-main: #2b2d42;
    --text-muted: #6c757d;
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
    color: var(--text-main);
}

h2.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-white {
    color: #ffffff;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.font-bold {
    font-weight: 700;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-auto {
    margin-top: auto;
}

.py-4 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.highlight {
    color: var(--primary);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-lighter {
    background-color: var(--bg-lighter);
}

/* Typography Helpers */
.title-underline {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin-bottom: 2rem;
    border-radius: 2px;
}

.title-underline.center {
    margin: 0 auto 3rem auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    transition: background 0.4s ease, padding 0.4s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-links a {
    color: var(--text-main);
}

.navbar.scrolled .mobile-menu-btn {
    color: var(--text-main);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.nav-logo,
.hero-logo,
.footer-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

/* No navbar e footer se quiser menor, caso prefira 200px cravados, manteremos assim. Se ficar mto grande no menu: */
.nav-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
}

/* Overriding just for nav to not break the menu */
.footer-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    color: #ffffff;
    /* Inicialmente no hero escuro */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    color: #ffffff;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 200px;
    height: 200px;
    margin-bottom: 1rem;
    filter: drop-shadow(0px 4px 6px rgba(0, 0, 0, 0.5));
}

.subtitle {
    display: block;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #fff;
}

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    box-shadow: 0 4px 15px rgba(255, 123, 0, 0.3);
}

.btn-disabled {
    background-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
    border: 1px solid #dee2e6;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Animations */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpAnim 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes slideUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sobre Section */
.section-sobre {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.sobre-image .image-placeholder {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.sobre-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sobre-image:hover img {
    transform: scale(1.05);
}

/* Etapas Grid - 2 per row */
.etapas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    /* Mantém a imagem quadrada ocupando 100% da largura do card */
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card-body p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.etapa-action {
    margin-top: 1.5rem;
}

.etapa-action .btn {
    border-radius: 8px;
    padding: 0.8rem;
}

/* Tabs & Ranking Section */
.tabs-container {
    width: 100%;
}

.tabs-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.tab-item {
    padding: 0.8rem 1.5rem;
    background: #fff;
    border: 1px solid var(--card-border);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}

.tab-item:hover {
    background: var(--bg-lighter);
    color: var(--primary);
}

.tab-item.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.2);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.categoria-block {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.categoria-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-lighter);
}

.table-responsive {
    overflow-x: auto;
}

.ranking-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.ranking-table th,
.ranking-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--card-border);
    text-align: left;
}

.ranking-table th {
    background-color: var(--bg-lighter);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.ranking-table tr:hover td {
    background-color: #fcfcfc;
}

.ranking-table tr:last-child td {
    border-bottom: none;
}

/* Nomes dos atletas sempre em maiúsculo */
.ranking-table td.font-bold:nth-child(2) {
    text-transform: uppercase;
}

/* Resultados */
.resultados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.resultado-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.resultado-item h4 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    color: var(--secondary);
}

.pdf-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid var(--card-border);
}

.pdf-list li:last-child {
    border-bottom: none;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-lighter);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--card-border);
}

.btn-download:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Footer */
.footer {
    background: var(--bg-lighter);
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--card-border);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 400px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    color: var(--text-main);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social-icons a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid var(--card-border);
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .section-sobre {
        grid-template-columns: 1fr;
    }

    .etapas-grid {
        grid-template-columns: 1fr;
        /* Colapsa para 1 em telas menores */
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .nav-logo {
        height: 50px;
    }
    
    /* RANKING - Otimização de espaço no mobile */
    #ranking .container {
        padding: 0 5px; /* Reduz margem lateral para aproveitar a tela 100% */
    }

    .categoria-block {
        padding: 1rem 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .categoria-title {
        font-size: 1.2rem;
        padding-left: 0.5rem;
    }

    .ranking-table th,
    .ranking-table td {
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .tabs-list {
        margin-bottom: 1.5rem;
        gap: 0.5rem;
    }
    
    .tab-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }

    .d-mobile {
        display: flex !important;
    }
}

/* Scroll Hint (Mobile) */
.scroll-hint {
    display: none; /* Escondido no desktop */
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0.5rem;
}

.scroll-hint i {
    width: 14px;
    height: 14px;
    opacity: 0.7;
    animation: slideRight 1.5s infinite alternate ease-in-out;
}

@keyframes slideRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(4px); }
}

/* ========================================================
   CERTIFICADO DE PARTICIPAÇÃO & BOTÃO NO RANKING
======================================================== */

.btn-cert-simple {
    display: inline-block;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: none;
    line-height: 1.2;
}

.btn-cert-simple:hover {
    background: var(--primary);
    color: #ffffff;
}

/* Modal Overlay */
.modal-cert-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-cert-overlay.active {
    display: flex;
}

.modal-cert-wrapper {
    position: relative;
    max-width: 960px;
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-cert-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.btn-cert-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-cert-download {
    background: #059669;
    color: #ffffff;
}

.btn-cert-download:hover {
    background: #047857;
}

.btn-cert-print {
    background: var(--primary);
    color: #ffffff;
}

.btn-cert-print:hover {
    background: #0284c7;
}

.btn-cert-close {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-cert-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Folha do Certificado */
.certificate-paper {
    background: #ffffff;
    color: #1e293b;
    border-radius: 8px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    padding: 10px;
    position: relative;
    box-sizing: border-box;
}

.cert-border-outer {
    border: 3px double #d4af37;
    border-radius: 6px;
    padding: 5px;
    background: linear-gradient(135deg, rgba(254, 252, 232, 0.4) 0%, rgba(255, 255, 255, 0.95) 100%);
}

.cert-border-inner {
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 1.5rem 2.2rem;
    background: #ffffff;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

/* Topo do Certificado */
.cert-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cert-logo-main {
    max-height: 60px;
    width: auto;
    margin-bottom: 0.5rem;
}

.cert-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #0f172a;
    letter-spacing: 2px;
    margin: 0 0 0.3rem 0;
    text-transform: uppercase;
}

.cert-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 50%;
    margin-top: 0.2rem;
}

.cert-ornament span {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.cert-ornament i {
    width: 15px;
    height: 15px;
    color: #d4af37;
}

/* Corpo */
.cert-body {
    margin-bottom: 0.8rem;
}

.cert-intro {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 0.2rem;
    font-style: italic;
}

.cert-athlete-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0.2rem 0 0.5rem 0;
    border-bottom: 2px solid #e2e8f0;
    display: inline-block;
    padding-bottom: 0.2rem;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

.cert-statement {
    font-size: 0.92rem;
    color: #334155;
    margin: 0 auto 0.8rem auto;
    max-width: 650px;
    line-height: 1.4;
}

/* Cards de Classificação */
.cert-positions-row {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin: 0.6rem auto;
    max-width: 600px;
}

.cert-pos-card {
    flex: 1;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: 3px solid #0284c7;
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.cert-pos-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    font-weight: 600;
}

.cert-pos-value {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 700;
}

/* Tabela de Pontos */
.cert-table-wrap {
    margin: 0.8rem auto 0 auto;
    max-width: 620px;
}

.cert-table-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    color: #475569;
    margin-bottom: 0.35rem;
}

.cert-score-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    overflow: hidden;
}

.cert-score-table th,
.cert-score-table td {
    padding: 0.45rem 0.4rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    font-size: 0.78rem;
}

.cert-score-table th {
    background: #f1f5f9;
    color: #334155;
    font-weight: 600;
    line-height: 1.15;
}

.cert-score-table th small {
    color: #64748b;
    font-size: 0.65rem;
    font-weight: normal;
}

.cert-score-table td {
    font-weight: 600;
    color: #0f172a;
}

.cert-th-total,
.cert-td-total {
    background: #f8fafc !important;
}

.cert-td-total {
    color: #0284c7 !important;
    font-weight: 800 !important;
    font-size: 0.85rem !important;
}

/* Rodapé: Logotipos das Etapas */
.cert-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #cbd5e1;
}

.cert-etapas-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.cert-etapas-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    flex-wrap: wrap;
    margin-bottom: 0.6rem;
}

.cert-etapa-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.cert-etapa-brand img {
    height: 36px;
    max-width: 80px;
    object-fit: contain;
}

.cert-etapa-brand span {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
}

.cert-verification-note {
    font-size: 0.72rem;
    color: #64748b;
    margin: 0.3rem 0 0.4rem 0;
}

.cert-legal-text {
    font-size: 0.58rem;
    line-height: 1.35;
    color: #64748b;
    text-align: justify;
    margin: 0.4rem auto 0 auto;
    max-width: 780px;
    padding-top: 0.35rem;
    border-top: 1px dotted #cbd5e1;
}

/* ========================================================
   ESTILOS DE IMPRESSÃO (A4 Paisagem - Folha Única)
======================================================== */
@media print {
    @page {
        size: A4 landscape;
        margin: 5mm;
    }

    html, body {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        overflow: hidden !important;
    }

    body * {
        visibility: hidden !important;
    }

    #modal-certificado,
    #modal-certificado * {
        visibility: visible !important;
    }

    #modal-certificado {
        position: fixed !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        page-break-after: avoid !important;
        page-break-before: avoid !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .modal-cert-actions,
    .no-print {
        display: none !important;
    }

    .modal-cert-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .certificate-paper {
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        width: 280mm !important;
        height: 195mm !important;
        max-height: 195mm !important;
        box-sizing: border-box !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        overflow: hidden !important;
    }

    .cert-border-outer {
        border: 2px double #d4af37 !important;
        padding: 3px !important;
        height: 100% !important;
        box-sizing: border-box !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .cert-border-inner {
        padding: 0.8rem 1.8rem 0.6rem 1.8rem !important;
        height: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    .cert-header {
        margin-bottom: 0.25rem !important;
    }

    .cert-logo-main {
        max-height: 48px !important;
        margin-bottom: 0.2rem !important;
    }

    .cert-title {
        font-size: 1.25rem !important;
        margin-bottom: 0.15rem !important;
    }

    .cert-ornament {
        margin-top: 0.1rem !important;
    }

    .cert-body {
        margin-bottom: 0.3rem !important;
    }

    .cert-intro {
        font-size: 0.82rem !important;
        margin-bottom: 0.1rem !important;
    }

    .cert-athlete-name {
        font-size: 1.35rem !important;
        margin: 0.1rem 0 0.25rem 0 !important;
        padding-bottom: 0.1rem !important;
    }

    .cert-statement {
        font-size: 0.8rem !important;
        margin-bottom: 0.35rem !important;
        line-height: 1.3 !important;
    }

    .cert-positions-row {
        margin: 0.25rem auto !important;
        gap: 0.8rem !important;
    }

    .cert-pos-card {
        padding: 0.25rem 0.6rem !important;
    }

    .cert-pos-label {
        font-size: 0.65rem !important;
    }

    .cert-pos-value {
        font-size: 0.92rem !important;
    }

    .cert-table-wrap {
        margin-top: 0.35rem !important;
        max-width: 580px !important;
    }

    .cert-table-title {
        font-size: 0.68rem !important;
        margin-bottom: 0.2rem !important;
    }

    .cert-score-table th,
    .cert-score-table td {
        padding: 0.28rem 0.35rem !important;
        font-size: 0.7rem !important;
    }

    .cert-footer {
        margin-top: 0.35rem !important;
        padding-top: 0.35rem !important;
    }

    .cert-etapas-title {
        font-size: 0.65rem !important;
        margin-bottom: 0.3rem !important;
    }

    .cert-etapas-logos {
        gap: 1.4rem !important;
        margin-bottom: 0.25rem !important;
    }

    .cert-etapa-brand img {
        height: 26px !important;
    }

    .cert-etapa-brand span {
        font-size: 0.6rem !important;
    }

    .cert-verification-note {
        font-size: 0.65rem !important;
        margin: 0.2rem 0 0.25rem 0 !important;
    }

    .cert-legal-text {
        font-size: 0.52rem !important;
        line-height: 1.25 !important;
        margin-top: 0.25rem !important;
        padding-top: 0.25rem !important;
    }
}

/* Responsividade Mobile do Certificado */
@media (max-width: 768px) {
    .modal-cert-overlay {
        padding: 0.5rem;
    }

    .cert-border-inner {
        padding: 1.2rem 0.8rem;
    }

    .cert-title {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .cert-athlete-name {
        font-size: 1.3rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .cert-positions-row {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cert-etapas-logos {
        gap: 0.8rem;
    }

    .cert-etapa-brand img {
        height: 28px;
        max-width: 65px;
    }
}