/* ============================================================
   VIETTELYKSET - MAIN STYLESHEET
   Figma Design Tokens: member-01/02, home-02, my-profile02,
                        setting-01, member-details-02
   No Bootstrap, No Tailwind - Pure Semantic HTML5 CSS
   ============================================================ */

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', 'Segoe UI', Arial, sans-serif; background: #f5f7f9; color: #191f39; font-size: 15px; line-height: 1.5; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 14px; }

/* ---- CSS VARIABLES (from Figma) ---- */
:root {
    /* Colors */
    --navy:          #191f39;   /* header bg, "Discover Now" button */
    --salmon:        #fda597;   /* active nav pill, credits badge */
    --salmon-dark:   #f08070;
    --mint-filter:   #e2ede9;   /* filter bar background */
    --mint-footer:   #aed8ce;   /* footer background */
    --mint-footer-2: #95c8bc;   /* footer copyright bar */
    --purple-grad-1: #a73d99;   /* gradient start */
    --purple-grad-2: #e5488f;   /* gradient end */
    --border-nav:    #bec7c3;   /* nav pill borders */
    --border-input:  #ced8d4;   /* filter input borders */
    --text-main:     #191f39;
    --text-mid:      #616471;
    --text-muted:    #7b7b7b;
    --text-footer:   #47675f;
    /* Sizing */
    --radius-sm:  4px;
    --radius-md:  10px;
    --radius-lg:  40px;
    --radius-pill:50px;
    /* Shadows */
    --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
    --shadow-md:  0 4px 20px rgba(0,0,0,.12);
    --shadow-card:0 2px 12px rgba(0,0,0,.10);
}

/* ============================================================
   SHARED LAYOUT
   ============================================================ */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }
.container { max-width: 1620px; margin: 0 auto; padding: 0 40px; }

/* ============================================================
   HEADER  (#191f39 dark navy bg)
   ============================================================ */
.site-header {
    background: var(--navy);
    height: 100px;
    display: flex;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 200;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-icon-wrap {
    width: 48px; height: 48px;
    background: var(--salmon);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.logo-text {
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

/* Header right area */
.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 30px;
}
.header-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    position: relative;
}
.header-nav-link svg { width: 24px; height: 24px; }
.header-badge-count {
    position: absolute;
    top: -7px; right: -10px;
    background: var(--salmon);
    color: var(--navy);
    border-radius: 50%;
    width: 18px; height: 18px;
    font-size: 10px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}

/* User badge (avatar + name + credits) */
.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-avatar {
    width: 54px; height: 54px;
    border-radius: 5px;
    object-fit: cover;
    background: #444;
    flex-shrink: 0;
}
.user-avatar-placeholder {
    width: 54px; height: 54px;
    border-radius: 5px;
    background: #444;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #aaa;
}
.user-meta { display: flex; flex-direction: column; gap: 4px; }
.user-name { font-size: 15px; color: #fff; }
.credits-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--salmon);
    color: var(--navy);
    border-radius: 16px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 500;
}

/* ============================================================
   NAVIGATION PILLS (Members | My Profile | Messages | ...)
   ============================================================ */
.main-nav {
    background: #fff;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border-nav);
    min-height: 64px;
    overflow-x: auto;
}
.nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-nav);
    background: #fff;
    color: var(--navy);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all .15s ease;
    cursor: pointer;
}
.nav-pill:hover { border-color: var(--salmon-dark); color: var(--salmon-dark); }
.nav-pill.active { background: var(--salmon); border-color: var(--salmon); color: #fff; }
.nav-pill.active:hover { background: var(--salmon-dark); border-color: var(--salmon-dark); }
.nav-pill svg { width: 18px; height: 18px; }
.nav-pill-form { margin-left: auto; }

/* ============================================================
   FILTER BAR (#e2ede9 mint background)
   ============================================================ */
.filter-bar {
    background: var(--mint-filter);
    padding: 12px 40px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.filter-label { font-size: 15px; color: var(--navy); white-space: nowrap; }
.filter-sep   { font-size: 15px; color: var(--navy); }
.filter-select {
    background: #fff;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-pill);
    padding: 10px 34px 10px 18px;
    font-size: 14px;
    color: var(--text-muted);
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 90px;
    transition: border-color .15s;
}
.filter-select:focus { border-color: var(--navy); }
.filter-select-wide { min-width: 180px; }
.filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--navy);
    cursor: pointer;
    white-space: nowrap;
}
.filter-check input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: #3282cd;
    cursor: pointer;
    border-radius: 3px;
}
.btn-discover {
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    white-space: nowrap;
    transition: opacity .2s;
}
.btn-discover:hover { opacity: .85; }

/* ============================================================
   PAGE BODY
   ============================================================ */
.page-body { padding: 28px 40px 60px; }
.page-heading {
    font-size: 20px;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 24px;
}

/* ============================================================
   MEMBER CARDS GRID  (6 cols, 194px wide each, gap 30px)
   ============================================================ */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px;
}
.member-card { cursor: pointer; }
.member-card a { text-decoration: none; color: inherit; display: block; }
.member-card-photo {
    width: 100%;
    height: 230px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: #ddd;
    display: block;
    transition: opacity .15s;
}
.member-card:hover .member-card-photo { opacity: .92; }
.member-card-placeholder {
    width: 100%; height: 230px;
    border-radius: var(--radius-md);
    background: #e8e8e8;
    display: flex; align-items: center; justify-content: center;
    font-size: 52px; color: #ccc;
}
.member-card-info { margin-top: 9px; }
.member-card-name { font-size: 18px; font-weight: 500; color: var(--navy); line-height: 1.3; }
.member-card-age  { font-size: 15px; color: var(--text-mid); }
.member-card-city { font-size: 13px; color: var(--text-muted); }

/* Online indicator */
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4caf50; margin-right: 4px; }
.offline-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ccc; margin-right: 4px; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 48px 0 16px;
}
.page-prev, .page-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid var(--border-nav);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--text-mid);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
}
.page-prev:hover, .page-next:hover { border-color: var(--navy); color: var(--navy); }
.page-prev.disabled, .page-next.disabled { opacity: .4; pointer-events: none; cursor: default; }
.page-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-nav);
    background: #fff;
    color: var(--navy);
    font-size: 14px;
    text-decoration: none;
    transition: all .15s;
    cursor: pointer;
}
.page-num:hover { border-color: var(--salmon); color: var(--salmon); }
.page-num.active { background: var(--salmon); border-color: var(--salmon); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--mint-footer);
    padding: 36px 40px 0;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding-bottom: 22px;
}
.footer-links a { color: var(--navy); font-size: 15px; transition: opacity .15s; }
.footer-links a:hover { opacity: .7; }
.footer-desc {
    text-align: center;
    font-size: 14px;
    color: var(--text-footer);
    max-width: 1090px;
    margin: 0 auto 24px;
    line-height: 1.75;
}
.footer-copy {
    background: var(--mint-footer-2);
    text-align: center;
    font-size: 14px;
    color: var(--text-footer);
    padding: 18px 40px;
}

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash { padding: 12px 20px; margin: 0 40px 0; font-size: 14px; display: flex; align-items: center; gap: 10px; border-radius: var(--radius-md); }
.flash.success { background: #edfaf3; border: 1px solid #b7dfcb; color: #155724; }
.flash.error   { background: #fff3f3; border: 1px solid #f5c6cb; color: #dc3545; }
.flash .close  { margin-left: auto; background: none; border: none; font-size: 18px; color: inherit; cursor: pointer; }

/* ============================================================
   MEMBER DETAIL PAGE  (member-details-02)
   ============================================================ */
.detail-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
}
.detail-sidebar { display: flex; flex-direction: column; gap: 16px; }
.detail-main-photo {
    width: 100%; height: 300px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: #ddd;
    display: block;
}
.detail-photo-placeholder {
    width: 100%; height: 300px;
    border-radius: var(--radius-md);
    background: #e8e8e8;
    display: flex; align-items: center; justify-content: center;
    font-size: 64px; color: #ccc;
}
.detail-action-btns { display: flex; flex-direction: column; gap: 10px; }
.detail-gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.detail-gallery-img {
    width: 100%; aspect-ratio: 1;
    object-fit: cover; border-radius: 8px; background: #eee;
}

.detail-info-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 16px;
}
.detail-info-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.detail-name { font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.detail-meta { font-size: 14px; color: var(--text-mid); }
.detail-bio  { font-size: 14px; color: var(--text-mid); line-height: 1.75; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-item .info-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.info-item .info-val   { font-size: 14px; color: var(--navy); }
.interests-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-tag { background: #f5f0fa; border: 1px solid #dcc8e8; border-radius: 20px; padding: 4px 14px; font-size: 13px; color: #7333a1; }
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 14px; }

/* Action Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px; border-radius: var(--radius-md);
    font-size: 14px; font-weight: 600; cursor: pointer;
    border: none; transition: all .2s; text-decoration: none;
    justify-content: center;
}
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(90deg, var(--purple-grad-1), var(--purple-grad-2)); color: #fff; }
.btn-primary:hover { opacity: .88; }
.btn-message { background: #3282cd; color: #fff; }
.btn-message:hover { background: #2a6fb3; }
.btn-fav { background: #fff; border: 2px solid var(--purple-grad-2); color: var(--purple-grad-2); }
.btn-fav:hover, .btn-fav.active { background: #fff0f8; }
.btn-report { background: #fff; border: 1px solid #ccc; color: var(--text-muted); font-size: 13px; }
.btn-report:hover { border-color: #dc3545; color: #dc3545; }
.btn-danger { background: #dc3545; color: #fff; }
.btn-danger:hover { background: #bb2d3b; }
.btn-secondary { background: #fff; border: 1px solid var(--border-nav); color: var(--navy); }
.btn-secondary:hover { border-color: var(--navy); }
.btn-sm { padding: 7px 14px; font-size: 12px; }

/* ============================================================
   MY PROFILE PAGE  (my-profile02)
   ============================================================ */
.myprofile-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.myprofile-sidebar {
    background: #fff; border-radius: var(--radius-md);
    padding: 24px; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; align-items: center; gap: 16px;
    position: sticky; top: 116px;
}
.profile-avatar-wrap {
    position: relative; cursor: pointer;
}
.profile-avatar-img {
    width: 160px; height: 160px;
    border-radius: 50%; object-fit: cover;
    border: 3px solid var(--salmon);
}
.profile-avatar-placeholder {
    width: 160px; height: 160px;
    border-radius: 50%; background: #e8e8e8;
    display: flex; align-items: center; justify-content: center;
    font-size: 56px; color: #ccc;
    border: 3px solid var(--salmon);
}
.profile-avatar-upload-overlay {
    position: absolute; inset: 0;
    border-radius: 50%;
    background: rgba(0,0,0,.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .2s; color: #fff; font-size: 22px;
}
.profile-avatar-wrap:hover .profile-avatar-upload-overlay { opacity: 1; }
.myprofile-name { font-size: 16px; font-weight: 600; color: var(--navy); text-align: center; }
.myprofile-age  { font-size: 13px; color: var(--text-muted); }
.photo-gallery-thumb {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; width: 100%;
}
.photo-thumb-wrap { position: relative; }
.photo-thumb {
    width: 100%; aspect-ratio: 1;
    object-fit: cover; border-radius: 6px; background: #eee;
    border: 1.5px solid #eee;
}
.photo-thumb.primary { border-color: var(--salmon); }
.photo-thumb-actions {
    position: absolute; top: 2px; right: 2px;
    display: flex; gap: 2px;
}
.thumb-btn {
    background: rgba(255,255,255,.9); border: none; border-radius: 3px;
    width: 18px; height: 18px; font-size: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* Form sections */
.form-card {
    background: #fff; border-radius: var(--radius-md);
    padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 20px;
}
.form-card-title {
    font-size: 16px; font-weight: 600; color: var(--navy);
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}
.form-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 180px; }
.form-group label { font-size: 13px; font-weight: 500; color: var(--navy); }
.form-control {
    border: 1px solid #d0d5dd; border-radius: var(--radius-md);
    padding: 10px 14px; font-size: 14px; color: var(--navy);
    background: #fff; outline: none; width: 100%;
    transition: border-color .2s;
}
.form-control:focus { border-color: var(--purple-grad-1); }
select.form-control { appearance: none; -webkit-appearance: none; padding-right: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; cursor: pointer;
}
textarea.form-control { resize: vertical; }
.form-error { font-size: 12px; color: #dc3545; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* Interests checkboxes */
.interests-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-check-label {
    display: flex; align-items: center; gap: 6px;
    border: 1px solid #dcc8e8; border-radius: 20px;
    padding: 5px 14px; font-size: 13px; color: var(--text-mid);
    cursor: pointer; transition: all .15s;
}
.interest-check-label:hover { border-color: var(--purple-grad-1); color: var(--purple-grad-1); }
.interest-check-label input { accent-color: var(--purple-grad-1); width: 14px; height: 14px; }
.interest-check-label.checked { background: #f5f0fa; border-color: var(--purple-grad-1); color: var(--purple-grad-1); }

/* ============================================================
   SETTINGS PAGE  (setting-01)
   ============================================================ */
.settings-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.settings-sidebar {
    background: #fff; border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); overflow: hidden;
    position: sticky; top: 116px;
}
.settings-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px; font-size: 14px; color: var(--text-mid);
    cursor: pointer; transition: all .15s;
    border-left: 3px solid transparent; text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
}
.settings-nav-link svg { width: 16px; height: 16px; }
.settings-nav-link:hover { background: #f9f5fb; color: var(--purple-grad-1); border-left-color: var(--purple-grad-1); }
.settings-nav-link.active { background: #f9f5fb; color: var(--purple-grad-1); border-left-color: var(--purple-grad-1); font-weight: 600; }

/* Toggle switch */
.toggle-wrap { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle-wrap input { display: none; }
.toggle-track {
    width: 44px; height: 24px; border-radius: 12px; background: #ccc;
    position: relative; transition: background .2s; flex-shrink: 0;
}
.toggle-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 18px; height: 18px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .2s;
}
.toggle-wrap input:checked + .toggle-track { background: var(--purple-grad-2); }
.toggle-wrap input:checked + .toggle-track .toggle-thumb { transform: translateX(20px); }
.toggle-label { font-size: 14px; color: var(--text-mid); }

/* Danger zone */
.danger-zone { border: 1px solid #f5c6cb; border-radius: var(--radius-md); padding: 24px; background: #fff8f8; }
.danger-title { font-size: 15px; font-weight: 600; color: #dc3545; margin-bottom: 10px; }

/* Password strength */
.pwd-strength-bar { height: 4px; background: #eee; border-radius: 2px; overflow: hidden; margin-bottom: 4px; }
.pwd-strength-fill { height: 100%; width: 0; transition: all .3s; border-radius: 2px; }
.pwd-strength-label { font-size: 12px; color: var(--text-muted); }

/* ============================================================
   REGISTER PAGE  (home-02)
   ============================================================ */
.register-page { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.register-header {
    background: #fff; border-bottom: 1px solid #e8e8e8;
    height: 62px; display: flex; align-items: center; padding: 0 40px;
    flex-shrink: 0; position: sticky; top: 0; z-index: 100;
}
.reg-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.reg-logo-icon { width: 34px; height: 34px; background: linear-gradient(135deg, var(--purple-grad-1), var(--purple-grad-2)); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.reg-logo-text { font-size: 22px; font-weight: 700; background: linear-gradient(135deg, var(--purple-grad-1), var(--purple-grad-2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.reg-header-login { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.reg-input-wrap { display: flex; align-items: center; border: 1px solid #ddd; border-radius: 8px; height: 40px; padding: 0 12px; gap: 8px; background: #fafafa; }
.reg-input-wrap svg { width: 14px; height: 14px; color: #bbb; flex-shrink: 0; }
.reg-input-wrap input { border: none; background: transparent; outline: none; font-size: 13px; color: #555; width: 155px; }
.reg-input-wrap input::placeholder { color: #bbb; }
.reg-input-sep { width: 1px; height: 16px; background: #ddd; flex-shrink: 0; }
.reg-login-btn { background: var(--purple-grad-2); color: #fff; border: none; border-radius: 8px; padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.reg-forgot { font-size: 12px; color: var(--text-muted); text-decoration: none; }
.reg-forgot:hover { color: var(--purple-grad-2); }

/* Hero area */
.register-hero {
    flex: 1; display: flex;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 35%, #fce4ec 65%, #fff0f8 100%);
    position: relative; overflow: hidden; min-height: 520px;
}
.hero-left { flex: 1; display: flex; align-items: flex-end; justify-content: center; padding: 20px 10px 0; position: relative; }
.hero-right { width: 380px; flex-shrink: 0; padding: 24px 24px 24px 0; display: flex; align-items: flex-start; position: relative; z-index: 2; }

/* Floating hearts */
.hearts-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.heart { position: absolute; color: var(--purple-grad-2); opacity: .6; font-size: 20px; animation: heartFloat 3.5s ease-in-out infinite; }
@keyframes heartFloat { 0%,100%{transform:translateY(0) scale(1)} 50%{transform:translateY(-12px) scale(1.05)} }
.heart-outline {
    position: absolute; left: 3%; top: 3%; width: 54%; opacity: .15; pointer-events: none;
}

/* Register card */
.reg-card { background: #fff; border-radius: 14px; box-shadow: 0 8px 40px rgba(0,0,0,.14); overflow: hidden; width: 100%; }
.reg-card-head { background: linear-gradient(135deg, #8b2fc9 0%, #c2185b 60%, var(--purple-grad-2) 100%); padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; }
.reg-card-head h3 { color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 2px; }
.reg-card-head p  { color: rgba(255,255,255,.85); font-size: 12px; }
.free-badge { background: rgba(255,255,255,.15); border: 2px solid rgba(255,255,255,.4); border-radius: 8px; padding: 4px 8px; text-align: center; color: #fff; }
.free-badge .pct { font-size: 15px; font-weight: 800; display: block; line-height: 1.2; }
.reg-card-body { padding: 14px 18px; }

/* Register form fields */
.reg-field { position: relative; margin-bottom: 10px; }
.reg-field label { display: block; font-size: 12px; font-weight: 600; color: #444; margin-bottom: 4px; }
.reg-field .reg-icon { position: absolute; left: 11px; top: 31px; color: #bbb; font-size: 14px; pointer-events: none; }
.reg-input {
    width: 100%; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 9px 12px 9px 36px; font-size: 13px; color: #333;
    outline: none; background: #fafafa; transition: border-color .2s;
}
.reg-input:focus { border-color: var(--purple-grad-1); background: #fff; }
.reg-input-plain { padding-left: 12px; }

/* Gender toggles */
.gender-row { display: flex; gap: 8px; margin-bottom: 10px; }
.gender-btn {
    flex: 1; border: 1.5px solid #e0e0e0; border-radius: 8px;
    padding: 8px 5px; font-size: 12px; font-weight: 500; color: #888;
    background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px;
    transition: all .15s; font-family: inherit;
}
.gender-btn:hover, .gender-btn.sel { border-color: var(--purple-grad-2); color: var(--purple-grad-2); background: #fff5fb; }
.gender-btn input { display: none; }

/* DOB fields */
.dob-row { display: flex; gap: 6px; margin-bottom: 10px; }
.dob-row input {
    flex: 1; border: 1px solid #e0e0e0; border-radius: 8px;
    padding: 9px 6px; font-size: 13px; text-align: center;
    outline: none; background: #fafafa;
}
.dob-row input:focus { border-color: var(--purple-grad-1); background: #fff; }
.dob-row input::placeholder { color: #ccc; }
.dob-year { flex: 2 !important; }

/* Auth divider */
.auth-or { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: #bbb; font-size: 12px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; border-top: 1px solid #eee; }

/* Google button */
.btn-google {
    width: 100%; background: #fff; border: 1px solid #ddd; border-radius: 8px;
    padding: 9px; font-size: 12px; color: #333; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; transition: background .2s; margin-bottom: 10px;
}
.btn-google:hover { background: #f5f5f5; }

/* Submit button */
.reg-submit-btn {
    width: 100%; background: linear-gradient(135deg, #1a1a3e 0%, #2d1b69 100%);
    color: #fff; border: none; border-radius: 40px; padding: 13px;
    font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: opacity .2s; margin-top: 6px;
}
.reg-submit-btn:hover { opacity: .88; }
.reg-submit-icon { width: 22px; height: 22px; background: var(--purple-grad-2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Auth switch link */
.auth-switch { text-align: center; font-size: 12px; color: #999; margin-top: 10px; }
.auth-switch a { color: var(--purple-grad-2); font-weight: 600; text-decoration: none; }

/* Error box */
.auth-err { background: #fff3f3; border: 1px solid #f5c6cb; border-radius: 8px; padding: 8px 12px; font-size: 12px; color: #dc3545; margin-bottom: 10px; }
.auth-err ul { margin: 0; padding-left: 16px; }

/* Register footer */
.register-footer { background: var(--mint-footer); padding: 24px 40px 0; }
.register-footer .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; padding-bottom: 16px; }
.register-footer .footer-links a { color: var(--navy); font-size: 13px; }
.register-footer .footer-copy { background: var(--mint-footer-2); text-align: center; font-size: 12px; color: var(--text-footer); padding: 14px 40px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .detail-layout { grid-template-columns: 260px 1fr; }
    .myprofile-layout { grid-template-columns: 230px 1fr; }
    .settings-layout { grid-template-columns: 200px 1fr; }
}
@media (max-width: 900px) {
    .site-header, .main-nav, .filter-bar, .page-body { padding-left: 16px; padding-right: 16px; }
    .detail-layout, .myprofile-layout, .settings-layout { grid-template-columns: 1fr; }
    .members-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
    .hero-right { width: 100%; padding: 16px; }
    .hero-left { display: none; }
    .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .site-header { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
    .header-right { gap: 14px; }
    .main-nav { padding: 8px 16px; gap: 4px; }
    .nav-pill { padding: 8px 14px; font-size: 13px; }
    .filter-bar { flex-wrap: wrap; }
    .btn-discover { margin-left: 0; width: 100%; }
    .pagination { flex-wrap: wrap; }
    .register-header { padding: 10px 16px; flex-wrap: wrap; gap: 8px; }
    .reg-header-login { flex-wrap: wrap; gap: 6px; }
}
