:root {
  --primary-navy: #092B5A;
  --accent-orange: #FF6600;
  --ig-border: #DBDBDB;
  --ig-bg: #FFFFFF;
  --ig-secondary-text: #737373;
  --ig-primary-text: #262626;
  --ig-danger: #ED4956;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --col-nav-width: 245px;
  --col-main-width: 630px;
  --col-side-width: 325px;
  --total-layout-width: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--ig-bg);
  color: var(--ig-primary-text);
  min-height: 100vh;
  overflow-x: hidden;
}

.hidden {
  display: none !important;
}

.app-layout {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  width: 100%;
  max-width: var(--total-layout-width);
  margin: 0 auto;
  min-height: 100vh;
}

.col-nav {
  width: var(--col-nav-width);
  visibility: visible;
  min-width: var(--col-nav-width);
  max-width: var(--col-nav-width);
  flex-shrink: 0;
  border-right: 1px solid var(--ig-border);
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
  background: var(--ig-bg);
}

.nav-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0 8px;
  text-decoration: none;
}

.nav-logo {
  max-height: 38px;
  max-width: 180px;
  width: auto;
  object-fit: contain;
}

.nav-brand-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.nav-brand-text span {
  color: var(--accent-orange);
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ig-primary-text);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.nav-item:hover {
  background-color: #F4F4F4;
}

.nav-item.active {
  font-weight: 700;
}

.nav-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.btn-create-post {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--accent-orange);
  color: #FFFFFF;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 14px;
  transition: opacity 0.2s ease;
}

.btn-create-post:hover {
  opacity: 0.92;
}

.btn-create-post svg {
  width: 20px;
  height: 20px;
}

.btn-nav-guest {
  width: 100%;
  margin-top: 0;
  background-color: var(--primary-navy);
}

.nav-footer {
  margin-top: auto;
  border-top: 1px solid var(--ig-border);
  padding-top: 14px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s ease;
}

.user-chip:hover {
  background-color: #F4F4F4;
}

.user-chip-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ig-border);
  flex-shrink: 0;
}

.user-chip-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.user-chip-name {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-chip-handle {
  font-size: 0.78rem;
  color: var(--ig-secondary-text);
}

.mobile-nav-add-btn {
  display: none;
}

.col-main {
  width: 100%;
  max-width: var(--col-main-width);
  min-width: 0;
  flex: 1 1 auto;
  border-right: 1px solid var(--ig-border);
  padding: 20px 16px;
  min-height: 100vh;
}

.col-side {
  width: var(--col-side-width);
  flex: 0 0 var(--col-side-width);
  min-width: 0;
  padding: 24px 20px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.widget-box {
  background: #FAFAFA;
  border: 1px solid var(--ig-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.widget-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.widget-text {
  font-size: 0.82rem;
  color: var(--ig-secondary-text);
  line-height: 1.5;
}

.page-header-box {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #EFEFEF;
}

.page-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.page-subtitle {
  font-size: 0.85rem;
  color: var(--ig-secondary-text);
  margin-top: 4px;
}

.empty-state {
  padding: 48px 24px;
  text-align: center;
  background: #FAFAFA;
  border-radius: 14px;
  border: 1px dashed var(--ig-border);
}

.empty-state-title {
  color: var(--primary-navy);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.empty-state-text {
  font-size: 0.85rem;
  color: var(--ig-secondary-text);
}

.state-loading {
  text-align: center;
  color: var(--ig-secondary-text);
  padding: 40px;
  font-size: 0.9rem;
}

.district-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  width: 100%;
}

.district-tray {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  padding-top: 4px;
  scrollbar-width: none;
  scroll-behavior: smooth;
  width: 100%;
}

.district-tray::-webkit-scrollbar {
  display: none;
}

.district-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--ig-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  color: var(--primary-navy);
  transition: all 0.15s ease;
}

.district-arrow-btn:hover {
  background: #FAFAFA;
  color: var(--accent-orange);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.district-arrow-left {
  left: -6px;
}

.district-arrow-right {
  right: -6px;
}

.district-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  background: #FAFAFA;
  border: 1px solid var(--ig-border);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ig-primary-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.district-pill:hover,
.district-pill.active {
  background: var(--primary-navy);
  color: #FFFFFF;
  border-color: var(--primary-navy);
}

.category-tray {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid #EFEFEF;
  scrollbar-width: none;
}

.category-tray::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  background: none;
  border: none;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ig-secondary-text);
  cursor: pointer;
  font-family: inherit;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.cat-btn:hover,
.cat-btn.active {
  color: var(--accent-orange);
  border-bottom-color: var(--accent-orange);
  font-weight: 700;
}

.feed-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-card {
  background: #FFFFFF;
  border: 1px solid var(--ig-border);
  border-radius: 12px;
  overflow: visible;
  position: relative;
}

.post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  position: relative;
}

.post-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ig-border);
}

