/* ============================================================
   WALET PUTI COMMUNITY — UI/UX PRO REFRESH
   ============================================================ */

/* ------------------------------------------------------------
   01. ROOT & THEME
   ------------------------------------------------------------ */

:root {
  --bg: #f5f8f6;
  --card: #ffffff;
  --card2: #f9fbfa;
  --text: #12251d;
  --muted: #718078;
  --line: #e3ebe7;
  --green: #087653;
  --green2: #0a9368;
  --green-dark: #064a35;
  --gold: #d8ad4b;
  --danger: #b53b45;
  --info: #2c7be5;
  --shadow: 0 10px 30px rgba(18, 55, 43, 0.07);
  --shadow-lg: 0 22px 60px rgba(18, 55, 43, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
}

html[data-theme="dark"] {
  --bg: #091310;
  --card: #101d18;
  --card2: #14231d;
  --text: #edf7f2;
  --muted: #91a79d;
  --line: #263b32;
  --shadow: 0 14px 38px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 24px 65px rgba(0, 0, 0, 0.35);
}

/* ------------------------------------------------------------
   02. RESET & BASE
   ------------------------------------------------------------ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px / 1.5 Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    circle at 80% -10%,
    rgba(10, 147, 104, 0.06),
    transparent 35%
  );
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(8, 118, 83, 0.09);
}

/* ------------------------------------------------------------
   03. GLOBAL LAYOUT
   ------------------------------------------------------------ */

.app {
  min-height: 100vh;
}

.main {
  max-width: 1540px;
  margin-left: 264px;
  padding: 38px 42px;
}

.topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 26px;
}

.topline h1,
.page-head h1 {
  margin: 5px 0 7px;
  font:
    800 30px / 1.15 "Plus Jakarta Sans",
    sans-serif;
  letter-spacing: -0.6px;
}

.eyebrow {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.9px;
}

.muted {
  color: var(--muted);
}

/* ------------------------------------------------------------
   04. SIDEBAR
   ------------------------------------------------------------ */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;

  width: 264px;
  padding: 22px 15px;

  display: flex;
  flex-direction: column;

  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(16px);

  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;

  padding: 3px 7px;

  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: 0.1px;
}

.brand small,
.auth-brand small {
  display: block;
  margin-top: 2px;

  color: var(--muted);

  font:
    700 9px Inter,
    sans-serif;
  letter-spacing: 1.6px;
}

.brand-mark {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  border-radius: 14px;

  background: url("https://i.pinimg.com/736x/df/61/b6/df61b649f85954698a4ea9adf2a9b8e9.jpg")
    center / contain no-repeat;

  color: transparent;
  font-size: 0;

  transition: transform 0.2s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-4deg) scale(1.04);
}

.side-label {
  margin: 39px 11px 10px;

  color: var(--muted);

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
}

.sidebar nav {
  display: grid;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;

  padding: 11px 12px;

  color: var(--muted);
  font-weight: 700;

  border-radius: 13px;

  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.nav-item:hover,
.nav-item:focus-visible {
  color: var(--green);
  background: rgba(8, 118, 83, 0.08);
  transform: translateX(2px);
}

.nav-item.active {
  color: var(--green);
  background: linear-gradient(
    90deg,
    rgba(8, 118, 83, 0.13),
    rgba(8, 118, 83, 0.055)
  );
  box-shadow: inset 3px 0 0 var(--green);
}

.nav-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;

  display: grid;
  place-items: center;

  border-radius: 9px;
  background: transparent;

  font-size: 16px;
}

.nav-item.active .nav-icon {
  background: rgba(8, 118, 83, 0.12);
}

.side-bottom {
  margin-top: auto;
  padding-top: 12px;

  display: grid;
  gap: 3px;

  border-top: 1px solid var(--line);
}

.danger-link:hover {
  color: var(--danger) !important;
  background: rgba(181, 59, 69, 0.07) !important;
}

/* ------------------------------------------------------------
   05. MOBILE HEADER
   ------------------------------------------------------------ */

.mobile-top {
  display: none;
}

