/* ==========================================================
   ASCIGTUR · PAINEL DO GUIA v3.0
   Design Premium — Mobile-First · Inter Font
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* RESET LOCAL */
#asc-app,
#asc-app * {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

#asc-app {
    --p:           #2563eb;
    --p-dark:      #1d4ed8;
    --p-light:     #eff6ff;
    --accent:      #f97316;
    --accent-dark: #ea580c;
    --green:       #10b981;
    --red:         #ef4444;
    --amber:       #f59e0b;
    --text:        #0f172a;
    --muted:       #64748b;
    --soft:        #94a3b8;
    --bg:          #F8F9FA;
    --card:        #ffffff;
    --border:      #e2e8f0;
    --border-soft: #f1f5f9;
    --shadow-sm:   0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
    --shadow:      0 4px 16px rgba(15,23,42,0.08);
    --shadow-lg:   0 20px 40px -8px rgba(15,23,42,0.14);
    --radius:      16px;
    --radius-sm:   10px;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    padding-bottom: 96px;
    max-width: 100%;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* =============================================
   TOPBAR
   ============================================= */
.asc-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,0.94);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
}
.asc-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.02em;
    color: var(--text);
}
.asc-brand-logo {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 900; font-size: 16px;
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
    flex-shrink: 0;
}
.asc-user {
    font-size: 13px;
    color: var(--muted);
    font-weight: 500;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* =============================================
   TABS — Bottom Nav Mobile (fixo na tela)
   ============================================= */
.asc-tabs {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 60;
    background: rgba(255,255,255,0.96);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(15,23,42,0.07);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.asc-tab {
    flex: 1;
    background: none;
    border: 0;
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 600;
    color: var(--soft);
    cursor: pointer;
    transition: color .18s, transform .18s;
    border-radius: 10px;
    font-family: inherit;
    letter-spacing: 0.01em;
}
.asc-tab-icon {
    font-size: 22px;
    line-height: 1;
    transition: transform .2s;
}
.asc-tab.is-active { color: var(--p); }
.asc-tab.is-active .asc-tab-icon { transform: scale(1.15) translateY(-2px); }

/* =============================================
   CONTAINER & VIEWS
   ============================================= */
.asc-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 16px;
}
.asc-view { animation: ascFade .22s ease; }
@keyframes ascFade {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   HERO — Home
   ============================================= */
.asc-hero {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 26px 22px;
    margin-bottom: 20px;
    box-shadow: 0 8px 24px rgba(37,99,235,0.28);
    position: relative;
    overflow: hidden;
}
.asc-hero::before {
    content: "";
    position: absolute;
    top: -50px; right: -50px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
    pointer-events: none;
}
.asc-hero::after {
    content: "";
    position: absolute;
    bottom: -30px; left: -20px;
    width: 140px; height: 140px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
    pointer-events: none;
}
.asc-hero h1 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}
.asc-hero p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

/* =============================================
   ALERTAS GLOBAIS (Dashboard)
   ============================================= */
.asc-alerts-zone {
    margin-bottom: 20px;
}
.asc-alerts-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.asc-alerts-header-icon { font-size: 16px; }
.asc-alerts-count {
    background: var(--amber);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 7px;
    border-radius: 999px;
    line-height: 1.5;
}

.asc-global-alert {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: var(--shadow-sm);
    transition: opacity .4s, transform .4s;
}
.asc-global-alert-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}
.asc-global-alert-body { flex: 1; min-width: 0; }
.asc-global-alert-title {
    font-size: 15px;
    font-weight: 700;
    color: #78350f;
    margin-bottom: 4px;
    line-height: 1.3;
}
.asc-global-alert-msg {
    font-size: 13px;
    color: #92400e;
    line-height: 1.55;
}
.asc-global-alert-read {
    flex-shrink: 0;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: inherit;
    white-space: nowrap;
}
.asc-global-alert-read:hover {
    background: #fbbf24;
    border-color: #f59e0b;
    color: #78350f;
    transform: scale(1.03);
}
@media (max-width: 500px) {
    .asc-global-alert { flex-wrap: wrap; }
    .asc-global-alert-read { width: 100%; justify-content: center; }
}

