/* ── Inline SVG helper for operations ── */
.ops-svg-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 1;
}
.ops-svg-inline svg {
  display: block;
  flex-shrink: 0;
}

/* ============================================
   GLOBALEXCHANGE — Operations Styles
   ============================================ */

/* ── Operations List ── */
.operations-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Balance value style */
.act-balance-value {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
}

.operation-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
}

.operation-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

.operation-card-type {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2em;
}

.operation-card-type.buy {
  background: var(--color-buy-bg);
  color: var(--color-buy);
}

.operation-card-type.sell {
  background: var(--color-sell-bg);
  color: var(--color-sell);
}

.operation-card-info {
  flex: 1;
  min-width: 0;
}

.operation-card-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: 2px;
}

.operation-card-hash {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  font-family: var(--font-family-mono);
}

.operation-card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  margin-top: var(--space-1);
}

.operation-card-right {
  text-align: right;
  flex-shrink: 0;
}

.operation-card-amount {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

.operation-card-fiat {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════
   OPERATION DETAIL LAYOUT
   ══════════════════════════════════════ */

.operation-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-6);
  align-items: start;
}

.operation-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.operation-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
}

/* ── Back Link ── */
.operation-back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  margin-bottom: var(--space-2);
  transition: color var(--transition-fast);
}

.operation-back:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* ── Operation Header ── */
.operation-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.operation-header h2 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: 0;
}

.operation-hash {
  font-family: var(--font-family-mono);
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
}

/* ══════════════════════════════════════
   STEPPER
   ══════════════════════════════════════ */

.operation-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  gap: var(--space-2);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  min-width: 0;
  position: relative;
}

.stepper-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 14px;
  left: calc(50% + 18px);
  width: calc(100% - 36px);
  height: 2px;
  background: var(--color-border-light);
}

.stepper-step.done:not(:last-child)::after {
  background: var(--color-success);
}

.stepper-step.active:not(:last-child)::after {
  background: linear-gradient(90deg, var(--color-primary) 50%, var(--color-border-light) 50%);
}

.stepper-circle {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  border: 2px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-tertiary);
  position: relative;
  z-index: 1;
  transition: all var(--transition-fast);
}

.stepper-step.done .stepper-circle {
  background: var(--color-success);
  border-color: var(--color-success);
  color: white;
}

.stepper-step.active .stepper-circle {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 0 0 4px var(--color-primary-bg);
}

.stepper-step.canceled .stepper-circle {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: white;
}

.stepper-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  text-align: center;
  white-space: nowrap;
  font-weight: var(--font-weight-medium);
}

.stepper-step.done .stepper-label {
  color: var(--color-success-dark);
}

.stepper-step.active .stepper-label {
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

.stepper-step.canceled .stepper-label {
  color: var(--color-danger);
}

/* ══════════════════════════════════════
   AMOUNT INFO GRID
   ══════════════════════════════════════ */

.amount-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-3);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.amount-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.amount-info-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: var(--font-weight-medium);
}

.amount-info-value {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

/* ══════════════════════════════════════
   TIMER / COUNTDOWN CARD
   ══════════════════════════════════════ */

.operation-timer-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.timer-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.timer-icon {
  font-size: 1.2em;
}

.timer-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
}

.timer-countdown {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: var(--space-2) 0;
  transition: color var(--transition-fast);
}

