:root {
  --gradient-start:#FD297B; --gradient-mid:#FF5864; --gradient-end:#FF655B;
  --gradient:linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  --bg:#151217; --panel:#211b24; --card:#2a2130; --input-bg:rgba(255,255,255,0.06);
  --text:#fff; --text2:#d9cfe0; --muted:#ab9eb6;
  --line:rgba(255,255,255,0.10); --line2:rgba(255,255,255,0.05);
  --like:#00d2aa; --nope:#ff4757; --super:#00d2ff; --boost:#a855f7; --online:#22c55e;
  --font:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  --shadow:0 4px 24px rgba(0,0,0,0.35); --shadow-lg:0 10px 40px rgba(0,0,0,0.48);
  --sidebar-w:260px; --topbar-h:56px; --bottombar-h:64px;
  /* Spacing scale (4px base) */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px;
  --space-5:20px; --space-6:24px; --space-7:32px; --space-8:40px;
  /* Radius — note: v2 visual system later overrides these to bigger values */
  --radius-sm:8px; --radius:12px; --radius-lg:16px; --radius-xl:24px;
  /* Section vertical rhythm — use this for margin-bottom of major blocks */
  --section-gap:18px;
}

@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after{
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
    scroll-behavior:auto !important;
  }
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{font-size:16px;scroll-behavior:smooth}
body{font-family:var(--font);background:var(--bg);color:var(--text);min-height:100vh;-webkit-font-smoothing:antialiased;line-height:1.5}
a{color:var(--gradient-mid);text-decoration:none}
a:hover{color:var(--gradient-start)}
img{max-width:100%;display:block}
input,select,textarea,button{font-family:inherit;font-size:inherit}
input:focus,select:focus,textarea:focus,button:focus-visible{outline:2px solid var(--gradient-mid);outline-offset:2px}

