/* Reisekasse Points – Frontend (High-End) */

:root{
  --ap-bg: rgba(255,255,255,.72);
  --ap-bg-2: rgba(255,255,255,.55);
  --ap-border: rgba(20,20,20,.10);
  --ap-shadow: 0 18px 45px rgba(0,0,0,.10);
  --ap-shadow-soft: 0 10px 30px rgba(0,0,0,.08);
  --ap-radius: 18px;
  --ap-radius-lg: 24px;
  --ap-text: rgba(18,18,18,.92);
  --ap-muted: rgba(18,18,18,.65);
  --ap-muted-2: rgba(18,18,18,.50);
  --ap-good: rgba(16, 172, 96, 1);
  --ap-warn: rgba(245, 159, 0, 1);
  --ap-bad: rgba(230, 73, 128, 1);
  --ap-ink: rgba(12, 12, 12, 1);
}

.ap-points-card,
.ap-payout-wrapper{
  border-radius: var(--ap-radius-lg) !important;
  border: 1px solid var(--ap-border) !important;
  background: var(--ap-bg) !important;
  box-shadow: var(--ap-shadow) !important;
  overflow: hidden;
  position: relative;
}

.ap-points-card:before{
  content: '';
  position: absolute;
  inset: -2px;
  pointer-events: none;
  background: radial-gradient(1200px 600px at 0% 0%, rgba(255, 210, 128, .22), transparent 55%),
              radial-gradient(900px 500px at 100% 0%, rgba(72, 149, 239, .18), transparent 60%),
              radial-gradient(900px 500px at 30% 100%, rgba(16, 172, 96, .12), transparent 65%);
  filter: blur(0px);
  opacity: .9;
}

.ap-points-card .yz-card-body,
.ap-points-card .yz-card-header{
  position: relative;
}

.ap-points-icon{ display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; background: var(--ap-bg-2); border: 1px solid var(--ap-border); }

.ap-points-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

@media (max-width: 760px){
  .ap-points-grid{ grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

.ap-points-stat{
  padding: 14px 14px 12px;
  border-radius: var(--ap-radius);
  border: 1px solid var(--ap-border);
  background: rgba(255,255,255,.62);
  box-shadow: var(--ap-shadow-soft);
  backdrop-filter: blur(8px);
}

.ap-points-label{ font-size: 12px; letter-spacing: .04em; text-transform: uppercase; opacity: .75; color: var(--ap-muted); }
.ap-points-value{ font-size: 26px; font-weight: 800; margin-top: 2px; color: var(--ap-ink); line-height: 1.1; }
.ap-points-sub{ margin-top: 4px; font-size: 13px; color: var(--ap-muted); }

.ap-points-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ap-points-btn{
  border-radius: 999px !important;
  padding: 10px 14px !important;
  box-shadow: var(--ap-shadow-soft) !important;
}

.ap-points-note{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--ap-border);
  background: rgba(255,255,255,.60);
  color: var(--ap-muted);
  box-shadow: var(--ap-shadow-soft);
}

.ap-filter{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.ap-filter-chips{ justify-content: space-between; }

.ap-chipgroup{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}

.ap-chipgroup.is-scroll{
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  max-width: 100%;
}

.ap-chip{
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--ap-border);
  background: rgba(255,255,255,.78);
  box-shadow: var(--ap-shadow-soft);
  color: var(--ap-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.ap-chip:hover{ transform: translateY(-1px); }
.ap-chip.is-active{
  color: var(--ap-ink);
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
}

.ap-export{ margin-left: auto; display:flex; gap:8px; }
.ap-export-link{
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--ap-border);
  background: rgba(255,255,255,.78);
  box-shadow: var(--ap-shadow-soft);
  text-decoration: none !important;
  color: var(--ap-muted);
  font-weight: 800;
}
.ap-export-link:hover{ color: var(--ap-ink); }

.ap-filter select{
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid var(--ap-border);
  background: rgba(255,255,255,.78);
  box-shadow: var(--ap-shadow-soft);
  outline: none;
}

.ap-progressbar{
  height: 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  margin-top: 10px;
}
.ap-progressfill{
  display:block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,210,128,.95), rgba(16,172,96,.95));
}

