@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");

:root {
  --primary: #0f766e;
  --primary-soft: #ccfbf1;
  --accent: #f59e0b;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-300: #cbd5f5;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --amber-50: #fffbeb;
}

* {
  box-sizing: border-box;
}

.bg-primary-brand {
  background: var(--primary) !important;
  color: #fff !important;
}

.text-primary-brand {
  color: var(--primary) !important;
}

.text-accent {
  color: var(--accent);
}

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, #ecf2f8 60%, #e5eef6 100%);
  color: var(--slate-800);
}

body.cropper-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.app-shell {
  background: var(--slate-100);
  min-height: 100vh;
}

.app-header {
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  padding: 0 0.85rem;
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  height: 56px;
}

.brand-group,
.action-group {
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.brand-group {
  flex-shrink: 0;
}

.action-group {
  flex-shrink: 0;
  align-items: center;
  line-height: 54px;
}

.app-header .coin-chip {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.18rem 0.65rem;
  border-radius: 999px;
  background: #fff7db;
  border: 1px solid #fcd34d;
  color: #9a5a06;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 4px 10px rgba(250, 204, 21, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  flex-shrink: 0;
  line-height: 1;
}

.share-btn {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: var(--slate-500);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  flex-shrink: 0;
}

.share-btn:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.suggest-field {
  position: relative;
}

.suggest-popover {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.35rem);
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  padding: 0.35rem;
  max-height: 240px;
  overflow-y: auto;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  z-index: 1200;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.suggest-popover.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.suggest-option {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.55rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  color: var(--slate-700);
  transition: background 0.2s, color 0.2s;
}

.suggest-option:hover,
.suggest-option:focus {
  background: rgba(15, 118, 110, 0.08);
  color: var(--slate-900);
}

.cropper-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cropper-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.cropper-dialog {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cropper-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cropper-body {
  padding: 1rem;
  background: var(--slate-100);
}

.cropper-body img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
}

.cropper-actions {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.coin-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #fff7d6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: coin-blink 1.2s ease-in-out infinite;
}

@keyframes coin-blink {
  0%,
  100% {
    filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.7));
  }
}

.info-page main {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #eef2ff 100%);
}

.info-hero-card {
  border-radius: 30px;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(14, 116, 144, 0.95), rgba(59, 130, 246, 0.85));
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: 0 30px 60px rgba(14, 116, 144, 0.25);
  margin-bottom: 1.75rem;
}

.info-hero-card .hero-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.info-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-card {
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.08);
  padding: 1.35rem 1.5rem;
}

.info-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.info-card p,
.info-card li {
  font-size: 0.9rem;
  color: var(--slate-600);
}

.info-list {
  padding-left: 1rem;
  margin-bottom: 0;
}

.info-list li {
  margin-bottom: 0.4rem;
}

.info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.info-badge {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.12);
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.contact-card {
  border-radius: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.contact-form-card form .form-control {
  border-radius: 1.2rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
}

.contact-form-card form textarea {
  min-height: 120px;
}

.events-page main {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 35%, #fefce8 100%);
}

.events-page .detail-toolbar {
  margin-top: 1rem;
}

.events-hero-card {
  border-radius: 32px;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(234, 88, 12, 0.9));
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: 0 32px 60px rgba(234, 88, 12, 0.35);
  margin-bottom: 2rem;
}

.events-hero-card .label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
}

.events-hero-card .hero-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-top: 20px;
}