.timer-countdown.countdown-danger {
  color: var(--color-danger) !important;
  animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.timer-bar-container {
  width: 100%;
  height: 6px;
  background: var(--color-bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-2);
}

.timer-bar {
  height: 100%;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width 1s linear, background-color var(--transition-fast);
  min-width: 0;
}

.timer-bar.bar-danger {
  background: var(--color-danger) !important;
}

/* ══════════════════════════════════════
   ACTION BUTTONS
   ══════════════════════════════════════ */

.operation-actions {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.operation-actions h4 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0 0 var(--space-3) 0;
}

.action-buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* ── Confirm Form ── */
.confirm-form {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.confirm-form h4 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0 0 var(--space-3) 0;
}

.confirm-form .form-group {
  margin-bottom: var(--space-3);
}

/* ══════════════════════════════════════
   CHAT
   ══════════════════════════════════════ */

.chat-container {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.chat-messages {
  height: 320px;
  overflow-y: auto;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--color-bg);
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: var(--radius-full);
}

/* ── Chat Message ── */
.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.chat-message.chat-mine {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-message.chat-theirs {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-message.chat-system {
  align-self: center;
  max-width: 90%;
}

.chat-message-bubble {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
  word-break: break-word;
  line-height: 1.45;
}

.chat-mine .chat-message-bubble {
  background: var(--color-primary);
  color: white;
  border-bottom-right-radius: var(--radius-sm);
}

.chat-theirs .chat-message-bubble {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  color: var(--color-text);
  border-bottom-left-radius: var(--radius-sm);
}

.chat-sender {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin-bottom: 2px;
}

.chat-mine .chat-sender {
  color: rgba(255, 255, 255, 0.8);
}

.chat-text {
  font-size: var(--font-size-base);
}

.chat-message-time {
  font-size: 0.7rem;
  opacity: 0.6;
  margin-top: 2px;
}

.chat-mine .chat-message-time {
  color: rgba(255, 255, 255, 0.7);
}

.chat-theirs .chat-message-time {
  color: var(--color-text-tertiary);
}

/* ── Chat System Message ── */
.chat-system-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  background: var(--color-bg-secondary);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  text-align: center;
  display: inline-block;
}

/* ── Chat Image ── */
.chat-image {
  max-width: 240px;
  max-height: 200px;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin: var(--space-1) 0;
  transition: opacity var(--transition-fast);
}

.chat-image:hover {
  opacity: 0.85;
}

/* ── Chat Empty ── */
.chat-empty {
  text-align: center;
  padding: var(--space-8);
  color: var(--color-text-tertiary);
}

/* ── Chat Input Area ── */
.chat-input-area {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--color-border-light);
  background: var(--color-white);
}

.chat-text-input {
  flex: 1;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--font-size-base);
  font-family: var(--font-family);
  outline: none;
  transition: border-color var(--transition-fast);
  background: var(--color-bg);
}

.chat-text-input:focus {
  border-color: var(--color-primary);
  background: var(--color-white);
}

.chat-text-input::placeholder {
  color: var(--color-text-disabled);
}

.chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--color-primary);
  color: white;
  font-size: 1.1em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast), transform var(--transition-fast);
  flex-shrink: 0;
}

.chat-send-btn:hover {
  background: var(--color-primary-dark);
  transform: scale(1.05);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

/* ══════════════════════════════════════
   SIDEBAR CARDS
   ══════════════════════════════════════ */

.sidebar-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.sidebar-card h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 var(--space-3) 0;
}

/* ── Peer Info ── */
.peer-info {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.peer-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-primary-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-base);
  flex-shrink: 0;
}

.peer-details {
  flex: 1;
  min-width: 0;
}

.peer-name {
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  font-size: var(--font-size-base);
}

.peer-meta {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: 2px;
}

/* ── Info Items ── */
.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.info-item:last-child {
  border-bottom: none;
}

.info-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-tertiary);
  font-weight: var(--font-weight-medium);
}

.info-value {
  font-size: var(--font-size-sm);
  color: var(--color-text);
  font-weight: var(--font-weight-semibold);
  text-align: right;
  word-break: break-all;
}

/* ── Searching Cashier ── */
.searching-cashier {
  text-align: center;
  padding: var(--space-4) 0;
}

.searching-pulse {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--color-warning-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  margin: 0 auto var(--space-3);
  animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.7; }
}

.searching-cashier p {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin: 0;
}

/* ══════════════════════════════════════
   SCORE PEER SECTION
   ══════════════════════════════════════ */

.score-section {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  text-align: center;
}

.score-section h4 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin: 0 0 var(--space-3) 0;
}

.score-stars {
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.score-star {
  font-size: 2em;
  cursor: pointer;
  transition: transform var(--transition-fast);
  filter: grayscale(1);
  opacity: 0.4;
}

.score-star:hover {
  transform: scale(1.2);
  filter: grayscale(0);
  opacity: 1;
}

/* ══════════════════════════════════════
   EVENTS TIMELINE
   ══════════════════════════════════════ */

.events-timeline {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
}

.events-timeline h4 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 var(--space-3) 0;
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.event-item:last-child {
  border-bottom: none;
}

.event-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 6px;
}

.event-content {
  flex: 1;
  min-width: 0;
}

.event-status {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

.event-time {
  font-size: var(--font-size-xs);
  color: var(--color-text-tertiary);
  margin-top: 2px;
}

/* ══════════════════════════════════════
   WAITING SCREEN — Reference Design
   2-column layout with stepper bars
   ══════════════════════════════════════ */

/* ── Stepper Bar (4 steps with colored bars) ── */
.ws-stepper {
  display: flex;
  width: 100%;
  margin-bottom: 0;
}

.ws-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.ws-step-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-align: center;
  padding: 8px 4px 10px;
  white-space: nowrap;
}

