/* ========== LOGIN (no tocar — compartido con login.php) ========== */
.acct-kicker { margin: 0; color: var(--primary); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.acct-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 1rem; margin-bottom: 0.75rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); }
.acct-shell-narrow { max-width: 28rem; }
.acct-form label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.75rem; }
.acct-form label input { width: 100%; margin-top: 0.25rem; }
.acct-muted { color: var(--muted-foreground); font-size: 0.875rem; }
.acct-success { background: color-mix(in srgb, var(--accent-green, #22c55e) 12%, var(--card)); color: #047857; padding: 0.625rem 0.75rem; border-radius: 8px; font-size: 0.9rem; margin-bottom: 1rem; border: 1px solid color-mix(in srgb, var(--accent-green, #22c55e) 35%, transparent); }
.acct-no-min { color: var(--accent-green, #16a34a); font-weight: 600; font-size: 0.85rem; margin: 0 0 0.75rem; }
.acct-report-note { text-align: center; color: var(--muted-foreground); font-size: 0.85rem; margin: 0.4rem 0 1rem; }
.acct-site-footer { margin-top: auto; padding: 1.25rem 1rem; text-align: center; font-size: 0.85rem; color: var(--muted-foreground); border-top: 1px solid var(--border); background: var(--card); }
.acct-site-footer a { color: var(--primary); text-decoration: none; margin: 0 0.5rem; }
.acct-login-wrap { min-height: 100vh; display: flex; flex-direction: column; background: var(--background); color: var(--foreground); }
.acct-public-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--background); color: var(--foreground); }
.acct-login-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.acct-page-main { flex: 1; width: 100%; }
.acct-page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.acct-page-toolbar-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.acct-site-footer { margin-top: auto; padding: 1.25rem 1rem; text-align: center; font-size: 0.85rem; color: var(--muted-foreground); border-top: 1px solid var(--border); background: var(--card); }
.acct-site-footer a { color: var(--primary); text-decoration: none; margin: 0 0.5rem; }
.amb-site-header { border-bottom: 1px solid var(--border); background: var(--card); }
.amb-site-header-inner { max-width: 56rem; margin: 0 auto; padding: 0.75rem 1rem; display: flex; align-items: center; }
.amb-site-logo img { display: block; height: 2rem; width: auto; max-width: 9rem; }
.amb-site-footer { margin-top: auto; padding: 1.25rem 1rem 1.5rem; text-align: center; font-size: 0.875rem; color: var(--muted-foreground); border-top: 1px solid var(--border); background: var(--card); }
.amb-site-footer-copy { margin: 0 0 0.35rem; }
.amb-site-footer-links { margin: 0; }
.amb-site-footer-links a { color: var(--primary); text-decoration: none; margin: 0 0.5rem; font-weight: 600; }
.amb-site-footer-links a:hover { text-decoration: underline; }

/* ========== AMBASSADOR DASHBOARD — layout only; colores desde main.css de cada marca ========== */
.amb-dash { color: var(--foreground, #1f2430); -webkit-tap-highlight-color: transparent; }
.amb-streak-pill, .amb-level-pill { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; border: 1px solid var(--border); background: var(--muted, #f1f3f7); color: var(--foreground); }
.amb-streak-pill { border-color: color-mix(in srgb, #f59e0b 35%, var(--border)); color: #b45309; background: color-mix(in srgb, #f59e0b 10%, var(--card)); }
.amb-logout { font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); text-decoration: none; white-space: nowrap; }
.amb-logout:hover { color: var(--primary); text-decoration: underline; }
.amb-main { max-width: 56rem; margin: 0 auto; padding: 1rem 1rem 3rem; display: flex; flex-direction: column; gap: 1rem; }
.amb-error { color: #dc2626; margin-bottom: 0.5rem; }
.amb-ticker { display: flex; align-items: center; gap: 0.65rem; padding: 0.75rem; border-radius: 1rem; border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border)); background: color-mix(in srgb, var(--primary) 6%, var(--card)); overflow: hidden; }
.amb-ticker-dot { position: relative; width: 0.625rem; height: 0.625rem; flex-shrink: 0; }
.amb-ticker-dot::before, .amb-ticker-dot::after { content: ""; position: absolute; inset: 0; border-radius: 999px; background: #10b981; }
.amb-ticker-dot::before { animation: ambPing 1.5s ease-out infinite; opacity: 0.6; }
@keyframes ambPing { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(2); opacity: 0; } }
.amb-ticker-text { flex: 1; margin: 0; font-size: 0.75rem; color: var(--muted-foreground); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity 0.3s; }
.amb-ticker-badge { font-size: 0.625rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, var(--card)); color: var(--primary); flex-shrink: 0; }
.amb-card { background: var(--card, #fff); border: 1px solid var(--border, #e6e8ee); border-radius: var(--radius, 1rem); padding: 1.1rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.amb-card-glow { background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, var(--card)), var(--card)); border-color: color-mix(in srgb, var(--primary) 22%, var(--border)); box-shadow: 0 8px 24px color-mix(in srgb, var(--primary) 12%, transparent); }
.amb-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.amb-pill { font-size: 0.6875rem; font-weight: 700; padding: 0.25rem 0.65rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border)); background: color-mix(in srgb, var(--primary) 10%, var(--card)); color: var(--primary); }
.amb-muted-sm { font-size: 0.75rem; color: var(--muted-foreground, #6b7280); margin: 0; }
.amb-emerald { color: #059669; }
.amb-amber { color: #d97706; }
.amb-hero-title { font-size: clamp(1.15rem, 3.5vw, 1.45rem); font-weight: 900; line-height: 1.35; margin: 0 0 0.75rem; color: var(--foreground); }
.amb-gradient-text { background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 65%, var(--foreground))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.amb-reward-box { display: flex; gap: 0.75rem; padding: 0.85rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--muted, #f1f3f7); margin-bottom: 0.85rem; }
.amb-reward-icon { width: 3rem; height: 3rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; background: linear-gradient(135deg, #f59e0b, #fbbf24); flex-shrink: 0; }
.amb-reward-copy { flex: 1; min-width: 0; }
.amb-reward-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.amb-reward-title { margin: 0; font-size: 0.875rem; font-weight: 700; color: var(--foreground); }
.amb-tag-emerald { font-size: 0.6875rem; font-weight: 800; padding: 0.15rem 0.45rem; border-radius: 0.375rem; color: #059669; background: color-mix(in srgb, #10b981 12%, var(--card)); border: 1px solid color-mix(in srgb, #10b981 30%, var(--border)); white-space: nowrap; }
.amb-progress-block { margin-bottom: 0.85rem; }
.amb-progress-labels, .amb-progress-foot { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; font-weight: 600; color: var(--muted-foreground); margin-bottom: 0.35rem; }
.amb-progress-foot { margin-top: 0.35rem; margin-bottom: 0; font-weight: 500; }
.amb-progress-track { height: 1rem; padding: 2px; border-radius: 999px; background: var(--muted, #f1f3f7); border: 1px solid var(--border); overflow: hidden; }
.amb-progress-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 75%, var(--foreground))); background-size: 200% 100%; animation: ambShimmer 3s linear infinite; transition: width 0.8s cubic-bezier(.34,1.56,.64,1); }
@keyframes ambShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.amb-daily-quest { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--card); }
.amb-daily-icon { width: 2rem; height: 2rem; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--primary) 15%, var(--card)); font-weight: 700; }
.amb-daily-title { margin: 0; font-size: 0.8125rem; font-weight: 700; }
.amb-btn-sm { width: auto !important; padding: 0.5rem 0.85rem !important; font-size: 0.75rem !important; flex-shrink: 0; }
.amb-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.75rem; margin-bottom: 0.85rem; }
.amb-h2 { margin: 0 0 0.25rem; font-size: 1rem; font-weight: 800; color: var(--foreground); font-family: var(--font-serif, Georgia, serif); }
.amb-hero-badge { font-size: 0.625rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.25rem 0.55rem; border-radius: 999px; background: var(--primary); color: var(--primary-foreground, #fff); white-space: nowrap; }
.amb-label { display: block; font-size: 0.75rem; font-weight: 700; margin: 0 0 0.35rem; color: var(--foreground); }
.amb-link-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.85rem; }
.amb-link-input { flex: 1; min-width: 12rem; font-family: ui-monospace, monospace; font-size: 0.75rem !important; }
.amb-copy-btn { width: auto !important; flex-shrink: 0; padding: 0.75rem 1rem !important; font-size: 0.8125rem !important; }
.amb-curiosity { padding: 0.85rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--muted, #f1f3f7); margin-bottom: 0.85rem; }
.amb-curiosity-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.amb-link-btn { border: none; background: none; color: var(--primary); font-size: 0.6875rem; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }
.amb-curiosity-preview { font-size: 0.75rem; font-style: italic; padding: 0.65rem; border-radius: 0.75rem; border: 1px solid var(--border); background: var(--card); color: var(--foreground); }
.amb-hint { margin: 0.35rem 0 0; font-size: 0.625rem; color: var(--muted-foreground); }
.amb-share-block { display: flex; flex-direction: column; gap: 0.5rem; }
.amb-share-block-label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--foreground); }
.amb-share-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.625rem; }
@media (min-width: 640px) { .amb-share-grid { grid-template-columns: repeat(3, 1fr); } }
.amb-share-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.625rem 0.75rem; border-radius: 1rem; border: 1px solid transparent; font-size: 0.75rem; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform 0.15s, background-color 0.15s, border-color 0.15s; font-family: inherit; line-height: 1.2; }
.amb-share-btn:active { transform: scale(0.95); }
.amb-share-svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.amb-share-svg-fill { fill: currentColor; }
.amb-share-svg-stroke { stroke: currentColor; }
.amb-share-svg-x { width: 0.875rem; height: 0.875rem; }
.amb-share-wa { background: color-mix(in srgb, #25D366 10%, transparent); border-color: color-mix(in srgb, #25D366 30%, transparent); color: #25D366; }
.amb-share-wa:hover { background: color-mix(in srgb, #25D366 20%, transparent); }
.amb-share-tg { background: color-mix(in srgb, #229ED9 10%, transparent); border-color: color-mix(in srgb, #229ED9 30%, transparent); color: #229ED9; }
.amb-share-tg:hover { background: color-mix(in srgb, #229ED9 20%, transparent); }
.amb-share-x { background: #1f2937; border-color: #374151; color: #fff; }
.amb-share-x:hover { background: #374151; }
.amb-share-fb { background: color-mix(in srgb, #1877F2 10%, transparent); border-color: color-mix(in srgb, #1877F2 30%, transparent); color: #1877F2; }
.amb-share-fb:hover { background: color-mix(in srgb, #1877F2 20%, transparent); }
.amb-share-mail { background: color-mix(in srgb, #a855f7 10%, transparent); border-color: color-mix(in srgb, #a855f7 30%, transparent); color: #c084fc; }
.amb-share-mail:hover { background: color-mix(in srgb, #a855f7 20%, transparent); }
.amb-share-qr { background: color-mix(in srgb, #f59e0b 10%, transparent); border-color: color-mix(in srgb, #f59e0b 30%, transparent); color: #fbbf24; }
.amb-share-qr:hover { background: color-mix(in srgb, #f59e0b 20%, transparent); }
.amb-tier-list { display: flex; flex-direction: column; gap: 0.65rem; }
.amb-tier { display: flex; gap: 0.75rem; padding: 0.85rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--muted, #f1f3f7); }
.amb-tier.is-unlocked { border-color: color-mix(in srgb, #10b981 35%, var(--border)); background: color-mix(in srgb, #10b981 6%, var(--card)); }
.amb-tier.is-current { border: 2px solid var(--primary); background: color-mix(in srgb, var(--primary) 6%, var(--card)); box-shadow: 0 4px 16px color-mix(in srgb, var(--primary) 15%, transparent); }
.amb-tier.is-locked { opacity: 0.72; }
.amb-tier-emoji { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; display: flex; align-items: center; justify-content: center; font-size: 1.25rem; border: 1px solid var(--border); background: var(--card); flex-shrink: 0; }
.amb-tier-body { flex: 1; min-width: 0; }
.amb-tier-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.amb-tier-title { margin: 0; font-size: 0.8125rem; font-weight: 700; color: var(--foreground); }
.amb-tier-status { font-size: 0.625rem; font-weight: 800; padding: 0.15rem 0.45rem; border-radius: 999px; border: 1px solid var(--border); color: var(--muted-foreground); background: var(--card); white-space: nowrap; }
.amb-tier.is-unlocked .amb-tier-status { color: #059669; border-color: color-mix(in srgb, #10b981 35%, var(--border)); }
.amb-tier.is-current .amb-tier-status { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); animation: ambPulse 1.6s ease-in-out infinite; }
@keyframes ambPulse { 0%,100% { opacity: 1; } 50% { opacity: 0.65; } }
.amb-leader-list { display: flex; flex-direction: column; gap: 0.5rem; }
.amb-leader-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.75rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--muted, #f1f3f7); }
.amb-leader-row.is-you { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); background: color-mix(in srgb, var(--primary) 8%, var(--card)); }
.amb-leader-left { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.amb-leader-rank { width: 1.5rem; font-weight: 900; font-size: 0.8125rem; color: var(--muted-foreground); text-align: center; }
.amb-leader-avatar { width: 2rem; height: 2rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 0.6875rem; font-weight: 800; color: #fff; background: var(--primary); flex-shrink: 0; }
.amb-leader-name { margin: 0; font-size: 0.8125rem; font-weight: 700; }
.amb-leader-sub { margin: 0; font-size: 0.625rem; color: var(--muted-foreground); }
.amb-leader-earn { text-align: right; font-size: 0.8125rem; font-weight: 800; color: #059669; }
.amb-leader-pts { font-size: 0.625rem; color: var(--muted-foreground); font-weight: 500; }
.amb-percentile { margin: 0.65rem 0 0; text-align: center; font-size: 0.8125rem; color: var(--muted-foreground); padding: 0.5rem; border-radius: 0.75rem; background: var(--muted, #f1f3f7); }
.amb-activity-list { display: flex; flex-direction: column; gap: 0.35rem; }
.amb-activity-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; padding: 0.35rem 0; }
.amb-activity-row .time { margin-left: auto; font-size: 0.6875rem; color: var(--muted-foreground); white-space: nowrap; }
.amb-locked { border: 1px dashed var(--border); border-radius: 0.75rem; padding: 0.85rem; text-align: center; color: var(--muted-foreground); font-size: 0.875rem; }
.amb-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; margin-top: 0.65rem; }
.amb-stat { padding: 0.85rem; border-radius: 1rem; border: 1px solid var(--border); background: var(--muted, #f1f3f7); }
.amb-stat-label { display: block; font-size: 0.6875rem; color: var(--muted-foreground); margin-bottom: 0.15rem; }
.amb-stat strong { font-size: 1.125rem; font-weight: 800; color: var(--foreground); }
.amb-ref-list { padding-left: 1.1rem; margin: 0; }
.amb-payout-form { margin-top: 0.5rem; }
.amb-report-btn { display: block; text-align: center; margin-bottom: 0.5rem; }
.amb-modal { position: fixed; inset: 0; z-index: 50; background: rgba(15, 23, 42, 0.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.amb-modal[hidden] { display: none !important; }
.amb-modal-card { position: relative; width: 100%; max-width: 20rem; background: var(--card); border: 1px solid var(--border); border-radius: 1rem; padding: 1.25rem; text-align: center; box-shadow: 0 20px 40px rgba(0,0,0,0.15); }
.amb-modal-close { position: absolute; top: 0.75rem; right: 0.85rem; border: none; background: none; font-size: 1.5rem; line-height: 1; color: var(--muted-foreground); cursor: pointer; }
.amb-qr-wrap { background: #fff; padding: 0.75rem; border-radius: 0.75rem; display: inline-block; margin: 0.75rem 0; border: 1px solid var(--border); }
.amb-qr-wrap img { width: 140px; height: 140px; display: block; }
.amb-hide-sm { display: none; }
@media (min-width: 480px) { .amb-hide-sm { display: inline; } }
#acctConfettiCanvas { position: fixed; inset: 0; pointer-events: none; z-index: 999; width: 100vw; height: 100vh; }
.acct-toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(150%); background: var(--foreground, #1f2430); color: #fff; padding: 0.85rem 1.3rem; border-radius: 999px; font-weight: 700; font-size: 0.9rem; box-shadow: 0 8px 24px rgba(0,0,0,0.25); z-index: 1000; transition: transform 0.45s cubic-bezier(.34,1.56,.64,1); max-width: calc(100vw - 2rem); text-align: center; }
.acct-toast.is-shown { transform: translateX(-50%) translateY(0); }