.ap-chart-shell{
  margin-top: 10px;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius);
  padding: 12px;
  background: rgba(255,255,255,.62);
  box-shadow: var(--ap-shadow-soft);
}

.ap-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ap-border);
  background: rgba(255,255,255,.65);
  font-size: 12px;
  color: var(--ap-muted);
}

.ap-points-table{
  margin-top: 14px;
  border-radius: var(--ap-radius);
  overflow: hidden;
  border: 1px solid var(--ap-border);
  box-shadow: var(--ap-shadow-soft);
}

.ap-points-table table{ width: 100%; border-collapse: collapse; }
.ap-points-table th{ font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ap-muted); background: rgba(255,255,255,.85); }
.ap-points-table th, .ap-points-table td{ padding: 12px 12px; border-bottom: 1px solid rgba(0,0,0,.06); }
.ap-points-table tr:last-child td{ border-bottom: none; }

.ap-pts{
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  display:inline-block;
  border: 1px solid var(--ap-border);
  background: rgba(255,255,255,.75);
}
.ap-pts.ap-pos{ color: var(--ap-good); }
.ap-pts.ap-neg{ color: var(--ap-bad); }

.ap-msg-success{
  border-radius: var(--ap-radius);
  padding: 12px 14px;
  border: 1px solid rgba(16, 172, 96, .25);
  background: rgba(16, 172, 96, .10);
  color: rgba(16, 172, 96, 1);
  font-weight: 700;
  margin-bottom: 14px;
}

/* Auszahlung */
.ap-stats-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 760px){
  .ap-stats-grid{ grid-template-columns: 1fr; }
}

.ap-stat-card{
  padding: 14px;
  border-radius: var(--ap-radius);
  border: 1px solid var(--ap-border);
  background: rgba(255,255,255,.62);
  box-shadow: var(--ap-shadow-soft);
}
.ap-stat-icon{ font-size: 22px; }
.ap-stat-title{ font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ap-muted); margin-top: 6px; }
.ap-stat-value{ font-size: 28px; font-weight: 900; color: var(--ap-ink); margin-top: 2px; }
.ap-stat-sub{ font-size: 13px; color: var(--ap-muted); margin-top: 4px; }

.ap-section-title{ font-size: 14px; font-weight: 900; letter-spacing: .02em; color: var(--ap-ink); margin-bottom: 10px; }

.ap-current-payout,
.ap-ready-box,
.ap-not-enough{
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--ap-radius);
  border: 1px solid var(--ap-border);
  background: rgba(255,255,255,.62);
  box-shadow: var(--ap-shadow-soft);
}

.ap-row{ display:flex; justify-content:space-between; gap: 14px; padding: 6px 0; border-bottom: 1px dashed rgba(0,0,0,.08); }
.ap-row:last-child{ border-bottom: none; }

.ap-ready-icon, .ap-not-enough-icon{ font-size: 26px; margin-bottom: 8px; }

.ap-payout-form button{
  margin-top: 12px !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  box-shadow: var(--ap-shadow-soft) !important;
}

.ap-status-pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ap-border);
  background: rgba(255,255,255,.70);
  font-weight: 800;
  font-size: 12px;
}
.ap-status-pill.ap-pending{ color: var(--ap-warn); }
.ap-status-pill.ap-approved{ color: rgba(72, 149, 239, 1); }
.ap-status-pill.ap-paid{ color: var(--ap-good); }
.ap-status-pill.ap-rejected{ color: var(--ap-bad); }

/* Loading shimmer */
.ap-is-loading{ position: relative; }
.ap-is-loading:after{
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transform: translateX(-100%);
  animation: apShimmer 1.1s linear infinite;
  border-radius: inherit;
  pointer-events: none;
}
@keyframes apShimmer{ to { transform: translateX(100%); } }