.ws-step-done .ws-step-label {
  color: var(--color-text);
  font-weight: 600;
}

.ws-step-active .ws-step-label {
  color: var(--color-text);
  font-weight: 600;
}

.ws-step-bar {
  width: 100%;
  height: 5px;
  border-radius: 0;
}

.ws-step-done .ws-step-bar {
  background: var(--color-success);
}

.ws-step-active .ws-step-bar {
  background: linear-gradient(90deg, var(--color-success) 60%, #a8dab5 100%);
}

.ws-step-pending .ws-step-bar {
  background: #f8c8d4;
}

/* ── Two-Column Layout ── */
.ws-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
  padding-top: 32px;
}

/* ── LEFT: Main Content ── */
.ws-main {
  text-align: center;
  padding: 0 20px;
}

/* Timer badge */
.ws-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #2d2d2d;
  color: var(--color-white);
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}

.ws-timer-badge svg {
  opacity: 0.85;
}

.ws-timer-badge .countdown-danger {
  color: #ff6b6b;
}

.ws-timer-sublabel {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

/* Illustration */
.ws-illustration {
  margin: 20px auto 32px;
}

.ws-illustration svg {
  max-width: 100%;
  height: auto;
}

/* Main text */
.ws-main-text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 480px;
}

.ws-main-text strong {
  font-weight: 700;
}

/* Detail paragraphs */
.ws-detail-texts {
  text-align: center;
  margin: 0 auto 24px;
  max-width: 560px;
}

.ws-detail-texts p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0 0 16px;
}

.ws-detail-texts p:last-child {
  margin-bottom: 0;
}

/* Learn more link */
.ws-learn-link {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: underline;
  margin-top: 8px;
  cursor: pointer;
}

.ws-learn-link:hover {
  color: var(--color-primary-dark);
}

/* ── RIGHT: Sidebar ── */
.ws-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ws-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 4px;
}

.ws-sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ws-badge-pending {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-danger-bg);
  color: var(--color-danger-dark);
  border: 1px solid var(--color-danger-light);
}

/* Details card */
.ws-details-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}

.ws-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.ws-detail-row:last-child {
  border-bottom: none;
}

.ws-detail-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-detail-sublabel {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  font-weight: 400;
}

.ws-detail-method {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ws-detail-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.ws-detail-amount {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

.ws-detail-currency {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Rate row */
.ws-detail-row-rate {
  border-top: 1px solid var(--color-border-light);
}

.ws-detail-rate-label {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  cursor: default;
  font-weight: 500;
}

.ws-detail-right-rate {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.ws-detail-right-rate span {
  font-size: 0.85rem;
  color: var(--color-text);
  font-weight: 500;
}

/* Cancel button inside card */
.ws-detail-cancel-wrap {
  padding: 20px 24px;
  text-align: center;
}

.ws-cancel-btn {
  display: inline-block;
  width: 100%;
  max-width: 280px;
  padding: 12px 32px;
  border: 2px solid var(--color-danger);
  border-radius: 100px;
  background: transparent;
  color: var(--color-danger);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ws-cancel-btn:hover {
  background: var(--color-danger-bg);
  border-color: var(--color-danger-dark);
  color: var(--color-danger-dark);
}

/* When cancel button is inside confirm section, make it full width, centered, solid pink like reference */
.ws-confirm-section .ws-cancel-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 100px;
  background: var(--color-danger);
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ws-confirm-section .ws-cancel-btn:hover {
  background: var(--color-danger-dark);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.35);
}

/* Transaction ID card */
.ws-id-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 20px 24px;
}

.ws-id-label {
  display: block;
  font-size: 0.72rem;
  color: var(--color-text-tertiary);
  margin-bottom: 6px;
}

.ws-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ws-id-hash {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-family-mono, 'Fira Code', monospace);
  letter-spacing: 0.02em;
}

.ws-id-copy {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-tertiary);
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-id-copy:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text);
}

.ws-id-details {
  font-size: 0.82rem;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ws-id-details:hover {
  color: var(--color-primary-dark);
}

/* ══════════════════════════════════════
   ACCEPTED SCREEN — Specific Styles
   ══════════════════════════════════════ */

/* Title */
.ws-accepted-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px;
  text-align: left;
}

/* Timer line (inline with text) */
.ws-timer-line {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-light);
  border-radius: 10px;
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.5;
}

.ws-timer-line svg {
  flex-shrink: 0;
  color: var(--color-warning-dark);
}

.ws-timer-line strong {
  font-weight: 700;
  color: var(--color-warning-dark);
  font-variant-numeric: tabular-nums;
}

