/* ========== GLOBAL ========== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050518;
    color: #fff;
}

/* ========== INDEX / HERO LAYOUT (matches your original inline CSS) ========== */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    background: radial-gradient(circle at top, #7f5bff, #050518 55%);
}

.logo-text {
    letter-spacing: 0.1em;
    font-size: 14px;
    text-transform: uppercase;
    opacity: 0.8;
}

h1 {
    font-size: 40px;
    letter-spacing: 0.08em;
    margin: 10px 0 16px;
}

.subtitle {
    max-width: 520px;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-row {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hero-image-hint {
    margin-top: 24px;
    font-size: 12px;
    opacity: 0.6;
}

/* top bar on hero */

.top-bar {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
}

.nav-links a {
    margin-left: 14px;
    color: inherit;
    text-decoration: none;
    opacity: 0.9;
}

.nav-links a:hover {
    text-decoration: underline;
}

.notif-bell {
    position: relative;
    margin-left: 10px;
    cursor: pointer;
}

.notif-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #ff4f6a;
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 999px;
}

/* ========== GENERIC BUTTONS (matches your old inline styles) ========== */

.btn {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.btn:hover {
    transform: translateY(-1px);
    background-color: rgba(255,255,255,0.06);
}

/* this is for class="btn primary" */
.btn.primary {
    background: linear-gradient(135deg,#ff4fd1,#ff9f5b);
    border: none;
}

.btn.primary:hover {
    filter: brightness(1.05);
}

/* ========== SWIPE PROFILE CARD (view_profile.php) ========== */

.wrapper-centered {
    display: flex;
    justify-content: center;
    padding: 20px 0 160px;
}

.photo-card {
    position: relative;
    width: 94%;
    max-width: 460px;
    border-radius: 18px;
    overflow: hidden;
    padding: 6px;
    background: linear-gradient(135deg,#ff4fd1,#ff9f5b);
    box-shadow: 0 20px 40px rgba(0,0,0,0.55);
    touch-action: pan-y;
}

.photo-inner {
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    height: 70vh;
}

.photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name-overlay {
    position: absolute;
    bottom: 22px;
    left: 26px;
    z-index: 10;
    font-size: 32px;
    font-weight: 600;
    text-shadow: 0 4px 18px rgba(0,0,0,0.9);
}

/* swipe decision buttons */

.decision-buttons {
    position: fixed;
    bottom: 35px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 38px;
    z-index: 999;
}

.btn-circle {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    text-decoration: none;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.3);
    color: #fff;
    transition: transform .15s ease;
}

.btn-circle:hover {
    transform: scale(1.15);
}

.btn-no    { border-color: #ff4f6a; }
.btn-later { border-color: #ccc; }
.btn-yes {
    background: linear-gradient(135deg,#ff4fd1,#ff9f5b);
    border: none;
}

/* ========== CHAT LIST (chats_list.php) ========== */

.page-chats {
    max-width: 480px;
    margin: 0 auto;
    padding: 18px 16px 100px;
}

.brand {
    text-align: center;
    margin-bottom: 28px;
    margin-top: 10px;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
}

.section-title {
    font-size: 15px;
    letter-spacing: 0.02em;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 10px;
}

.chat-list-panel {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 6px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.chat-row {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    text-decoration: none;
    color: #fff;
    gap: 12px;
    transition: background 0.15s ease;
}

.chat-row:hover {
    background: rgba(255,255,255,0.08);
}

.chat-row + .chat-row {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: #222;
    border: 2px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-text {
    flex: 1;
    min-width: 0;
}

.chat-name {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 3px;
}

.chat-preview {
    font-size: 13px;
    opacity: 0.65;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-state {
    margin-top: 40px;
    text-align: center;
    opacity: 0.7;
    font-size: 14px;
}

/* ========== BOTTOM NAV – PNG ICON VERSION ========== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(5,5,24,0.92);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.12);
    z-index: 9999;
}

.nav-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    padding-top: 8px;
    color: rgba(255,255,255,0.75);
    font-size: 11px;
}

.nav-item.active {
    color: #fff;
}

.nav-icon-img {
    width: 26px;
    height: 26px;
    margin-bottom: 2px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.nav-item.active .nav-icon-img {
    opacity: 1;
}
/* Force icon size globally (overrides any page-specific CSS) */
/* Default icon look */
.bottom-nav .nav-icon-img {
    width: 26px;
    height: 26px;
    opacity: 0.75;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

/* Active nav item icon */
.nav-item.active .nav-icon-img {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(37%) sepia(90%) saturate(746%) hue-rotate(226deg) brightness(101%) contrast(102%);
}
.bottom-nav .nav-item {
    padding-top: 6px !important;
}

.bottom-nav .nav-icon-img {
    margin-bottom: 2px !important;
}

/* ============================================
   AUTH PAGES (login/register/forgot/etc.)
   ============================================ */

/* Global body background for auth pages */
.auth-body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #7f5bff, #050518 55%);
    color: #fff;
}

/* Centered wrapper */
/* AUTH: place card at the top like other pages */
.auth-wrapper {
    min-height: 100vh;
    display: block;
    padding: 24px 20px 40px;
}

.auth-card {
    background: rgba(5,5,24,0.9);
    border-radius: 18px;
    padding: 24px 24px 28px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;        /* center horizontally */
    margin-top: 25px;      /* card sits near the top */
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
}

/* Headings */
.auth-title {
    margin: 0 0 6px;
    font-size: 24px;
    letter-spacing: 0.08em;
}

.auth-subtitle {
    font-size: 13px;
    opacity: 0.8;
    margin-bottom: 16px;
}

/* Form Fields */
.auth-field {
    margin-bottom: 12px;
}

.auth-label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    opacity: 0.9;
}

/* Inputs */
.auth-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(3,3,20,0.9);
    color: #fff;
    font-size: 13px;
    outline: none;
}

.auth-input:focus {
    border-color: #ff8ad8;
}

/* Submit Button */
.auth-btn {
    width: 100%;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    background: linear-gradient(135deg, #ff4fd1, #ff9f5b);
    color: #fff;
    font-weight: 600;
}

.auth-btn:hover {
    filter: brightness(1.05);
}

/* Errors */
.auth-errors {
    background: rgba(255,70,70,0.12);
    border: 1px solid rgba(255,110,110,0.8);
    color: #ffbcbc;
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 12px;
    font-size: 12px;
}
.auth-errors ul {
    margin: 0;
    padding-left: 18px;
}

/* Footer Text */
.auth-footer {
    margin-top: 12px;
    font-size: 12px;
    opacity: 0.8;
    text-align: center;
}

.auth-footer a {
    color: #ffb6f4;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-logo {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 6px;
    text-align: center;
}