.sidebar{width:var(--sidebar-w);background:var(--panel);border-right:1px solid var(--line);position:fixed;top:0;left:0;bottom:0;z-index:100;display:flex;flex-direction:column;overflow-y:auto}
.sidebar-logo{padding:18px 22px;border-bottom:1px solid var(--line);font-weight:800;font-size:20px;letter-spacing:-0.02em;background:var(--gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}
.sidebar-user{display:flex;align-items:center;gap:10px;padding:14px 22px;border-bottom:1px solid var(--line)}
.sidebar-user-info{flex:1;min-width:0}
.sidebar-user-name{font-weight:600;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-user-plan{font-size:11px;color:var(--gradient-mid);font-weight:600;text-transform:uppercase}
.sidebar-user-avatar-link{display:flex;flex-shrink:0;text-decoration:none;color:inherit;align-items:center}
.sidebar-user-label-topbar{display:none}
.sidebar-user-chevron{display:none;width:14px;height:14px;flex-shrink:0}
.sidebar-user-menu{display:none}
.sidebar-menu-item{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:10px;color:var(--text2);font-size:13px;font-weight:500;text-decoration:none;transition:all .15s}
.sidebar-menu-item:hover{background:rgba(255,255,255,0.06);color:#fff}
.sidebar-nav{flex:1;padding:10px;display:flex;flex-direction:column;gap:3px}
.nav-item{display:flex;align-items:center;gap:10px;padding:10px 14px;border-radius:var(--radius);color:var(--muted);font-size:13px;font-weight:500;text-decoration:none;transition:all .15s;background:none;border:none;cursor:pointer;width:100%;text-align:left}
.nav-item:hover{background:rgba(255,255,255,0.05);color:var(--text)}
.nav-item.active{background:var(--gradient);color:#fff;font-weight:600}
.nav-item svg{width:20px;height:20px;flex-shrink:0}
.sidebar-footer{padding:8px;border-top:1px solid var(--line)}
.divider{border:none;border-top:1px solid var(--line);margin:8px 0}

.topbar{position:fixed;top:0;left:0;right:0;height:var(--topbar-h);background:rgba(18,15,20,0.94);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:none;align-items:center;justify-content:space-between;padding:0 14px;z-index:200}
.bottombar{display:none;position:fixed;bottom:0;left:0;right:0;height:calc(var(--bottombar-h) + env(safe-area-inset-bottom, 0px));background:rgba(18,15,20,0.96);backdrop-filter:blur(12px);border-top:1px solid var(--line);z-index:200;align-items:stretch;justify-content:space-around;padding-bottom:env(safe-area-inset-bottom, 0px)}
.bottombar-item{flex:1 1 0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:6px 4px;color:var(--muted);font-size:10px;font-weight:500;text-decoration:none;transition:color .15s;min-width:0}
.bottombar-item span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;line-height:1.1}
.bottombar-item.active{color:var(--gradient-start)}
.bottombar-item svg{width:22px;height:22px;flex-shrink:0}

.main-content{margin-left:var(--sidebar-w);min-height:100vh;padding:24px}
.main-full{min-height:100vh;padding:24px;display:flex;align-items:center;justify-content:center}
.page-content{max-width:680px;margin:0 auto}
.page-content.full{max-width:100%}

.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:var(--section-gap);flex-wrap:wrap;gap:10px;min-width:0}
.page-header > *{min-width:0}
.page-title{font-size:clamp(20px,3vw,26px);font-weight:800;letter-spacing:-0.02em;min-width:0}
.section-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:var(--section-gap)}
.stat-card{padding:14px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);display:flex;flex-direction:column;gap:2px;min-width:0}
.stat-card-label{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.stat-card-value{font-size:19px;font-weight:800}
.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:end;margin-bottom:var(--section-gap)}
.toolbar .form-group{margin-bottom:0}
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chip{padding:4px 10px;border-radius:999px;background:var(--input-bg);color:var(--text2);font-size:11px}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 18px;border-radius:var(--radius);border:none;font-weight:600;font-size:13px;cursor:pointer;transition:all .15s;white-space:nowrap;text-decoration:none;line-height:1.4}
.btn:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
.btn-gradient{background:var(--gradient);color:#fff}
.btn-gradient:hover{box-shadow:0 4px 20px rgba(253,41,123,0.4)}
.btn-outline{background:transparent;color:var(--text);border:1px solid var(--line)}
.btn-outline:hover{background:rgba(255,255,255,0.05);border-color:var(--muted)}
.btn-danger{background:var(--nope);color:#fff}
.btn-success{background:var(--like);color:#000}
.btn-sm{padding:6px 12px;font-size:12px;border-radius:var(--radius-sm)}
.btn-lg{padding:14px 26px;font-size:15px;border-radius:var(--radius-lg)}
.btn:disabled{opacity:.5;cursor:not-allowed;transform:none}

.form-group{margin-bottom:14px}
.form-label{display:block;font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin-bottom:5px}
.form-input,.form-select{width:100%;padding:10px 14px;border-radius:var(--radius);border:1px solid var(--line);background:var(--input-bg);color:var(--text);font-size:14px;transition:border-color .15s}
.form-input:focus,.form-select:focus{border-color:var(--gradient-mid);outline:none}
.form-input::placeholder{color:var(--muted)}
.form-select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238892b0'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:34px;cursor:pointer}
textarea.form-input{resize:vertical;min-height:80px}
.form-error{font-size:12px;color:var(--nope);margin-top:4px}

.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden}
.card-body{padding:18px}
.card-title{font-weight:700;font-size:16px;margin-bottom:8px}

.avatar{border-radius:50%;object-fit:cover;background:var(--gradient);flex-shrink:0}
.avatar-sm{width:32px;height:32px}
.avatar-md{width:44px;height:44px}
.avatar-lg{width:72px;height:72px}
.avatar-xl{width:110px;height:110px}

.badge{display:inline-flex;align-items:center;gap:3px;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:600;background:rgba(255,255,255,0.08);color:var(--text2)}
.badge-premium{background:var(--gradient);color:#fff}
.badge-verified{background:rgba(0,210,255,0.15);color:var(--super)}
.badge-online{background:rgba(34,197,94,0.15);color:var(--online)}
.badge-gold{background:rgba(245,158,11,0.2);color:#f59e0b}
.badge-platinum{background:rgba(160,160,176,0.2);color:#a0a0b0}
.badge-diamond{background:rgba(0,210,255,0.2);color:var(--super)}

.flash{position:fixed;top:20px;right:20px;left:20px;z-index:999;padding:12px 20px;border-radius:var(--radius);font-size:13px;font-weight:500;box-shadow:var(--shadow-lg);animation:flashIn .3s ease;max-width:340px;margin-left:auto}
.flash-success{background:#0a3622;border:1px solid var(--online);color:#d1fae5}
.flash-error{background:#450a0a;border:1px solid var(--nope);color:#fecaca}
.flash-warning{background:#451a03;border:1px solid #f59e0b;color:#fef3c7}
@keyframes flashIn{from{opacity:0;transform:translateX(20px)}to{opacity:1;transform:translateX(0)}}

.auth-card{background:rgba(33,27,36,0.92);backdrop-filter:blur(20px);border:1px solid var(--line);border-radius:var(--radius-xl);padding:34px 26px;box-shadow:var(--shadow-lg);width:100%;max-width:420px;margin:0 auto}
.auth-logo{font-size:26px;font-weight:800;background:var(--gradient);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;text-align:center;margin-bottom:6px;letter-spacing:-0.02em}
.auth-title{text-align:center;margin-bottom:24px;font-size:18px}
.auth-links{display:flex;justify-content:space-between;margin-top:18px;font-size:13px}
.auth-links a{color:var(--muted)}
.auth-links a:hover{color:var(--gradient-mid)}
.auth-divider{display:flex;align-items:center;gap:10px;margin:22px 0;color:var(--muted);font-size:12px}
.auth-divider::before,.auth-divider::after{content:'';flex:1;height:1px;background:var(--line)}

.discover-card{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-xl);overflow:hidden;aspect-ratio:3/4;max-height:65vh;margin-bottom:20px;max-width:480px;margin-left:auto;margin-right:auto}
.discover-card-photo{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.discover-card-overlay{position:absolute;inset:0;background:linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 40%, transparent 100%)}
.discover-card-info{position:absolute;bottom:0;left:0;right:0;padding:22px 18px}
.discover-card-name{font-size:26px;font-weight:800;display:flex;align-items:center;gap:6px}
.discover-card-badges{display:flex;gap:5px;margin-top:6px;flex-wrap:wrap}
.discover-card-badge{padding:3px 8px;background:rgba(255,255,255,0.15);backdrop-filter:blur(6px);border-radius:999px;font-size:11px;font-weight:500}
.discover-actions{display:flex;justify-content:center;gap:14px;padding:8px 0 20px}
.dock-btn{width:50px;height:50px;border-radius:50%;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all .15s;box-shadow:0 2px 8px rgba(0,0,0,0.2);font-size:20px;text-decoration:none}
.dock-btn svg{width:22px;height:22px}
.dock-btn:hover{transform:scale(1.12)}
.dock-rewind{background:rgba(251,191,36,0.15);color:#fbbf24}
.dock-nope{background:rgba(255,71,87,0.15);color:var(--nope)}
.dock-nope:hover{background:var(--nope);color:#fff}
.dock-super{background:rgba(0,210,255,0.15);color:var(--super)}
.dock-super:hover{background:var(--super);color:#fff}
.dock-like{background:rgba(0,210,170,0.15);color:var(--like)}
.dock-like:hover{background:var(--like);color:#fff}
.dock-boost{background:rgba(168,85,247,0.15);color:var(--boost)}

.chat-messages{display:flex;flex-direction:column;gap:4px;padding:16px 0;min-height:300px;max-height:60vh;overflow-y:auto}
.chat-msg{display:flex;gap:6px;max-width:72%}
.chat-msg.sent{align-self:flex-end;flex-direction:row-reverse}
.chat-msg.received{align-self:flex-start}
.chat-msg-avatar{width:28px;height:28px;border-radius:50%;object-fit:cover;flex-shrink:0;background:var(--gradient);align-self:flex-end}
.chat-msg-bubble{padding:9px 13px;border-radius:16px;font-size:13px;line-height:1.45;word-break:break-word}
.chat-msg.sent .chat-msg-bubble{background:var(--gradient);color:#fff;border-bottom-right-radius:4px}
.chat-msg.received .chat-msg-bubble{background:var(--input-bg);border-bottom-left-radius:4px}
.chat-msg-time{font-size:10px;color:var(--muted);margin-top:3px}
.chat-msg.sent .chat-msg-time{text-align:right}
.chat-msg.system{align-self:center;font-size:11px;color:var(--muted);background:rgba(255,255,255,0.04);padding:4px 12px;border-radius:999px;margin:6px 0}
.chat-input-bar{display:flex;gap:8px;padding:12px 0;border-top:1px solid var(--line);margin-top:16px}
.chat-input{flex:1;padding:10px 14px;border-radius:22px;border:1px solid var(--line);background:var(--input-bg);color:var(--text);font-size:13px;resize:none}
.chat-input:focus{outline:none;border-color:var(--gradient-mid)}
.chat-send-btn{width:42px;height:42px;border-radius:50%;border:none;background:var(--gradient);color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.chat-send-btn:hover{transform:scale(1.08)}
.chat-header-info{display:flex;align-items:center;gap:8px}
.chat-header-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover}

.profile-header{display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap;margin-bottom:var(--section-gap)}
.profile-photo-main{width:110px;height:110px;border-radius:50%;object-fit:cover;box-shadow:var(--shadow-lg);flex-shrink:0}
.profile-name{font-size:22px;font-weight:800;display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}
.profile-bio{font-size:14px;color:var(--text2);margin-top:6px;line-height:1.6}
.profile-stats{display:flex;gap:16px;margin-top:10px;flex-wrap:wrap}
.profile-stat{text-align:center;min-width:0}
.profile-stat-value{font-size:17px;font-weight:700;color:var(--gradient-mid)}
.profile-stat-label{font-size:10px;color:var(--muted);text-transform:uppercase}
.profile-section{margin-bottom:var(--section-gap)}
.profile-section-title{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin-bottom:10px;font-weight:700}
.profile-tags{display:flex;flex-wrap:wrap;gap:5px}
.profile-tag{padding:5px 12px;background:var(--input-bg);border-radius:999px;font-size:12px;color:var(--text2)}
.profile-tag.highlight{background:var(--gradient);color:#fff}
.photos-scroll{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px}
.photos-scroll img{width:90px;height:120px;border-radius:var(--radius);object-fit:cover;flex-shrink:0}
.prompt-card{background:var(--input-bg);border-radius:var(--radius);padding:12px 14px;margin-bottom:8px}
.prompt-card .q{font-size:13px;font-weight:600;margin-bottom:4px}
.prompt-card .a{font-size:13px;color:var(--muted)}
.lifestyle-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:6px}
.lifestyle-item{display:flex;align-items:center;gap:6px;padding:8px 12px;background:var(--input-bg);border-radius:var(--radius);font-size:13px}

.matches-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.match-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;transition:transform .2s, box-shadow .2s, border-color .2s;text-decoration:none;color:inherit;min-width:0}
.match-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg);border-color:var(--gradient-mid)}
.match-card-photo{width:100%;aspect-ratio:1;object-fit:cover}
.match-card-info{padding:10px 12px}
.match-card-name{font-weight:600;font-size:13px}
.match-card-preview{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px}

.likes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.like-card{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;text-decoration:none;color:inherit;display:block;transition:transform .2s;min-width:0}
.like-card:hover{transform:scale(1.03)}
.like-card-photo{width:100%;aspect-ratio:3/4;object-fit:cover}
.like-card-info{padding:8px 10px}
.like-card-name{font-size:13px;font-weight:600}
.like-card-badge{position:absolute;top:6px;right:6px;padding:2px 7px;border-radius:999px;font-size:10px;font-weight:600;background:var(--super);color:#fff}

.premium-plans{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}
.premium-card{background:var(--panel);border:2px solid var(--line);border-radius:var(--radius-xl);padding:26px 22px;text-align:center;transition:all .2s;position:relative;overflow:hidden}
.premium-card:hover{transform:translateY(-3px);box-shadow:var(--shadow-lg)}
.premium-card.featured{border-color:var(--boost);box-shadow:0 0 28px rgba(168,85,247,0.12)}
.premium-card.featured::before{content:'MAIS POPULAR';position:absolute;top:14px;right:-30px;background:var(--boost);color:#fff;font-size:9px;font-weight:700;padding:2px 36px;transform:rotate(45deg);letter-spacing:.04em}
.plan-name{font-size:20px;font-weight:800;margin-bottom:2px}
.plan-theme{width:36px;height:3px;border-radius:2px;margin:0 auto 14px}
.plan-price{font-size:32px;font-weight:800;margin-bottom:2px}
.plan-price small{font-size:14px;font-weight:500;color:var(--muted)}
.plan-period{font-size:12px;color:var(--muted);margin-bottom:18px}
.plan-features{text-align:left;margin-bottom:20px}
.plan-feature{display:flex;align-items:center;gap:6px;padding:5px 0;font-size:12px;color:var(--text2)}
.plan-feature svg{width:14px;height:14px;color:var(--online);flex-shrink:0}
.plan-feature.disabled{color:var(--muted);text-decoration:line-through}
.plan-feature.disabled svg{color:var(--muted)}

.explore-categories{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px;margin-bottom:22px}
.explore-cat{aspect-ratio:1;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-lg);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:600;text-decoration:none;color:inherit;transition:all .2s}
.explore-cat:hover{transform:translateY(-3px);border-color:var(--gradient-mid)}
.explore-cat-icon{font-size:28px}
.groups-list{display:flex;flex-direction:column;gap:10px}
.group-card{display:flex;align-items:center;gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius-lg);padding:14px 16px;text-decoration:none;color:inherit;transition:border-color .2s, transform .2s;min-width:0}
.group-card:hover{border-color:var(--gradient-mid)}
.group-card-avatar{width:50px;height:50px;border-radius:var(--radius);background:var(--gradient);display:flex;align-items:center;justify-content:center;font-size:20px;color:#fff;font-weight:700;flex-shrink:0}
.group-card-avatar img{width:100%;height:100%;border-radius:var(--radius);object-fit:cover}
.group-card-info{flex:1;min-width:0}
.group-card-name{font-weight:600;font-size:14px}
.group-card-desc{font-size:12px;color:var(--muted);margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.group-card-meta{font-size:11px;color:var(--muted);margin-top:3px;display:flex;gap:10px}
.group-banner{width:100%;height:160px;object-fit:cover;border-radius:var(--radius-lg);margin-bottom:18px;background:var(--gradient)}
.group-members{display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:10px}
.group-member{text-align:center}
.group-member img{width:44px;height:44px;border-radius:50%;object-fit:cover;margin-bottom:3px}
.group-member .name{font-size:10px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.onboarding-progress{height:4px;background:var(--line);border-radius:2px;margin-bottom:24px;overflow:hidden}
.onboarding-progress-bar{height:100%;background:var(--gradient);border-radius:2px;transition:width .3s}
.onboarding-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}
.onboarding-photo-slot{aspect-ratio:3/4;background:var(--input-bg);border:2px dashed var(--line);border-radius:var(--radius);display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;font-size:28px;color:var(--muted)}
.onboarding-photo-slot img{width:100%;height:100%;object-fit:cover}
.interests-grid{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-bottom:18px}
.interest-chip{padding:7px 14px;border-radius:999px;border:1px solid var(--line);background:transparent;color:var(--text2);font-size:12px;cursor:pointer;transition:all .15s;text-decoration:none}
.interest-chip:hover{border-color:var(--gradient-mid)}
.interest-chip.selected{background:var(--gradient);border-color:transparent;color:#fff}

.tabs{display:flex;gap:3px;background:var(--bg);border-radius:var(--radius);padding:3px;margin-bottom:18px}
.tab{padding:7px 14px;border-radius:var(--radius-sm);border:none;background:none;color:var(--muted);font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;text-decoration:none}
.tab.active,.tab.active-link{background:var(--panel);color:var(--text)}

.transactions-table{width:100%;border-collapse:collapse;font-size:13px}
.transactions-table th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:8px 10px;border-bottom:1px solid var(--line)}
.transactions-table td{padding:8px 10px;border-bottom:1px solid var(--line2)}
.status{display:inline-block;padding:2px 8px;border-radius:999px;font-size:10px;font-weight:600}
.status-approved{background:rgba(34,197,94,0.15);color:var(--online)}
.status-pending{background:rgba(245,158,11,0.15);color:#f59e0b}
.status-rejected{background:rgba(255,71,87,0.15);color:var(--nope)}

.empty-state{text-align:center;padding:40px 20px;color:var(--muted);font-size:14px}
.empty-state svg{width:48px;height:48px;opacity:.4;margin-bottom:10px}
.spinner{width:28px;height:28px;border:3px solid var(--line);border-top-color:var(--gradient-mid);border-radius:50%;animation:spin .7s linear infinite;margin:30px auto}
@keyframes spin{to{transform:rotate(360deg)}}

/* ==========================================================================
   v2 visual system
   ========================================================================== */

:root {
  --shell-bg:#120f14;
  --shell-bg-2:#17131b;
  --shell-surface:rgba(25, 20, 29, 0.88);
  --shell-surface-strong:#201826;
  --shell-border:rgba(255,255,255,0.08);
  --shell-border-strong:rgba(255,255,255,0.14);
  --accent-cyan:#4dd6ff;
  --accent-gold:#ffcf5a;
  --accent-sage:#7ce0c3;
  --font-body:'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display:'Space Grotesk', 'Inter', system-ui, sans-serif;
  --radius-sm:10px;
  --radius:16px;
  --radius-lg:22px;
  --radius-xl:28px;
}

html{background:var(--shell-bg)}
body{
  background:
    linear-gradient(180deg, rgba(253,41,123,0.12) 0%, transparent 18%),
    linear-gradient(140deg, rgba(77,214,255,0.08) 0%, transparent 34%),
    linear-gradient(180deg, var(--shell-bg) 0%, var(--shell-bg-2) 100%);
  font-family:var(--font-body);
  color:var(--text);
  position:relative;
}
body::before{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,0.035) 48% 48.5%, transparent 48.5% 100%);
  background-size:28px 28px, 28px 28px, 100% 100%;
  opacity:.22;
  mask-image:linear-gradient(180deg, rgba(0,0,0,0.72), rgba(0,0,0,0.12));
}
body::after{
  content:'';
  position:fixed;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(115deg, rgba(253,41,123,0.14) 0%, rgba(255,88,100,0.06) 22%, transparent 48%, rgba(77,214,255,0.08) 78%, transparent 100%);
  opacity:.55;
  mix-blend-mode:screen;
}

h1,h2,h3,.auth-logo,.page-title,.sidebar-logo,.plan-name,.profile-name,.card-title,.nav-item,.bottombar-item{
  font-family:var(--font-display);
  letter-spacing:0;
}

.sidebar{
  background:var(--shell-surface);
  backdrop-filter:blur(22px);
  border-right:1px solid var(--shell-border);
}
.sidebar-logo{
  padding:22px;
  font-size:18px;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.14em;
}
.sidebar-user{padding:18px 22px;gap:12px}
.sidebar-user-avatar-link{display:flex;flex-shrink:0;text-decoration:none;gap:6px;align-items:center}
.sidebar-user-menu{
  display:none;
  position:absolute;top:100%;right:0;margin-top:8px;
  background:var(--shell-surface);backdrop-filter:blur(22px);
  border:1px solid var(--shell-border);border-radius:var(--radius);
  padding:8px;min-width:220px;box-shadow:var(--shadow-lg);z-index:300;
  flex-direction:column;gap:2px;
}
.sidebar-user-menu .divider{margin:4px 6px;opacity:.5}
.sidebar-menu-item{
  display:flex;align-items:center;gap:10px;
  padding:10px 14px;border-radius:10px;
  color:var(--text2);font-size:13px;font-weight:500;
  text-decoration:none;transition:all .15s;
}
.sidebar-menu-item:hover{background:rgba(255,255,255,0.06);color:#fff}
.sidebar-user-name{font-size:14px}
.sidebar-user-plan{margin-top:2px;letter-spacing:.08em}
.sidebar-nav{padding:12px}
.nav-item{
  padding:12px 14px;
  border:1px solid transparent;
  color:var(--text2);
}
.nav-item:hover{
  background:rgba(255,255,255,0.04);
  border-color:var(--shell-border);
  color:#fff;
}
.nav-item.active{
  background:linear-gradient(135deg, rgba(253,41,123,0.95), rgba(255,88,100,0.95));
  box-shadow:0 12px 30px rgba(253,41,123,0.18);
}
.sidebar-footer{padding:12px;border-top:1px solid var(--shell-border)}
.divider{opacity:.55}

.topbar{
  background:rgba(18,15,20,0.72);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--shell-border);
}
.bottombar{
  background:rgba(18,15,20,0.92);
  border-top:1px solid var(--shell-border);
}
.bottombar-item.active{color:#fff}

.main-content{
  padding:32px 36px;
}
.page-content{
  max-width:1200px;
  margin:0 auto;
}
.main-full{
  padding:32px 20px;
}
.page-header{
  padding:2px 2px 0;
}
.page-title{
  font-size:clamp(24px,3vw,34px);
  line-height:1.1;
}

.section-grid{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:12px;
}
.stat-card,
.card,
.auth-card,
.premium-card,
.match-card,
.like-card,
.group-card,
.discover-card,
.prompt-card,
.lifestyle-item,
.chat-msg-bubble,
.chat-msg.system,
.tabs,
.transaction-row,
.explore-cat{
  box-shadow:0 18px 45px rgba(0,0,0,0.22);
}
.stat-card,
.card,
.premium-card,
.match-card,
.like-card,
.group-card,
.prompt-card,
.explore-cat{
  background:var(--shell-surface);
  backdrop-filter:blur(18px);
  border-color:var(--shell-border);
}
.card{
  border-radius:var(--radius-lg);
}
.card-body{
  padding:20px;
}
.card-title{
  font-size:15px;
}

.btn{
  border-radius:999px;
  padding:11px 18px;
  font-family:var(--font-display);
  font-weight:600;
  border:1px solid transparent;
  box-shadow:none;
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(0,0,0,0.22);
}
.btn-gradient{
  background:linear-gradient(135deg, #ff2f7d 0%, #ff5f66 52%, #ff7b54 100%);
  box-shadow:0 16px 34px rgba(253,41,123,0.24);
}
.btn-outline{
  background:rgba(255,255,255,0.03);
  border-color:var(--shell-border);
}
.btn-outline:hover{
  border-color:var(--shell-border-strong);
  background:rgba(255,255,255,0.06);
}
.btn-danger{
  background:linear-gradient(135deg, #ff3f56 0%, #ff6a57 100%);
}
.btn-sm{padding:7px 12px;font-size:12px}
.btn-lg{padding:14px 24px;font-size:15px}

.form-input,.form-select{
  background:rgba(255,255,255,0.05);
  border-color:var(--shell-border);
  border-radius:14px;
  padding:12px 14px;
}
.form-input:hover,.form-select:hover{
  border-color:var(--shell-border-strong);
}
.form-input:focus,.form-select:focus{
  border-color:rgba(255,88,100,0.7);
  box-shadow:0 0 0 4px rgba(255,88,100,0.12);
}
.form-label{
  color:#c9bfd1;
  font-size:11px;
  letter-spacing:.12em;
}
.form-error{
  color:#ff97a0;
}

.auth-card{
  max-width:460px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03)),
    var(--shell-surface);
  border:1px solid var(--shell-border);
  border-radius:30px;
  padding:30px 26px;
}
.auth-logo{
  font-size:30px;
  letter-spacing:.08em;
  margin-bottom:10px;
}
.auth-title{
  font-family:var(--font-display);
  font-size:18px;
  color:#efe7f6;
}
.auth-links a{color:#cabfd7}
.auth-divider{margin:20px 0}

.tabs{
  background:rgba(255,255,255,0.04);
  border:1px solid var(--shell-border);
  border-radius:999px;
  padding:4px;
}
.tab{
  border-radius:999px;
  padding:8px 14px;
  color:#bdb0c8;
}
.tab.active,.tab.active-link{
  background:linear-gradient(135deg, rgba(253,41,123,0.96), rgba(255,88,100,0.96));
  color:#fff;
}

.discover-card{
  border-radius:32px;
  border:1px solid var(--shell-border);
  max-width:540px;
  box-shadow:0 26px 60px rgba(0,0,0,0.42);
}
.discover-card-overlay{
  background:linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.35) 42%, transparent 100%);
}
.discover-card-info{
  padding:24px 22px 20px;
}
.discover-card-name{
  font-size:30px;
  line-height:1;
}
.discover-card-badge,.badge,.like-card-badge{
  border:1px solid rgba(255,255,255,0.10);
  backdrop-filter:blur(10px);
}
.discover-card-badge{
  background:rgba(255,255,255,0.08);
  color:#fff;
}
.discover-actions{
  padding-top:12px;
  padding-bottom:18px;
}
.dock-btn{
  width:56px;
  height:56px;
  border:1px solid var(--shell-border);
  backdrop-filter:blur(10px);
}
.dock-rewind{background:rgba(251,191,36,0.12)}
.dock-nope{background:rgba(255,71,87,0.12)}
.dock-super{background:rgba(77,214,255,0.12)}
.dock-like{background:rgba(0,210,170,0.12)}
.dock-boost{background:rgba(168,85,247,0.14)}

.profile-header{
  gap:24px;
  padding:20px;
  margin-bottom:var(--section-gap);
  border:1px solid var(--shell-border);
  border-radius:var(--radius-xl);
  background:var(--shell-surface);
  backdrop-filter:blur(18px);
}
.profile-photo-main{
  width:126px;
  height:126px;
  border-radius:28px;
  border:1px solid var(--shell-border);
}
.profile-name{
  font-size:24px;
  margin-top:2px;
}
.profile-bio{
  max-width:58ch;
}
.profile-stats{
  gap:12px;
  flex-wrap:wrap;
}
.profile-stat{
  min-width:92px;
  padding:10px 12px;
  border-radius:18px;
  background:rgba(255,255,255,0.04);
  border:1px solid var(--shell-border);
}
.profile-stat-value{
  color:#fff;
}
.profile-section{
  padding:18px;
  border:1px solid var(--shell-border);
  border-radius:var(--radius-lg);
  background:var(--shell-surface);
  backdrop-filter:blur(18px);
}
.profile-section-title{
  margin-bottom:12px;
  color:#cabfd7;
}
.profile-tag,.lifestyle-item,.prompt-card{
  border:1px solid var(--shell-border);
}

.match-card,.like-card,.group-card{
  border-radius:20px;
}
.match-card-photo,.like-card-photo{
  filter:saturate(1.04) contrast(1.02);
}
.match-card-info,.like-card-info,.group-card-info{
  padding:12px 12px 14px;
}
.match-card-name,.like-card-name,.group-card-name{
  font-size:14px;
}

.premium-card{
  border-radius:28px;
  border:1px solid var(--shell-border);
  padding:24px 22px;
}
.premium-card.featured{
  border-color:rgba(168,85,247,0.55);
}
.plan-theme{
  opacity:.92;
}
.plan-price{
  font-family:var(--font-display);
}

.group-banner{
  border:1px solid var(--shell-border);
}

.onboarding-progress{
  background:rgba(255,255,255,0.08);
}
.onboarding-progress-bar{
  box-shadow:0 10px 18px rgba(253,41,123,0.28);
}
.onboarding-photo-slot{
  border-color:rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.04);
}

.empty-state{
  padding:44px 24px;
  border:1px dashed rgba(255,255,255,0.12);
  border-radius:28px;
  background:rgba(255,255,255,0.02);
}
.empty-state p{
  color:#cbbfd6;
}

.flash{
  border:1px solid var(--shell-border);
  backdrop-filter:blur(16px);
  border-radius:18px;
}

.chat-messages{
  padding:18px 0 14px;
}
.chat-msg{
  max-width:78%;
}
.chat-msg-bubble{
  border:1px solid var(--shell-border);
  background:rgba(255,255,255,0.05);
}
.chat-msg.sent .chat-msg-bubble{
  background:linear-gradient(135deg, rgba(253,41,123,0.92), rgba(255,88,100,0.92));
  border-color:transparent;
}
.chat-msg.received .chat-msg-bubble{
  background:rgba(255,255,255,0.04);
}
.chat-msg.system{
  border:1px solid var(--shell-border);
}
.chat-input-bar{
  padding-top:14px;
}
.chat-input{
  min-height:42px;
}
.chat-send-btn{
  box-shadow:0 14px 30px rgba(253,41,123,0.26);
}

.toolbar{
  align-items:center;
}
.chip{
  border:1px solid var(--shell-border);
  background:rgba(255,255,255,0.04);
  color:#e7dff0;
}
.stat-card-label{
  color:#c7bfd4;
}

.group-card-desc,.match-card-preview,.prompt-card .a,.lifestyle-item,.profile-tag,.stat-card-label,.form-input::placeholder,.form-select{
  color:#d5cbe0;
}

.bottombar-item{
  font-size:10px;
}

.page-content > .card + .card,
.page-content > .profile-section + .profile-section{
  margin-top:16px;
}

.auth-card .btn,
.premium-card .btn,
.card .btn{
  border-radius:16px;
}

@media(max-width:1079px){
  .page-content{max-width:100%}
  .profile-header{padding:18px 16px}
}

@media(max-width:479px){
  .page-title{
    font-size:24px;
  }
  .auth-card{
    border-radius:24px;
    padding:22px 16px;
  }
  .discover-card{
    border-radius:28px;
  }
  .discover-card-name{
    font-size:26px;
  }
  .dock-btn{
    width:48px;
    height:48px;
  }
}

/* Refino das telas principais */
.action-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.page-kicker{
  color:#cbbfd7;
  font-size:13px;
  margin-top:5px;
}
.profile-hero{
  display:grid;
  grid-template-columns:160px minmax(0,1fr);
  gap:22px;
  align-items:end;
  padding:22px;
  border:1px solid var(--shell-border);
  border-radius:30px;
  background:
    linear-gradient(135deg, rgba(253,41,123,0.12), rgba(77,214,255,0.06)),
    var(--shell-surface);
  backdrop-filter:blur(18px);
  box-shadow:0 24px 58px rgba(0,0,0,0.30);
  margin-bottom:var(--section-gap);
}
.profile-hero .profile-photo-main{
  width:160px;
  height:200px;
  border-radius:26px;
}
.profile-hero-body{
  min-width:0;
}
.profile-meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:10px 0 0;
}
.profile-meta span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--shell-border);
  background:rgba(255,255,255,0.04);
  color:#e7dff0;
  font-size:12px;
}
.profile-content-grid{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:16px;
  align-items:start;
}
.profile-content-grid > *{min-width:0}
.profile-content-grid .profile-section{
  margin-bottom:16px;
}
.profile-column{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.photo-tile{
  position:relative;
  flex-shrink:0;
}
.photos-scroll{
  gap:10px;
}
.photos-scroll img{
  width:118px;
  height:154px;
  border-radius:18px;
  border:1px solid var(--shell-border);
  box-shadow:0 12px 24px rgba(0,0,0,0.22);
}
.photo-actions{
  display:flex;
  gap:4px;
  position:absolute;
  left:7px;
  right:7px;
  bottom:7px;
}
.photo-actions .btn{
  min-width:32px;
  height:28px;
  padding:0 8px;
  border-radius:999px;
}
.inline-form{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:10px;
}
.inline-form .form-input{
  width:auto;
}
.section-heading-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:12px;
}
.section-heading-row .profile-section-title{
  margin-bottom:0;
}
.public-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.public-actions form{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.dm-panel{
  margin-top:14px;
  padding:12px;
  border-radius:18px;
  border:1px solid var(--shell-border);
  background:rgba(255,255,255,0.04);
}
.dm-panel summary{
  cursor:pointer;
  color:#e7dff0;
  font-size:12px;
  font-weight:700;
}

.chat-shell{
  min-height:calc(100vh - 120px - env(safe-area-inset-bottom, 0px));
  display:grid;
  grid-template-rows:auto minmax(340px,1fr) auto auto;
  border:1px solid var(--shell-border);
  border-radius:30px;
  overflow:hidden;
  background:rgba(18,15,20,0.58);
  backdrop-filter:blur(18px);
  box-shadow:0 24px 58px rgba(0,0,0,0.30);
  min-width:0;
}
.chat-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--shell-border);
  background:rgba(255,255,255,0.03);
}
.chat-person{
  display:flex;
  gap:10px;
  align-items:center;
  min-width:0;
}
.chat-person-name{
  font-family:var(--font-display);
  font-size:16px;
  font-weight:700;
}
.chat-person-subtitle{
  color:#cbbfd7;
  font-size:11px;
}
.chat-shell .chat-messages{
  padding:18px;
  max-height:none;
  min-height:0;
}
.chat-shell .chat-input-bar{
  margin:0;
  padding:14px 16px;
  border-top:1px solid var(--shell-border);
  background:rgba(255,255,255,0.03);
}
.chat-hint{
  padding:0 16px 14px;
  color:#a99bb6;
  font-size:11px;
  text-align:center;
}
.attach-btn{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid var(--shell-border);
  background:rgba(255,255,255,0.04);
  cursor:pointer;
}
.attach-btn svg{
  width:21px;
  height:21px;
  color:#d7ccdf;
}

.explore-hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,420px);
  gap:18px;
  align-items:end;
  padding:22px;
  border:1px solid var(--shell-border);
  border-radius:30px;
  background:
    linear-gradient(135deg, rgba(77,214,255,0.12), rgba(253,41,123,0.10)),
    var(--shell-surface);
  margin-bottom:var(--section-gap);
  box-shadow:0 24px 58px rgba(0,0,0,0.28);
}
.explore-hero > *{min-width:0}
.explore-hero h1{
  margin:0;
}
.explore-hero p{
  color:#d6cadf;
  margin:8px 0 0;
  max-width:56ch;
}
.create-group-card{
  padding:14px;
  border-radius:22px;
  border:1px solid var(--shell-border);
  background:rgba(255,255,255,0.05);
}
.create-group-card .toolbar{
  margin:0;
}
.explore-search{
  margin:0 0 16px;
  position:relative;
}
.explore-search .form-input{
  padding-left:42px;
}
.explore-search::before{
  content:'';
  width:16px;
  height:16px;
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  border:2px solid #b9afc4;
  border-radius:50%;
}
.explore-search::after{
  content:'';
  width:7px;
  height:2px;
  position:absolute;
  left:28px;
  top:calc(50% + 9px);
  background:#b9afc4;
  transform:rotate(45deg);
  border-radius:2px;
}
.explore-categories{
  grid-template-columns:repeat(auto-fit,minmax(132px,1fr));
}
.explore-cat{
  aspect-ratio:auto;
  min-height:108px;
  align-items:flex-start;
  padding:16px;
  justify-content:space-between;
}
.explore-cat-icon{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:14px;
  background:rgba(255,255,255,0.06);
  font-size:20px;
}
.groups-list{
  gap:12px;
}
.group-card{
  padding:14px;
}
.group-card-avatar{
  width:58px;
  height:58px;
  border-radius:18px;
}
.group-card-meta{
  align-items:center;
  flex-wrap:wrap;
}
.group-detail-hero{
  padding:20px;
  border:1px solid var(--shell-border);
  border-radius:30px;
  background:var(--shell-surface);
  margin-bottom:var(--section-gap);
}

@media(max-width:860px){
  .profile-hero,
  .explore-hero{
    grid-template-columns:1fr;
  }
  .profile-hero .profile-photo-main{
    width:100%;
    height:auto;
    aspect-ratio:4/3;
  }
  .profile-content-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:560px){
  .action-row,
  .public-actions{
    width:100%;
  }
  .action-row .btn,
  .public-actions .btn,
  .public-actions form,
  .public-actions .form-select{
    width:100%;
  }
  .chat-shell{
    border-radius:24px;
  }
  .chat-toolbar{
    align-items:flex-start;
    flex-direction:column;
  }
  .chat-msg{
    max-width:92%;
  }
}

/* Swipe refinado */
.swipe-filter-panel{
  display:grid;
  grid-template-columns:1.2fr .8fr .9fr auto auto auto;
  gap:10px;
  align-items:end;
  margin-bottom:14px;
  padding:12px;
  border:1px solid var(--shell-border);
  border-radius:24px;
  background:rgba(255,255,255,0.035);
  backdrop-filter:blur(16px);
}
.swipe-filter-panel .form-group{
  margin:0;
}
.swipe-filter-range{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.toggle-chip{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--shell-border);
  color:#efe7f6;
  background:rgba(255,255,255,0.04);
  font-size:12px;
  cursor:pointer;
}
.toggle-chip input{
  accent-color:#ff5864;
}
.swipe-status-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  gap:10px;
  margin-bottom:16px;
}
.swipe-status{
  padding:12px 14px;
  border:1px solid var(--shell-border);
  border-radius:18px;
  background:rgba(255,255,255,0.04);
}
.swipe-status span{
  display:block;
  font-size:11px;
  color:#cbbfd7;
  text-transform:uppercase;
}
.swipe-status strong{
  display:block;
  margin-top:2px;
  font-family:var(--font-display);
  font-size:18px;
  color:#fff;
}
.swipe-status.danger strong{
  color:#ff97a0;
}
.swipe-panel-heading{
  font-family:var(--font-display);
  font-size:14px;
  font-weight:700;
  color:#fff;
  margin-bottom:12px;
}
.swipe-panel-card{
  padding:18px;
  border:1px solid var(--shell-border);
  border-radius:28px;
  background:var(--shell-surface);
  backdrop-filter:blur(18px);
  box-shadow:0 24px 58px rgba(0,0,0,0.24);
}
.swipe-info-left .swipe-status-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
}
.swipe-mobile-info-btn{
  display:none;
  width:100%;
  margin-top:12px;
}
.swipe-center-col{min-width:0}
.swipe-layout{
  display:grid;
  grid-template-columns:minmax(0,240px) minmax(0,480px) minmax(0,340px);
  gap:20px;
  align-items:start;
  justify-content:center;
}
.swipe-layout > *{min-width:0}
.swipe-deck{
  position:relative;
  min-width:0;
}
.swipe-stack-shadow{
  position:absolute;
  left:22px;
  right:22px;
  height:96%;
  top:18px;
  border-radius:34px;
  border:1px solid var(--shell-border);
  background:rgba(255,255,255,0.035);
  transform:rotate(-3deg);
  z-index:0;
}
.swipe-stack-shadow.two{
  left:34px;
  right:34px;
  top:30px;
  transform:rotate(3deg);
  opacity:.6;
}
.swipe-card{
  z-index:1;
  margin-bottom:14px;
  max-width:560px;
  min-height:620px;
}
.photo-progress{
  position:absolute;
  top:12px;
  left:18px;
  right:18px;
  display:flex;
  gap:6px;
  z-index:4;
  pointer-events:none;
}
.photo-progress span{
  flex:1;
  height:4px;
  border-radius:999px;
  background:rgba(255,255,255,0.30);
}
.photo-progress span.active{
  background:#fff;
}
.photo-tap-zone{
  position:absolute;
  top:0;
  bottom:0;
  width:22%;
  z-index:2;
  cursor:pointer;
}
.photo-tap-zone.left{left:0}
.photo-tap-zone.right{right:0}
.swipe-profile-panel{
  padding:18px;
  border:1px solid var(--shell-border);
  border-radius:28px;
  background:var(--shell-surface);
  backdrop-filter:blur(18px);
  box-shadow:0 24px 58px rgba(0,0,0,0.24);
}
.swipe-profile-panel p{
  margin:0;
  color:#e1d8e8;
  line-height:1.65;
  font-size:14px;
}
.swipe-panel-facts{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:16px;
}
.swipe-panel-facts span{
  min-height:38px;
  display:flex;
  align-items:center;
  padding:8px 10px;
  border-radius:14px;
  border:1px solid var(--shell-border);
  background:rgba(255,255,255,0.04);
  color:#efe7f6;
  font-size:12px;
}
.swipe-layout .discover-actions{
  position:relative;
  z-index:3;
}
.swipe-layout .dock-btn{
  background:rgba(18,15,20,0.78);
}
.swipe-layout .dock-like:hover{
  box-shadow:0 0 0 8px rgba(0,210,170,0.10), 0 16px 30px rgba(0,0,0,0.28);
}
.swipe-layout .dock-nope:hover{
  box-shadow:0 0 0 8px rgba(255,71,87,0.10), 0 16px 30px rgba(0,0,0,0.28);
}

/* Perfil refinado */
.profile-hero{
  grid-template-columns:minmax(180px,220px) minmax(0,1fr);
  align-items:stretch;
}
.profile-hero-photo{
  position:relative;
  width:100%;
  height:100%;
  min-height:260px;
  border-radius:26px;
  overflow:hidden;
}
.profile-hero-photo .profile-photo-main{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:26px;
  border:1px solid var(--shell-border);
}
.profile-photo-counter{
  position:absolute;
  bottom:10px;
  right:10px;
  background:rgba(0,0,0,0.65);
  color:#fff;
  font-size:11px;
  font-weight:600;
  padding:4px 10px;
  border-radius:999px;
  backdrop-filter:blur(4px);
  z-index:2;
}
.profile-photo-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:32px;
  height:32px;
  border:none;
  border-radius:50%;
  background:rgba(0,0,0,0.55);
  color:#fff;
  font-size:18px;
  line-height:1;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
  transition:background .15s;
}
.profile-photo-nav:hover{background:rgba(0,0,0,0.78)}
.profile-photo-nav.left{left:8px}
.profile-photo-nav.right{right:8px}
.profile-hero .profile-photo-main{
  width:100%;
  height:100%;
  min-height:260px;
  aspect-ratio:4/5;
}
.profile-hero-body{
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.profile-hero .profile-stats{
  margin-top:16px;
}
.profile-section{
  position:relative;
}
.profile-section::before{
  content:'';
  position:absolute;
  left:18px;
  right:18px;
  top:0;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,0.20), transparent);
}
.profile-tags{
  gap:8px;
}
.profile-tag{
  padding:7px 12px;
  border-radius:999px;
}
.prompt-card{
  padding:14px 16px;
}
.prompt-card .q{
  font-family:var(--font-display);
  color:#fff;
}
.lifestyle-grid{
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:10px;
}
.lifestyle-item{
  min-height:44px;
  border-radius:16px;
}

