body {
    margin: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #000;
}

/* HEADER */
.header {
    background: #0f0f0f;
    color: #fff;
    border-bottom: 1px solid #1c1c1c;
}

.header-top {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
}

.tabs {
    display: flex;
    overflow-x: auto;
    border-top: 1px solid #1c1c1c;
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 13px;
    color: #777;
    cursor: pointer;
}

.tab.active {
    color: #f5a623;
    border-bottom: 2px solid #f5a623;
}

/* TOPO ESCURO */
.top-dark {
    background: #0f0f0f;
    padding: 50px 0 60px 0;
}

/* QR */
.qr-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    margin: auto;
    border-radius: 14px;
    overflow: hidden;
}

.gradient-rotate {
    position: absolute;
    width: 180%;
    height: 180%;
    top: -40%;
    left: -40%;
    background: conic-gradient(#a000ff, #008cff, #a000ff);
    animation: spin 8s linear infinite; /* 40 segundos */
}

#qr-container {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    margin: auto;
    width: fit-content;
    top: 50%;
    transform: translateY(-50%);
}

#qr-image {
    width: 180px;
}

/* BLOCO BRANCO */
.main-white {
    background: #e9e9e9;
    width: 100%;
    margin: 0;
    padding: 0;
}

.info-section {
    padding: 1px 18px;
}

.info-section h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.date {
    font-size: 13px;
    color: #555;
    margin-bottom: 22px;
}

.grid {
    display: flex;
    gap: 70px; /* controla distância entre colunas */
    margin-bottom: 22px;
}

.grid div {
    display: flex;
    flex-direction: column;
}

.grid span {
    font-size: 11px;
    color: #777;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.grid strong {
    font-size: 14px;
    font-weight: 700;
}

.personalizacao-box {
    border: 1px solid #bdbdbd;
    border-radius: 6px;
    padding: 10px;
    background: #efefef;
    margin: 14px 0;
    display: flex;
    flex-direction: column;
}

.personalizacao-box span {
    font-size: 11px;
    color: #777;
    margin-bottom: 4px;
}

.personalizacao-box strong {
    font-size: 13px;
}

.valor p {
    font-size: 10px;
    color: #555;
}

.valor strong {
    font-size: 12px;
}

.valor h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 6px 0;
}

.valor small {
    font-size: 10px;
    color: #555;
}

/* ===== THUMB CORRETA ===== */

.thumb-center {
    background: #e9e9e9;
    display:flex;
    justify-content: center;
}

.thumb-center img {
    width: 90%;
    max-width: 150px;
    height: auto;
    display: block;
}

.evento-info {
    padding: 0 18px 20px 18px;
    font-size: 12px;
    color: #333;
}

.info-extra {
    padding: 0 18px 25px 18px;
}

.info-text {
    font-size: 11px;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.4;
}

/* FINAL */
.bottom-dark {
    background: #000;
    padding: 20px 18px 30px 18px;
}

.footer-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.footer-text {
    font-size: 11px;
    color: #aaa;
    margin-bottom: 8px;
    line-height: 1.4;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== DETALHES DO EVENTO ===== */

.evento-detalhes {
    padding: 0 18px 30px 18px;
    background: #e9e9e9;
}

/* Título grande condensado */
.titulo-grande {
    font-family: Impact, 'Arial Narrow Bold', sans-serif;
    font-size: 28px;
    letter-spacing: 1px;
    margin: 20px 0 10px 0;
}

.local {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.endereco {
    font-size: 13px;
    margin-bottom: 20px;
}

/* INFORMAÇÕES RELEVANTES */

.info-relevantes h3 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.info-relevantes p {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 14px;
}

.info-relevantes p strong {
    font-weight: 700;
}

/* Bloco produtor menor */
.produtor p {
    font-size: 12px;
    line-height: 1.4;
    margin-top: 20px;
}

/* ===== SEÇÃO PRETA INFERIOR ===== */

.ticket-info-section {
    background: #000;
    padding: 20px 18px 40px 18px;
    color: #fff;
}

/* Compartilhar */
.share {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00a3ff;
    font-size: 14px;
    margin-bottom: 28px;
    cursor: pointer;
}

.share-icon {
    font-size: 16px;
}

.ticket-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 22px;
}

/* Campos */
.ticket-field {
    margin-bottom: 20px;
}

.ticket-field label {
    display: block;
    font-size: 13px;
    color: #aaa;
    margin-bottom: 8px;
}

.field-box {
    background: linear-gradient(90deg, #1a1a1a, #111);
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.field-box span {
    font-size: 15px;
    letter-spacing: 0.3px;
}

/* Ícone copiar */
.copy-icon {
    width: 18px;
    height: 18px;
    border: 1.5px solid #aaa;
    border-radius: 4px;
    position: relative;
}

.copy-icon::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 1.5px solid #aaa;
    border-radius: 4px;
    top: -5px;
    left: -5px;
    background: transparent;
}

/* Texto final */
.transferencia {
    margin-top: 30px;
    font-size: 14px;
    color: #ddd;
}

/* BOTTOM NAV */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #2c2c2c;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0 calc(25px + env(safe-area-inset-bottom)) 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #a0a0a0;
    flex: 1;
    transition: all 0.2s ease;
}

.nav-item:active {
    opacity: 0.7;
    transform: scale(0.95);
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
}

.nav-item.active {
    color: #fccb05;
}

.nav-item.active svg {
    stroke: #fccb05;
    fill: #fccb05;
}

@media (min-width: 768px) {
    .bottom-nav {
        max-width: 500px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 20px 20px 0 0;
    }
}