/* ========================================================
   Dashboard — Estilos completos
   ======================================================== */

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

/* ---- Layout principal ---- */

.app {
    display: flex;
    min-height: 100vh;
    background: var(--bg-page);
}

/* ================================================================
   SIDEBAR
   ================================================================ */

.sidebar {
    width: 220px;
    min-width: 220px;
    background: #fff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 50;
    overflow-y: auto;
}

/* Logo */
.sidebar__logo {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 20px 16px 18px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar__logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.sidebar__logo span { color: var(--color-secondary); }

/* Nav */
.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 10px;
    flex: 1;
}

.sidebar__nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.sidebar__nav-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar__nav-item:hover {
    background: var(--bg-page);
    color: var(--color-primary);
}

.sidebar__nav-item.active {
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

/* Plan card */
.sidebar__plan {
    margin: 0 10px 16px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px;
    flex-shrink: 0;
}

.sidebar__plan-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 2px;
}

.sidebar__plan-usage {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.sidebar__plan-bar {
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-full);
    margin-bottom: 12px;
    overflow: hidden;
}

.sidebar__plan-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.6s ease;
}

.sidebar__upgrade-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-heading);
    background: #fff;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.sidebar__upgrade-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(124, 58, 237, 0.04);
}

/* ================================================================
   APP MAIN
   ================================================================ */

.app-main {
    flex: 1;
    margin-left: 220px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- Topbar ---- */

.topbar {
    padding: 22px 32px 20px;
    background: linear-gradient(135deg, rgba(237, 233, 254, 0.6) 0%, rgba(253, 242, 248, 0.4) 100%);
    border-bottom: 1px solid rgba(124, 58, 237, 0.08);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.topbar__left {}

.topbar__greeting {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}

.topbar__title {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    line-height: 1;
}

.topbar__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.topbar__new-import {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
    transition: var(--transition);
}

.topbar__new-import:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.topbar__logout {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-muted);
}

.topbar__logout svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topbar__logout:hover {
    border-color: #EF4444;
    color: #EF4444;
}

/* ---- Conteúdo da página ---- */

.page-content {
    padding: 28px 32px;
    flex: 1;
}

/* ================================================================
   COMPONENTES COMPARTILHADOS
   ================================================================ */

/* Caixa / Card de seção */
.dash-box {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    margin-bottom: 20px;
}

.dash-box__title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stat cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.stat-card__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stat-card__icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.stat-card__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.stat-card__value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.03em;
    line-height: 1;
}

.stat-card__sub {
    font-size: 0.8125rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* Tabela */
.dash-table {
    width: 100%;
    border-collapse: collapse;
}

.dash-table th {
    text-align: left;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0 0 12px;
    border-bottom: 1px solid var(--border);
}

.dash-table td {
    padding: 14px 0;
    font-size: 0.9375rem;
    color: var(--text-body);
    border-bottom: 1px solid rgba(124, 58, 237, 0.06);
    vertical-align: middle;
}

.dash-table tr:last-child td {
    border-bottom: none;
}

.dash-table td.url-cell {
    color: var(--color-primary);
    font-weight: 500;
}

/* Status badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.concluida {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.status-badge.pendente {
    background: #FEF3C7;
    color: #92400E;
}

.status-badge.erro {
    background: #FEE2E2;
    color: #991B1B;
}

/* ================================================================
   VISÃO GERAL
   ================================================================ */

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
}

.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shortcut-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-heading);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.shortcut-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shortcut-item:hover {
    border-color: var(--color-primary);
    background: rgba(124, 58, 237, 0.04);
    color: var(--color-primary);
}

/* ================================================================
   PRODUTOS
   ================================================================ */

.products-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-wrap {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.search-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.9375rem;
    color: var(--text-heading);
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-body);
    cursor: pointer;
    transition: var(--transition);
}

.filter-tab.active {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.25);
}

.filter-tab:not(.active):hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.product-card__image {
    position: relative;
    height: 200px;
}

