/* ===== Dashboard Usuário - Layout com sidebar minimalista ===== */
.dashboard-user-page {
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-dark: #1e293b;
    --color-gray: #64748b;
    --color-success: #22c55e;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --radius-card: 12px;
    --radius-btn: 10px;
}

.dash-app {
    min-height: 100vh;
    background: var(--color-bg-alt);
    padding-top: 56px;
}

/* ===== Cabeçalho (desktop: logo + nav dinâmica) ===== */
.dash-header-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}

.dash-header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary) 0%, #1d4ed8 100%);
    opacity: 0.6;
}

.dash-header-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease, color 0.2s;
}

.dash-header-logo:hover {
    transform: scale(1.02);
    color: var(--color-dark);
}

.dash-header-logo .logo-dot {
    color: #e63946;
}

/* Nav desktop: limpa e organizada (overflow visible para o dropdown Ferramentas aparecer) */
.dash-nav-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    overflow: visible;
    padding: 4px 0;
    margin: 0 16px;
    min-width: 0;
}

.dash-nav-desktop::-webkit-scrollbar {
    display: none;
}

.dash-nav-desktop .dash-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
    position: relative;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.dash-nav-desktop .dash-nav-item:hover {
    background: #f1f5f9;
    color: var(--color-dark);
}

.dash-nav-desktop .dash-nav-item.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--color-primary);
    font-weight: 600;
}

.dash-nav-desktop .dash-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--color-primary);
}

.dash-nav-pill {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 4px;
    letter-spacing: 0.01em;
}

.dash-nav-pill-free { background: rgba(34, 197, 94, 0.15); color: #15803d; }
.dash-nav-pill-price { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }

.dash-nav-item-featured {
    background: rgba(37, 99, 235, 0.06);
    color: #1d4ed8;
}

.dash-nav-item-featured:hover {
    background: rgba(37, 99, 235, 0.12);
    color: #1e40af;
}

.dash-nav-item-featured.active {
    background: rgba(37, 99, 235, 0.12);
    color: #1e40af;
}

.dash-nav-item-featured.active::after {
    background: var(--color-primary);
    width: 20px;
}

/* Dropdown Ferramentas */
.dash-nav-dropdown-wrap {
    position: relative;
    overflow: visible;
}

.dash-nav-dropdown-btn {
    background: none;
}

.dash-nav-chevron {
    font-size: 10px;
    opacity: 0.8;
    margin-left: 2px;
}

.dash-nav-dropdown-wrap.open .dash-nav-dropdown-btn {
    background: #f1f5f9;
    color: var(--color-dark);
}

.dash-nav-dropdown-wrap.open .dash-nav-chevron {
    transform: rotate(180deg);
}

.dash-nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    padding: 6px 0;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.dash-nav-dropdown-wrap.open .dash-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dash-nav-dropdown-item {
    display: block;
    padding: 10px 16px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.dash-nav-dropdown-item:hover {
    background: #f8fafc;
    color: var(--color-primary);
}

.dash-nav-dropdown-item-external {
    color: #64748b;
}

/* Ações: créditos + Admin + Sair (discretas) */
.dash-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding-left: 16px;
    border-left: 1px solid #e2e8f0;
}

.dash-credits-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.dash-credits-badge:hover {
    background: rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
}

.dash-header-action-link {
    padding: 6px 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.dash-header-action-link:hover {
    color: var(--color-primary);
    background: #f1f5f9;
}

/* Compatibilidade: drawer ainda usa .dash-credits-btn */
.dash-credits-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-credits-btn:hover {
    color: #fff;
    transform: translateY(-1px);
}

.dash-header-link {
    padding: 8px 14px;
    color: #64748b;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.dash-header-link:hover {
    color: var(--color-primary);
    background: #f1f5f9;
}

.dash-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: none;
    background: #f1f5f9;
    border-radius: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    flex-shrink: 0;
}

.dash-menu-toggle span {
    width: 18px;
    height: 2px;
    background: #334155;
    border-radius: 1px;
}

/* Drawer mobile (escondido no desktop) */
.dash-mobile-drawer {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 150;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.25s ease, visibility 0.25s;
    visibility: hidden;
}

.dash-mobile-drawer.open {
    transform: translateX(0);
    visibility: visible;
}

.dash-drawer-inner {
    padding: 20px 16px 32px;
}

.dash-nav-mobile .dash-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    transition: background 0.15s, color 0.15s;
}

.dash-nav-mobile .dash-nav-item:hover {
    background: #f1f5f9;
}

.dash-nav-mobile .dash-nav-item.active {
    background: rgba(37, 99, 235, 0.08);
    color: var(--color-primary);
}

