/* Tipster Stats All - List view with cards */
.tipster-all-wrapper {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    sans-serif;
  color: #0f172a;
}

.tipster-all-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
}

.tipster-card {
  border-radius: 24px;
  padding: 18px 18px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06),
    0 10px 10px rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: radial-gradient(
      circle at 0 0,
      rgba(59, 130, 246, 0.06),
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(16, 185, 129, 0.05),
      transparent 55%
    ),
    #ffffff;
  backdrop-filter: blur(16px);
}

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

/* Mobile: Stack header vertically with username at top-left */
@media (max-width: 480px) {
  .tipster-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tipster-card-header-left {
    width: 100%;
    order: 1;
  }

  .tipster-card-profile-btn {
    align-self: flex-end;
    order: 2;
  }
}

.tipster-card-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.tipster-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #e5e7eb;
  flex-shrink: 0;
}

.tipster-card-avatar img,
.tipster-card-avatar .tipster-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.tipster-card-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.tipster-card-username {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
 /* text-transform: uppercase; */
}

.tipster-card-subtitle {
  font-size: 12px;
  color: #6b7280;
}

.tipster-card-subtitle::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  margin-right: 6px;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  animation: tipster-pulse 1.8s ease-out infinite;
}

@keyframes tipster-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
  }

  70% {
    transform: scale(1.3);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

/* Minimal profile button top-right */
.tipster-card-profile-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: rgba(248, 250, 252, 0.9);
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
 /* text-transform: uppercase; */
  text-decoration: none !important;
  box-shadow: none;
  transition: background 0.14s ease-out, border-color 0.14s ease-out,
    color 0.14s ease-out;
  white-space: nowrap;
}

.tipster-card-profile-btn:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.tipster-card-profile-btn:active {
  background: #dbeafe;
  border-color: #60a5fa;
}

.tipster-card-topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
}

.tipster-card-topline-label {
 /* text-transform: uppercase; */
  letter-spacing: 0.14em;
  color: #6b7280;
}

.tipster-card-topline-value {
  color: #9ca3af;
}

.tipster-card-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

/* Tablet: 2 columns */
@media (max-width: 768px) {
  .tipster-card-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 column - stack vertically */
@media (max-width: 480px) {
  .tipster-card-stats-row {
    grid-template-columns: 1fr;
  }
}

.tipster-pill {
  border-radius: 18px;
  padding: 12px 10px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  background: linear-gradient(
    135deg,
    rgba(248, 250, 252, 1),
    rgba(255, 255, 255, 1)
  );
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out,
    border-color 0.16s ease-out, background 0.16s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tipster-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  border-color: rgba(148, 163, 184, 0.9);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 1),
    rgba(248, 250, 252, 1)
  );
}

.tipster-pill-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.tipster-pill-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.tipster-pill-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: #e5e7eb;
}

.tipster-pill-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #6b7280;
  text-align: center;
}

.tipster-pill-tag {
  display: none;
}

.tipster-pill-main-value {
  font-size: 28px;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin: 6px 0;
}

.tipster-pill-subtext {
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
  line-height: 1.3;
}

.tipster-pill--wins .tipster-pill-icon {
  background: #dcfce7;
  color: #15803d;
}

.tipster-pill--losses .tipster-pill-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.tipster-pill--pending .tipster-pill-icon {
  background: #fef9c3;
  color: #92400e;
}

.tipster-pill--total .tipster-pill-icon {
  background: #e0f2fe;
  color: #1d4ed8;
}

.tipster-pill--wins .tipster-pill-main-value {
  color: #16a34a;
}

.tipster-pill--losses .tipster-pill-main-value {
  color: #b91c1c;
}

.tipster-pill--pending .tipster-pill-main-value {
  color: #d97706;
}

/* Profit / Yield / Hit Rate as button-pills */
.tipster-mini-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 4px;
}

.tipster-mini-metric {
  flex: 1 1 0;
  border-radius: 999px;
  border: 1px solid rgba(209, 213, 219, 0.95);
  background: #f9fafb;
  padding: 6px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Mobile: Stack mini metrics vertically */
@media (max-width: 480px) {
  .tipster-mini-row {
    flex-direction: column;
  }

  .tipster-mini-metric {
    flex: 1 1 auto;
    width: 100%;
  }
}

.tipster-mini-value {
  font-size: 13px;
  font-weight: 600;
}

.tipster-mini-label {
  font-size: 10px;
 /* text-transform: uppercase; */
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.tipster-prof-positive {
  color: #16a34a;
}

.tipster-prof-negative {
  color: #dc2626;
}

.tipster-prof-neutral {
  color: #4b5563;
}

/* LAST 10 RUN */
.tipster-last-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 11px;
  color: #6b7280;
}

.tipster-last-label {
  font-size: 10px;
 /* text-transform: uppercase; */
  letter-spacing: 0.12em;
  color: #9ca3af;
}

.tipster-last-icons {
  font-size: 13px;
  letter-spacing: 2px;
  white-space: nowrap;
}

.tipster-last-summary {
  font-size: 11px;
  color: #9ca3af;
  flex: 1 1 100%;
}

/* =================================================================
   SVG Icon Enhancements - Professional Design
   ================================================================= */

/* Icon containers - smooth transitions */
.tipster-pill-icon svg,
.tipster-pill-sm svg,
.tipster-mini-icon svg {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hover effects for pill icons */
.tipster-pill:hover .tipster-pill-icon svg {
  transform: scale(1.1) rotate(5deg);
}

/* Mini icon styling for last 10 tips */
.tipster-mini-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin: 0 1px;
}

.tipster-mini-icon svg {
  width: 14px;
  height: 14px;
}

.tipster-mini-icon--won svg {
  color: #15803d;
  animation: tipster-success-bounce 0.6s ease;
}

.tipster-mini-icon--lost svg {
  color: #b91c1c;
  opacity: 0.9;
}

.tipster-mini-icon--pending svg {
  color: #d97706;
  opacity: 0.7;
}

@keyframes tipster-success-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

/* Color adjustments for different states */
.tipster-pill--wins svg {
  color: #15803d;
}

.tipster-pill--losses svg {
  color: #b91c1c;
}

.tipster-pill--pending svg {
  color: #d97706;
}

.tipster-pill--total svg {
  color: #1d4ed8;
}

/* Ensure proper alignment in flex containers */
.tipster-pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Smooth icon loading */
svg {
  opacity: 1;
  animation: tipster-icon-fade-in 0.3s ease;
}

@keyframes tipster-icon-fade-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* Last 10 tips icons container */
.tipster-last-icons {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}
