:root {
    --bg-page: #eef4ff;
    --bg-page-strong: #dfeaff;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --surface-soft: #f6f9ff;
    --surface-blue: #edf4ff;
    --line: rgba(39, 76, 160, 0.12);
    --line-strong: rgba(39, 76, 160, 0.22);
    --text-main: #162033;
    --text-soft: #60708c;
    --text-faint: #7d8ca5;
    --brand: #2e6bff;
    --brand-strong: #1745c6;
    --brand-deep: #0f2f86;
    --brand-soft: rgba(46, 107, 255, 0.12);
    --brand-soft-strong: rgba(46, 107, 255, 0.18);
    --money: #13a36b;
    --money-soft: rgba(19, 163, 107, 0.14);
    --warning: #ef8b17;
    --warning-soft: rgba(239, 139, 23, 0.14);
    --danger: #e45858;
    --danger-soft: rgba(228, 88, 88, 0.14);
    --shadow-lg: 0 28px 64px rgba(19, 43, 93, 0.14);
    --shadow-md: 0 18px 38px rgba(19, 43, 93, 0.1);
    --shadow-sm: 0 12px 24px rgba(19, 43, 93, 0.07);
    --radius-xl: 34px;
    --radius-lg: 26px;
    --radius-md: 20px;
    --radius-sm: 16px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--text-main);
    font-family: "Sora", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(46, 107, 255, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(106, 164, 255, 0.18), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg-page) 58%, var(--bg-page-strong) 100%);
}

a {
    color: inherit;
}

.pb-auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}

.pb-auth-card,
.pb-hero,
.pb-panel,
.pb-list,
.pb-card,
.stats-card,
.hero-card,
.panel,
.table-wrap,
.table-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.pb-auth-card,
.pb-hero,
.pb-panel,
.pb-list,
.hero-card,
.panel {
    padding: 22px;
}

.pb-auth-card {
    width: min(100%, 540px);
}

.pb-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-size: 0.74rem;
    font-weight: 700;
}