.event-card {
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.event-card .event-img {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.event-card .event-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-card .event-chip {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: #fff;
  color: var(--slate-900);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.event-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.event-head h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.event-description {
  margin-bottom: 0;
  color: var(--slate-500);
  font-size: 0.85rem;
}

.event-tag {
  align-self: flex-start;
  background: rgba(15, 118, 110, 0.12);
  color: var(--primary);
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.event-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  font-size: 0.85rem;
  color: var(--slate-600);
}

.event-meta i {
  color: var(--primary);
  margin-right: 0.35rem;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

@media (min-width: 768px) {
  .event-card {
    flex-direction: row;
    min-height: 240px;
  }

  .event-card .event-img {
    flex: 0 0 260px;
    height: auto;
  }

  .event-body {
    flex: 1;
  }
}

.coin-icon i,
.chip-icon i,
.coins-toast i,
.coins-toast span.fa-solid {
  font-size: 0.85rem;
}

.action-btn,
.avatar-btn {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
  padding: 0;
}

.action-btn:hover,
.avatar-btn:hover {
  transform: scale(0.96);
  background: var(--slate-100);
}

.app-logo {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-left: 0.65rem;
  white-space: nowrap;
  line-height: 1;
}

.avatar-btn,
.sidebar-header .avatar {
  overflow: hidden;
}

.avatar-btn img,
.sidebar-header .avatar img,
[data-profile-avatar] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 999px;
}

@media (max-width: 360px) {
  .brand-label {
    font-size: 0.8rem;
  }
  .app-name {
    font-size: 0.85rem;
    margin-left: 0.5rem;
  }
  .app-header .coin-chip {
    font-size: 0.68rem;
    padding: 0.2rem 0.6rem;
  }
  .share-btn,
  .action-btn,
  .avatar-btn {
    width: 2rem;
    height: 2rem;
  }
  .app-logo {
    width: 2.2rem;
    height: 2.2rem;
  }
}

.section-card {
  border-radius: 1.5rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.08);
}

.hero-curve {
  border-bottom-left-radius: 2rem;
  border-bottom-right-radius: 2rem;
}

.home-shell {
  max-width: 480px;
  margin: 0 auto;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  grid-gap: 0.75rem;
  margin-top: 20px;
}

.tile-card {
  background: #fff;
  border-radius: 1rem;
  padding: 0.85rem 0.6rem;
  text-align: center;
  border: 1px solid rgba(15, 118, 110, 0.08);
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: black;
}

.tile-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(15, 118, 110, 0.12);
}

.tile-icon {
  width: 2.3rem;
  height: 2.3rem;
  margin: 0 auto 0.45rem;
  border-radius: 999px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.home-info-card {
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.08);
  padding: 1rem;
  margin-bottom: 0.9rem;
}

.coin-balance-card {
  background: #d4f9ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  box-shadow: 0 15px 35px rgba(15, 118, 110, 0.12);
  margin-top: 10px;
}

.coin-balance-text {
  color: var(--slate-800);
}

.coin-balance-text h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.coin-balance-text p {
  margin-bottom: 0;
  font-size: 0.78rem;
  color: var(--slate-600);
}

.coin-icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.12);
  flex-shrink: 0;
}

.visitor-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.08);
  padding: 0.95rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 10px;
}

.visitor-text h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--slate-800);
}

.visitor-text p {
  margin-bottom: 0;
  font-size: 0.75rem;
  color: var(--slate-600);
}

.visitor-icons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.visitor-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(15, 118, 110, 0.12);
}

.visitor-icon.facebook {
  background: #1877f2;
}

.visitor-icon.instagram {
  background: linear-gradient(135deg, #f97794, #f78ca0, #fad0c4);
}

.visitor-icon.youtube {
  background: #ff2d55;
}

.home-info-card.minimal {
  border: 1px solid rgba(15, 118, 110, 0.08);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.05);
  margin-top: 10px;
}

.chip-icon {
  font-size: 1.4rem;
}

.page-toolbar {
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.08);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toolbar-copy {
  flex: 1;
  text-align: center;
}

.toolbar-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.15rem;
}

.toolbar-subtitle {
  font-size: 0.72rem;
  color: var(--slate-500);
  margin-bottom: 0;
}