@media(max-width:1439px){
  .swipe-layout{
    grid-template-columns:minmax(0,1fr) minmax(0,320px);
    gap:20px;
  }
  .swipe-center-col{
    grid-column:1;
    grid-row:1 / 3;
  }
  .swipe-info-left{
    grid-column:2;
    grid-row:1;
  }
  .swipe-profile-panel{
    grid-column:2;
    grid-row:2;
  }
  .swipe-info-left .swipe-status-grid{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }
  .swipe-panel-heading{display:block}
}

@media(max-width:980px){
  .swipe-filter-panel{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .swipe-filter-panel .btn{
    grid-column:1/-1;
  }
  .swipe-layout{
    grid-template-columns:1fr;
  }
  .swipe-info-left{grid-column:auto;grid-row:auto;order:2}
  .swipe-center-col{grid-column:auto;grid-row:auto}
  .swipe-profile-panel{grid-column:auto;grid-row:auto;order:2}
  .swipe-info-left .swipe-status-grid{
    grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  }
  .swipe-panel-heading{display:block}
}

@media(max-width:620px){
  .swipe-filter-panel{
    grid-template-columns:1fr;
    border-radius:20px;
  }
  .swipe-info-left .swipe-status-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .swipe-card{
    min-height:520px;
  }
  .swipe-stack-shadow{
    display:none;
  }
  .swipe-panel-facts{
    grid-template-columns:1fr;
  }
  .profile-hero{
    grid-template-columns:1fr;
  }
  .profile-hero .profile-photo-main{
    min-height:0;
    aspect-ratio:3/4;
  }
}

/* ==========================================================================
   JS-enhanced UI components
   ========================================================================== */

/* Premium lock overlay */
.lm-premium-lock {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}
.lm-premium-lock > * {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}
.lm-premium-lock::after {
  content: '🔒 Premium';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-display);
  backdrop-filter: blur(2px);
  border-radius: inherit;
  z-index: 2;
}

