/**
 * MysticChat - WhatsApp Tarzı Stil Dosyası
 */

/* ========================================
   CSS Variables (Renk Paleti)
======================================== */
:root {
  /* WhatsApp Renkleri */
  --primary-dark: #075e54;
  --primary: #128c7e;
  --primary-light: #25d366;
  --accent: #dcf8c6;

  /* Arka Plan Renkleri */
  --bg-chat: #0b141a;
  --bg-pattern: #0d1418;
  --bg-header: #1f2c34;
  --bg-input: #1f2c34;
  --bg-modal: rgba(0, 0, 0, 0.85);

  /* Mesaj Balonları */
  --bubble-received: #1f2c34;
  --bubble-sent: #005c4b;
  --bubble-text: #e9edef;

  /* Metin Renkleri */
  --text-primary: #e9edef;
  --text-secondary: #8696a0;
  --text-accent: #00a884;

  /* Tarot Kartları */
  --card-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  --card-border: #4a4a6a;
  --card-glow: rgba(138, 43, 226, 0.5);

  /* Fal Butonları */
  --coffee-gradient: linear-gradient(135deg, #8b4513 0%, #d2691e 100%);
  --tarot-gradient: linear-gradient(135deg, #4b0082 0%, #8b00ff 100%);
  --combo-gradient: linear-gradient(
    135deg,
    #ff6b6b 0%,
    #ffe66d 50%,
    #4ecdc4 100%
  );

  /* Gölgeler */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

  /* Animasyon */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
}

/* ========================================
   Reset & Base Styles
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg-chat);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   App Container
======================================== */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  max-width: 100%;
  margin: 0 auto;
  background: var(--bg-chat);
  position: relative;
}

/* Desktop'ta ortalama */
@media (min-width: 768px) {
  .app-container {
    max-width: 500px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  body {
    background: linear-gradient(180deg, #0b141a 0%, #1e3a5f 100%);
  }
}

/* ========================================
   Header
======================================== */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.avatar-icon {
  font-size: 24px;
}

.header-info {
  display: flex;
  flex-direction: column;
}

.header-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.header-status {
  font-size: 13px;
  color: var(--text-secondary);
}

.header-status.typing {
  color: var(--text-accent);
}

.header-right {
  display: flex;
  gap: 8px;
  position: relative;
}

.header-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.header-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* Header Menu Dropdown */
.header-menu {
  position: absolute;
  top: 48px;
  right: 0;
  background: #2a3942;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  overflow: hidden;
}

.header-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.menu-item {
  width: 100%;
  padding: 16px 20px;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition-fast);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.menu-item:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.menu-item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-item:active {
  background: rgba(255, 255, 255, 0.12);
}

.menu-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.menu-item span {
  flex: 1;
}

/* ========================================
   Chat Area
======================================== */
.chat-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px 16px;
  background: var(--bg-chat);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  scroll-behavior: smooth;
}

.messages-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
}

/* ========================================
   Message Bubbles
======================================== */
.message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  animation: messageIn 0.3s ease-out;
}

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

.message.received {
  align-self: flex-start;
}

.message.sent {
  align-self: flex-end;
}

.message-bubble {
  padding: 8px 12px;
  border-radius: 12px;
  position: relative;
  word-wrap: break-word;
  box-shadow: var(--shadow-sm);
}

.message.received .message-bubble {
  background: var(--bubble-received);
  border-top-left-radius: 4px;
}

.message.sent .message-bubble {
  background: var(--bubble-sent);
  border-top-right-radius: 4px;
}

.message-text {
  font-size: 14.5px;
  color: var(--text-primary);
  white-space: pre-wrap;
  line-height: 1.45;
}

.message-text p {
  margin-bottom: 12px;
}

.message-text p:last-child {
  margin-bottom: 0;
}

.message-time {
  font-size: 11px;
  color: var(--text-secondary);
  text-align: right;
  margin-top: 4px;
  opacity: 0.8;
}

/* Mesaj içindeki görseller */
.message-image {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
}

/* ========================================
   Typing Indicator
======================================== */
.typing-indicator {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  animation: fadeIn 0.3s ease;
}

.typing-indicator.active {
  display: flex;
}

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

.typing-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.typing-bubble {
  background: var(--bubble-received);
  padding: 12px 16px;
  border-radius: 16px;
  border-top-left-radius: 4px;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typingBounce {
  0%,
  80%,
  100% {
    transform: scale(0.7);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========================================
   Fortune Type Buttons
======================================== */
.fortune-buttons {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--bg-input);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  animation: slideUp 0.3s ease;
}

.fortune-buttons.active {
  display: flex;
}

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

.fortune-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.fortune-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0);
  transition: var(--transition-fast);
}

.fortune-btn:hover::before {
  background: rgba(255, 255, 255, 0.1);
}

.fortune-btn:active {
  transform: scale(0.98);
}

.coffee-btn {
  background: var(--coffee-gradient);
  color: white;
}

.tarot-btn {
  background: var(--tarot-gradient);
  color: white;
}

.combo-btn {
  background: var(--combo-gradient);
  color: #1a1a2e;
}

.fortune-icon {
  font-size: 28px;
}

.fortune-text {
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  text-align: left;
}

