/* Meu Velho Rico – visual feminino, elegante, voltado à mulher */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --bg-deep: #0a0a0b;
    --bg-card: #121214;
    --bg-elevated: #1a1a1d;
    --gold: #c9a227;
    --gold-light: #d4af37;
    --gold-muted: rgba(201, 162, 39, 0.25);
    --cream: #f5f0e6;
    --cream-muted: #e8e2d6;
    --text: #f5f0e6;
    --text-muted: rgba(245, 240, 230, 0.75);
    --border: rgba(245, 240, 230, 0.12);
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Nunito', system-ui, sans-serif;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition: 0.2s ease;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text);
    background: var(--bg-deep);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
}

.site-header .logo:hover {
    color: var(--gold-light);
}

.site-header .logo-icon {
    width: 36px;
    height: 36px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--gold);
    flex-shrink: 0;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-notificacoes {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.25rem 0.5rem;
}
.nav-notificacoes:hover {
    color: var(--gold);
}
.notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-header nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}

.site-header nav a:hover {
    color: var(--text);
    background: var(--gold-muted);
}

.site-header nav a.btn-nav {
    color: var(--bg-deep);
    background: var(--gold);
}

.site-header nav a.btn-nav:hover {
    background: var(--gold-light);
    color: var(--bg-deep);
}

.site-header nav .user-info {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-right: 0.5rem;
}

/* Main */
.site-main {
    min-height: calc(100vh - 180px);
    padding: 0;
}

.section {
    padding: 3rem 0 4rem;
}

.section-dark {
    background: var(--bg-elevated);
}

/* Hero */
.hero {
    position: relative;
    text-align: center;
    padding: 5rem 0 6rem;
    background: linear-gradient(135deg, #0a0a0b 0%, #1a1410 100%);
    background-image: 
        url('https://images.unsplash.com/photo-1529626455594-4ff0802cfb7e?w=1920&q=85&auto=format&fit=crop'),
        linear-gradient(135deg, rgba(10, 10, 11, 0.88) 0%, rgba(26, 20, 16, 0.92) 100%);
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center 30%;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201, 162, 39, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero .logo-hero {
    margin-bottom: 2rem;
}

.hero .logo-hero .logo-icon {
    width: 64px;
    height: 64px;
    border-width: 2px;
    font-size: 1.5rem;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin: 0 0 1rem;
    color: var(--text);
    letter-spacing: 0.01em;
}

.hero .tagline {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin: 0 0 2rem;
    line-height: 1.6;
}

.hero .cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: var(--gold);
    color: var(--bg-deep);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: var(--radius);
    transition: background var(--transition), transform var(--transition);
    border: none;
    cursor: pointer;
}

.hero .cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

/* Benefits strip */
.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.benefits::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.benefit {
    text-align: center;
    position: relative;
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.03) 0%, rgba(201, 162, 39, 0.01) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition), transform var(--transition);
}

.benefit:hover {
    border-color: rgba(201, 162, 39, 0.3);
    transform: translateY(-2px);
}

.benefit-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold-muted);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.5rem;
}

.benefit strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--gold-light);
    margin-bottom: 0.35rem;
}

