/* Portal do comprador - identidade visual compartilhada */

:root {
    --buyer-primary: #3b5dbc;
    --buyer-primary-dark: #173276;
    --buyer-primary-soft: #eaf0ff;
    --buyer-accent: #10b981;
    --buyer-amber: #f59e0b;
    --buyer-ink: #111827;
    --buyer-heading: #1f2937;
    --buyer-muted: #64748b;
    --buyer-muted-dark: #475569;
    --buyer-border: #dbe3f4;
    --buyer-border-strong: #c7d2fe;
    --buyer-surface: #ffffff;
    --buyer-surface-soft: #f8fbff;
    --buyer-shadow: 0 22px 54px rgba(59, 93, 188, .10);
    --buyer-shadow-soft: 0 12px 30px rgba(59, 93, 188, .07);
    --buyer-radius-xl: 30px;
    --buyer-radius-lg: 24px;
    --buyer-radius-md: 18px;
}

.buyer-dash-wrap,
.buyer-auth-wrap,
.buyer-profile-wrap,
.buyer-sale-wrap {
    position: relative;
    isolation: isolate;
    margin: 0 auto;
    padding: 2.25rem 1rem 4rem;
}

.buyer-dash-wrap::before,
.buyer-auth-wrap::before,
.buyer-profile-wrap::before,
.buyer-sale-wrap::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 auto auto 50%;
    width: min(980px, 96vw);
    height: 360px;
    transform: translateX(-50%);
    background:
        radial-gradient(circle at 20% 20%, rgba(59, 93, 188, .16), transparent 32%),
        radial-gradient(circle at 78% 14%, rgba(16, 185, 129, .12), transparent 28%),
        linear-gradient(135deg, rgba(234, 240, 255, .86), rgba(255, 255, 255, 0));
    border-radius: 0 0 44px 44px;
    pointer-events: none;
}

.buyer-dash-wrap,
.buyer-sale-wrap {
    max-width: 1220px !important;
}

.buyer-auth-wrap {
    max-width: 1160px !important;
}

.buyer-profile-wrap {
    max-width: 980px !important;
}

.buyer-dash-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.buyer-dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.buyer-dash-kicker,
.buyer-sale-kicker,
.buyer-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    border-radius: 999px;
    padding: .45rem .8rem;
    font-size: .85rem;
    font-weight: 800;
    margin-bottom: .85rem;
}

.buyer-next-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.buyer-next-meta,
.buyer-purchase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    color: var(--buyer-muted);
    font-size: .92rem;
}

.buyer-purchase-card {
    padding: 1rem;
    height: 100%;
}

.buyer-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem .7rem;
    font-size: .78rem;
}

.buyer-auth-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 1.4rem;
}

.buyer-auth-tabs {
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.buyer-auth-social {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 0;
}
.buyer-auth-social-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
    color: #172b4d;
    font-size: .92rem;
    font-weight: 650;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.buyer-auth-social-btn:hover {
    border-color: #9bb6e8;
    box-shadow: 0 8px 20px rgba(24, 58, 112, .1);
    color: #123f91;
    transform: translateY(-1px);
}
.buyer-auth-google-mark,
.buyer-auth-facebook-mark {
    width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    font-family: Arial, sans-serif;
    font-weight: 800;
    font-size: 1.08rem;
}
.buyer-auth-google-mark { color: #4285f4; }
.buyer-auth-facebook-mark { color: #1877f2; font-size: 1.35rem; }
.buyer-auth-social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 10px;
    color: #7b8799;
    font-size: .78rem;
}
.buyer-auth-social-divider::before,
.buyer-auth-social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e7ebf2;
}
@media (max-width: 520px) {
    .buyer-auth-social { grid-template-columns: 1fr; }
}

.buyer-auth-tab {
    border-radius: 999px;
    padding: .75rem 1rem;
    font-weight: 800;
    cursor: pointer;
}

.buyer-auth-form {
    display: none;
}

.buyer-auth-form.active {
    display: block;
}

.buyer-auth-form .form-group,
.buyer-profile-form .form-group {
    width: 100%;
    min-width: 0;
    margin-bottom: 1rem;
}

.buyer-auth-form .form-row,
.buyer-profile-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.buyer-auth-form .form-label,
.buyer-profile-form .form-label {
    display: block;
    margin-bottom: .45rem;
}

.buyer-auth-form .form-control,
.buyer-profile-form .form-control {
    display: block;
    width: 100%;
    padding: .9rem 1rem;
}

.buyer-auth-feature {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    margin-bottom: 1rem;
}

.buyer-auth-feature i {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: var(--buyer-primary);
    box-shadow: 0 8px 24px rgba(37, 99, 235, .12);
}

.buyer-auth-note,
.buyer-profile-summary {
    padding: 1rem;
}

.buyer-auth-alert,
.buyer-profile-alert {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    border-radius: 18px;
    padding: 1rem 1.1rem;
    border: 1px solid transparent;
    margin-bottom: 1.25rem;
}

.buyer-auth-alert i,
.buyer-profile-alert i {
    font-size: 1.1rem;
    margin-top: .1rem;
}

.buyer-auth-alert-danger,
.buyer-profile-alert-danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

.buyer-auth-alert-success,
.buyer-profile-alert-success {
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #166534;
}

.buyer-profile-summary {
    margin-bottom: 1.5rem;
}

.buyer-sale-hero {
    margin-bottom: 1.5rem;
}

.buyer-sale-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 1.2rem;
}

