/* ═══════════════════════════════════════════════════════════════════════════
   BARBERPRIME CLIENT PANEL — STYLESHEET
   Painel do cliente · Visual premium · Dark-friendly
═══════════════════════════════════════════════════════════════════════════ */

/* Namespace: .bpcp-* */
.bpcp-panel,
.bpcp-login-card {
    --bpcp-gold:       #D4AF37;
    --bpcp-gold-light: #E4C565;
    --bpcp-gold-dark:  #B8960C;
    --bpcp-ink:        #0D0B07;
    --bpcp-ink-600:    #2A2620;
    --bpcp-ink-500:    #3E382D;
    --bpcp-ink-400:    #7A6F5A;
    --bpcp-ink-300:    #A99C7E;
    --bpcp-cream:      #F5F0E8;
    --bpcp-cream-soft: #FAFAF7;
    --bpcp-border:     #E8E0D0;
    --bpcp-success:    #2e7d32;
    --bpcp-warn:       #d35400;
    --bpcp-danger:     #c0392b;
    --bpcp-info:       #1565c0;
    --bpcp-r:          12px;
    --bpcp-r-lg:       16px;
    --bpcp-shadow:     0 2px 10px rgba(13, 11, 7, 0.06);
    --bpcp-shadow-lg:  0 20px 40px -20px rgba(13, 11, 7, 0.25);

    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--bpcp-ink);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

[data-theme="dark"] .bpcp-panel,
[data-theme="dark"] .bpcp-login-card {
    --bpcp-ink:        #F5F0E8;
    --bpcp-ink-600:    #CFC2A3;
    --bpcp-ink-500:    #A99C7E;
    --bpcp-ink-400:    #7A6F5A;
    --bpcp-ink-300:    #4A3C24;
    --bpcp-cream:      #14110B;
    --bpcp-cream-soft: #1A1710;
    --bpcp-border:     rgba(212, 175, 55, 0.18);
    --bpcp-shadow:     0 2px 14px rgba(0, 0, 0, 0.35);
    --bpcp-shadow-lg:  0 20px 60px rgba(0, 0, 0, 0.5);
}

/* ═══ LOGIN CARD ═══════════════════════════════════════════════════════ */
.bpcp-login-card {
    max-width: 440px;
    margin: 48px auto;
    padding: 44px 36px;
    background: var(--bpcp-cream-soft);
    border: 1px solid var(--bpcp-border);
    border-radius: var(--bpcp-r-lg);
    box-shadow: var(--bpcp-shadow-lg);
}
.bpcp-login-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 8px;
    color: var(--bpcp-ink);
}
.bpcp-login-sub {
    color: var(--bpcp-ink-500);
    margin: 0 0 28px;
    font-size: 0.95rem;
}
.bpcp-login-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--bpcp-ink);
}
.bpcp-login-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 1rem;
    border: 1.5px solid var(--bpcp-border);
    border-radius: 10px;
    background: var(--bpcp-cream);
    color: var(--bpcp-ink);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bpcp-login-form input[type="email"]:focus {
    border-color: var(--bpcp-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    outline: none;
}
.bpcp-login-form button {
    width: 100%;
    margin-top: 16px;
}
.bpcp-login-hint {
    text-align: center;
    color: var(--bpcp-ink-500);
    margin: 18px 0 0;
}
.bpcp-already-logged {
    text-align: center;
    padding: 40px 20px;
}
.bpcp-already-logged a { color: var(--bpcp-gold-dark); text-decoration: underline; }

/* ═══ BUTTONS ═════════════════════════════════════════════════════════ */
.bpcp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    font-family: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    line-height: 1;
    white-space: nowrap;
}
.bpcp-btn-primary {
    background: linear-gradient(135deg, var(--bpcp-gold-light), var(--bpcp-gold) 50%, var(--bpcp-gold-dark));
    color: var(--bpcp-ink);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.28);
}
.bpcp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
    color: var(--bpcp-ink);
}
.bpcp-btn-ghost {
    background: transparent;
    border-color: var(--bpcp-border);
    color: var(--bpcp-ink);
}
.bpcp-btn-ghost:hover {
    border-color: var(--bpcp-gold);
    color: var(--bpcp-gold-dark);
}

