:root {
  --pink: #ff8791;
  --mint: #a2f2d5;
  --lavender: #c4a1ff;
  --peach: #ffb7a0;
  --sky: #8ac6f9;
  --yellow: #ffe08a;
  --text: #5a5a5a;
  --dark: #333333;
  --light: #fff9f9;
  --bg-color: #f8f9fa;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --sidebar-width: 280px;
  --header-height: 70px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nunito", sans-serif;
  color: var(--text);
  line-height: 1.6;
  background-color: var(--bg-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

body::after {
  content: "";
  display: none;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
  color: var(--dark);
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background-color: white;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  display: none; /* Sembunyikan header lama */
}

/* ==================== */
/* NEW LAYOUT STYLES */
/* ==================== */

/* Mobile Menu Toggle - PERBAIKAN: Sembunyikan di desktop */
.mobile-toggle {
  display: flex;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1001;
  width: 40px;
  height: 40px;
  background-color: var(--pink);
  color: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Adjust main content when sidebar is hidden */
.sidebar.hidden {
  transform: translateX(-100%);
}

.main-content.sidebar-hidden {
  margin-left: 0;
  width: 100%;
}

/* Adjust header when sidebar is hidden */
.sidebar-hidden .main-header {
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
}

/* PERBAIKAN: Sembunyikan hamburger icon di desktop */
@media (min-width: 1025px) {
  .mobile-toggle {
    display: none !important; /* Sembunyikan di desktop */
  }
}

/* Ensure banner is not covered by sidebar */
.ads-banner {
  z-index: 90;
  position: relative;
}

/* Sidebar z-index adjustment */
.sidebar {
  z-index: 1000;
}

/* When sidebar is hidden, adjust layout */
@media (min-width: 1025px) {
  .sidebar.hidden + .main-content {
    margin-left: 0;
    width: 100%;
  }

  .sidebar.hidden + .main-content .main-header {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
  }
}

/* Sidebar Styles */
.sidebar {
  width: var(--sidebar-width);
  background-color: var(--card-bg);
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}

/* PERBAIKAN: Sidebar untuk desktop selalu terbuka */
@media (min-width: 1025px) {
  .sidebar {
    transform: translateX(0) !important;
  }
}

/* PERBAIKAN: Sidebar untuk mobile tersembunyi default */
@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }
}

.sidebar .logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(45deg, var(--pink), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
}

.sidebar .logo i {
  margin-right: 10px;
  font-size: 28px;
}

.sidebar-menu {
  list-style: none;
  margin-bottom: 30px;
}

.sidebar-menu li {
  margin-bottom: 15px;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  padding: 12px 15px;
  border-radius: 10px;
  transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: linear-gradient(45deg, var(--pink), var(--lavender));
  color: white;
}

.sidebar-menu i {
  margin-right: 12px;
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.sidebar-promo {
  background: linear-gradient(45deg, var(--pink), var(--lavender));
  border-radius: 15px;
  padding: 20px;
  color: white;
  margin-bottom: 20px;
}

.sidebar-promo h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.sidebar-promo p {
  font-size: 14px;
  margin-bottom: 15px;
}

.sidebar-promo .btn {
  display: block;
  text-align: center;
  background-color: white;
  color: var(--pink);
  padding: 8px 15px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
}

.sidebar-promo .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Add to main.css */
.partner-type-card {
  /* Styles already defined in join-partner.css */
}

/* Ensure smooth transitions */
.partner-type-card {
  transition: all 0.3s ease;
}

/* File preview styles */
.file-info {
  text-align: center;
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f7fafc;
}

.file-info p {
  margin: 5px 0;
  font-weight: 600;
}

.file-info small {
  color: #718096;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 20px;
  padding-top: 90px; /* Space for header */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: all 0.3s ease;
}

/* ==================== */
/* HEADER STYLES - FIXED */
/* ==================== */

/* Main Header - PERBAIKAN UTAMA */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--card-bg);
  padding: 15px 25px;
  border-radius: 0; /* Hilangkan border radius */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 0; /* Hilangkan margin bottom */
  position: fixed;
  top: 0; /* Tempel ke atas */
  left: var(--sidebar-width);
  right: 0;
  z-index: 99;
  width: calc(100% - var(--sidebar-width));
  gap: 15px;
  flex-wrap: nowrap;
  height: 70px; /* Tinggi tetap */
  transition: all 0.3s ease; /* Tambahkan transisi untuk perubahan halus */
}

/* Adjust main content padding */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 20px;
  padding-top: 90px; /* Space for header */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Search Bar */
.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  border-radius: 50px;
  padding: 8px 15px;
  min-width: 250px;
  flex-shrink: 1;
  order: 2;
}

.search-bar input {
  border: none;
  background: transparent;
  padding: 8px;
  width: 100%;
  outline: none;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
}

.search-bar i {
  color: var(--text);
  margin-right: 8px;
}

/* Header Actions - PERBAIKAN UTAMA */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  order: 1;
  flex-wrap: nowrap;
}

.header-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.header-icon:hover {
  background-color: var(--pink);
  color: white;
}

/* User Profile */
.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-left: 10px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--pink);
  flex-shrink: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-profile span {
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  min-width: 150px;
  z-index: 1000;
  padding: 10px 0;
}

.user-profile:hover .user-dropdown {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 10px 15px;
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s;
}

.user-dropdown a:hover {
  background-color: var(--bg-color);
  color: var(--pink);
}

/* Login Button */
#showLogin {
  padding: 8px 20px;
  background: linear-gradient(45deg, var(--pink), var(--lavender));
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  white-space: nowrap;
  flex-shrink: 0;
}