.product-card__img-bg {
    width: 100%;
    height: 100%;
}

.product-card__marketplace {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #fff;
}

.mp-shein       { background: #FF416C; }
.mp-shopee      { background: #F7971E; }
.mp-amazon      { background: #6D28D9; }
.mp-mercadolivre{ background: #FFD200; color: #1A0A2E; }

.product-card__status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
}

.ps-publicado   { background: rgba(209,250,229,0.9); color: #065F46; }
.ps-importado   { background: rgba(255,255,255,0.9); color: #374151; }
.ps-pendente    { background: rgba(254,243,199,0.9); color: #92400E; }

.product-card__body {
    padding: 14px 16px;
}

.product-card__name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.product-card__price {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-primary);
}

.product-card__platform {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-card__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-publish {
    flex: 1;
    padding: 9px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-publish.publish {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.25);
}

.btn-publish.unpublish {
    background: var(--bg-page);
    color: var(--text-body);
    border: 1.5px solid var(--border);
}

.btn-publish.publish:hover { opacity: 0.9; }
.btn-publish.unpublish:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-delete {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--bg-page);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--text-muted);
}

.btn-delete svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-delete:hover {
    border-color: #EF4444;
    color: #EF4444;
    background: #FEF2F2;
}

/* ================================================================
   IMPORTAÇÕES
   ================================================================ */

.import-form-row {
    display: grid;
    grid-template-columns: 1fr 160px 160px auto;
    gap: 12px;
    align-items: flex-end;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-heading);
}

.dash-input {
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--text-heading);
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.dash-input::placeholder { color: #C4B5FD; }

.dash-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.input-icon-wrap .dash-input { padding-left: 36px; }

.dash-select {
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    color: var(--text-heading);
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
    width: 100%;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.dash-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.btn-import {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.3);
}

.btn-import svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-import:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* ================================================================
   LOJAS
   ================================================================ */

.connect-form-row {
    display: grid;
    grid-template-columns: 1fr 180px 1fr auto;
    gap: 12px;
    align-items: flex-end;
}

.btn-connect {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    box-shadow: 0 3px 12px rgba(124, 58, 237, 0.3);
}

.btn-connect:hover { opacity: 0.9; }

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

.store-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.store-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.store-card__info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.store-card__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.store-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
}

.store-card__url {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.store-platform-badge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    background: #D1FAE5;
    color: #065F46;
}

.store-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.store-status {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #059669;
}

.store-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10B981;
}

.btn-disconnect {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #EF4444;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    padding: 0;
}

.btn-disconnect svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn-disconnect:hover { opacity: 0.75; }

/* ================================================================
   RELATÓRIOS
   ================================================================ */

.reports-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.report-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 22px 24px;
}

.report-stat__label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.report-stat__value {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bar-row__label {
    width: 110px;
    font-size: 0.9375rem;
    color: var(--text-body);
    flex-shrink: 0;
}

.bar-row__track {
    flex: 1;
    height: 8px;
    background: var(--bg-page);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bar-row__fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 0.8s ease;
}

.bar-row__count {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 70px;
    text-align: right;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    gap: 16px;
}

.activity-item:last-child { border-bottom: none; }

.activity-item__title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 2px;
}

.activity-item__date {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.activity-item__status {
    font-size: 0.875rem;
    font-weight: 700;
    color: #059669;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ================================================================
   PLANOS
   ================================================================ */

.active-plan-banner {
    background: var(--gradient-cta);
    border-radius: var(--radius-xl);
    padding: 24px 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.active-plan-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-opacity='0.04'%3E%3Ccircle cx='20' cy='20' r='3'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.active-plan-banner__left { position: relative; z-index: 1; }

.active-plan-banner__badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    margin-bottom: 8px;
}

.active-plan-banner__badge svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.active-plan-banner__name {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.active-plan-banner__price {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    margin-top: 4px;
}

.active-plan-banner__right {
    text-align: right;
    position: relative;
    z-index: 1;
}

.active-plan-banner__next-billing {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.active-plan-banner__next-billing svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Plan cards na página de planos */
.plan-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.plan-card {
    background: var(--bg-page);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 22px 20px;
    position: relative;
}

.plan-card.current {
    background: var(--gradient-primary);
    border-color: transparent;
    color: #fff;
}

.plan-card__badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.25);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}

.plan-card__name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.plan-card.current .plan-card__name { color: rgba(255,255,255,0.75); }

.plan-card__limit {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.plan-card.current .plan-card__limit { color: rgba(255,255,255,0.6); }

.plan-card__price {
    font-size: 1.625rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.plan-card.current .plan-card__price { color: #fff; }

.plan-card__period {
    font-size: 0.875rem;
    font-weight: 500;
}

.plan-card__features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.plan-card__feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--text-body);
}

.plan-card.current .plan-card__feature { color: rgba(255,255,255,0.9); }

.plan-card__feature svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.plan-card.current .plan-card__feature svg { stroke: rgba(255,255,255,0.9); }

.btn-change-plan {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    border: 1.5px solid rgba(124, 58, 237, 0.3);
    background: transparent;
    color: var(--color-primary);
    font-family: var(--font);
    transition: var(--transition);
}

.btn-change-plan:hover { background: rgba(124, 58, 237, 0.06); }

.btn-change-plan.disabled {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.7);
    cursor: default;
}

/* Histórico de pagamentos */
.payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.payment-row:last-child { border-bottom: none; }

.payment-row__amount {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-heading);
}

.payment-row__detail {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.payment-badge {
    padding: 3px 10px;
    background: #D1FAE5;
    color: #065F46;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Cancelar assinatura */
.cancel-section {
    background: #fff;
    border: 1.5px solid #FECACA;
    border-radius: var(--radius-xl);
    padding: 22px 28px;
}

.cancel-section__title {
    font-size: 1rem;
    font-weight: 700;
    color: #DC2626;
    margin-bottom: 4px;
}

.cancel-section__desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.btn-cancel-plan {
    padding: 9px 20px;
    background: transparent;
    border: 1.5px solid #DC2626;
    color: #DC2626;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    font-family: var(--font);
    transition: var(--transition);
}

.btn-cancel-plan:hover { background: #FEF2F2; }

/* ================================================================
   CONFIGURAÇÕES
   ================================================================ */

.settings-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 4px;
}

.toggle-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    gap: 20px;
}

.toggle-row:last-of-type { border-bottom: none; }

.toggle-row__info {}

.toggle-row__label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 3px;
}

.toggle-row__desc {
    font-size: 0.8125rem;
    color: var(--color-primary);
}

/* Toggle switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    inset: 0;
    background: #D1D5DB;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: 0.3s ease;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: 0.3s ease;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--gradient-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.markup-hint {
    font-size: 0.8125rem;
    color: var(--color-primary);
    margin-top: 6px;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.btn-save {
    padding: 12px 28px;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    font-family: var(--font);
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
    transition: var(--transition);
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* ================================================================
   MODAL DE CONFIRMAÇÃO
   ================================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 5, 32, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    padding: 32px 28px;
    width: 100%;
    max-width: 420px;
    transform: translateY(16px) scale(0.98);
    transition: transform 0.25s ease, opacity 0.25s ease;
    opacity: 0;
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal__title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.modal__desc {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 28px;
}

.modal__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-modal-back {
    padding: 11px 22px;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-heading);
    cursor: pointer;
    font-family: var(--font);
    transition: var(--transition);
}

.btn-modal-back:hover {
    border-color: var(--text-muted);
}

.btn-modal-confirm {
    padding: 11px 22px;
    background: #DC2626;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    font-family: var(--font);
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.3);
}

.btn-modal-confirm:hover {
    background: #B91C1C;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.4);
}