/* Poll card */
.poll-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--shell-border);
  border-radius: 16px;
  padding: 14px;
  min-width: 220px;
  max-width: 320px;
}
.poll-option {
  cursor: pointer;
  transition: opacity .15s;
}
.poll-option:hover {
  opacity: .8;
}

/* Formatting bar */
.formatting-bar {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  margin-bottom: 4px;
}

/* Reply preview */
.reply-preview {
  border-left: 3px solid var(--gradient-mid);
  padding: 4px 10px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border-radius: 0 6px 6px 0;
}

/* WebSocket status indicator */
#ws-status.online {
  color: var(--online);
}
#ws-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 4px;
  vertical-align: middle;
}

/* Typing indicator animation */
@keyframes typingDots {
  0%, 20% { opacity: .2; }
  50% { opacity: 1; }
  100% { opacity: .2; }
}

/* Swipe stamp */
#swipe-stamp {
  font-family: var(--font-display);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  font-size: 36px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
  pointer-events: none;
  user-select: none;
  transition: opacity .15s;
}

/* Period selector active */
.period-option.active {
  background: var(--gradient) !important;
  color: #fff !important;
}

/* Premium gate blur */
.premium-gate {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
  position: relative;
}
.premium-gate-wrapper {
  position: relative;
}
.premium-gate-wrapper::after {
  content: '🔒 Desbloqueie com Premium';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-weight: 600;
  border-radius: 16px;
  z-index: 2;
  font-size: 14px;
}