.ws-timer-line .countdown-danger {
  color: var(--color-danger-dark) !important;
}

/* Tabs */
.ws-tabs {
  display: flex;
  border-bottom: 2px solid var(--color-border-light);
  margin-bottom: 0;
}

.ws-tab {
  padding: 12px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ws-tab:hover {
  color: var(--color-text);
}

.ws-tab-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.ws-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
}

/* Tab content */
.ws-tab-content {
  padding-top: 20px;
}

/* Peer card */
.ws-peer-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  text-align: left;
}

.ws-peer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.ws-peer-info {
  flex: 1;
  min-width: 0;
}

.ws-peer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  display: block;
  margin-bottom: 4px;
}

.ws-peer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

.ws-peer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Instruction banner (yellow) */
.ws-instruction-banner {
  background: var(--color-warning-light);
  border: 1px solid var(--color-warning-light);
  border-left: 4px solid var(--color-warning);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.ws-instruction-banner p {
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.6;
  margin: 0 0 8px;
}

.ws-instruction-banner p:last-child {
  margin-bottom: 0;
}

.ws-instruction-banner strong {
  font-weight: 700;
}

/* Payment details */
.ws-payment-details {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.ws-payment-row {
  padding: 12px 20px;
  border-bottom: 1px solid var(--color-border-light);
  text-align: left;
}

.ws-payment-row:last-child {
  border-bottom: none;
}

.ws-payment-label {
  font-size: 0.75rem;
  color: var(--color-text-tertiary);
  font-weight: 500;
  text-align: left;
  margin-bottom: 4px;
}

.ws-payment-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ws-payment-value {
  font-size: 0.95rem;
  color: var(--color-text);
}

.ws-payment-value strong {
  font-weight: 700;
}

/* Copy button */
.ws-copy-btn {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--color-text-tertiary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.ws-copy-btn:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text);
  border-color: var(--color-text-secondary);
}

/* Confidential note */
.ws-confidential-note {
  font-size: 0.82rem;
  color: var(--color-text-tertiary);
  text-align: center;
  margin: 8px 0 0;
  font-style: italic;
}

/* Badge transfer variant */
.ws-badge-transfer {
  background: var(--color-warning-bg);
  color: var(--color-warning-dark);
  border-color: var(--color-warning-light);
}

/* Warning text */
.ws-warning-text {
  font-size: 0.82rem;
  color: var(--color-danger-dark);
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-light);
  border-radius: 8px;
  padding: 12px 16px;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Confirmation section */
.ws-confirm-section {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.ws-confirm-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.ws-confirm-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  margin-bottom: 8px;
}

.ws-confirm-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.ws-confirm-hint {
  font-size: 0.78rem;
  color: var(--color-text-tertiary);
  line-height: 1.5;
  margin: 0 0 14px;
}

/* Checkbox */
.ws-confirm-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text);
  cursor: pointer;
  margin-bottom: 16px;
  line-height: 1.4;
}

.ws-confirm-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* Confirm button */
.ws-confirm-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 100px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.ws-confirm-btn:hover:not(:disabled) {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.ws-confirm-btn:disabled {
  background: var(--color-text-tertiary);
  opacity: 0.7;
  cursor: not-allowed;
}

/* ══════════════════════════════════════
   STATUS BADGES (inline)
   ══════════════════════════════════════ */

.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.02em;
}

.badge-CREATED {
  background: var(--color-info-bg);
  color: var(--color-info-dark);
}

.badge-ACCEPTED {
  background: var(--color-warning-bg);
  color: var(--color-warning-dark);
}

.badge-CONFIRMED {
  background: var(--color-primary-bg);
  color: var(--color-primary-dark);
}

.badge-RELEASED {
  background: var(--color-success-light);
  color: var(--color-success-dark);
}

.badge-COMPLETED {
  background: var(--color-success-light);
  color: var(--color-success-dark);
}

.badge-CANCELED {
  background: var(--color-danger-bg);
  color: var(--color-danger-dark);
}

.badge-MEDIATION {
  background: var(--color-mediation-bg);
  color: var(--color-mediation);
}

/* ══════════════════════════════════════
   CANCELED SCREEN — Specific Styles
   ══════════════════════════════════════ */

/* Badge canceled */
.ws-badge-canceled {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--color-danger-bg);
  color: var(--color-danger-dark);
  border: 1px solid var(--color-danger-light);
}

/* Retry button */
.ws-detail-retry-wrap {
  padding: 20px 24px;
  text-align: center;
}

.ws-retry-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 100px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.ws-retry-btn:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* Cancel reason */
.ws-cancel-reason {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-light);
}

