:root {
    --color-primary:    #E91E8C;
    --color-secondary:  #9C27B0;
    --color-accent:     #9C27B0;
    --color-bg:         #f5f5f5;
    --color-card:       #ffffff;
    --color-surface:    #ffffff;
    --color-text:       #1a1a1a;
    --color-text-muted: #777777;
    --color-border:     #e0e0e0;
    --color-navbar-bg:  #ffffff;
    --color-online:     #4caf50;
    --color-gold:       #ffc107;
    --font-main:        system-ui, -apple-system, sans-serif;
    --navbar-h:         64px;
    --mobile-nav-h:     60px;
    --radius-card:      16px;
    --radius-btn:       10px;
    --radius-input:     10px;
    --shadow-card:      0 2px 12px rgba(0,0,0,0.08);
    --shadow-elevated:  0 8px 32px rgba(0,0,0,0.12);
}

/* ═══════════════════════════════════════════════════════
   FLUX DATING — app.css
   Design: Belloo-inspired with Pink Love default theme
   ═══════════════════════════════════════════════════════ */

/* ─── CSS Variables (overridden by ThemeManager) ──────── */
:root {
    --color-primary:     #E91E8C;
    --color-primary-dark:#C4177A;
    --color-primary-light: #f06eb5;
    --color-secondary:   #9C27B0;
    --color-accent:      #FF4081;
    --color-bg:          #f5f5f5;
    --color-surface:     #ffffff;
    --color-card:        #ffffff;
    --color-border:      #e8e8e8;
    --color-text:        #1a1a1a;
    --color-text-muted:  #888888;
    --color-navbar-bg:   #ffffff;
    --color-navbar-text: #1a1a1a;
    --color-sidebar-bg:  #ffffff;
    --color-online:      #4caf50;
    --color-danger:      #f44336;
    --color-gold:        #ffc107;
    --radius-card:       12px;
    --radius-btn:        8px;
    --radius-input:      8px;
    --shadow-card:       0 2px 12px rgba(0,0,0,.08);
    --shadow-elevated:   0 8px 32px rgba(0,0,0,.14);
    --font-main:         'Segoe UI', system-ui, -apple-system, sans-serif;
    --transition:        0.2s ease;
    --navbar-h:          64px;
    --mobile-nav-h:      60px;
}

/* ─── Reset ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background: var(--color-bg);
    color: var(--color-text);
    margin: 0;
    padding: 0;
    padding-top: var(--navbar-h);
}

body.is-mobile { padding-bottom: var(--mobile-nav-h); }

/* ─── Navbar ───────────────────────────────────────────── */
.flux-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--navbar-h);
    background: var(--color-navbar-bg);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.flux-navbar-brand a { text-decoration: none; }
.flux-logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.flux-navbar-nav {
    display: flex;
    gap: 4px;
    flex: 1;
    justify-content: center;
}

.flux-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition);
    position: relative;
}

.flux-nav-link:hover,
.flux-nav-link.active {
    color: var(--color-primary);
    background: rgba(233,30,140,.08);
}

.flux-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 50%;
    transform: translateX(-50%);
    width: 24px; height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
}

.flux-navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

/* ─── Coins Button ─────────────────────────────────────── */
.flux-coins-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--color-gold), #ff9800);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
}
.flux-coins-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,193,7,.4); color: white; }

/* ─── Icon Buttons ─────────────────────────────────────── */
.flux-icon-btn {
    width: 40px; height: 40px;
    border: none;
    background: transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-text-muted);
    cursor: pointer;
    position: relative;
    transition: background var(--transition), color var(--transition);
}
.flux-icon-btn:hover { background: rgba(233,30,140,.08); color: var(--color-primary); }

/* ─── Badge ────────────────────────────────────────────── */
.flux-badge {
    position: absolute;
    top: 2px; right: 2px;
    min-width: 18px; height: 18px;
    background: var(--color-primary);
    color: white;
    border-radius: 9px;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--color-navbar-bg);
}