/* Insights (Highlights) */
.ap-insights{
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--ap-radius);
  border: 1px solid var(--ap-border);
  background: rgba(255,255,255,.62);
  box-shadow: var(--ap-shadow-soft);
}
.ap-mini-sub{ font-size: 12px; color: var(--ap-muted); margin-top: 2px; }

.ap-topcats{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 10px;
}
@media (max-width: 1100px){ .ap-topcats{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px){ .ap-topcats{ grid-template-columns: 1fr; } }

.ap-topcat{
  border-radius: 16px;
  border: 1px solid var(--ap-border);
  background: rgba(255,255,255,.70);
  padding: 12px;
}
.ap-topcat-title{ font-weight: 900; color: var(--ap-ink); font-size: 13px; }
.ap-topcat-meta{ display:flex; gap:8px; flex-wrap:wrap; margin-top: 8px; }

.ap-pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ap-border);
  background: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 800;
  color: var(--ap-ink);
}
.ap-pill.is-soft{ font-weight: 700; color: var(--ap-muted); }

.ap-bars{ margin-top: 14px; }
.ap-bar-row{ display:grid; grid-template-columns: 1fr 2.2fr auto; gap: 10px; align-items:center; padding: 7px 0; }
.ap-bar-label{ font-size: 12px; color: var(--ap-muted); }
.ap-bar-track{ height: 10px; border-radius: 999px; border:1px solid var(--ap-border); background: rgba(255,255,255,.70); overflow:hidden; }
.ap-bar-fill{ display:block; height: 100%; border-radius: 999px; background: rgba(72, 149, 239, .55); box-shadow: 0 6px 18px rgba(72, 149, 239, .18); }
.ap-bar-val{ font-weight: 900; font-size: 12px; color: var(--ap-ink); }

/* Auszahlung – Timeline & Status */
.ap-status-badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--ap-border);
  background: rgba(255,255,255,.74);
  font-weight: 900;
  font-size: 12px;
}
.ap-status-badge.st-requested,
.ap-status-badge.st-pending{ color: var(--ap-warn); }
.ap-status-badge.st-approved{ color: rgba(72, 149, 239, 1); }
.ap-status-badge.st-paid{ color: var(--ap-good); }
.ap-status-badge.st-rejected{ color: var(--ap-bad); }

.ap-timeline{ margin-top: 12px; position: relative; padding-left: 18px; }
.ap-timeline:before{
  content:'';
  position:absolute;
  left: 6px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: rgba(0,0,0,.08);
  border-radius: 2px;
}
.ap-timeline-item{ position: relative; padding: 10px 0 10px 10px; }
.ap-timeline-dot{
  position:absolute;
  left: -1px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--ap-border);
  background: rgba(255,255,255,.90);
  box-shadow: var(--ap-shadow-soft);
}
.ap-timeline-item.st-paid .ap-timeline-dot{ background: rgba(16, 172, 96, .18); border-color: rgba(16, 172, 96, .35); }
.ap-timeline-item.st-rejected .ap-timeline-dot{ background: rgba(230, 73, 128, .14); border-color: rgba(230, 73, 128, .35); }
.ap-timeline-item.st-requested .ap-timeline-dot,
.ap-timeline-item.st-pending .ap-timeline-dot{ background: rgba(245, 159, 0, .14); border-color: rgba(245, 159, 0, .35); }
.ap-timeline-item.st-approved .ap-timeline-dot{ background: rgba(72, 149, 239, .14); border-color: rgba(72, 149, 239, .35); }

.ap-timeline-content{
  border: 1px solid var(--ap-border);
  border-radius: 16px;
  background: rgba(255,255,255,.70);
  padding: 12px;
  box-shadow: var(--ap-shadow-soft);
}
.ap-timeline-top{ display:flex; justify-content:space-between; gap:10px; align-items:center; }
.ap-timeline-date{ font-weight: 800; font-size: 12px; color: var(--ap-muted); }
.ap-timeline-meta{ margin-top: 8px; display:flex; gap:10px; flex-wrap:wrap; color: var(--ap-ink); font-size: 13px; }