#showLogin:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Feed Section */
.feed-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  flex: 1;
}

.feed {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.create-post {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.create-post-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 2px solid var(--pink);
}

.create-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.create-post-input {
  flex: 1;
  background-color: var(--bg-color);
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  cursor: pointer;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
}

.create-post-input:focus {
  outline: none;
}

.post-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-header {
  display: flex;
  align-items: center;
  padding: 15px;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  border: 2px solid var(--mint);
}

.post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-user-info {
  flex: 1;
}

.post-user {
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 3px;
}

.post-pet {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 3px;
}

.post-time {
  font-size: 12px;
  color: #999;
}

.post-more {
  color: #999;
  cursor: pointer;
  padding: 5px;
}

.post-content {
  padding: 0 15px;
  margin-bottom: 15px;
}

.post-text {
  margin-bottom: 15px;
  line-height: 1.5;
}

.post-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.post-stats {
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #777;
}

/* Right Sidebar */
.sidebar-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-section {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.suggestions-list,
.trending-list {
  list-style: none;
}

.suggestion-item,
.trending-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.suggestion-item:last-child,
.trending-item:last-child {
  border-bottom: none;
}

.suggestion-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  border: 2px solid var(--sky);
}

.suggestion-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggestion-info {
  flex: 1;
}

.suggestion-name {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 3px;
}

.suggestion-desc {
  font-size: 12px;
  color: #777;
}

.follow-btn {
  background-color: var(--pink);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.follow-btn:hover {
  background-color: var(--lavender);
}

.trending-tag {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 3px;
}

.trending-count {
  font-size: 12px;
  color: 777;
}

.services-section {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.services-title {
  font-size: 18px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.service-card {
  background-color: var(--bg-color);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  transition: all 0.3s;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
  font-size: 24px;
  color: var(--pink);
  margin-bottom: 10px;
}

.service-name {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
}

.service-desc {
  font-size: 12px;
  color: #777;
}

.promo-section {
  background: linear-gradient(45deg, var(--pink), var(--lavender));
  border-radius: 15px;
  padding: 20px;
  color: white;
  text-align: center;
}

.promo-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.promo-desc {
  font-size: 14px;
  margin-bottom: 15px;
}

.promo-btn {
  background-color: white;
  color: var(--pink);
  border: none;
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.promo-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Footer */
footer {
  background-color: #fff;
  padding: 40px 0 20px;
  margin-top: auto;
  width: 100%;
}

.footer-container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-about {
  padding-right: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(45deg, var(--pink), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  text-decoration: none;
}

.footer-logo i {
  margin-right: 10px;
  font-size: 28px;
}

.footer-about p {
  margin-bottom: 20px;
  color: var(--text);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-color);
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s;
}

.social-link:hover {
  background: linear-gradient(45deg, var(--pink), var(--lavender));
  color: white;
  transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--dark);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--pink);
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: var(--text);
}

.footer-contact i {
  margin-right: 10px;
  color: var(--pink);
  width: 20px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text);
}

.footer-bottom a {
  color: var(--text);
  text-decoration: none;
  transition: all 0.3s;
}

.footer-bottom a:hover {
  color: var(--pink);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(45deg, var(--pink), var(--lavender));
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .sidebar {
    width: 250px;
  }

  .main-content {
    margin-left: 250px;
  }

  .main-header {
    left: calc(250px + 20px);
    max-width: calc(100% - 250px - 40px);
  }
}

@media (max-width: 1024px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .mobile-toggle {
    display: flex;
  }

  .main-content {
    margin-left: 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .main-header {
    left: 20px;
    right: 20px;
    max-width: calc(100% - 40px);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 15px;
  }

  .header-actions {
    order: 1;
    width: 100%;
    justify-content: space-between;
  }

  .search-bar {
    order: 2;
    width: 100%;
    min-width: auto;
  }

  .feed-container {
    grid-template-columns: 1fr;
  }

  .sidebar-right {
    display: none;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .main-header {
    position: static;
    margin-top: 60px;
    flex-direction: column;
    gap: 10px;
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-around;
  }

  .user-profile span {
    display: none;
  }

  .main-content {
    padding-top: 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-about {
    padding-right: 0;
  }
}

@media (max-width: 576px) {
  .header-actions {
    gap: 8px;
    justify-content: space-between;
  }

  .header-icon {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  #showLogin {
    padding: 6px 12px;
    font-size: 14px;
  }

  .post-header {
    flex-wrap: wrap;
  }

  .post-time {
    margin-left: auto;
  }

  .post-actions {
    flex-direction: column;
    gap: 10px;
  }

  .post-action {
    justify-content: flex-start;
    padding: 10px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding-top: 130px;
  }
}

/* Ensure main content doesn't overlap with header */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 20px;
  padding-top: 90px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Google Translate Styles */
.goog-te-banner-frame {
  display: none !important;
}

.goog-te-menu-value {
  display: none !important;
}

#translate_container {
  display: none;
}

/* Auth Styles */
.auth-container {
  display: flex;
  min-height: 100vh;
}

.auth-left {
  flex: 1;
  background: linear-gradient(45deg, var(--pink), var(--lavender));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: white;
}

.auth-content {
  max-width: 500px;
}

.auth-logo {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
}

.auth-logo i {
  margin-right: 10px;
  font-size: 36px;
}

.auth-title {
  font-size: 28px;
  margin-bottom: 20px;
}

.auth-desc {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.auth-features {
  list-style: none;
}

.auth-feature {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.auth-feature i {
  font-size: 24px;
  margin-right: 15px;
  width: 30px;
}

.auth-feature span {
  font-size: 16px;
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: white;
}

.auth-form-container {
  width: 100%;
  max-width: 400px;
}

.auth-form-title {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
  background: linear-gradient(45deg, var(--pink), var(--lavender));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-form {
  margin-bottom: 20px;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 8px;
}

.forgot-password {
  color: var(--pink);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.forgot-password:hover {
  color: var(--lavender);
}

.auth-submit {
  width: 100%;
  padding: 12px;
  background: linear-gradient(45deg, var(--pink), var(--lavender));
  color: white;
  border: none;
  border-radius: 8px;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.auth-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.auth-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--border-color);
}

.auth-divider span {
  display: inline-block;
  background-color: white;
  padding: 0 15px;
  position: relative;
  color: var(--text);
}

.social-auth {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-color);
  color: var(--dark);
  text-decoration: none;
  transition: all 0.3s;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.google:hover {
  background-color: #db4437;
  color: white;
}

.social-btn.facebook:hover {
  background-color: #4267b2;
  color: white;
}

.auth-switch {
  text-align: center;
  font-size: 14px;
}

.auth-switch a {
  color: var(--pink);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.auth-switch a:hover {
  color: var(--lavender);
}

/* Responsive Auth */
@media (max-width: 768px) {
  .auth-container {
    flex-direction: column;
  }

  .auth-left {
    padding: 40px 20px;
  }

  .auth-right {
    padding: 40px 20px;
  }
}

/* ==================== */
/* MOBILE OPTIMIZATION */
/* ==================== */

@media (max-width: 1024px) {
  /* Header fixes */
  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    padding: 12px 15px;
    z-index: 999;
    max-width: 100%;
    flex-wrap: wrap;
    background-color: var(--card-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: row; /* PERUBAHAN PENTING: row bukan column */
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
  }

  .search-bar {
    width: 100%;
    order: 2;
    margin-top: 10px;
  }

  .header-actions {
    order: 1;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .sidebar {
    transform: translateX(-100%);
    width: 280px;
    position: fixed;
    z-index: 1000;
    height: 100vh;
    overflow-y: auto;
    transition: transform 0.3s ease;
    top: 0;
    background: white;
  }

  .sidebar.active {
    transform: translateX(0);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  }

  .mobile-toggle {
    display: flex;
    position: fixed;
    top: 20px;
    left: 15px;
    z-index: 1001;
    background-color: var(--pink);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .main-content {
    margin-left: 0;
    width: 100%;
    padding: 120px 15px 15px;
  }

  .feed-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Show right sidebar content in a different way on mobile */
  .sidebar-right {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .user-profile span {
    display: none;
  }

  /* Modal overlay for sidebar */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .sidebar.active + .sidebar-overlay {
    display: block;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding-top: 140px;
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-icon {
    width: 40px;
    height: 40px;
  }

  .post-header {
    flex-wrap: wrap;
  }

  .post-user-info {
    flex: 1;
    min-width: 0;
  }

  .post-time {
    margin-left: auto;
  }

  .post-more {
    margin-left: 10px;
  }

  .post-actions {
    flex-direction: row;
    gap: 5px;
  }

  .post-action {
    flex: 1;
    justify-content: center;
    padding: 8px;
    font-size: 14px;
  }

  .post-action i {
    margin-right: 5px;
  }
}

@media (max-width: 576px) {
  .main-header {
    padding: 10px;
  }

  .header-icon {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  .lang-selected {
    padding: 6px 10px;
    font-size: 13px;
  }

  #showLogin {
    padding: 6px 12px;
    font-size: 14px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .post-stats {
    flex-direction: row;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .suggestion-item,
  .trending-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .follow-btn {
    width: 100%;
  }
}

/* Prevent horizontal scrolling */
html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Ensure content fits mobile screens */
.main-content {
  max-width: 100%;
}

/* Improve touch targets for mobile */
.post-action,
.header-icon,
.follow-btn {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Optimize images for mobile */
.post-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Modal adjustments for mobile */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 15% auto;
    padding: 20px;
  }
}

/* Post card improvements */
.post-card {
  border-radius: 12px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.post-header {
  padding: 15px;
  display: flex;
  align-items: center;
}

.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 12px;
  border: 2px solid var(--mint);
}

.post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  padding: 0 15px 15px;
}

.post-text {
  margin-bottom: 15px;
  line-height: 1.5;
  color: var(--text);
  font-size: 15px;
}

.post-stats {
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  margin-bottom: 10px;
  font-size: 14px;
  color: 777;
}

.post-actions {
  display: flex;
  border-top: 1px solid var(--border-color);
  padding: 10px 15px;
}

/* Right sidebar sections styling for mobile */
.sidebar-section,
.services-section,
.promo-section {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-title,
.services-title,
.promo-title {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--dark);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

/* Mobile accordion for sidebar sections */
.mobile-accordion-header {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
  }

  .mobile-accordion-content {
    display: none;
  }

  .mobile-accordion-content.active {
    display: block;
  }
}

/* YouTube Videos Section */
.youtube-section {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.video-list {
  margin-bottom: 15px;
}

.video-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.video-item:hover {
  transform: translateY(-3px);
}

.video-item iframe {
  width: 100%;
  height: 180px;
  border: none;
  display: block;
}

.video-item h3 {
  padding: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  background-color: var(--bg-color);
  margin: 0;
  line-height: 1.4;
}

.youtube-channel-link {
  text-align: center;
}

.btn-youtube {
  background: linear-gradient(45deg, #ff0000, #cc0000);
  color: white;
  padding: 8px 15px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-youtube:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 0, 0, 0.2);
}

.error-detail {
  font-size: 12px;
  color: #777;
  margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .video-item iframe {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .video-item iframe {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .video-item iframe {
    height: 180px;
  }

  .video-item h3 {
    font-size: 13px;
    padding: 10px;
  }
}

/* Ads Banner Styles - Full Width */
.ads-banner {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-top: 3px solid var(--pink);
  margin-top: 40px;
  width: 100%;
  position: relative;
}

.ads-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: linear-gradient(45deg, var(--pink), var(--lavender));
  color: white;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.ads-banner-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ads-banner-title i {
  font-size: 24px;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px;
  border-radius: 50%;
}

.ads-banner-title h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.ads-toggle-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ads-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.ads-banner-content {
  padding: 30px 40px;
  display: block;
  background: white;
}

.ads-banner-content.collapsed {
  display: none;
}

.ads-banner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 20px;
}

.ad-banner-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.ad-banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.ad-banner-main {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}

.ad-banner-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.ad-banner-card:nth-child(1) .ad-banner-icon {
  background: linear-gradient(45deg, var(--sky), var(--mint));
  color: white;
}

.ad-banner-card:nth-child(2) .ad-banner-icon {
  background: linear-gradient(45deg, var(--peach), var(--pink));
  color: white;
}

.ad-banner-info h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}

.ad-banner-info p {
  margin: 0 0 15px 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.ad-banner-features {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ad-banner-features span {
  font-size: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 5px;
}

.ad-banner-features i {
  color: var(--mint);
  font-size: 10px;
}

.ad-banner-card:nth-child(2) .ad-banner-features i {
  color: var(--pink);
}

.ad-banner-action {
  text-align: center;
  margin-left: 20px;
  flex-shrink: 0;
}

.ad-banner-price {
  margin-bottom: 15px;
}

.price {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  display: block;
}

.discount,
.session {
  font-size: 13px;
  color: var(--text);
}

.discount {
  text-decoration: line-through;
  color: #999;
}

.ad-banner-btn {
  background: linear-gradient(45deg, var(--pink), var(--lavender));
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.ad-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ads-banner-footer {
  text-align: center;
  padding-top: 20px;
}

.ads-banner-divider {
  height: 1px;
  background: var(--border-color);
  margin-bottom: 15px;
}
.ads-banner-tagline {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.ads-banner-tagline i {
  color: var(--lavender);
}

/* Animation for toggle */
.ads-banner-content {
  transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .ads-banner-header {
    padding: 15px 30px;
  }

  .ads-banner-content {
    padding: 25px 30px;
  }

  .ads-banner-grid {
    gap: 20px;
  }

  .ad-banner-card {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .ads-banner-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .ad-banner-card {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .ad-banner-main {
    flex-direction: column;
    text-align: center;
  }

  .ad-banner-action {
    margin-left: 0;
  }

  .ads-banner-header {
    padding: 15px 20px;
  }

  .ads-banner-content {
    padding: 20px;
  }

  .ads-banner-title h3 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .ads-banner-header {
    padding: 12px 15px;
  }

  .ads-banner-content {
    padding: 15px;
  }

  .ad-banner-card {
    padding: 15px;
  }

  .ad-banner-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .price {
    font-size: 18px;
  }

  .ads-banner-tagline {
    flex-direction: column;
    gap: 5px;
  }
}

/* Remove any potential gaps */
body::before {
  display: none;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* Ensure all top-level elements have no margin */
.main-content,
.feed-container,
.feed,
.post-card,
.sidebar-right {
  margin-top: 0;
}

/* Header specific fixes */
.main-header {
  border-top: none;
  margin-top: 0;
}

/* Mobile specific fixes */
@media (max-width: 1024px) {
  .main-header {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }

  .main-content {
    margin-top: 0;
    padding-top: 70px; /* Adjust based on header height */
  }
}

/* ==================== */
/* HEADER IMPROVEMENTS */
/* ==================== */

/* Header Actions - Perbaikan utama untuk desktop */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px; /* Mengurangi jarak antar elemen */
  flex-shrink: 0;
  order: 1;
  flex-wrap: nowrap;
  margin-left: auto; /* Memastikan menu tetap di kanan */
  justify-content: flex-end; /* Memastikan konten rata kanan */
}

/* Perbaikan untuk ikon header */
.header-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
  font-size: 16px;
}

/* User Profile improvements */
.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-left: 5px;
}

/* Language dropdown improvements */
.lang-container {
  margin-left: 5px;
}

.lang-selected {
  padding: 8px 12px;
  background-color: var(--bg-color);
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

/* Login button improvements */
#showLogin {
  padding: 8px 16px;
  margin-left: 5px;
  font-size: 14px;
}

/* Search bar adjustments */
.search-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  border-radius: 50px;
  padding: 8px 15px;
  min-width: 250px;
  flex-shrink: 1;
  order: 2;
  margin-left: 15px;
}

/* ==================== */
/* RESPONSIVE DESIGN */
/* ==================== */

/* ==================== */
/* PERBAIKAN HEADER MOBILE */
/* ==================== */

/* Pastikan header tidak tertutup oleh hamburger menu */
@media (max-width: 1024px) {
  .main-header {
    left: 0 !important;
    padding-left: 60px; /* Beri ruang untuk hamburger menu */
  }

  .mobile-toggle {
    z-index: 1002; /* Pastikan di atas header */
    top: 15px;
    left: 15px;
  }
}

/* Perbaikan tata letak header untuk mobile */
@media (max-width: 768px) {
  .main-header {
    padding: 8px 10px 8px 60px; /* Ruang kiri untuk hamburger menu */
    height: 60px;
    justify-content: space-between;
  }

  .header-actions {
    gap: 5px;
    margin-left: 0;
  }

  .search-bar {
    margin: 0 5px;
    flex: 0 1 auto;
    min-width: 120px;
  }

  /* Perbaikan untuk post header di mobile */
  .post-header {
    padding: 12px;
    position: relative;
  }

  .post-avatar {
    width: 36px;
    height: 36px;
    margin-right: 10px;
  }

  .post-user-info {
    flex: 1;
    min-width: 0; /* Prevent overflow */
  }

  .post-user {
    font-size: 14px;
    margin-bottom: 2px;
  }

  .post-pet {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .post-time {
    font-size: 11px;
    position: absolute;
    top: 12px;
    right: 12px;
  }

  .post-more {
    position: absolute;
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 576px) {
  .main-header {
    padding: 5px 8px 5px 55px; /* Sesuaikan padding untuk hamburger menu */
    height: 55px;
  }

  .header-actions {
    gap: 3px;
  }

  .header-icon {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .user-avatar {
    width: 32px;
    height: 32px;
  }

  .lang-selected {
    padding: 4px 6px;
    font-size: 11px;
  }

  #showLogin {
    padding: 5px 8px;
    font-size: 11px;
  }

  .search-bar {
    margin: 0 3px;
    min-width: 90px;
  }

  /* Perbaikan post card untuk mobile */
  .post-card {
    margin-bottom: 15px;
  }

  .post-header {
    padding: 10px;
  }

  .post-user {
    font-size: 13px;
  }

  .post-pet {
    font-size: 11px;
  }

  .post-time {
    font-size: 10px;
    top: 10px;
    right: 10px;
  }

  .post-content {
    padding: 0 10px 10px;
  }

  .post-text {
    font-size: 14px;
    line-height: 1.4;
  }

  .post-stats {
    padding: 0 10px;
    font-size: 12px;
  }

  .post-actions {
    padding: 8px 10px;
  }

  .post-action {
    font-size: 12px;
  }

  .post-action i {
    font-size: 16px;
    margin-right: 5px;
  }
}

/* Untuk layar super kecil (di bawah 400px) */
@media (max-width: 400px) {
  .main-header {
    padding: 4px 5px 4px 50px;
  }

  .mobile-toggle {
    width: 35px;
    height: 35px;
    top: 12px;
    left: 10px;
  }

  .header-actions {
    gap: 2px;
  }

  .header-icon {
    width: 30px;
    height: 30px;
  }

  .user-avatar {
    width: 30px;
    height: 30px;
  }

  .search-bar {
    min-width: 70px;
  }

  .search-bar input {
    width: 50px;
  }

  /* Sembunyikan teks pada tombol aksi di post */
  .post-action span {
    display: none;
  }

  .post-action i {
    margin-right: 0;
  }
}

/* Pastikan z-index proper untuk semua elemen */
.mobile-toggle {
  z-index: 1002;
}

.main-header {
  z-index: 1001;
}

.sidebar {
  z-index: 1000;
}

/* Perbaikan tambahan untuk tata letak post */
.post-header {
  display: flex;
  align-items: flex-start;
}

.post-user-info {
  overflow: hidden;
}

.post-user,
.post-pet {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-time {
  white-space: nowrap;
}

/* Perbaikan untuk konten post */
.post-text {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Hilangkan margin dan padding yang tidak perlu */
.post-card {
  border-radius: 10px;
  overflow: hidden;
}

/* Pastikan elemen tidak saling tumpang tindih */
.post-header {
  position: relative;
  padding-right: 60px; /* Ruang untuk waktu dan menu */
}

.post-time {
  position: absolute;
  top: 15px;
  right: 15px;
}

.post-more {
  position: absolute;
  top: 15px;
  right: 15px;
}

/* Untuk layar sangat kecil, atur ulang posisi */
@media (max-width: 350px) {
  .post-time {
    position: static;
    margin-top: 5px;
  }

  .post-header {
    padding-right: 15px;
    flex-wrap: wrap;
  }

  .post-user-info {
    width: 100%;
  }
}

/* Pastikan header tetap di atas saat scroll */
@media (max-width: 1024px) {
  .main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex !important;
    justify-content: flex-end;
  }

  .main-content {
    padding-top: 80px;
  }
}

/* Animasi untuk interaksi yang lebih halus */
.header-icon,
.lang-selected,
#showLogin {
  transition: all 0.2s ease;
}

.header-icon:hover,
.lang-selected:hover,
#showLogin:hover {
  transform: translateY(-2px);
}

/* Perbaikan khusus untuk tampilan mobile */
.mobile-toggle {
  display: flex;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
  width: 40px;
  height: 40px;
  background-color: var(--pink);
  color: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Pastikan semua elemen header tetap terlihat */
.header-actions > * {
  display: flex !important;
  visibility: visible !important;
}

/* Override aturan CSS yang mungkin menyembunyikan elemen */
.header-icon,
.user-profile,
.lang-container,
#showLogin {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Tata letak untuk memastikan semua menu di kanan */
@media (max-width: 1024px) {
  .main-header {
    justify-content: flex-end;
  }

  .search-bar {
    flex: 0 1 auto;
    margin-left: 10px;
  }

  .header-actions {
    flex: 0 0 auto;
    margin-left: 0;
  }
}

/* Efek untuk search bar saat aktif */
.search-bar {
  transition: all 0.3s ease;
}

.search-bar:focus-within {
  background-color: white;
  box-shadow: 0 0 0 2px var(--lavender);
}

/* Ads Banner Styles - Fixed */
.ads-banner-content {
  display: block;
  transition: all 0.3s ease;
}

.ads-banner-content.collapsed {
  display: none;
}

.ads-toggle-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ads-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Animation for toggle */
.ads-banner-content {
  transition: all 0.3s ease;
}

/* ==================== */
/* PERBAIKAN KHUSUS UNTUK SEARCH BAR MOBILE */
/* ==================== */

@media (max-width: 1024px) {
  .main-header {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center;
    padding: 12px 15px 12px 60px !important;
    height: auto !important;
    min-height: 70px;
  }

  .header-actions {
    order: 1;
    width: 100% !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }

  .search-bar {
    order: 2;
    width: 100% !important;
    margin: 0 !important;
    min-width: auto;
    flex: 0 0 100%;
  }
}

@media (max-width: 768px) {
  .main-header {
    padding: 10px 10px 10px 60px !important;
  }

  .search-bar {
    margin-top: 8px !important;
  }
}

@media (max-width: 576px) {
  .main-header {
    padding: 8px 8px 8px 55px !important;
  }

  .search-bar {
    margin-top: 6px !important;
  }
}

@media (max-width: 400px) {
  .main-header {
    padding: 6px 6px 6px 50px !important;
  }

  .search-bar {
    margin-top: 4px !important;
  }
}

/* ==================== */
/* PERBAIKAN TAMBAHAN UNTUK HEADER DESKTOP */
/* ==================== */

/* Perbaikan utama: Header desktop harus memenuhi lebar penuh */
@media (min-width: 1025px) {
  .main-header {
    width: calc(100% - var(--sidebar-width)) !important;
    left: var(--sidebar-width) !important;
    right: 0 !important;
    max-width: none !important;
  }

  /* Perbaikan khusus ketika sidebar tersembunyi */
  .sidebar.hidden + .main-content .main-header {
    left: 0 !important;
    width: 100% !important;
  }
}

/* ==================== */
/* PERBAIKAN TAMBAHAN UNTUK HEADER MOBILE */
/* ==================== */

@media (max-width: 1024px) {
  .header-actions {
    gap: 5px !important; /* Jarak lebih rapat antara ikon */
    justify-content: space-around !important; /* Ikon lebih merata */
  }

  .header-icon {
    margin: 0 2px !important; /* Kurangi margin antar ikon */
  }

  .search-bar {
    padding: 6px 12px !important; /* Padding lebih kecil */
    margin-top: 5px !important;
  }

  .search-bar input {
    font-size: 13px !important; /* Ukuran font lebih kecil */
    padding: 5px !important;
  }
}

@media (max-width: 576px) {
  .header-actions {
    gap: 3px !important; /* Jarak lebih rapat untuk mobile kecil */
  }

  .header-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
  }

  .search-bar {
    padding: 5px 10px !important;
  }

  .search-bar input {
    font-size: 12px !important;
  }

  /* Pastikan semua elemen header tetap dalam satu baris */
  .header-actions > * {
    flex-shrink: 0 !important;
  }
}

/* CSS PERTEMANAN */
/* Notification Badge */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #e74c3c;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-icon {
  position: relative;
}

.friend-notification {
  position: relative;
  cursor: pointer;
}

/* Friend Requests Page */
.friend-requests-page {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 1003;
  overflow-y: auto;
}

.friend-requests-header {
  display: flex;
  align-items: center;
  padding: 15px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.friend-requests-back {
  margin-right: 15px;
  cursor: pointer;
  font-size: 20px;
}

.friend-requests-content {
  padding: 20px;
}

.friend-requests-section,
.friends-list-section {
  margin-bottom: 30px;
}

.section-title {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--dark);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.friend-request-item,
.friend-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.friend-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 2px solid var(--mint);
}

.friend-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.friend-info {
  flex: 1;
}

.friend-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.friend-mutual {
  font-size: 12px;
  color: #666;
}

.friend-actions {
  display: flex;
  gap: 10px;
}

.btn-accept,
.btn-reject,
.btn-unfriend {
  padding: 8px 15px;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-accept {
  background: var(--mint);
  color: white;
}

.btn-accept:hover {
  background: #8dd7bf;
}

.btn-reject {
  background: #f0f0f0;
  color: #666;
}

.btn-reject:hover {
  background: #e0e0e0;
}

.btn-unfriend {
  background: #ffeaea;
  color: #e74c3c;
  border: 1px solid #ffeaea;
}

.btn-unfriend:hover {
  background: #ffd1d1;
}

.no-requests,
.no-friends {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

/* Notifications Page */
.notifications-page {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 1003;
  overflow-y: auto;
}

.notifications-header {
  display: flex;
  align-items: center;
  padding: 15px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.notifications-back {
  margin-right: 15px;
  cursor: pointer;
  font-size: 20px;
}

.notifications-content {
  padding: 20px;
}

.notification-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.notification-tab {
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-weight: 600;
}

.notification-tab.active {
  border-bottom-color: var(--pink);
  color: var(--pink);
}

.notification-item {
  display: flex;
  align-items: center;
  padding: 15px;
  background: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-left: 3px solid transparent;
}

.notification-item.unread {
  border-left-color: var(--pink);
  background: #fff9f9;
}

.notification-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 15px;
  border: 2px solid var(--mint);
}

.notification-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notification-content {
  flex: 1;
}

.notification-text {
  margin-bottom: 5px;
  line-height: 1.4;
}

.notification-time {
  font-size: 12px;
  color: #666;
}

.notification-post {
  margin-top: 5px;
  font-size: 13px;
  color: #666;
  font-style: italic;
}

.notification-actions {
  display: flex;
  gap: 10px;
}

.mark-read-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 12px;
}

.mark-read-btn:hover {
  color: var(--pink);
}

.no-notifications {
  text-align: center;
  padding: 40px;
  color: #666;
  font-style: italic;
}

/* Notification Badge dengan efek seperti Facebook */
.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(45deg, #ff4757, #e74c3c);
  color: white;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 2px solid white;
  padding: 0 4px;
}

/* Efek berdenyut untuk notifikasi baru */
.notification-badge.pulse {
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Style untuk halaman notifikasi */
.notifications-page {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 1003;
  overflow-y: auto;
}

.notification-item.unread {
  border-left-color: var(--pink);
  background: #fff9f9;
}

.mark-all-read {
  background: var(--pink);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin: 20px auto;
  display: block;
}

.mark-all-read:hover {
  background: var(--lavender);
}

/* KOMENTAR SEPERTI FB */
/* Style untuk komentar */
.post-comments-container {
  padding: 10px 15px;
  background-color: var(--bg-color);
  border-radius: 0 0 10px 10px;
}

.comment {
  display: flex;
  margin-bottom: 12px;
  padding: 8px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.comment:last-child {
  margin-bottom: 0;
}

.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 10px;
  flex-shrink: 0;
  border: 2px solid var(--mint);
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-content {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.comment-user {
  font-weight: 600;
  color: var(--dark);
  margin-right: 8px;
  font-size: 14px;
}

.comment-time {
  font-size: 11px;
  color: #777;
}

.comment-text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
  word-wrap: break-word;
}

.no-comments {
  text-align: center;
  padding: 15px;
  color: #777;
  font-style: italic;
  font-size: 14px;
}

.view-all-comments {
  text-align: left;
  padding: 8px 0;
  margin-top: 5px;
}

.view-all-comments a {
  color: var(--pink);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.view-all-comments a:hover {
  text-decoration: underline;
}

.add-comment {
  display: flex;
  padding: 10px 15px;
  border-top: 1px solid var(--border-color);
  background: white;
}

.add-comment input {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 8px 15px;
  font-family: "Nunito", sans-serif;
  font-size: 14px;
  outline: none;
}

.add-comment input:focus {
  border-color: var(--pink);
}

.add-comment button {
  margin-left: 10px;
  padding: 8px 15px;
  background: var(--pink);
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.add-comment button:hover {
  background: var(--lavender);
}

/* Highlight efek untuk komentar baru */
.comment.new-comment {
  animation: highlightComment 1s ease;
  background: #fff9f9;
}

@keyframes highlightComment {
  0% {
    background-color: #fff9f9;
  }
  50% {
    background-color: #ffe6e6;
  }
  100% {
    background-color: #fff9f9;
  }
}

/* Style untuk semua icon notifikasi */
.notification-icon {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notification-icon:hover {
  background-color: var(--pink);
  color: white;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: linear-gradient(45deg, #ff4757, #e74c3c);
  color: white;
  border-radius: 50%;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  border: 2px solid white;
  padding: 0 4px;
}

/* ==================== */
/* ADS BANNER RESPONSIVE FIX */
/* ==================== */

.ads-banner {
  width: 100%;
  transition: all 0.3s ease;
}

/* Desktop dengan sidebar terbuka */
@media (min-width: 1025px) {
  .ads-banner {
    margin-left: 0;
    width: 100%;
  }

  /* Ketika sidebar tersembunyi, ads banner mengikuti lebar penuh */
  .sidebar.hidden + .main-content .ads-banner {
    margin-left: 0;
    width: 100%;
  }
}

/* Mobile */
@media (max-width: 1024px) {
  .ads-banner {
    margin-left: 0;
    width: 100%;
  }
}

/* ==================== */
/* SIDEBAR MENU LOGIN REQUIREMENT STYLES */
/* ==================== */

/* Style untuk sidebar menu yang memerlukan login */
.sidebar-menu a.requires-login {
  position: relative;
}

.sidebar-menu a.requires-login::after {
  content: "🔒";
  font-size: 10px;
  margin-left: 5px;
  opacity: 0.7;
}

/* Style untuk modal login */
.modal {
  display: none;
  position: fixed;
  z-index: 1002;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 400px;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
}

/* ==================== */
/* ADDITIONAL RESPONSIVE FIXES */
/* ==================== */

/* Pastikan layout konsisten di semua device */
@media (min-width: 1025px) {
  /* Desktop: sidebar selalu terbuka */
  .sidebar {
    transform: translateX(0) !important;
  }

  .main-content {
    margin-left: var(--sidebar-width) !important;
  }

  .main-header {
    left: var(--sidebar-width) !important;
    width: calc(100% - var(--sidebar-width)) !important;
  }
}

@media (max-width: 1024px) {
  /* Mobile: sidebar tersembunyi default */
  .sidebar {
    transform: translateX(-100%);
  }

  .main-content {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .main-header {
    left: 0 !important;
    width: 100% !important;
  }

  .sidebar.active {
    transform: translateX(0);
  }
}

/* Pastikan ads banner responsive */
.ads-banner {
  box-sizing: border-box;
}

/* Perbaikan untuk elemen yang memerlukan login */
.login-required {
  cursor: pointer;
}

.login-required:hover {
  opacity: 0.8;
}

/* Sidebar Menu Divider */
.sidebar-menu-divider {
  padding: 15px 15px 5px 15px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid var(--border-color);
  margin-top: 10px;
  margin-bottom: 5px;
}

/* Premium Promo Variant */
.sidebar-promo.premium-promo {
  background: linear-gradient(45deg, var(--lavender), var(--sky));
  margin-top: 10px;
}

.sidebar-promo.premium-promo h3 i {
  color: var(--yellow);
}

/* Services Icons in Sidebar */
.sidebar-menu .fa-shopping-cart {
  color: var(--pink);
}

.sidebar-menu .fa-stethoscope {
  color: var(--mint);
}

.sidebar-menu .fa-cut {
  color: var(--lavender);
}

.sidebar-menu .fa-hotel {
  color: var(--peach);
}

/* Hover effects for service items */
.sidebar-menu li:nth-child(6) a:hover,
.sidebar-menu li:nth-child(6) a.active {
  background: linear-gradient(45deg, var(--pink), #ff9aa2);
}

.sidebar-menu li:nth-child(7) a:hover,
.sidebar-menu li:nth-child(7) a.active {
  background: linear-gradient(45deg, var(--mint), #8dd7bf);
}

.sidebar-menu li:nth-child(8) a:hover,
.sidebar-menu li:nth-child(8) a.active {
  background: linear-gradient(45deg, var(--lavender), #a78bfa);
}

.sidebar-menu li:nth-child(9) a:hover,
.sidebar-menu li:nth-child(9) a.active {
  background: linear-gradient(45deg, var(--peach), #ffb7a0);
}

/* Import Sidebar Join Us Styles */
@import url("sidebar-join-us.css");

/* Atau jika tidak menggunakan import, tambahkan langsung: */

/* Ensure sidebar layout compatibility */
.sidebar-promo,
.sidebar-join-us {
  margin-bottom: 20px;
}

/* Smooth transitions for all sidebar elements */
.sidebar-promo,
.sidebar-join-us,
.premium-promo {
  transition: all 0.3s ease;
}

/* Mobile optimization for sidebar */
@media (max-width: 768px) {
  .sidebar-join-us {
    margin: 15px;
  }
}

/* Tambahkan CSS berikut di file posts.css atau main.css */

/* Styles untuk Pet Tracker Promo yang diperkecil dengan efek menarik */
.pet-tracker-promo-small {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  border: none;
  position: relative;
  overflow: hidden;
  animation: gentlePulse 3s ease-in-out infinite;
}

.promo-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  animation: rotateGlow 6s linear infinite;
  pointer-events: none;
}

.pet-tracker-content-small {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.pet-tracker-image-small {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  height: 120px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pet-tracker-image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.floating-icon-small {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: floatIcons 3s ease-in-out infinite;
}

.floating-icon-small:nth-child(2) {
  top: 15px;
  left: 15px;
  animation-delay: 0.5s;
}

.floating-icon-small:nth-child(3) {
  bottom: 15px;
  right: 15px;
  animation-delay: 1s;
}

.pet-tracker-info-small h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pet-tracker-info-small h3 i {
  color: #ffd700;
}

.pet-tracker-info-small p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
  line-height: 1.4;
}

.pet-tracker-features-small {
  margin-bottom: 12px;
}

.feature-item-small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  font-size: 12px;
}

.feature-item-small i {
  color: #a2f2d5;
  font-size: 10px;
}

.feature-item-small span {
  color: rgba(255, 255, 255, 0.9);
}

.pet-tracker-price-small {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.original-price-small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: line-through;
}

.discounted-price-small {
  font-size: 16px;
  font-weight: 700;
  color: #ffd700;
}

.discount-badge-small {
  background: #ff4757;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
}

.pet-tracker-cta-small {
  display: flex;
  justify-content: center;
}

.btn-primary-small {
  background: linear-gradient(45deg, #ffd700, #ffa500);
  color: #333;
  border: none;
  border-radius: 25px;
  padding: 10px 15px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.pulse-btn {
  animation: buttonPulse 2s infinite;
}

/* Animations */
@keyframes gentlePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  }
  50% {
    transform: scale(1.01);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
  }
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes floatIcons {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.1);
  }
}

@keyframes buttonPulse {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.8);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .pet-tracker-promo-small {
    padding: 12px;
  }

  .pet-tracker-info-small h3 {
    font-size: 15px;
  }

  .pet-tracker-info-small p {
    font-size: 12px;
  }

  .pet-tracker-image-small {
    height: 100px;
  }

  .floating-icon-small {
    width: 25px;
    height: 25px;
    font-size: 12px;
  }
}

/* Pet Shop Navigation Styles */
.profile-nav {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: #667eea;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.welcome-text {
  font-size: 1rem;
  color: #333;
}

.badge-premium {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-buttons {
  display: flex;
  gap: 10px;
}

.btn-outline {
  background: transparent;
  border: 2px solid #667eea;
  color: #667eea;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  background: #667eea;
  color: white;
}

.btn-cart {
  background: linear-gradient(135deg, #4cd964 0%, #5ac8fa 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.cart-count {
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  position: absolute;
  top: -5px;
  right: -5px;
}

/* Pet Shop Footer */
.pet-shop-footer {
  background: #2d3436;
  color: white;
  padding: 40px 0 20px;
  margin-top: 50px;
}

.pet-shop-footer .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h4 {
  color: white;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #b2bec3;
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-section ul li a:hover {
  color: white;
}

.footer-section p {
  color: #b2bec3;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-methods {
  display: flex;
  gap: 15px;
  font-size: 1.8rem;
  color: #b2bec3;
}

.payment-methods i:hover {
  color: white;
  cursor: pointer;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #4a4a4a;
  color: #b2bec3;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }

  .nav-actions {
    flex-direction: column;
    gap: 10px;
  }

  .user-info {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
