/* =============================================================
   SYNTAX — Tema Premium Dark + Lime
   ============================================================= */

:root {
    --bg-base:       #0a0a0a;
    --bg-surface:    #121212;
    --bg-elevated:   #1a1a1a;
    --bg-card:       #161616;
    --border:        #262626;
    --border-light:  #333333;

    --accent:        #c6ff00;
    --accent-hover:  #d4ff33;
    --accent-dark:   #9bcc00;
    --accent-glow:   rgba(198, 255, 0, 0.45);
    --accent-soft:   rgba(198, 255, 0, 0.10);

    --text:          #fafafa;
    --text-muted:    #8a8a8a;
    --text-dim:      #5a5a5a;

    --success:       #c6ff00;
    --danger:        #ff3b5c;
    --warning:       #ffb800;
    --info:          #00b8ff;

    --radius-sm:     10px;
    --radius:        14px;
    --radius-lg:     20px;
    --radius-pill:   50px;

    --transition:    all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
    background: var(--bg-base);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-image:
        radial-gradient(circle at 12% 18%, rgba(198, 255, 0, 0.06) 0%, transparent 35%),
        radial-gradient(circle at 88% 82%, rgba(198, 255, 0, 0.04) 0%, transparent 35%);
    background-attachment: fixed;
}

/* =============================================================
   TIPOGRAFIA E CORES UTILITARIAS
   ============================================================= */

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

.text-accent  { color: var(--accent) !important; }
.text-muted-2 { color: var(--text-muted) !important; }
.text-dim     { color: var(--text-dim) !important; }

.bg-base      { background: var(--bg-base) !important; }
.bg-surface   { background: var(--bg-surface) !important; }
.bg-elevated  { background: var(--bg-elevated) !important; }

/* =============================================================
   LOGIN
   ============================================================= */

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    position: relative;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    filter: blur(80px);
    opacity: 0.35;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    animation: fadeInUp 0.5s ease-out;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.brand-logo {
    text-align: center;
    margin-bottom: 2.25rem;
}

.brand-logo .logo-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.9rem;
    font-weight: 800;
    box-shadow: 0 10px 30px var(--accent-glow);
    animation: pulse-glow 3s infinite;
}

.brand-logo h2 {
    color: var(--text);
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
    font-size: 1.85rem;
}

.brand-logo h2 .text-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-logo small {
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 500;
}

/* =============================================================
   FORMULARIOS
   ============================================================= */

.form-label {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.form-control,
.form-select {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    transition: var(--transition);
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-elevated);
    border-color: var(--accent);
    color: var(--text);
    box-shadow: 0 0 0 4px var(--accent-soft);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-dim);
}

.input-group {
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: var(--transition);
    overflow: hidden;
}

.input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.input-group .input-group-text {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding-left: 1rem;
    padding-right: 0.5rem;
}

.input-group .form-control {
    background: transparent;
    border: none;
}

.input-group .form-control:focus {
    box-shadow: none;
    background: transparent;
}

/* =============================================================
   BOTOES BASE
   ============================================================= */

.btn {
    border-radius: var(--radius-pill);
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    letter-spacing: 0.2px;
}

.btn:focus { box-shadow: none; outline: none; }

/* Primario — lime */
.btn-primary {
    background: var(--accent);
    color: #000;
    box-shadow: 0 4px 20px rgba(198, 255, 0, 0.25);
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-hover);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--accent-glow);
}
.btn-primary:active { transform: translateY(0); }

/* Secundario — escuro */
.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--border-light);
    color: var(--text);
    transform: translateY(-1px);
}

/* Outline lime */
.btn-outline-accent {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-outline-accent:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* =============================================================
   BOTOES CRUD — coloridos e animados
   ============================================================= */

.btn-crud {
    border-radius: var(--radius-pill);
    padding: 0.5rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-crud i { transition: transform 0.3s; }
.btn-crud:hover i { transform: scale(1.2); }

/* Novo / Criar — lime preenchido */
.btn-new {
    background: var(--accent);
    color: #000;
    box-shadow: 0 4px 14px rgba(198, 255, 0, 0.3);
}
.btn-new:hover {
    background: var(--accent-hover);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px var(--accent-glow);
}

/* Visualizar — ciano */
.btn-view {
    background: rgba(0, 184, 255, 0.12);
    color: var(--info);
    border-color: rgba(0, 184, 255, 0.35);
}
.btn-view:hover {
    background: var(--info);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 184, 255, 0.4);
}

/* Editar — amarelo */
.btn-edit {
    background: rgba(255, 184, 0, 0.12);
    color: var(--warning);
    border-color: rgba(255, 184, 0, 0.35);
}
.btn-edit:hover {
    background: var(--warning);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 184, 0, 0.4);
}

/* Excluir — vermelho */
.btn-delete {
    background: rgba(255, 59, 92, 0.12);
    color: var(--danger);
    border-color: rgba(255, 59, 92, 0.35);
}
.btn-delete:hover {
    background: var(--danger);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 59, 92, 0.4);
}