/* ═══ PANEL LAYOUT ════════════════════════════════════════════════════ */
.bpcp-panel {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px;
}

.bpcp-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--bpcp-cream-soft);
    border: 1px solid var(--bpcp-border);
    border-radius: var(--bpcp-r-lg);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.bpcp-panel-greeting {
    display: flex;
    align-items: center;
    gap: 14px;
}
.bpcp-panel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bpcp-gold-light), var(--bpcp-gold-dark));
    color: var(--bpcp-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
}
.bpcp-panel-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--bpcp-ink);
}
.bpcp-panel-sub {
    margin: 2px 0 0;
    font-size: 0.88rem;
    color: var(--bpcp-ink-500);
}
.bpcp-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 0.85rem;
    color: var(--bpcp-ink-500);
    border: 1px solid var(--bpcp-border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}
.bpcp-logout:hover {
    border-color: var(--bpcp-danger);
    color: var(--bpcp-danger);
}

/* Sidebar + content grid */
.bpcp-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
}
@media (max-width: 820px) {
    .bpcp-layout { grid-template-columns: 1fr; }
}

.bpcp-sidebar {
    background: var(--bpcp-cream-soft);
    border: 1px solid var(--bpcp-border);
    border-radius: var(--bpcp-r-lg);
    padding: 12px;
    align-self: flex-start;
    position: sticky;
    top: 16px;
}
@media (max-width: 820px) {
    .bpcp-sidebar { position: static; display: flex; overflow-x: auto; gap: 4px; }
}

.bpcp-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bpcp-ink-500);
    text-decoration: none;
    transition: all 0.15s;
    margin-bottom: 2px;
    white-space: nowrap;
}
.bpcp-nav-item:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--bpcp-gold-dark);
}
.bpcp-nav-item.is-active {
    background: linear-gradient(135deg, #1A1710, #2A2620);
    color: var(--bpcp-gold);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 14px -4px rgba(212, 175, 55, 0.3);
}
.bpcp-nav-icon { font-size: 1rem; }
.bpcp-nav-label { flex: 1; }
.bpcp-nav-badge {
    background: var(--bpcp-danger);
    color: #fff;
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 100px;
    font-weight: 700;
}

.bpcp-content {
    background: var(--bpcp-cream-soft);
    border: 1px solid var(--bpcp-border);
    border-radius: var(--bpcp-r-lg);
    padding: 28px;
    min-height: 400px;
}
@media (max-width: 640px) {
    .bpcp-content { padding: 18px; }
}

/* ═══ TAB HEADER ══════════════════════════════════════════════════════ */
.bpcp-tab-header { margin-bottom: 24px; }
.bpcp-tab-header h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--bpcp-ink);
}
.bpcp-tab-header p {
    font-size: 0.9rem;
    color: var(--bpcp-ink-500);
    margin: 0;
}
.bpcp-back {
    display: inline-block;
    font-size: 0.82rem;
    color: var(--bpcp-ink-500);
    text-decoration: none;
    margin-bottom: 10px;
}
.bpcp-back:hover { color: var(--bpcp-gold-dark); }

