@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  /* Renk Tokenları */
  --ink: #0f1b33;
  --ink-soft: #46546e;
  --ink-faint: #7a89a3;
  --blue: #2563eb;
  --blue-bright: #3b82f6;
  --blue-deep: #1d4ed8;
  --cyan: #0e7490;
  --slate: #64748b;

  /* Cam Tasarımı Parametreleri */
  --glass: rgba(255, 255, 255, 0.60);
  --edge: 1px solid rgba(37, 99, 235, 0.14);
  --hair: rgba(37, 99, 235, 0.12);
  --shadow: 0 18px 40px -22px rgba(37, 99, 235, 0.38);
  --radius: 22px;
  --radius-sm: 13px;
}

/* Temel Sıfırlamalar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Archivo', sans-serif;
  color: var(--ink);
  background: radial-gradient(125% 90% at 50% -8%, #e7f0ff 0%, #f1f6ff 42%, #fbfdff 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Atmosferik Işıklar */
.fr-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

.fr-orb-1 {
  width: 45vw;
  height: 45vw;
  left: -10vw;
  top: -10vw;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.8) 0%, rgba(147, 197, 253, 0) 70%);
  animation: orbFloat1 30s infinite alternate ease-in-out;
}

.fr-orb-2 {
  width: 50vw;
  height: 50vw;
  right: -15vw;
  top: -15vw;
  background: radial-gradient(circle, rgba(165, 243, 252, 0.8) 0%, rgba(165, 243, 252, 0) 70%);
  animation: orbFloat2 36s infinite alternate ease-in-out;
}

@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 6vw) scale(1.15); }
}

@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(-10vw, 8vw) scale(0.9); }
}

/* Cam Panel Formülü */
.fr-panel {
  position: relative;
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: var(--edge);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Üst Parlama (Sheen) */
.fr-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: 2;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Tipografi Kuralları */
.fr-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
  text-transform: lowercase;
  display: inline-flex;
  align-items: baseline;
}

.fr-dot {
  color: var(--blue);
  font-weight: 900;
}

.fr-tabular {
  font-variant-numeric: tabular-nums lining-nums;
}

/* Kategori Çipleri */
.fr-cat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: lowercase;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  user-select: none;
}

/* Kategori Renkleri */
.fr-cat-purchase {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.30);
}
.fr-cat-research {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.12);
  border-color: rgba(124, 58, 237, 0.30);
}
.fr-cat-software {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.30);
}
.fr-cat-communication {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.34);
}
.fr-cat-errand {
  color: #0f766e;
  background: rgba(20, 184, 166, 0.13);
  border-color: rgba(20, 184, 166, 0.30);
}
.fr-cat-admin {
  color: #475569;
  background: rgba(100, 116, 139, 0.12);
  border-color: rgba(100, 116, 139, 0.30);
}
.fr-cat-general {
  color: #52525b;
  background: rgba(113, 113, 122, 0.12);
  border-color: rgba(113, 113, 122, 0.30);
}

/* Pending (Analiz Süreci) Çipi */
.fr-cat-pending {
  position: relative;
  color: var(--blue);
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.20);
  overflow: hidden;
}

.fr-cat-pending::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.15), transparent);
  animation: fr-shimmer 2s infinite;
}

@keyframes fr-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.fr-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  background-color: var(--blue);
  border-radius: 50%;
  margin-right: 6px;
  animation: pulseDot 1.4s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Görev Durumu Hapları */
.fr-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: lowercase;
}

.fr-pill-todo {
  color: #475569;
  background: rgba(100, 116, 139, 0.12);
  border: 1px solid rgba(100, 116, 139, 0.30);
}

.fr-pill-in_progress {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.30);
}

.fr-pill-done {
  color: #0e7490;
  background: rgba(14, 116, 144, 0.12);
  border: 1px solid rgba(14, 116, 144, 0.30);
}

/* İnteraktif Durum Seçici */
.fr-seg {
  display: flex;
  background: rgba(37, 99, 235, 0.05);
  border-radius: var(--radius-sm);
  padding: 4px;
  border: 1px solid var(--hair);
  gap: 4px;
}

.fr-seg-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--ink-soft);
  border-radius: calc(var(--radius-sm) - 4px);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
}

.fr-seg-btn.is-active {
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-deep) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

/* Etkinlik Overlay Paneli (Events Drawer) */
.fr-ev-panel {
  position: fixed;
  bottom: 80px;
  right: 24px;
  width: 380px;
  height: 480px;
  max-width: 90vw;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border-radius: var(--radius);
  border: var(--edge);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
}

.fr-ev-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.fr-ev-header {
  padding: 16px;
  border-bottom: 1px solid var(--hair);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fr-ev-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--ink);
}

.fr-ev-close {
  background: transparent;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink-soft);
}

.fr-ev-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fr-ev-detail {
  background: #0b1329;
  color: #38bdf8;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.75rem;
  line-height: 1.4;
  white-space: pre-wrap;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* FAB (Floating Action Button) */
.fr-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #10b981;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 101;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fr-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.5);
}