.ws-cancel-reason-label {
  display: block;
  font-size: 0.72rem;
  color: var(--color-text-tertiary);
  margin-bottom: 4px;
  font-weight: 500;
}

.ws-cancel-reason-text {
  font-size: 0.88rem;
  color: var(--color-danger);
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

/* Confirmed badge */
.ws-badge-confirmed {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--color-info-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-info-light);
}

/* Released badge */
.ws-badge-released {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--color-success-bg);
  color: var(--color-success-dark);
  border: 1px solid var(--color-success-light);
}

/* Completed badge */
.ws-badge-completed {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--color-success-bg);
  color: var(--color-success-dark);
  border: 1px solid var(--color-success-light);
}

/* Action buttons wrap for confirmed screen */
.ws-detail-actions-wrap {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ws-release-btn {
  display: block;
  width: 100%;
  padding: 12px 24px;
  border: none;
  border-radius: 24px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  background: var(--color-success);
  color: var(--color-white);
}

.ws-release-btn:hover {
  background: var(--color-success-dark);
  transform: translateY(-1px);
}

.ws-mediation-btn {
  display: block;
  width: 100%;
  padding: 10px 24px;
  border: 1px solid var(--color-warning);
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--color-warning);
}

.ws-mediation-btn:hover {
  background: var(--color-warning-bg);
}

/* Escrow info for confirmed screen */
.ws-escrow-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  margin-top: 16px;
  background: var(--color-bg);
  border-radius: 12px;
  border: 1px solid var(--color-border-light);
}

.ws-escrow-icon {
  font-size: 1.5em;
  flex-shrink: 0;
}

.ws-escrow-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Mediation badge */
.ws-badge-mediation {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--color-warning-bg);
  color: var(--color-warning-dark);
  border: 1px solid var(--color-warning);
}

/* Cancel Requested badge */
.ws-badge-cancel-requested {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--color-warning-bg);
  color: var(--color-warning-dark);
  border: 1px solid var(--color-warning);
}

/* Cancel Requested badge in activity list */
.act-badge-cancel-requested {
  background: var(--color-warning-bg);
  color: var(--color-warning-dark);
  border: 1px solid var(--color-warning);
}

/* Cancel reason box (left column, CANCEL_REQUESTED screen) */
.ws-cancel-reason-box {
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-light);
  border-left: 4px solid var(--color-danger);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.ws-cancel-reason-box strong {
  font-size: 0.88rem;
  color: var(--color-danger-dark);
  display: block;
  margin-bottom: 6px;
}