.benefit span {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Form cards – cadastro e login (mesmo clima da index: mulher de costas/desfocada) */
/* Fundo aplicado no body para garantir que apareça em toda a viewport */
body.has-page-bg {
    background: linear-gradient(135deg, rgba(10, 10, 11, 0.88) 0%, rgba(26, 20, 16, 0.92) 100%),
                url('https://images.unsplash.com/photo-1529626455594-4ff0802cfb7e?w=1920&q=85&auto=format&fit=crop');
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    min-height: 100vh;
}

body.has-page-bg .site-main {
    background: transparent;
}

.page-with-bg {
    position: relative;
    min-height: 100vh;
    background: transparent;
}

.page-with-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(201, 162, 39, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.page-with-bg .container {
    position: relative;
    z-index: 1;
}

.page-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.page-head h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 0 0.5rem;
    color: var(--text);
}

.page-head .sub {
    font-size: 1rem;
    color: var(--text-muted);
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2.5rem;
    max-width: 460px;
    margin: 0 auto 2rem;
}

.login-links { text-align: center; margin-top: 0.75rem; }
.form-card h2 { text-align: center; margin-bottom: 1.5rem; }

/* Global button reset & defaults */
button, input[type="submit"], a.btn {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    background: rgba(255,255,255,0.03);
    color: var(--text);
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    text-decoration: none;
    font-weight: 600;
}

.btn-sm { padding: 0.35rem 0.6rem; font-size: 0.9rem; }

/* Offer form in admin chat */
.offer-form .offer-row { display:flex; gap:0.6rem; flex-wrap:wrap; }
.offer-form .input { width:100%; padding:0.6rem 0.85rem; border-radius:8px; border:1px solid var(--border); background:var(--bg-elevated); color:var(--text); }
.input-with-prefix { display:flex; align-items:center; }
.input-with-prefix .prefix { padding:0.55rem 0.7rem; background:rgba(255,255,255,0.03); border:1px solid rgba(255,255,255,0.04); border-right:none; border-radius:8px 0 0 8px; color:var(--text-muted); }
.input-with-prefix .input { border-radius:0 8px 8px 0; border-left:none; }
.offer-note { margin-top:0.5rem; font-size:0.9rem; }
.offer-note.muted { color:var(--text-muted); }
.btn-block { display: block; width: 100%; }
.btn-ghost { background: transparent; color: var(--text-muted); border: 1px solid rgba(255,255,255,0.04); }
.btn-ghost:hover { color: var(--text); background: var(--gold-muted); }

/* Ensure inputs styled as buttons inherit look */
input[type="submit"].btn, input[type="submit"].btn-primary-lg { -webkit-appearance: none; appearance: none; }

/* Action / utility buttons */
.btn-action { padding: 0.5rem 0.7rem; border-radius: 8px; }
.btn-action.btn-success { background: linear-gradient(180deg, var(--gold), var(--gold-light)); color: var(--bg-deep); border: none; }
.btn-action.btn-danger { background: #ef4444; color: #fff; border: none; }
.btn-delete { background: transparent; border: 1px solid rgba(255,255,255,0.05); color: var(--text); padding: 0.2rem 0.45rem; border-radius: 6px; }
.btn-copy { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); padding: 0.35rem 0.6rem; border-radius:8px; }
.btn-whatsapp, .btn-whatsapp-pagamento { display:inline-flex; align-items:center; gap:0.5rem; padding:0.45rem 0.7rem; background:#25D366; color:#fff; border-radius:8px; text-decoration:none; }
.btn-whatsapp:hover, .btn-whatsapp-pagamento:hover { filter:brightness(0.95); }

/* Small variations */
.btn-sm { padding: 0.35rem 0.6rem; font-size: 0.9rem; }

.form-card h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    color: var(--text);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text);
    transition: border-color var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 90px;
}

.btn {
    display: inline-flex;
}

/* Flash / toast charm */
.site-flash {
    position: fixed;
    right: 1.25rem;
    top: 1.25rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.06));
    color: var(--text);
    border: 1px solid rgba(245,240,230,0.08);
    padding: 0.9rem 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    min-width: 260px;
    max-width: 420px;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    z-index: 1200;
    animation: flash-in 350ms ease both;
}
.site-flash.success { border-left: 4px solid var(--gold); }
.site-flash.error { border-left: 4px solid #ef4444; }
.site-flash .flash-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(201,162,39,0.12), rgba(201,162,39,0.03));
    display:flex;align-items:center;justify-content:center;font-size:1.1rem;color:var(--gold);
}
.site-flash .flash-body { flex:1; }
.site-flash .flash-title { font-weight:700; font-family:var(--font-display); color:var(--text); margin-bottom:2px; }
.site-flash .flash-msg { font-size:0.95rem; color:var(--text-muted); }
.site-flash .flash-cta { margin-left: 0.5rem; }
.site-flash .btn-cta { background: var(--gold); color: var(--bg-deep); padding: 0.45rem 0.75rem; border-radius:8px; font-weight:700; text-decoration:none; border:none; cursor:pointer; }
.site-flash button.btn-ghost { background:transparent; border:0; color:var(--text-muted); }

@keyframes flash-in { from { transform: translateY(-8px) scale(0.98); opacity:0 } to { transform: none; opacity:1 } }

/* Mobile adjustments */
@media (max-width: 640px) {
    .site-flash { left: 1rem; right: 1rem; top: 1rem; max-width: calc(100% - 2rem); }
}


.btn:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
    margin-top: 0.5rem;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    color: var(--text);
    background: var(--gold-muted);
}

.btn:disabled,
.btn.is-loading {
    cursor: not-allowed;
    opacity: 0.85;
    transform: none;
}

.btn.is-loading {
    position: relative;
}