.profile-photo {
  width: 90px;
  height: 110px;
  border-radius: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-photo img,
.object-fit-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.matrimony-card .badge-soft {
  font-size: 0.65rem;
}

.matrimony-card .profile-meta {
  font-size: 0.78rem;
  color: var(--slate-500);
}

.matrimony-details {
  font-size: 0.75rem;
  color: var(--slate-600);
}

.matrimony-details li {
  margin-bottom: 0.1rem;
}


.card-actions {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  margin-top: 0.75rem;
}

.card-actions .btn-call,
.card-actions .btn-detail {
  flex: 1;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  border: 1px solid #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
}

.card-actions .btn-call {
  background: #0f766e;
  color: #fff;
}

.card-actions .btn-detail {
  background: transparent;
  color: #0f766e;
}

.card-actions .btn-call.disabled,
.card-actions .btn-call[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
}

[data-profiles-container] > .matrimony-card:not(:last-child) {
  margin-bottom: 1rem;
}

[data-profiles-empty] {
  border-radius: 1.25rem;
  background: #fff;
  border: 1px dashed rgba(15, 118, 110, 0.2);
}

.floating-button i {
  font-size: 1.1rem;
}

.matrimony-modal .modal-content {
  border-radius: 1.5rem;
  border: none;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.15);
}

.profile-detail-card {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border-radius: 1.25rem;
  padding: 1.5rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.profile-detail-photo {
  width: 110px;
  height: 130px;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(15, 23, 42, 0.12);
}

.profile-detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.75rem;
}

.detail-badge.status-positive {
  background: #ecfdf5;
  color: #047857;
}

.detail-badge.status-warning {
  background: #fef2f2;
  color: #b91c1c;
}

.profile-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

.profile-detail-grid small {
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.detail-col-span {
  grid-column: span 2;
}

@media (max-width: 480px) {
  .detail-col-span {
    grid-column: span 1;
  }
}

.detail-photo-tile {
  border-radius: 1rem;
  background: #f8fafc;
  padding: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.05);
  height: 100%;
}

.detail-photo-tile img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.85rem;
}

.detail-photo-clickable {
  cursor: zoom-in;
  border-radius: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.detail-photo-clickable:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.detail-photo-clickable:hover {
  transform: scale(1.01);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.15);
}

.matrimony-photo-modal .modal-content {
  border: none;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #000;
}

.matrimony-photo-modal .modal-body {
  padding: 0;
  background: #000;
}

.matrimony-photo-modal img {
  width: 100%;
  height: auto;
  display: block;
}

.matrimony-photo-modal .modal-close {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  opacity: 0.85;
  z-index: 5;
}

.matrimony-photo-modal .modal-close:hover {
  opacity: 1;
}

.matrimony-add-form .form-section {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 1.25rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.05);
}

.matrimony-add-form .section-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  margin-bottom: 0.75rem;
}

.matrimony-add-form label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-600);
}

.matrimony-add-form .form-control,
.matrimony-add-form select,
.matrimony-add-form textarea {
  border-radius: 1.5rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.matrimony-add-form textarea {
  border-radius: 1.25rem;
}

.matrimony-add-form .form-control:focus,
.matrimony-add-form select:focus,
.matrimony-add-form textarea:focus {
  border-color: #0f766e;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.form-submit .btn-call {
  width: 100%;
  max-width: 320px;
  border: none;
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  box-shadow: 0 15px 30px rgba(15, 118, 110, 0.25);
}

.form-submit {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

.create-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}


.create-card__header h1 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.create-card__header p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--slate-500);
}

.create-upload {
  min-height: 180px;
  margin-bottom: 1rem;
}

.create-upload .media-preview {
  height: 180px;
}

.create-caption .form-control {
  border-radius: 1.5rem;
  resize: none;
}

.create-caption {
  margin-bottom: 0.5rem;
}

.media-label {
  display: block;
  margin-bottom: 0.4rem;
}

.media-dropzone {
  display: block;
  border: 1px dashed rgba(15, 23, 42, 0.25);
  border-radius: 1rem;
  padding: 1rem;
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.media-dropzone:hover {
  border-color: #0f766e;
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.15);
}

.media-placeholder {
  color: var(--slate-500);
  font-size: 0.85rem;
}

.media-placeholder i {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  display: block;
  color: #0f766e;
}

.media-preview {
  display: none;
  width: 100%;
  height: 160px;
  border-radius: 0.8rem;
  overflow: hidden;
  background: #fff;
  margin-bottom: 0.35rem;
}

.media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-dropzone.has-file .media-preview {
  display: block;
}

.media-dropzone.has-file .media-placeholder {
  display: none;
}