.ws-cancel-reason-box p {
  font-size: 0.88rem;
  color: var(--color-danger);
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

/* Cancel request action buttons container */
.ws-cancel-request-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

/* Accept cancel button (green/success) */
.ws-accept-cancel-btn {
  display: block;
  width: 100%;
  padding: 12px 24px;
  border: none;
  border-radius: 24px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  background: var(--color-success);
  color: var(--color-white);
}

.ws-accept-cancel-btn:hover {
  background: var(--color-success-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

/* Reject cancel button (red/danger) */
.ws-reject-cancel-btn {
  display: block;
  width: 100%;
  padding: 12px 24px;
  border: 2px solid var(--color-danger);
  border-radius: 24px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--color-danger);
}

.ws-reject-cancel-btn:hover {
  background: var(--color-danger-bg);
  border-color: var(--color-danger-dark);
  color: var(--color-danger-dark);
}

/* Request cancel button (used in confirmed/accepted screens) */
.ws-request-cancel-btn {
  display: block;
  width: 100%;
  padding: 10px 24px;
  border: 2px solid var(--color-danger);
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  background: transparent;
  color: var(--color-danger);
}

.ws-request-cancel-btn:hover {
  background: var(--color-danger-bg);
  border-color: var(--color-danger-dark);
  color: var(--color-danger-dark);
}

/* Rating section */
.ws-rating-section {
  margin-top: 24px;
  padding-top: 20px;
}

.ws-rating-question {
  font-size: 0.92rem;
  color: var(--color-text);
  font-weight: 500;
  margin: 0 0 16px;
}

.ws-rating-stars {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ws-star-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ws-star-btn:hover {
  transform: scale(1.15);
}

.ws-star-btn svg {
  transition: fill 0.15s ease, stroke 0.15s ease;
}

.ws-star-btn.ws-star-highlight svg {
  transition: fill 0.15s ease, stroke 0.15s ease;
}

/* Rating label below stars */
.ws-rating-label {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  min-height: 1.2em;
  transition: color 0.2s ease;
  color: var(--color-text-tertiary);
}

/* Rating disabled state (already scored) */
.ws-rating-scored {
  pointer-events: none;
}

.ws-rating-scored .ws-star-btn {
  cursor: default;
}

.ws-rating-scored-msg {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin-top: 8px;
  font-style: italic;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 900px) {
  .operation-detail {
    grid-template-columns: 1fr;
  }

  .operation-sidebar {
    position: static;
  }

  .operation-stepper {
    padding: var(--space-3);
    gap: var(--space-1);
  }

  .stepper-step {
    min-width: 0;
  }

  .stepper-label {
    font-size: 0.6rem;
  }

  .amount-info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .ws-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 24px;
  }

  .ws-sidebar {
    order: -1;
  }

  .ws-step-label {
    font-size: 0.68rem;
  }
}

@media (max-width: 600px) {
  .ws-stepper {
    overflow-x: auto;
  }

  .ws-step-label {
    font-size: 0.62rem;
    padding: 6px 2px 8px;
    white-space: normal;
  }

  .ws-main {
    padding: 0 8px;
  }

  .ws-timer-badge {
    font-size: 0.95rem;
    padding: 6px 16px;
  }

  .ws-illustration svg {
    width: 180px;
    height: auto;
  }

  .ws-main-text {
    font-size: 0.88rem;
  }

  .ws-detail-texts p {
    font-size: 0.82rem;
  }

  .ws-detail-row {
    padding: 14px 16px;
  }

  .ws-detail-cancel-wrap {
    padding: 16px;
  }

  .ws-cancel-btn {
    padding: 10px 24px;
    font-size: 0.85rem;
  }

  .ws-id-card {
    padding: 16px;
  }

  .chat-messages {
    height: 250px;
  }

  .chat-message {
    max-width: 90%;
  }

  .amount-info-grid {
    grid-template-columns: 1fr;
  }

  .operation-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn {
    width: 100%;
  }
}

/* ══════════════════════════════════════
   CANCEL PAGE — Full Page View (Reference Design)
   2-column layout: left = reasons, right = details + buttons
   ══════════════════════════════════════ */

/* Back row */
.cpg-back-row {
  margin-bottom: 24px;
}

.cpg-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s ease;
}

.cpg-back-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.cpg-back-link svg {
  flex-shrink: 0;
}

/* Two-column layout */
.cpg-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

/* Left column */
.cpg-left {
  padding: 0;
}

.cpg-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 12px;
  line-height: 1.3;
}

.cpg-subtitle {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  margin: 0 0 28px;
  line-height: 1.5;
}

/* Radio reasons */
.cpg-reasons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}

.cpg-reason-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.4;
  transition: color 0.15s ease;
}

.cpg-reason-label:hover {
  color: var(--color-primary);
}

.cpg-reason-radio {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
  margin: 0;
}

.cpg-reason-text {
  font-size: 0.95rem;
}

/* Custom textarea */
.cpg-custom-wrap {
  margin-bottom: 0;
}

.cpg-custom-label {
  display: block;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  font-style: italic;
  margin-bottom: 10px;
}

.cpg-custom-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-bg);
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  box-sizing: border-box;
  min-height: 100px;
}

.cpg-custom-textarea:focus {
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.08);
}

.cpg-custom-textarea::placeholder {
  color: var(--color-text-disabled);
}

/* Right column */
.cpg-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Action buttons inside details card */
.cpg-actions {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cpg-cancel-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 100px;
  background: var(--color-danger);
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.cpg-cancel-btn:hover:not(:disabled) {
  background: var(--color-danger-dark);
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.35);
}

.cpg-cancel-btn:disabled {
  background: var(--color-text-tertiary);
  opacity: 0.7;
  cursor: not-allowed;
}

.cpg-nocancel-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  border: 2px solid var(--color-text);
  border-radius: 100px;
  background: transparent;
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.cpg-nocancel-btn:hover {
  background: var(--color-bg-secondary);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Responsive */
@media (max-width: 900px) {
  .cpg-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cpg-right {
    order: -1;
  }

  .cpg-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 600px) {
  .cpg-title {
    font-size: 1.1rem;
  }

  .cpg-reason-label {
    padding: 10px 0;
    font-size: 0.88rem;
  }

  .cpg-reason-radio {
    width: 18px;
    height: 18px;
  }

  .cpg-actions {
    padding: 16px;
  }

  .cpg-cancel-btn,
  .cpg-nocancel-btn {
    padding: 12px 20px;
    font-size: 0.88rem;
  }
}

/* ══════════════════════════════════════
   ACTIVITY LIST PAGE — New Design
   ══════════════════════════════════════ */

/* Page container */
.act-page {
  max-width: 1200px;
  margin: 0 auto;
}

/* Title */
.act-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-text);
  letter-spacing: 0.06em;
  margin: 0 0 28px;
  text-transform: uppercase;
}