/* Multi-select mode highlight */
.chat-msg[style*="rgba(253,41,123,0.15)"] {
  outline: 2px solid var(--gradient-start);
  outline-offset: -2px;
}

/* Activity filter active */
.activity-filter.active {
  background: var(--gradient) !important;
  color: #fff !important;
}

/* Profile quick edit hint */
.profile-name-text[data-field]:hover::after,
.profile-bio-text[data-field]:hover::after,
.profile-profession-text[data-field]:hover::after {
  content: ' ✏️';
  font-size: 12px;
  opacity: .5;
}

/* Enhanced empty states */
.empty-state .btn-gradient {
  margin-top: 14px;
}

/* Photo carousel cursor */
.profile-photo-main {
  transition: transform .2s;
}
.profile-photo-main:active {
  transform: scale(0.98);
}

/* Filter sheet modal */
#filter-sheet .form-group {
  margin-bottom: 8px;
}
#filter-sheet .divider {
  opacity: .4;
}

/* Admin panel member items */
#admin-panel .member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--shell-border);
  font-size: 13px;
}

/* Notification cards */
.notification-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--shell-surface);
  border: 1px solid var(--shell-border);
  border-radius: 16px;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  transition: all .2s;
  backdrop-filter: blur(18px);
}
.notification-card:hover {
  border-color: var(--gradient-mid);
}
.notification-card .icon {
  font-size: 24px;
  flex-shrink: 0;
}
.notification-card .body {
  flex: 1;
  min-width: 0;
}
.notification-card .title {
  font-weight: 600;
  font-size: 14px;
}
.notification-card .time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* Responsive tweaks for new components */
@media(max-width:480px){
  .chat-input-bar {
    flex-wrap: wrap;
    gap: 6px;
  }
  .chat-input-bar .attach-btn {
    width: 34px;
    height: 34px;
  }
  #filter-sheet .form-group {
    margin-bottom: 6px;
  }
}

