/* WhisperBox Mobile - Dark Mode Pro */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== THEME SYSTEM ===== */
/* Default: Fresh Paper (Light) */
:root {
  --bg-primary: #fafafa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #f0f0f0;
  --accent: #7c5cfc;
  --accent-light: #6d4de8;
  --accent-bg: #f0ecff;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #999999;
  --border: #f0f0f0;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.04);
  --card-radius: 12px;
  --label-curhat-bg: #f0ecff;
  --label-curhat-text: #7c5cfc;
  --label-cinta-bg: #fff0f3;
  --label-cinta-text: #f43f5e;
  --label-renungan-bg: #eff6ff;
  --label-renungan-text: #3b82f6;
  --label-keluhan-bg: #fffbeb;
  --label-keluhan-text: #f59e0b;
  --reaction-love-bg: #fff0f3;
  --reaction-love-text: #f43f5e;
}

/* Theme: Midnight (Dark) */
body.theme-midnight {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121f;
  --bg-card: #16213e;
  --bg-input: #1e1e35;
  --accent: #8b5cf6;
  --accent-light: #a78bfa;
  --accent-bg: rgba(139,92,246,0.15);
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #888888;
  --border: #2a2a4a;
  --card-shadow: 0 2px 8px rgba(0,0,0,0.3);
  --label-curhat-bg: rgba(139,92,246,0.15);
  --label-curhat-text: #a78bfa;
  --label-cinta-bg: rgba(236,72,153,0.15);
  --label-cinta-text: #f472b6;
  --label-renungan-bg: rgba(59,130,246,0.15);
  --label-renungan-text: #60a5fa;
  --label-keluhan-bg: rgba(245,158,11,0.15);
  --label-keluhan-text: #fbbf24;
  --reaction-love-bg: rgba(244,63,94,0.15);
  --reaction-love-text: #f43f5e;
}

/* Theme: Ocean (Blue) */
body.theme-ocean {
  --bg-primary: #f0f7ff;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #e8f1fb;
  --accent: #0ea5e9;
  --accent-light: #0284c7;
  --accent-bg: #e0f2fe;
  --text-primary: #0c1929;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #e0eef8;
  --card-shadow: 0 1px 4px rgba(14,165,233,0.08);
  --label-curhat-bg: #e0f2fe;
  --label-curhat-text: #0ea5e9;
  --label-cinta-bg: #fce7f3;
  --label-cinta-text: #ec4899;
  --label-renungan-bg: #dbeafe;
  --label-renungan-text: #3b82f6;
  --label-keluhan-bg: #fef3c7;
  --label-keluhan-text: #f59e0b;
  --reaction-love-bg: #fce7f3;
  --reaction-love-text: #ec4899;
}

/* Theme: Forest (Green) */
body.theme-forest {
  --bg-primary: #f0fdf4;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #e8f5e9;
  --accent: #22c55e;
  --accent-light: #16a34a;
  --accent-bg: #dcfce7;
  --text-primary: #0a1f0d;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #d1fae5;
  --card-shadow: 0 1px 4px rgba(34,197,94,0.08);
  --label-curhat-bg: #dcfce7;
  --label-curhat-text: #22c55e;
  --label-cinta-bg: #fce7f3;
  --label-cinta-text: #ec4899;
  --label-renungan-bg: #dbeafe;
  --label-renungan-text: #3b82f6;
  --label-keluhan-bg: #fef3c7;
  --label-keluhan-text: #f59e0b;
  --reaction-love-bg: #fce7f3;
  --reaction-love-text: #ec4899;
}

/* Theme: Sunset (Orange/Warm) */
body.theme-sunset {
  --bg-primary: #fff7ed;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #fef2e2;
  --accent: #f97316;
  --accent-light: #ea580c;
  --accent-bg: #ffedd5;
  --text-primary: #1c1008;
  --text-secondary: #44403c;
  --text-muted: #78716c;
  --border: #fed7aa;
  --card-shadow: 0 1px 4px rgba(249,115,22,0.08);
  --label-curhat-bg: #ffedd5;
  --label-curhat-text: #f97316;
  --label-cinta-bg: #fce7f3;
  --label-cinta-text: #ec4899;
  --label-renungan-bg: #dbeafe;
  --label-renungan-text: #3b82f6;
  --label-keluhan-bg: #fef3c7;
  --label-keluhan-text: #f59e0b;
  --reaction-love-bg: #fce7f3;
  --reaction-love-text: #ec4899;
}