/* ── Search Bar ── */
.act-search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.act-search-dropdown-wrap {
  position: relative;
}

.act-search-dropdown {
  appearance: none;
  -webkit-appearance: none;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-right: none;
  border-radius: 10px 0 0 10px;
  padding: 12px 40px 12px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  outline: none;
  min-width: 180px;
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color 0.2s ease;
}

.act-search-dropdown:focus {
  border-color: var(--color-primary);
}

.act-search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.act-search-input {
  width: 100%;
  border: 1.5px solid var(--color-border);
  border-left: none;
  border-right: none;
  padding: 12px 40px 12px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--color-text);
  outline: none;
  height: 48px;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

.act-search-input:focus {
  border-color: var(--color-primary);
}

.act-search-input::placeholder {
  color: var(--color-text-tertiary);
}

.act-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-tertiary);
  pointer-events: none;
}

.act-search-btn {
  height: 48px;
  padding: 0 24px;
  border: 1.5px solid var(--color-border);
  border-left: none;
  border-radius: 0 10px 10px 0;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.act-search-btn:hover {
  background: var(--color-bg-secondary);
}

.act-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border: none;
  background: none;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-left: auto;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.act-filter-btn:hover {
  color: var(--color-primary);
}

.act-filter-btn svg {
  flex-shrink: 0;
}

/* ── Pagination ── */
.act-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 8px 0;
}

.act-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  border: none;
  background: none;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-text-tertiary);
}

.act-page-btn:disabled,
.act-page-btn-disabled {
  color: var(--color-text-disabled);
  cursor: default;
}

.act-page-btn-active {
  color: var(--color-primary);
}

.act-page-btn-active:hover {
  color: var(--color-primary-dark);
}

.act-page-prev {
  margin-right: auto;
}

.act-page-next {
  margin-left: auto;
}

/* ── Table ── */
.act-table-wrap {
  overflow-x: auto;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  margin-bottom: 16px;
}

.act-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.act-table thead th {
  padding: 14px 20px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-bg);
  white-space: nowrap;
}

.act-table tbody tr {
  border-bottom: 1px solid var(--color-border-light);
  transition: background 0.15s ease;
}

.act-table tbody tr:last-child {
  border-bottom: none;
}

.act-row {
  cursor: pointer;
}

.act-row:hover {
  background: var(--color-bg-secondary);
}

.act-table td {
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--color-text);
  vertical-align: middle;
}