.media-dropzone--pdf {
  padding: 1rem 1.25rem;
}

.media-dropzone--pdf .media-preview {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  height: auto;
}

.media-dropzone--pdf .media-preview i {
  font-size: 1.4rem;
  color: #b91c1c;
}

.media-dropzone--pdf .media-preview span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  text-align: left;
}

.btn-call {
  background: #0f766e;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-call i {
  font-size: 0.9rem;
}

.btn-call:hover {
  background: #16a34a;
}

.text-11 {
  font-size: 0.7rem;
  line-height: 1.1rem;
}

.shadow-soft {
  box-shadow: 0 16px 40px rgba(15, 118, 110, 0.12);
}

.btn-pill {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
}

.btn-primary-soft {
  background: var(--primary);
  border: none;
  color: #fff;
}

.btn-primary-soft:hover {
  background: #0c5a52;
}

.badge-soft {
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.65rem;
}

.badge-rose {
  background: #fef2f2;
  color: #b91c1c;
}

.badge-emerald {
  background: #ecfdf5;
  color: #047857;
}

.card-rounded {
  border-radius: 1.5rem;
  border: none;
  box-shadow: 0 14px 36px rgba(15, 118, 110, 0.08);
}

.profile-field {
  font-size: 0.8rem;
  color: var(--slate-600);
}

.profile-label {
  color: var(--slate-500);
  font-size: 0.7rem;
}

.app-bottom-nav {
  position: sticky;
  bottom: 0;
  background: #fff;
  box-shadow: 0 -15px 30px rgba(15, 23, 42, 0.1);
  border-top-left-radius: 1.5rem;
  border-top-right-radius: 1.5rem;
  padding: 0.35rem 0.75rem 0.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
}

.app-bottom-nav a,
.bottom-nav-link {
  text-decoration: none;
}

.bottom-nav-link {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: var(--slate-500);
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.nav-label {
  font-size: 0.65rem;
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: #f3f6fb;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--slate-500);
  transition: background 0.2s, color 0.2s, border 0.2s;
}

.bottom-nav-link.active {
  color: var(--primary);
}

.bottom-nav-link.active .nav-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.bottom-nav-link.create-link .nav-icon {
  background: #ccfbf1;
  border-color: transparent;
  color: var(--primary);
  width: 48px;
  height: 48px;
  border-radius: 24px;
  font-size: 1.4rem;
  box-shadow: 0 15px 30px rgba(15, 118, 110, 0.25);
}

.gallery-tile {
  border-radius: 1.25rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 26px rgba(15, 118, 110, 0.08);
}

.gallery-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.7rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.matrimony-card {
  border-radius: 1.25rem;
  border: none;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.08);
  transition: transform 0.2s;
}

.matrimony-card:hover {
  transform: translateY(-3px);
}

.profiles-section {
  margin-top: 1.25rem;
}

.create-btn {
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 20px 35px rgba(15, 118, 110, 0.35);
  border: none;
}