.buyer-sale-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1rem;
}

.buyer-sale-stat {
    padding: 1rem;
}

.buyer-sale-stat small {
    display: block;
    margin-bottom: .35rem;
}

.buyer-sale-status {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .8rem;
    font-size: .82rem;
}

.buyer-ticket-list {
    display: grid;
    gap: .85rem;
}

.buyer-ticket-item {
    padding: 1rem 1.05rem;
}

.buyer-ticket-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: .75rem;
}

.buyer-ticket-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .35rem .7rem;
    font-size: .78rem;
    font-weight: 800;
}

.buyer-ticket-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.buyer-ticket-meta .meta {
    border: 1px solid var(--buyer-border);
    border-radius: 14px;
    background: #fff;
    padding: .8rem;
}

.buyer-ticket-meta .meta small,
.buyer-ticket-meta .meta strong {
    display: block;
    word-break: break-word;
}

.buyer-dash-wrap h1,
.buyer-dash-wrap h2,
.buyer-dash-wrap h3,
.buyer-dash-wrap h4,
.buyer-dash-wrap h5,
.buyer-auth-wrap h1,
.buyer-auth-wrap h2,
.buyer-auth-wrap h3,
.buyer-profile-wrap h1,
.buyer-profile-wrap h2,
.buyer-sale-wrap h1,
.buyer-sale-wrap h2,
.buyer-sale-wrap h3,
.buyer-sale-wrap h4,
.buyer-sale-wrap h5 {
    color: var(--buyer-heading) !important;
    letter-spacing: -.02em;
}

.buyer-dash-wrap .text-muted,
.buyer-auth-wrap .text-muted,
.buyer-profile-wrap .text-muted,
.buyer-sale-wrap .text-muted {
    color: var(--buyer-muted) !important;
}

.buyer-portal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(219, 227, 244, .95);
    border-radius: 24px;
    box-shadow: var(--buyer-shadow-soft);
    backdrop-filter: blur(16px);
    padding: .85rem;
    margin-bottom: 1.3rem;
}

.buyer-portal-identity {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.buyer-portal-avatar {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 16px;
    color: #fff;
    font-weight: 800;
    letter-spacing: .02em;
    background: linear-gradient(135deg, var(--buyer-primary), #6e8de3);
    box-shadow: 0 12px 24px rgba(59, 93, 188, .18);
}

.buyer-portal-identity-name {
    color: var(--buyer-heading);
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
}

.buyer-portal-identity-email {
    color: var(--buyer-muted);
    font-size: .84rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 360px;
}

.buyer-portal-nav {
    display: flex;
    align-items: center;
    gap: .45rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.buyer-portal-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 42px;
    border-radius: 14px;
    padding: .68rem .85rem;
    color: var(--buyer-muted-dark);
    text-decoration: none;
    font-weight: 800;
    font-size: .9rem;
    border: 1px solid transparent;
    transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}

.buyer-portal-nav-link:hover {
    color: var(--buyer-primary-dark);
    background: var(--buyer-primary-soft);
    border-color: rgba(59, 93, 188, .12);
    transform: translateY(-1px);
}

.buyer-portal-nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--buyer-primary), #5f7ee0);
    box-shadow: 0 12px 22px rgba(59, 93, 188, .18);
}