/* ═══ HERO CARD (dashboard) ═══════════════════════════════════════════ */
/* Hero card — sempre fundo escuro (não inverte com tema) */
.bpcp-hero-card {
    background: linear-gradient(135deg, #1A1710, #2A2620);
    color: #F5F0E8;
    border-radius: var(--bpcp-r-lg);
    padding: 32px 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.15);
}
.bpcp-hero-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 400px 200px at 80% 0%, rgba(212, 175, 55, 0.22), transparent 60%);
    pointer-events: none;
}
.bpcp-hero-card.bpcp-tone-warn {
    background: linear-gradient(135deg, #5c2817, #7d3521);
}
.bpcp-hero-text { position: relative; z-index: 1; }
.bpcp-hero-eyebrow {
    margin-bottom: 10px;
    color: #D4AF37;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.bpcp-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px;
    color: #F5F0E8 !important; /* nunca herda */
}
.bpcp-hero-desc {
    color: rgba(245, 240, 232, 0.85);
    font-size: 0.92rem;
    margin: 0 0 22px;
}
.bpcp-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.bpcp-hero-actions .bpcp-btn-ghost {
    border-color: rgba(245, 240, 232, 0.3);
    color: var(--bpcp-cream);
}
.bpcp-hero-actions .bpcp-btn-ghost:hover {
    border-color: var(--bpcp-gold);
    color: var(--bpcp-gold);
    background: rgba(212, 175, 55, 0.1);
}

/* ═══ STATS GRID ══════════════════════════════════════════════════════ */
.bpcp-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.bpcp-stat {
    background: var(--bpcp-cream);
    border: 1px solid var(--bpcp-border);
    border-radius: var(--bpcp-r);
    padding: 14px 18px;
}
.bpcp-stat-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bpcp-ink-500);
    margin-bottom: 4px;
}
.bpcp-stat-value {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--bpcp-ink);
}

/* ═══ QUICK ACTIONS ═══════════════════════════════════════════════════ */
.bpcp-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}
.bpcp-quick-action {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bpcp-cream);
    border: 1px solid var(--bpcp-border);
    border-radius: var(--bpcp-r);
    color: var(--bpcp-ink);
    text-decoration: none;
    transition: all 0.2s;
}
.bpcp-quick-action:hover {
    border-color: var(--bpcp-gold);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.12);
}
.bpcp-quick-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.12);
    border-radius: 10px;
}
.bpcp-quick-action strong {
    display: block;
    font-size: 0.92rem;
    color: var(--bpcp-ink);
}
.bpcp-quick-action small {
    display: block;
    font-size: 0.75rem;
    color: var(--bpcp-ink-500);
    margin-top: 2px;
}

/* ═══ CARDS & TABLES ══════════════════════════════════════════════════ */
.bpcp-card {
    background: var(--bpcp-cream);
    border: 1px solid var(--bpcp-border);
    border-radius: var(--bpcp-r);
    padding: 20px 24px;
    margin-bottom: 16px;
}
.bpcp-card-compact { padding: 6px; }
.bpcp-card h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--bpcp-ink);
}
.bpcp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}
.bpcp-card-header h3 { margin: 0; }
.bpcp-card-header a {
    font-size: 0.85rem;
    color: var(--bpcp-gold-dark);
    text-decoration: none;
}

.bpcp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.bpcp-table th,
.bpcp-table td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--bpcp-border);
}
.bpcp-table th {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--bpcp-ink-500);
    font-weight: 700;
}

/* ═══ SUBSCRIPTION ════════════════════════════════════════════════════ */
.bpcp-sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.bpcp-sub-row {
    padding: 14px 16px;
    background: var(--bpcp-cream-soft);
    border-radius: 10px;
}
.bpcp-sub-row span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bpcp-ink-500);
    margin-bottom: 4px;
}
.bpcp-sub-row strong {
    display: block;
    font-size: 1rem;
    color: var(--bpcp-ink);
}
.bpcp-sub-days { display: block; margin-top: 2px; font-size: 0.78rem; color: var(--bpcp-ink-500); font-weight: 400; }
.bpcp-sub-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid var(--bpcp-border);
}

.bpcp-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
}
.bpcp-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--bpcp-ink-500);
}
.bpcp-features-list li svg { color: var(--bpcp-gold); flex-shrink: 0; margin-top: 2px; }

/* ═══ TICKETS ═════════════════════════════════════════════════════════ */
.bpcp-list-actions { margin-bottom: 16px; }

