/* Shop GirizzZZzz v2 — ProductiveApp */

.shop-panel { padding: 4px 0; }

/* Legendary coin pulse animation */
@keyframes giriz-pulse {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(192,132,252,0.4)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 12px rgba(245,158,11,0.6)); transform: scale(1.05); }
}

/* ── Wallet ── */
.shop-wallet {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(108,71,255,0.06));
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 20px;
    margin-bottom: 16px;
}
.shop-wallet-main {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}
.shop-wallet-coin { filter: drop-shadow(0 2px 8px rgba(245,158,11,0.3)); }
.shop-wallet-balance { font-size: 2rem; font-weight: 800; color: #f59e0b; line-height: 1; }
.shop-wallet-label { font-size: 0.78rem; color: #8888aa; font-weight: 600; letter-spacing: 0.5px; }
.shop-wallet-info { flex: 1; }
.shop-wallet-stats {
    display: flex; gap: 20px; align-items: center;
    padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.05);
}
.shop-wallet-stat { display: flex; align-items: center; gap: 6px; }
.shop-wallet-stat-lbl { font-size: 0.65rem; color: #8888aa; }

.shop-daily-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 20px; margin-left: auto;
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.08));
    border: 1px dashed rgba(245,158,11,0.3); border-radius: 12px;
    color: #f59e0b; font-weight: 700; font-size: 0.82rem;
    cursor: pointer; transition: transform 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, opacity 0.2s ease-out; white-space: nowrap;
}
.shop-daily-btn:hover:not(:disabled) { background: rgba(245,158,11,0.2); transform: translateY(-1px); }
.shop-daily-btn:disabled { opacity: 0.6; cursor: default; }