/* ------------------------------------------------------------
   06. CARD
   ------------------------------------------------------------ */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card:hover {
  border-color: color-mix(in srgb, var(--line) 65%, var(--green));
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   07. HERO
   ------------------------------------------------------------ */

.hero-pro {
  position: relative;
  overflow: hidden;

  display: flex;
  justify-content: space-between;

  margin-bottom: 18px;
  padding: 38px 42px;

  color: #fff;

  background: linear-gradient(125deg, #064b36 0%, #087653 52%, #0a9368 100%);

  border-radius: 26px;
  box-shadow: 0 20px 48px rgba(7, 88, 63, 0.2);
}

.hero-pro::before,
.hero-pro::after {
  content: "";
  position: absolute;

  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.hero-pro::before {
  width: 300px;
  height: 300px;

  right: -110px;
  top: -150px;
}

.hero-pro::after {
  width: 190px;
  height: 190px;

  right: 65px;
  top: -80px;
}

.hero-pro > div:first-child {
  position: relative;
  z-index: 2;
}

.hero-pro h2 {
  max-width: 720px;
  margin: 13px 0;

  font:
    800 31px / 1.22 "Plus Jakarta Sans",
    sans-serif;
  letter-spacing: -0.8px;
}

.hero-pro p {
  max-width: 650px;
  color: #dcefe8;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 9px;
  margin-top: 21px;
}

.hero-art {
  position: relative;
  z-index: 2;

  width: 180px;
  align-self: center;

  text-align: center;
  opacity: 0.96;
}

.pill {
  padding: 8px 11px;

  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;

  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 99px;
}

.seal {
  width: 132px;
  height: 132px;

  margin: auto;
  padding: 14px;

  display: grid;
  place-items: center;

  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;

  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.08),
    0 12px 35px rgba(0, 0, 0, 0.1);
}

.seal img {
  width: 100px;
  height: 100px;

  display: block;

  object-fit: contain;
  border-radius: 50%;
}

.hero-art span {
  font-size: 9px;
  letter-spacing: 4px;
  line-height: 1.8;
}

/* ------------------------------------------------------------
   08. STATS
   ------------------------------------------------------------ */

.stats-pro {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;

  margin-bottom: 22px;
}

.stats-pro > div {
  position: relative;
  overflow: hidden;

  padding: 17px 18px;

  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 17px;
}

.stats-pro > div::after {
  content: "";
  position: absolute;

  width: 70px;
  height: 70px;

  right: -32px;
  bottom: -38px;

  background: rgba(8, 118, 83, 0.07);
  border-radius: 50%;
}

.stats-pro span {
  display: block;

  margin-bottom: 10px;

  font-size: 19px;
}

.stats-pro b {
  display: block;

  font:
    800 24px "Plus Jakarta Sans",
    sans-serif;
  letter-spacing: -0.4px;
}

.stats-pro small {
  display: block;

  margin-top: 3px;

  color: var(--muted);
}

/* ------------------------------------------------------------
   09. CONTENT GRID
   ------------------------------------------------------------ */

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
}

.right-col {
  display: grid;
  align-content: start;
  gap: 15px;
}

.right-col > .card {
  padding: 18px;
}

/* ------------------------------------------------------------
   10. COMPOSER
   ------------------------------------------------------------ */

.composer {
  margin-bottom: 15px;
  padding: 18px;
}

.composer-head {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-bottom: 12px;
}

.composer-head small,
.post-author small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.composer textarea {
  width: 100%;
  min-height: 92px;

  padding: 14px;

  resize: vertical;

  background: var(--bg);
  border-radius: 14px;
}

.composer-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 10px;
  margin-top: 10px;
}

.upload-btn {
  padding: 9px 12px;

  color: var(--muted);
  cursor: pointer;

  background: var(--card2);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.upload-btn:hover {
  color: var(--green);
  border-color: var(--green);
}

.upload-btn input {
  display: none;
}

/* ------------------------------------------------------------
   11. POSTS
   ------------------------------------------------------------ */

.post {
  margin-bottom: 15px;
  padding: 18px;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-author {
  min-width: 0;
}

.post-author b {
  display: inline-block;
}

.post-tools {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
}

.post-menu,
.post-edit {
  position: relative;
}

.post-menu > summary {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card2);
  color: var(--muted);
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
}

.post-menu > summary::-webkit-details-marker,
.post-edit summary::-webkit-details-marker {
  display: none;
}

.post-menu > summary:hover {
  border-color: var(--green);
  background: rgba(8, 118, 83, 0.08);
  color: var(--green);
}

.post-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 3px;
  min-width: 145px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.post-edit summary,
.post-delete-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  list-style: none;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-align: left;
}