/* ── Refinamentos finais responsivos ── */
@media(max-width:1079px){
  .swipe-card{min-height:480px}
  .profile-photo-nav{width:28px;height:28px;font-size:16px}
  .profile-photo-counter{font-size:10px;padding:3px 8px}
}
@media(max-width:560px){
  .chat-toolbar{padding:10px 12px;gap:6px}
  .chat-toolbar .btn-sm{padding:5px 8px;font-size:11px}
  .chat-person-name{font-size:14px}
  .chat-shell .chat-messages{padding:12px}
  .chat-shell .chat-input-bar{padding:10px 12px}
  .group-card{padding:10px;gap:8px}
  .group-card-avatar{width:46px;height:46px;border-radius:14px}
  .matches-grid{gap:8px}
  .match-card-info{padding:8px 10px}
  .profile-hero-photo{min-height:240px}
}
@media(max-width:420px){
  .bottombar-item{font-size:9px}
  .bottombar-item svg{width:20px;height:20px}
  .swipe-info-left .swipe-status-grid{grid-template-columns:1fr 1fr}
  .lifestyle-grid{grid-template-columns:1fr 1fr}
  .profile-hero{padding:14px}
  .profile-section{padding:14px}
}

/* ════════════════════════════════════════════════════════════════════════
   LIGHT THEME — Ativado com data-theme="light" no <html>
   Cores idênticas ao app Android (Theme.kt — LoveMatchColors)
   ════════════════════════════════════════════════════════════════════════ */