.fr-fab:active {
  transform: translateY(0);
}

.fr-fab-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  opacity: 0.6;
  animation: fabPulse 2s infinite;
  z-index: -1;
}

@keyframes fabPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Görev İçi Sohbet (Inline Chat) */
.fr-chat-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid var(--hair);
  margin-top: 16px;
}

.fr-chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.4;
  position: relative;
  animation: fr-in 0.3s ease forwards;
}

.fr-chat-msg-user {
  align-self: flex-end;
  background: rgba(37, 99, 235, 0.12);
  color: var(--ink);
  border-bottom-right-radius: 4px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.fr-chat-msg-ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* Mikro Animasyonlar */
.fr-in {
  opacity: 0;
  transform: translateY(8px);
  animation: slideUpIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fr-card-hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -18px rgba(37, 99, 235, 0.45);
}

/* Butonlar */
.fr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-deep) 100%);
  color: white;
  border: none;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: lowercase;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.fr-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

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

.fr-btn-soft {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
  border: 1px solid rgba(37, 99, 235, 0.15);
  box-shadow: none;
}

.fr-btn-soft:hover {
  background: rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

/* Soft Edge Fade (Paywall Previews) */
.fr-paywall-fade {
  position: relative;
  max-height: 220px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  pointer-events: none;
}

.fr-paywall-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 24px;
  z-index: 10;
  pointer-events: auto;
}

/* Layout, Grid, Header elements */
.fr-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hair);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 50;
  margin-bottom: 30px;
}

.fr-logo-link {
  text-decoration: none;
}

.fr-nav-center {
  display: flex;
  gap: 12px;
}

.fr-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fr-search {
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.6);
  padding: 0 16px;
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  outline: none;
  transition: all 0.25s ease;
  width: 240px;
}

.fr-search:focus {
  border-color: var(--blue-bright);
  background: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
  width: 280px;
}

.fr-nav-tab {
  font-family: inherit;
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.fr-nav-tab.is-active, .fr-nav-tab:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--blue);
}

.fr-lang-switch {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--hair);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.fr-lang-switch:hover {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

/* Profile details */
.fr-profile-cover {
  height: 280px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  border: var(--edge);
  position: relative;
  margin-bottom: -60px;
  box-shadow: var(--shadow);
}

.fr-profile-header {
  padding: 24px;
  padding-top: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.fr-profile-avatar-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fr-profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 4px solid white;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  z-index: 5;
}

.fr-profile-actions {
  display: flex;
  gap: 10px;
}

.fr-profile-info {
  margin-top: 12px;
}

.fr-profile-name {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: lowercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.fr-profile-handle {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.fr-profile-bio {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 16px;
}

.fr-profile-stats {
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 12px 0;
  margin-bottom: 20px;
}

.fr-stat-item {
  display: flex;
  flex-direction: column;
}

.fr-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.fr-stat-lbl {
  font-size: 0.75rem;
  color: var(--ink-faint);
  text-transform: lowercase;
  font-weight: 700;
}

/* Creator Feed / Layout grid */
.fr-layout-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}

.fr-sidebar-panel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fr-sidebar-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: lowercase;
  color: var(--ink-faint);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.fr-creator-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.fr-creator-list-item:hover, .fr-creator-list-item.is-active {
  background: rgba(37, 99, 235, 0.06);
}

.fr-creator-item-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--hair);
}

.fr-creator-item-info {
  display: flex;
  flex-direction: column;
}

.fr-creator-item-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
  text-transform: lowercase;
}

.fr-creator-item-handle {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* Post card details */
.fr-feed-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.fr-post-card {
  padding: 24px;
}

.fr-post-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.fr-post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fr-post-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.fr-post-author-name {
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: lowercase;
}

.fr-post-time {
  font-size: 0.75rem;
  color: var(--ink-faint);
}

.fr-post-content {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.fr-post-media {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hair);
  margin-bottom: 16px;
  overflow: hidden;
  position: relative;
}

.fr-post-media img {
  width: 100%;
  display: block;
}

.fr-post-actions {
  display: flex;
  gap: 20px;
  border-top: 1px solid var(--hair);
  padding-top: 14px;
}

.fr-post-action-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.fr-post-action-btn:hover {
  color: var(--blue-bright);
}

/* Paywall card styles */
.fr-paywall-locked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  background: rgba(37, 99, 235, 0.04);
  border-radius: var(--radius-sm);
  border: 1px dashed rgba(37, 99, 235, 0.25);
  margin-bottom: 16px;
}

.fr-lock-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--blue);
}

.fr-locked-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: lowercase;
  color: var(--ink);
  margin-bottom: 6px;
}

.fr-locked-desc {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

/* Chat view styling */
.fr-chat-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  height: calc(100vh - 170px);
}

.fr-inbox-header {
  padding: 16px;
  border-bottom: 1px solid var(--hair);
  font-weight: 800;
  text-transform: lowercase;
  font-size: 1rem;
}

.fr-inbox-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fr-chat-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fr-chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--hair);
  display: flex;
  align-items: center;
  gap: 12px;
}