.floating-button {
  position: fixed;
  right: 1rem;
  bottom: 5rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 25px 40px rgba(15, 118, 110, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.floating-button.accent {
  background: var(--accent);
  box-shadow: 0 25px 40px rgba(245, 158, 11, 0.4);
}

.post-card {
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 118, 110, 0.08);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.post-header {
  padding: 0.85rem 1rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.post-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-author {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.1rem;
  color: var(--slate-800);
}

.post-card img.cover {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.post-footer {
  padding: 0.8rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.post-caption {
  padding: 0.5rem 1rem 0;
  font-size: 1rem;
  color: var(--slate-700);
  line-height: 1.6;
  margin-bottom: 0.75rem;
  position: relative;
  display: block;
}

.post-caption-text {
  display: block;
  white-space: pre-line;
}

.post-caption-text.is-truncated {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card:has(img.cover) .post-caption-text.is-truncated {
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.post-card:not(:has(img.cover)) .post-caption-text.is-truncated {
  -webkit-line-clamp: 6;
  line-clamp: 6;
}

.post-menu {
  position: relative;
}

.post-menu-trigger {
  border: none;
  background: rgba(15, 23, 42, 0.05);
  width: 34px;
  height: 34px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  transition: background 0.2s, color 0.2s;
}

.post-menu-trigger:hover,
.post-menu-trigger[aria-expanded="true"] {
  background: rgba(15, 23, 42, 0.12);
  color: var(--slate-800);
}

.post-menu-list {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 160px;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.15);
  padding: 0.25rem;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 3;
}

.post-menu-list.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.post-menu-item {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  border-radius: 0.65rem;
  font-size: 0.85rem;
  color: var(--slate-600);
  transition: background 0.2s, color 0.2s;
}

.post-menu-item i {
  color: #dc2626;
}

.post-menu-item:hover {
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
}

.post-meta {
  font-size: 0.65rem;
  color: var(--slate-500);
}

.caption-toggle {
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
  display: inline;
  margin-left: 0.25rem;
}

.caption-toggle:hover,
.caption-toggle:focus {
  text-decoration: underline;
}

.caption-toggle.needs-ellipsis::before {
  content: "… ";
}

.btn-like {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-600);
  transition: transform 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-like svg {
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.35rem;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.btn-like:hover svg {
  color: #6b7280;
}

.btn-like.liked svg {
  color: #f43f5e;
}

.btn-like.liked {
  color: #f43f5e;
  transform: scale(1.05);
}

.btn-like.loading {
  opacity: 0.6;
  pointer-events: none;
}

.ad-card {
  background: #fff;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.08);
  margin-bottom: 1rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ad-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.12);
}

.ad-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ad-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.ad-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.ad-content {
  padding: 1rem;
}

.ad-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.ad-description {
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 0;
  line-height: 1.5;
}

.filter-card,
.form-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1rem;
  box-shadow: 0 14px 30px rgba(15, 118, 110, 0.08);
  margin-bottom: 1rem;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.page-heading h1 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.page-heading p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--slate-500);
}

.btn-ghost {
  border: none;
  background: #fff;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.blood-filter-card {
  padding: 1.25rem;
}

.blood-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem 1rem;
}

.blood-filter-grid label span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--slate-500);
  margin-bottom: 0.35rem;
}

.blood-filter-grid .form-control {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  padding: 0.55rem 0.85rem;
  font-size: 0.85rem;
}

.donor-list {
  display: grid;
  gap: 1rem;
  padding-bottom: 2.5rem;
}

.donor-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 0.85rem;
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.08);
  display: flex;
  gap: 0.75rem;
}

.donor-media {
  width: 80px;
  height: 96px;
  border-radius: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.donor-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.donor-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.donor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.donor-head-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.donor-menu {
  position: relative;
}

.donor-menu-trigger {
  border: none;
  background: rgba(15, 23, 42, 0.05);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-600);
  transition: background 0.2s, color 0.2s;
}

.donor-menu-trigger:hover,
.donor-menu-trigger[aria-expanded="true"] {
  background: rgba(15, 23, 42, 0.12);
  color: var(--slate-800);
}

.donor-menu-list {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}

.donor-menu-list.is-open,
.donor-menu-list[data-open="true"],
.donor-menu-list.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

[data-donor-menu].is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.donor-menu-item {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--slate-700);
  transition: background 0.2s, color 0.2s;
}

.donor-menu-item i {
  color: #dc2626;
}

.donor-menu-item:hover {
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
}

.donor-head h3 {
  font-size: 0.95rem;
  margin: 0;
  color: var(--slate-900);
}

.blood-chip {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #fef2f2;
  color: #b91c1c;
}

.donor-meta {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-bottom: 0.15rem;
}

.donor-form .form-group {
  margin-bottom: 1rem;
}

.donor-form .form-control-rounded,
.donor-form select.form-control-rounded {
  width: 100%;
  border-radius: 20px;
}

.donor-create-card {
  padding: 1.75rem 1.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 45%);
  border: 1px solid rgba(15, 23, 42, 0.05);
  margin-top: 10px;
}

.donor-back-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: none;
  background: #fff;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-700);
}

.donor-back-btn i {
  font-size: 0.95rem;
}

.donor-top-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.donor-heading {
  display: flex;
  flex-direction: column;
}