.bpcp-ticket-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bpcp-ticket-list li {
    border-bottom: 1px solid var(--bpcp-border);
}
.bpcp-ticket-list li:last-child { border-bottom: 0; }
.bpcp-ticket-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--bpcp-ink);
    transition: background 0.15s;
    flex-wrap: wrap;
}
.bpcp-ticket-list a:hover { background: rgba(212, 175, 55, 0.06); }
.bpcp-ticket-subject {
    flex: 1;
    font-weight: 500;
    font-size: 0.92rem;
    min-width: 180px;
}
.bpcp-ticket-list small {
    color: var(--bpcp-ink-500);
    font-size: 0.78rem;
}

.bpcp-thread {
    margin: 20px 0;
}
.bpcp-msg {
    padding: 16px 18px;
    margin-bottom: 12px;
    border-radius: var(--bpcp-r);
    background: var(--bpcp-cream);
    border: 1px solid var(--bpcp-border);
}
.bpcp-msg.is-staff {
    border-left: 3px solid var(--bpcp-gold);
    background: rgba(212, 175, 55, 0.04);
}
.bpcp-msg.is-client {
    border-left: 3px solid var(--bpcp-info);
}
.bpcp-msg-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.bpcp-msg-head strong { font-size: 0.9rem; color: var(--bpcp-ink); }
.bpcp-msg-tag {
    font-size: 0.7rem;
    background: var(--bpcp-cream-soft);
    padding: 2px 8px;
    border-radius: 100px;
    color: var(--bpcp-ink-500);
}
.bpcp-msg-head small {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--bpcp-ink-500);
}
.bpcp-msg-body {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--bpcp-ink-500);
}
.bpcp-msg-body p { margin: 0 0 10px; }

/* ═══ FORMS ═══════════════════════════════════════════════════════════ */
.bpcp-field { margin-bottom: 18px; }
.bpcp-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--bpcp-ink);
}
.bpcp-field input[type="text"],
.bpcp-field input[type="email"],
.bpcp-field input[type="tel"],
.bpcp-field input[type="url"],
.bpcp-field select,
.bpcp-field textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1.5px solid var(--bpcp-border);
    border-radius: 10px;
    background: var(--bpcp-cream);
    color: var(--bpcp-ink);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bpcp-field input:focus,
.bpcp-field select:focus,
.bpcp-field textarea:focus {
    border-color: var(--bpcp-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    outline: none;
}
.bpcp-field input:disabled {
    background: var(--bpcp-cream-soft);
    color: var(--bpcp-ink-500);
    cursor: not-allowed;
}
.bpcp-field textarea { resize: vertical; min-height: 100px; }
.bpcp-field small {
    display: block;
    font-size: 0.76rem;
    color: var(--bpcp-ink-500);
    margin-top: 4px;
}

.bpcp-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 560px) { .bpcp-grid-2 { grid-template-columns: 1fr; } }

.bpcp-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid var(--bpcp-border);
    margin-top: 6px;
}

.bpcp-profile-form,
.bpcp-ticket-form,
.bpcp-reply-form {
    background: var(--bpcp-cream);
    border: 1px solid var(--bpcp-border);
    border-radius: var(--bpcp-r);
    padding: 24px;
    margin-bottom: 18px;
}

.bpcp-reply-form {
    margin-top: 20px;
}
.bpcp-reply-form label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.bpcp-reply-form textarea {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1.5px solid var(--bpcp-border);
    border-radius: 10px;
    background: var(--bpcp-cream-soft);
    box-sizing: border-box;
    margin-bottom: 12px;
    resize: vertical;
    min-height: 100px;
}

.bpcp-profile-danger {
    border-color: rgba(192, 57, 43, 0.2);
    background: rgba(192, 57, 43, 0.03);
    margin-top: 20px;
}

