/* Platform: profiles, registration, payments, live matching */

.auth-card-wide { max-width: 520px; }

.role-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.role-toggle .btn { flex: 1; min-width: 100px; }

.auth-switch { text-align: center; margin-top: 1.25rem; }

.profile-header { padding-bottom: 0; }

.profile-cover {
    height: 140px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(108, 53, 255, 0.4), rgba(255, 45, 141, 0.3));
    background-size: cover;
    background-position: center;
    margin-bottom: -40px;
    position: relative;
}

.profile-avatar-lg {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg);
    margin-left: 1rem;
    position: relative;
    top: 100px;
}

.profile-header .container { padding-bottom: 1rem; }
.profile-header h1 { margin-top: 3rem; }

.profile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.profile-tab {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.9rem;
}

.profile-tab.is-active,
.profile-tab:hover {
    border-color: var(--purple);
    color: var(--text);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.checkbox-row {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.registrations-list { display: grid; gap: 1rem; }

.registration-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem;
}

.registration-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.registration-badges { display: flex; gap: 0.5rem; margin-top: 0.5rem; }

.profile-quick-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-flow-steps {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.flow-step {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    color: var(--text-soft);
}

.flow-step.is-active { background: rgba(108, 53, 255, 0.3); color: var(--text); }
.flow-step.is-done { background: rgba(46, 204, 113, 0.2); color: #6ee7a0; }

.promptpay-qr-block { text-align: center; margin: 1.5rem 0; }

.promptpay-qr {
    width: 220px;
    height: 220px;
    border-radius: var(--radius-md);
    background: #fff;
    padding: 0.5rem;
}

.payment-amount { font-size: 2rem; font-weight: 800; }
.payment-amount-block { margin-bottom: 1.5rem; }

.future-note {
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.ticket-details {
    display: grid;
    gap: 0.75rem;
    text-align: left;
    margin: 1.5rem 0;
}

.ticket-details dt { color: var(--text-soft); font-size: 0.85rem; }
.ticket-details dd { margin: 0; font-weight: 600; }

.match-card .match-profile {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.compatibility-score {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.starter-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-soft);
}

.starter-list li { margin-bottom: 0.5rem; }

.vote-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }

.best-matches-list { display: grid; gap: 0.75rem; }

.best-match-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.best-match-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.compatibility-pill {
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(108, 53, 255, 0.25);
    margin-left: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.stat-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-card span { color: var(--text-soft); font-size: 0.85rem; }
.stat-card strong { font-size: 1.75rem; }

.referral-box code {
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
    background: rgba(108, 53, 255, 0.2);
    border-radius: 6px;
}

.bank-block { margin-top: 1rem; }

.slip-preview {
    max-width: 100%;
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .registration-card { flex-direction: column; align-items: flex-start; }
}

/* Realtime engine */
.live-engine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.live-engine-stat { font-size: 3rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.live-engine-timer { font-size: 2.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.live-controls-extended { flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.btn-danger { background: #e74c3c; color: #fff; border: none; }
.btn-danger:hover { background: #c0392b; }
.broadcast-history { margin-top: 1rem; padding-left: 1.25rem; color: var(--text-soft); }
.live-participant-page { padding: 2rem 0; }
.live-top-bar { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.live-round-timer { display: flex; gap: 2rem; }
.live-round-block span, .live-timer-block span { display: block; font-size: 0.8rem; color: var(--text-soft); }
.live-countdown { font-size: 2rem; font-variant-numeric: tabular-nums; color: var(--pink, #FF2D8D); }
.live-broadcast-banner { background: rgba(108,53,255,0.2); border: 1px solid rgba(108,53,255,0.4); padding: 1rem; border-radius: var(--radius-md); margin-bottom: 1.5rem; }
.live-participant-grid { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; }
.vote-buttons-lg .btn { min-width: 120px; }
.vote-buttons-lg .btn.is-voted { opacity: 0.6; }
.match-reveal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
.match-reveal-card { text-align: center; padding: 1rem; background: rgba(255,255,255,0.04); border-radius: var(--radius-md); }
.match-reveal-card img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 0.5rem; }
.chat-room-list { display: grid; gap: 0.75rem; }
.chat-room-item { display: block; padding: 1rem; text-decoration: none; color: inherit; }
.chat-thread-layout { max-width: 720px; }
.chat-messages { min-height: 320px; max-height: 480px; overflow-y: auto; display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0; }
.chat-message.is-mine { align-self: flex-end; }
.chat-message.is-theirs { align-self: flex-start; }
.chat-bubble { background: rgba(255,255,255,0.08); padding: 0.75rem 1rem; border-radius: 12px; max-width: 320px; }
.chat-message.is-mine .chat-bubble { background: rgba(108,53,255,0.35); }
.chat-image { max-width: 200px; border-radius: 8px; margin-top: 0.5rem; }
.chat-compose-actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.75rem; }
.notification-list { display: grid; gap: 0.75rem; }
.loyalty-progress { height: 8px; background: rgba(255,255,255,0.1); border-radius: 999px; overflow: hidden; margin-top: 0.5rem; }
.loyalty-progress-bar { height: 100%; background: var(--gradient); }
.badge-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ai-insights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-top: 1rem; }
.ai-insights-card { border: 1px solid rgba(108,53,255,0.3); }
@media (max-width: 768px) {
    .live-engine-grid { grid-template-columns: 1fr; }
    .live-participant-grid { grid-template-columns: 1fr; }
}

.nav-link-badge { position: relative; display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: var(--pink, #FF2D8D);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
}

.tenant-hero { text-align: center; padding: 4rem 0; }
.tenant-hero-logo { max-width: 120px; margin-bottom: 1rem; }
.tenant-hero-body { max-width: 560px; margin: 1rem auto 1.5rem; color: var(--text-soft); }
.tenant-branded .btn-primary { background: var(--org-primary, var(--purple)); }
.plans-grid, .templates-grid, .marketplace-grid, .community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.plan-card.is-current { border-color: var(--org-primary, var(--purple)); }
.plan-price { font-size: 1.75rem; font-weight: 800; }
.org-profile-header { display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.org-profile-logo { width: 80px; height: 80px; object-fit: contain; border-radius: 12px; }
.ai-policy-note { border-left: 3px solid var(--org-primary, var(--purple)); padding-left: 0.75rem; }

/* Localization & marketing */
.social-share { margin-top: 0.75rem; }
.social-share-label { display: block; font-size: 0.8rem; color: var(--text-soft); margin-bottom: 0.5rem; }
.social-share-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--border, #e5e7eb);
    background: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text, #111);
    cursor: pointer;
}
.social-share-facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.social-share-x { background: #000; color: #fff; border-color: #000; }
.social-share-line { background: #06c755; color: #fff; border-color: #06c755; font-size: 0.65rem; }
.social-share-tiktok { background: #010101; color: #fff; border-color: #010101; }
.social-share-whatsapp { background: #25d366; color: #fff; border-color: #25d366; font-size: 0.65rem; }
.marketing-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.marketing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.marketing-card { text-decoration: none; color: inherit; transition: transform 0.15s, box-shadow 0.15s; }
.marketing-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.marketing-card-icon { font-size: 1.5rem; }
.marketing-card-link { font-size: 0.875rem; color: var(--purple, #6C35FF); font-weight: 600; }
.seo-checklist { padding-left: 1.25rem; color: var(--text-soft); }
.tiktok-preview { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border, #e5e7eb); }
.event-share-wrap { margin-top: 0.75rem; }