.donor-heading h1,
.donor-heading p {
  margin-left: 0;
}

/* Business Directory */
.business-filter-card {
  padding: 1.25rem;
}

.business-search-bar {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.business-search-bar i {
  color: var(--slate-400);
  margin-right: 0.5rem;
}

.business-search-bar .form-control {
  border: none;
  background: transparent;
  box-shadow: none;
  font-size: 0.85rem;
  padding: 0;
}

.business-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem 1rem;
}

.business-filter-grid .form-control {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
}

.business-list {
  display: grid;
  gap: 1rem;
  padding-bottom: 2.5rem;
}

.business-card {
  display: flex;
  gap: 0.9rem;
  background: #fff;
  border-radius: 1.5rem;
  padding: 0.85rem;
  box-shadow: 0 18px 45px rgba(15, 118, 110, 0.08);
}

.business-photo {
  width: 90px;
  height: 100px;
  border-radius: 1.1rem;
  overflow: hidden;
  flex-shrink: 0;
}

.business-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-body {
  flex: 1;
}

.business-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.2rem;
}

.business-meta {
  font-size: 0.78rem;
  color: var(--slate-500);
  margin-bottom: 0.15rem;
}

/* Profile page */
.profile-page {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 35%, #f8fafc 100%);
}

.profile-cover {
  position: relative;
  height: 180px;
  background: transparent;
  overflow: hidden;
}

.profile-cover-media {
  position: absolute;
  inset: 0;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  overflow: hidden;
}

.profile-cover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--cover-offset, 50%);
  transition: transform 0.35s ease;
}

.profile-cover-gradient {
  position: absolute;
  inset: 0;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  /* background: linear-gradient(135deg, rgba(15, 118, 110, 0.85), rgba(20, 184, 166, 0.8), rgba(251, 191, 36, 0.75));
  box-shadow: 0 20px 50px rgba(15, 118, 110, 0.3); */
  pointer-events: none;
}

.profile-cover-btn {
  position: absolute;
  top: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-700);
}

.profile-cover-btn.edit {
  right: 18px;
}

.profile-cover-btn:not(.edit) {
  left: 18px;
}

.profile-head-card {
  position: relative;
  margin-top: -50px;
  padding: 0 1rem 0.5rem;
}

.profile-head-inner {
  background: #fff;
  border-radius: 32px;
  padding: 1.5rem 1.25rem 1rem;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.profile-head-inner .profile-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  overflow: visible;
  position: relative;
  background: #fff;
}

.profile-head-inner .profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% var(--photo-offset, 50%);
  border-radius: 50%;
}

.profile-photo-edit {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border: 3px solid #fff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
  z-index: 2;
}

.profile-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #38bdf8;
  color: #fff;
  font-size: 0.65rem;
  margin-left: 0.35rem;
}

.profile-subtext {
  font-size: 0.78rem;
  color: var(--slate-500);
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}

.profile-stat {
  background: #f1f5f9;
  border-radius: 20px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.profile-stat-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 0.1rem;
}

.profile-stat span {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--slate-500);
  letter-spacing: 0.05em;
}

.profile-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.profile-progress .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--slate-500);
  letter-spacing: 0.04em;
}

.progress-line {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.progress-line div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #14b8a6, #fbbf24);
}

.privacy-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--slate-500);
}

.profile-switch {
  width: 42px;
  height: 22px;
  border-radius: 999px;
  border: none;
  background: var(--primary);
  position: relative;
}

.profile-switch span {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  right: 3px;
  top: 2px;
}

.profile-body {
  margin-top: 1rem;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.btn.gradient {
  background: linear-gradient(90deg, #0f766e, #14b8a6, #22d3ee);
  border: none;
  color: #fff;
  font-weight: 600;
}

.profile-actions .btn.gradient {
  grid-column: 2 / 1;
}

.profile-actions .btn {
  border-radius: 999px;
  min-height: 46px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
}

.profile-actions .btn-outline-secondary {
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--slate-600);
  background: #fff;
}

.collapse-card {
  background: #fff;
  border-radius: 24px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.08);
}

.collapse-header {
  width: 100%;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.35rem 0;
}