.btn.is-loading::after {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-left: 0.5rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

/* Link "Voltar" no topo da página */
.page-back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.page-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: color var(--transition), background var(--transition), border-color var(--transition);
}

.page-back-link a:hover {
    color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-muted);
}

/* Large primary CTA for signup */
.btn-primary-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.95rem 1.25rem;
    background: linear-gradient(180deg, var(--gold), var(--gold-light));
    color: var(--bg-deep);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.12);
    font-weight: 800;
    font-family: var(--font-display);
    font-size: 1.05rem;
    box-shadow: 0 8px 28px rgba(201,162,39,0.12), inset 0 -2px 0 rgba(0,0,0,0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.btn-primary-lg:hover {
    transform: translateY(-3px);
    filter: brightness(1.02);
    box-shadow: 0 14px 40px rgba(201,162,39,0.14), inset 0 -2px 0 rgba(0,0,0,0.06);
}
.btn-primary-lg:active { transform: translateY(-1px) scale(0.998); }
.btn-primary-lg .btn-emoji { font-size: 1.05rem; }

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Footer */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0;
}

/* Cadastro page – copy */
.cadastro-intro {
    text-align: center;
    max-width: 540px;
    margin: 0 auto 2rem;
}

.cadastro-intro p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Login page */
.login-links {
    text-align: center;
    margin-top: 1.5rem;
}

.login-links a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.95rem;
}

.login-links a:hover {
    text-decoration: underline;
}

/* Utils */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }

/* ============================================================================
   DASHBOARD & ADMIN
   ============================================================================ */

/* Container wide para admin */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Dashboard welcome */
.dashboard-welcome {
    text-align: center;
    margin-bottom: 2.5rem;
}

.dashboard-welcome h1 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0 0 0.5rem;
    color: var(--text);
}

.dashboard-welcome .lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Status cards */
.status-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 2rem;
}

.status-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-pendente .status-icon {
    background: rgba(251, 191, 36, 0.15);
}

.status-ativo .status-icon {
    background: rgba(34, 197, 94, 0.15);
}

.status-bloqueado .status-icon {
    background: rgba(239, 68, 68, 0.15);
}

.status-content strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
    color: var(--text);
}

.status-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-card-success {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

.stat-card-warning {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.05);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Dashboard grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.dash-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
    transition: border-color var(--transition), transform var(--transition);
}

.dash-card:hover:not(.dash-card-disabled) {
    border-color: var(--gold-muted);
    transform: translateY(-2px);
}

.dash-card-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dash-card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.dash-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.dash-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.dash-card .btn {
    margin-top: 0.5rem;
}

/* Upgrade banner */
.upgrade-banner {
    background: linear-gradient(135deg, var(--gold-muted) 0%, rgba(201, 162, 39, 0.08) 100%);
    border: 1px solid rgba(201, 162, 39, 0.3);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    margin: 3rem 0;
}

.upgrade-banner h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin: 0 0 0.75rem;
    color: var(--text);
}

.upgrade-banner p {
    margin: 0.35rem 0;
    color: var(--text-muted);
}

.upgrade-banner .price {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gold-light);
    margin: 1rem 0 1.5rem;
}

.upgrade-banner .price span {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
}

/* Dashboard sections */
.dashboard-sections {
    margin-top: 3rem;
}

.dash-section {
    margin-bottom: 3rem;
}

.dash-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    color: var(--text);
}

/* Matches */
.matches-grid {
    display: grid;
    gap: 1rem;
}

.match-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.match-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gold-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.match-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.match-info {
    flex: 1;
}

.match-info strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.match-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Admin – layout com sidebar */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 120px);
    background: var(--bg-deep);
}

.admin-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    padding: 1.5rem 0;
}

.admin-sidebar-header {
    padding: 0 1.25rem 1rem;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--gold);
}

.admin-nav {
    display: flex;
    flex-direction: column;
}

.admin-nav a {
    padding: 0.75rem 1.25rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition), background var(--transition);
}

.admin-nav a:hover {
    color: var(--text);
    background: var(--bg-elevated);
}

.admin-nav a.active {
    color: var(--gold);
    background: var(--gold-muted);
    border-left: 3px solid var(--gold);
}

.admin-main {
    flex: 1;
    padding: 2rem;
    overflow-x: auto;
}

.admin-page-header {
    margin-bottom: 2rem;
}

.admin-page-header h1 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin: 0 0 0.35rem;
    color: var(--text);
}

.admin-page-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Admin – usuários (fotos + WhatsApp) */
.admin-users-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-user-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.admin-user-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.admin-user-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
}