/* ═══ DOWNLOADS ═══════════════════════════════════════════════════════ */
.bpcp-dl-group { margin-bottom: 24px; }
.bpcp-dl-cat-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bpcp-ink-500);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
}
.bpcp-dl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.bpcp-dl-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    background: var(--bpcp-cream);
    border: 1px solid var(--bpcp-border);
    border-radius: var(--bpcp-r);
    transition: all 0.2s;
}
.bpcp-dl-card:hover {
    border-color: var(--bpcp-gold);
    transform: translateY(-2px);
    box-shadow: var(--bpcp-shadow);
}
.bpcp-dl-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--bpcp-ink);
}
.bpcp-dl-desc {
    font-size: 0.82rem;
    color: var(--bpcp-ink-500);
    margin: 0 0 10px;
}
.bpcp-dl-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.bpcp-dl-tag {
    font-size: 0.7rem;
    background: var(--bpcp-cream-soft);
    color: var(--bpcp-ink-500);
    padding: 2px 8px;
    border-radius: 100px;
    font-weight: 500;
}
.bpcp-dl-btn { align-self: stretch; }

/* ═══ NOTIFICATIONS ═══════════════════════════════════════════════════ */
.bpcp-notif-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bpcp-notif-item {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bpcp-cream);
    border: 1px solid var(--bpcp-border);
    border-radius: var(--bpcp-r);
    margin-bottom: 10px;
    transition: all 0.15s;
}
.bpcp-notif-item.is-unread {
    border-left: 3px solid var(--bpcp-gold);
    background: rgba(212, 175, 55, 0.03);
}
.bpcp-notif-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}
.bpcp-notif-body strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--bpcp-ink);
}
.bpcp-notif-body p {
    font-size: 0.88rem;
    color: var(--bpcp-ink-500);
    margin: 0 0 6px;
    line-height: 1.5;
}
.bpcp-notif-body small {
    font-size: 0.75rem;
    color: var(--bpcp-ink-500);
}
.bpcp-notif-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.82rem;
    color: var(--bpcp-gold-dark);
    text-decoration: none;
    font-weight: 500;
}