/* Theme: Rose (Pink) */
body.theme-rose {
  --bg-primary: #fff1f2;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #ffe4e6;
  --accent: #f43f5e;
  --accent-light: #e11d48;
  --accent-bg: #ffe4e6;
  --text-primary: #1c0a0c;
  --text-secondary: #44403c;
  --text-muted: #78716c;
  --border: #fecdd3;
  --card-shadow: 0 1px 4px rgba(244,63,94,0.08);
  --label-curhat-bg: #ffe4e6;
  --label-curhat-text: #f43f5e;
  --label-cinta-bg: #fce7f3;
  --label-cinta-text: #ec4899;
  --label-renungan-bg: #dbeafe;
  --label-renungan-text: #3b82f6;
  --label-keluhan-bg: #fef3c7;
  --label-keluhan-text: #f59e0b;
  --reaction-love-bg: #ffe4e6;
  --reaction-love-text: #f43f5e;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Status Bar */
.status-bar {
  height: 44px;
  background: var(--bg-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  font-size: 12px;
  color: var(--text-muted);
  position: sticky;
  top: 0;
  z-index: 100;
}

.status-bar .time {
  font-weight: 600;
}

.status-bar .icons {
  display: flex;
  gap: 6px;
}

/* Screen Container */
.screen {
  min-height: calc(100vh - 44px);
  padding-bottom: 64px;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}

.screen.active {
  display: flex;
}

/* Header */
.header {
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-text span {
  color: var(--accent);
}

.menu-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-input);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  border: none;
}

.tabs {
  display: flex;
  gap: 8px;
}

.tab {
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.tab.active {
  background: linear-gradient(135deg, #6366f1, var(--accent));
  color: var(--text-primary);
}

.tab:not(.active) {
  background: var(--bg-input);
  color: var(--text-muted);
}

/* Feed */
.feed {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 80px;
}

/* Curhat Card */
.curhat-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  transition: transform 0.2s;
  cursor: pointer;
}

.curhat-card:hover {
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.anon-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.anon-avatar {
  width: 24px;
  height: 24px;
  background: var(--accent-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.time-badge {
  font-size: 11px;
  color: var(--text-muted);
}

.card-content {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(42, 42, 58, 0.5);
}

.reactions {
  display: flex;
  gap: 12px;
}

.reaction {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 12px;
}

.reaction:hover {
  color: var(--accent);
  background: var(--accent-bg);
}

.reaction.active {
  color: var(--accent);
}

/* Label Tag */
.label-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-input);
  border-radius: 12px;
  font-size: 11px;
  color: var(--accent);
  margin-top: 8px;
}

/* FAB */
.fab {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-primary);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
  border: none;
  z-index: 50;
}

.fab:hover {
  transform: scale(1.1);
}

/* Bottom Nav */
.bottom-nav {
  height: 64px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 16px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
  background: none;
  border: none;
  padding: 8px 12px;
}

.nav-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
}

.nav-label {
  font-size: 10px;
  color: var(--text-muted);
}

.nav-item.active .nav-icon,
.nav-item.active .nav-label {
  color: var(--accent);
}

/* Submit Screen */
.submit-header {
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-input);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  font-size: 18px;
}

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

.submit-btn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #6366f1, var(--accent));
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submit-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.curhat-textarea {
  flex: 1;
  min-height: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  resize: none;
  outline: none;
  font-family: inherit;
}

.curhat-textarea:focus {
  border-color: var(--accent);
}

.curhat-textarea::placeholder {
  color: var(--text-muted);
}

.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
}

.char-count.warning {
  color: var(--warning);
}

.char-count.danger {
  color: var(--danger);
}

.submit-options {
  display: flex;
  gap: 12px;
}

