/* ============================================================
   site-ui.css — visual comum das páginas de cliente
   Loira Dimas Oficial · usado por / (passe) e /reserva
   Mesma linguagem de /diamantes e /catalogo.
   ============================================================ */
:root {
    --color-dark: #0e0e10;
    --color-card: #16161a;
    --color-primary: #ff4d4d;
    --color-primary-2: #b30000;
    --color-text: #f0f0f0;
    --color-muted: #9b9ba4;
    --color-green: #62ff83;
    --color-amber: #ffb347;
    --color-star: #ffd700;
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .16);
    --shell: 1240px;
    --radius: 18px;
}

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
    background: var(--color-dark);
    color: var(--color-text);
    font-family: 'Montserrat', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---------------- FUNDO ---------------- */
.background-fx {
    position: fixed; inset: 0; z-index: -3;
    background: url('fundo-rt.jpg') center/cover no-repeat;
    filter: brightness(.4) saturate(1.05);
}
.gradient-overlay {
    position: fixed; inset: 0; z-index: -2;
    background:
        radial-gradient(1000px 620px at 50% -10%, rgba(255, 77, 77, .22), transparent 62%),
        radial-gradient(760px 520px at 12% 28%, rgba(98, 255, 131, .06), transparent 60%),
        linear-gradient(to bottom, rgba(0, 0, 0, .82), rgba(0, 0, 0, .6) 45%, rgba(0, 0, 0, .93));
}
.dust { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.dust i {
    position: absolute; bottom: -40px; font-size: 12px;
    color: rgba(255, 255, 255, .14); animation: dustUp linear infinite;
}
@keyframes dustUp {
    0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
    12%  { opacity: 1; }
    100% { transform: translateY(-112vh) rotate(300deg); opacity: 0; }
}

/* ---------------- HEADER ---------------- */
.main-header {
    background: rgba(10, 10, 12, .55);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 77, 77, .28);
    padding: 10px 0 11px;
    position: sticky; top: 0; z-index: 1000;
    transition: padding .25s ease, background .25s ease;
}
.main-header.tight { padding: 6px 0 7px; background: rgba(10, 10, 12, .84); }
.hd-inner {
    width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 16px;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.profile-container { display: flex; align-items: center; justify-content: center; gap: 10px; }
.profile-logo-inner { position: relative; }
.profile-logo-inner img {
    width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
    border: 2px solid var(--color-primary); box-shadow: 0 0 18px rgba(255, 77, 77, .45);
}
.profile-logo-inner::after {
    content: ""; position: absolute; right: 1px; bottom: 1px;
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--color-green); border: 2px solid #0e0e10;
}
.header-title-modern { font-size: .86rem; font-weight: 900; margin: 0; letter-spacing: .4px; line-height: 1.15; }
.header-title-modern span { color: var(--color-primary); }
.verified-badge { color: #1d9bf0; font-size: .72rem; }
.header-status-label {
    font-size: .55rem; letter-spacing: 1.5px; text-transform: uppercase;
    color: #a9a9b2; display: block; margin-top: 1px;
}
.nav-links { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.nav-chip {
    color: #fff !important; text-decoration: none !important;
    border: 1px solid rgba(255, 77, 77, .45); background: rgba(255, 77, 77, .1);
    border-radius: 999px; padding: 6px 12px; font-size: .6rem; font-weight: 800;
    letter-spacing: .4px; text-transform: uppercase; white-space: nowrap;
    transition: transform .18s ease, background .18s ease;
}
.nav-chip:hover { transform: translateY(-2px); background: rgba(255, 77, 77, .2); }
.nav-chip.active {
    background: linear-gradient(90deg, #ff4d4d, #b30000); border-color: transparent;
    box-shadow: 0 6px 18px rgba(255, 77, 77, .35);
}

/* ---------------- TICKER ---------------- */
.ticker-container {
    width: 100%; overflow: hidden; padding: 8px 0;
    background: rgba(0, 0, 0, .4);
    border-bottom: 1px solid rgba(255, 77, 77, .18);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-wrapper { display: flex; width: max-content; animation: tickerRun 34s linear infinite; }
.ticker-item {
    display: inline-flex; align-items: center; gap: 7px; padding: 0 22px;
    font-size: .6rem; font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase;
    color: #b4b4be; white-space: nowrap;
}
.ticker-item span { color: var(--color-primary); }
.ticker-item i { color: var(--color-green); font-size: .7rem; }
@keyframes tickerRun { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- SHELL ---------------- */
.page-wrap {
    width: 100%; max-width: var(--shell); margin: 0 auto;
    padding: 12px 14px calc(50px + env(safe-area-inset-bottom));
    box-sizing: border-box;
}

/* ---------------- HERO ---------------- */
.hero { text-align: center; padding: 22px 0 4px; }
.hero-kicker {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid rgba(255, 77, 77, .45); background: rgba(255, 77, 77, .1);
    color: #ffd9d9; border-radius: 999px; padding: 6px 14px;
    font-size: .58rem; font-weight: 900; letter-spacing: 2px; text-transform: uppercase;
}
.hero-kicker .dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--color-green);
    box-shadow: 0 0 10px var(--color-green); animation: blip 1.8s ease-in-out infinite;
}
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.hero h1 {
    font-weight: 900; letter-spacing: 1px; text-transform: uppercase;
    font-size: clamp(1.75rem, 8.4vw, 4.2rem); line-height: .98; margin: 14px 0 0;
    background: linear-gradient(100deg, #fff 8%, #ff8f8f 34%, #fff 56%, #ff4d4d 78%, #fff 96%);
    background-size: 260% 100%;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    animation: heroShine 7s linear infinite;
}
@keyframes heroShine { to { background-position: -260% 0; } }
.hero h2 {
    font-size: clamp(.68rem, 2.9vw, .95rem); font-weight: 800; letter-spacing: 3px;
    text-transform: uppercase; color: var(--color-green); margin: 10px 0 0;
}
.hero p {
    color: #b6b6be; margin: 12px auto 0; line-height: 1.6;
    font-size: clamp(.76rem, 3.2vw, .95rem); max-width: 560px;
}
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 16px; }
.badge-ok {
    background: rgba(98, 255, 131, .09); border: 1px solid rgba(98, 255, 131, .35);
    color: #9dffb5; font-size: .58rem; font-weight: 800; letter-spacing: .5px;
    text-transform: uppercase; border-radius: 999px; padding: 7px 12px;
}
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px auto 0; max-width: 620px; }
.hstat { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 14px; padding: 12px 8px; backdrop-filter: blur(8px); }
.hstat b { display: block; font-size: clamp(.9rem, 4vw, 1.25rem); font-weight: 900; color: #fff; line-height: 1; }
.hstat b.green { color: var(--color-green); }
.hstat span { display: block; margin-top: 6px; font-size: .5rem; letter-spacing: 1.2px; text-transform: uppercase; color: #8f8f98; font-weight: 800; }

/* ---------------- CARTÕES ---------------- */
.glass-card, .panel {
    background: linear-gradient(180deg, rgba(28, 28, 33, .94), rgba(15, 15, 18, .96));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .48);
}
.panel { padding: 20px; }
.section-title {
    display: flex; align-items: center; gap: 10px; margin: 28px 0 13px;
    text-transform: uppercase; letter-spacing: 2.4px; font-size: .62rem;
    color: var(--sc, #ff6b6b); font-weight: 900;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(255, 107, 107, .45), transparent); }

/* ---------------- BOTÃO PREMIUM (com os tickets) ---------------- */
.premium-button {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 100%; max-width: 100%; height: 58px;
    margin: 15px auto 0;
    padding: 0 14px;
    background: linear-gradient(100deg, #ff4d4d, #a10000) !important;
    border: 1px solid rgba(255, 120, 120, .45) !important;
    border-radius: 15px;
    color: #fff !important;
    font-size: .92rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1.3px;
    overflow: hidden; cursor: pointer; text-decoration: none !important;
    box-shadow: 0 12px 30px rgba(255, 77, 77, .28);
    transition: transform .22s cubic-bezier(.2, .8, .3, 1), box-shadow .22s ease, filter .22s ease;
}
.premium-button:hover:not(:disabled) {
    transform: translateY(-3px); filter: brightness(1.1);
    box-shadow: 0 18px 40px rgba(255, 77, 77, .38);
}
.premium-button:active:not(:disabled) { transform: translateY(0) scale(.98); }
.premium-button:disabled { opacity: .55; cursor: not-allowed; }
.premium-button::after {
    content: ""; position: absolute; top: 0; left: -150%;
    width: 62%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, .42), transparent);
    transform: skewX(-20deg); animation: reflection-shimmer 4s infinite;
    z-index: 3; pointer-events: none;
}
@keyframes reflection-shimmer { 0% { left: -150%; } 30% { left: 155%; } 100% { left: 155%; } }
.premium-button span, .premium-button i {
    position: relative; z-index: 4; text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.premium-button i { margin-right: 11px; font-size: 1.3rem; }
.premium-button.ghost {
    background: rgba(255, 255, 255, .05) !important;
    border-color: var(--line-2) !important;
    box-shadow: none;
}
.premium-button.green {
    background: linear-gradient(100deg, #62ff83, #10913b) !important;
    border-color: rgba(98, 255, 131, .5) !important;
    color: #05230f !important;
    box-shadow: 0 12px 30px rgba(98, 255, 131, .22);
}
.premium-button.green span, .premium-button.green i { text-shadow: none; }

/* --- os ticketinhos que sobem de dentro do botão --- */
/* sem z-index no container: se ele criar contexto de empilhamento,
   os tickets ficam presos atrás do texto do botão */
#ticketParticlesContainer, .ticket-particles {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.ticket-particle {
    position: absolute; bottom: 0; left: 50%;
    color: rgba(255, 255, 255, .85); font-size: 16px;
    pointer-events: none; z-index: 5;
    animation: floatTicket 2.5s linear forwards;
}
@keyframes floatTicket {
    0%   { transform: translate(-50%, 0) rotate(0deg); opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translate(calc(-50% + var(--random-x, 0px)), -120px) rotate(var(--random-deg, 360deg)); opacity: 0; }
}

/* ---------------- BOTÕES SECUNDÁRIOS ---------------- */
.btn-outline-glass {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
    color: #d6d6de !important; text-decoration: none !important;
    border-radius: 999px; padding: 9px 16px;
    font-size: .62rem; font-weight: 900; letter-spacing: .8px; text-transform: uppercase;
    transition: all .2s ease;
}
.btn-outline-glass:hover { background: rgba(255, 255, 255, .1); color: #fff !important; transform: translateY(-2px); }
.btn-support {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    background: linear-gradient(45deg, #0088cc, #005f8f);
    color: #fff !important; text-decoration: none !important;
    border: none; border-radius: 14px; padding: 14px 26px;
    font-size: .76rem; font-weight: 900; letter-spacing: .8px; text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(0, 136, 204, .3); transition: transform .2s ease;
}
.btn-support:hover { transform: translateY(-3px); color: #fff !important; }

/* ---------------- PASSOS ---------------- */
.steps-row { display: grid; grid-template-columns: 1fr; gap: 10px; }
.step-card {
    position: relative; display: flex; gap: 13px; align-items: flex-start;
    background: rgba(255, 255, 255, .035); border: 1px solid var(--line);
    border-radius: 16px; padding: 15px;
}
.step-card .step-num {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 11px;
    display: grid; place-items: center; font-size: .9rem; font-weight: 900;
    background: linear-gradient(140deg, #ff4d4d, #7a0000); color: #fff;
    box-shadow: 0 6px 16px rgba(255, 77, 77, .3);
}
.step-card > i { display: none; }
.step-card h5 { font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; margin: 3px 0 4px; }
.step-card p { font-size: .74rem; color: #a3a3ac; margin: 0; line-height: 1.5; }

/* ---------------- CARDS DE ATALHO ---------------- */
.cross-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.cross-card {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, rgba(28, 28, 33, .94), rgba(15, 15, 18, .96));
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 20px; display: flex; flex-direction: column; gap: 8px;
    transition: transform .26s cubic-bezier(.2, .8, .3, 1), border-color .26s ease, box-shadow .26s ease;
}
.cross-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--cc, var(--color-primary)), transparent); opacity: .85;
}
.cross-card:hover {
    transform: translateY(-5px); border-color: var(--cc, var(--color-primary));
    box-shadow: 0 18px 42px rgba(0, 0, 0, .55);
}
.cross-card .ic {
    width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2);
    color: var(--cc, var(--color-primary)); font-size: 1.15rem; margin-bottom: 4px;
}
.cross-card h4 { font-size: .88rem; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; margin: 0; }
.cross-card p { font-size: .76rem; color: #a3a3ac; margin: 0; line-height: 1.55; flex: 1; }
.cross-card .go {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
    color: var(--cc, var(--color-primary)) !important; text-decoration: none !important;
    font-size: .66rem; font-weight: 900; letter-spacing: .9px; text-transform: uppercase;
}
.cross-card .go i { transition: transform .2s ease; }
.cross-card:hover .go i { transform: translateX(4px); }

/* ---------------- AVISOS ---------------- */
.warning-box {
    background: rgba(255, 179, 71, .08); border: 1px solid rgba(255, 179, 71, .38);
    border-left: 3px solid var(--color-amber);
    border-radius: 16px; padding: 16px 18px; text-align: center;
}
.warning-box > i { font-size: 1.4rem; color: var(--color-amber); }
.warning-box h5 {
    font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .8px;
    margin: 9px 0 7px; color: #ffd9a0;
}
.warning-box p { font-size: .78rem; color: #c9c9d2; margin: 0; line-height: 1.6; }
.warning-highlight { color: #fff; font-weight: 900; background: rgba(255, 179, 71, .18); padding: 2px 6px; border-radius: 5px; }

/* ---------------- MODAIS ---------------- */
.modal-content {
    background: rgba(14, 14, 17, .97) !important;
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 77, 77, .45) !important;
    border-radius: 24px !important;
    color: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 50px rgba(255, 77, 77, .16);
}
.modal-title { letter-spacing: 1px; font-weight: 900; font-size: .95rem; text-transform: uppercase; }
.form-control {
    background: rgba(0, 0, 0, .55) !important;
    border: 1px solid rgba(255, 77, 77, .45) !important;
    color: #fff !important; border-radius: 14px !important;
    /* 16px é o mínimo: abaixo disso o iPhone dá zoom ao focar o campo */
    font-size: 16px !important;
    padding: 13px 15px !important; font-weight: 700;
}
.form-control:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 4px rgba(255, 77, 77, .16) !important; outline: none !important;
}
.form-control::placeholder { color: #6f6f78 !important; font-weight: 600; letter-spacing: .5px; }
.id-input {
    text-align: center; letter-spacing: 3px !important; height: 58px;
    font-size: 17px !important; font-weight: 900 !important;
}
.form-check-input:checked { background-color: var(--color-primary) !important; border-color: var(--color-primary) !important; }

/* ---------------- PIX ---------------- */
.pix-status-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 7px 15px; border-radius: 999px;
    background: rgba(98, 255, 131, .1); color: var(--color-green);
    font-size: .64rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1.2px;
    border: 1px solid rgba(98, 255, 131, .32);
}
.qr-code-wrapper {
    display: inline-block; background: #fff; padding: 12px; border-radius: 16px;
    box-shadow: 0 0 34px rgba(98, 255, 131, .2);
}
.qr-code-wrapper img { display: block; width: 190px; height: 190px; border-radius: 8px; }
.pix-polling-box {
    margin-top: 14px; font-size: .72rem; font-weight: 800; color: var(--color-amber);
    letter-spacing: .5px; text-align: center;
}
.btn-cancel-pix {
    width: 100%; margin-top: 14px; background: none; border: none;
    color: #7d7d87; font-size: .68rem; font-weight: 900;
    letter-spacing: .8px; text-transform: uppercase; padding: 10px;
}
.btn-cancel-pix:hover { color: var(--color-primary); }

/* ---------------- SUPORTE / RODAPÉ ---------------- */
.contact-card-modern {
    text-align: center; padding: 30px 22px;
    background: linear-gradient(180deg, rgba(28, 28, 33, .94), rgba(15, 15, 18, .96));
    border: 1px solid var(--line); border-radius: var(--radius);
}
.contact-card-modern .support-icon, .contact-card-modern .insta-icon-wrapper {
    width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px;
    display: grid; place-items: center; font-size: 1.6rem; color: #fff;
    background: linear-gradient(45deg, #0088cc, #005f8f);
    box-shadow: 0 10px 26px rgba(0, 136, 204, .3);
}
.contact-card-modern h4 { font-size: .92rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1.2px; margin: 0 0 8px; }
.contact-card-modern p { font-size: .8rem; color: #a3a3ac; margin: 0 0 18px; line-height: 1.6; }

.float-support {
    position: fixed; bottom: calc(20px + env(safe-area-inset-bottom)); right: 20px; z-index: 999;
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(45deg, #0088cc, #005f8f);
    color: #fff !important; font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    transition: transform .25s ease; box-shadow: 0 6px 25px rgba(0, 136, 204, .4);
    animation: pulse-support 2.6s infinite;
}
.float-support:hover { transform: scale(1.1); }
@keyframes pulse-support {
    0%, 100% { box-shadow: 0 6px 25px rgba(0, 136, 204, .4); }
    50% { box-shadow: 0 6px 36px rgba(0, 136, 204, .72); }
}

.disclaimer-text {
    max-width: 780px; margin: 0 auto; text-align: center;
    font-size: .66rem; color: rgba(255, 255, 255, .42); line-height: 1.85;
}
.disclaimer-text b { color: rgba(255, 255, 255, .62); }
.footer-copyright {
    text-align: center; padding: 18px 14px calc(28px + env(safe-area-inset-bottom));
    font-size: .6rem; letter-spacing: 1.2px; text-transform: uppercase;
    color: #5f5f68; font-weight: 800;
}
.footer-copyright span { color: var(--color-primary); }
.footer-disclaimer-box { padding: 34px 14px 0; border-top: 1px solid var(--line); margin-top: 40px; }

/* ---------------- UTIL ---------------- */
.muted-text { color: var(--color-muted); }
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2, .8, .3, 1); }

/* ---------------- RESPONSIVO ---------------- */
@media (max-width: 340px) {
    .premium-button { height: 52px; font-size: .78rem; letter-spacing: .8px; }
    .premium-button i { font-size: 1.05rem; margin-right: 8px; }
    .hero-stats { gap: 6px; }
}
@media (min-width: 640px) {
    .page-wrap { padding: 18px 22px 60px; }
    .steps-row { grid-template-columns: repeat(3, 1fr); }
    .cross-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .main-header { padding: 12px 0; }
    .hd-inner { flex-direction: row; justify-content: space-between; gap: 24px; }
    .profile-logo-inner img { width: 46px; height: 46px; }
    .header-title-modern { font-size: 1rem; }
    .header-status-label { font-size: .58rem; }
    .nav-chip { font-size: .66rem; padding: 8px 15px; }
    .hero { padding: 44px 0 10px; }
    .badge-ok { font-size: .64rem; padding: 8px 15px; }
    .hstat { padding: 16px 12px; }
    .ticker-item { font-size: .66rem; padding: 0 26px; }
    .cross-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