/* ═══ BADGES ══════════════════════════════════════════════════════════ */
.bpcp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.bpcp-tone-info    { background: #e3f2fd; color: #1565c0; }
.bpcp-tone-warn    { background: #fff8e1; color: #ef6c00; }
.bpcp-tone-success { background: #e8f5e9; color: #2e7d32; }
.bpcp-tone-danger  { background: #ffebee; color: #c62828; }
.bpcp-tone-muted   { background: #f5f5f5; color: #666; }
.bpcp-tone-ok      { background: rgba(46,125,50,.1); color: #2e7d32; }

[data-theme="dark"] .bpcp-tone-info    { background: rgba(21,101,192,.18); color: #90caf9; }
[data-theme="dark"] .bpcp-tone-warn    { background: rgba(239,108,0,.15); color: #ffb74d; }
[data-theme="dark"] .bpcp-tone-success { background: rgba(46,125,50,.18); color: #81c784; }
[data-theme="dark"] .bpcp-tone-danger  { background: rgba(198,40,40,.18); color: #ef9a9a; }
[data-theme="dark"] .bpcp-tone-muted   { background: rgba(245,245,245,.08); color: #a99c7e; }

/* ═══ NOTICES ═════════════════════════════════════════════════════════ */
.bpcp-notice {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    font-weight: 500;
}
.bpcp-notice-success { background: #e8f5e9; color: #1b5e20; border-left: 4px solid #2e7d32; }
.bpcp-notice-danger  { background: #ffebee; color: #8b0000; border-left: 4px solid #c62828; }
.bpcp-notice-info    { background: #e3f2fd; color: #0d47a1; border-left: 4px solid #1565c0; }
.bpcp-notice-muted   { background: #f5f5f5; color: #555; border-left: 4px solid #999; }

/* ═══ EMPTY STATES ═══════════════════════════════════════════════════ */
.bpcp-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--bpcp-ink-500);
}
.bpcp-empty p { font-size: 1rem; margin: 0 0 6px; }
.bpcp-empty small { color: var(--bpcp-ink-400); font-size: 0.85rem; }

/* ═══ MONO ═══════════════════════════════════════════════════════════ */
.bpcp-mono {
    font-family: 'JetBrains Mono', 'Menlo', 'Monaco', monospace;
    font-size: 0.88em;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bpcp-panel *, .bpcp-login-card * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TAB: MEU SITE — credenciais de acesso ao WP do cliente
═══════════════════════════════════════════════════════════════════════════ */

.bpcp-tab-my-site .bpcp-empty-state {
    text-align: center;
    padding: 48px 32px;
}
.bpcp-empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}
.bpcp-empty-state h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    margin: 0 0 12px;
    color: var(--bpcp-ink);
}
.bpcp-empty-state p {
    color: var(--bpcp-ink-500);
    margin: 0 0 16px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* Card principal de credenciais — sempre escuro (independente do tema) */
.bpcp-site-card {
    background: linear-gradient(135deg, #1A1710, #2A2620);
    color: #F5F0E8;
    border-radius: var(--bpcp-r-lg);
    padding: 28px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px -20px rgba(212, 175, 55, 0.25);
    border: 1px solid rgba(212, 175, 55, 0.15);
}
.bpcp-site-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.14), transparent 70%);
    pointer-events: none;
}

.bpcp-site-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.bpcp-site-card-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--bpcp-gold);
    margin-bottom: 4px;
}
.bpcp-site-card-head h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--bpcp-cream);
    margin: 0;
}
.bpcp-site-open {
    white-space: nowrap;
}

/* Lista de credenciais */
.bpcp-cred-list {
    background: rgba(245, 240, 232, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--bpcp-r);
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.bpcp-cred-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 14px;
    padding: 18px 20px;
    align-items: center;
}
.bpcp-cred-row + .bpcp-cred-row {
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}
@media (max-width: 640px) {
    .bpcp-cred-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}
.bpcp-cred-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(245, 240, 232, 0.65);
}
.bpcp-cred-label svg {
    color: var(--bpcp-gold);
    flex-shrink: 0;
}
.bpcp-cred-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.bpcp-cred-link {
    color: var(--bpcp-gold);
    font-family: 'JetBrains Mono', 'Menlo', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}
.bpcp-cred-link:hover {
    text-decoration: underline;
}
.bpcp-cred-mono {
    font-family: 'JetBrains Mono', 'Menlo', monospace;
    font-size: 0.92rem;
    color: var(--bpcp-cream);
    background: rgba(13, 11, 7, 0.4);
    padding: 6px 12px;
    border-radius: 6px;
    flex: 1;
    min-width: 0;
    word-break: break-all;
    border: 1px solid rgba(212, 175, 55, 0.12);
}
.bpcp-cred-password {
    letter-spacing: 0.1em;
}
.bpcp-cred-password[data-revealed="1"] {
    letter-spacing: normal;
    color: var(--bpcp-gold);
}

/* Action buttons */
.bpcp-copy-btn,
.bpcp-reveal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--bpcp-gold);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.bpcp-copy-btn:hover,
.bpcp-reveal-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--bpcp-gold);
}
.bpcp-copy-btn.is-copied {
    background: rgba(46, 125, 50, 0.2);
    border-color: rgba(46, 125, 50, 0.5);
    color: #81c784;
}
.bpcp-copy-btn svg,
.bpcp-reveal-btn svg {
    flex-shrink: 0;
}

/* Security notice inside card */
.bpcp-site-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 20px;
    padding: 14px 18px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 10px;
    font-size: 0.86rem;
    line-height: 1.55;
    color: rgba(245, 240, 232, 0.8);
    position: relative;
    z-index: 1;
}
.bpcp-site-notice span {
    font-size: 1.1rem;
    flex-shrink: 0;
}
.bpcp-site-notice p {
    margin: 0;
}
.bpcp-site-notice strong {
    color: var(--bpcp-gold);
    display: block;
    margin-bottom: 2px;
}

/* Notas do admin */
.bpcp-site-notes h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    margin: 0 0 12px;
}
.bpcp-site-notes-body {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--bpcp-ink-500);
}
.bpcp-site-notes-body p { margin: 0 0 10px; }
.bpcp-site-notes-body p:last-child { margin-bottom: 0; }