.option-btn {
  flex: 1;
  padding: 12px;
  background: var(--bg-input);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.option-btn:hover {
  background: var(--border);
  color: var(--text-primary);
}

/* Label Options */
.label-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.label-option {
  padding: 6px 12px;
  background: var(--bg-input);
  border-radius: 16px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.label-option.selected {
  background: var(--accent);
  color: var(--text-primary);
}

/* Detail Screen */
.detail-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  padding-bottom: 80px;
}

.detail-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.comments-section {
  margin-top: 16px;
}

.comments-header {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 12px;
}

.comment-item {
  background: var(--bg-input);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 8px;
}

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

.comment-avatar {
  width: 20px;
  height: 20px;
  background: var(--accent-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.comment-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.comment-text {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.comment-input {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 8px 12px;
}

.comment-input input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.comment-input input::placeholder {
  color: var(--text-muted);
}

.comment-send {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6366f1, var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  border: none;
  color: var(--text-primary);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.empty-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  max-width: 90%;
  text-align: center;
  pointer-events: none;
}

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

.toast.error {
  background: #ff6b6b;
  color: white;
}

.toast.success {
  background: #51cf66;
  color: white;
}

/* Success Animation */
@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.success-animation {
  animation: successPulse 0.3s ease-in-out;
}

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

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Search Screen */
.search-header {
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  font-family: inherit;
}

.search-input:focus {
  border-color: var(--accent);
}

.search-input::placeholder {
  color: var(--text-muted);
}

/* Stats Screen */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
}

.stat-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid var(--border);
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Profile Screen */
.profile-header {
  padding: 24px 20px;
  background: var(--bg-secondary);
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #4a4a6a, #6a6a8a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 12px;
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.profile-username {
  font-size: 14px;
  color: var(--text-muted);
}

.profile-menu {
  padding: 16px;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  border: none;
  width: 100%;
  text-align: left;
  color: var(--text-primary);
  font-size: 14px;
}

.profile-menu-icon {
  width: 32px;
  height: 32px;
  background: var(--bg-input);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.profile-menu-text {
  flex: 1;
}

.profile-menu-arrow {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 320px) {
  .phone-frame {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

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

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

.fade-in {
  animation: fadeIn 0.3s ease-out;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 320px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-align: center;
}

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

.modal-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
}

.modal-btn.primary {
  background: var(--accent);
  color: var(--text-primary);
}

.modal-btn.secondary {
  background: var(--bg-input);
  color: var(--text-muted);
}

/* Report Modal */
.report-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.report-option {
  padding: 12px;
  background: var(--bg-input);
  border-radius: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-align: left;
  transition: background 0.2s;
}

.report-option:hover {
  background: var(--border);
}

.report-option.selected {
  background: var(--accent);
  color: var(--text-primary);
}

/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

.login-body {
  background: var(--bg-primary);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  width: 100%;
  max-width: 360px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Logo */
.login-logo {
  text-align: center;
}

.login-logo-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #6366f1, var(--accent));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.login-logo-text {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.login-logo-text span {
  color: var(--accent);
}

.login-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

/* Login Card */
.login-card {
  width: 100%;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid var(--border);
}

.login-input-group {
  margin-bottom: 16px;
}

.login-input {
  width: 100%;
  padding: 16px;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.login-input:focus {
  border-color: var(--accent);
}

.login-input::placeholder {
  color: var(--text-muted);
}

.login-error {
  display: none;
  margin-top: 8px;
  font-size: 13px;
  color: var(--danger);
}

.login-error.show {
  display: block;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.login-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #6366f1, var(--accent));
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, opacity 0.2s;
}

.login-btn:hover {
  transform: translateY(-2px);
}

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

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Footer */
.login-footer {
  text-align: center;
}

.login-lock {
  font-size: 24px;
  margin-bottom: 8px;
}

.login-footer-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================
   PROFILE SUB-SCREENS
   ============================================ */

/* Settings */
.settings-content {
  padding: 16px;
}

.settings-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background 0.2s;
  border: 1px solid var(--border);
}

.settings-item:hover {
  background: var(--border);
}

.settings-icon {
  font-size: 20px;
}

.settings-text {
  flex: 1;
  color: var(--text-primary);
  font-size: 14px;
}

.settings-toggle {
  padding: 4px 12px;
  background: var(--accent);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
}

.settings-arrow {
  color: var(--text-muted);
  font-size: 18px;
}

/* About */
.about-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.about-logo {
  font-size: 64px;
  margin-bottom: 16px;
}

.about-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-version {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.about-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
  margin-bottom: 24px;
}

.about-divider {
  width: 40px;
  height: 2px;
  background: var(--border);
  margin-bottom: 24px;
}

.about-credit {
  font-size: 12px;
  color: var(--text-muted);
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.delete-btn {
  color: var(--danger) !important;
}

.delete-btn:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}

/* Profile Edit */
.profile-avatar-btn {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 12px;
  cursor: pointer;
}

.profile-avatar-edit {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid var(--bg-primary);
}

.profile-name-input {
  width: 100%;
  max-width: 200px;
  margin: 0 auto 8px;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  outline: none;
  font-family: inherit;
}

.profile-name-input:focus {
  border-color: var(--accent);
}

.profile-save-btn {
  padding: 8px 20px;
  background: linear-gradient(135deg, #6366f1, var(--accent));
  border-radius: 20px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  margin-top: 8px;
}

/* Avatar Grid */
.avatar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.avatar-option {
  width: 48px;
  height: 48px;
  background: var(--bg-input);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.avatar-option:hover {
  background: var(--border);
  transform: scale(1.1);
}

.avatar-option.selected {
  border-color: var(--accent);
  background: var(--accent-bg);
}

/* Notifications */
.notification-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}

.notification-item:hover {
  background: var(--border);
}

.notification-item.unread {
  border-left: 3px solid var(--accent);
}

.notif-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  background: var(--bg-input);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-message {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 4px;
}

.notif-time {
  font-size: 11px;
  color: var(--text-muted);
}

.notif-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.mark-all-btn {
  padding: 6px 12px;
  background: var(--bg-input);
  border-radius: 16px;
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  border: none;
}

.settings-badge {
  padding: 2px 8px;
  background: var(--danger);
  border-radius: 10px;
  font-size: 11px;
  color: var(--text-primary);
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

/* Drawer Menu */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--bg-primary);
  border-right: 1px solid var(--border);
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.drawer.active {
  transform: translateX(0);
}
.drawer-header {
  padding: 60px 20px 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
}
.drawer-logo {
  font-size: 20px;
  font-weight: 700;
}
.drawer-subtitle {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
}
.drawer-items {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}
.drawer-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 14px 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s;
}
.drawer-item:active {
  background: var(--bg-secondary);
}
.drawer-icon {
  font-size: 20px;
  width: 24px;
  text-align: center;
}
.drawer-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 16px;
}
.drawer-footer {
  padding: 16px 20px;
  font-size: 11px;
  color: var(--text-secondary);
  text-align: center;
  border-top: 1px solid var(--border);
}

/* Custom Confirm Modal */
.confirm-icon {
  font-size: 40px;
  margin-bottom: 12px;
}
.confirm-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.confirm-message {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}
.modal-btn.danger {
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
}
.modal-btn.secondary {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
}
.modal-actions {
  display: flex;
  gap: 10px;
}

/* Comment Delete Button */
.comment-delete {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.4;
  padding: 2px 4px;
  margin-left: auto;
  transition: opacity 0.2s;
}
.comment-delete:active {
  opacity: 1;
}

/* Theme Picker */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.theme-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-bg);
}
.theme-preview {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.theme-accent {
  width: 24px;
  height: 4px;
  border-radius: 2px;
}
.theme-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.theme-desc {
  font-size: 11px;
  color: var(--text-muted);
}
.settings-theme-label {
  font-size: 12px;
  color: var(--text-muted);
}

/* Role Badges */
.anon-badge.role-owner {
  color: #f59e0b;
}
.anon-badge.role-owner .anon-avatar {
  background: rgba(245,158,11,0.15);
}
.anon-badge.role-admin {
  color: #3b82f6;
}
.anon-badge.role-admin .anon-avatar {
  background: rgba(59,130,246,0.15);
}
.anon-badge.role-user {
  color: var(--text-muted);
}

/* Profile Role Badge */
.profile-role-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
}
.profile-role-badge.role-owner {
  background: rgba(255, 215, 0, 0.15);
  color: #FFD700;
}
.profile-role-badge.role-admin {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
}
.profile-role-badge.role-user {
  background: rgba(149, 165, 166, 0.15);
  color: #95a5a6;
}

/* Admin Panel */
.admin-panel {
  margin-top: 16px;
  padding: 16px;
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.admin-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.admin-section {
  margin-bottom: 16px;
}
.admin-section:last-child {
  margin-bottom: 0;
}
.admin-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-invite-row {
  display: flex;
  gap: 8px;
}
.admin-invite-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}
.admin-invite-btn {
  padding: 10px 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.admin-invite-btn:hover {
  opacity: 0.9;
}
.admin-invite-msg {
  font-size: 12px;
  margin-top: 8px;
  min-height: 16px;
}
.admin-invite-msg.success { color: #27ae60; }
.admin-invite-msg.error { color: #e74c3c; }
.admin-invite-display {
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
  font-family: monospace;
  font-size: 14px;
  color: var(--text);
}
.admin-account-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-account-item {
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 8px;
}
.admin-account-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-account-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-account-name {
  font-weight: 600;
  color: var(--text);
}
.admin-delete-btn {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.admin-delete-btn:hover {
  opacity: 1;
}

/* Admin Card Actions */
.admin-card-actions {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.admin-action-btn {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}
.admin-action-btn:hover {
  opacity: 0.8;
}
.admin-action-btn.delete {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}
.admin-action-btn.ban {
  background: rgba(192, 57, 43, 0.15);
  color: #c0392b;
}

/* Detail Card Icon Buttons */
.divider-line {
  height: 1px;
  background: var(--border);
  margin: 0 -16px 12px;
}
.card-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
}
.icon-btn.promote {
  background: rgba(255, 215, 0, 0.12);
  color: #FFD700;
}
.icon-btn.promote:active {
  background: rgba(255, 215, 0, 0.3);
}
.icon-btn.ban {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}
.icon-btn.ban:hover {
  background: rgba(231, 76, 60, 0.2);
}
.icon-btn.delete {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
}
.icon-btn.delete:hover {
  background: rgba(231, 76, 60, 0.2);
}
.icon-btn.share {
  background: var(--border);
  color: var(--text-muted);
}
.icon-btn.share:hover {
  background: var(--accent-bg);
}

.admin-account-role {
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
}
.admin-account-role.role-owner {
  background: rgba(255, 215, 0, 0.15);
  color: #FFD700;
}
.admin-account-role.role-admin {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
}
.admin-account-role.role-user {
  background: rgba(149, 165, 166, 0.15);
  color: #95a5a6;
}

/* Reports */
.admin-reports-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.admin-report-item {
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.25);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.admin-report-info {
  flex: 1;
  min-width: 0;
}
.admin-report-reason {
  font-weight: 600;
  font-size: 14px;
  color: #e74c3c;
  margin-bottom: 4px;
}
.admin-report-snippet {
  font-size: 12px;
  color: var(--text-muted, #999);
  font-style: italic;
  margin-bottom: 4px;
  word-break: break-word;
}
.admin-report-meta {
  font-size: 11px;
  color: var(--text-muted, #777);
}
.admin-report-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

/* Laporan badge */
.laporan-badge {
  display: inline;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Report cards */
.report-card {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e0e0e0);
  border-left: 3px solid #e74c3c;
  border-radius: 10px;
  padding: 14px;
  margin: 0 16px 10px;
  cursor: pointer;
  transition: transform 0.15s;
}
.report-card:active { transform: scale(0.98); }
.report-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.report-card-reason {
  font-weight: 700;
  font-size: 14px;
  color: #e74c3c;
}
.report-card-time {
  font-size: 11px;
  color: var(--text-muted, #999);
  flex-shrink: 0;
}
.report-card-snippet {
  font-size: 13px;
  color: var(--text-muted, #888);
  font-style: italic;
  margin-bottom: 8px;
  word-break: break-word;
}
.report-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.report-card-by {
  font-size: 11px;
  color: var(--text-muted, #777);
}
.report-dismiss-btn {
  background: rgba(231, 76, 60, 0.12);
  border: none;
  color: #e74c3c;
  font-size: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.report-dismiss-btn:active { background: rgba(231, 76, 60, 0.3); }

/* OG Badge */
.og-badge {
  color: #888;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
  vertical-align: middle;
}
.og-badge-inline {
  color: #888;
  font-size: 10px;
  font-weight: 600;
  margin-left: 4px;
  vertical-align: middle;
}

/* ============================================
   DESKTOP RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
  body {
    display: flex;
    justify-content: center;
    background: #1a1a2e;
  }
  
  .app-container {
    max-width: 420px;
    min-height: 100vh;
    background: var(--bg-primary);
    box-shadow: 0 0 60px rgba(0,0,0,0.3);
    position: relative;
  }
  
  .bottom-nav {
    max-width: 420px;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .header {
    max-width: 420px;
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  /* Center toast on desktop */
  .toast {
    max-width: 380px;
  }
}
