* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

body {
  background-color: #000;
  color: #fff;
  line-height: 1.4;
  overflow-x: hidden;
}

.container {
  max-width: 935px;
  margin: 0 auto;
}

/* Loading Animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

.loading-gif {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.loading-text {
  color: #fff;
  font-size: 16px;
  text-align: center;
}

/* Lazy Loading Images */
.lazy-image {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy-image.loaded {
  opacity: 1;
}

/* Optimized Images */
img {
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #262626;
  position: sticky;
  top: 0;
  background-color: var(--header-bg, #000);
  z-index: 20;
}

.back-btn, .icon-btn {
  background: none;
  border: none;
  color: inherit;
  font-size: 22px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.username {
  font-weight: 600;
  font-size: 16px;
  flex-grow: 1;
  text-align: center;
}

/* Profile Section */
.profile-section {
  padding: 20px 15px;
  text-align: center;
  position: relative;
}

/* Background Foto Profil */
.profile-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 180px;
  background: center/cover no-repeat;
  opacity: 0.35;
  z-index: 0;
  border-radius: 0 0 20px 20px;
}

.profile-pic {
  position: relative;
  z-index: 2;
  margin-top: 80px;
}

.profile-pic img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid #E1306C;
  object-fit: cover;
  background-color: #111;
}

.profile-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 600;
  font-size: 16px;
  margin-top: 8px;
  position: relative;
  z-index: 2;
}

.verify-badge {
  width: 12px;
  height: 12px;
  vertical-align: middle;
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

.stat-number {
  font-weight: 700;
  font-size: 15px;
}

.stat-label {
  font-size: 13px;
  color: #a8a8a8;
}

.profile-info {
  margin-top: 15px;
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.profile-link {
  color: #0095f6;
  text-decoration: none;
}

.followed-by {
  font-size: 13px;
  margin-top: 5px;
  color: #a8a8a8;
}

.profile-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
  position: relative;
  z-index: 2;
}

.action-btn {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 1px solid #363636;
  color: inherit;
  background: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.follow-btn {
  background-color: #0095f6;
  border: none;
  color: #fff;
}

.shop-icon {
  font-size: 18px;
  background-color: #111;
  border: 1px solid #363636;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

/* --- Sorotan (Highlight) --- */
.highlights {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 25px;
  position: relative;
  z-index: 2;
}

.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.highlight:hover {
  transform: scale(1.05);
}

.highlight-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid #363636;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  margin-bottom: 6px;
}

.highlight-icon .material-icons-outlined {
  font-size: 28px;
  color: #fff;
}

.highlight-label {
  font-size: 13px;
}

/* Tabs */
.tabs {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #363636;
  border-bottom: 1px solid #363636;
}

.tab {
  padding: 14px 0;
  flex: 1;
  text-align: center;
  color: #8e8e8e;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.tab::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: #0095f6;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.tab.active {
  color: #fff;
}

.tab.active::before {
  width: 50%;
}

/* Content Sections */
.section {
  display: none;
  padding: 20px 15px;
  animation: fadeIn 0.5s ease;
}

.section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Status */
.status {
  background-color: #111;
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

.status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.status-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.status-user strong {
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-user strong img {
  width: 12px;
  height: 12px;
}

.status-user span {
  color: #8e8e8e;
  font-size: 13px;
}

.status-text {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 5px;
}

/* Voice Message */
.voice-message {
  margin-top: 15px;
  background: #3e3e3e;
  border-radius: 18px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.5s ease;
}

.voice-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

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

.voice-avatar::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: #0008;
  border-radius: 50%;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="white" viewBox="0 0 24 24"><path d="M12 14a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v5a3 3 0 0 0 3 3z"/><path d="M19 11a1 1 0 0 0-2 0 5 5 0 0 1-10 0 1 1 0 1 0-2 0 7 7 0 0 0 6 6.92V22h-3v2h8v-2h-3v-4.08A7 7 0 0 0 19 11z"/></svg>');
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
}

.voice-play-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  transition: transform 0.2s;
}

.voice-play-btn:hover {
  transform: scale(1.1);
}

.voice-play-btn svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.voice-bar {
  flex: 1;
  height: 6px;
  background: #777;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.voice-fill {
  background: #fff;
  height: 100%;
  width: 0%;
  transition: width 0.2s;
}

.voice-time {
  font-size: 12px;
  opacity: .8;
  min-width: 40px;
  text-align: right;
}

/* Album */
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.album-item {
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.album-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.album-item:hover img {
  transform: scale(1.05);
}

/* Shop */
.shop-box {
  background: #111;
  border: 1px solid #262626;
  border-radius: 10px;
  padding: 20px;
  font-size: 15px;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(10px);}
  to {opacity: 1; transform: translateY(0);}
}

/* ===== IMPROVED MOBILE SHOP STYLES ===== */

/* Shop Header Mobile */
.shop-header-mobile {
  text-align: center;
  padding: 20px 15px;
  background: linear-gradient(135deg, #111, #222);
  border-radius: 15px;
  margin-bottom: 20px;
  animation: slideIn 0.5s ease;
}

body.light .shop-header-mobile {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.shop-title-mobile {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #0095f6, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.shop-subtitle-mobile {
  color: #aaa;
  font-size: 14px;
}

body.light .shop-subtitle-mobile {
  color: #666;
}

/* Shop Promo */
.shop-promo {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
  color: white;
  animation: slideIn 0.6s ease;
}

.shop-promo-image {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.shop-promo-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.shop-promo-description {
  font-size: 14px;
  opacity: 0.9;
}

/* Digital Products Grid */
.digital-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

.digital-product-card {
  background: #111;
  border: 1px solid #363636;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeIn 0.7s ease;
}

body.light .digital-product-card {
  background: #ffffff;
  border-color: #e0e0e0;
}

.digital-product-card:hover {
  transform: translateY(-5px);
  border-color: #0095f6;
  box-shadow: 0 10px 25px rgba(0, 149, 246, 0.2);
}

.digital-product-icon {
  font-size: 40px;
  margin-bottom: 10px;
  color: #0095f6;
}

.digital-product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.digital-product-desc {
  font-size: 12px;
  color: #aaa;
}

body.light .digital-product-desc {
  color: #666;
}

/* Mobile Shop Grid 3x3 */
.products-grid-mobile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.product-card-mobile {
  background: #111;
  border: 1px solid #363636;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.8s ease;
}

body.light .product-card-mobile {
  background: #ffffff;
  border-color: #e0e0e0;
}

.product-image-mobile {
  width: 100%;
  height: 110px;
  overflow: hidden;
  position: relative;
}

.product-image-mobile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card-mobile:hover .product-image-mobile img {
  transform: scale(1.05);
}

.product-info-mobile {
  padding: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-name-mobile {
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 32px;
  line-height: 1.3;
}

body.light .product-name-mobile {
  color: #333;
}

.product-price-mobile {
  font-size: 14px;
  font-weight: 700;
  color: #0095f6;
  margin-bottom: 8px;
}

.product-features-mobile {
  margin-bottom: 10px;
  flex-grow: 1;
}

.feature-mobile {
  color: #ccc;
  font-size: 10px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
}

body.light .feature-mobile {
  color: #666;
}

.feature-mobile:before {
  content: "✓";
  color: #00ff88;
  margin-right: 4px;
  font-weight: bold;
  font-size: 9px;
}

.buy-btn-mobile {
  width: 100%;
  padding: 8px;
  background: linear-gradient(135deg, #0095f6, #0081d6);
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.3s ease;
}

.buy-btn-mobile:hover {
  background: linear-gradient(135deg, #0081d6, #006bb3);
  transform: translateY(-1px);
}

/* Quick Actions */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 15px 0;
}

.quick-action-btn {
  padding: 10px 6px;
  background: #111;
  border: 1px solid #363636;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

body.light .quick-action-btn {
  background: #ffffff;
  border-color: #e0e0e0;
  color: #333;
}

.quick-action-btn:hover {
  background: #0095f6;
  border-color: #0095f6;
  color: white;
  transform: translateY(-2px);
}

.quick-action-btn .material-icons-outlined {
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}

/* Category Filter */
.category-filter {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 0;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.category-filter::-webkit-scrollbar {
  display: none;
}

.category-btn {
  padding: 6px 12px;
  background: #111;
  border: 1px solid #363636;
  border-radius: 16px;
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s ease;
}

body.light .category-btn {
  background: #ffffff;
  border-color: #e0e0e0;
  color: #333;
}

.category-btn.active,
.category-btn:hover {
  background: #0095f6;
  border-color: #0095f6;
  color: white;
  transform: translateY(-1px);
}

/* Desktop Shop Styles */
.category-section {
  margin-bottom: 40px;
  animation: fadeIn 0.9s ease;
}

.category-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #363636;
  color: #0095f6;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.product-card {
  background: #111;
  border: 1px solid #363636;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
  animation: slideIn 1s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  border-color: #0095f6;
}

.product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #fff;
}

.product-description {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: #0095f6;
  margin-bottom: 15px;
}

.product-features {
  margin-bottom: 20px;
}

.feature {
  color: #ccc;
  font-size: 13px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
}

.feature:before {
  content: "✓";
  color: #00ff88;
  margin-right: 8px;
  font-weight: bold;
}

.buy-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #0095f6, #0081d6);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.buy-btn:hover {
  background: linear-gradient(135deg, #0081d6, #006bb3);
  transform: translateY(-2px);
}

/* Digital Product Modal */
.digital-product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding: 20px;
}

.digital-product-modal.active {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.digital-product-modal .modal-content {
  max-width: 500px;
  width: 100%;
  background-color: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.digital-product-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #262626;
}

.digital-product-modal .modal-body {
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #fff;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #363636;
  border-radius: 8px;
  background: #222;
  color: white;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #0095f6;
}

.nominal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.nominal-item {
  padding: 15px 10px;
  background: #222;
  border: 1px solid #363636;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nominal-item:hover {
  background: #333;
  transform: translateY(-2px);
}

.nominal-item.active {
  background: #0095f6;
  border-color: #0095f6;
  color: white;
  transform: translateY(-2px);
}

.nominal-amount {
  font-weight: 600;
  font-size: 14px;
}

.nominal-price {
  font-size: 12px;
  color: #aaa;
  margin-top: 4px;
}

.nominal-item.active .nominal-price {
  color: white;
}

.payment-methods {
  margin-bottom: 20px;
}

.payment-methods h4 {
  margin-bottom: 10px;
  font-size: 16px;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.payment-option {
  padding: 12px;
  background: #222;
  border: 1px solid #363636;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-option:hover {
  background: #333;
  transform: translateY(-2px);
}

.payment-option.active {
  background: #0095f6;
  border-color: #0095f6;
  color: white;
  transform: translateY(-2px);
}

.payment-icon {
  font-size: 24px;
  margin-bottom: 5px;
}

.payment-name {
  font-size: 12px;
  font-weight: 600;
}

.order-summary {
  background: #222;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  animation: fadeIn 0.5s ease;
}

.order-summary h4 {
  margin-bottom: 10px;
  font-size: 16px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.summary-item:last-child {
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px solid #363636;
  font-weight: 600;
}

.total-price {
  color: #0095f6;
  font-weight: 700;
}

.buy-now-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #00b894, #00a085);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.buy-now-btn:hover {
  background: linear-gradient(135deg, #00a085, #008c75);
  transform: translateY(-2px);
}

/* Sidebars - FIXED */
.sidebar {
  position: fixed;
  top: 0;
  height: 100%;
  width: 280px;
  background-color: #111;
  border-right: 1px solid #262626;
  padding: 20px;
  z-index: 1000;
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sidebar.left {
  left: 0;
  transform: translateX(-100%);
}

.sidebar.right {
  right: 0;
  border-left: 1px solid #262626;
  border-right: none;
  transform: translateX(100%);
}

.sidebar.active {
  transform: translateX(0);
  animation: sidebarSlideIn 0.3s ease;
}

@keyframes sidebarSlideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.sidebar.right.active {
  animation: sidebarSlideInRight 0.3s ease;
}

@keyframes sidebarSlideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.sidebar h3 {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #363636;
}

.sidebar button {
  width: 100%;
  padding: 12px 15px;
  margin: 8px 0;
  border: none;
  border-radius: 8px;
  background: #222;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.2s;
}

.sidebar button:hover {
  background: #333;
  transform: translateX(5px);
}

.sidebar .material-icons-outlined {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.material-icons-outlined {
  font-size: 20px;
  vertical-align: middle;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: none;
  animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.overlay.active {
  display: block;
}

/* Sidebar Statistics */
.sidebar-stats {
  background: #222;
  border: 1px solid #363636;
  border-radius: 12px;
  padding: 15px;
  margin-top: 20px;
  animation: fadeIn 0.5s ease;
}

.sidebar-stats h4 {
  margin-bottom: 15px;
  color: #0095f6;
  font-size: 14px;
  text-align: center;
}

.sidebar-stat-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  padding: 4px 0;
}

.sidebar-stat-value {
  font-weight: 600;
  color: #00ff88;
}

.sidebar-stat-label {
  color: #aaa;
}

/* --- MODE TERANG --- */
body.light {
  background-color: #f5f5f5;
  color: #333;
}

body.light .header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

body.light .stat-label,
body.light .followed-by {
  color: #666;
}

body.light .status {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
}

body.light .highlight-icon {
  background: #ffffff;
  border: 2px solid #e0e0e0;
}

body.light .highlight-icon .material-icons-outlined {
  color: #333;
}

body.light .shop-box {
  background: #ffffff;
  border: 1px solid #e0e0e0;
}

body.light .tabs {
  border-color: #e0e0e0;
}

body.light .tab {
  color: #666;
}

body.light .tab.active {
  color: #333;
}

body.light .action-btn {
  border-color: #ccc;
  color: #333;
}

body.light .follow-btn {
  background-color: #0095f6;
  color: white;
}

body.light .shop-icon {
  background-color: #f1f1f1;
  border-color: #ccc;
  color: #333;
}

body.light .sidebar {
  background-color: #ffffff;
  color: #333;
  border-color: #e0e0e0;
}

body.light .sidebar button {
  background: #f5f5f5;
  color: #333;
}

body.light .sidebar button:hover {
  background: #e8e8e8;
}

body.light .voice-message {
  background: #e8e8e8;
  color: #333;
}

body.light .voice-bar {
  background: #ccc;
}

body.light .voice-fill {
  background: #333;
}

body.light .product-card-mobile,
body.light .product-card {
  background: #ffffff;
  border-color: #e0e0e0;
}

body.light .product-name-mobile,
body.light .product-name {
  color: #333;
}

body.light .product-description {
  color: #666;
}

body.light .feature {
  color: #555;
}

body.light .category-title {
  color: #0095f6;
  border-bottom-color: #e0e0e0;
}

body.light .quick-action-btn {
  background: #ffffff;
  border-color: #e0e0e0;
  color: #333;
}

body.light .category-btn {
  background: #ffffff;
  border-color: #e0e0e0;
  color: #333;
}

body.light .sidebar-stats {
  background: #f5f5f5;
  border-color: #e0e0e0;
}

/* Mode terang untuk modal produk digital */
body.light .digital-product-modal .modal-content {
  background-color: #ffffff;
}

body.light .form-group label {
  color: #333;
}

body.light .form-group input,
body.light .form-group select {
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #333;
}

body.light .nominal-item {
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #333;
}

body.light .nominal-item:hover {
  background: #e8e8e8;
}

body.light .payment-option {
  background: #f5f5f5;
  border-color: #e0e0e0;
  color: #333;
}

body.light .payment-option:hover {
  background: #e8e8e8;
}

body.light .order-summary {
  background: #f5f5f5;
}

body.light .summary-item:last-child {
  border-top-color: #e0e0e0;
}

/* Mode terang untuk shop promo */
body.light .shop-promo {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

/* --- Modal Preview Album --- */
.album-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding: 20px;
}

.album-modal.active {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

.modal-content {
  max-width: 800px;
  width: 100%;
  background-color: #111;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  animation: modalSlideIn 0.3s ease;
}

.modal-header {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #262626;
}

.modal-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.modal-user-info {
  flex-grow: 1;
}

.modal-username {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

.modal-username img {
  width: 12px;
  height: 12px;
}

.modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s;
}

.modal-close:hover {
  transform: scale(1.1);
}

.modal-image-container {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.modal-image {
  max-width: 100%;
  max-height: 60vh;
  object-fit: contain;
}

.modal-footer {
  padding: 15px;
  border-top: 1px solid #262626;
}

.modal-caption {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 10px;
}

.modal-date {
  font-size: 12px;
  color: #8e8e8e;
  margin-top: 5px;
}

/* Maintenance Styles */
.shop-maintenance {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  border-radius: 15px;
  margin: 20px 0;
  color: white;
  animation: fadeIn 0.5s ease;
}

.maintenance-message h3 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: 700;
}

.maintenance-message p {
  font-size: 16px;
  opacity: 0.9;
}

/* Maintenance Status Grid */
.maintenance-status-grid {
  background: #111;
  border: 1px solid #363636;
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #333;
}

.status-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.status-item strong {
  color: #0095f6;
}

/* Light mode maintenance */
body.light .shop-maintenance {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
}

body.light .maintenance-status-grid {
  background: #ffffff;
  border-color: #e0e0e0;
}

body.light .status-item {
  border-bottom-color: #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-content {
      max-height: 95vh;
  }

  .modal-image {
      max-height: 50vh;
  }

  .products-grid {
      grid-template-columns: 1fr;
      gap: 15px;
  }

  .shop-header {
      padding: 15px;
  }

  .shop-header h2 {
      font-size: 20px;
  }

  .shop-header p {
      font-size: 14px;
  }

  .products-grid-mobile {
      display: grid;
  }

  .products-grid-desktop {
      display: none;
  }

  .sidebar {
      width: 85%;
      max-width: 300px;
  }

  .digital-products-grid {
      grid-template-columns: 1fr;
  }

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

  .payment-options {
      grid-template-columns: 1fr;
  }

  .digital-product-modal .modal-content {
      max-width: 95%;
  }
}

@media (min-width: 769px) {
  .products-grid-mobile {
      display: none;
  }

  .products-grid-desktop {
      display: block;
  }
}

@media (max-width: 480px) {
  .product-info {
      padding: 15px;
  }

  .product-name {
      font-size: 16px;
  }

  .product-price {
      font-size: 18px;
  }

  .product-image-mobile {
      height: 100px;
  }

  .product-name-mobile {
      font-size: 11px;
  }

  .product-price-mobile {
      font-size: 13px;
  }

  .quick-actions {
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
  }

  .quick-action-btn {
      padding: 8px 4px;
      font-size: 10px;
  }

  .quick-action-btn .material-icons-outlined {
      font-size: 14px;
  }

  .products-grid-mobile {
      gap: 6px;
  }

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

  .digital-product-modal .modal-body {
      padding: 15px;
  }

  .highlights {
      gap: 15px;
  }

  .highlight-icon {
      width: 50px;
      height: 50px;
  }

  .highlight-label {
      font-size: 11px;
  }

  .loading-gif {
      width: 80px;
      height: 80px;
  }

  .loading-text {
      font-size: 14px;
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  * {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
  }
}

/* Print styles */
@media print {
  .sidebar,
  .overlay,
  .modal,
  .sidebar-stats {
      display: none !important;
  }
}