.wrr-account { max-width: 880px; }
.wrr-account h3 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.wrr-muted { color: #555; }

/* Hero */
.wrr-hero { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; padding: 1.5rem; border: 1px solid #e5e7eb; border-radius: 16px; background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 60%, #f5f3ff 100%); margin-bottom: 1.25rem; }
.wrr-hero-info .wrr-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.72rem; font-weight: 700; color: #6366f1; margin: 0 0 0.25rem; }
.wrr-goal-values { font-size: 1.6rem; margin: 0 0 0.75rem; }
.wrr-goal-sep { color: #9ca3af; font-weight: 400; }
.wrr-progress { height: 12px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.wrr-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, #818cf8); transition: width 0.4s ease; }
.wrr-goal-sub { margin: 0.6rem 0; font-size: 0.9rem; color: #4b5563; }
.wrr-balance-pill { display: inline-block; margin: 0; padding: 0.35rem 0.8rem; border-radius: 999px; background: #111827; color: #fff; font-weight: 600; }

/* Bottle (ported from bottle.html, scoped, no Tailwind) */
.wrr-bottle-wrap { display: flex; flex-direction: column; align-items: center; }
.wrr-bottle-cap { width: 64px; height: 16px; border: 4px solid #111; border-bottom: 0; border-radius: 6px 6px 0 0; background: #fff; }
.wrr-bottle-neck { width: 48px; height: 32px; border-left: 4px solid #111; border-right: 4px solid #111; background: #fff; }
.wrr-bottle { position: relative; width: 160px; height: 300px; border: 4px solid #111; border-radius: 10px 10px 40px 40px; background: #fff; }
.wrr-bottle-inner { position: absolute; inset: 4px; overflow: hidden; border-radius: 6px 6px 32px 32px; }
.wrr-bottle-water { position: absolute; bottom: 0; left: 0; width: 100%; background: #93c5fd; transition: height 0.3s ease; }
.wrr-bottle-wave { position: absolute; top: -12px; left: 0; width: 200%; height: 14px; animation: wrr-wave 3s linear infinite; }
@keyframes wrr-wave { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.wrr-bottle-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.wrr-bottle-center span { font-size: 1.25rem; font-weight: 800; mix-blend-mode: multiply; }
.wrr-hero-bottle { position: relative; }
.wrr-bottle-level { position: absolute; left: 100%; display: flex; align-items: center; white-space: nowrap; margin-left: 0; transition: bottom 0.3s ease; }
.wrr-bottle-tick { width: 40px; height: 3px; background: #111; margin-left: -4px; }
.wrr-bottle-pct { margin-left: 8px; font-size: 0.8rem; font-weight: 700; font-family: monospace; background: #fff; border: 2px solid #111; border-radius: 999px; padding: 0 8px; }
@media (prefers-reduced-motion: reduce) { .wrr-bottle-wave { animation: none; } .wrr-bottle-water, .wrr-bottle-level, .wrr-progress-fill { transition: none; } }

/* Cards */
.wrr-card { border: 1px solid #e5e7eb; border-radius: 16px; padding: 1.25rem 1.4rem; margin-bottom: 1.25rem; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,0.05); }
.wrr-account .wrr-code { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.wrr-account .wrr-code code { font-size: 1.35rem; letter-spacing: 0.06em; padding: 0.4rem 0.75rem; background: #f4f4f6; border: 1px dashed #c7c9d1; border-radius: 8px; display: inline-block; }
.wrr-copy { border: 2px solid #111; background: #fff; border-radius: 999px; padding: 0.25rem 0.9rem; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.wrr-copy:hover { background: #111; color: #fff; }
.wrr-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.wrr-pill { display: inline-block; padding: 0.3rem 0.75rem; border-radius: 999px; background: #f3f4f6; border: 1px solid #e5e7eb; font-size: 0.85rem; }
.wrr-pill-accent { background: #eef2ff; border-color: #c7d2fe; color: #3730a3; font-weight: 600; }

.wrr-account .wrr-balance { font-size: 1.5rem; font-weight: 700; margin: 0.25rem 0 0.5rem; }

/* Ledger */
.wrr-table-wrap { overflow-x: auto; }
.wrr-ledger { width: 100%; border-collapse: collapse; }
.wrr-ledger td, .wrr-ledger th { padding: 0.6rem 0.7rem; border-bottom: 1px solid #f0f0f0; text-align: left; }
.wrr-ledger tbody tr:nth-child(even) { background: #fafafa; }
.wrr-badge { display: inline-block; padding: 0.15rem 0.65rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.wrr-badge-in { background: #dcfce7; color: #166534; }
.wrr-badge-out { background: #fee2e2; color: #991b1b; }
.wrr-note { color: #555; max-width: 320px; }

.wrr-checkout-wallet { margin: 1rem 0; padding: 0.75rem 1rem; border: 1px solid #ddd; border-radius: 8px; }

@media (max-width: 640px) {
	.wrr-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.wrr-bottle-level { display: none; }
}