.admin-user-info strong {
    display: block;
    width: 100%;
    color: var(--text);
}

.admin-user-info .badge {
    margin-left: 0;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: opacity var(--transition);
}

.btn-whatsapp:hover {
    opacity: 0.9;
}

.admin-user-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-user-fotos {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.admin-user-fotos strong {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.admin-fotos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-foto-thumb {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.admin-foto-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-foto-thumb:hover {
    border-color: var(--gold);
}

/* Admin – config card */
.admin-config-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    max-width: 640px;
}

.admin-config-card h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 1.25rem;
    color: var(--text);
}

.admin-config-card h2:not(:first-child) {
    margin-top: 2rem;
}

.checkbox-label {
    display: block;
    padding: 0.5rem 0;
    cursor: pointer;
    color: var(--text);
}

.checkbox-label input {
    margin-right: 0.5rem;
}

/* Admin – chat */
.admin-chat-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    min-height: 480px;
}

.admin-chat-list {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
}

.admin-chat-list h3 {
    font-size: 1rem;
    margin: 0 0 1rem;
    color: var(--text-muted);
}

.admin-chat-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.35rem;
    transition: background var(--transition);
}

.admin-chat-item:hover {
    background: var(--bg-elevated);
}

.admin-chat-item.active {
    background: var(--gold-muted);
    color: var(--gold);
}

.admin-chat-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}