[data-theme="light"] {
  --bg:#F5F6FA;
  --panel:#FFFFFF;
  --card:#FFFFFF;
  --input-bg:#F3F4F7;
  --text:#21262E;
  --text2:#7D8496;
  --muted:#979EAF;
  --line:#E4E6EC;
  --line2:#EFF1F5;
  --shell-bg:#F5F6FA;
  --shell-bg-2:#FFFFFF;
  --shell-surface:#FFFFFF;
  --shell-surface-strong:#F5F6FA;
  --shell-border:#E4E6EC;
  --shell-border-strong:#D4D6DC;
  --gradient-start:#FD267A;
  --gradient-mid:#FF3B6F;
  --gradient-end:#FF6036;
  --gradient:linear-gradient(135deg, var(--gradient-start), var(--gradient-mid), var(--gradient-end));
  --shadow:0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:0 10px 40px rgba(0,0,0,0.12);
}

[data-theme="light"] html{background:var(--shell-bg)}
[data-theme="light"] body{
  background:var(--shell-bg);
  color:var(--text);
}
[data-theme="light"] body::before,
[data-theme="light"] body::after{display:none}

/* Glass → white opaque */
[data-theme="light"] .topbar{background:rgba(255,255,255,0.92)}
[data-theme="light"] .bottombar{background:rgba(255,255,255,0.95)}
[data-theme="light"] .auth-card{background:rgba(255,255,255,0.94)}
[data-theme="light"] .sidebar{backdrop-filter:blur(12px);background:rgba(255,255,255,0.92)}
[data-theme="light"] .sidebar-user-menu{background:#FFFFFF}
[data-theme="light"] .swipe-layout .dock-btn{background:rgba(255,255,255,0.90)}
[data-theme="light"] .nav-item.active{color:#fff}

/* Hover states — dark → light */
[data-theme="light"] .nav-item:hover{background:rgba(0,0,0,0.04);color:var(--text)}
[data-theme="light"] .sidebar-menu-item:hover{background:rgba(0,0,0,0.04);color:var(--text)}
[data-theme="light"] .chip{background:rgba(0,0,0,0.04);color:var(--text2)}
[data-theme="light"] .swipe-status{background:rgba(0,0,0,0.04)}
[data-theme="light"] .swipe-panel-facts span{background:rgba(0,0,0,0.04);color:var(--text2)}
[data-theme="light"] .chat-msg-bubble{background:rgba(0,0,0,0.04)}
[data-theme="light"] .chat-msg.received .chat-msg-bubble{background:rgba(0,0,0,0.04)}
[data-theme="light"] .profile-tag{background:rgba(0,0,0,0.04);color:var(--text2)}
[data-theme="light"] .lifestyle-item{background:rgba(0,0,0,0.04);border-color:var(--shell-border)}
[data-theme="light"] .empty-state{background:rgba(0,0,0,0.02);border-color:var(--shell-border)}
[data-theme="light"] .form-input{color:var(--text)}
[data-theme="light"] .form-input::placeholder{color:var(--muted)}
[data-theme="light"] .swipe-stack-shadow{background:rgba(0,0,0,0.03);border-color:var(--shell-border)}

/* Text color overrides for hardcoded dark values */
[data-theme="light"] .swipe-status span{color:var(--muted)}
[data-theme="light"] .swipe-status strong{color:var(--text)}
[data-theme="light"] .swipe-profile-panel p{color:var(--text2)}
[data-theme="light"] .swipe-panel-heading{color:var(--text)}
[data-theme="light"] .chip{color:var(--text2)}
[data-theme="light"] .stat-card-label{color:var(--muted)}
[data-theme="light"] .empty-state p{color:var(--text2)}
[data-theme="light"] .group-card-desc,
[data-theme="light"] .match-card-preview,
[data-theme="light"] .prompt-card .a,
[data-theme="light"] .profile-tag,
[data-theme="light"] .form-select{color:var(--text2)}
[data-theme="light"] .flash{border-color:var(--shell-border)}
[data-theme="light"] .swipe-panel-card{box-shadow:0 4px 24px rgba(0,0,0,0.08)}

/* Theme toggle button styles */
.theme-toggle .icon-sun{display:none;width:18px;height:18px;flex-shrink:0}
.theme-toggle .icon-moon{display:inline;width:18px;height:18px;flex-shrink:0}
[data-theme="light"] .theme-toggle .icon-sun{display:inline}
[data-theme="light"] .theme-toggle .icon-moon{display:none}

/* ════════════════════════════════════════════════════════════════════════
   RESPONSIVIDADE — 4 ESTÁGIOS (no final para ter prioridade no cascade)
   ≥1440px         topbar horizontal no topo
   1100–1439px     sidebar esquerda completa (ícone + nome) — comportamento padrão
   768–1099px      sidebar esquerda compacta (só ícone)
   ≤767px          bottombar inferior
   ════════════════════════════════════════════════════════════════════════ */

/* Estágio 1 — ≥1440px: topbar horizontal */
@media(min-width:1440px){
  .sidebar{
    position:fixed;top:0;left:0;right:0;bottom:auto;
    width:100%;height:64px;
    flex-direction:row;align-items:center;
    overflow:visible;
    border-right:none;
    border-bottom:1px solid var(--shell-border);
    padding:0 18px;
    gap:0;
  }
  .sidebar-logo{
    border-bottom:none;
    padding:0 18px 0 4px;
    font-size:15px;line-height:1;
    flex-shrink:0;white-space:nowrap;
  }
  .sidebar-user{
    position:relative;
    order:2;
    border-bottom:none;
    padding:0 6px 0 12px;
    margin-left:0;flex-shrink:0;gap:10px;
  }
  .sidebar-user-label-topbar{display:block;font-size:12px;font-weight:600;margin-left:2px}
  .sidebar-user-chevron{display:block}
  .sidebar-user:hover .sidebar-user-menu{display:flex}
  .sidebar-user-info{display:none}
  .sidebar-nav{
    order:0;
    flex-direction:row;flex:1;
    padding:0 8px;gap:2px;overflow:hidden;
  }
  .nav-item{
    padding:8px 12px;gap:6px;
    font-size:12px;width:auto;white-space:nowrap;
    border:1px solid transparent;
  }
  .nav-item svg{width:18px;height:18px}
  .divider{display:none}
  .sidebar-user-menu .divider{display:block}
  .sidebar-footer{display:none}
  .main-content{
    margin-left:0;
    padding:calc(64px + 28px) 36px 32px;
  }
  .swipe-center-col{
    margin-top:-60px;
  }
  .page-header{
    margin-bottom:6px;
  }
  .page-header .page-kicker{
    display:none;
  }
  .page-header .page-title{
    font-size:18px;
  }
  #cooldown-banner{
    margin-bottom:4px;
  }
}

/* Estágio 2 — 1100–1439px: sidebar esquerda completa */
/* Comportamento padrão (sidebar 260px à esquerda). Sem overrides extras. */

/* Estágio 3 — 768–1099px: sidebar esquerda compacta (só ícones) */
@media(min-width:768px) and (max-width:1099px){
  :root{--sidebar-w:68px}
  .sidebar{overflow-x:hidden}
  .sidebar-logo{display:none}
  .sidebar-user{
    padding:14px 0;justify-content:center;gap:0;
    border-bottom:1px solid var(--shell-border);
  }
  .sidebar-user-info{display:none}
  .sidebar-nav{padding:8px 6px;gap:3px}
  .nav-item{
    justify-content:center;padding:11px 0;gap:0;width:100%;
    border:1px solid transparent;
  }
  .nav-item span{display:none}
  .nav-item svg{width:22px;height:22px}
  .sidebar-footer{padding:6px}
  .divider{margin:6px 8px}
  .main-content{padding:28px 24px}
}

/* Estágio 4 — ≤767px: bottombar inferior */
@media(max-width:767px){
  .sidebar{display:none}
  .topbar{display:flex}
  .bottombar{display:flex}
  .main-content{
    margin-left:0;
    padding:calc(var(--topbar-h) + 14px) 14px calc(var(--bottombar-h) + 14px + env(safe-area-inset-bottom, 0px))
  }
  .discover-card{max-height:55vh}
  .swipe-profile-panel{display:none}
  .swipe-mobile-info-btn{display:inline-flex}
  .swipe-info-left{background:transparent;border:none;box-shadow:none;padding:0;backdrop-filter:none}
  .chat-messages{max-height:50vh}
  .matches-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .likes-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  .premium-plans{grid-template-columns:1fr}
  .discover-actions{gap:8px}
  .dock-btn{width:44px;height:44px}
  .dock-btn svg{width:20px;height:20px}
  .profile-header{flex-direction:column;align-items:center;text-align:center}
  .profile-stats{justify-content:center}
  .auth-card{padding:26px 18px}
  .onboarding-photos{grid-template-columns:repeat(2,1fr)}
}