.collapse-header span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-900);
}

.icon-pill {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.collapse-panel {
  padding: 0.5rem 0 0.2rem;
  display: none;
}

.collapse-panel.open {
  display: block;
}

.collapse-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.collapse-row:last-child {
  border-bottom: none;
}

.collapse-row span {
  font-size: 0.75rem;
  color: var(--slate-500);
}

.collapse-row p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-900);
}

.collapse-arrow {
  transition: transform 0.2s ease;
}

.collapse-arrow.rotated {
  transform: rotate(180deg);
}

.profile-edit-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
  padding: 1rem;
}

.profile-edit-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.profile-edit-card .form-section {
  margin-bottom: 1rem;
}

.profile-edit-card .form-section p {
  font-size: 0.75rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.profile-edit-card .form-control,
.profile-edit-card select {
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
}

.profile-edit-card select {
  background-color: #fff;
}

.profile-edit-card .form-actions {
  display: flex;
  gap: 0.6rem;
}

.profile-edit-page {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 40%, #f8fafc 100%);
}

.edit-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-700);
}

.profile-edit-hero {
  padding: 1rem 1.25rem 0;
  margin-bottom: 20px;
}

.profile-edit-hero .hero-card {
  background: linear-gradient(120deg, rgba(15, 118, 110, 0.95), rgba(20, 184, 166, 0.85));
  border-radius: 28px;
  padding: 1.5rem;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 30px 60px rgba(15, 118, 110, 0.2);
}

.profile-edit-hero .hero-card .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
  margin-bottom: 0.35rem;
}

.profile-edit-hero .hero-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0;
}

.profile-edit-hero .hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.profile-edit-content {
  margin-top: 1rem;
}

.profile-edit-form label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
  margin-bottom: 0.3rem;
}

.profile-edit-form .section-heading {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.profile-edit-form .section-heading .title {
  margin-bottom: 0;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--slate-900);
}

.profile-edit-form .section-heading small {
  display: block;
  color: var(--slate-500);
}

.profile-edit-form .form-control,
.profile-edit-form select {
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #f8fafc;
  font-size: 0.9rem;
  padding: 0.55rem 0.95rem;
  box-shadow: none;
}

.profile-edit-form .form-section {
  margin-bottom: 1.5rem;
}

#profileSaveButton {
  border-radius: 999px;
  min-height: 48px;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.2);
}

.profile-edit-form .icon-pill.small {
  width: 32px;
  height: 32px;
  font-size: 0.85rem;
}

.profile-media-modal .modal-content {
  border-radius: 24px;
  border: none;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.15);
}

.profile-media-preview {
  width: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.profile-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.profile-media-preview.circle {
  width: 170px;
  height: 170px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 50%;
}

.profile-media-preview.rectangle {
  height: 180px;
}

.media-slider-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-500);
  display: block;
  margin-bottom: 0.35rem;
}

.profile-media-actions {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.profile-media-actions .btn {
  border-radius: 999px;
  padding-left: 1.4rem;
  padding-right: 1.4rem;
}

@media (min-width: 768px) {
  .profile-actions .btn.gradient {
    grid-column: span 1;
  }
  .profile-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.filter-panel {
  display: none;
  animation: panel-slide 0.25s ease forwards;
}

.filter-panel.active {
  display: block;
}

@keyframes panel-slide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-card input,
.filter-card select,
.form-card input,
.form-card select,
.form-card textarea {
  font-size: 0.75rem;
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
  padding: 0.45rem 0.75rem;
}

.detail-list .label {
  color: var(--slate-500);
  font-size: 0.7rem;
}

.detail-list .value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-900);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  width: 50%;
  height: 250px;
}

.gallery-grid figure {
  margin: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 118, 110, 0.1);
  position: relative;
}

.gallery-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.4rem 0.7rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.85) 100%);
}

.gallery-page main {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f2fbf9 100%);
}

.gallery-hero-card {
  border-radius: 30px;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(20, 184, 166, 0.8));
  color: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  box-shadow: 0 30px 60px rgba(15, 118, 110, 0.25);
  margin-bottom: 1.5rem;
}