.post-user {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ig-primary-text);
  text-decoration: none;
}

.post-district {
  font-size: 0.72rem;
  color: var(--accent-orange);
  font-weight: 600;
}

.post-menu-wrapper {
  position: relative;
}

.btn-post-options {
  background: none;
  border: none;
  color: var(--ig-secondary-text);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.btn-post-options:hover {
  background-color: #F4F4F4;
  color: var(--primary-navy);
}

.post-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  width: 180px;
  background: #FFFFFF;
  border: 1px solid var(--ig-border);
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  z-index: 50;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.post-dropdown-menu.show {
  display: flex;
}

.post-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ig-primary-text);
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.post-dropdown-item:hover {
  background-color: #FAFAFA;
}

.post-dropdown-item.danger {
  color: var(--ig-danger);
}

.post-dropdown-item.danger:hover {
  background-color: #FFF2F2;
}

.post-dropdown-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.post-media-link {
  display: block;
  text-decoration: none;
  background: #000000;
}

.post-media {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  display: block;
}

.post-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
}

.post-actions-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.post-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ig-primary-text);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0;
  text-decoration: none;
}

.post-caption {
  padding: 0 14px 14px;
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-caption a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: underline;
}

.poll-container {
  padding: 14px 16px;
  background: #FAFAFA;
  border-top: 1px solid var(--ig-border);
  border-bottom: 1px solid var(--ig-border);
}

.poll-question {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
  line-height: 1.4;
}

.poll-options-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.poll-option-btn {
  position: relative;
  width: 100%;
  padding: 10px 14px;
  background: #FFFFFF;
  border: 1px solid var(--ig-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ig-primary-text);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.poll-option-btn:hover:not(:disabled) {
  border-color: var(--accent-orange);
  background: #FFFDF9;
}

.poll-option-btn.selected {
  border-color: var(--accent-orange);
  font-weight: 700;
}

.poll-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: rgba(255, 102, 0, 0.15);
  border-radius: 6px;
  transition: width 0.4s ease-out;
  pointer-events: none;
}

.poll-option-label {
  position: relative;
  z-index: 2;
}

.poll-option-percent {
  position: relative;
  z-index: 2;
  font-weight: 700;
  color: var(--primary-navy);
  font-size: 0.82rem;
}

.poll-footer-info {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--ig-secondary-text);
}

.poll-status-tag {
  color: var(--accent-orange);
  font-weight: 700;
}

.comments-section {
  margin-top: 20px;
}