.fortune-badge {
  background: rgba(0, 0, 0, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ========================================
   Quick Reply Buttons
======================================== */
.quick-replies {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-input);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  animation: slideUp 0.3s ease;
}

.quick-replies.active {
  display: flex;
}

.quick-reply-btn {
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.quick-reply-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.quick-reply-btn:active {
  transform: scale(0.95);
}

/* ========================================
   Upload Area
======================================== */
.upload-area {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
  background: var(--bg-input);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  animation: slideUp 0.3s ease;
}

.upload-area.active {
  display: flex;
}

.upload-info {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.upload-icon {
  font-size: 24px;
}

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

.upload-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-md);
}

.upload-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.upload-btn:active {
  transform: translateY(0);
}

.upload-btn svg {
  fill: currentColor;
}

/* ========================================
   Tarot Cards Area
======================================== */
.tarot-area {
  display: none;
  flex-direction: column;
  padding: 16px;
  background: var(--bg-input);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  animation: slideUp 0.3s ease;
  max-height: 60vh;
  overflow-y: auto;
}

.tarot-area.active {
  display: flex;
}

.tarot-instruction {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 16px;
}

.tarot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.tarot-card {
  aspect-ratio: 2/3;
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
  overflow: hidden;
}

.tarot-card::before {
  content: "🎴";
  font-size: 28px;
  opacity: 0.7;
  transition: var(--transition-fast);
}

.tarot-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(138, 43, 226, 0.3);
}

.tarot-card.selected {
  border-color: var(--primary-light);
  box-shadow: 0 0 20px var(--card-glow);
  background: linear-gradient(135deg, #2d1b4e 0%, #1a1a2e 100%);
}

.tarot-card.selected::before {
  content: "✨";
  opacity: 1;
}

.tarot-card.selected::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(138, 43, 226, 0.2) 0%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

.tarot-confirm-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
}

.tarot-confirm-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.tarot-confirm-btn:not(:disabled):hover {
  background: var(--primary-light);
}

/* ========================================
   Input Area
======================================== */
.input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-input);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.attach-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.attach-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.input-wrapper {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  overflow: hidden;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  outline: none;
}

.input-wrapper input::placeholder {
  color: var(--text-secondary);
}

.send-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-normal);
}

.send-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.send-btn:not(:disabled):hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

.send-btn:not(:disabled):active {
  transform: scale(0.95);
}

/* ========================================
   Modal
======================================== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-modal);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-header);
  border-radius: 16px;
  max-width: 400px;
  width: 100%;
  overflow: hidden;
  animation: scaleIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

#previewImage {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  background: #000;
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding: 16px;
}

.modal-btn {
  flex: 1;
  padding: 14px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-btn.cancel {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.modal-btn.confirm {
  background: var(--primary);
  color: white;
}

.modal-btn:hover {
  opacity: 0.9;
}

/* Doğrulama Mesajı */
.verify-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 20px 30px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ========================================
   Scrollbar Styling
======================================== */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 480px) {
  .message {
    max-width: 90%;
  }

  .tarot-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fortune-btn {
    padding: 14px 16px;
  }

  .fortune-icon {
    font-size: 24px;
  }
}

/* ========================================
   Loading State
======================================== */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   Error State
======================================== */
.error-message {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #ff6b6b;
  padding: 12px 16px;
  border-radius: 12px;
  margin: 8px 0;
  font-size: 14px;
  text-align: center;
}

/* ========================================
   Success Animation
======================================== */
.success-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: var(--primary-light);
  border-radius: 50%;
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  to {
    transform: scale(1);
  }
}

/* ========================================
   Toast Message
======================================== */
.toast-message {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 14px 24px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast-message.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================
   Birthdate Input Area
======================================== */
.birthdate-area {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
  background: var(--bg-input);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  animation: slideUp 0.3s ease;
}

.birthdate-area.active {
    display: flex !important;
}

.birthdate-instruction {
  color: var(--text-secondary);
  font-size: 14px;
}

.birthdate-input {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-family: inherit;
  width: 100%;
  max-width: 280px;
}

.birthdate-input:focus {
  outline: none;
  border-color: var(--primary);
}

.birthdate-confirm-btn {
  padding: 14px 40px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
}

.birthdate-confirm-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

/* ========================================
   Status Buttons (Relationship / Work)
======================================== */
.status-buttons {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background: var(--bg-input);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  animation: slideUp 0.3s ease;
}

.status-buttons.active {
  display: flex !important;
}

.status-btn {
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-normal);
  flex: 1;
  min-width: 140px;
  max-width: 180px;
}

.status-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.status-btn:active {
  transform: scale(0.98);
}

/* ========================================
   Tarot Topic Buttons
======================================== */
.topic-buttons {
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    background: var(--bg-input);
    border-top: 1px solid rgba(255,255,255,0.05);
    animation: slideUp 0.3s ease;
}

.topic-buttons.active {
    display: flex !important;
}

.topic-instruction {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.topic-btn {
    padding: 16px 24px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-normal);
    text-align: left;
}

.topic-btn:hover {
    background: linear-gradient(135deg, #2d1b4e 0%, #1a1a2e 100%);
    border-color: rgba(138, 43, 226, 0.6);
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
}

.topic-btn:active {
    transform: scale(0.98);
}