.buyer-dash-hero,
.buyer-sale-hero {
    border-radius: var(--buyer-radius-xl) !important;
    border: 1px solid var(--buyer-border) !important;
    box-shadow: var(--buyer-shadow) !important;
    padding: 1.75rem !important;
    background:
        linear-gradient(135deg, rgba(248, 251, 255, .96) 0%, rgba(234, 240, 255, .96) 62%, rgba(231, 239, 255, .94) 100%) !important;
}

.buyer-dash-kicker,
.buyer-sale-kicker,
.buyer-auth-kicker {
    background: var(--buyer-primary-soft) !important;
    color: var(--buyer-primary-dark) !important;
    border: 1px solid rgba(59, 93, 188, .14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.buyer-stat-card,
.buyer-panel,
.buyer-auth-panel,
.buyer-auth-side,
.buyer-profile-card,
.buyer-sale-card {
    background: rgba(255, 255, 255, .94) !important;
    border: 1px solid var(--buyer-border) !important;
    border-radius: var(--buyer-radius-lg) !important;
    box-shadow: var(--buyer-shadow-soft) !important;
}

.buyer-panel,
.buyer-auth-panel,
.buyer-auth-side,
.buyer-profile-card,
.buyer-sale-card {
    padding: 1.5rem !important;
}

.buyer-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow: hidden;
    position: relative;
    min-height: 126px;
    padding: 1.25rem !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%) !important;
    border: 1px solid var(--buyer-border) !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 30px rgba(59, 93, 188, .075) !important;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.buyer-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.buyer-stat-card:hover {
    transform: translateY(-2px);
    border-color: var(--buyer-border-strong) !important;
    box-shadow: 0 20px 42px rgba(59, 93, 188, .12) !important;
}

.buyer-stat-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 16px;
    color: var(--buyer-primary-dark);
    background: var(--buyer-primary-soft);
    border: 1px solid rgba(59, 93, 188, .14);
    font-size: 1.25rem;
}

.buyer-stat-card::after {
    content: "";
    position: absolute;
    right: -44px;
    bottom: -54px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(59, 93, 188, .08);
    pointer-events: none;
    display: none;
}

.buyer-stat-card .h3,
.buyer-stat-card .h4 {
    color: var(--buyer-heading) !important;
    font-weight: 900;
}

.buyer-stat-label {
    color: var(--buyer-muted);
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .02em;
    margin-bottom: .45rem;
}