.comments-header {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comment-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.comment-left {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-content {
  font-size: 0.88rem;
  line-height: 1.4;
}

.btn-delete-comment {
  background: none;
  border: none;
  color: var(--ig-danger);
  cursor: pointer;
  padding: 4px;
}

.comment-composer {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.comment-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--ig-border);
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  font-size: 0.88rem;
}

.btn-comment-submit {
  background: var(--accent-orange);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}

.profile-header-card {
  background: #FFFFFF;
  border: 1px solid var(--ig-border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.profile-user-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-avatar-large {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--ig-border);
  flex-shrink: 0;
}

.profile-user-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.profile-handle {
  font-size: 0.88rem;
  color: var(--ig-secondary-text);
  font-weight: 600;
}

.profile-district-tag {
  font-size: 0.8rem;
  color: var(--accent-orange);
  font-weight: 700;
  margin-top: 2px;
}

.profile-actions-bar {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-profile-logout {
  background: rgba(237, 73, 86, 0.1);
  color: var(--ig-danger);
  border: 1px solid rgba(237, 73, 86, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-profile-logout:hover {
  background: var(--ig-danger);
  color: #FFFFFF;
}

.profile-stats-row {
  display: flex;
  gap: 24px;
  padding-top: 10px;
  border-top: 1px solid #EFEFEF;
}

.stat-item {
  font-size: 0.88rem;
  color: var(--ig-secondary-text);
}

.stat-item strong {
  color: var(--ig-primary-text);
  font-weight: 800;
}

.profile-bio {
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ig-primary-text);
}

.guest-more-posts-card {
  background: #FAFAFA;
  border: 1px solid var(--ig-border);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.guest-more-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.guest-more-text {
  font-size: 0.88rem;
  color: var(--ig-secondary-text);
  max-width: 360px;
  line-height: 1.4;
}

.btn-guest-login {
  background: var(--accent-orange);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}

.modal-card {
  background: #FFFFFF;
  border-radius: 14px;
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ig-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.btn-close-modal {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--ig-secondary-text);
}

.modal-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.form-field select,
.form-field textarea,
.form-field input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--ig-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  background: #FAFAFA;
}

.form-field textarea {
  resize: vertical;
  min-height: 95px;
}

.feature-btn {
  background: none;
  border: 1px solid var(--ig-border);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--primary-navy);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.feature-btn:hover {
  background-color: #F4F4F4;
  border-color: var(--accent-orange);
}

.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--ig-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FAFAFA;
}

.btn-cancel {
  background: #FFFFFF;
  border: 1px solid var(--ig-border);
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.btn-submit-post {
  background: var(--accent-orange);
  color: #FFFFFF;
  border: none;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-submit-post:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.drawer-media-box {
  border: 1px dashed var(--ig-border);
  border-radius: 8px;
  padding: 10px;
  background: #FAFAFA;
  position: relative;
}

.media-preview-container {
  display: none;
  position: relative;
}

.media-preview-img,
.media-preview-vid {
  max-height: 220px;
  width: 100%;
  border-radius: 6px;
  display: none;
  object-fit: cover;
}

.btn-media-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.65);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-upload-placeholder {
  text-align: center;
  color: var(--ig-secondary-text);
  font-size: 0.85rem;
  padding: 10px;
  cursor: pointer;
}

.drawer-poll-box {
  border: 1px solid var(--ig-border);
  border-radius: 8px;
  padding: 12px;
  background: #FAFAFA;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-poll-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.poll-option-inputs-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drawer-poll-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.btn-poll-add-opt {
  background: none;
  border: none;
  color: var(--accent-orange);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-poll-remove-drawer {
  background: none;
  border: none;
  color: var(--ig-danger);
  font-size: 0.82rem;
  cursor: pointer;
}

.drawer-schedule-box {
  border: 1px solid var(--ig-border);
  border-radius: 8px;
  padding: 10px;
  background: #FAFAFA;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-clear-schedule {
  background: none;
  border: none;
  color: var(--ig-danger);
  font-size: 0.82rem;
  cursor: pointer;
}

.auth-modal-card {
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  max-height: 92vh;
  overflow-x: hidden;
  overflow-y: auto;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

#reg-inline-mobile,
label[for="reg-inline-mobile"] {
  display: block !important;
  visibility: visible !important;
}

.auth-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--ig-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-modal-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.auth-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-modal-tabs {
  display: flex;
  border-radius: 8px;
  background: #FAFAFA;
  padding: 4px;
  border: 1px solid var(--ig-border);
  margin-bottom: 6px;
}

.auth-tab-btn {
  flex: 1;
  border: none;
  background: none;
  padding: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ig-secondary-text);
  transition: all 0.15s ease;
}

.auth-tab-btn.active {
  background: #FFFFFF;
  color: var(--primary-navy);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.auth-form-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--ig-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  background: #FAFAFA;
  outline: none;
}

.auth-input:focus {
  background: #FFFFFF;
  border-color: #888888;
}

.btn-auth-submit {
  width: 100%;
  padding: 12px;
  background: var(--accent-orange);
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}

.auth-error-msg {
  color: var(--ig-danger);
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  display: none;
}

.toast-popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-navy);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 20000;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: fadeInToast 0.2s ease-out;
}

@keyframes fadeInToast {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.mobile-top-bar {
  display: none;
}

@media (max-width: 1200px) {
  .col-side {
    display: none !important;
  }
  .app-layout {
    max-width: 100%;
    justify-content: flex-start;
  }
  .col-main {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 992px) {
  .col-nav {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
  }
  .nav-inner {
    padding: 16px 8px;
    align-items: center;
  }
  .nav-brand-text,
  .nav-item span,
  .btn-create-post span,
  .user-chip-info {
    display: none !important;
  }
  .nav-brand {
    padding: 0;
    margin-bottom: 1.5rem;
    justify-content: center;
  }
  .nav-item {
    padding: 12px;
    justify-content: center;
  }
  .btn-create-post {
    padding: 10px;
    border-radius: 50%;
    width: 44px;
    height: 44px;
  }
  .user-chip {
    padding: 4px;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .mobile-top-bar {
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--ig-border);
    padding: 0 16px;
    z-index: 998;
    margin: -14px -12px 14px -12px;
  }

  .mobile-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-logo-img {
    max-height: 32px;
    width: auto;
    object-fit: contain;
  }

  .mobile-logo-text {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-navy);
    letter-spacing: -0.5px;
  }

  .mobile-logo-text span {
    color: var(--accent-orange);
  }

  .app-layout {
    flex-direction: column;
    width: 100%;
  }

  .col-nav {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 62px;
    border-right: none;
    border-top: 1px solid var(--ig-border);
    background: #FFFFFF;
    z-index: 999;
  }

  .nav-inner {
    flex-direction: row;
    height: 100%;
    padding: 0 8px;
    align-items: center;
    justify-content: space-around;
  }

  .nav-brand,
  .nav-footer,
  .btn-create-post {
    display: none !important;
  }

  .nav-links {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    gap: 0;
  }

  .nav-item {
    padding: 10px;
  }

  .mobile-nav-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--accent-orange);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255, 102, 0, 0.35);
    flex-shrink: 0;
    margin: 0 4px;
  }

  .mobile-nav-add-btn svg {
    width: 22px;
    height: 22px;
  }

  .col-main {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    border-right: none;
    padding: 14px 12px 76px 12px;
  }

  .district-arrow-btn {
    display: none !important;
  }

  .post-header {
    padding: 10px 12px;
  }

  .post-actions {
    padding: 8px 12px;
  }

  .post-caption {
    padding: 0 12px 12px;
    font-size: 0.86rem;
  }

  .post-media {
    max-height: 420px;
  }

  .profile-header-card {
    padding: 16px;
    gap: 14px;
  }

  .profile-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .profile-avatar-large {
    width: 64px;
    height: 64px;
  }

  .profile-stats-row {
    gap: 16px;
  }

  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-card,
  .auth-modal-card {
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    max-height: 88vh;
  }

  .toast-popup {
    bottom: 74px;
    width: calc(100% - 32px);
    justify-content: center;
  }
}

.post-media-wrap {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
}

.post-media-wrap img,
.post-media-wrap video,
.post-media,
img.post-media,
video.post-media {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 600px !important;
  object-fit: contain !important;
  display: block;
}

.post-author-avatar,
.user-chip-avatar,
.comment-avatar,
.post-avatar {
  width: 40px !important;
  height: 40px !important;
  max-height: 40px !important;
  max-width: 40px !important;
  object-fit: cover !important;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .post-media-wrap,
  .post-media,
  .post-media-wrap img,
  .post-media-wrap video {
    max-height: 420px !important;
  }
}