.pb-icon-box {
    width: 78px;
    height: 78px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 2rem;
    background: linear-gradient(135deg, #2e6bff 0%, #1745c6 100%);
    box-shadow: 0 18px 34px rgba(46, 107, 255, 0.24);
}

.pb-icon-box.is-danger {
    background: linear-gradient(135deg, #eb6c6c 0%, #d64747 100%);
    box-shadow: 0 18px 34px rgba(228, 88, 88, 0.24);
}

.pb-icon-box.is-success {
    background: linear-gradient(135deg, #18b27a 0%, #0e8f60 100%);
    box-shadow: 0 18px 34px rgba(19, 163, 107, 0.24);
}

.pb-brand {
    font-size: clamp(1.7rem, 5vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.06em;
    font-weight: 800;
    margin: 0;
}

.pb-title {
    font-size: clamp(1.32rem, 3.6vw, 1.82rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
    font-weight: 800;
    margin: 0;
}

.pb-kicker {
    margin: 0;
    color: var(--text-faint);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.pb-subtitle,
.pb-muted {
    color: var(--text-soft);
}

.pb-inline {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pb-spread {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.pb-stack {
    display: grid;
    gap: 14px;
}

.pb-divider {
    height: 1px;
    background: var(--line);
}

.pb-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.pb-input,
.pb-textarea,
.pb-select,
.form-control-modern,
.form-control-custom,
.form-control-clean {
    width: 100%;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 14px 15px;
    color: var(--text-main);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pb-input:focus,
.pb-textarea:focus,
.pb-select:focus,
.form-control-modern:focus,
.form-control-custom:focus,
.form-control-clean:focus {
    outline: none;
    border-color: rgba(46, 107, 255, 0.38);
    box-shadow: 0 0 0 4px rgba(46, 107, 255, 0.12);
}

.pb-btn,
.btn-modern,
.btn-register,
.btn-puxar,
.btn-whatsapp,
.btn-saque {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border: none;
    border-radius: 17px;
    padding: 13px 18px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.pb-btn:hover,
.btn-modern:hover,
.btn-register:hover,
.btn-puxar:hover,
.btn-whatsapp:hover,
.btn-saque:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

.pb-btn-primary,
.btn-modern,
.btn-register,
.btn-puxar,
.btn-whatsapp,
.btn-saque {
    color: #fff !important;
    background: linear-gradient(135deg, #2e6bff 0%, #1745c6 100%);
    box-shadow: 0 16px 28px rgba(46, 107, 255, 0.22);
}

.pb-btn-secondary {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--text-main);
}

.btn-group .btn {
    border-radius: 999px !important;
}

.btn-group .btn.active,
.btn-group .btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.pb-shell,
.pb-mobile-shell {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 18px 14px 116px;
}

.pb-topbar {
    position: sticky;
    top: 0;
    z-index: 900;
    padding-bottom: 14px;
    background: linear-gradient(180deg, rgba(238, 244, 255, 0.96) 0%, rgba(238, 244, 255, 0.84) 100%);
    backdrop-filter: blur(18px);
}

.pb-top-tabs,
.tabs-container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}

.tab-btn {
    border: none;
    background: transparent;
    min-height: 72px;
    border-radius: 18px;
    padding: 10px 8px;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tab-btn.active {
    background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
    color: var(--brand-deep);
    box-shadow: inset 0 0 0 1px rgba(46, 107, 255, 0.12), var(--shadow-sm);
}

.tab-btn .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    border-radius: 999px;
    font-size: 0.76rem;
    background: var(--brand-soft) !important;
    color: var(--brand-deep) !important;
}

.pb-bottom-nav,
.nav-bottom {
    position: fixed;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: min(calc(100% - 16px), 760px);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(39, 76, 160, 0.12);
    box-shadow: 0 20px 48px rgba(19, 43, 93, 0.12);
    backdrop-filter: blur(22px);
    z-index: 1000;
}

.nav-link-custom {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 58px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 700;
}

.nav-link-custom.active {
    background: var(--surface-blue);
    color: var(--brand-deep);
}

.lead-item,
.product-card,
.request-card,
.metric-card,
.stats-card {
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.lead-item,
.request-card,
.metric-card,
.stats-card {
    padding: 18px;
}

.pb-lead-card {
    position: relative;
    display: grid;
    gap: 14px;
}

.pb-lead-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.pb-lead-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-deep);
    background: var(--brand-soft);
}

.pb-lead-product {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.pb-lead-contact {
    color: var(--text-soft);
    font-size: 0.84rem;
    font-weight: 600;
}

.pb-gain-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(19, 163, 107, 0.12) 0%, rgba(19, 163, 107, 0.2) 100%);
    color: #0d7f52;
    font-weight: 800;
    font-size: 0.86rem;
}

.pb-gain-chip i {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(19, 163, 107, 0.14);
}

.pb-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pb-meta-pill,
.status-badge,
.status-chip,
.status-pill,
.price-badge,
.commission-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    font-weight: 700;
}

.pb-meta-pill {
    padding: 8px 12px;
    font-size: 0.74rem;
    color: var(--text-soft);
    background: var(--surface-soft);
}

.status-badge {
    padding: 7px 12px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--warning-soft);
    color: #9b5d0e;
    font-size: 0.72rem;
    font-weight: 700;
}

.timer-safe {
    background: var(--brand-soft);
    color: var(--brand-deep);
}

.product-card {
    overflow: hidden;
}

.product-header {
    padding: 22px 20px 18px;
    background:
        radial-gradient(circle at top, rgba(46, 107, 255, 0.13), transparent 44%),
        linear-gradient(180deg, #fbfdff 0%, #edf4ff 100%);
    border-bottom: 1px solid var(--line);
}

.product-body {
    padding: 18px;
}

.price-badge {
    padding: 8px 12px;
    background: var(--surface-soft);
    color: var(--text-soft);
    font-size: 0.8rem;
}

.commission-badge {
    padding: 8px 12px;
    background: var(--money-soft);
    color: #0d7f52;
    font-size: 0.82rem;
}

.copy-link-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    background: var(--surface-blue);
    border: 1px solid rgba(46, 107, 255, 0.18);
}

.copy-link-box span {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
    color: var(--brand-deep);
}

.filter-btn {
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text-soft);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 10px 14px;
}

.filter-btn.active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.status-pill.pending,
.status-chip.status-warning {
    background: var(--warning-soft);
    color: #9b5d0e;
}

.status-pill.paid,
.status-chip.status-success {
    background: var(--money-soft);
    color: #0d7f52;
}

.status-pill.canceled,
.status-chip.status-secondary {
    background: rgba(96, 112, 140, 0.12);
    color: var(--text-soft);
}

.list-surface {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.history-title,
.muted-note {
    color: var(--text-faint);
}

.modal-content {
    border-radius: 28px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
}

.table thead th {
    border-bottom-color: var(--line);
    color: var(--text-faint);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.table tbody td {
    border-bottom-color: var(--line);
}

.pb-empty {
    padding: 34px 18px;
    text-align: center;
    color: var(--text-soft);
    background: rgba(255, 255, 255, 0.68);
    border: 1px dashed rgba(46, 107, 255, 0.18);
    border-radius: 24px;
}

@media (max-width: 767px) {
    .pb-auth-card,
    .pb-hero,
    .pb-panel,
    .pb-list,
    .hero-card,
    .panel {
        padding: 18px;
        border-radius: 22px;
    }

    .pb-spread {
        flex-direction: column;
        align-items: stretch;
    }

    .pb-inline {
        align-items: flex-start;
    }

    .tab-btn {
        min-height: 64px;
        font-size: 0.74rem;
    }

    .nav-link-custom {
        min-height: 54px;
        font-size: 0.68rem;
    }
}