.gallery-hero-card .label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
}

.gallery-hero-card .hero-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.gallery-grid-section {
  margin-bottom: 2rem;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox .lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.85);
}

.gallery-lightbox .lightbox-content {
  position: relative;
  width: min(90vw, 420px);
  max-height: 90vh;
  background: #000;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-lightbox .lightbox-meta {
  padding: 0.85rem 1.1rem 1.1rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.lightbox-meta .caption {
  font-weight: 600;
}

.gallery-lightbox .lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox .lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox .lightbox-nav.prev {
  left: 0.75rem;
}

.gallery-lightbox .lightbox-nav.next {
  right: 0.75rem;
}

@media (min-width: 768px) {
  .gallery-lightbox .lightbox-content {
    width: min(80vw, 520px);
  }
}

.profile-section {
  border-radius: 1.75rem;
  box-shadow: 0 18px 45px rgba(15, 118, 110, 0.08);
  background: #fff;
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0.65rem 0;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1040;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: calc(100% - 40px);
  height: 100vh;
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1050;
  display: flex;
  flex-direction: column;
}

.sidebar-panel.active {
  transform: translateX(0);
}

.sidebar-header {
  padding: 1.25rem 1.25rem 0.75rem;
  border-bottom: 1px solid rgba(15, 118, 110, 0.08);
}

.sidebar-header .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 0.75rem;
}

.sidebar-social {
  padding: 0.75rem 1.25rem;
  display: flex;
  gap: 0.5rem;
}

.sidebar-social a {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
}

.sidebar-section {
  padding: 0.75rem 1.25rem;
}

.sidebar-section-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  margin-bottom: 0.35rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.4rem 0;
  color: var(--slate-700);
  font-size: 0.85rem;
  text-decoration: none;
}

.sidebar-link span {
  margin-left: 0.55rem;
}

.sidebar-link.active {
  color: var(--primary);
  font-weight: 600;
}

.logout-btn {
  margin: 1rem;
  border-radius: 999px;
  padding: 0.9rem;
  background: #0f172a;
  border: none;
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.sidebar-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

body.sidebar-open {
  overflow: hidden;
}

@media (min-width: 768px) {
  .app-shell main {
    padding-bottom: 4rem;
    margin-top: 10px;
  }

  .floating-button,
  .create-btn {
    right: 2.5rem;
  }

  .tile-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}

.coins-toast {
  position: fixed;
  left: 50%;
  bottom: 7rem;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 20px 35px rgba(15, 118, 110, 0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.coins-toast.show {
  opacity: 1;
  transform: translate(-50%, -0.5rem);
}

@keyframes coin-blink {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.6;
  }
}

.btn-like-count {
  background: transparent;
  border: none;
  color: var(--slate-600);
  font-size: 0.85rem;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-like-count:hover {
  color: var(--primary);
}

.likes-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 12px;
  transition: background-color 0.2s;
}

.likes-item:hover {
  background-color: var(--slate-100);
}

.likes-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.likes-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-800);
}

#likesModalBody {
  max-height: 400px;
  overflow-y: auto;
}

#likesList {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Sponsored Ads Styling */
.sponsored-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #0ea5e9;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0369a1;
  margin-top: 2%;
  margin-left: 2%;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 3px rgba(14, 165, 233, 0.1);
  transition: all 0.2s ease;
  align-self: flex-start;
}

.sponsored-label i {
  font-size: 0.8rem;
  color: #0ea5e9;
  animation: rotate 20s linear infinite;
}

.sponsored-label:hover {
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  border-color: #0284c7;
  color: #075985;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.2);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Sponsored ad cards styling */
.sponsored-ad {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.sponsored-ad::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #0ea5e9 0%, #06b6d4 50%, #0ea5e9 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
}

.sponsored-ad:hover {
  border-color: #0ea5e9;
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.15);
  transform: translateY(-2px);
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Ad content styling */
.ad-content {
  padding: 1rem;
}

.ad-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.ad-content p {
  font-size: 0.875rem;
  color: var(--slate-600);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.ad-content .btn-primary {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ad-content .btn-primary:hover {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}