.dash-nav-mobile .dash-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    background: #e2e8f0;
    color: #64748b;
}

.dash-nav-mobile .dash-nav-item.active .dash-nav-icon {
    background: rgba(37, 99, 235, 0.15);
    color: var(--color-primary);
}

.dash-nav-icon-green { background: rgba(34, 197, 94, 0.15); color: #15803d; }
.dash-nav-icon-blue { background: rgba(37, 99, 235, 0.15); color: #2563eb; }
.dash-nav-icon-purple { background: rgba(124, 58, 237, 0.15); color: #6d28d9; }
.dash-nav-icon-amber { background: rgba(37, 99, 235, 0.15); color: #1d4ed8; }
.dash-nav-icon-cyan { background: rgba(6, 182, 212, 0.15); color: #0891b2; }
.dash-nav-icon-pink { background: rgba(236, 72, 153, 0.15); color: #be185d; }
.dash-nav-icon-in { background: rgba(10, 102, 194, 0.15); color: #0a66c2; font-size: 10px; }

.dash-drawer-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dash-drawer-footer .dash-credits-btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
}

.dash-drawer-link {
    padding: 12px 16px;
    color: #64748b;
    font-size: 15px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.dash-drawer-link:hover {
    background: #f1f5f9;
    color: var(--color-primary);
}

.dash-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 140;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.dash-overlay.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* Main content */
.dash-main {
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    padding: 24px 20px 80px;
    max-width: 720px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .dash-main {
        max-width: 860px;
        padding-left: 32px;
        padding-right: 32px;
    }
}

.dash-main-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.dash-header-logout {
    margin-left: auto;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.dash-header-logout:hover {
    background: #f1f5f9;
    color: #2563eb;
}

.dash-back {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.dash-back:hover {
    text-decoration: underline;
}

.dash-page-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
}

.dashboard-view {
    display: none;
    flex: 1;
}

.dashboard-view.active {
    display: block;
    animation: viewFadeIn 0.2s ease;
}

@keyframes viewFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Home - minimal */
.dash-home {
    padding: 0;
}

.dash-home-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.dash-greeting {
    font-size: 1.1rem;
    color: var(--color-dark);
    margin: 0;
}

.dash-urgency-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: #dbeafe;
    border-radius: 8px;
    font-size: 13px;
    color: #1e40af;
}

.dash-urgency-banner a {
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
}

.dash-urgency-banner a:hover {
    text-decoration: underline;
}

.dash-block {
    margin-bottom: 32px;
}

/* Hero: Enviar currículo em destaque */
.dash-hero-send {
    margin-bottom: 28px;
}

.dash-hero-send-inner {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
    border: 1px solid rgba(37, 99, 235, 0.35);
    border-radius: var(--radius-card);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.15);
}

.dash-hero-send-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1e40af;
    background: rgba(255,255,255,0.8);
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.dash-hero-send-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #1e3a8a;
    margin: 0 0 10px 0;
    line-height: 1.25;
}

.dash-hero-send-desc {
    font-size: 0.95rem;
    color: #1e40af;
    line-height: 1.5;
    margin: 0 0 18px 0;
}

.dash-hero-send-cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.dash-hero-send-cta:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    color: #fff;
    transform: translateY(-1px);
}

/* Como funciona */
.dash-block-how .dash-how-text {
    font-size: 0.95rem;
    color: var(--color-gray);
    line-height: 1.6;
    margin: 0;
}

/* Grid de ferramentas */
.dash-tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.dash-tool-card {
    display: block;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-card);
    padding: 18px;
    text-decoration: none;
    color: var(--color-dark);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.dash-tool-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.dash-tool-card-send {
    border-color: rgba(37, 99, 235, 0.4);
    background: linear-gradient(180deg, #eff6ff 0%, #fff 100%);
}

.dash-tool-card-send:hover {
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.12);
}

.dash-tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.dash-tool-green { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.dash-tool-blue { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.dash-tool-purple { background: rgba(124, 58, 237, 0.12); color: #6d28d9; }
.dash-tool-amber { background: rgba(37, 99, 235, 0.2); color: #1d4ed8; }
.dash-tool-cyan { background: rgba(6, 182, 212, 0.12); color: #0891b2; }
.dash-tool-pink { background: rgba(236, 72, 153, 0.12); color: #be185d; }
.dash-tool-in { background: rgba(10, 102, 194, 0.12); color: #0a66c2; font-size: 12px; }

.dash-tool-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.dash-tool-card p {
    font-size: 0.875rem;
    color: var(--color-gray);
    line-height: 1.45;
    margin: 0 0 10px 0;
}

.dash-tool-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    background: #e2e8f0;
    color: #64748b;
}

.dash-tool-free { background: rgba(34, 197, 94, 0.15); color: #15803d; }
.dash-tool-price { background: rgba(37, 99, 235, 0.15); color: #1d4ed8; }

@media (min-width: 640px) {
    .dash-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dash-tool-card-send {
        grid-column: 1 / -1;
    }
}

@media (min-width: 900px) {
    .dash-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .dash-tool-card-send {
        grid-column: 1 / -1;
    }
    .dash-hero-send-inner {
        padding: 28px 32px;
    }
    .dash-hero-send-title {
        font-size: 1.5rem;
    }
}

.dash-block-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 0 0 12px 0;
}

.dash-action-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-action-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: var(--color-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: border-color 0.2s, background 0.2s;
}

.dash-action-item:hover {
    border-color: #cbd5e1;
    background: #fafbfc;
}

.dash-action-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.dash-action-green { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.dash-action-blue { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.dash-action-purple { background: rgba(124, 58, 237, 0.12); color: #6d28d9; }
.dash-action-amber { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }
.dash-action-cyan { background: rgba(6, 182, 212, 0.12); color: #0891b2; }
.dash-action-pink { background: rgba(236, 72, 153, 0.12); color: #be185d; }
.dash-action-in { background: rgba(10, 102, 194, 0.12); color: #0a66c2; font-size: 11px; }

.dash-action-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    margin-left: auto;
}

.dash-action-tag { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.dash-action-price { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; }

.dash-muted,
.text-muted {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

.dash-app .mt-2 { margin-top: 8px; }
.dash-app .mt-3 { margin-top: 12px; }
.dash-app .mt-4 { margin-top: 16px; }
.dash-app .form-control { width: 100%; box-sizing: border-box; }
.dash-app .w-100 { width: 100%; }

.dash-floating-cta {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}

.dash-floating-cta-link {
    display: inline-block;
    padding: 14px 24px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 10px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.dash-floating-cta-link:hover {
    color: #fff;
    background: var(--color-primary-hover);
}

/* Mobile: cabeçalho com menu, drawer para nav */
@media (max-width: 900px) {
    .dash-nav-desktop {
        display: none;
    }
    .dash-header-actions {
        display: none;
    }
    .dash-menu-toggle {
        display: flex;
        margin-left: auto;
    }
    .dash-mobile-drawer {
        display: block;
    }
    body.dash-drawer-open {
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    .dash-app {
        padding-top: 56px;
    }
    .dash-header-top {
        padding: 0 12px;
    }
    .dash-main {
        padding: 20px 16px 80px;
    }
    .dash-home-head {
        margin-bottom: 20px;
    }
    .dash-action-item {
        padding: 12px 14px;
        font-size: 14px;
    }
    .dash-action-icon {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Meus currículos */
.meus-cvs-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cv-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-card);
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cv-item-card:hover {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
}
.cv-item-card-body { flex: 1; min-width: 0; }
.cv-item-title { font-size: 1rem; font-weight: 700; color: #1e293b; margin: 0 0 4px 0; }
.cv-item-meta { font-size: 12px; color: #64748b; margin: 0 0 6px 0; }
.cv-item-preview { font-size: 13px; color: #64748b; margin: 0; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-item-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-cv-action, .cv-item-actions button {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-cv-action:hover, .cv-item-actions button:hover { background: #1d4ed8; }
.cv-item-actions button.btn-cv-copy { background: #64748b; }
.cv-item-actions button.btn-cv-copy:hover { background: #475569; }

.dash-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dash-card {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    text-decoration: none;
    color: var(--color-dark);
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dash-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.dash-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.dash-card-icon-green { background: rgba(34, 197, 94, 0.15); }
.dash-card-icon-blue { background: rgba(37, 99, 235, 0.15); }
.dash-card-icon-purple { background: rgba(168, 85, 247, 0.15); }
.dash-card-icon-cyan { background: rgba(14, 165, 233, 0.15); }
.dash-card-icon-pink { background: rgba(236, 72, 153, 0.15); }
.dash-card-icon-amber { background: rgba(37, 99, 235, 0.15); }
.dash-card-icon-linkedin { background: rgba(10, 102, 194, 0.15); }

.dash-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.dash-card-desc {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}

.dash-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.12);
    color: var(--color-primary);
}

.dash-card-badge-free {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
}

.dash-card-badge-price {
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
}

/* Panels - card style */
.dash-panels {
    max-width: 720px;
}

.dash-panel-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.dash-panel-view .action-panel-card {
    display: block;
    box-shadow: none;
    border: none;
    padding: 0;
}

.dash-panel-view .action-panel-card .panel-header {
    margin-bottom: 28px;
}

.dash-panel-view .action-panel-card .panel-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.dash-panel-view .action-panel-card .panel-header p {
    font-size: 15px;
    color: var(--color-gray);
    line-height: 1.5;
}

body.modal-open {
    overflow: hidden;
}

.dashboard-header {
    box-shadow: var(--shadow-sm);
}

/* Header compacto - menor, sem "Comprar créditos" */
.dashboard-header-compact {
    padding: 10px 0;
}

.dashboard-header-compact .header-content {
    max-width: 1100px;
}

.dashboard-header-compact .logo-compact {
    font-size: 18px;
}

.dashboard-header-compact .nav-compact {
    gap: 12px;
}

.dashboard-header-compact .credits-badge {
    padding: 6px 12px;
    font-size: 13px;
}

.dashboard-header-compact .credits-add {
    font-size: 11px;
}

.dashboard-header-compact .nav-link {
    font-size: 14px;
}

.dashboard-header .credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.2s;
}

.dashboard-header .credits-badge:hover {
    background: var(--color-primary-hover);
}

.credits-add {
    font-size: 12px;
    opacity: 0.9;
}

/* Hero Section - dinâmico */
.dashboard-hero-section {
    padding: 32px 0 28px;
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, #fff 100%);
}

.dashboard-hero-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 6px;
    text-align: center;
}

.dashboard-hero-desc {
    font-size: 14px;
    color: var(--color-gray);
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
}

/* Action Cards - compactos, ícones pequenos em cima */
.dashboard-actions {
    padding: 0 0 60px;
}

.action-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .action-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .action-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 640px) {
    .dash-header-inner {
        padding: 12px 16px;
    }

    .dash-progress-wrap {
        padding: 0 16px 0;
    }

    .dash-content {
        padding: 24px 16px 48px;
    }

    .dash-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dash-card {
        padding: 24px 20px;
    }

    .dash-panel-card {
        padding: 24px 20px;
    }

    .dash-home-title {
        font-size: 1.5rem;
    }

    .dash-home-subtitle {
        font-size: 15px;
        margin-bottom: 32px;
    }
}

/* ===== MOBILE FIRST - Maior público = mobile ===== */
@media (max-width: 768px) {
    .dashboard-hero-badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    .dashboard-section-title-alt {
        margin-top: 32px;
        padding-top: 24px;
    }

    .dashboard-header .header-content {
        flex-wrap: wrap;
        gap: 12px;
    }

    .dashboard-header .nav {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: flex-end;
    }

    .dashboard-header .credits-badge {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 44px;
        min-width: 44px;
    }

    .dashboard-hero-section {
        padding: 24px 0 20px;
    }

    .dashboard-hero-title {
        font-size: 1.35rem;
    }

    .dashboard-hero-desc {
        font-size: 13px;
    }

    .action-cards-grid {
        gap: 12px;
        margin-bottom: 24px;
        padding: 0 4px;
    }

    .action-card-item {
        padding: 18px;
        min-height: 120px;
        -webkit-tap-highlight-color: transparent;
    }

    .action-card-item:active {
        transform: scale(0.98);
    }

    .action-card-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .action-panel-card {
        padding: 20px 16px;
        margin: 0 -4px;
        border-radius: 12px 12px 0 0;
    }

    .panel-header h2 {
        font-size: 1.25rem;
    }

    .panel-header p {
        font-size: 14px;
    }

    .panel-form textarea,
    .panel-form input,
    .panel-form select {
        padding: 16px;
        font-size: 16px;
        min-height: 48px;
    }

    .file-upload-box {
        padding: 28px 20px;
        min-height: 80px;
    }

    .btn, .btn-lg {
        min-height: 48px;
        padding: 14px 24px;
        font-size: 16px;
    }

    .ats-result-box {
        flex-direction: column;
        padding: 20px;
    }

    .ats-score {
        font-size: 40px;
    }

    .result-text-box {
        max-height: 300px;
    }

    .companies-list {
        max-height: 240px;
    }

    .dashboard-user-page .modal-content {
        margin: 16px;
        max-height: 85vh;
    }

    .dashboard-user-page .modal-content:not(.modal-credits) {
        padding: 24px 20px;
    }

    .package-card-inner {
        padding: 18px;
        min-height: 48px;
    }

    .payment-option {
        min-height: 48px;
    }

    .location-detect-loading {
        padding: 14px 16px;
    }

    .send-price-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 380px) {
    .action-card-item h3 {
        font-size: 13px;
    }

    .action-card-item p {
        font-size: 11px;
    }
}

/* Modal créditos - animações premium */
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.dashboard-user-page .modal-overlay.show .modal-content .modal-credits-header {
    animation: modalSlideUp 0.35s ease-out;
}

.dashboard-user-page .modal-overlay.show .modal-content form .modal-section {
    animation: modalSlideUp 0.35s ease-out backwards;
}

.dashboard-user-page .modal-overlay.show .modal-content form .modal-section:nth-child(1) { animation-delay: 0.05s; }
.dashboard-user-page .modal-overlay.show .modal-content form .modal-section:nth-child(2) { animation-delay: 0.1s; }
.dashboard-user-page .modal-overlay.show .modal-content form .modal-section:nth-child(3) { animation-delay: 0.15s; }
.dashboard-user-page .modal-overlay.show .modal-content form .modal-section:nth-child(4) { animation-delay: 0.2s; }

.action-card-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.action-card-item:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
    transform: translateY(-2px);
}

.action-card-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.action-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.action-card-icon svg {
    width: 20px;
    height: 20px;
}

.action-icon-analyze {
    background: rgba(34, 197, 94, 0.15);
    color: var(--color-success);
}

.action-icon-generate {
    background: rgba(37, 99, 235, 0.15);
    color: var(--color-primary);
}

.action-icon-improve {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.action-icon-send {
    background: rgba(14, 165, 233, 0.15);
    color: #0ea5e9;
}

.action-card-item h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.action-card-item p {
    font-size: 12px;
    color: var(--color-gray);
    margin-bottom: 8px;
    line-height: 1.4;
}

.action-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.action-badge-free {
    background: rgba(34, 197, 94, 0.2);
    color: var(--color-success);
}

.action-badge-credit {
    background: rgba(37, 99, 235, 0.2);
    color: var(--color-primary);
}

.action-badge-send {
    background: rgba(14, 165, 233, 0.2);
    color: #0ea5e9;
}

.action-badge-price {
    background: rgba(37, 99, 235, 0.2);
    color: #1d4ed8;
}

.action-icon-coverletter {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
}

.action-icon-keywords {
    background: rgba(37, 99, 235, 0.15);
    color: #2563eb;
}

.action-icon-linkedin {
    background: rgba(10, 102, 194, 0.15);
    color: #0a66c2;
}

/* Seções do dashboard */
.dashboard-hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.dashboard-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 4px;
    margin-top: 28px;
}

.dashboard-section-title:first-of-type {
    margin-top: 0;
}

.dashboard-section-title-alt {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e2e8f0;
}

.dashboard-section-desc {
    font-size: 14px;
    color: var(--color-gray);
    margin-bottom: 20px;
}

.action-cards-grid-extras {
    margin-bottom: 32px;
}

/* Panels */
.action-panels-wrapper {
    position: relative;
}

.action-panel-card {
    display: none;
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid #e2e8f0;
}

.action-panel-card.active {
    display: block;
    animation: panelFadeIn 0.3s ease;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-header {
    margin-bottom: 28px;
}

.panel-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.panel-header p {
    font-size: 15px;
    color: var(--color-gray);
}

.panel-form .form-group {
    margin-bottom: 24px;
}

.panel-form .btn-primary.btn-lg {
    width: 100%;
    margin-top: 8px;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
}

.panel-form .form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-dark);
}

.panel-form textarea,
.panel-form input,
.panel-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
}

.panel-form textarea::placeholder,
.panel-form input::placeholder {
    color: #94a3b8;
}

.panel-form textarea:focus,
.panel-form input:focus,
.panel-form select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.panel-form textarea {
    min-height: 100px;
    resize: vertical;
}

/* File upload */
.file-upload-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px dashed #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--color-gray);
    transition: all 0.2s;
    cursor: pointer;
}

.file-upload-box:hover,
.file-upload-box.dragover {
    border-color: var(--color-primary);
    background: rgba(37, 99, 235, 0.04);
    color: var(--color-primary);
}

.file-upload-box input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-hint {
    font-size: 13px;
    color: var(--color-gray);
    margin: 8px 0 4px;
}

/* Location */
.location-detect-area {
    margin-bottom: 16px;
}

.location-detect-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--color-bg-alt);
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-gray);
}


.location-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.location-detect-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.location-detect-result .location-status {
    font-size: 14px;
    color: var(--color-success);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

.location-detect-error {
    padding: 12px 16px;
    background: #fef2f2;
    border-radius: 8px;
    margin-bottom: 12px;
}

.location-error-msg {
    font-size: 14px;
    color: #dc2626;
}

.send-price-info {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.send-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.send-price-desc {
    font-size: 14px;
    color: var(--color-gray);
}

.send-payment-wait {
    font-size: 14px;
    color: var(--color-gray);
    margin: 16px 0;
}

.location-fields {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .location-fields {
        grid-template-columns: 1fr;
    }
}

/* Results */
.panel-result {
    display: none;
    margin-top: 24px;
}

.panel-result.show {
    display: block;
}

.ats-result-box {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px;
    background: rgba(37, 99, 235, 0.06);
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.ats-score {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-primary);
}

.ats-result-box strong {
    display: block;
    color: var(--color-dark);
    margin-bottom: 4px;
}

.ats-result-box p {
    font-size: 14px;
    color: var(--color-gray);
}

.ats-tips-list {
    list-style: none;
}

.ats-tips-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
    color: var(--color-dark);
}

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

.ats-tips-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
}

.result-text-box {
    background: var(--color-bg-alt);
    padding: 20px;
    border-radius: 10px;
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.7;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
}

/* Send success */
.send-success-box {
    text-align: center;
    padding: 32px;
}

.send-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-success);
    color: white;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.send-success-box h4 {
    font-size: 1.25rem;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.send-success-box p {
    color: var(--color-gray);
    margin-bottom: 20px;
}

.companies-list {
    text-align: left;
    background: var(--color-bg-alt);
    padding: 20px;
    border-radius: 10px;
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 20px;
    font-size: 13px;
}

.companies-list ul {
    list-style: none;
}

.companies-list li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-dark);
}

.companies-list li::before {
    content: '✓';
    color: var(--color-success);
    font-weight: 700;
}

/* Modal (reuse from dashboard.css if needed, or minimal) */
.dashboard-user-page .modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dashboard-user-page .modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.dashboard-user-page .modal-overlay.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.dashboard-user-page .modal-content {
    background: white;
    border-radius: 20px;
    padding: 0;
    max-width: 440px;
    width: 100%;
}

.dashboard-user-page .modal-content.modal-credits-compact {
    max-width: 380px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 32px 64px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.05);
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.dashboard-user-page .modal-content.modal-credits {
    overflow: visible;
}

.dashboard-user-page .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.dashboard-user-page .modal-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Modal Créditos - Premium */
.modal-credits-header {
    padding: 28px 28px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.modal-credits-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.modal-credits-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* Modal compacto */
.modal-credits-compact .modal-credits-header {
    padding: 20px 20px 14px;
}

.modal-credits-compact .modal-credits-header h2 {
    font-size: 1.25rem;
}

.modal-credits-compact .modal-credits-subtitle {
    font-size: 13px;
}

.modal-credits-compact form {
    padding: 16px 20px 20px;
}

.modal-credits-compact .modal-section {
    margin-bottom: 16px;
}

.modal-credits-compact .modal-section:last-of-type {
    margin-bottom: 14px;
}

.modal-credits-compact .modal-section-label {
    font-size: 10px;
    margin-bottom: 8px;
}

.modal-credits-compact .package-stack {
    gap: 8px;
}

.modal-credits-compact .package-card-inner {
    padding: 12px 16px;
}

.modal-credits-compact .package-qty {
    font-size: 1.35rem;
}

.modal-credits-compact .package-title {
    font-size: 0.9rem;
}

.modal-credits-compact .package-desc {
    font-size: 12px;
}

.modal-credits-compact .package-price {
    font-size: 1.1rem;
}

.modal-credits-compact .payment-option {
    padding: 12px;
}

.modal-credits-compact .payment-icon {
    font-size: 0.9rem;
}

.modal-credits-compact .payment-label {
    font-size: 10px;
}

.modal-credits-compact .modal-input {
    padding: 12px 14px;
    font-size: 15px;
}

.modal-credits-compact .modal-submit-btn {
    padding: 14px 20px;
    font-size: 15px;
}

.modal-credits form {
    padding: 24px 28px 28px;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section:last-of-type {
    margin-bottom: 20px;
}

.modal-section-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 12px;
}

.modal-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s;
}

.modal-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.modal-input::placeholder {
    color: #94a3b8;
}

/* Package cards - Premium & Dynamic */
.package-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.package-card {
    cursor: pointer;
}

.package-card input {
    position: absolute;
    opacity: 0;
}

.package-card-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    background: #fafbfc;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.package-card-inner:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.package-card input:checked + .package-card-inner {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.02) 100%);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.package-card-highlight input:checked + .package-card-inner {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.04) 100%);
}

.package-qty {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    flex-shrink: 0;
    min-width: 32px;
    text-align: center;
}

.package-card input:checked + .package-card-inner .package-qty {
    color: var(--color-primary);
}

.package-card-center {
    flex: 1;
    min-width: 0;
}

.package-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    background: rgba(37, 99, 235, 0.15);
    padding: 4px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
}

.package-badge-best {
    color: #059669;
    background: rgba(5, 150, 105, 0.15);
}

.package-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.package-desc {
    font-size: 13px;
    color: #64748b;
}

.package-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    flex-shrink: 0;
}

.package-card input:checked + .package-card-inner .package-price {
    color: var(--color-primary);
}

/* Payment options - Premium */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.payment-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    transition: all 0.25s;
    background: #fafbfc;
}

.payment-option:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.payment-option:has(input:checked) {
    border-color: var(--color-primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.02) 100%);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.payment-icon {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.payment-label {
    font-size: 11px;
    color: #64748b;
}

.modal-submit-btn {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    transition: all 0.2s;
}

.modal-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.modal-payment-result {
    padding: 24px 28px 28px;
}

.modal-payment-result .modal-section {
    margin-bottom: 20px;
}

.pix-qr-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    margin: 0 0 16px;
    border: 1px solid #e2e8f0;
}

.pix-qr-wrapper img {
    max-width: 200px;
}

.msg.error {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Modal QR Code PIX - Interativo (estilo Payments) */
.pix-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    animation: pixModalFadeIn 0.2s ease;
    box-sizing: border-box;
}

@keyframes pixModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pix-modal-content {
    background: white;
    border-radius: 20px;
    padding: 28px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid #f1f5f9;
    position: relative;
}

.pix-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.pix-modal-close:hover {
    background: #e2e8f0;
    color: #334155;
}

.pix-modal-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    text-align: center;
    margin-bottom: 4px;
}

.pix-modal-hint {
    font-size: 12px;
    color: #64748b;
    text-align: center;
    margin-bottom: 16px;
}

.pix-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    margin-bottom: 20px;
}

.pix-qr-box {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

.pix-qr-box img {
    max-width: 240px;
    max-height: 240px;
}

.pix-qr-box #pixQrContainer,
.pix-qr-box #sendPixQrContainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pix-qr-box #pixQrContainer canvas,
.pix-qr-box #pixQrContainer img,
.pix-qr-box #sendPixQrContainer canvas,
.pix-qr-box #sendPixQrContainer img {
    max-width: 240px;
    max-height: 240px;
}

.btn-pix-copy {
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-pix-copy:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.4);
}

.pix-waiting {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin-bottom: 8px;
    margin-top: 16px;
}

.pix-success-hint {
    font-size: 12px;
    font-weight: 600;
    color: #059669;
    text-align: center;
}

.btn-pix-retry {
    width: 100%;
    margin-top: 12px;
    padding: 12px 20px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-pix-retry:hover {
    background: #e2e8f0;
    color: #334155;
}

/* ===== LAYOUT DASHBOARD PRO - Design moderno e polido ===== */
.dash-layout-new {
    background: linear-gradient(165deg, #f0f4f8 0%, #e8eef5 30%, #dde5f0 100%);
    min-height: 100vh;
    position: relative;
}

.dash-layout-new::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 320px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06) 0%, rgba(99, 102, 241, 0.04) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.dash-header-new {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 100;
}

.dash-header-new .dash-header-inner {
    max-width: 960px;
    padding: 18px 24px;
    margin: 0 auto;
}

.dash-header-new .dash-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
}

.dash-header-new .logo-dot {
    color: #E74C3C;
}

.dash-back svg {
    flex-shrink: 0;
}

.credits-badge-new {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: white !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    transition: all 0.25s ease;
    text-decoration: none !important;
}

.credits-badge-new:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}

.credits-badge-new .credits-add {
    opacity: 0.95;
    font-size: 13px;
}

.dash-nav-link-new {
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    color: #475569;
    transition: all 0.2s;
}

.dash-nav-link-new:hover {
    background: #f1f5f9;
    color: #2563eb;
}

#adminLink {
    background: rgba(30, 41, 59, 0.08);
    color: #475569;
}

#adminLink:hover {
    background: rgba(30, 41, 59, 0.12);
    color: #1e293b;
}

.dash-content-new {
    max-width: 960px;
    padding: 48px 24px 100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.dash-layout-new #viewHome {
    background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 50%, #fff 100%);
    min-height: calc(100vh - 120px);
}

.dash-welcome {
    text-align: center;
    margin-bottom: 56px;
    padding: 48px 24px 40px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(37, 99, 235, 0.02) 100%);
    border-radius: 24px;
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.dash-welcome-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.dash-welcome-subtitle {
    font-size: 18px;
    color: #64748b;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.65;
}

.dash-section {
    margin-bottom: 48px;
}

.dash-section {
    margin-bottom: 32px;
}

.dash-section:last-of-type {
    margin-bottom: 0;
}

.dash-section-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #64748b;
    margin-bottom: 16px;
    padding-left: 2px;
}

.dash-cards-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.dash-cards-extras {
    grid-template-columns: repeat(3, 1fr);
}

.dash-card-new {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.dash-card-new:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.15);
    transform: translateY(-3px);
}

.dash-card-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-card-icon-wrap svg {
    width: 26px;
    height: 26px;
}

.dash-card-green { background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(22, 163, 74, 0.12) 100%); color: #16a34a; }
.dash-card-blue { background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(29, 78, 216, 0.12) 100%); color: #2563eb; }
.dash-card-purple { background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(124, 58, 237, 0.12) 100%); color: #7c3aed; }
.dash-card-amber { background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(29, 78, 216, 0.12) 100%); color: #1d4ed8; }
.dash-card-cyan { background: linear-gradient(135deg, rgba(6, 182, 212, 0.2) 0%, rgba(14, 165, 233, 0.12) 100%); color: #0891b2; }
.dash-card-pink { background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(219, 39, 119, 0.12) 100%); color: #db2777; }
.dash-card-linkedin { background: linear-gradient(135deg, rgba(10, 102, 194, 0.2) 0%, rgba(0, 119, 181, 0.12) 100%); color: #0a66c2; }

.dash-card-body {
    flex: 1;
    min-width: 0;
}

.dash-card-new .dash-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.dash-card-new .dash-card-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.55;
    margin: 0;
}

.dash-card-new .dash-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.dash-card-badge-free {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.dash-card-badge-price {
    background: rgba(37, 99, 235, 0.15);
    color: #1d4ed8;
}

.dash-card-arrow {
    font-size: 20px;
    color: #cbd5e1;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.dash-card-new:hover .dash-card-arrow {
    color: #2563eb;
    transform: translateX(6px);
}

.dash-card-compact .dash-card-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
}

.dash-card-compact .dash-card-icon-wrap svg {
    width: 22px;
    height: 22px;
}

.dash-card-compact {
    padding: 22px;
}

.dash-card-compact .dash-card-title {
    font-size: 1.05rem;
}

.dash-card-compact .dash-card-desc {
    font-size: 13px;
}

/* Panels - formulários */
.dash-layout-new .dash-panel-card {
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.dash-layout-new .panel-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
}

.dash-layout-new .panel-header p {
    font-size: 15px;
    color: #64748b;
    line-height: 1.6;
}

.dash-layout-new .result-box {
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.dash-layout-new .ats-score-low {
    font-size: 48px;
    font-weight: 800;
    color: #E74C3C;
}

.ats-feedback-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.ats-feedback-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.ats-feedback-intro {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.dash-layout-new .ats-tips {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dash-layout-new .ats-tips li {
    padding: 12px 0 12px 32px;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    font-size: 14px;
    line-height: 1.55;
}

.dash-layout-new .ats-tips li:last-child {
    border-bottom: none;
}

.dash-layout-new .ats-tips li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #E74C3C;
    font-weight: 700;
    font-size: 16px;
}

.dash-layout-new .cv-output {
    white-space: pre-wrap;
    font-size: 14px;
    line-height: 1.7;
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.dashboard-user-page .modal-content.modal-content-wide {
    max-width: 640px;
}

.dashboard-user-page .cv-output-modal {
    max-height: 60vh;
    min-height: 120px;
    overflow-y: auto;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.dash-layout-new .w-100 { width: 100%; }
.dash-layout-new .mt-2 { margin-top: 8px; }
.dash-layout-new .mt-3 { margin-top: 12px; }
.dash-layout-new .mt-4 { margin-top: 16px; }
.dash-layout-new .text-muted { color: #64748b; }

@media (max-width: 768px) {
    .dash-cards-new {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .dash-cards-extras {
        grid-template-columns: 1fr;
    }
    .dash-card-new {
        padding: 22px;
    }
    .dash-card-compact {
        padding: 20px;
    }
    .dash-welcome {
        margin-bottom: 40px;
    }
    .dash-welcome-title {
        font-size: 1.75rem;
    }
    .dash-welcome-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .dash-header-new .dash-header-inner {
        padding: 14px 16px;
    }
    .dash-content-new {
        padding: 32px 16px 80px;
    }
    .dash-card-new {
        gap: 18px;
        padding: 20px;
    }
    .dash-card-icon-wrap {
        width: 48px;
        height: 48px;
    }
}