/* =============================================
   ALERTA ESPECÍFICO DO ATRATIVO
   (No topo da página do atrativo)
   ============================================= */
.asc-atrativo-alerta {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 5px solid #f97316;
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 2px 8px rgba(249,115,22,0.12);
    animation: ascPulse .6s ease;
}
@keyframes ascPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.015); }
    100% { transform: scale(1); }
}
.asc-atrativo-alerta-icon {
    font-size: 28px;
    flex-shrink: 0;
}
.asc-atrativo-alerta-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ea580c;
    margin-bottom: 5px;
}
.asc-atrativo-alerta-text {
    font-size: 14px;
    font-weight: 600;
    color: #7c2d12;
    line-height: 1.55;
}

/* =============================================
   STATS HOME
   ============================================= */
.asc-home-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 22px;
}
.asc-home-stat {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all .2s;
}
.asc-home-stat:active { transform: scale(0.97); }
.asc-home-stat:hover  { box-shadow: var(--shadow); border-color: var(--p); }
.asc-home-stat .n {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    color: var(--p);
    letter-spacing: -0.03em;
}
.asc-home-stat .l {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    font-weight: 600;
}

.asc-section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 22px 0 12px;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.02em;
    color: var(--text);
}
.asc-section-title .link {
    font-size: 13px;
    color: var(--p);
    font-weight: 600;
    cursor: pointer;
}

/* =============================================
   FILTROS
   ============================================= */
.asc-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.asc-filters::-webkit-scrollbar { display: none; }
.asc-search {
    flex: 1 1 180px;
    min-width: 160px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    font-size: 14px;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
    outline: 0;
    transition: all .18s;
    color: var(--text);
}
.asc-search:focus {
    border-color: var(--p);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.asc-select {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    outline: 0;
    color: var(--text);
    transition: border-color .15s;
}
.asc-select:focus { border-color: var(--p); }

/* =============================================
   CARD GRID — Atrativos & Roteiros
   (Design catálogo premium)
   ============================================= */
.asc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 640px) {
    .asc-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (min-width: 960px) {
    .asc-grid { grid-template-columns: repeat(3, 1fr); }
}

.asc-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all .22s ease;
    display: flex;
    flex-direction: column;
}
.asc-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.asc-card:active { transform: scale(0.99); }

.asc-card-img {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    background-size: cover;
    background-position: center;
    position: relative;
}
.asc-card-img.placeholder::after {
    content: "📍";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    opacity: 0.3;
}
/* Flag de alerta no card-img */
.asc-card-alert-flag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f97316;
    color: #fff;
    font-size: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(249,115,22,0.5);
    border: 2px solid #fff;
}

.asc-card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.asc-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--text);
}
.asc-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 500;
}
.asc-card-meta span { display: inline-flex; align-items: center; gap: 3px; }