/* Cell: Transaction */
.act-cell-tx {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.act-tx-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.act-tx-icon-buy {
  background: var(--color-success-bg);
  color: var(--color-success-dark);
}

.act-tx-icon-buy svg {
  stroke: var(--color-success-dark);
}

.act-tx-icon-sell {
  background: var(--color-info-bg);
  color: var(--color-info-dark);
}

.act-tx-icon-sell svg {
  stroke: var(--color-info-dark);
}

.act-tx-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.act-tx-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.act-tx-pm {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Cell: Amount */
.act-cell-amount {
  white-space: nowrap;
}

.act-cell-amount strong {
  font-weight: 700;
  font-size: 0.9rem;
}

.act-local-amount {
  font-size: 0.78rem;
  color: var(--color-text-secondary);
}

/* Cell: Balance */
.act-cell-balance {
  white-space: nowrap;
}

.act-balance-plus {
  color: var(--color-success-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.act-balance-minus {
  color: var(--color-danger-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.act-balance-neutral {
  color: var(--color-text-tertiary);
  font-size: 1rem;
}

/* Cell: Peer */
.act-cell-peer {
  min-width: 160px;
}

.act-peer-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.act-peer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary-bg);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.act-peer-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.act-peer-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.act-peer-score {
  font-size: 0.72rem;
  color: var(--color-text-tertiary);
}

/* Cell: Date */
.act-cell-date {
  white-space: nowrap;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

/* Cell: Status */
.act-cell-status {
  white-space: nowrap;
}

.act-status-badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.act-badge-pending {
  background: var(--color-warning-bg);
  color: var(--color-warning-dark);
  border: 1px solid var(--color-warning-light);
}

.act-badge-accepted {
  background: var(--color-warning-light);
  color: var(--color-warning-dark);
  border: 1px solid var(--color-warning-light);
}

.act-badge-confirmed {
  background: var(--color-info-bg);
  color: var(--color-primary);
  border: 1px solid var(--color-info-light);
}

.act-badge-released {
  background: var(--color-success-bg);
  color: var(--color-success-dark);
  border: 1px solid var(--color-success-light);
}

.act-badge-completed {
  background: var(--color-success-bg);
  color: var(--color-success-dark);
  border: 1px solid var(--color-success-light);
}

.act-badge-canceled {
  background: var(--color-danger-bg);
  color: var(--color-danger-dark);
  border: 1px solid var(--color-danger-light);
}

.act-badge-mediation {
  background: var(--color-warning-bg);
  color: var(--color-warning-dark);
  border: 1px solid var(--color-warning);
}

/* Loading / Empty cells */
.act-loading-cell,
.act-empty-cell {
  text-align: center;
  padding: 48px 20px !important;
}

.act-loading-cell .spinner {
  margin: 0 auto;
}

/* ══════════════════════════════════════
   FILTER MODAL
   ══════════════════════════════════════ */

.act-filter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.act-filter-modal {
  background: var(--color-white);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.act-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
}

.act-filter-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

.act-filter-close {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  font-size: 1.5rem;
  color: var(--color-text-tertiary);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.act-filter-close:hover {
  background: var(--color-bg-secondary);
  color: var(--color-text);
}

.act-filter-body {
  padding: 0 28px 24px;
  flex: 1;
}

.act-filter-label {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  margin-bottom: 10px;
}

.act-filter-dates {
  display: flex;
  gap: 12px;
}

.act-filter-date-input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--color-white);
  transition: border-color 0.2s ease;
}

.act-filter-date-input-wrap:focus-within {
  border-color: var(--color-primary);
}

.act-filter-date-input-wrap svg {
  flex-shrink: 0;
  color: var(--color-text-tertiary);
}

.act-filter-date-input {
  border: none;
  outline: none;
  font-size: 0.88rem;
  font-family: inherit;
  color: var(--color-text);
  width: 100%;
  background: transparent;
}

.act-filter-date-input::placeholder {
  color: var(--color-text-tertiary);
}

.act-filter-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--color-border);
  border-radius: 10px;
  padding: 12px 40px 12px 16px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease;
}

.act-filter-select:focus {
  border-color: var(--color-primary);
}

/* Toggle switch */
.act-filter-toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.act-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.act-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.act-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-border-dark);
  border-radius: 24px;
  transition: 0.3s;
}

.act-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: white;
  border-radius: 50%;
  transition: 0.3s;
}

.act-toggle input:checked + .act-toggle-slider {
  background: var(--color-primary);
}

.act-toggle input:checked + .act-toggle-slider::before {
  transform: translateX(20px);
}

.act-filter-toggle-label {
  font-size: 0.9rem;
  color: var(--color-text);
}

/* Payment method link */
.act-filter-pm-link {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 8px;
}

.act-filter-pm-link:hover {
  text-decoration: underline;
}

.act-filter-pm-empty {
  font-size: 0.82rem;
  color: var(--color-text-tertiary);
  margin: 0;
}

/* Footer */
.act-filter-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--color-border-light);
  gap: 16px;
}

.act-filter-reset-btn {
  padding: 12px 24px;
  border: none;
  background: none;
  color: var(--color-primary);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.act-filter-reset-btn:hover {
  color: var(--color-primary-dark);
}

.act-filter-apply-btn {
  padding: 14px 36px;
  border: none;
  border-radius: 100px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.act-filter-apply-btn:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* ══════════════════════════════════════
   ACTIVITY LIST — RESPONSIVE
   ══════════════════════════════════════ */

@media (max-width: 900px) {
  .act-search-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .act-search-dropdown {
    border-radius: 10px;
    border-right: 1.5px solid var(--color-border);
    min-width: 100%;
  }

  .act-search-input-wrap {
    min-width: 100%;
  }

  .act-search-input {
    border-left: 1.5px solid var(--color-border);
    border-right: 1.5px solid var(--color-border);
    border-radius: 10px;
  }

  .act-search-btn {
    border-left: 1.5px solid var(--color-border);
    border-radius: 10px;
    flex: 1;
  }

  .act-filter-btn {
    margin-left: 0;
  }

  .act-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .act-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
  }

  .act-table thead th {
    padding: 10px 12px;
    font-size: 0.65rem;
  }

  .act-table td {
    padding: 12px;
    font-size: 0.82rem;
  }

  .act-filter-modal {
    max-width: 100%;
    border-radius: 12px;
  }

  .act-filter-dates {
    flex-direction: column;
  }

  .act-pagination {
    flex-wrap: wrap;
    gap: 8px;
  }
}
