* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background: #0a0e27;
    color: #ffffff;
    overflow-x: hidden;
}

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #0f1235 0%, #1a1f4e 100%);
    padding: 24px;
    overflow-y: auto;
    z-index: 100;
}

.main-content {
    margin-left: 280px;
    padding: 24px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 32px;
}

.nav-item {
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-item:hover, .nav-item.active {
    background: rgba(0, 212, 255, 0.2);
    border-left: 3px solid #00d4ff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

button {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

button:hover { transform: scale(1.02); opacity: 0.9; }

input, select, textarea {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 12px;
    color: white;
    width: 100%;
    margin-bottom: 16px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active { background: #10b981; }
.status-pending { background: #f59e0b; }
.status-completed { background: #3b82f6; }
.status-no-answer { background: #64748b; }

/* Social Media Grid */
.social-platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.platform-card {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.instagram-bg { background: radial-gradient(circle at 30% 110%, #ffdb13, #f56040, #bc2a8d, #833ab4); }
.facebook-bg { background: #1877f2; }
.twitter-bg { background: #1da1f2; }
.linkedin-bg { background: #0077b5; }
.tiktok-bg { background: #000000; }
.youtube-bg { background: #ff0000; }

.post-item {
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.post-stats {
    display: flex;
    gap: 16px;
    margin-top: 10px;
    font-size: 12px;
}

.paid-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
}

.paid-active { background: #f59e0b; }
.paid-inactive { background: #6b7280; }

.progress-small {
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    height: 6px;
    margin-top: 8px;
}

.progress-small-fill {
    background: #00d4ff;
    height: 6px;
    border-radius: 10px;
    width: 0%;
}

.whatsapp-table {
    width: 100%;
    border-collapse: collapse;
}
.whatsapp-table th, .whatsapp-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.whatsapp-btn {
    background: #25D366;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.project-bar {
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.batch-card {
    background: rgba(0,212,255,0.1);
    border-radius: 16px;
    padding: 16px;
    margin-top: 20px;
}

.progress-bar {
    background: rgba(255,255,255,0.2);
    border-radius: 30px;
    height: 8px;
    margin: 12px 0;
}
.progress-fill {
    background: #25D366;
    width: 0%;
    height: 8px;
    border-radius: 30px;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #1a1f4e;
    border-radius: 24px;
    padding: 32px;
    max-width: 500px;
    width: 90%;
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); transition: transform 0.3s; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .social-platform-grid { grid-template-columns: 1fr; }
}


.manual-lead-modal {
    max-width: 760px;
}

.manual-lead-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.manual-lead-full {
    grid-column: 1 / -1;
}

.row-delete-btn {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
}

@media (max-width: 768px) {
    .manual-lead-grid {
        grid-template-columns: 1fr;
    }
}

.auth-panel {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 14px;
}

.auth-user {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    word-break: break-word;
}

.logout-btn {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.save-indicator {
    font-size: 12px;
    color: rgba(255,255,255,0.78);
    line-height: 1.5;
}

.save-indicator.error {
    color: #fca5a5;
}

.auth-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(3, 7, 18, 0.85);
    z-index: 3000;
    padding: 24px;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(22,27,68,0.96), rgba(15,18,53,0.96));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 24px 60px rgba(0,0,0,0.35);
    padding: 32px;
}

.auth-logo {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8be9ff;
    margin-bottom: 12px;
}

.login-message {
    min-height: 24px;
    margin-top: 12px;
    font-size: 13px;
}

.row-action-stack {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.row-update-btn,
.row-edit-btn,
.row-delete-btn {
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 12px;
}

.row-update-btn {
    background: linear-gradient(135deg, #00d4ff, #7c3aed);
}

.row-edit-btn {
    background: linear-gradient(135deg, #14b8a6, #0f766e);
}

.lead-status-select {
    margin-bottom: 0;
}


select, input, textarea { color: #ffffff; }
select option { background: #ffffff; color: #0f172a; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,0.68); }
select.lead-status-select { min-width: 180px; }
.dashboard-report-grid { margin-top: 24px; }
.report-card { padding: 20px; margin-top: 24px; }
.report-card-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.report-card-body { display:grid; grid-template-columns: minmax(280px, 380px) 1fr; gap: 24px; align-items:center; }
.report-chart-wrap { min-height: 240px; }
.analysis-list { list-style: disc; padding-left: 20px; display:grid; gap:8px; color:#dbeafe; }
.report-actions { margin-top: 18px; padding-top: 18px; border-top:1px solid rgba(255,255,255,0.12); }
.mini-report-btn, .outline-report-btn { background: rgba(96,165,250,0.18); border:1px solid rgba(96,165,250,0.35); color:#fff; }
.outline-report-btn { background: transparent; border:1px solid rgba(255,255,255,0.28); }
.social-summary-cards .stat-card { border-left: 4px solid #0f766e; }
.social-report-card { margin-bottom: 24px; }
.row-action-stack { display:flex; gap:8px; flex-wrap:wrap; margin-top:8px; }
.row-update-btn, .row-edit-btn, .row-delete-btn { padding:8px 12px; font-size:12px; }
.row-edit-btn { background: linear-gradient(135deg, #06b6d4, #2563eb); }
.row-delete-btn { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.auth-panel { margin-top: 16px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08); }
.auth-user { font-size: 12px; margin-bottom: 8px; color:#dbeafe; }
.save-indicator { font-size: 12px; color:#cbd5e1; margin-top: 8px; }
.logout-btn { width:100%; justify-content:center; }
@media (max-width: 900px) { .report-card-body { grid-template-columns: 1fr; } }

.email-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.95fr);
    gap: 24px;
}
.email-builder-card, .email-recipient-card, .validator-dashboard-card {
    padding: 20px;
}
.email-builder-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.email-template-quick-select { min-width: 220px; }
.email-template-quick-select label, .email-recipient-card h4 { display:block; margin-bottom:8px; }
.email-toolbar, .email-action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.email-toolbar { margin-bottom: 14px; }
.toolbar-btn {
    min-width: 44px;
    padding: 10px 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
}
.email-rich-editor {
    min-height: 260px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
    overflow-y: auto;
    line-height: 1.6;
}
.email-rich-editor:focus { outline: 2px solid rgba(96,165,250,0.35); }
.email-attachment-bar, .validator-column-grid, .email-recipient-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    align-items: center;
}
.email-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
}
.email-attachment-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 140px));
    gap: 14px;
    margin: 16px 0;
}
.email-attachment-item {
    position: relative;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 10px;
}
.email-attachment-item img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 12px;
}
.email-attachment-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 6px 9px;
    border-radius: 10px;
    background: rgba(15,23,42,0.85);
}
.email-attachment-empty {
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    color: #cbd5e1;
}
.email-send-box, .saved-email-wrap {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.12);
}
.email-recipient-table-wrap {
    max-height: 320px;
    overflow: auto;
    margin-top: 12px;
}
.email-recipient-table {
    width: 100%;
    border-collapse: collapse;
}
.email-recipient-table th, .email-recipient-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.email-recipient-table th { background: rgba(255,255,255,0.05); }
.saved-email-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px;
    margin: 10px 0;
    border-radius: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}
.validator-dashboard-card { margin-top: 24px; }
.validator-panel { display: none; }
.validator-panel.active, .validator-tab.active { display: block; }
.validator-upload-area {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 140px;
    border: 2px dashed rgba(37, 211, 102, 0.75);
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    text-align: center;
    padding: 20px;
    margin-bottom: 16px;
}
.validator-alert {
    display:none;
    margin: 14px 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid transparent;
}
.validator-alert.success { display:block; background: rgba(16,185,129,0.16); border-color: rgba(16,185,129,0.35); }
.validator-alert.error { display:block; background: rgba(239,68,68,0.16); border-color: rgba(239,68,68,0.35); }
.validator-alert.info { display:block; background: rgba(96,165,250,0.16); border-color: rgba(96,165,250,0.35); }
.validator-results { margin-top: 18px; }
.validator-tab { display:none; }
.validator-progress { display:none; margin-top:16px; }
.validator-method-btn.active, .validator-tab-btn.active { background: rgba(96,165,250,0.28); border-color: rgba(96,165,250,0.45); }
.email-recipient-stats { margin-top: 10px; color: #cbd5e1; font-size: 13px; }

@media (max-width: 1100px) {
    .email-layout-grid { grid-template-columns: 1fr; }
}


.nav-sub-item {
    margin-left: 18px;
    font-size: 0.95rem;
    opacity: 0.92;
}
.nav-sub-item i { width: 18px; }

.groupmailer-shell {
    background: rgba(255,255,255,0.04);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.groupmailer-header {
    background: linear-gradient(98deg, #0f2b3d 0%, #1b4f6e 100%);
    padding: 1.6rem 1.8rem;
    color: #fff;
}
.groupmailer-header h2 { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:8px; }
.groupmailer-badge-note { background:#ffd966cc; color:#1e2a3a; border-radius:40px; padding:4px 12px; font-size:.72rem; font-weight:700; }
.groupmailer-dashboard { display:flex; gap:24px; flex-wrap:wrap; padding:24px; }
.groupmailer-left-panel { flex:1.1; min-width:300px; }
.groupmailer-right-panel { flex:1.6; min-width:380px; }
.groupmailer-card { background: rgba(255,255,255,0.94); color:#132235; border-radius:24px; padding:20px; margin-bottom:20px; box-shadow: 0 10px 24px rgba(0,0,0,0.12); }
.groupmailer-card input, .groupmailer-card textarea, .groupmailer-card select { background:#fff; color:#1c2430; border:1.5px solid #d9e2ef; }
.groupmailer-card button { border-radius: 999px; }
.groupmailer-card-title { font-weight:800; font-size:1.05rem; margin-bottom:14px; color:#1f3e48; }
.groupmailer-inline-row { display:flex; gap:10px; flex-wrap:wrap; }
.groupmailer-inline-row input { flex:1; min-width:140px; }
.groupmailer-group-list { max-height:220px; overflow-y:auto; margin-top:10px; }
.groupmailer-group-item { background:#f8fafc; margin:6px 0; padding:8px 12px; border-radius:30px; display:flex; justify-content:space-between; align-items:center; gap:10px; }
.groupmailer-group-item.selected { background:#d4e6f1; border-left:4px solid #2c7da0; }
.groupmailer-selector-box, .groupmailer-column-mapping, .groupmailer-multi-select { background:#f8fafc; border-radius:18px; padding:12px; margin-top:12px; }
.groupmailer-input-group { margin-bottom:16px; }
.groupmailer-table { width:100%; border-collapse:collapse; font-size:.78rem; }
.groupmailer-table th, .groupmailer-table td { padding:10px 6px; border-bottom:1px solid #e9eef5; color:#142235; }
.groupmailer-status-valid { background:#dff9e6; color:#1e7b48; border-radius:30px; padding:2px 10px; display:inline-block; font-weight:700; }
.groupmailer-status-invalid { background:#ffe6e5; color:#b91c1c; border-radius:30px; padding:2px 10px; display:inline-block; font-weight:700; }
.groupmailer-btn-outline { background:transparent; border:1.5px solid #2c7da0; color:#2c7da0; }
.groupmailer-stats-row { display:flex; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.groupmailer-stat-box { background:#f1f5f9; color:#10253c; border-radius:18px; padding:12px; flex:1; min-width:120px; text-align:center; }
.groupmailer-stat-number { font-size:1.6rem; font-weight:800; }
@media (max-width: 800px) { .groupmailer-dashboard { flex-direction:column; padding:16px; } }