/* ─── Notifications Dropdown ──────────────────────────── */
.flux-notif-wrapper { position: relative; }

.flux-notif-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-elevated);
    z-index: 1100;
    overflow: hidden;
}

.flux-notif-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    font-size: 0.9rem;
}

.flux-link-btn {
    background: none; border: none;
    color: var(--color-primary);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 0;
}

.flux-notif-empty {
    padding: 24px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

/* ─── Avatar ───────────────────────────────────────────── */
.flux-avatar-wrapper { position: relative; }

.flux-avatar-btn {
    width: 38px; height: 38px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-bg);
    padding: 0;
    transition: border-color var(--transition);
}
.flux-avatar-btn:hover { border-color: var(--color-primary); }

.flux-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.flux-avatar-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: var(--color-text-muted);
}

.flux-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-elevated);
    z-index: 1100;
    padding: 6px;
}

.flux-user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--color-text);
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background var(--transition);
}
.flux-user-dropdown a:hover { background: var(--color-bg); }
.flux-dropdown-divider { height: 1px; background: var(--color-border); margin: 4px 0; }

/* ─── Main Content ─────────────────────────────────────── */
.flux-main {
    min-height: calc(100vh - var(--navbar-h));
}

/* ─── Flash Alert ──────────────────────────────────────── */
.flux-flash-alert {
    position: fixed;
    top: calc(var(--navbar-h) + 10px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    min-width: 300px;
    max-width: 90vw;
}

/* ─── Mobile Bottom Nav ────────────────────────────────── */
.flux-mobile-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--mobile-nav-h);
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    display: flex;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}

.flux-mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 500;
    transition: color var(--transition);
}
.flux-mobile-nav-item i { font-size: 1.3rem; }
.flux-mobile-nav-item.active { color: var(--color-primary); }

/* ─── Cards ────────────────────────────────────────────── */
.flux-card {
    background: var(--color-card);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

/* ─── Profile Cards (discover grid) ───────────────────── */
.flux-profile-card {
    position: relative;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: #111;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    aspect-ratio: 3/4;
}
.flux-profile-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-elevated); }

.flux-profile-card-img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

.flux-profile-card-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 100%);
    padding: 16px;
    color: white;
}

.flux-profile-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.flux-profile-card-meta {
    font-size: 0.78rem;
    opacity: 0.85;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.flux-profile-card-photo-count {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(0,0,0,.5);
    color: white;
    border-radius: 12px;
    font-size: 0.7rem;
    padding: 3px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.flux-verified-badge {
    position: absolute;
    bottom: 14px; right: 14px;
    width: 22px; height: 22px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
}

.flux-online-dot {
    width: 10px; height: 10px;
    background: var(--color-online);
    border-radius: 50%;
    display: inline-block;
    border: 2px solid white;
}

/* ─── Swipe Card (Tinder style) ────────────────────────── */
.flux-swipe-deck {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.flux-swipe-card {
    position: absolute;
    top: 0; left: 0; right: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-elevated);
    cursor: grab;
    user-select: none;
    background: #111;
    aspect-ratio: 3/4.2;
    transition: box-shadow 0.2s;
}

.flux-swipe-card.dragging { cursor: grabbing; }

.flux-swipe-card-img {
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.flux-swipe-card-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.4) 60%, transparent 100%);
    padding: 24px 20px 80px;
    color: white;
    pointer-events: none;
}

.flux-swipe-card-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.flux-swipe-card-sub {
    font-size: 0.9rem;
    opacity: 0.85;
    margin-top: 4px;
}

.flux-swipe-actions {
    position: absolute;
    bottom: 20px; left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 16px;
    pointer-events: auto;
    z-index: 10;
}

.flux-swipe-btn {
    width: 54px; height: 54px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    transition: transform 0.15s, box-shadow 0.15s;
    pointer-events: auto;
    position: relative;
    z-index: 10;
}
.flux-swipe-btn:hover { transform: scale(1.12); box-shadow: 0 6px 20px rgba(0,0,0,.3); }