/* Tips grid */
.bpcp-site-tips {
    margin-top: 8px;
}
.bpcp-site-tips h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--bpcp-ink);
}
.bpcp-tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}
.bpcp-tip {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bpcp-cream);
    border: 1px solid var(--bpcp-border);
    border-radius: var(--bpcp-r);
    align-items: flex-start;
}
.bpcp-tip-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}
.bpcp-tip strong {
    display: block;
    font-size: 0.9rem;
    color: var(--bpcp-ink);
    margin-bottom: 2px;
}
.bpcp-tip small {
    display: block;
    font-size: 0.8rem;
    color: var(--bpcp-ink-500);
    line-height: 1.5;
}

/* Warning notice */
.bpcp-notice-warning {
    background: #fff8e1;
    color: #ef6c00;
    border-left: 4px solid #ef6c00;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
[data-theme="dark"] .bpcp-notice-warning {
    background: rgba(239, 108, 0, 0.12);
    color: #ffb74d;
}

.bpcp-quick-highlight {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(212, 175, 55, 0.04)) !important;
    border-color: var(--bpcp-gold) !important;
    position: relative;
    overflow: hidden;
}
.bpcp-quick-highlight::before {
    content: '✨';
    position: absolute;
    top: 8px;
    right: 10px;
    font-size: 0.9rem;
    opacity: 0.6;
}
.bpcp-quick-highlight .bpcp-quick-icon {
    background: linear-gradient(135deg, var(--bpcp-gold-light), var(--bpcp-gold-dark)) !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FIX v2 — contraste, responsividade, espaçamento
═══════════════════════════════════════════════════════════════════════════ */

/* Container mais largo */
.bpcp-panel {
    max-width: 1280px;
    padding: 24px 20px;
}

/* Sidebar mais larga + responsividade refeita */
.bpcp-layout {
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: flex-start;
}
@media (max-width: 1024px) {
    .bpcp-layout {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }
}
@media (max-width: 820px) {
    .bpcp-panel { padding: 16px 12px; }
    .bpcp-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .bpcp-sidebar {
        position: static !important;
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 4px;
        padding: 8px;
        overflow: visible;
    }
    .bpcp-content {
        padding: 20px 16px;
    }
    .bpcp-panel-header {
        padding: 16px 18px;
    }
    .bpcp-panel-title {
        font-size: 1.2rem;
    }
}
@media (max-width: 540px) {
    .bpcp-sidebar {
        grid-template-columns: repeat(2, 1fr);
    }
    .bpcp-nav-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    .bpcp-nav-label {
        font-size: 0.82rem;
    }
}

/* Hero card — fix contraste do botão "Renovar agora" + título */
.bpcp-hero-card {
    padding: 32px 28px;
}
.bpcp-hero-title {
    color: var(--bpcp-cream) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-weight: 700;
}
.bpcp-hero-card .bpcp-btn-primary {
    color: #0D0B07 !important;
    text-shadow: none;
    background: linear-gradient(135deg, #F0D068, #D4AF37 60%, #B8960C) !important;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
    font-weight: 700;
    border: none;
}
.bpcp-hero-card .bpcp-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.6);
}
.bpcp-hero-card .bpcp-btn-ghost {
    color: var(--bpcp-cream) !important;
    border-color: rgba(245, 240, 232, 0.4);
    background: rgba(245, 240, 232, 0.05);
}
.bpcp-hero-card .bpcp-btn-ghost:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--bpcp-gold);
    color: var(--bpcp-gold);
}
.bpcp-hero-desc {
    color: rgba(245, 240, 232, 0.85) !important;
    font-size: 0.95rem;
}

/* Stats cards — mais respiração */
.bpcp-stats-grid {
    gap: 14px;
}
.bpcp-stat {
    padding: 18px 20px;
}
.bpcp-stat-value {
    font-size: 1.4rem;
}

/* Quick actions — responsive layout */
@media (max-width: 540px) {
    .bpcp-quick-actions {
        grid-template-columns: 1fr;
    }
    .bpcp-quick-action {
        padding: 16px 18px;
    }
}

/* Botão Sair com mais visibilidade */
.bpcp-logout {
    background: rgba(192, 57, 43, 0.06);
    border-color: rgba(192, 57, 43, 0.2);
}
.bpcp-logout:hover {
    background: rgba(192, 57, 43, 0.12);
    border-color: var(--bpcp-danger);
    color: var(--bpcp-danger);
}

/* Cards de credenciais ("Meu Site") em mobile */
@media (max-width: 640px) {
    .bpcp-site-card { padding: 20px 18px; }
    .bpcp-site-card-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .bpcp-cred-list { font-size: 0.88rem; }
    .bpcp-cred-row { padding: 14px 16px; }
    .bpcp-cred-value { width: 100%; }
    .bpcp-cred-mono {
        font-size: 0.86rem;
        padding: 8px 10px;
    }
    .bpcp-copy-btn, .bpcp-reveal-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Texto do "Renove agora" mais legível */
.bpcp-hero-card .bpcp-btn-primary {
    color: #0a0907 !important;
    -webkit-text-stroke: 0;
}

/* Stat values em modo escuro mais legíveis */
[data-theme="dark"] .bpcp-stat-value,
.bpcp-stat-value {
    color: var(--bpcp-ink);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TAB: Dados pessoais
═══════════════════════════════════════════════════════════════════════════ */

.bpcp-personal-form .bpcp-card {
    margin-bottom: 16px;
}
.bpcp-personal-form h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    margin: 0 0 18px;
    color: var(--bpcp-ink);
}

.bpcp-form-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 14px;
}
.bpcp-grid-2 { grid-template-columns: 1fr 1fr; }
.bpcp-grid-3 { grid-template-columns: 100px 1fr 1fr; }
.bpcp-grid-cep { grid-template-columns: 1fr 100px; }

@media (max-width: 540px) {
    .bpcp-grid-2,
    .bpcp-grid-3,
    .bpcp-grid-cep { grid-template-columns: 1fr; }
}

.bpcp-form-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 14px;
}
.bpcp-form-row:last-child { margin-bottom: 0; }
.bpcp-form-row label {
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--bpcp-ink-500);
}
.bpcp-form-row input,
.bpcp-form-row select {
    padding: 11px 14px;
    border: 1px solid var(--bpcp-border);
    border-radius: 8px;
    background: var(--bpcp-cream);
    color: var(--bpcp-ink);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s;
}
.bpcp-form-row input:focus,
.bpcp-form-row select:focus {
    outline: none;
    border-color: var(--bpcp-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
}

.bpcp-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0 4px;
}
.bpcp-form-actions .bpcp-help-text {
    color: var(--bpcp-ink-500);
    font-size: 0.84rem;
    margin: 0;
}

.bpcp-help-text {
    color: var(--bpcp-ink-500);
    font-size: 0.84rem;
    margin: 0;
}

/* Stat empty (Domínio não configurado) */
.bpcp-stat-empty {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    color: var(--bpcp-ink-500);
}
.bpcp-stat-empty small {
    font-size: 0.85rem;
    font-weight: 500;
}
.bpcp-link-tiny {
    font-size: 0.75rem;
    color: var(--bpcp-gold);
    text-decoration: none;
    font-weight: 600;
}
.bpcp-link-tiny:hover { text-decoration: underline; }

/* Notice-success */
.bpcp-notice-success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #2e7d32;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}
[data-theme="dark"] .bpcp-notice-success {
    background: rgba(46, 125, 50, 0.15);
    color: #81c784;
}