/* Ripple */
.btn-crud::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.5) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}
.btn-crud:active::after {
    transform: scale(0);
    opacity: 0.35;
    transition: 0s;
}

/* =============================================================
   NAVBAR
   ============================================================= */

.navbar-syntax {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-syntax .navbar-brand {
    color: var(--text);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.navbar-syntax .navbar-brand .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.1rem;
    box-shadow: 0 4px 16px var(--accent-glow);
}

.navbar-syntax .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.95rem !important;
    border-radius: 10px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0.15rem;
}

.navbar-syntax .nav-link:hover,
.navbar-syntax .nav-link.active {
    color: var(--accent);
    background: var(--accent-soft);
}

.navbar-syntax .navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
}

.navbar-syntax .dropdown-menu {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.navbar-syntax .dropdown-item {
    color: var(--text-muted);
    padding: 0.55rem 0.9rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-syntax .dropdown-item:hover,
.navbar-syntax .dropdown-item:focus,
.navbar-syntax .dropdown-item.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.navbar-syntax .dropdown-item i {
    width: 18px;
    text-align: center;
    margin-right: 0.2rem;
}

.user-badge {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid rgba(198, 255, 0, 0.3);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =============================================================
   HERO / WELCOME
   ============================================================= */

.welcome-hero {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.welcome-hero::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198,255,0,0.18) 0%, transparent 70%);
    top: -120px;
    right: -120px;
    filter: blur(20px);
}

.welcome-hero h2 {
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    font-size: 1.85rem;
    position: relative;
}

.welcome-hero p {
    color: var(--text-muted);
    margin: 0.4rem 0 0;
    position: relative;
}

/* =============================================================
   CARDS
   ============================================================= */

.card-syntax {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.card-syntax:hover {
    border-color: var(--border-light);
}

/* Stat cards */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.stat-card .stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-card .stat-value {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -1px;
    line-height: 1;
}

.stat-card .stat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.3rem;
}

/* Module cards */
.module-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.6rem 1.2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text);
    display: block;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.module-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(198,255,0,0) 0%, rgba(198,255,0,0.07) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.module-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(198, 255, 0, 0.15);
    color: var(--text);
}

.module-card:hover::before { opacity: 1; }

.module-card .module-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.module-card:hover .module-icon {
    background: var(--accent);
    color: #000;
    transform: scale(1.1) rotate(-6deg);
    box-shadow: 0 6px 18px var(--accent-glow);
}

.module-card h6 {
    margin: 0;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.module-card .module-meta {
    color: var(--text-muted);
    font-size: 0.72rem;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

/* =============================================================
   SECTION TITLE
   ============================================================= */

.section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 14px;
    background: var(--accent);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* =============================================================
   TABELAS
   ============================================================= */

.table-syntax {
    width: 100%;
    color: var(--text);
    border-collapse: separate;
    border-spacing: 0;
}

.table-syntax thead th {
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.table-syntax tbody td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.table-syntax tbody tr {
    transition: background 0.2s;
}

.table-syntax tbody tr:hover {
    background: rgba(198, 255, 0, 0.03);
}

/* =============================================================
   SWEETALERT2 OVERRIDES
   ============================================================= */

.swal2-popup.swal2-syntax {
    background: var(--bg-surface) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7) !important;
}

.swal2-syntax .swal2-title {
    color: var(--text) !important;
    font-weight: 700 !important;
}

.swal2-syntax .swal2-html-container {
    color: var(--text-muted) !important;
}

.swal2-confirm-syntax {
    background: var(--accent) !important;
    color: #000 !important;
    border-radius: var(--radius-pill) !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: 0 4px 16px var(--accent-glow) !important;
}

.swal2-cancel-syntax {
    background: var(--bg-elevated) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-pill) !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 600 !important;
}

.swal2-toast.swal2-syntax {
    background: var(--bg-surface) !important;
    border: 1px solid var(--border) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5) !important;
}

.swal2-toast .swal2-title { color: var(--text) !important; }

/* =============================================================
   ANIMACOES
   ============================================================= */

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

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(30px, -20px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 10px 30px var(--accent-glow); }
    50%      { box-shadow: 0 10px 50px var(--accent-glow), 0 0 60px var(--accent-glow); }
}

.fade-in-up { animation: fadeInUp 0.5s ease-out; }

/* =============================================================
   PAGE HEADER
   ============================================================= */

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

.page-header h2 {
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    font-size: 1.6rem;
}

.page-header .page-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.2rem 0 0;
}

.breadcrumb-syntax {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.breadcrumb-syntax a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumb-syntax a:hover { color: var(--accent); }

.breadcrumb-syntax .sep { opacity: 0.4; }

/* =============================================================
   FILTER BAR
   ============================================================= */

.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.filter-bar .filter-search {
    flex: 1;
    min-width: 220px;
}

.filter-bar .form-control,
.filter-bar .form-select {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
}

/* =============================================================
   AVATAR
   ============================================================= */

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #000;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 1.4rem;
}

.avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 0.72rem;
}

.avatar-violet { background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 100%); color: #fff; }
.avatar-cyan   { background: linear-gradient(135deg, #67e8f9 0%, #06b6d4 100%); color: #000; }
.avatar-pink   { background: linear-gradient(135deg, #f9a8d4 0%, #db2777 100%); color: #fff; }
.avatar-orange { background: linear-gradient(135deg, #fdba74 0%, #ea580c 100%); color: #fff; }
.avatar-green  { background: linear-gradient(135deg, #86efac 0%, #16a34a 100%); color: #000; }
.avatar-blue   { background: linear-gradient(135deg, #93c5fd 0%, #2563eb 100%); color: #fff; }

/* =============================================================
   BADGES
   ============================================================= */

.badge-syntax {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-ativo {
    background: rgba(198, 255, 0, 0.12);
    color: var(--accent);
    border: 1px solid rgba(198, 255, 0, 0.3);
}

.badge-inativo {
    background: rgba(138, 138, 138, 0.12);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.badge-perfil {
    background: rgba(0, 184, 255, 0.12);
    color: var(--info);
    border: 1px solid rgba(0, 184, 255, 0.3);
}

.badge-admin {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #000;
    border: none;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}

/* =============================================================
   PAGINATION
   ============================================================= */

.pagination-syntax {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.pagination-syntax .pagination-info {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.pagination-syntax .pagination-controls {
    display: flex;
    gap: 0.3rem;
}

.pagination-syntax .page-btn {
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    padding: 0 0.7rem;
}

.pagination-syntax .page-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-syntax .page-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.pagination-syntax .page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* =============================================================
   FORM CHECK / SWITCH
   ============================================================= */

.form-check-input {
    background-color: var(--bg-elevated);
    border-color: var(--border);
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px var(--accent-soft);
    border-color: var(--accent);
}

.form-check-label {
    color: var(--text);
    cursor: pointer;
}

/* Switch */
.form-switch .form-check-input {
    width: 2.5em;
    height: 1.3em;
    background-color: var(--bg-elevated);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%238a8a8a'/%3e%3c/svg%3e");
}

.form-switch .form-check-input:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23000'/%3e%3c/svg%3e");
}

/* =============================================================
   ERROR / INVALID FIELDS
   ============================================================= */

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(255, 59, 92, 0.1);
}

.invalid-feedback {
    display: block;
    color: var(--danger);
    font-size: 0.78rem;
    margin-top: 0.35rem;
    font-weight: 500;
}

/* =============================================================
   EMPTY STATE
   ============================================================= */

.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.4;
    margin-bottom: 1rem;
    display: block;
}

.empty-state h6 {
    color: var(--text);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

/* =============================================================
   ACTIONS COLUMN
   ============================================================= */

.actions-cell {
    display: flex;
    gap: 0.35rem;
    justify-content: flex-end;
}

/* =============================================================
   TABS VERTICAIS (config)
   ============================================================= */

.nav-vertical {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: sticky;
    top: 90px;
}

.nav-vertical .nav-item-v {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.9rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    background: transparent;
    text-align: left;
}

.nav-vertical .nav-item-v i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.nav-vertical .nav-item-v:hover {
    color: var(--text);
    background: var(--accent-soft);
}

.nav-vertical .nav-item-v.active {
    color: var(--accent);
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    padding-left: calc(0.9rem - 3px);
}

.tab-pane-v { display: none; }
.tab-pane-v.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

/* =============================================================
   UPLOAD DE IMAGEM / LOGO
   ============================================================= */

.image-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.image-upload:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.image-upload img {
    max-width: 100%;
    max-height: 140px;
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

.image-upload .upload-placeholder {
    color: var(--text-muted);
    padding: 1.5rem 0;
}

.image-upload .upload-placeholder i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0.6;
}

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

.image-upload .upload-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 0.4rem;
}

/* Botao remover arquivo */
.btn-remove-file {
    background: rgba(255, 59, 92, 0.15);
    color: var(--danger);
    border: 1px solid rgba(255, 59, 92, 0.3);
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-remove-file:hover {
    background: var(--danger);
    color: #fff;
}

/* =============================================================
   ACAO FLUTUANTE (botao salvar) — config
   ============================================================= */

.save-bar {
    position: sticky;
    bottom: 16px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem 1.2rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.save-bar .save-hint {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* =============================================================
   LOGO CARDS (cliente / brand kit)
   ============================================================= */

.logo-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.logo-card:hover {
    border-color: var(--accent);
}

.logo-card .logo-preview {
    width: 100%;
    height: 110px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.logo-card .logo-preview.bg-dark { background: #0a0a0a; border: 1px solid var(--border); }

.logo-card .logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.logo-card .logo-nome {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.logo-card .logo-tipo {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.logo-card .logo-actions {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
}

/* =============================================================
   COLOR SWATCHES (brand kit)
   ============================================================= */

.color-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.color-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.25rem 0.7rem 0.25rem 0.25rem;
    transition: var(--transition);
}

.color-item:hover { border-color: var(--accent); }

.color-item input[type="color"] {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
}

.color-item input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; border-radius: 50%; }
.color-item input[type="color"]::-webkit-color-swatch { border: none; border-radius: 50%; }

.color-item input[type="text"] {
    background: transparent;
    border: none;
    color: var(--text);
    font-family: monospace;
    font-size: 0.82rem;
    width: 72px;
    text-transform: uppercase;
    outline: none;
}

.color-item .btn-remove-color {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0 0.2rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.color-item .btn-remove-color:hover { color: var(--danger); }

.btn-add-color {
    background: var(--bg-elevated);
    border: 1px dashed var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    padding: 0.3rem 0.9rem;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-add-color:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* =============================================================
   TAB CARD (cliente form)
   ============================================================= */

.tab-nav-horizontal {
    display: flex;
    gap: 0.3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.tab-nav-horizontal .tab-link {
    padding: 0.7rem 1.2rem;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tab-nav-horizontal .tab-link:hover { color: var(--text); }

.tab-nav-horizontal .tab-link.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.tab-nav-horizontal .tab-link .tab-counter {
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: var(--radius-pill);
    padding: 0.05rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
}

/* =============================================================
   PDF UPLOAD CARD
   ============================================================= */

.pdf-upload-card {
    background: var(--bg-elevated);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: var(--transition);
    position: relative;
}

.pdf-upload-card.has-file {
    border-style: solid;
    background: var(--bg-card);
}

.pdf-upload-card:hover { border-color: var(--accent); }

.pdf-upload-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 1.25rem 0;
    position: relative;
    text-align: center;
}

.pdf-upload-empty i {
    font-size: 2.4rem;
    color: var(--danger);
    opacity: 0.7;
    margin-bottom: 0.25rem;
}

.pdf-upload-empty .pdf-empty-title {
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.pdf-upload-empty small {
    color: var(--text-dim);
    font-size: 0.75rem;
}

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

.pdf-preview-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pdf-preview-row .pdf-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(255, 59, 92, 0.12);
    color: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 59, 92, 0.25);
}

.pdf-preview-row .pdf-info {
    flex: 1;
    min-width: 200px;
}

.pdf-preview-row .pdf-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.pdf-preview-row .pdf-meta {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.pdf-preview-row .pdf-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* =============================================================
   KANBAN
   ============================================================= */

.kanban {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

@media (max-width: 992px) {
    .kanban { grid-template-columns: repeat(2, minmax(280px, 1fr)); }
}
@media (max-width: 576px) {
    .kanban { grid-template-columns: 1fr; }
}

.kanban-col {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.kanban-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0.5rem 0.6rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.3rem;
}

.kanban-col-header .col-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text);
}

.kanban-col-header .col-title .col-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.kanban-col-header .col-count {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 0.1rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Status — cores das colunas */
.col-planejamento  .col-title { color: var(--text-muted); }
.col-em_andamento  .col-title { color: var(--info); }
.col-aprovacao     .col-title { color: var(--warning); }
.col-concluido     .col-title { color: var(--accent); }

.col-planejamento  .col-dot { background: var(--text-muted); }
.col-em_andamento  .col-dot { background: var(--info); }
.col-aprovacao     .col-dot { background: var(--warning); }
.col-concluido     .col-dot { background: var(--accent); }

/* Kanban card */
.kanban-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
    display: block;
    position: relative;
    overflow: hidden;
}

.kanban-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: var(--kanban-card-color, var(--accent));
}

.kanban-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color: var(--text);
}

.kanban-card .card-title {
    font-weight: 600;
    font-size: 0.92rem;
    margin: 0 0 0.4rem;
    color: var(--text);
    line-height: 1.3;
}

.kanban-card .card-cliente {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-bottom: 0.6rem;
}

.kanban-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.kanban-card .card-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.kanban-card .card-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    gap: 0.2rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.kanban-card:hover .card-actions { opacity: 1; }

.kanban-card .card-status-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 6px;
    padding: 0.15rem 0.35rem;
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--transition);
}

.kanban-card .card-status-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.kanban-empty {
    color: var(--text-dim);
    font-size: 0.82rem;
    text-align: center;
    padding: 1.5rem 0.5rem;
    border: 1px dashed var(--border);
    border-radius: 10px;
}

/* =============================================================
   MOOD BOARD / GALERIA DE REFERÊNCIAS
   ============================================================= */

.moodboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
}

.moodboard-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    aspect-ratio: 1;
}

.moodboard-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.moodboard-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.moodboard-item .mb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.6rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.moodboard-item:hover .mb-overlay { opacity: 1; }

.moodboard-item .mb-tipo {
    color: var(--accent);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.moodboard-item .mb-descricao {
    color: #fff;
    font-size: 0.78rem;
    margin-top: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.moodboard-item .mb-actions {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    display: flex;
    gap: 0.3rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.moodboard-item:hover .mb-actions { opacity: 1; }

.moodboard-item .mb-actions button,
.moodboard-item .mb-actions a {
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.78rem;
}

.moodboard-item .mb-actions .mb-delete:hover {
    background: var(--danger);
    border-color: var(--danger);
}

.moodboard-item .mb-actions .mb-open:hover {
    background: var(--info);
    border-color: var(--info);
}

/* Upload area de mood board */
.moodboard-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-align: center;
    padding: 0.5rem;
}

.moodboard-upload:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.moodboard-upload i {
    font-size: 2rem;
    opacity: 0.6;
}

.moodboard-upload span {
    font-size: 0.78rem;
}

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

/* =============================================================
   PROGRESS / PROJETO META
   ============================================================= */

.projeto-deadline {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 600;
}

.projeto-deadline.atrasado   { background: rgba(255, 59, 92, 0.15);  color: var(--danger);  border: 1px solid rgba(255, 59, 92, 0.3); }
.projeto-deadline.proximo    { background: rgba(255, 184, 0, 0.15);  color: var(--warning); border: 1px solid rgba(255, 184, 0, 0.3); }
.projeto-deadline.normal     { background: rgba(138, 138, 138, 0.1); color: var(--text-muted); border: 1px solid var(--border); }

/* =============================================================
   CRIATIVOS — Grid e cards
   ============================================================= */

.criativos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.criativo-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    position: relative;
}

.criativo-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    color: var(--text);
}

.criativo-card .criativo-thumb {
    width: 100%;
    aspect-ratio: 1;
    background: var(--bg-elevated);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.criativo-card .criativo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.criativo-card .criativo-thumb.formato-9-16  { aspect-ratio: 9/16; }
.criativo-card .criativo-thumb.formato-16-9  { aspect-ratio: 16/9; }
.criativo-card .criativo-thumb.formato-3-4   { aspect-ratio: 3/4; }
.criativo-card .criativo-thumb.formato-4-5   { aspect-ratio: 4/5; }

.criativo-card .criativo-thumb .thumb-empty {
    color: var(--text-dim);
    font-size: 2.5rem;
    opacity: 0.4;
}

.criativo-card .criativo-info {
    padding: 0.8rem;
}

.criativo-card .criativo-titulo {
    font-weight: 600;
    font-size: 0.88rem;
    margin: 0 0 0.4rem;
    line-height: 1.3;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.criativo-card .criativo-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.criativo-card .badge-status-overlay {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
}

.criativo-card .badge-rede {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    z-index: 2;
}

/* Status do criativo */
.badge-rascunho           { background: rgba(138,138,138,0.15); color: var(--text-muted); border: 1px solid var(--border); }
.badge-gerando            { background: rgba(0,184,255,0.15);   color: var(--info);       border: 1px solid rgba(0,184,255,0.3); }
.badge-gerado             { background: rgba(255,184,0,0.15);   color: var(--warning);    border: 1px solid rgba(255,184,0,0.3); }
.badge-aprovacao_interna  { background: rgba(0,184,255,0.15);   color: var(--info);       border: 1px solid rgba(0,184,255,0.3); }
.badge-aprovacao_cliente  { background: rgba(255,184,0,0.15);   color: var(--warning);    border: 1px solid rgba(255,184,0,0.3); }
.badge-aprovado           { background: rgba(198,255,0,0.15);   color: var(--accent);     border: 1px solid rgba(198,255,0,0.3); }
.badge-rejeitado          { background: rgba(255,59,92,0.15);   color: var(--danger);     border: 1px solid rgba(255,59,92,0.3); }
.badge-publicado          { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #000; }

/* =============================================================
   CRIATIVO — Tela de detalhe (criar/visualizar)
   ============================================================= */

.criativo-preview-wrapper {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
}

.criativo-preview-wrapper img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.criativo-preview-empty {
    text-align: center;
    color: var(--text-muted);
}

.criativo-preview-empty i {
    font-size: 4rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 1rem;
}

/* Loading da geração */
.criativo-generating {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.criativo-generating .ai-pulse {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow), transparent 70%);
    margin: 0 auto 1rem;
    animation: aiPulse 1.5s ease-in-out infinite;
}

@keyframes aiPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.3); opacity: 0.6; }
}

/* Versões */
.versoes-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.versao-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    background: var(--bg-elevated);
}

.versao-thumb:hover { border-color: var(--accent); }
.versao-thumb.atual { border-color: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }

.versao-thumb img { width: 100%; height: 100%; object-fit: cover; }

.versao-thumb .versao-num {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.75);
    color: var(--accent);
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    padding: 1px 0;
}

/* =============================================================
   SELECT VISUAL (chips/radio) — formato e rede social
   ============================================================= */

.chip-select {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.chip-select label {
    cursor: pointer;
}

.chip-select label input[type="radio"] {
    display: none;
}

.chip-select label .chip-content {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
}

.chip-select label:hover .chip-content {
    border-color: var(--accent);
    color: var(--text);
}

.chip-select label input[type="radio"]:checked + .chip-content {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 600;
    box-shadow: 0 4px 14px var(--accent-glow);
}

/* =============================================================
   CALENDÁRIO EDITORIAL
   ============================================================= */

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-nav h4 {
    margin: 0 0.5rem;
    font-weight: 700;
    text-transform: capitalize;
    min-width: 200px;
    text-align: center;
}

.calendar-nav-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.calendar-day-name {
    background: var(--bg-elevated);
    padding: 0.7rem;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.calendar-day {
    background: var(--bg-card);
    min-height: 130px;
    padding: 0.5rem;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-day:hover {
    background: var(--bg-elevated);
}

.calendar-day.outside-month {
    background: var(--bg-base);
    color: var(--text-dim);
    cursor: default;
}

.calendar-day.today {
    background: rgba(198, 255, 0, 0.06);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.calendar-day .day-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.calendar-day.today .day-number {
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 0 12px var(--accent-glow);
}

.calendar-event {
    background: var(--bg-elevated);
    border-left: 3px solid var(--accent);
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    font-size: 0.72rem;
    line-height: 1.3;
    color: var(--text);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
}

.calendar-event:hover {
    background: var(--accent-soft);
    color: var(--text);
    border-left-color: var(--accent-hover);
    transform: translateX(2px);
}

.calendar-event .event-rede {
    display: inline-block;
    margin-right: 0.3rem;
}

.calendar-event.status-planejado          { border-left-color: var(--text-muted); }
.calendar-event.status-em_producao        { border-left-color: var(--info); }
.calendar-event.status-aguardando_aprovacao { border-left-color: var(--warning); }
.calendar-event.status-aprovado           { border-left-color: var(--accent); }
.calendar-event.status-publicado          { border-left-color: var(--accent); background: var(--accent-soft); }
.calendar-event.status-cancelado          { border-left-color: var(--danger); opacity: 0.5; text-decoration: line-through; }

.calendar-more {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    padding: 0.15rem;
}

.calendar-add-btn {
    position: absolute;
    bottom: 0.3rem;
    right: 0.3rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    color: #000;
    border: none;
    font-size: 0.65rem;
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.calendar-day:hover .calendar-add-btn { opacity: 1; }

/* =============================================================
   AUDITORIA — JSON viewer
   ============================================================= */

.json-viewer {
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.82rem;
    color: var(--text-muted);
    overflow-x: auto;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
}

.json-viewer .json-key   { color: #00b8ff; }
.json-viewer .json-string{ color: var(--accent); }
.json-viewer .json-number{ color: #ffb800; }
.json-viewer .json-null  { color: var(--text-dim); font-style: italic; }

/* =============================================================
   EDITOR PRO (INPAINTING) — Layout Photoshop-like
   ============================================================= */

.editor-pro {
    display: grid;
    grid-template-rows: auto 1fr auto;
    height: calc(100vh - 200px);
    min-height: 600px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

/* TOOLBAR */
.editor-toolbar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.editor-toolbar .tool-icon-btn {
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.05rem;
}

.editor-toolbar .tool-icon-btn:hover {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}

.editor-toolbar .tool-icon-btn.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.editor-toolbar .tool-icon-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.editor-toolbar .toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 0.25rem;
}

.editor-toolbar .toolbar-tool {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.4rem;
}

.editor-toolbar .toolbar-tool label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin: 0;
}

.editor-toolbar .toolbar-tool input[type="range"] {
    width: 100px;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-card);
    outline: none;
    cursor: pointer;
}

.editor-toolbar .toolbar-tool input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 6px var(--accent-glow);
}

.editor-toolbar .toolbar-tool input[type="range"]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
}

.editor-toolbar .toolbar-tool .num-display {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.78rem;
    min-width: 36px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.editor-toolbar .zoom-display {
    color: var(--text);
    font-weight: 600;
    font-size: 0.78rem;
    min-width: 48px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* MAIN AREA */
.editor-main {
    display: grid;
    grid-template-columns: 1fr 340px;
    overflow: hidden;
}

@media (max-width: 992px) {
    .editor-main { grid-template-columns: 1fr; }
}

/* VIEWPORT */
.editor-viewport {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(45deg, #0a0a0a 25%, transparent 25%),
        linear-gradient(-45deg, #0a0a0a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #0a0a0a 75%),
        linear-gradient(-45deg, transparent 75%, #0a0a0a 75%);
    background-size: 24px 24px;
    background-color: #141414;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    cursor: crosshair;
}

.editor-viewport.pan-mode { cursor: grab; }
.editor-viewport.pan-active { cursor: grabbing; }

.canvas-stack {
    position: absolute;
    top: 0;
    left: 0;
    line-height: 0;
    transform-origin: 0 0;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.05), 0 20px 60px rgba(0, 0, 0, 0.6);
}

.canvas-stack canvas {
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.canvas-stack canvas.canvas-mask {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.55;
    mix-blend-mode: screen;
    cursor: none;
}

.canvas-stack canvas.canvas-mask.hidden { display: none; }

/* SIDEBAR */
.editor-sidebar {
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.editor-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.85rem;
}

.editor-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* Presets em grid 2x2 */
.preset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.preset-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 0.6rem 0.4rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
}

.preset-btn i {
    font-size: 1.1rem;
    color: var(--accent);
}

.preset-btn:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
    transform: translateY(-1px);
}

/* Editor tip */
.editor-tip {
    background: linear-gradient(135deg, var(--accent-soft) 0%, transparent 100%);
    border: 1px solid rgba(198, 255, 0, 0.25);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    font-size: 0.76rem;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.45;
}

.editor-tip i {
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.editor-tip kbd {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--accent);
    margin: 0 1px;
}

/* STATUS BAR */
.editor-statusbar {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 0.4rem 1rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.editor-statusbar .status-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.editor-statusbar .status-item i {
    color: var(--text-dim);
}

.editor-statusbar .status-keys {
    margin-left: auto;
    font-family: monospace;
    font-size: 0.7rem;
    opacity: 0.6;
}

.editor-statusbar kbd {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 3px;
    padding: 0 4px;
    color: var(--text-muted);
}

/* COLOR PICKER DO PINCEL */
.color-picker-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0 0.4rem;
}

.color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    position: relative;
    padding: 0;
}

.color-swatch:hover {
    transform: scale(1.15);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.color-swatch.active {
    border-color: #fff;
    transform: scale(1.18);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 12px currentColor;
}

.color-custom-wrapper {
    position: relative;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.color-custom-wrapper input[type="color"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
}

.color-custom-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--text-muted);
    pointer-events: none;
    background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red);
    box-sizing: border-box;
}

.color-custom-wrapper:hover .color-custom-preview {
    border-color: var(--accent);
    transform: scale(1.1);
}

/* CURSOR DO PINCEL */
#brushCursor {
    position: fixed;
    pointer-events: none;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.7), 0 0 10px rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
    background: rgba(255, 80, 110, 0.18);
}

#brushCursor.erase {
    background: rgba(0, 184, 255, 0.18);
    border-color: #00b8ff;
}

/* =============================================================
   EDITOR DE IMAGEM (INPAINTING) — versão antiga (depreciada)
   ============================================================= */

.editor-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 992px) {
    .editor-wrapper { grid-template-columns: 1fr; }
}

.editor-canvas-area {
    background:
        linear-gradient(45deg, #0a0a0a 25%, transparent 25%),
        linear-gradient(-45deg, #0a0a0a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #0a0a0a 75%),
        linear-gradient(-45deg, transparent 75%, #0a0a0a 75%);
    background-size: 20px 20px;
    background-color: #141414;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.canvas-stack {
    position: relative;
    display: inline-block;
    line-height: 0;
    max-width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border-radius: 6px;
    overflow: hidden;
}

.canvas-stack canvas {
    display: block;
    max-width: 100%;
    height: auto;
    image-rendering: -webkit-optimize-contrast;
}

.canvas-stack canvas.canvas-mask {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.55;
    mix-blend-mode: screen;
    cursor: none;
}

#brushCursor {
    position: fixed;
    pointer-events: none;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
    background: rgba(255, 59, 92, 0.18);
}

/* Painel lateral */
.editor-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    position: sticky;
    top: 90px;
}

.editor-panel h6 {
    font-weight: 700;
    font-size: 0.95rem;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.editor-panel .tool-group {
    padding: 0.9rem 0;
    border-top: 1px solid var(--border);
}

.editor-panel .tool-group:first-of-type {
    border-top: none;
    padding-top: 0;
}

.editor-panel .tool-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.editor-panel .tool-value {
    color: var(--accent);
    font-weight: 700;
}

/* Slider customizado pro pincel */
.brush-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-elevated);
    outline: none;
    cursor: pointer;
}

.brush-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 0 4px var(--accent-soft), 0 2px 8px var(--accent-glow);
}

.brush-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 0 4px var(--accent-soft);
}

/* Dica visual */
.editor-tip {
    background: var(--accent-soft);
    border: 1px solid rgba(198, 255, 0, 0.3);
    border-radius: 10px;
    padding: 0.7rem 0.9rem;
    font-size: 0.78rem;
    color: var(--text);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    line-height: 1.45;
}

.editor-tip i {
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Botão de ferramenta */
.tool-btn {
    width: 100%;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.tool-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tool-btn.danger:hover {
    border-color: var(--danger);
    color: var(--danger);
}

/* =============================================================
   DASHBOARD — Widgets
   ============================================================= */

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
}

.dash-card-header h6 {
    margin: 0;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.dash-card-header h6 i {
    color: var(--accent);
}

.dash-card-header .dash-card-link {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.dash-card-header .dash-card-link:hover { color: var(--accent); }

.dash-card-body {
    padding: 0.85rem 1rem;
}

.dash-card-body.no-padding { padding: 0; }

/* Timeline de atividade */
.dash-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.dash-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}

.dash-timeline-item {
    position: relative;
    padding: 0.55rem 0 0.55rem 2.1rem;
    font-size: 0.83rem;
}

.dash-timeline-item::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0.85rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--bg-card), 0 0 10px var(--accent-glow);
}

.dash-timeline-item.danger::before  { background: var(--danger);  box-shadow: 0 0 0 3px var(--bg-card), 0 0 8px rgba(255,59,92,0.5); }
.dash-timeline-item.warning::before { background: var(--warning); box-shadow: 0 0 0 3px var(--bg-card), 0 0 8px rgba(255,184,0,0.5); }
.dash-timeline-item.info::before    { background: var(--info);    box-shadow: 0 0 0 3px var(--bg-card), 0 0 8px rgba(0,184,255,0.5); }

.dash-timeline-item .ti-time {
    color: var(--text-dim);
    font-size: 0.72rem;
    margin-bottom: 0.15rem;
}

.dash-timeline-item .ti-desc {
    color: var(--text);
    line-height: 1.4;
}

.dash-timeline-item .ti-desc strong { color: var(--accent); font-weight: 600; }

/* Próximas publicações (mini calendário lista) */
.upcoming-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upcoming-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.6rem 0.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
}

.upcoming-item:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

.upcoming-item .date-block {
    min-width: 52px;
    text-align: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.35rem 0.2rem;
    flex-shrink: 0;
}

.upcoming-item .date-block .dia {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.upcoming-item .date-block .mes {
    font-size: 0.66rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.1rem;
}

.upcoming-item.hoje .date-block {
    background: var(--accent);
    border-color: var(--accent);
}
.upcoming-item.hoje .date-block .dia { color: #000; }
.upcoming-item.hoje .date-block .mes { color: rgba(0,0,0,0.7); }

.upcoming-item .ui-info {
    flex: 1;
    min-width: 0;
}

.upcoming-item .ui-titulo {
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.15rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upcoming-item .ui-meta {
    color: var(--text-muted);
    font-size: 0.72rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Ranking (top clientes) */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.5rem 0.4rem;
    border-radius: 10px;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text);
}

.ranking-item:hover {
    background: var(--bg-elevated);
    color: var(--text);
}

.ranking-pos {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-elevated);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.ranking-item:nth-child(1) .ranking-pos { background: linear-gradient(135deg, #ffd700, #ffaa00); color: #000; border-color: #ffaa00; }
.ranking-item:nth-child(2) .ranking-pos { background: linear-gradient(135deg, #c0c0c0, #888); color: #000; border-color: #888; }
.ranking-item:nth-child(3) .ranking-pos { background: linear-gradient(135deg, #cd7f32, #8b4513); color: #fff; border-color: #8b4513; }

.ranking-item .rk-info {
    flex: 1;
    min-width: 0;
}

.ranking-item .rk-nome {
    font-weight: 600;
    font-size: 0.88rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-item .rk-meta {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.ranking-item .rk-valor {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}

/* Mini criativos thumbnails */
.dash-criativos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.6rem;
}

.dash-criativo-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: block;
}

.dash-criativo-thumb:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(198, 255, 0, 0.2);
}

.dash-criativo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dash-criativo-thumb .dt-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    padding: 0.5rem 0.4rem 0.3rem;
    font-size: 0.7rem;
    color: #fff;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Alert card de atenção (atrasos, etc.) */
.alert-card {
    background: linear-gradient(135deg, rgba(255,59,92,0.10) 0%, transparent 100%);
    border: 1px solid rgba(255,59,92,0.3);
    border-left: 4px solid var(--danger);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text);
}

.alert-card.warning {
    background: linear-gradient(135deg, rgba(255,184,0,0.10) 0%, transparent 100%);
    border-color: rgba(255,184,0,0.3);
    border-left-color: var(--warning);
}

.alert-card i {
    font-size: 1.5rem;
    color: var(--danger);
    flex-shrink: 0;
}

.alert-card.warning i { color: var(--warning); }

.alert-card .alert-title {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.alert-card .alert-desc {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.alert-card a {
    margin-left: auto;
    color: var(--text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.alert-card a:hover { color: var(--accent); }

/* =============================================================
   SCROLLBAR
   ============================================================= */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