.flux-swipe-btn-pass  { background: white; color: #ff5252; }
.flux-swipe-btn-super { background: white; color: #2196f3; width: 46px; height: 46px; font-size: 1.1rem; }
.flux-swipe-btn-like  { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: white; }

/* Swipe stamp labels */
.flux-swipe-stamp {
    position: absolute;
    top: 30px;
    border: 4px solid;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 1.4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.1s;
    transform: rotate(-15deg);
}
.flux-swipe-stamp-like  { left: 24px; color: #4caf50; border-color: #4caf50; transform: rotate(-15deg); }
.flux-swipe-stamp-pass  { right: 24px; color: #f44336; border-color: #f44336; transform: rotate(15deg); }

/* ─── Buttons ──────────────────────────────────────────── */
.flux-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius-btn);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    line-height: 1.2;
}
.flux-btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    box-shadow: 0 4px 16px rgba(233,30,140,.35);
}
.flux-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(233,30,140,.45);
    color: white;
}
.flux-btn-outline {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
}
.flux-btn-outline:hover { background: var(--color-primary); color: white; }
.flux-btn-ghost { background: transparent; color: var(--color-text-muted); }
.flux-btn-ghost:hover { background: var(--color-bg); color: var(--color-text); }
.flux-btn-full { width: 100%; }
.flux-btn-sm { padding: 7px 16px; font-size: 0.82rem; }

/* ─── Forms ────────────────────────────────────────────── */
.flux-form-group { margin-bottom: 18px; }
.flux-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 6px;
}
.flux-label-link { font-weight: 400; color: var(--color-primary); text-decoration: none; }
.flux-label-link:hover { text-decoration: underline; }

.flux-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.flux-input-icon {
    position: absolute;
    left: 12px;
    color: var(--color-text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.flux-input {
    width: 100%;
    padding: 11px 12px 11px 38px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-input);
    font-size: 0.95rem;
    font-family: var(--font-main);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.flux-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(233,30,140,.12);
}

.flux-input-toggle {
    position: absolute;
    right: 10px;
    background: none; border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 1rem;
}

.flux-form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.88rem;
}

.flux-checkbox {
    width: 18px; height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

/* Gender selector */
.flux-gender-selector {
    display: flex;
    gap: 10px;
}

.flux-gender-option {
    flex: 1;
    cursor: pointer;
}

.flux-gender-option input { display: none; }

.flux-gender-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition);
}

.flux-gender-option input:checked + span {
    border-color: var(--color-primary);
    background: rgba(233,30,140,.08);
    color: var(--color-primary);
}

/* ─── Terms ────────────────────────────────────────────── */
.flux-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.83rem;
    color: var(--color-text-muted);
}

/* ─── Form divider / footer ────────────────────────────── */
.flux-form-divider {
    position: relative;
    text-align: center;
    margin: 20px 0;
    color: var(--color-text-muted);
    font-size: 0.82rem;
}
.flux-form-divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: var(--color-border);
}
.flux-form-divider span {
    position: relative;
    background: var(--color-surface);
    padding: 0 12px;
}

.flux-form-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.flux-form-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.flux-form-footer {
    text-align: center;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin: 0;
}

.flux-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}
.flux-link:hover { text-decoration: underline; }

/* ─── Layout helpers ───────────────────────────────────── */
.flux-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 24px 16px;
}

.flux-sidebar-layout {
    display: grid;
    grid-template-columns: 260px 1fr 260px;
    gap: 20px;
    align-items: start;
}

@media (max-width: 1100px) {
    .flux-sidebar-layout { grid-template-columns: 220px 1fr; }
    .flux-sidebar-right { display: none; }
}

@media (max-width: 768px) {
    .flux-sidebar-layout { grid-template-columns: 1fr; }
    .flux-sidebar-left { display: none; }
}

/* ─── Spinner animation ────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { display: inline-block; animation: spin 0.8s linear infinite; }

/* ─── Scrollbar ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }
