* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Open Sans",
    Segoe UI,
    Arial,
    sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* Mobile optimizations */
html {
  touch-action: manipulation;
  -webkit-text-size-adjust: 100%;
}

.countdown-timer {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.countdown-number {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  font-family: monospace;
  letter-spacing: 2px;
}

.countdown-sep {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.countdown-finished {
  font-size: 18px;
  color: #00A878;
  font-weight: 600;
  font-family: monospace;
}

body {
  background: #00A878;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom);
  overflow: hidden;
}

.chat-container {
  width: 90%;
  max-width: 400px;
  height: 100vh;
  background: #36454F;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(5, 150, 105, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}



.chat-header {
  background: #00A878;
  color: #ffffff;
  padding: 6px 8px;
  padding-top: max(6px, env(safe-area-inset-top));
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  border-bottom: 2px solid rgba(5, 150, 105, 0.5);
}

.chat-header .header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  padding-left: 30px;
}

.chat-header .back-btn {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #36454F;
  border: 2px solid #00A878;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  flex-shrink: 0;
  z-index: 10;
}

.chat-header .back-btn:hover {
  background: #EBEBEB;
  transform: scale(1.1);
}

.chat-header .back-btn svg {
  fill: #00A878;
  width: 16px;
  height: 16px;
}

.chat-header-title {
  flex: 1;
  text-align: center;
  padding-bottom: 2px;
  margin-bottom: 2px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.chat-header .header-user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.chat-header .user-details {
  display: flex;
  flex-direction: column;
}

.user-badge {
  background: rgba(255, 255, 255, 0.3);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  margin-top: 2px;
}

.header-user-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.status-icon {
  fill: #ffffff;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.other-user-name {
  font-size: 11px;
  font-weight: 500;
  color: #ffffff;
}

.last-seen {
  font-size: 9px;
  color: #EBEBEB;
  margin-top: 1px;
}

.chat-box {
  flex: 1;
  overflow-y: auto;
  padding: 8px 10px;
  background: #121212;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat {
  max-width: 70%;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  word-wrap: break-word;
  animation: fadeIn 0.3s ease;
}

.message-text {
  margin-bottom: 2px;
}

.chat-image {
  max-width: 160px;
  max-height: 160px;
  border-radius: 10px;
  cursor: pointer;
  object-fit: cover;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

.image-modal.active {
  display: flex;
}

.image-modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.media-gallery-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: white;
  flex-direction: column;
}

.media-gallery-modal.active {
  display: flex;
}

.media-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #36454F;
  color: white;
  font-weight: 600;
  font-size: 18px;
}

.media-gallery-header button {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
}

.media-gallery-content {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.media-item {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s;
}

.media-item:hover {
  transform: scale(1.05);
}

.media-gallery-content .loading,
.media-gallery-content .no-media {
  text-align: center;
  padding: 40px;
  color: #666;
}

.message-time {
  font-size: 8px;
  opacity: 0.7;
  text-align: right;
}

.date-bubble {
  background: rgba(16, 185, 129, 0.2);
  color: #36454F;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 500;
}

.date-bubble {
  background: rgba(16, 185, 129, 0.2);
  color: #36454F;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  text-align: center;
  align-self: center;
  margin: 10px 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.right {
  background: #36454F;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.left {
  background: #00A878;
  color: #ffffff;
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.input-area {
  display: flex;
  padding: 6px 8px;
  padding-bottom: max(6px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(5, 150, 105, 0.3);
  background: #36454F;
  gap: 6px;
  flex-shrink: 0;
  align-items: flex-end;
}

.input-area .attach-btn {
  padding: 5px;
  border: none;
  background: #00A878;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  width: 32px;
  height: 32px;
}

.input-area button:last-child {
  padding: 5px;
  width: 32px;
  height: 32px;
}

.input-area .attach-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.input-area .attach-btn svg {
  fill: white;
  width: 14px;
  height: 14px;
}

.input-area button:last-child {
  padding: 5px;
}

.input-area input,
.input-area textarea {
  flex: 1;
  padding: 6px 10px;
  border-radius: 20px;
  border: 2px solid #00A878;
  outline: none;
  font-size: 12px;
  background: #EBEBEB;
  color: #ffffff;
  transition: all 0.3s ease;
  resize: none;
  min-height: 32px;
  max-height: 60px;
  overflow-y: auto;
  font-family: inherit;
  line-height: 1.4;
}

.input-area textarea {
  padding-top: 6px;
  padding-bottom: 6px;
}

.input-area button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* Reply preview styles */
.reply-preview {
  background: rgba(16, 185, 129, 0.15);
  border-left: 3px solid #00A878;
  padding: 8px 12px;
  margin-bottom: 6px;
  border-radius: 8px 8px 8px 0;
  font-size: 12px;
  cursor: pointer;
}

.right .reply-preview {
  background: rgba(16, 185, 129, 0.35);
  border-left: 3px solid #00A878;
}

.reply-label {
  font-weight: 600;
  color: #EBEBEB;
  display: block;
  margin-bottom: 2px;
}

.right .reply-label {
  color: #EBEBEB;
}

/* Highlight replied message */
.chat.highlighted {
  animation: highlightPulse 1s ease;
}

@keyframes highlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Reply bar */
.reply-bar {
  display: none;
  padding: 10px 15px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  align-items: center;
  gap: 10px;
}

.reply-bar.active {
  display: flex;
}

.reply-bar-text {
  flex: 1;
  font-size: 13px;
  color: #36454F;
}

.reply-bar-user {
  font-weight: 600;
  color: #00A878;
}

.reply-bar-cancel {
  background: none;
  border: none;
  color: #999;
  font-size: 18px;
  cursor: pointer;
  padding: 5px;
}

.input-area input:focus {
  border-color: #36454F;
  background: white;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.input-area button {
  padding: 12px;
  border: none;
  background: #00A878;
  color: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.input-area button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Scrollbar styling */
.chat-box::-webkit-scrollbar {
  width: 6px;
}

.chat-box::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.chat-box::-webkit-scrollbar-thumb {
  background: #36454F;
  border-radius: 10px;
}

/* Login Page Styles */
.login-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #36454F 0%, #EBEBEB 50%, #00A878 100%);
  padding: 20px;
}

.login-container {
  background: white;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  width: 100%;
  max-width: 360px;
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-container h1 {
  color: #333;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

.login-container p {
  color: #666;
  margin-bottom: 24px;
  font-size: 14px;
}

.icon-chat {
  width: 64px;
  height: 64px;
  background: #00A878;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.25);
}

.icon-chat svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-form input[type="text"] {
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: all 0.2s ease;
  background: #fafafa;
}

.login-form input[type="text"]:focus {
  border-color: #36454F;
  background: white;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.login-form input[type="text"]::placeholder {
  color: #aaa;
}

.login-form button {
  padding: 14px;
  background: #00A878;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(76, 175, 80, 0.2);
}

.login-form button:hover {
  background: #43a047;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.login-form button:active {
  transform: translateY(0);
}

.error-message {
  background: #ffebee;
  color: #c62828;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-top: 12px;
}

/* Music Player Styles */
.music-player-page {
  background: linear-gradient(135deg, #36454F 0%, #EBEBEB 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  color: white;
}

.player-container {
  background: rgba(200, 230, 201, 0.3);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px 30px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.player-title {
  font-size: 14px;
  color: #EBEBEB;
  margin-bottom: 15px;
  font-weight: 600;
}

.track-name {
  font-size: 18px;
  color: white;
  margin-bottom: 20px;
  font-weight: bold;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.control-btn {
  background: #36454F;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.control-btn:hover {
  background: #EBEBEB;
  transform: scale(1.1);
}

.control-btn svg {
  fill: white;
  width: 18px;
  height: 18px;
}

.play-btn {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #EBEBEB 0%, #36454F 100%);
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin-top: 20px;
  overflow: hidden;
  cursor: pointer;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #36454F, #36454F);
  width: 0%;
  transition: width 0.1s;
}

.time {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: #EBEBEB;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.user-info {
  margin-top: 25px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  font-size: 13px;
  color: #666;
}

.user-info strong {
  color: #333;
}

/* Login Page Responsive */
@media (max-width: 480px) {
  .login-container {
    padding: 25px 20px;
    width: 95%;
    max-width: none;
    border-radius: 16px;
  }

  .login-container h1 {
    font-size: 20px;
  }

  .login-container p {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .icon-chat {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .icon-chat svg {
    width: 30px;
    height: 30px;
  }

  .login-form input {
    padding: 12px 15px;
    font-size: 14px;
  }

  .login-form button {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Responsive */
@media (max-width: 480px) {
  body {
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom);
    height: 100vh;
    overflow: hidden;
  }

  .chat-container {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
  }

  .chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
  }

  .chat {
    max-width: 80%;
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 16px;
  }

  .message-text {
    margin-bottom: 2px;
  }

  .message-time {
    font-size: 9px;
  }

  .date-bubble {
    padding: 4px 12px;
    font-size: 11px;
    margin: 6px 0;
  }

  .input-area {
    padding: 8px;
  }

  .input-area input {
    padding: 8px 12px;
    font-size: 13px;
    min-height: 40px;
  }

  .input-area button {
    padding: 8px 12px;
    font-size: 13px;
  }

  .chat-header {
    padding: 8px;
  }
}

/* Edit Message Modal */

/* Edit Message Modal */
.edit-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.edit-modal.active {
  display: flex;
}

.edit-modal-content {
  background: white;
  border-radius: 16px;
  padding: 20px;
  width: 90%;
  max-width: 350px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
}

.edit-modal-header {
  font-size: 18px;
  font-weight: 600;
  color: #36454F;
  margin-bottom: 15px;
  text-align: center;
}

.edit-modal-content textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #36454F;
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  resize: none;
  font-family: inherit;
  margin-bottom: 15px;
}

.edit-modal-content textarea:focus {
  border-color: #00A878;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.edit-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.edit-cancel-btn {
  padding: 10px 20px;
  background: #f1f1f1;
  color: #666;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-cancel-btn:hover {
  background: #e0e0e0;
}

.edit-save-btn {
  padding: 10px 20px;
  background: #00A878;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* Tick indicators (WhatsApp style) */
.tick {
  font-size: 11px;
  margin-left: 4px;
  font-weight: 500;
}

.tick-sent {
  color: #EBEBEB;
  opacity: 0.9;
}

.tick-read {
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Edited indicator */
.edited-indicator {
  font-size: 9px;
  color: #EBEBEB;
  opacity: 0.9;
  font-style: italic;
  margin-left: 4px;
  font-weight: 700;
  -webkit-text-stroke: 0.5px #36454F;
  text-shadow:
    1px 1px 0 #36454F,
    -1px -1px 0 #36454F,
    1px -1px 0 #36454F,
    -1px 1px 0 #36454F;
}

/* Beranda Page Styles */
.floating-love {
  position: fixed;
  width: 30px;
  height: 30px;
  opacity: 0.6;
  animation: floatUp 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.floating-love svg {
  fill: white;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 3px rgba(255, 255, 255, 1));
}

.floating-love:nth-child(1) {
  left: 15%;
  top: 5%;
  animation-delay: 0s;
  width: 25px;
  height: 25px;
}

.floating-love:nth-child(2) {
  left: 75%;
  top: 8%;
  animation-delay: 1s;
  width: 20px;
  height: 20px;
}

.floating-love:nth-child(3) {
  right: 20%;
  top: 3%;
  animation-delay: 2s;
  width: 28px;
  height: 28px;
}

.floating-love:nth-child(4) {
  left: 10%;
  top: 75%;
  animation-delay: 3s;
  width: 22px;
  height: 22px;
}

.floating-love:nth-child(5) {
  left: 80%;
  top: 80%;
  animation-delay: 4s;
  width: 26px;
  height: 26px;
}

.floating-love:nth-child(6) {
  right: 15%;
  top: 85%;
  animation-delay: 5s;
  width: 24px;
  height: 24px;
}

.floating-love:nth-child(7) {
  left: 30%;
  top: 90%;
  animation-delay: 6s;
  width: 18px;
  height: 18px;
}

.floating-love:nth-child(8) {
  right: 40%;
  top: 78%;
  animation-delay: 7s;
  width: 20px;
  height: 20px;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }

  50% {
    transform: translateY(-20px) rotate(10deg);
    opacity: 0.9;
  }

  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
}

/* Bubbles */
.bubbles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubble {
  position: absolute;
  bottom: -50px;
  background: radial-gradient(circle at 30% 30%, rgba(200, 230, 201, 0.9), rgba(129, 199, 132, 0.4));
  border-radius: 50%;
  cursor: pointer;
  pointer-events: auto;
  animation: floatBubble linear forwards;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.4);
  transition: transform 0.1s;
}

.bubble::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 20%;
  width: 30%;
  height: 30%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
  border-radius: 50%;
}

.bubble:hover {
  transform: scale(1.1);
}

.bubble.pop {
  animation: popBubble 0.3s ease-out forwards;
}

@keyframes floatBubble {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-100vh) scale(0.8);
    opacity: 0;
  }
}

@keyframes popBubble {
  0% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(129, 199, 132, 0.6);
  }
  30% {
    transform: scale(1.2);
    opacity: 0.9;
    box-shadow: 0 0 20px 10px rgba(129, 199, 132, 0.4);
  }
  60% {
    transform: scale(1.4);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

.music-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #00A878;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
  z-index: 100;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.music-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.6);
}

.music-fab svg {
  width: 28px;
  height: 28px;
  fill: white;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
  }

  50% {
    box-shadow: 0 4px 25px rgba(255, 255, 255, 0.8);
  }

  100% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5);
  }
}

.beranda-page {
  min-height: 100vh;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, #36454F 0%, #EBEBEB 50%, #00A878 100%);
  position: relative;
  overflow: hidden;
}

.beranda-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(109, 76, 65, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(109, 76, 65, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 215, 0, 0.1) 0%, transparent 30%);
  pointer-events: none;
}

.beranda-page::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(45deg,
      transparent,
      transparent 20px,
      rgba(109, 76, 65, 0.03) 20px,
      rgba(109, 76, 65, 0.03) 40px);
  pointer-events: none;
}

.beranda-header {
  text-align: center;
  margin-bottom: 40px;
  padding-top: 70px;
  animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.beranda-header h1 {
  font-size: 32px;
  font-weight: 800;
  color: #36454F;
  margin-bottom: 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.beranda-header p {
  font-size: 16px;
  color: #388e3c;
}

.user-greeting {
  display: inline-block;
  background: #00A878;
  padding: 8px 20px;
  border-radius: 20px;
  color: #ffffff;
  font-weight: 600;
  margin-top: 10px;
}

.menu-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 350px;
}

.menu-card {
  background: white;
  border-radius: 24px;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.6s ease backwards;
  border: 2px solid transparent;
}

.menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ffffff, #ffffff, #ffffff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-card:hover::before {
  opacity: 1;
}

.menu-card:nth-child(1) {
  animation-delay: 0.1s;
  background: linear-gradient(135deg, #ffffff 0%, #F5F5F5 100%);
  border: 2px solid #36454F;
}

.menu-card:nth-child(2) {
  animation-delay: 0.2s;
  background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
  border: 2px solid #36454F;
}

.menu-card:nth-child(3) {
  animation-delay: 0.3s;
  background: linear-gradient(135deg, #ffffff 0%, #36454F 100%);
  border: 2px solid #36454F;
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.menu-card:active {
  transform: translateY(0);
}

.menu-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.menu-card:nth-child(1) .menu-icon {
  background: #00A878;
  border: 2px solid #36454F;
}

.menu-card:nth-child(2) .menu-icon {
  background: #00A878;
  border: 2px solid #36454F;
}

.menu-card:nth-child(3) .menu-icon {
  background: #00A878;
  border: 2px solid #36454F;
}

.menu-icon svg {
  width: 30px;
  height: 30px;
  fill: white;
}

.menu-content {
  flex: 1;
}

.menu-title {
  font-size: 18px;
  font-weight: 800;
  color: #36454F;
  margin-bottom: 5px;
}

.menu-subtitle {
  font-size: 13px;
  color: #36454F;
}

.menu-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.menu-card:hover .menu-arrow {
  transform: translateX(5px);
  background: rgba(255, 255, 255, 0.8);
}

.menu-arrow svg {
  width: 16px;
  height: 16px;
  fill: #ffffff;
}

.logout-btn {
  margin-top: 40px;
  padding: 12px 30px;
  background: white;
  border: 2px solid #36454F;
  color: #36454F;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  animation: fadeIn 0.8s ease 0.4s backwards;
}

.logout-btn:hover {
  background: #36454F;
  color: white;
  border-color: #ffffff;
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.coming-soon-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.coming-soon-overlay.show {
  display: flex;
}

.coming-soon-box {
  background: linear-gradient(135deg, #ffffff 0%, #EBEBEB 100%);
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  max-width: 300px;
  animation: bounce 0.5s ease;
  border: 3px solid #00A878;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

@keyframes bounce {
  0% {
    transform: scale(0.8);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

.coming-soon-box h2 {
  color: #36454F;
  font-size: 24px;
  margin-bottom: 15px;
}

.coming-soon-box p {
  color: #36454F;
  font-size: 14px;
  margin-bottom: 25px;
}

.close-btn {
  padding: 10px 30px;
  background: #00A878;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
  background: #00A878;
}

.aquarius-logo {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #00A878;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  z-index: 100;
}

.aquarius-logo svg {
  width: 28px;
  height: 28px;
  fill: white;
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(10deg);
  }
}

.secret-box {
  background: linear-gradient(135deg, #36454F 0%, #EBEBEB 50%, #00A878 100%);
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  max-width: 320px;
  animation: bounce 0.5s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.secret-icon {
  font-size: 60px;
  margin-bottom: 10px;
  animation: wiggle 2s ease-in-out infinite;
}

.secret-box h2 {
  color: #36454F;
  font-size: 24px;
  margin-bottom: 10px;
}

.secret-box p {
  color: #36454F;
  font-size: 14px;
  margin-bottom: 20px;
  font-style: italic;
}

.secret-box input {
  width: 100%;
  padding: 14px;
  border: 3px solid #00A878;
  border-radius: 15px;
  font-size: 14px;
  margin-bottom: 15px;
  box-sizing: border-box;
  text-align: center;
  outline: none;
  transition: all 0.3s;
  color: #36454F;
  background: #ffffff;
}

.secret-box input:focus {
  border-color: #36454F;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.secret-box .close-btn {
  background: #36454F;
  color: #ffffff;
  padding: 12px 25px;
}

.secret-box .close-btn:last-child {
  background: #EBEBEB;
  color: #666;
  padding: 12px 20px;
}

.cancel-btn {
  background: #EBEBEB !important;
  color: #666 !important;
  padding: 12px 20px !important;
}

.music-player-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
}

.music-player-btn {
  background: #00A878;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 2s infinite;
}

.music-player-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.music-player-panel {
  display: none;
  position: absolute;
  bottom: 60px;
  left: 0;
  background: #36454F;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
  min-width: 220px;
  animation: slideUp 0.3s ease;
}

.music-player-panel.show {
  display: block;
}

.music-player-panel-title {
  font-weight: 700;
  color: #36454F;
  margin-bottom: 10px;
  font-size: 14px;
}

.music-player-panel audio {
  width: 100%;
  margin-bottom: 10px;
  height: 35px;
  border-radius: 8px;
}

.music-list {
  max-height: 150px;
  overflow-y: auto;
}

.music-item {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  color: #36454F;
  transition: all 0.2s;
}

.music-item:hover {
  background: #EBEBEB;
}

@media (max-width: 400px) {
  .beranda-page {
    padding: 15px;
  }

  .beranda-header h1 {
    font-size: 22px;
  }

  .beranda-header p {
    font-size: 14px;
  }

  .menu-container {
    gap: 12px;
    max-width: 100%;
  }

  .menu-card {
    padding: 15px 18px;
    border-radius: 18px;
  }

  .menu-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
  }

  .menu-icon svg {
    width: 24px;
    height: 24px;
  }

  .menu-title {
    font-size: 16px;
  }

  .menu-subtitle {
    font-size: 12px;
  }

  .logout-btn {
    margin-top: 25px;
    padding: 10px 25px;
    font-size: 13px;
  }

  .aquarius-logo {
    width: 40px;
    height: 40px;
    top: 15px;
    right: 15px;
  }

  .aquarius-logo svg {
    width: 22px;
    height: 22px;
  }
}

/* Memories Page Styles */
.memories-page {
  min-height: 100vh;
  padding: 0 10px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #f1f8e9 0%, #dcedc8 50%, #c5e1a5 100%);
}

.memories-header {
  position: relative;
  top: 70px;
  left: 20px;
  right: 20px;
  background: #36454F;
  padding: 8px 15px;
  padding-left: 42px;
  border-radius: 10px;
  z-index: 50;
  box-shadow: 0 4px 15px rgba(165, 214, 167, 0.3);
  animation: slideDown 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.memories-header .back-btn {
  position: absolute;
  left: 7px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ffffff;
  transition: all 0.3s ease;
  z-index: 10;
}

.memories-header .back-btn:hover {
  background: #EBEBEB;
  transform: scale(1.1);
}

.memories-header .back-btn svg {
  fill: #388e3c;
}

.memories-header h1 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  margin: 0;
  text-align: center;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slideshow-container {
  position: fixed;
  top: 130px;
  left: 20px;
  right: 20px;
  height: 120px;
  z-index: 40;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slideshow-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.slideshow-slide.active {
  opacity: 1;
}

.slideshow-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slideshow-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 45;
}

.slideshow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slideshow-dot.active {
  background: white;
  transform: scale(1.3);
}

.slideshow-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 45;
  transition: all 0.3s ease;
}

.slideshow-arrow:hover {
  background: #c5e1a5;
  transform: scale(1.1);
}

.slideshow-arrow svg {
  width: 20px;
  height: 20px;
  fill: #004d00;
}

.slideshow-arrow.prev {
  left: 10px;
}

.slideshow-arrow.next {
  right: 10px;
}

.memories-header p {
  color: #888;
  font-size: 12px;
}

.memories-back-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
  text-decoration: none;
  transition: all 0.3s ease;
}

.memories-back-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.memories-back-btn svg {
  width: 20px;
  height: 20px;
  fill: #5d4e60;
}

.upload-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: #00A878;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(165, 214, 167, 0.4);
  cursor: pointer;
  z-index: 100;
  transition: all 0.3s ease;
}

.upload-btn:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 12px 35px rgba(165, 214, 167, 0.5);
}

.upload-btn svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.gallery {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  margin-top: 280px;
  padding: 10px 50px;
}

.gallery::-webkit-scrollbar {
  height: 6px;
}

.gallery::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.gallery::-webkit-scrollbar-thumb {
  background: #ff9a9e;
  border-radius: 3px;
}

.memory-card {
  flex: 0 0 auto;
  width: calc((100vw - 120px) / 3);
  max-width: 140px;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease, filter 0.4s ease, opacity 0.4s ease;
  animation: fadeIn 0.5s ease backwards;
  padding: 8px 8px 20px 8px;
  opacity: 0;
  filter: blur(3px);
}

.memory-card.visible {
  opacity: 0.92;
  filter: blur(0);
}

.memory-card:hover {
  opacity: 1;
  transform: translateX(5px) scale(1.02) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  z-index: 10;
  filter: blur(0);
}

.gallery-nav {
  position: fixed;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 45;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  top: calc(280px + 75px);
}

.gallery-nav:hover {
  background: white;
  transform: scale(1.1);
}

.gallery-nav svg {
  width: 20px;
  height: 20px;
  fill: #5d4e60;
}

.gallery-nav.prev {
  left: 5px;
}

.gallery-nav.next {
  right: 5px;
}

.gallery-nav.hidden {
  opacity: 0;
  pointer-events: none;
}

.memory-card.frame-polaroid {
  background: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: rotate(-2deg);
}

.memory-card.frame-polaroid .memory-image {
  border: none;
  background: #fff;
}

.memory-card.frame-instant {
  background: linear-gradient(145deg, #fff9f0 0%, #fff 100%);
  border: 3px solid #333;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  transform: rotate(3deg);
  border-radius: 4px;
}

.memory-card.frame-vintage {
  background: #f5e6d3;
  border: 8px solid #8b7355;
  border-image: linear-gradient(145deg, #a08060, #6b5344) 1;
  box-shadow: 0 5px 20px rgba(139, 115, 85, 0.4);
  transform: rotate(-1deg);
}

.memory-card.frame-pink {
  background: linear-gradient(135deg, #ffdde1 0%, #ee9ca7 100%);
  border: 3px solid #fff;
  box-shadow: 0 8px 30px rgba(255, 154, 158, 0.4);
  transform: rotate(2deg);
  border-radius: 15px;
}

.memory-card.frame-gold {
  background: #fff;
  border: 4px double #d4af37;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
  transform: rotate(-3deg);
}

.memory-card.frame-shadow {
  background: #EBEBEB;
  padding: 10px;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
  transform: rotate(1deg);
}

.memory-card.frame-shadow .memory-image {
  border: none;
}

.memory-card:nth-child(6n+1) {
  transform: rotate(-3deg);
}

.memory-card:nth-child(6n+2) {
  transform: rotate(2deg);
}

.memory-card:nth-child(6n+3) {
  transform: rotate(-1deg);
}

.memory-card:nth-child(6n+4) {
  transform: rotate(4deg);
}

.memory-card:nth-child(6n+5) {
  transform: rotate(-2deg);
}

.memory-card:nth-child(6n+6) {
  transform: rotate(1deg);
}

.memory-card:hover {
  transform: rotate(0deg) scale(1.05) !important;
}

.memory-card:nth-child(1) {
  animation-delay: 0.05s;
}

.memory-card:nth-child(2) {
  animation-delay: 0.1s;
}

.memory-card:nth-child(3) {
  animation-delay: 0.15s;
}

.memory-card:nth-child(4) {
  animation-delay: 0.2s;
}

.memory-card:nth-child(5) {
  animation-delay: 0.25s;
}

.memory-card:nth-child(6) {
  animation-delay: 0.3s;
}

.memory-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.memory-image:hover {
  transform: scale(1.05);
}

.memory-info {
  padding: 6px;
}

.memory-caption {
  font-size: 10px;
  font-weight: 600;
  color: #5d4e60;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.memory-meta {
  font-size: 9px;
  font-weight: 600;
  color: #aaa;
  display: flex;
  justify-content: space-between;
}

.memory-uploader {
  font-weight: 600;
  color: #ff9a9e;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #aaa;
}

.empty-state svg {
  width: 80px;
  height: 80px;
  fill: #ddd;
  margin-bottom: 20px;
}

.empty-state h3 {
  color: #888;
  margin-bottom: 10px;
}

.upload-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.upload-modal.show {
  display: flex;
}

.upload-box {
  background: white;
  padding: 30px;
  border-radius: 24px;
  width: 90%;
  max-width: 400px;
  animation: slideUp 0.4s ease;
}

.upload-box h2 {
  color: #5d4e60;
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
}

.upload-area {
  border: 3px dashed #ffd1dc;
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

.upload-area:hover {
  border-color: #ff9a9e;
  background: #fff5f7;
}

.upload-area.dragover {
  border-color: #ff9a9e;
  background: #fff5f7;
}

.upload-area svg {
  width: 50px;
  height: 50px;
  fill: #ff9a9e;
  margin-bottom: 10px;
}

.upload-area p {
  color: #888;
  font-size: 14px;
}

.upload-area input {
  display: none;
}

.preview-container {
  display: none;
  margin-bottom: 15px;
}

.preview-container.show {
  display: block;
}

.preview-image {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 12px;
}

.caption-input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ffd1dc;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 20px;
  outline: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.caption-input:focus {
  border-color: #ff9a9e;
  box-shadow: 0 0 0 4px rgba(255, 154, 158, 0.1);
}

.upload-actions {
  display: flex;
  gap: 10px;
}

.btn-upload,
.btn-cancel {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-upload {
  background: #00A878;
  color: white;
}

.btn-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 154, 158, 0.4);
}

.btn-cancel {
  background: #f1f1f1;
  color: #666;
}

.btn-cancel:hover {
  background: #e1e1e1;
}

.btn-upload:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.image-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}

.image-modal.show {
  display: flex;
}

.image-modal img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

.modal-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #5d4e60;
  max-width: 80%;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  white-space: pre-wrap;
  word-wrap: break-word;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.image-modal .close-modal {
  position: absolute;
  top: 25px;
  right: 25px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(255, 154, 158, 0.4);
}

.image-modal .close-modal:hover {
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 8px 30px rgba(255, 154, 158, 0.6);
}

.image-modal .close-modal svg {
  width: 24px;
  height: 24px;
  fill: white;
}

.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
  color: #2d5a45;
  padding: 15px 25px;
  border-radius: 25px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(132, 250, 176, 0.4);
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 3000;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.error {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  color: #5d4e60;
  box-shadow: 0 10px 30px rgba(255, 154, 158, 0.4);
}

@media (max-width: 400px) {
  .memory-card {
    width: calc((100vw - 80px) / 3);
    max-width: 120px;
  }
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    position: relative;
}

/* Tombol kembali */
.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    
    width: 40px;
    height: 40px;
    
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    
    margin-right: 10px;
    margin-left: 2px;
    
    text-decoration: none;
    color: white;
    
    transition: all 0.2s ease;
}

/* Hover (desktop) */
.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Klik (mobile feel) */
.back-btn:active {
    transform: scale(0.92);
}

/* SVG biar pas */
.back-btn svg {
    width: 22px;
    height: 22px;
    fill: #00A878;
}