/* ── Sub-tabs ── */
.shop-subtabs {
    display: flex; gap: 6px; margin-bottom: 16px;
    padding: 4px; background: rgba(255,255,255,0.02);
    border-radius: 14px; border: 1px solid rgba(255,255,255,0.05);
}
.shop-subtab {
    flex: 1; padding: 10px 16px; border: none; border-radius: 10px;
    background: transparent; color: #8888aa; font-size: 0.82rem;
    font-weight: 600; cursor: pointer; transition: transform 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, opacity 0.2s ease-out;
}
.shop-subtab:hover { color: #e5e5f0; background: rgba(255,255,255,0.03); }
.shop-subtab.active {
    background: linear-gradient(135deg, rgba(108,71,255,0.15), rgba(245,158,11,0.08));
    color: #e5e5f0; box-shadow: 0 2px 8px rgba(108,71,255,0.15);
}
.shop-subtab-panel { display: none; }
.shop-subtab-panel.active { display: block; }

/* ── Categories ── */
.shop-category { margin-bottom: 20px; }
.shop-category-header { margin-bottom: 10px; }
.shop-category-title { font-size: 1rem; font-weight: 700; color: #e5e5f0; margin: 0 0 2px; }
.shop-category-desc { font-size: 0.72rem; color: #8888aa; }

/* ── Products Grid ── */
.shop-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 10px; }
.shop-products-grid--packs { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.shop-product {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 16px 12px; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06); border-radius: 16px;
    text-align: center; transition: border-color 0.2s, transform 0.15s;
}
.shop-product:hover { border-color: rgba(108,71,255,0.25); transform: translateY(-2px); }
.shop-product--pack {
    background: linear-gradient(135deg, rgba(108,71,255,0.06), rgba(245,158,11,0.04));
    border-color: rgba(108,71,255,0.12);
}
.shop-product-icon { font-size: 2rem; }
.shop-product-name { font-size: 0.85rem; font-weight: 700; color: #e5e5f0; }
.shop-product-desc { font-size: 0.68rem; color: #8888aa; line-height: 1.3; }
.shop-product-price { font-size: 0.88rem; font-weight: 800; color: #f59e0b; margin: 4px 0; display: flex; align-items: center; gap: 4px; }

/* Buy buttons */
.shop-buy-btn {
    width: 100%; padding: 8px 14px; border: none; border-radius: 10px;
    font-size: 0.82rem; font-weight: 700; cursor: pointer; transition: transform 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, opacity 0.2s ease-out;
}
.shop-buy-btn--girizzz {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(245,158,11,0.08));
    color: #f59e0b; border: 1px solid rgba(245,158,11,0.2);
}
.shop-buy-btn--girizzz:hover:not(:disabled) { background: rgba(245,158,11,0.25); }
.shop-buy-btn--stripe { background: linear-gradient(135deg, #6c47ff, #a78bfa); color: #fff; }
.shop-buy-btn--stripe:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(108,71,255,0.3); }
.shop-buy-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Transactions ── */
.shop-transactions { display: flex; flex-direction: column; gap: 4px; }
.shop-tx-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 12px; background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04); border-radius: 10px;
}
.shop-tx-reason { font-size: 0.78rem; font-weight: 600; color: #e5e5f0; }
.shop-tx-date { font-size: 0.65rem; color: #8888aa; }
.shop-tx-amount { font-size: 0.88rem; font-weight: 800; white-space: nowrap; display: flex; align-items: center; gap: 4px; }

/* ═══════ MISSIONS / ARBRE A SUCCES ═══════ */

.shop-tree-header {
    text-align: center; padding: 20px; margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(108,71,255,0.06));
    border: 1px solid rgba(34,197,94,0.12); border-radius: 20px;
}
.shop-tree-title { font-size: 1.3rem; font-weight: 800; color: #e5e5f0; margin-bottom: 4px; }
.shop-tree-subtitle { font-size: 0.82rem; color: #8888aa; margin-bottom: 10px; }
.shop-tree-progress { display: flex; justify-content: center; gap: 20px; }
.shop-tree-stat {
    font-size: 0.82rem; font-weight: 600; color: #a78bfa;
    display: flex; align-items: center; gap: 4px;
}

/* Branch */
.shop-branch { margin-bottom: 16px; }
.shop-branch-header {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-radius: 14px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--branch-color, #8888aa) 8%, transparent), rgba(255,255,255,0.01));
    border: 1px solid color-mix(in srgb, var(--branch-color, #8888aa) 15%, transparent);
    margin-bottom: 8px;
}
.shop-branch-icon { font-size: 1.6rem; }
.shop-branch-info { flex: 1; }
.shop-branch-title { font-size: 0.95rem; font-weight: 700; color: #e5e5f0; }
.shop-branch-desc { font-size: 0.72rem; color: #8888aa; }
.shop-branch-count {
    font-size: 0.82rem; font-weight: 700; color: var(--branch-color, #8888aa);
    padding: 4px 12px; border-radius: 20px;
    background: color-mix(in srgb, var(--branch-color, #8888aa) 10%, transparent);
}

/* Mission row */
.shop-missions-list { display: flex; flex-direction: column; gap: 4px; padding-left: 20px; border-left: 2px solid rgba(255,255,255,0.05); margin-left: 20px; }
.shop-mission {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 12px;
    background: rgba(255,255,255,0.015);
    border: 1px solid rgba(255,255,255,0.04);
    transition: border-color 0.2s;
}
.shop-mission:hover { border-color: rgba(108,71,255,0.15); }
.shop-mission--done { background: rgba(34,197,94,0.04); border-color: rgba(34,197,94,0.12); }
.shop-mission--pending { background: rgba(245,158,11,0.04); border-color: rgba(245,158,11,0.12); }

.shop-mission-left { text-align: center; min-width: 36px; }
.shop-mission-icon { font-size: 1.3rem; }
.shop-mission-tier { font-size: 0.7rem; margin-top: 2px; }

.shop-mission-center { flex: 1; min-width: 0; }
.shop-mission-title { font-size: 0.85rem; font-weight: 700; color: #e5e5f0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.shop-mission-desc { font-size: 0.72rem; color: #8888aa; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-mission-reward { font-size: 0.78rem; color: #f59e0b; font-weight: 600; margin-top: 3px; display: flex; align-items: center; gap: 4px; }

.shop-mission-badge {
    font-size: 0.6rem; padding: 2px 8px; border-radius: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.shop-mission-badge--done { background: rgba(34,197,94,0.15); color: #22c55e; }
.shop-mission-badge--pending { background: rgba(245,158,11,0.15); color: #f59e0b; }
.shop-mission-badge--locked { background: rgba(136,136,170,0.1); color: #8888aa; }

.shop-mission-right { min-width: 80px; text-align: right; }
.shop-mission-btn {
    padding: 6px 14px; border: none; border-radius: 8px;
    font-size: 0.75rem; font-weight: 700; cursor: pointer;
    background: linear-gradient(135deg, #6c47ff, #a78bfa);
    color: #fff; transition: transform 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, opacity 0.2s ease-out;
}
.shop-mission-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(108,71,255,0.3); }
.shop-mission-btn--proof { background: linear-gradient(135deg, rgba(245,158,11,0.2), rgba(245,158,11,0.1)); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }

/* ═══════ REFERRAL ═══════ */

.shop-referral { max-width: 500px; margin: 0 auto; }
.shop-referral-header { text-align: center; margin-bottom: 20px; }
.shop-referral-header h3 { font-size: 1.2rem; font-weight: 700; color: #e5e5f0; margin: 8px 0; }

.shop-referral-code-box, .shop-referral-link-box {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; margin-bottom: 12px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
}
.shop-referral-code-label { font-size: 0.72rem; color: #8888aa; min-width: 80px; }
.shop-referral-code {
    flex: 1; font-size: 1.2rem; font-weight: 800; color: #f59e0b;
    letter-spacing: 2px; font-family: monospace;
}
.shop-referral-link {
    flex: 1; font-size: 0.75rem; color: #a78bfa; word-break: break-all;
    font-family: monospace;
}
.shop-referral-copy {
    padding: 6px 14px; border: 1px solid rgba(108,71,255,0.3); border-radius: 8px;
    background: rgba(108,71,255,0.1); color: #a78bfa;
    font-size: 0.78rem; font-weight: 600; cursor: pointer; transition: transform 0.2s ease-out, background 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, opacity 0.2s ease-out;
}
.shop-referral-copy:hover { background: rgba(108,71,255,0.2); }

.shop-referral-stats { display: flex; gap: 12px; margin-top: 16px; }
.shop-referral-stat-card {
    flex: 1; text-align: center; padding: 14px;
    background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
}
.shop-referral-stat-val { font-size: 1.3rem; font-weight: 800; color: #e5e5f0; }
.shop-referral-stat-lbl { font-size: 0.7rem; color: #8888aa; margin-top: 2px; display: flex; align-items: center; justify-content: center; gap: 4px; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .shop-wallet-main { flex-wrap: wrap; }
    .shop-wallet-stats { flex-wrap: wrap; }
    .shop-products-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-subtabs { flex-wrap: wrap; }
    .shop-mission { flex-wrap: wrap; }
    .shop-missions-list { margin-left: 10px; padding-left: 12px; }
    .shop-referral-code-box { flex-direction: column; align-items: stretch; }
    .shop-referral-link-box { flex-direction: column; align-items: stretch; }
}

/* ═══════ FOREST BANNER ═══════ */

@keyframes tree-sway {
  0%,100% { transform: rotate(-3deg) scale(1); }
  50% { transform: rotate(3deg) scale(1.06); }
}
@keyframes tree-appear {
  from { opacity: 0; transform: translateY(10px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.shop-forest-banner {
  margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(34,197,94,0.09) 0%, rgba(16,185,129,0.05) 50%, rgba(20,184,166,0.07) 100%);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 20px;
  padding: 18px 20px 14px;
  position: relative;
  overflow: hidden;
}
.shop-forest-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(34,197,94,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.shop-forest-trees {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 12px;
}
.shop-tree-anim {
  font-size: 2rem;
  display: inline-block;
  animation: tree-sway 3s ease-in-out infinite, tree-appear 0.6s ease-out both;
  animation-delay: var(--d, 0s), var(--d, 0s);
  transform-origin: bottom center;
  filter: drop-shadow(0 2px 6px rgba(34,197,94,0.3));
}

.shop-forest-msg {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.shop-forest-emoji { font-size: 2.4rem; flex-shrink: 0; margin-top: 2px; }
.shop-forest-title {
  font-size: 1rem;
  font-weight: 800;
  color: #e5e5f0;
  margin-bottom: 4px;
}
.shop-forest-sub {
  font-size: 0.78rem;
  color: #a0c4a0;
  line-height: 1.45;
}

.shop-forest-impact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(34,197,94,0.06);
  border-radius: 12px;
  border: 1px solid rgba(34,197,94,0.1);
}
.shop-forest-stat { text-align: center; }
.shop-forest-num {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: #22c55e;
}
.shop-forest-lbl {
  font-size: 0.65rem;
  color: #8888aa;
  white-space: nowrap;
}
.shop-forest-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(34,197,94,0.3);
}

/* ═══════ CUSTOM SELECTOR ═══════ */

.shop-custom-selector {
  margin-bottom: 16px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(108,71,255,0.08), rgba(245,158,11,0.05));
  border: 1px solid rgba(108,71,255,0.2);
  border-radius: 20px;
}

.shop-custom-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.shop-custom-icon { font-size: 1.8rem; }
.shop-custom-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e5e5f0;
}
.shop-custom-hint { font-size: 0.72rem; color: #8888aa; margin-top: 2px; }
.shop-custom-trees {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.2);
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}

.shop-custom-slider-row { margin-bottom: 14px; }
.shop-custom-range {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 4px;
  background: linear-gradient(to right, #6c47ff 0%, #a78bfa 100%);
  outline: none;
  cursor: pointer;
}
.shop-custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c47ff, #a78bfa);
  box-shadow: 0 2px 10px rgba(108,71,255,0.4);
  cursor: grab;
  border: 2px solid rgba(255,255,255,0.2);
  transition: transform 0.15s, box-shadow 0.15s;
}
.shop-custom-range::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.2); }
.shop-custom-range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c47ff, #a78bfa);
  box-shadow: 0 2px 10px rgba(108,71,255,0.4);
  cursor: grab;
  border: 2px solid rgba(255,255,255,0.2);
}

.shop-custom-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.shop-custom-input-group {
  flex: 1;
  text-align: center;
}
.shop-custom-input-group label {
  display: block;
  font-size: 0.65rem;
  color: #8888aa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.shop-custom-number {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(108,71,255,0.25);
  border-radius: 12px;
  color: #f59e0b;
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.shop-custom-number:focus {
  border-color: rgba(108,71,255,0.5);
  box-shadow: 0 0 0 3px rgba(108,71,255,0.12);
}
.shop-custom-arrow {
  font-size: 1.2rem;
  color: #8888aa;
  flex-shrink: 0;
  padding-top: 20px;
}
.shop-custom-price {
  padding: 10px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: #a78bfa;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}
.shop-custom-trees-detail {
  padding: 10px 12px;
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 12px;
  font-size: 0.85rem;
  text-align: center;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  word-break: break-all;
}
.shop-custom-note {
  font-size: 0.72rem;
  color: #8888aa;
  text-align: center;
  line-height: 1.4;
}

/* Responsive custom selector */
@media (max-width: 480px) {
  .shop-custom-inputs { gap: 6px; }
  .shop-custom-arrow { font-size: 0.9rem; padding-top: 18px; }
  .shop-forest-trees { gap: 3px; }
  .shop-tree-anim { font-size: 1.6rem; }
  .shop-forest-impact { gap: 6px; flex-wrap: wrap; }
}