.post-edit summary:hover {
  background: rgba(8, 118, 83, 0.08);
  color: var(--green);
}

.post-delete-btn {
  color: var(--danger);
}

.post-delete-btn:hover {
  background: rgba(181, 59, 69, 0.08);
}

.post-edit summary svg,
.post-delete-btn svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.post-edit-form {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: grid;
  gap: 10px;
  width: min(340px, calc(100vw - 64px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.post-edit-form textarea {
  width: 100%;
  min-height: 100px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}

.post-image-upload {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.post-image-upload input {
  width: 100%;
  min-width: 0;
  font-size: 12px;
}

.post-remove-image {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--danger);
  font-size: 12px;
}

.post-remove-image input {
  accent-color: var(--danger);
}

.post-delete-form {
  margin: 0;
}

.post-text {
  margin: 15px 0;

  font-size: 15px;
  line-height: 1.75;

  white-space: normal;
}

.post-img {
  width: 100%;
  max-height: 520px;

  object-fit: cover;

  border: 1px solid var(--line);
  border-radius: 14px;
}

.post-video {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #000;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.post-meta {
  display: flex;
  gap: 15px;

  padding: 11px 2px 7px;

  color: var(--muted);
  font-size: 12px;
}

.post-actions {
  display: flex;
  gap: 8px;

  padding: 8px 0;

  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.action-btn {
  padding: 8px 10px;

  color: var(--muted);
  font-weight: 700;

  background: none;
  border: 0;
  border-radius: 9px;

  transition:
    color 0.15s ease,
    background 0.15s ease;
}

.action-btn:hover,
.action-btn.liked {
  color: var(--green);
  background: rgba(8, 118, 83, 0.07);
}

/* ------------------------------------------------------------
   12. COMMENTS
   ------------------------------------------------------------ */

.comments {
  display: grid;
  gap: 9px;

  padding: 12px 0;
}

.comment {
  display: flex;
  gap: 8px;
}

.comment-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;

  flex: 1;
  min-width: 0;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment p {
  margin: 4px 0;

  color: var(--muted);
  line-height: 1.5;
}

.comment-time {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.timestamp-clock {
  margin-left: 4px;
  white-space: nowrap;
}

.comment-tools {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
}

.comment-edit {
  position: relative;
}

.comment-edit summary {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card2);
  color: var(--green);
  cursor: pointer;
}

.comment-edit summary::-webkit-details-marker {
  display: none;
}

.comment-edit summary:hover,
.comment-delete-btn:hover {
  border-color: var(--green);
  background: rgba(8, 118, 83, 0.08);
}

.comment-edit summary svg,
.comment-delete-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.comment-edit-form {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 10;
  width: min(280px, calc(100vw - 80px));
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.comment-edit-form textarea {
  width: 100%;
  min-height: 64px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  resize: vertical;
}

.comment-delete-form {
  margin: 0;
}

.comment-delete-btn {
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card2);
  color: var(--danger);
  cursor: pointer;
}

.comment-form {
  display: flex;
  gap: 8px;
}

/* ------------------------------------------------------------
   13. MINI CARDS & NOTIFICATIONS
   ------------------------------------------------------------ */

.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title h3 {
  margin: 0;
}

.card-title a,
.text-link {
  color: var(--green);
  font-weight: 700;
}

.notice {
  display: flex;
  gap: 10px;

  padding: 12px 0;

  line-height: 1.45;
  border-bottom: 1px solid var(--line);
}

.notice:last-child {
  border-bottom: 0;
}

.notice small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.mini-card > a {
  display: flex;
  flex-direction: column;

  padding: 12px 0;

  border-bottom: 1px solid var(--line);
}

.mini-card > a:last-child {
  border-bottom: 0;
}

.mini-card small {
  margin-top: 3px;
  color: var(--muted);
}

/* ------------------------------------------------------------
   14. AVATAR
   ------------------------------------------------------------ */

.avatar {
  flex: 0 0 auto;

  width: 40px;
  height: 40px;

  display: grid;
  place-items: center;

  overflow: hidden;

  color: #07583f;
  font-weight: 800;

  background: linear-gradient(135deg, #d7ece3, #b6d9ca);
  border-radius: 13px;
}

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

.avatar.xs {
  width: 30px;
  height: 30px;

  font-size: 11px;
  border-radius: 9px;
}

.avatar.md {
  width: 42px;
  height: 42px;
}

.avatar.lg {
  width: 64px;
  height: 64px;
}

.avatar.xl {
  width: 86px;
  height: 86px;
}

.avatar.xxl {
  width: 116px;
  height: 116px;
  border-radius: 28px;
}

/* ------------------------------------------------------------
   15. BADGES & STATUS
   ------------------------------------------------------------ */

.badge {
  display: inline-flex;
  align-items: center;

  margin-top: 5px;
  padding: 5px 9px;

  color: var(--green);
  font-size: 10px;
  font-weight: 800;

  background: rgba(8, 118, 83, 0.09);
  border-radius: 99px;
}

.badge.tiny {
  padding: 2px 6px;
  font-size: 9px;
}

.verified {
  width: 18px;
  height: 18px;

  display: inline-grid;
  place-items: center;

  color: #fff;
  font-size: 11px;

  background: #1685d5;
  border-radius: 50%;
}

.status {
  padding: 5px 8px;

  color: #666;
  font-size: 10px;
  font-weight: 800;

  background: #eee;
  border-radius: 99px;
}

.status.approved {
  color: #17794f;
  background: #dff5e9;
}

.status.pending {
  color: #966c00;
  background: #fff0c9;
}

.status.rejected {
  color: var(--danger);
  background: #ffe2e5;
}

/* ------------------------------------------------------------
   16. BUTTONS
   ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  padding: 10px 15px;

  font-weight: 800;

  border: 0;
  border-radius: 11px;

  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}

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

.btn.primary {
  color: #fff;
  background: var(--green);
  box-shadow: 0 6px 16px rgba(8, 118, 83, 0.16);
}

.btn.primary:hover {
  background: var(--green2);
}

.btn.ghost {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.btn.ghost:hover {
  color: var(--green);
  border-color: var(--green);
}

.btn.light {
  color: #07583f;
  background: #fff;
}

.btn.glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn.success {
  color: #fff;
  background: #17794f;
}

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

.full {
  width: 100%;
}

.icon-btn {
  padding: 10px 13px;

  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
}

/* ------------------------------------------------------------
   17. FILTER
   ------------------------------------------------------------ */

.filter-bar {
  display: flex;
  gap: 10px;

  margin-bottom: 15px;
  padding: 13px;
}

.filter-bar input,
.filter-bar select {
  flex: 1;
  min-width: 0;
}

.result-line {
  margin: 0 0 13px;
  color: var(--muted);
}

/* ------------------------------------------------------------
   18. MEMBER DIRECTORY
   ------------------------------------------------------------ */

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.member-card {
  position: relative;
  overflow: hidden;
}

.member-cover {
  height: 74px;

  background: linear-gradient(135deg, #0b6b4d, #a7cdbd);
}

.member-card > .avatar {
  margin: -30px 18px 0;
  border: 4px solid var(--card);
}

.member-main {
  padding: 10px 18px 20px;
}

.member-name {
  display: flex;
  align-items: center;
  gap: 6px;
}

.member-name h3 {
  margin: 0;
  font-size: 16px;
}

.empty {
  grid-column: 1 / -1;

  padding: 30px;

  text-align: center;
}

/* ------------------------------------------------------------
   19. GROUPS / RANTING
   ------------------------------------------------------------ */

.group-create {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;

  margin-bottom: 18px;
  padding: 20px;
}

.inline-form {
  display: flex;
  gap: 8px;
}

.inline-form input {
  min-width: 0;
}

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

.group-card {
  display: flex;
  align-items: center;
  gap: 15px;

  padding: 20px;
}

.group-card > div:nth-child(2) {
  flex: 1;
}

.group-card h3 {
  margin: 0 0 6px;
}

.group-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;

  display: grid;
  place-items: center;

  color: var(--green);
  font-size: 23px;

  background: rgba(8, 118, 83, 0.1);
  border-radius: 15px;
}

/* ------------------------------------------------------------
   20. PROFILE
   ------------------------------------------------------------ */

.profile-banner {
  display: flex;
  align-items: center;
  gap: 20px;

  margin-bottom: 18px;
  padding: 25px;

  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.profile-banner h1 {
  margin: 5px 0;

  font:
    800 28px "Plus Jakarta Sans",
    sans-serif;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
}

.profile-grid > .card {
  padding: 22px;
}

.profile-grid label,
.form-section label,
.auth-card label {
  display: block;

  margin: 0 0 7px;

  font-size: 12px;
  font-weight: 700;
}

.profile-grid textarea {
  width: 100%;
  min-height: 110px;
  margin-bottom: 14px;
}

.profile-grid input,
.profile-grid select {
  width: 100%;
  margin-bottom: 14px;
}

.info-list {
  display: grid;
  gap: 0;

  margin-top: 10px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;

  padding: 13px 0;

  border-bottom: 1px solid var(--line);
}

.info-list span {
  color: var(--muted);
}

.verify-box {
  margin-top: 18px;
  padding: 14px;

  background: rgba(8, 118, 83, 0.07);
  border-radius: 13px;
}

.verify-box .badge {
  float: right;
}

/* ------------------------------------------------------------
   21. ADMIN TABLE
   ------------------------------------------------------------ */

.admin-stats {
  margin-top: 8px;
}

.table-wrap {
  padding: 18px;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;

  border-collapse: collapse;
}

th,
td {
  padding: 14px 12px;

  text-align: left;
  vertical-align: middle;

  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);

  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

td small {
  display: block;

  margin-top: 3px;

  color: var(--muted);
}

.actions {
  display: flex;
  gap: 6px;

  margin-top: 7px;
}

/* ------------------------------------------------------------
   22. ALERT
   ------------------------------------------------------------ */

.alert {
  margin-bottom: 15px;
  padding: 12px 14px;

  border: 1px solid transparent;
  border-radius: 12px;
}

.alert.success {
  color: #176f4b;
  background: #def5e8;
  border-color: #c8ead9;
}

.alert.danger {
  color: #a52e39;
  background: #ffe3e5;
  border-color: #f4cbd0;
}

/* ------------------------------------------------------------
   23. AUTH / LOGIN
   ------------------------------------------------------------ */

.auth-bg {
  min-height: 100vh;

  display: grid;
  place-items: center;

  padding: 25px;

  background:
    radial-gradient(circle at 15% 10%, rgba(8, 118, 83, 0.18), transparent 32%),
    linear-gradient(135deg, var(--bg), #eaf3ef);
}

.auth-shell {
  width: min(460px, 100%);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;

  margin-bottom: 18px;
}

.auth-brand b {
  font:
    18px "Plus Jakarta Sans",
    sans-serif;
}

.auth-card,
.register-card {
  padding: 30px;

  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.auth-card h1,
.register-card h1 {
  margin: 8px 0;

  font:
    800 27px "Plus Jakarta Sans",
    sans-serif;
}

.auth-card form {
  display: grid;
  gap: 8px;

  margin-top: 22px;
}

.auth-card input {
  width: 100%;
  margin-bottom: 8px;
}

.center {
  text-align: center;
}

.auth-foot {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ------------------------------------------------------------
   24. REGISTER
   ------------------------------------------------------------ */

.register-wrap {
  width: min(950px, 100%);
  padding: 15px 0;
}

.register-top {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 16px;
}

.register-card {
  padding: 28px;
}

.form-section {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.form-section:first-of-type {
  border-top: 0;
}

.form-section h2 {
  margin: 0 0 16px;
  font-size: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.fullcol {
  grid-column: 1 / -1;
}

.grid-2 input,
.grid-2 select,
.grid-2 textarea {
  width: 100%;
}

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

.checks label {
  padding: 9px 11px;

  font-weight: 500;

  border: 1px solid var(--line);
  border-radius: 10px;
}

.hidden {
  display: none;
}

/* ------------------------------------------------------------
   25. TOP ACTIONS & STATUS INDICATORS
   ------------------------------------------------------------ */

.top-actions {
  display: flex;
  gap: 8px;
}

.notif-dot {
  min-width: 20px;
  height: 20px;

  display: inline-grid;
  place-items: center;

  color: #fff;
  font-size: 10px;
  font-weight: 800;

  background: var(--danger);
  border-radius: 99px;
}

.live-dot {
  width: 8px;
  height: 8px;

  display: inline-block;

  background: #2aa66f;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(42, 166, 111, 0.1);
}

/* ------------------------------------------------------------
   26. MOBILE BOTTOM NAV
   ------------------------------------------------------------ */

.mobile-nav {
  display: none;
}

/* ------------------------------------------------------------
   27. TABLET
   ------------------------------------------------------------ */

@media (max-width: 1100px) {
  .sidebar {
    width: 230px;
  }

  .main {
    margin-left: 230px;
    padding: 30px;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .right-col {
    grid-template-columns: 1fr 1fr;
  }

  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ------------------------------------------------------------
   28. MOBILE
   ------------------------------------------------------------ */

@media (max-width: 760px) {
  body {
    font-size: 13px;
  }

  /* Header */

  .sidebar {
    display: none;
  }

  .mobile-top {
    position: sticky;
    top: 0;
    z-index: 60;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 14px;

    background: color-mix(in srgb, var(--card) 94%, transparent);

    backdrop-filter: blur(14px);

    border-bottom: 1px solid var(--line);
  }

  .mobile-top > div {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .mobile-top .brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  /* Main */

  .main {
    margin: 0;
    padding: 20px 14px 90px;
  }

  .topline {
    margin-bottom: 20px;
  }

  .topline h1,
  .page-head h1 {
    font-size: 23px;
  }

  /* Hero */

  .hero-pro {
    padding: 25px 21px;
    border-radius: 20px;
  }

  .hero-pro h2 {
    font-size: 22px;
  }

  .hero-pro p {
    font-size: 13px;
  }

  .hero-art {
    display: none;
  }

  .hero-actions {
    flex-wrap: wrap;
  }

  .hero-actions .btn {
    flex: 1;
  }

  /* Stats */

  .stats-pro {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stats-pro > div {
    padding: 14px;
  }

  .stats-pro b {
    font-size: 21px;
  }

  /* Content */

  .right-col,
  .member-grid,
  .group-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  /* Filter */

  .filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .filter-bar input {
    grid-column: 1 / -1;
  }

  .filter-bar .btn {
    width: 100%;
  }

  /* Groups */

  .group-create {
    display: block;
  }

  .inline-form {
    margin-top: 15px;
  }

  .inline-form input {
    min-width: 0;
  }

  /* Register */

  .grid-2 {
    grid-template-columns: 1fr;
  }

  .fullcol {
    grid-column: auto;
  }

  .register-top {
    align-items: flex-start;
  }

  .register-top .btn {
    padding: 8px;
  }

  .register-card {
    padding: 20px;
  }

  /* Profile */

  .profile-banner {
    align-items: flex-start;
    padding: 18px;
  }

  .profile-banner h1 {
    font-size: 20px;
  }

  .avatar.xxl {
    width: 82px;
    height: 82px;
  }

  /* Composer */

  .composer-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .composer-tools .btn {
    width: 100%;
  }

  /* Cards */

  .card {
    border-radius: 16px;
  }

  .post {
    padding: 15px;
  }

  /* Mobile Bottom Nav */

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));

    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));

    background: color-mix(in srgb, var(--card) 92%, transparent);

    backdrop-filter: blur(16px);

    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px rgba(18, 55, 43, 0.08);
  }

  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;

    padding: 5px 2px;

    color: var(--muted);
    font-size: 10px;
    font-weight: 700;

    border-radius: 12px;

    transition:
      color 0.15s ease,
      background 0.15s ease;
  }

  .mobile-nav a span {
    font-size: 19px;
    line-height: 1;
  }

  .mobile-nav a.active {
    color: var(--green);
    background: rgba(8, 118, 83, 0.09);
  }

  .mobile-nav a.active span {
    transform: translateY(-1px);
  }

  .mobile-nav a.mobile-logout {
    color: var(--danger);
  }

  .main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

/* ------------------------------------------------------------
   29. SMALL MOBILE
   ------------------------------------------------------------ */

@media (max-width: 420px) {
  .stats-pro {
    grid-template-columns: 1fr 1fr;
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }

  .filter-bar input {
    grid-column: auto;
  }

  .hero-pro h2 {
    font-size: 20px;
  }

  .topline h1 {
    font-size: 21px;
  }
}