.admin-chat-box h3 {
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.admin-chat-box .chat-messages {
    flex: 1;
    min-height: 280px;
}

.admin-chat-box .chat-input-area {
    display: block;
    padding: 1rem 1.25rem;
}

.admin-chat-box .chat-input-area form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-chat-box .chat-input-area textarea {
    width: 100%;
    min-height: 60px;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    resize: vertical;
}

.admin-chat-placeholder {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    color: var(--text-muted);
}

/* Admin section (legacy) */
.admin-section {
    background: var(--bg-deep);
}

.admin-header {
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.admin-header p {
    color: var(--text-muted);
    margin: 0;
}

/* Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.tab-btn:hover {
    color: var(--text);
}

.tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* Table */
.table-responsive {
    overflow-x: auto;
    margin: 1rem 0;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.admin-table thead {
    background: var(--bg-elevated);
}

.admin-table th {
    padding: 0.9rem 1rem;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    font-size: 0.95rem;
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-table tbody tr:hover {
    background: var(--bg-elevated);
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 12px;
}

.badge-novo, .badge-pendente {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.badge-ativo, .badge-qualificado {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.badge-bloqueado, .badge-desistiu {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.badge-contato {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

/* Admin actions */
.admin-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-action {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-action:hover {
    background: var(--gold-muted);
    border-color: var(--gold);
}

.btn-success {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.btn-success:hover {
    background: rgba(34, 197, 94, 0.2);
}

.btn-danger {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Perfil completo */
.container-perfil {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.perfil-wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
}

/* Sidebar: Avatar + Galeria */
.perfil-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.perfil-avatar-card,
.perfil-galeria-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.perfil-avatar-card h3,
.perfil-galeria-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0 0 1.25rem;
    color: var(--text);
}

.perfil-avatar-large {
    width: 180px;
    height: 180px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold-muted);
}

.perfil-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: var(--bg-elevated);
}

.upload-form-inline,
.upload-galeria-form {
    text-align: center;
}

.upload-hint,
.galeria-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.4;
}

.galeria-hint {
    margin-bottom: 1rem;
}

/* Galeria grid */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.galeria-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.galeria-delete-form {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
}

.btn-delete {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 1);
}

.galeria-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 1.5rem 0;
}

/* Main form */
.perfil-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.perfil-form-completo {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Seções do perfil */
.perfil-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.perfil-section h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

/* Form row (2 colunas) */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--text);
    transition: border-color var(--transition);
}

.form-group select:focus {
    outline: none;
    border-color: var(--gold);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.perfil-actions {
    text-align: center;
    margin-top: 0.5rem;
}

/* ============================================================================
   PÁGINAS NOVAS: Pagamento, Carrossel, Chat, WhatsApp
   ============================================================================ */

/* Pagamento */
.pagamento-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pagamento-info-card,
.pagamento-crypto-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.pagamento-info-card h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 1.5rem;
    color: var(--text);
}

.preco-display {
    text-align: center;
    padding: 2rem 0;
    margin: 1.5rem 0;
    border: 2px solid var(--gold-muted);
    border-radius: var(--radius);
    background: var(--gold-muted);
}

.preco-brl {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--gold-light);
    display: block;
}

.ou {
    display: block;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.preco-usdt {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
}

.pagamento-descricao {
    text-align: center;
    color: var(--text-muted);
    margin: 1rem 0 1.5rem;
}

.beneficios-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.beneficios-lista li {
    padding: 0.5rem 0;
    color: var(--text);
    font-size: 0.95rem;
}

.pagamento-crypto-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 1rem;
    color: var(--text);
}

.instrucoes {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.wallet-display {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.wallet-display input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    font-family: monospace;
}

.btn-copy {
    padding: 0.75rem 1.5rem;
    background: var(--gold);
    color: var(--bg-deep);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

.qr-placeholder {
    text-align: center;
    margin: 2rem 0;
}

.qr-code-img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.qr-placeholder-inner {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

.copy-cripto-box {
    background: var(--gold-muted);
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.copy-cripto-box h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--gold-light);
}

.copy-cripto-box p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
}

.pagamento-suporte {
    margin: 1.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.pagamento-suporte p {
    margin: 0 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn-whatsapp-pagamento {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: opacity var(--transition);
}

.btn-whatsapp-pagamento:hover {
    opacity: 0.9;
}

.btn-whatsapp-icon {
    font-size: 1.25rem;
}

.qr-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.alert-warning {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.confirmacao-texto {
    text-align: center;
    margin: 2rem 0;
    color: var(--text-muted);
}

/* Carrossel Provas Sociais */
.provas-sociais {
    padding: 4rem 0;
    background: var(--bg-elevated);
}

.provas-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    text-align: center;
    margin: 0 0 2.5rem;
    color: var(--text);
}

.provas-carrossel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.prova-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.prova-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--gold-muted);
}

.prova-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prova-content strong {
    display: block;
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.prova-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.5;
}

/* Chat */
.container-chat {
    max-width: 800px;
    margin: 0 auto;
    padding: 0;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.btn-back {
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
}

.chat-avatar-sm {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    font-size: 1.5rem;
}

.chat-avatar-sm img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-header-info {
    flex: 1;
}

.chat-header-info strong {
    display: block;
    color: var(--text);
}

.chat-header-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.chat-messages {
    padding: 2rem 1.5rem;
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    background: var(--bg-deep);
}

.chat-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.chat-msg {
    margin-bottom: 1.25rem;
}

.msg-enviada {
    text-align: right;
}

.msg-bubble {
    display: inline-block;
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    position: relative;
}

.msg-recebida .msg-bubble {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.msg-enviada .msg-bubble {
    background: var(--gold);
    color: var(--bg-deep);
}

.msg-time {
    display: block;
    font-size: 0.75rem;
    margin-top: 0.35rem;
    opacity: 0.7;
}

.chat-input-area {
    padding: 1.5rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
}

.chat-input-area form.chat-form-send,
.admin-chat-box .chat-input-area form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.chat-input-area textarea,
.admin-chat-box .chat-input-area textarea {
    width: 100%;
    min-height: 60px;
    padding: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font-body);
    resize: vertical;
}

.chat-input-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.chat-input-actions label input[type="file"] {
    cursor: pointer;
}

.chat-anexo-feedback {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.chat-anexo-feedback-ok {
    color: var(--success, #22c55e);
}

.chat-anexo-preview {
    margin-top: 0.25rem;
    line-height: 0; /* evita gaps verticais */
}

.chat-anexo-preview:not(:empty) {
    padding: 0.5rem;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 6px;
    display: inline-block;
    max-width: 100%;
}

.chat-anexo-preview-media {
    display: block;
    /* preview bem compacto */
    width: 100px;
    height: 75px;
    border-radius: 4px;
    object-fit: cover;
}

.chat-anexo-preview video.chat-anexo-preview-media {
    max-width: 240px;
    max-height: 135px;
}

/* Attachment styling inside message bubbles */
.msg-bubble .msg-anexo {
    display: block;
    /* Standard thumbnail size for uniform display */
    width: 320px;
    height: 240px;
    min-width: 160px;
    min-height: 120px;
    border-radius: 8px;
    object-fit: cover; /* crop to fill the thumbnail box for consistent look */
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}

/* Ensure videos inside bubbles also constrained */
.msg-bubble video.msg-anexo {
    max-width: 360px;
    max-height: 240px;
}

/* Admin preview area uses the same thumbnail style but slightly larger */
#admin-chat-anexo-preview .chat-anexo-preview-media {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
}

/* Make the preview container visually nicer */
.chat-anexo-preview:not(:empty) img,
.chat-anexo-preview:not(:empty) video {
    display: block;
}

/* Responsive: scale thumbnails on small screens */
@media (max-width: 480px) {
    .msg-bubble .msg-anexo {
        width: 70vw;
        height: calc(70vw * 0.75); /* keep 4:3 ratio (240/320) */
    }
    #admin-chat-anexo-preview .chat-anexo-preview-media {
        width: 48vw;
        height: calc(48vw * 0.727); /* ~220x160 ratio */
    }
}

/* High-specificity override to ensure thumbnails stay fixed on desktop */
.chat-messages .msg-bubble .msg-anexo,
.admin-chat-box .msg-bubble .msg-anexo {
    width: 320px !important;
    height: 240px !important;
    object-fit: cover !important;
}


.chat-notice {
    text-align: center;
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Matches list */
.matches-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.match-card-full {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.match-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--gold-muted);
}

.match-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder-sm {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--bg-elevated);
}

.match-details {
    flex: 1;
}

.match-details h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 0.35rem;
    color: var(--text);
}

.match-meta {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.match-bio {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.match-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
    color: var(--text);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.notificacoes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notif-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.notif-card strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.notif-card p {
    margin: 0 0 0.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.notif-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0.8;
}

.notif-card-clickable .notif-card-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.notif-card-clickable .notif-card-header strong {
    flex: 1;
    margin-bottom: 0;
}

.notif-toggle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notif-card-body {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.notif-card-body p {
    margin-bottom: 1rem;
}

.notif-imagem-wrap {
    margin-top: 1rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-elevated);
}

.notif-imagem {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

/* Config */
.config-hint {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0 0 1rem;
    line-height: 1.5;
}

.config-link-esqueci {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.config-link-esqueci a {
    color: var(--gold);
    text-decoration: none;
}

.config-link-esqueci a:hover {
    text-decoration: underline;
}

.config-sections {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.config-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.config-card h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    margin: 0 0 1.5rem;
    color: var(--text);
}

.alert-perfil-success {
    scroll-margin-top: 1rem;
}

.perfil-success-msg {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-align: center;
}

.daddy-avatar-preview {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.daddy-avatar-preview span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.daddy-table-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.config-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.config-link-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: border-color var(--transition);
}

.config-link-item:hover {
    border-color: var(--gold);
}

.config-link-item span {
    font-size: 1.75rem;
}

.config-link-item strong {
    display: block;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.config-link-item small {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
}

/* Form footer */
.form-footer-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.form-footer-text a {
    color: var(--gold);
    text-decoration: none;
}

.form-footer-text a:hover {
    text-decoration: underline;
}

/* Logo SVG */
.logo-svg {
    color: var(--gold);
    transition: color var(--transition);
}

.logo-diamond {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.logo-heart {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}

.logo-diamond-fill {
    fill: var(--gold);
    fill-opacity: 0.4;
}

.logo:hover .logo-svg {
    color: var(--gold-light);
}

/* ============================================================================
   RESPONSIVO FINAL (Mobile iOS/Android)
   ============================================================================ */

@media (max-width: 992px) {
    .pagamento-wrapper {
        grid-template-columns: 1fr;
    }
    .match-card-full {
        flex-direction: column;
        align-items: center;
        height: calc(48vw * 0.75); /* adapt to 4:3-like ratio for compact preview */
    }
    .match-actions {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .site-header nav {
        gap: 0;
    }
    
    .site-header nav a {
        font-size: 0.85rem;
        margin-left: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    .hero {
        padding: 3rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .benefits {
        grid-template-columns: 1fr;
    }
    
    .perfil-wrapper {
        grid-template-columns: 1fr;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .provas-carrossel {
        grid-template-columns: 1fr;
    }
    
    .chat-messages {
        max-height: 500px;
    }
    
    .msg-bubble {
        max-width: 85%;
    }
    
    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 56px;
        height: 56px;
    }
    
    .admin-table {
        font-size: 0.85rem;
    }
    
    .admin-table th,
    .admin-table td {
        padding: 0.6rem 0.75rem;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1rem;
    }
    
    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.35rem;
    }
    
    .admin-nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .admin-main {
        padding: 1rem;
    }
    
    .admin-chat-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-user-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .admin-user-actions {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .site-header .logo-text {
        font-size: 1rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .perfil-avatar-large {
        width: 140px;
        height: 140px;
    }
    
    .galeria-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