.fr-chat-history {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fr-chat-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--hair);
  display: flex;
  gap: 12px;
}

.fr-chat-input {
  flex: 1;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.7);
  padding: 0 16px;
  font-family: inherit;
  font-size: 0.85rem;
  outline: none;
}

.fr-chat-input:focus {
  background: white;
  border-color: var(--blue-bright);
}

/* Creator Dashboard page styling */
.fr-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.fr-dash-card {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fr-dash-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: lowercase;
}

.fr-dash-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ink);
}

.fr-chart-panel {
  padding: 24px;
  margin-bottom: 30px;
}

.fr-mock-chart {
  height: 200px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding-top: 20px;
  border-bottom: 2px solid var(--hair);
  border-left: 2px solid var(--hair);
  padding-left: 10px;
}

.fr-chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--blue-deep), var(--blue-bright));
  border-radius: 4px 4px 0 0;
  min-height: 20px;
  position: relative;
  transition: height 0.6s ease;
  animation: growBar 0.8s ease forwards;
  transform-origin: bottom;
}

@keyframes growBar {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

.fr-chart-bar-val {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--ink-soft);
}

.fr-chart-bar-lbl {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: lowercase;
}

/* Modals dialog */
dialog {
  margin: auto;
  border: none;
  background: transparent;
  outline: none;
}

dialog::backdrop {
  background: rgba(15, 27, 51, 0.4);
  backdrop-filter: blur(8px);
}

.fr-dialog-panel {
  width: 440px;
  max-width: 90vw;
  padding: 24px;
}

.fr-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.fr-dialog-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: lowercase;
}

.fr-dialog-content {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fr-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.fr-input {
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.7);
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.fr-input:focus {
  background: white;
  border-color: var(--blue-bright);
}

/* View transitions & state rules */
.hidden {
  display: none !important;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .fr-layout-grid, .fr-chat-layout {
    grid-template-columns: 1fr;
  }
  
  header {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 16px;
    gap: 10px;
  }
  
  .fr-nav-center {
    order: 3;
    width: 100%;
    justify-content: center;
  }
  
  .fr-search {
    width: 150px;
  }
  
  .fr-search:focus {
    width: 180px;
  }
  
  .fr-dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .fr-profile-cover {
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    scroll-behavior: auto !important;
  }
  .fr-orb {
    animation: none !important;
  }
}

/* Phase 2: Tip Goal Widget styling */
.fr-goal-card {
  padding: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fr-goal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink);
  text-transform: lowercase;
}

.fr-goal-bar-bg {
  height: 10px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid var(--hair);
  position: relative;
}

.fr-goal-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-bright) 0%, var(--cyan) 100%);
  border-radius: 99px;
  width: 30%; /* Will be updated dynamically */
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fr-goal-desc {
  font-size: 0.7rem;
  color: var(--ink-faint);
  text-transform: lowercase;
}

/* Phase 2: Post Upload Form */
.fr-creator-form-panel {
  padding: 24px;
  margin-bottom: 24px;
}

.fr-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.fr-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.fr-form-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: lowercase;
  color: var(--ink-soft);
}

.fr-textarea {
  min-height: 80px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  resize: vertical;
}

.fr-textarea:focus {
  background: white;
  border-color: var(--blue-bright);
}

/* Phase 2: Transaction Table */
.fr-table-panel {
  padding: 24px;
  overflow-x: auto;
  margin-top: 24px;
}

.fr-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.fr-table th {
  padding: 10px 12px;
  font-weight: 800;
  text-transform: lowercase;
  color: var(--ink-faint);
  border-bottom: 2px solid var(--hair);
}

.fr-table td {
  padding: 12px;
  border-bottom: 1px solid var(--hair);
  color: var(--ink);
}

.fr-table tr:last-child td {
  border-bottom: none;
}

/* Phase 3: Role Switcher segment overrides */
.fr-role-switcher {
  display: flex;
  background: rgba(37, 99, 235, 0.06);
  border-radius: var(--radius-sm);
  padding: 2px;
  border: 1px solid var(--hair);
  gap: 2px;
  height: 38px;
  align-items: center;
}

.fr-role-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: lowercase;
  color: var(--ink-soft);
  border-radius: calc(var(--radius-sm) - 4px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
  height: 100%;
  display: flex;
  align-items: center;
}

.fr-role-btn.is-active {
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue-deep) 100%);
  color: white;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

/* Phase 3: Chat Locked Media Card */
.fr-chat-locked-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.05);
  border: 1px dashed rgba(37, 99, 235, 0.3);
  text-align: center;
  gap: 8px;
  max-width: 280px;
}

.fr-chat-media-preview-container {
  width: 100%;
  height: 120px;
  border-radius: calc(var(--radius-sm) - 4px);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--hair);
  background: var(--blue-deep);
}

.fr-chat-media-blur {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px);
  opacity: 0.6;
}

.fr-chat-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(15, 27, 51, 0.3);
}

.fr-chat-media-unlocked {
  filter: none !important;
  opacity: 1 !important;
  transition: filter 0.5s ease, opacity 0.5s ease;
}