.buyer-stat-value {
    color: var(--buyer-heading);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.buyer-stat-money {
    font-size: 1.45rem;
    letter-spacing: -.03em;
}

.buyer-stat-note {
    color: var(--buyer-muted-dark);
    font-size: .86rem;
    margin-top: .45rem;
}

.buyer-next-card {
    overflow: hidden;
    background: #fff !important;
    border-left: 4px solid var(--buyer-primary) !important;
    box-shadow: 0 10px 26px rgba(59, 93, 188, .065) !important;
}

.buyer-next-panel {
    background: #fff !important;
    border: 1px solid rgba(59, 93, 188, .14) !important;
    border-radius: 18px !important;
    color: var(--buyer-heading) !important;
    box-shadow: none !important;
}

.buyer-next-panel .small {
    color: var(--buyer-primary-dark) !important;
}

.buyer-next-panel .small[style] {
    color: var(--buyer-muted) !important;
}

.buyer-next-label {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--buyer-primary-dark);
    background: var(--buyer-primary-soft);
    border: 1px solid rgba(59, 93, 188, .12);
    border-radius: 999px;
    padding: .35rem .65rem;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.buyer-next-button {
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.buyer-purchase-card,
.buyer-ticket-item,
.buyer-sale-stat {
    border: 1px solid var(--buyer-border) !important;
    border-radius: 20px !important;
    background: linear-gradient(180deg, #fff 0%, var(--buyer-surface-soft) 100%) !important;
    box-shadow: 0 10px 24px rgba(59, 93, 188, .045);
}

.buyer-purchase-card {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.buyer-purchase-card:hover {
    transform: translateY(-2px);
    border-color: var(--buyer-border-strong) !important;
    box-shadow: 0 18px 38px rgba(59, 93, 188, .10);
}

.buyer-status-badge,
.buyer-sale-status {
    border-radius: 999px !important;
    font-weight: 800 !important;
}

.buyer-status-badge.pago,
.buyer-sale-status.pago {
    background: #dcfce7 !important;
    color: #166534 !important;
}

.buyer-status-badge.pendente,
.buyer-sale-status.pendente {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.buyer-status-badge.cancelado,
.buyer-status-badge.expirado,
.buyer-sale-status.cancelado,
.buyer-sale-status.estornado,
.buyer-sale-status.expirado {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.buyer-auth-grid {
    align-items: stretch !important;
}

.buyer-auth-panel {
    min-width: 0;
}

.buyer-auth-side {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 12%, rgba(16, 185, 129, .16), transparent 30%),
        linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%) !important;
}

.buyer-auth-side::after {
    content: "";
    position: absolute;
    right: -76px;
    bottom: -82px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: rgba(59, 93, 188, .10);
    pointer-events: none;
}

.buyer-auth-side > * {
    position: relative;
    z-index: 1;
}

.buyer-auth-tabs {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: .35rem;
    display: inline-flex !important;
}

.buyer-auth-tab {
    border: 0 !important;
    color: var(--buyer-muted-dark) !important;
    background: transparent !important;
}

.buyer-auth-tab.active {
    color: #fff !important;
    background: linear-gradient(135deg, var(--buyer-primary), #5f7ee0) !important;
    box-shadow: 0 10px 20px rgba(59, 93, 188, .18);
}

.buyer-auth-form .form-row,
.buyer-profile-form .form-row {
    align-items: start !important;
}

.buyer-auth-form .form-label,
.buyer-profile-form .form-label {
    font-weight: 800 !important;
    color: var(--buyer-heading) !important;
}

.buyer-auth-form .form-control,
.buyer-profile-form .form-control {
    min-height: 52px;
    border-radius: 16px !important;
    border: 1px solid #cbd5e1 !important;
    background: #fff !important;
    color: var(--buyer-heading) !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .035);
}

.buyer-auth-form .form-control:focus,
.buyer-profile-form .form-control:focus {
    border-color: var(--buyer-primary) !important;
    box-shadow: 0 0 0 .22rem rgba(59, 93, 188, .14) !important;
}

.buyer-auth-wrap .btn,
.buyer-auth-form .btn,
.buyer-profile-form .btn,
.buyer-dash-wrap .btn,
.buyer-profile-wrap .btn,
.buyer-sale-wrap .btn {
    border-radius: 14px;
    font-weight: 800;
}

.buyer-auth-feature {
    padding: .85rem;
    border: 1px solid rgba(59, 93, 188, .10);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
}

.buyer-auth-feature i {
    background: var(--buyer-primary-soft) !important;
}

.buyer-auth-note,
.buyer-profile-summary {
    border-radius: 20px !important;
    border: 1px solid rgba(59, 93, 188, .16) !important;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%) !important;
    color: var(--buyer-primary-dark) !important;
}

.buyer-sale-summary-grid {
    gap: 1rem !important;
}

.buyer-sale-stat small,
.buyer-ticket-meta .meta small {
    color: var(--buyer-muted) !important;
    font-weight: 700;
}

.buyer-sale-stat strong,
.buyer-ticket-meta .meta strong {
    color: var(--buyer-heading) !important;
}

.buyer-ticket-badge {
    background: var(--buyer-primary-soft) !important;
    color: var(--buyer-primary-dark) !important;
}

@media (max-width: 991.98px) {
    .buyer-stats-grid {
        grid-template-columns: 1fr !important;
    }

    .buyer-next-grid,
    .buyer-auth-grid,
    .buyer-auth-form .form-row,
    .buyer-profile-form .form-row,
    .buyer-sale-grid,
    .buyer-sale-summary-grid,
    .buyer-ticket-meta {
        grid-template-columns: 1fr !important;
    }

    .buyer-portal-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .buyer-portal-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
    }

    .buyer-portal-nav-link {
        width: 100%;
    }

    .buyer-portal-identity-name,
    .buyer-portal-identity-email {
        max-width: calc(100vw - 120px);
    }
}

@media (max-width: 575.98px) {
    .buyer-dash-wrap,
    .buyer-auth-wrap,
    .buyer-profile-wrap,
    .buyer-sale-wrap {
        padding-left: .85rem !important;
        padding-right: .85rem !important;
    }

    .buyer-dash-hero,
    .buyer-sale-hero,
    .buyer-panel,
    .buyer-auth-panel,
    .buyer-auth-side,
    .buyer-profile-card,
    .buyer-sale-card {
        border-radius: 22px !important;
        padding: 1.1rem !important;
    }

    .buyer-auth-tabs {
        width: 100%;
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .buyer-auth-tab {
        width: 100%;
    }
}

/* Percurso de compra mais claro e acesso direto aos ingressos */
.buyer-dash-wrap,
.buyer-sale-wrap,
.buyer-auth-wrap,
.buyer-profile-wrap {
    color: var(--buyer-ink);
    font-family: 'DM Sans', Inter, Arial, sans-serif;
}

.buyer-dash-wrap :is(h1,h2,h3,h4,h5),
.buyer-sale-wrap :is(h1,h2,h3,h4,h5),
.buyer-auth-wrap :is(h1,h2,h3,h4,h5),
.buyer-profile-wrap :is(h1,h2,h3,h4,h5) {
    font-family: Manrope, 'DM Sans', Arial, sans-serif;
    letter-spacing: -.035em;
}

.buyer-portal-topbar {
    position: sticky;
    top: 12px;
    z-index: 20;
    align-items: center;
    padding: .75rem .85rem;
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 32px rgba(27,45,85,.08);
}

.buyer-portal-nav-link {
    min-height: 40px;
    border-radius: 11px;
    font-size: .84rem;
}

.buyer-portal-nav-link.active {
    color: #fff !important;
    background: var(--buyer-primary) !important;
    box-shadow: 0 8px 18px rgba(59,93,188,.2);
}

.buyer-dash-hero {
    align-items: center;
    margin: 1.25rem 0 1.1rem;
    padding: clamp(1.4rem,3vw,2.2rem) !important;
    border-radius: 24px !important;
    background: linear-gradient(125deg,#fff 0%,#f1f5ff 68%,#e9fbf3 100%) !important;
}

.buyer-dash-hero h1 { font-size: clamp(1.6rem,3vw,2.25rem); }
.buyer-dash-hero p { max-width: 720px; line-height: 1.75; }
.buyer-dash-actions .btn { min-height: 46px; padding-inline: 1.1rem; }

.buyer-stats-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; }
.buyer-stat-card { min-height: 112px; padding: 1rem !important; border-radius: 17px !important; }
.buyer-stat-icon { width: 44px; height: 44px; border-radius: 13px; }
.buyer-stat-value { font-family: Manrope,'DM Sans',sans-serif; font-size: clamp(1.45rem,2vw,1.85rem); }
.buyer-stat-label { font-size: .76rem; }
.buyer-stat-note { font-size: .78rem; line-height: 1.45; }

.buyer-next-card { padding: clamp(1.1rem,2.5vw,1.65rem) !important; border-left-width: 5px !important; border-radius: 20px !important; }
.buyer-next-grid { grid-template-columns: minmax(0,1.45fr) minmax(260px,.75fr); gap: 1.2rem; }
.buyer-next-panel { padding: 1rem; border-radius: 15px !important; background: #f8faff !important; }
.buyer-next-button { min-height: 44px; }

.buyer-panel { padding: clamp(1.05rem,2.5vw,1.55rem) !important; border-radius: 20px !important; }
#buyer-purchases { scroll-margin-top: 110px; }
.buyer-purchases-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; margin: 1.1rem 0 1rem; }
.buyer-purchase-search { position: relative; display: flex; align-items: center; flex: 1 1 300px; min-width: 210px; }
.buyer-purchase-search > i { position: absolute; left: 14px; color: #7b879b; pointer-events: none; }
.buyer-purchase-search input,
.buyer-purchase-filter-label select {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d9e1ef;
    border-radius: 11px;
    color: var(--buyer-ink);
    background: #fff;
    font: 500 .9rem 'DM Sans',Arial,sans-serif;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.buyer-purchase-search input { padding: .65rem .85rem .65rem 2.55rem; }
.buyer-purchase-filter-label { display: grid; gap: .28rem; flex: 0 1 180px; color: var(--buyer-muted); font-size: .74rem; font-weight: 800; }
.buyer-purchase-filter-label select { padding: .55rem .8rem; }
.buyer-purchase-search input:focus,
.buyer-purchase-filter-label select:focus { border-color: var(--buyer-primary); outline: 0; box-shadow: 0 0 0 3px rgba(59,93,188,.12); }
.buyer-purchase-result-count { min-width: 26px; padding: .45rem .65rem; color: var(--buyer-primary-dark); background: var(--buyer-primary-soft); border-radius: 999px; font-size: .8rem; font-weight: 800; text-align: center; }
.buyer-purchases-grid > .buyer-purchase-result { flex: 0 0 auto; width: 50%; }
.buyer-purchase-result[hidden] { display: none !important; }
.buyer-purchase-no-results { display: flex; align-items: center; gap: .7rem; padding: 1rem; color: var(--buyer-muted-dark); background: #f8faff; border: 1px dashed var(--buyer-border-strong); border-radius: 14px; }
.buyer-purchase-no-results[hidden] { display: none !important; }
.buyer-purchase-card { min-height: 100%; padding: 1.15rem !important; border-radius: 16px !important; }
.buyer-purchase-card .fw-semibold { color: var(--buyer-heading); font-family: Manrope,'DM Sans',sans-serif; font-size: 1.02rem; line-height: 1.4; }
.buyer-purchase-meta { gap: .5rem .9rem; font-size: .8rem; }
.buyer-purchase-meta > span { display: inline-flex; align-items: baseline; }
.buyer-purchase-card .btn { min-height: 38px; border-radius: 10px !important; }
.buyer-purchase-card .btn-primary { box-shadow: 0 7px 16px rgba(59,93,188,.16); }

.buyer-sale-hero { padding: clamp(1.2rem,3vw,2rem) !important; border-radius: 22px !important; }
.buyer-sale-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1rem; }
.buyer-sale-card { min-width: 0; padding: clamp(1rem,2.5vw,1.45rem) !important; border-radius: 18px !important; }
.buyer-sale-summary-grid { gap: .7rem !important; }
.buyer-sale-stat { min-width: 0; padding: .85rem; border-radius: 13px !important; }
.buyer-sale-stat strong { overflow-wrap: anywhere; }
.buyer-ticket-item { padding: 1rem !important; border-radius: 15px !important; }
.buyer-ticket-meta { grid-template-columns: repeat(2,minmax(0,1fr)); }
.buyer-ticket-meta .meta { min-width: 0; padding: .7rem; border-radius: 11px; background: #fff; }
.buyer-ticket-meta .meta:last-child { grid-column: 1 / -1; }
.buyer-ticket-open { display: inline-flex; align-items: center; margin-top: .8rem; border-radius: 10px !important; }

@media (max-width: 991.98px) {
    .buyer-stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
    .buyer-next-grid,.buyer-sale-grid { grid-template-columns: 1fr !important; }
    .buyer-purchases-grid > .buyer-purchase-result { width: 50%; }
}

@media (max-width: 700px) {
    .buyer-portal-topbar { position: static; gap: .75rem; padding: .75rem; }
    .buyer-portal-identity { gap: .65rem; }
    .buyer-portal-avatar { width: 40px; height: 40px; border-radius: 13px; }
    .buyer-portal-identity-name { font-size: .9rem; }
    .buyer-portal-identity-email { font-size: .74rem; }
    .buyer-portal-nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .4rem; }
    .buyer-portal-nav-link { min-height: 42px; padding: .55rem .45rem; font-size: .78rem; }
    .buyer-purchases-toolbar { align-items: stretch; }
    .buyer-purchases-grid > .buyer-purchase-result { width: 100%; }
    .buyer-purchase-search { flex-basis: 100%; }
    .buyer-purchase-filter-label { flex: 1 1 160px; }
    .buyer-purchase-result-count { align-self: end; }
}

@media (max-width: 575.98px) {
    .buyer-dash-wrap,.buyer-sale-wrap,.buyer-auth-wrap,.buyer-profile-wrap { padding-top: 1rem !important; }
    .buyer-dash-hero { margin-top: .8rem; }
    .buyer-stats-grid { grid-template-columns: 1fr !important; }
    .buyer-stat-card { min-height: 94px; }
    .buyer-purchases-grid > .buyer-purchase-result { width: 100%; }
    .buyer-ticket-meta { grid-template-columns: 1fr; }
    .buyer-ticket-meta .meta:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .buyer-stat-card,.buyer-purchase-card,.buyer-portal-nav-link { transition: none !important; }
}
