.admin-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: #f1e6c9;
  color: #8a6d1f;
  vertical-align: middle;
}

.admin-pixel-status {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #f6f5f2;
  border: 1px solid #e7e4dc;
}

.admin-social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.admin-social-head,
.admin-posts-head,
.admin-social-profile {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.admin-connection-status {
  align-items: center;
  background: #f2eef8;
  border: 1px solid #e4ddef;
  border-radius: 999px;
  color: #6c6480;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  padding: 9px 13px;
  white-space: nowrap;
}

.admin-connection-status i {
  background: #a59ab5;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.admin-connection-status.is-connected {
  background: #ecfdf3;
  border-color: #c5f0d4;
  color: #18733d;
}

.admin-connection-status.is-connected i { background: #22a958; }
.admin-connection-status.is-error { background: #fff4f3; border-color: #f4d0cc; color: #a23b32; }
.admin-connection-status.is-error i { background: #d95145; }

.admin-social-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}

.admin-social-profile { justify-content: flex-start; margin-bottom: 18px; }
.admin-social-profile span { color: var(--muted); display: block; font-size: 11px; font-weight: 800; margin-bottom: 3px; text-transform: uppercase; }
.admin-social-profile h3 { margin: 0; }

.admin-social-avatar {
  align-items: center;
  border-radius: 15px;
  color: #fff;
  display: flex;
  flex: 0 0 48px;
  font-size: 24px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  overflow: hidden;
}

.admin-social-avatar.is-facebook { background: #1877f2; }
.admin-social-avatar.is-instagram { background: linear-gradient(145deg, #6435d7, #d73586, #f2a13d); }
.admin-social-avatar img { height: 100%; object-fit: cover; width: 100%; }
.admin-social-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.admin-posts-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin-top: 20px;
  padding: 22px;
}

.admin-posts-head h3 { margin: 0 0 4px; }
.admin-posts-head p { margin: 0; }
.admin-posts-head a { color: var(--purple-bright); font-size: 13px; font-weight: 800; text-decoration: none; }
.admin-posts-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }

.admin-post-card {
  background: #f8f5fd;
  border-radius: 15px;
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.admin-post-card img { aspect-ratio: 1; display: block; object-fit: cover; width: 100%; }
.admin-post-card span { background: rgba(28, 19, 48, .74); border-radius: 999px; color: #fff; font-size: 10px; font-weight: 800; padding: 5px 8px; position: absolute; right: 8px; top: 8px; }
.admin-post-card p { font-size: 12px; line-height: 1.45; margin: 0; padding: 12px; }

@media (max-width: 700px) {
  .admin-social-head,
  .admin-posts-head { align-items: flex-start; flex-direction: column; }
  .admin-posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.admin-social-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #e7e4dc;
  white-space: nowrap;
}

.admin-table th {
  font-weight: 700;
  color: #6b6558;
}

/* Peluvi Social */
.social-capability-banner { align-items:center; background:linear-gradient(120deg,#24103f,#7435dc); border-radius:16px; color:#fff; display:flex; gap:10px; justify-content:space-between; margin-bottom:20px; padding:14px 18px; }
.social-capability-banner strong { font-size:14px; }
.social-capability-banner span { color:#e7d8ff; font-size:12px; }
.social-capability-banner.is-warning { background:#fff7e8; border:1px solid #f2d69b; color:#6c4c12; }
.social-capability-banner.is-warning span { color:#876827; }
.social-command-grid { display:grid; gap:20px; grid-template-columns:minmax(0,1.4fr) minmax(310px,.75fr); }
.social-composer,.social-readiness,.social-library-section { background:#fff; border:1px solid var(--line); border-radius:22px; padding:24px; }
.social-section-title { align-items:flex-start; display:flex; gap:15px; justify-content:space-between; margin-bottom:20px; }
.social-section-title h3,.social-library-section h3,.social-readiness h3 { margin:3px 0 0; }
.social-kicker { color:#8a47ee; font-size:11px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.social-draft-state { background:#f4effc; border-radius:999px; color:#7653a6; font-size:11px; font-weight:800; padding:7px 10px; }
.social-choice-row { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px; }
.social-choice-row input { position:absolute; opacity:0; }
.social-choice-row span { border:1px solid #e3dbed; border-radius:999px; cursor:pointer; display:block; font-size:12px; font-weight:800; padding:9px 13px; }
.social-choice-row input:checked + span { background:#2a153e; border-color:#2a153e; color:#fff; }
.social-field { display:flex; flex-direction:column; gap:7px; margin-bottom:15px; }
.social-field > span { color:#514762; font-size:12px; font-weight:800; }
.social-field textarea,.social-field input,.social-field select { background:#faf8fd; border:1px solid #ded5eb; border-radius:13px; box-sizing:border-box; color:#241633; font:inherit; outline:none; padding:12px 13px; resize:vertical; width:100%; }
.social-field textarea:focus,.social-field input:focus,.social-field select:focus { border-color:#954cff; box-shadow:0 0 0 3px rgba(149,76,255,.1); }
.social-field small { color:#8a8196; font-size:10px; text-align:right; }
.social-form-grid { display:grid; gap:12px; grid-template-columns:1fr 1fr; }
.social-preview { background:radial-gradient(circle at top,#f4eaff,#eeebf4); border:1px dashed #cdbde1; border-radius:18px; min-height:220px; overflow:hidden; position:relative; }
.social-upload { align-items:center; background:#f8f4fc; border:1px dashed #cdbde1; border-radius:14px; cursor:pointer; display:flex; gap:10px; justify-content:space-between; margin:-4px 0 15px; padding:11px 13px; }
.social-upload input { display:none; }.social-upload span { color:#6d37b2; font-size:12px; font-weight:900; }.social-upload small { color:#8a8196; font-size:10px; }.social-upload.is-disabled { cursor:not-allowed; opacity:.5; }
.social-preview img,.social-preview video { display:block; height:100%; inset:0; object-fit:cover; position:absolute; width:100%; }
.social-preview-empty { align-items:center; color:#8e809e; display:flex; flex-direction:column; inset:0; justify-content:center; position:absolute; }
.social-preview-empty span { font-size:30px; }
.social-preview-empty p { font-size:12px; }
.social-preview-caption { background:linear-gradient(transparent,rgba(20,10,33,.86)); bottom:0; color:#fff; font-size:12px; left:0; margin:0; padding:35px 15px 15px; position:absolute; right:0; z-index:2; }
.social-actions { display:flex; flex-wrap:wrap; gap:9px; justify-content:flex-end; margin-top:18px; }
.social-btn { border:0; border-radius:12px; cursor:pointer; font:inherit; font-size:12px; font-weight:900; padding:12px 15px; }
.social-btn:disabled { cursor:not-allowed; opacity:.5; }
.social-btn.is-primary { background:linear-gradient(100deg,#7132f5,#a54df5); color:#fff; }
.social-btn.is-soft { background:#eee5fb; color:#6630ae; }
.social-btn.is-ghost { background:#fff; border:1px solid #ddd2e9; color:#4c3c5e; }
.social-success { background:#eafaf0; border-radius:12px; color:#18733d; font-size:12px; font-weight:700; padding:10px 12px; }
.social-side { display:flex; flex-direction:column; gap:16px; }
.social-side .admin-social-grid { grid-template-columns:1fr; gap:12px; }
.social-side .admin-social-card { padding:17px; }
.social-side .portal-stat-card { min-height:auto; padding:12px; }
.social-readiness h3 { font-size:15px; }
.social-readiness ul { list-style:none; margin:15px 0 0; padding:0; }
.social-readiness li { align-items:center; border-top:1px solid #eee8f4; display:grid; font-size:11px; gap:8px; grid-template-columns:8px 1fr auto; padding:11px 0; }
.social-readiness li i { background:#b8adbf; border-radius:50%; height:7px; width:7px; }
.social-readiness li b { color:#7f748a; font-size:10px; }
.social-readiness li.is-ready i { background:#24a65a; }.social-readiness li.is-ready b { color:#18733d; }
.social-readiness li.is-missing i { background:#dc624d; }.social-readiness li.is-missing b { color:#a54030; }
.social-library-section { margin-top:20px; }
.social-filter-row { display:flex; flex-wrap:wrap; gap:6px; }
.social-filter-row button { background:#f5f1f9; border:0; border-radius:999px; color:#776a84; cursor:pointer; font-size:10px; font-weight:800; padding:8px 10px; }
.social-filter-row button.is-active { background:#32194b; color:#fff; }
.social-content-list { display:grid; gap:10px; margin-top:18px; }
.social-content-item { align-items:center; background:#faf8fc; border:1px solid #ebe4f2; border-radius:16px; display:grid; gap:14px; grid-template-columns:58px minmax(0,1fr) auto; padding:10px; }
.social-content-thumb { background:#eadff6; border-radius:11px; height:58px; object-fit:cover; width:58px; }
.social-content-copy { min-width:0; }.social-content-copy strong { display:block; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.social-content-copy span { color:#81758d; display:block; font-size:10px; margin-top:5px; }
.social-status { border-radius:999px; display:inline-block!important; font-size:9px!important; font-weight:900; margin-right:5px; padding:4px 7px; text-transform:uppercase; width:max-content; }
.social-status.draft { background:#eee8f4; color:#695978; }.social-status.scheduled { background:#e8efff;color:#315caa;}.social-status.published{background:#e6f8ed;color:#19733e}.social-status.failed{background:#ffebe8;color:#a53c30}.social-status.processing{background:#fff4d8;color:#866112}
.social-item-actions { display:flex; gap:6px; }.social-item-actions button { background:#fff; border:1px solid #ded5e7; border-radius:9px; color:#5d486d; cursor:pointer; font-size:10px; font-weight:800; padding:8px; }
.social-facebook-list { display:grid; gap:10px; margin-top:18px; }
.social-facebook-post { align-items:center; background:#f7f9ff; border:1px solid #e0e7f7; border-radius:15px; display:grid; gap:13px; grid-template-columns:54px minmax(0,1fr) auto; padding:10px; }
.social-facebook-post img,.social-facebook-picture { background:#e9eef9; border-radius:10px; height:54px; object-fit:cover; width:54px; }
.social-facebook-copy { min-width:0; }.social-facebook-copy strong { display:block; font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.social-facebook-copy span { color:#7c7587; display:block; font-size:10px; margin-top:5px; }
.social-delete-facebook { background:#fff; border:1px solid #f0c8c3; border-radius:9px; color:#a33d33; cursor:pointer; font-size:10px; font-weight:900; padding:8px 10px; }

.social-calendar-section { background:linear-gradient(145deg,#fff 0%,#fbf8ff 100%); border:1px solid #e4daf0; border-radius:24px; box-shadow:0 18px 50px rgba(61,27,91,.07); margin-top:20px; padding:24px; }
.social-calendar-head { align-items:flex-end; display:flex; gap:20px; justify-content:space-between; }
.social-calendar-head h3 { font-size:22px; margin:4px 0 5px; }
.social-calendar-head p { color:#81758d; font-size:12px; margin:0; }
.social-calendar-controls { align-items:center; background:#f5effc; border:1px solid #e5d9f1; border-radius:14px; display:flex; gap:5px; padding:5px; }
.social-calendar-controls button { background:transparent; border:0; border-radius:9px; color:#654778; cursor:pointer; font-size:12px; font-weight:900; min-height:34px; padding:0 10px; }
.social-calendar-controls button:hover { background:#fff; }
.social-calendar-controls strong { min-width:140px; text-align:center; text-transform:capitalize; }
.social-calendar-summary { align-items:center; display:flex; flex-wrap:wrap; gap:14px; margin:20px 0 13px; }
.social-calendar-summary span { align-items:center; color:#675a72; display:flex; font-size:10px; font-weight:800; gap:5px; }
.social-calendar-summary i { border-radius:50%; height:8px; width:8px; }.social-calendar-summary i.is-scheduled{background:#577bea}.social-calendar-summary i.is-published{background:#24a65a}.social-calendar-summary i.is-failed{background:#d95c4c}
.social-calendar-summary small { color:#998da3; font-size:10px; margin-left:auto; }
.social-calendar-scroll { overflow-x:auto; padding-bottom:3px; }
.social-calendar-weekdays,.social-calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(105px,1fr)); min-width:760px; }
.social-calendar-weekdays { color:#8e8298; font-size:10px; font-weight:900; letter-spacing:.08em; text-align:center; text-transform:uppercase; }
.social-calendar-weekdays span { padding:9px; }
.social-calendar-grid { background:#e9e1f0; border:1px solid #e9e1f0; border-radius:16px; gap:1px; overflow:hidden; }
.social-calendar-day { background:#fff; min-height:126px; padding:8px; transition:background .2s ease; }
.social-calendar-day:hover { background:#fdfaff; }.social-calendar-day.is-outside { background:#f7f4f9; opacity:.58; }.social-calendar-day.is-today { box-shadow:inset 0 0 0 2px #9148f4; }
.social-calendar-date { align-items:center; background:transparent; border:0; color:#3f2d4c; cursor:pointer; display:flex; font-size:11px; font-weight:900; justify-content:space-between; padding:0 1px 7px; width:100%; }
.social-calendar-date span { align-items:center; background:#f1e8fb; border-radius:50%; color:#7c3dc2; display:flex; height:20px; justify-content:center; opacity:0; transition:opacity .2s; width:20px; }.social-calendar-day:hover .social-calendar-date span{opacity:1}
.social-calendar-posts { display:grid; gap:5px; }.social-calendar-post { align-items:center; background:#eef2ff; border:0; border-left:3px solid #6481e9; border-radius:7px; color:#31446f; cursor:pointer; display:flex; gap:5px; max-width:100%; padding:6px; text-align:left; }.social-calendar-post.published{background:#eaf8ef;border-left-color:#2cac62;color:#24653e}.social-calendar-post.failed{background:#fff0ee;border-left-color:#da5e4f;color:#913e35}.social-calendar-post.draft{background:#f0ebf4;border-left-color:#9d8aaa;color:#65566f}
.social-calendar-post b { flex:0 0 auto; font-size:10px; }.social-calendar-post span { font-size:9px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.social-calendar-posts small { color:#897a94; font-size:9px; font-weight:800; padding-left:5px; }
.social-composer { transition:box-shadow .25s ease,transform .25s ease; }.social-composer.is-calendar-focus { box-shadow:0 0 0 4px rgba(145,72,244,.16),0 24px 65px rgba(79,39,117,.16); transform:translateY(-2px); }

@media (max-width: 980px) { .social-command-grid { grid-template-columns:1fr; } .social-side .admin-social-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 700px) { .portal-tabs { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }.portal-tab { font-size:11px; min-width:0; padding:11px 4px; white-space:normal; }.social-capability-banner { align-items:flex-start; flex-direction:column; }.social-form-grid,.social-side .admin-social-grid { grid-template-columns:1fr; }.social-composer,.social-readiness,.social-library-section,.social-calendar-section { padding:17px; }.social-actions .social-btn { flex:1 1 100%; }.social-content-item,.social-facebook-post { grid-template-columns:48px minmax(0,1fr); }.social-content-thumb,.social-facebook-post img,.social-facebook-picture { height:48px;width:48px; }.social-item-actions,.social-delete-facebook { grid-column:1/-1; justify-self:end; }.social-filter-row { margin-top:10px; }.social-calendar-head { align-items:flex-start; flex-direction:column; }.social-calendar-controls { box-sizing:border-box; justify-content:space-between; width:100%; }.social-calendar-controls strong { min-width:0; }.social-calendar-summary small { flex-basis:100%; margin-left:0; }.social-calendar-weekdays,.social-calendar-grid { grid-template-columns:repeat(7,minmax(96px,1fr)); min-width:690px; } }