.asc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}
.asc-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1px solid transparent;
}
.asc-badge--gratuito { background: #dcfce7; color: #15803d; }
.asc-badge--padrao   { background: #eff6ff; color: #1d4ed8; }
.asc-badge--medio    { background: #fef9c3; color: #a16207; }
.asc-badge--alto     { background: #fee2e2; color: #b91c1c; }
.asc-badge--tempo    { background: var(--border-soft); color: var(--text); }
.asc-badge--brinde   { background: #fef3c7; color: #92400e; }
.asc-badge--evento   { background: #fce7f3; color: #be185d; }
.asc-badge--emissivo { background: #fee2e2; color: #b91c1c; }
.asc-badge--ganho    { background: #dcfce7; color: #15803d; }
.asc-badge--alerta   { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }

/* =============================================
   DETALHE DO ATRATIVO / ROTEIRO
   ============================================= */
.asc-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--p-light);
    border: 1px solid #bfdbfe;
    color: var(--p);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    margin-bottom: 16px;
    cursor: pointer;
    border-radius: 999px;
    transition: all .15s;
    font-family: inherit;
}
.asc-back:hover { background: var(--p); color: #fff; }

.asc-detail-cover {
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.asc-detail-header { margin-bottom: 20px; }
.asc-detail-header h1 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.asc-detail-header .meta {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
}

/* Blocos modulares */
.asc-block {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}
.asc-block h3 {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.asc-block h3 .ico { font-size: 16px; }

.asc-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-soft);
    font-size: 14px;
}
.asc-info-row:last-child { border-bottom: 0; }
.asc-info-row .k { color: var(--muted); font-weight: 500; flex-shrink: 0; }
.asc-info-row .v { color: var(--text); text-align: right; font-weight: 600; word-break: break-word; }

/* CTAs */
.asc-ctas {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
@media (min-width: 500px) {
    .asc-ctas { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
.asc-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    transition: all .15s;
    border: 0;
    cursor: pointer;
    color: #fff;
    box-shadow: var(--shadow-sm);
    letter-spacing: -0.01em;
}
.asc-cta:active { transform: scale(0.97); }
.asc-cta--wpp  { background: #25d366; box-shadow: 0 4px 12px rgba(37,211,102,0.3); }
.asc-cta--wpp:hover { background: #1ebe57; }
.asc-cta--maps { background: #4285f4; box-shadow: 0 4px 12px rgba(66,133,244,0.3); }
.asc-cta--maps:hover { background: #3273dc; }
.asc-cta--ig   { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }

/* História narrativa */
.asc-story {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text);
}
.asc-story p { margin: 0 0 14px; }
.asc-story strong { color: var(--p-dark); font-weight: 700; }
.asc-story h1,.asc-story h2,.asc-story h3,.asc-story h4 {
    margin: 20px 0 10px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.asc-story ul, .asc-story ol { padding-left: 22px; margin: 0 0 14px; }

/* Alertas inline */
.asc-alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    box-shadow: var(--shadow-sm);
}
.asc-alert--warning { background: #fffbeb; color: #78350f; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; }
.asc-alert--info    { background: #eff6ff; color: #1e3a8a; border: 1px solid #bfdbfe; border-left: 4px solid #3b82f6; }
.asc-alert--danger  { background: #fff1f2; color: #991b1b; border: 1px solid #fecaca; border-left: 4px solid #ef4444; }

/* =============================================
   ROTEIRO — Timeline + Motor Financeiro
   ============================================= */
.asc-timeline {
    position: relative;
    padding-left: 34px;
}
.asc-timeline::before {
    content: "";
    position: absolute;
    left: 15px; top: 18px; bottom: 18px;
    width: 2px;
    background: linear-gradient(to bottom, var(--p), var(--accent));
    border-radius: 2px;
    opacity: 0.3;
}
.asc-parada {
    position: relative;
    margin-bottom: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all .2s;
}
.asc-parada:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.asc-parada::before {
    content: attr(data-num);
    position: absolute;
    left: -34px; top: 16px;
    width: 32px; height: 32px;
    background: var(--p);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(37,99,235,0.35);
}
.asc-parada-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; letter-spacing: -0.01em; }
.asc-parada-meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}
.asc-parada-tip {
    background: #fef9c3;
    border-left: 3px solid var(--amber);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #78350f;
    margin-top: 6px;
}
.asc-deslocamento {
    font-size: 12px;
    color: var(--muted);
    margin: 6px 0 6px 8px;
    padding-left: 20px;
    position: relative;
    font-style: italic;
}
.asc-deslocamento::before {
    content: "🚐";
    position: absolute;
    left: 0; top: 0;
}

/* Motor Financeiro STICKY */
.asc-money {
    position: sticky;
    bottom: 88px;
    margin: 24px 0 16px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #fff;
    border-radius: var(--radius);
    padding: 18px 20px;
    box-shadow: 0 12px 32px rgba(16,185,129,0.3);
    z-index: 10;
}
.asc-money-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.asc-money-head .t {
    font-size: 13px; opacity: 0.85;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.asc-money-head .pax {
    font-size: 12px;
    background: rgba(255,255,255,0.2);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
}
.asc-money-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 5px 0;
    opacity: 0.95;
}
.asc-money-row .sub { font-size: 11px; opacity: 0.75; font-weight: 400; }
.asc-money-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.25);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.asc-money-total .val { font-size: 24px; }

/* =============================================
   TABELA DE VALORES
   ============================================= */
.asc-tabela-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
    line-height: 1.7;
    font-size: 15px;
}
.asc-tabela-wrap h1,.asc-tabela-wrap h2,.asc-tabela-wrap h3 {
    margin: 18px 0 10px; font-weight: 700; letter-spacing: -0.01em;
}
.asc-tabela-wrap h1 { font-size: 22px; }
.asc-tabela-wrap h2 { font-size: 18px; color: var(--p-dark); }
.asc-tabela-wrap h3 { font-size: 16px; }
.asc-tabela-wrap table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.asc-tabela-wrap th,.asc-tabela-wrap td {
    padding: 10px 12px; text-align: left;
    border-bottom: 1px solid var(--border);
}
.asc-tabela-wrap th { background: var(--bg); font-weight: 600; font-size: 13px; }
.asc-tabela-wrap ul,.asc-tabela-wrap ol { padding-left: 22px; }

.asc-tabela-hero {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff;
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 18px;
    box-shadow: var(--shadow);
}
.asc-tabela-hero .diaria-label {
    font-size: 12px; opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.asc-tabela-hero .diaria-valor {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* =============================================
   LOADING & ESTADOS
   ============================================= */
.asc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 24px;
    color: var(--muted);
    font-size: 14px;
    gap: 10px;
    font-weight: 500;
}
.asc-loading::before {
    content: "";
    width: 18px; height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--p);
    border-radius: 50%;
    animation: ascSpin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes ascSpin { to { transform: rotate(360deg); } }

.asc-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--muted);
}
.asc-empty .ico { font-size: 48px; opacity: 0.3; margin-bottom: 10px; }

/* =============================================
   ACCESS DENIED
   ============================================= */
.asc-access-denied {
    max-width: 520px;
    margin: 48px auto;
    padding: 40px 28px;
    text-align: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.asc-access-denied .ico { font-size: 56px; margin-bottom: 14px; }
.asc-access-denied h2 {
    margin: 0 0 10px;
    font-size: 22px; font-weight: 800;
    letter-spacing: -0.02em;
}
.asc-access-denied p {
    color: var(--muted); margin: 0 0 20px;
    font-size: 15px; line-height: 1.6;
}
.asc-access-denied a {
    display: inline-block;
    background: var(--p);
    color: #fff;
    padding: 12px 24px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all .15s;
}
.asc-access-denied a:hover { background: var(--p-dark); transform: translateY(-1px); }

/* Auditoria rodapé */
.asc-audit-footer {
    margin-top: 16px;
    padding: 12px 14px;
    font-size: 11px;
    color: var(--soft);
    background: var(--border-soft);
    border-radius: 10px;
    text-align: center;
}

/* =============================================
   ACCESS DENIED — DOIS BOTÕES
   ============================================= */
.asc-access-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
}
@media (min-width: 480px) {
    .asc-access-actions { flex-direction: row; justify-content: center; }
}
.asc-access-actions .btn-primary,
.asc-access-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all .15s;
    min-width: 180px;
    font-family: inherit;
}
.asc-access-actions .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff !important; border: 0;
    box-shadow: 0 6px 16px rgba(29,78,216,0.35);
}
.asc-access-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(29,78,216,0.45);
}
.asc-access-actions .btn-secondary {
    background: #f97316;
    color: #fff !important; border: 0;
    box-shadow: 0 6px 16px rgba(249,115,22,0.32);
}
.asc-access-actions .btn-secondary:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(249,115,22,0.4);
}

.asc-access-note {
    margin-top: 18px !important;
    padding: 12px 14px;
    background: var(--border-soft);
    border-radius: 10px;
    font-size: 13px !important;
    color: var(--muted) !important;
    line-height: 1.5;
}

/* =============================================
   FORMULÁRIO DE CADASTRO DE GUIA
   ============================================= */
.asc-register-wrap {
    max-width: 680px;
    margin: 24px auto 40px;
    padding: 0 16px;
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text);
}
.asc-register-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 28px 20px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(29,78,216,0.25);
}
.asc-register-header .ico { font-size: 42px; margin-bottom: 10px; }
.asc-register-header h2 {
    margin: 0 0 8px; font-size: 24px;
    font-weight: 800; letter-spacing: -0.02em; color: #fff;
}
.asc-register-header p {
    margin: 0; opacity: 0.9; font-size: 14px; line-height: 1.5; color: #fff;
}
.asc-reg-errors {
    background: #fee2e2; border: 1px solid #fecaca;
    color: #991b1b; padding: 14px 18px;
    border-radius: 12px; margin-bottom: 18px; font-size: 14px;
}
.asc-reg-errors strong { display: block; margin-bottom: 6px; }
.asc-reg-errors ul { margin: 0; padding-left: 22px; }
.asc-reg-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px; padding: 24px 22px;
    box-shadow: var(--shadow);
}
.asc-reg-section { margin-bottom: 22px; }
.asc-reg-section h3 {
    margin: 0 0 14px; font-size: 13px; font-weight: 800;
    color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
    padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.asc-reg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .asc-reg-grid { grid-template-columns: 1fr; } }
.asc-reg-field { display: flex; flex-direction: column; gap: 6px; }
.asc-reg-field.asc-reg-full { grid-column: 1 / -1; }
.asc-reg-field label { font-size: 13px; font-weight: 700; color: var(--text); }
.asc-reg-field input {
    width: 100%; padding: 12px 14px;
    border: 1px solid #cbd5e1; border-radius: 10px;
    font-size: 15px; font-family: inherit;
    background: #f8fafc; transition: all .15s;
    color: var(--text); box-sizing: border-box;
}
.asc-reg-field input:focus {
    background: #fff; border-color: var(--p); outline: 0;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.asc-reg-check {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 14px 16px;
    background: #eff6ff; border: 1px solid #bfdbfe;
    border-radius: 10px; font-size: 13px; color: var(--text);
    line-height: 1.5; margin: 16px 0 20px; cursor: pointer;
}
.asc-reg-check input { margin-top: 2px; flex-shrink: 0; }
.asc-reg-actions {
    display: flex; justify-content: space-between;
    align-items: center; gap: 10px;
    padding-top: 16px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.asc-reg-cancel {
    color: var(--muted); text-decoration: none;
    font-size: 14px; padding: 10px 14px; border-radius: 8px; transition: all .15s;
}
.asc-reg-cancel:hover { background: var(--border-soft); color: var(--text); }
.asc-reg-submit {
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: #fff; border: 0; padding: 14px 28px;
    border-radius: 10px; font-size: 15px; font-weight: 800;
    cursor: pointer; transition: all .15s;
    box-shadow: 0 6px 16px rgba(22,163,74,0.3);
    flex: 1 1 auto; max-width: 300px; font-family: inherit;
}
.asc-reg-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,163,74,0.4); }
.asc-reg-submit:active { transform: translateY(0); }

/* =============================================
   RESPONSIVE — Desktop
   ============================================= */
@media (min-width: 768px) {
    #asc-app { padding-bottom: 40px; }
    .asc-tabs {
        position: sticky;
        top: 68px;
        bottom: auto;
        padding: 10px;
        max-width: 960px;
        margin: 12px auto 0;
        border-radius: 14px;
        border: 1px solid var(--border);
        box-shadow: var(--shadow-sm);
    }
    .asc-tab {
        flex-direction: row;
        justify-content: center;
        gap: 6px;
        font-size: 14px;
    }
    .asc-tab-icon { font-size: 18px; }
    .asc-tab.is-active {
        background: var(--p-light);
        color: var(--p);
        border-radius: 8px;
    }
    .asc-tab.is-active .asc-tab-icon { transform: none; }
}
