/* Shukaansi - Main Stylesheet */
/* Made with love by Fariid Tech */

:root {
    --primary: #ff6b9d;
    --primary-dark: #e8528a;
    --secondary: #c44dff;
    --gradient: linear-gradient(135deg, #ff6b9d, #c44dff);
    --gradient-alt: linear-gradient(135deg, #ff9f43, #ff6b9d);
    --bg: #f5f5f7;
    --surface: #ffffff;
    --surface-2: #f8f9fa;
    --text: #1a1a2e;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --shadow: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.16);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 50px;
    --header-h: 60px;
    --bottom-nav-h: 64px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --online: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #22c55e;
    --info: #3b82f6;
}

[data-theme="dark"] {
    --bg: #0f0f17;
    --surface: #1a1a2e;
    --surface-2: #22223a;
    --text: #f1f1f5;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border: #2d2d4a;
    --shadow: 0 2px 20px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-top: var(--header-h);
    padding-bottom: var(--bottom-nav-h);
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
}

body.no-nav { padding-bottom: 0; }
body.no-header { padding-top: 0; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ============ TYPOGRAPHY ============ */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { line-height: 1.6; color: var(--text-secondary); }

/* ============ LAYOUT ============ */
.container { max-width: 480px; margin: 0 auto; padding: 0 16px; }
.page-container { max-width: 480px; margin: 0 auto; padding: 16px; }

.app-main { min-height: calc(100vh - var(--header-h) - var(--bottom-nav-h)); }
.app-main.no-padding { padding: 0; }

/* ============ HEADER ============ */
.app-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.header-inner {
    max-width: 480px;
    margin: 0 auto;
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo { display: flex; align-items: center; gap: 8px; }
.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-right { display: flex; align-items: center; gap: 4px; }

.icon-btn {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    position: relative;
    transition: background var(--transition), transform var(--transition);
}
.icon-btn:hover { background: var(--border); transform: scale(1.05); }

.notif-btn { position: relative; }
.badge {
    position: absolute;
    top: -2px; right: -2px;
    min-width: 18px; height: 18px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--surface);
}

.header-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}
.avatar-link { position: relative; }
.online-dot {
    position: absolute;
    bottom: 0; right: 0;
    width: 10px; height: 10px;
    background: var(--online);
    border-radius: 50%;
    border: 2px solid var(--surface);
}

/* ============ BOTTOM NAV ============ */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-h);
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    z-index: 100;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 480px;
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
}

.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-muted);
    transition: color var(--transition);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.nav-item i { font-size: 22px; }
.nav-item span { font-size: 11px; font-weight: 500; }
.nav-item.active { color: var(--primary); }
.nav-item.active i { transform: scale(1.15); }

/* ============ BUTTONS ============ */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--gradient);
    color: white;
    border: none; border-radius: var(--radius-full);
    padding: 14px 28px;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.35);
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    text-align: center;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255, 107, 157, 0.45); }
.btn-primary:active { transform: scale(0.97); }

.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    padding: 12px 28px;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    width: 100%;
}
.btn-outline:hover { background: var(--primary); color: white; }

.btn-ghost {
    background: var(--surface-2); color: var(--text);
    border: 1px solid var(--border); border-radius: var(--radius-full);
    padding: 10px 20px; font-size: 14px; font-weight: 500;
    cursor: pointer; transition: all var(--transition);
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-ghost:hover { background: var(--border); }

.btn-sm {
    padding: 6px 14px; font-size: 13px; font-weight: 600;
    border-radius: var(--radius-full); border: none;
    background: white; color: var(--primary); cursor: pointer;
    transition: all var(--transition);
    display: inline-block;
}
.btn-sm:hover { transform: scale(1.05); }

.btn-danger {
    background: var(--danger); color: white;
    border: none; border-radius: var(--radius-full);
    padding: 10px 20px; font-size: 14px; font-weight: 600;
    cursor: pointer; transition: all var(--transition);
}

/* ============ FORMS ============ */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    font-size: 14px; font-weight: 600;
    color: var(--text); margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px; color: var(--text);
    transition: all var(--transition);
    outline: none;
    -webkit-appearance: none;
}
.form-control:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 3px rgba(255, 107, 157, 0.12); }
.form-control::placeholder { color: var(--text-muted); }

.form-control.has-icon { padding-left: 44px; }

.input-group { position: relative; }
.input-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); font-size: 18px;
}

.input-eye {
    position: absolute;
    right: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted); cursor: pointer; font-size: 18px;
}

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }

.form-error { color: var(--danger); font-size: 13px; margin-top: 4px; }
.form-hint { color: var(--text-muted); font-size: 12px; margin-top: 4px; }

/* ============ CARDS ============ */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
}

/* ============ AUTH PAGES ============ */
.auth-page {
    min-height: 100vh;
    background: var(--gradient);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
body.auth-body { padding: 0; background: var(--gradient); }

.auth-container {
    width: 100%; max-width: 420px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo h1 {
    font-size: 40px; font-weight: 800; color: white;
    text-shadow: 0 2px 20px rgba(0,0,0,0.2);
    letter-spacing: -1px;
}
.auth-logo p { color: rgba(255,255,255,0.85); font-size: 15px; margin-top: 6px; }

.auth-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 32px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.auth-card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.auth-card .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 28px; }

.auth-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 20px 0; color: var(--text-muted); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

.auth-link {
    text-align: center; margin-top: 20px;
    font-size: 14px; color: var(--text-secondary);
}
.auth-link a { color: var(--primary); font-weight: 600; }

/* ============ USER CARDS (DISCOVER) ============ */
.discover-stack {
    position: relative;
    height: calc(100vh - var(--header-h) - var(--bottom-nav-h) - 80px);
    max-height: 600px;
    margin: 16px auto;
    max-width: 400px;
}

.user-card {
    position: absolute;
    width: 100%; height: 100%;
    border-radius: 24px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: var(--shadow-lg);
    touch-action: none;
}
.user-card:active { cursor: grabbing; }

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

.user-card-gradient {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 65%;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    pointer-events: none;
}

.user-card-info {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 20px;
    color: white;
}

.user-card-name {
    font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.user-card-name .verify-icon { font-size: 18px; color: #60a5fa; }
.user-card-name .premium-icon { font-size: 16px; color: #fbbf24; }

.user-card-meta { font-size: 14px; opacity: 0.9; margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.user-card-bio { font-size: 13px; opacity: 0.85; margin-top: 8px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.compatibility-badge {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    font-size: 13px; font-weight: 700;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.online-badge {
    position: absolute; top: 16px; left: 16px;
    background: rgba(34, 197, 94, 0.9);
    color: white; font-size: 12px; font-weight: 600;
    padding: 4px 10px; border-radius: var(--radius-full);
    display: flex; align-items: center; gap: 4px;
}
.online-badge::before { content: ''; width: 6px; height: 6px; background: white; border-radius: 50%; }

.swipe-actions {
    display: flex; align-items: center; justify-content: center; gap: 20px;
    padding: 16px;
    max-width: 400px; margin: 0 auto;
}

.swipe-btn {
    width: 60px; height: 60px;
    border-radius: 50%; border: none;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow);
    -webkit-tap-highlight-color: transparent;
}
.swipe-btn.pass { background: white; color: var(--danger); }
.swipe-btn.like { background: var(--gradient); color: white; box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4); }
.swipe-btn.super { background: white; color: #3b82f6; }
.swipe-btn:hover { transform: scale(1.1); }
.swipe-btn:active { transform: scale(0.95); }
.swipe-btn.like:hover { box-shadow: 0 8px 30px rgba(255, 107, 157, 0.55); }

/* Swipe indicators */
.swipe-like-indicator, .swipe-pass-indicator {
    position: absolute; top: 40px;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 20px; font-weight: 800;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.15s;
    pointer-events: none;
    border: 4px solid;
    transform: rotate(-15deg);
}
.swipe-like-indicator { left: 20px; color: #22c55e; border-color: #22c55e; transform: rotate(-15deg); }
.swipe-pass-indicator { right: 20px; color: var(--danger); border-color: var(--danger); transform: rotate(15deg); }

/* ============ MATCHES ============ */
.matches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 16px;
}

.match-card-item {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform var(--transition);
    border: 1px solid var(--border);
}
.match-card-item:hover { transform: translateY(-2px); }

.match-card-img {
    width: 100%; aspect-ratio: 3/4;
    object-fit: cover;
    position: relative;
}
.match-card-body { padding: 10px; }
.match-card-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.match-card-compat {
    font-size: 12px; color: var(--primary); font-weight: 600; margin-top: 2px;
}
.match-card-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ============ MESSAGES ============ */
.message-list { padding: 8px 16px; }

.message-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: opacity var(--transition);
}
.message-item:hover { opacity: 0.85; }
.message-item:last-child { border-bottom: none; }

.message-avatar {
    position: relative; flex-shrink: 0;
}
.message-avatar img {
    width: 52px; height: 52px;
    border-radius: 50%; object-fit: cover;
}
.message-online-dot {
    position: absolute; bottom: 2px; right: 2px;
    width: 12px; height: 12px;
    background: var(--online); border-radius: 50%;
    border: 2px solid var(--surface);
}

.message-info { flex: 1; min-width: 0; }
.message-name { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.message-preview { font-size: 13px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.message-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; text-align: right; }
.message-unread { font-weight: 700; color: var(--text); }

.unread-dot {
    width: 8px; height: 8px;
    background: var(--primary); border-radius: 50; flex-shrink: 0;
}

/* ============ CHAT ============ */
.chat-page { display: flex; flex-direction: column; height: calc(100vh - var(--header-h)); }
.chat-header {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.chat-header .back-btn { color: var(--text); font-size: 20px; }
.chat-header img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chat-header-info { flex: 1; }
.chat-header-name { font-size: 16px; font-weight: 700; }
.chat-header-status { font-size: 12px; color: var(--text-muted); }
.chat-header-status.online { color: var(--online); }

.chat-messages {
    flex: 1; overflow-y: auto;
    padding: 16px;
    display: flex; flex-direction: column; gap: 8px;
    scroll-behavior: smooth;
}

.msg-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.4;
    position: relative;
    word-break: break-word;
}
.msg-bubble.sent {
    background: var(--gradient);
    color: white;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    margin-left: auto;
}
.msg-bubble.received {
    background: var(--surface-2);
    color: var(--text);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    border: 1px solid var(--border);
}
.msg-time { font-size: 11px; opacity: 0.7; margin-top: 4px; }
.msg-bubble.sent .msg-time { text-align: right; }

.msg-img { width: 100%; max-width: 220px; border-radius: 12px; cursor: pointer; }
.msg-voice { display: flex; align-items: center; gap: 8px; }
.msg-voice audio { max-width: 180px; }

.msg-status { font-size: 11px; opacity: 0.7; margin-left: 4px; }

.chat-input-area {
    padding: 12px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex; align-items: flex-end; gap: 8px;
    flex-shrink: 0;
}
.chat-input {
    flex: 1;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 15px;
    resize: none; outline: none;
    max-height: 120px;
    color: var(--text);
    line-height: 1.4;
    overflow-y: auto;
}
.chat-input:focus { border-color: var(--primary); }

.chat-action-btn {
    width: 44px; height: 44px;
    border-radius: 50%; border: none;
    background: var(--surface-2);
    color: var(--text-muted);
    cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition); flex-shrink: 0;
}
.chat-action-btn:hover { background: var(--border); color: var(--text); }
.chat-send-btn {
    background: var(--gradient); color: white;
    box-shadow: 0 2px 12px rgba(255, 107, 157, 0.35);
}
.chat-send-btn:hover { transform: scale(1.05); box-shadow: 0 4px 18px rgba(255, 107, 157, 0.5); }

.typing-indicator {
    display: flex; align-items: center; gap: 6px; padding: 6px 14px;
    background: var(--surface-2); border-radius: 18px; border-bottom-left-radius: 4px;
    align-self: flex-start; border: 1px solid var(--border);
}
.typing-dot {
    width: 7px; height: 7px; background: var(--text-muted); border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-6px); } }

/* ============ PROFILE PAGE ============ */
.profile-hero {
    background: var(--gradient);
    padding: 60px 20px 80px;
    text-align: center;
    position: relative;
}
.profile-hero-avatar {
    position: relative;
    display: inline-block; margin-bottom: 16px;
}
.profile-hero-img {
    width: 110px; height: 110px;
    border-radius: 50%; object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.profile-edit-btn {
    position: absolute; bottom: 4px; right: 4px;
    width: 32px; height: 32px;
    background: white; border-radius: 50%;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.profile-hero-name {
    color: white; font-size: 24px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.profile-hero-sub { color: rgba(255,255,255,0.85); font-size: 14px; margin-top: 4px; }

.profile-stats {
    display: flex; background: var(--surface);
    border-radius: var(--radius); margin: -30px 16px 16px;
    box-shadow: var(--shadow-md);
    position: relative; z-index: 2; overflow: hidden;
    border: 1px solid var(--border);
}
.stat-item { flex: 1; text-align: center; padding: 16px 8px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 22px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

.section-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px;
    margin: 0 16px 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.section-title {
    font-size: 16px; font-weight: 700;
    margin-bottom: 16px;
    display: flex; align-items: center; gap: 8px;
    color: var(--text);
}
.section-title i { color: var(--primary); }

.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-thumb {
    aspect-ratio: 1; border-radius: 10px;
    overflow: hidden; cursor: pointer;
    position: relative;
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.photo-thumb:hover img { transform: scale(1.05); }
.photo-thumb-del {
    position: absolute; top: 4px; right: 4px;
    background: rgba(0,0,0,0.6); color: white; border: none;
    width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
    font-size: 11px; display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.2s;
}
.photo-thumb:hover .photo-thumb-del { opacity: 1; }

.add-photo-btn {
    aspect-ratio: 1; border-radius: 10px;
    border: 2px dashed var(--border);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-muted); font-size: 12px; gap: 4px;
    transition: all var(--transition);
}
.add-photo-btn i { font-size: 24px; }
.add-photo-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(255, 107, 157, 0.04); }

.interests-list { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-chip {
    background: rgba(255, 107, 157, 0.08);
    color: var(--primary);
    border: 1px solid rgba(255, 107, 157, 0.2);
    padding: 6px 14px; border-radius: var(--radius-full);
    font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all var(--transition);
}
.interest-chip.selected { background: var(--gradient); color: white; border-color: transparent; }
.interest-chip:hover { transform: scale(1.03); }

/* ============ PREMIUM PAGE ============ */
.premium-hero {
    background: var(--gradient);
    padding: 40px 20px 40px;
    text-align: center; color: white;
}
.premium-hero h1 { font-size: 28px; margin-bottom: 8px; }
.premium-hero p { opacity: 0.9; font-size: 15px; }
.crown-icon { font-size: 48px; margin-bottom: 12px; color: #fbbf24; }

.plan-cards { padding: 20px 16px; display: flex; flex-direction: column; gap: 12px; }
.plan-card {
    background: var(--surface); border: 2px solid var(--border);
    border-radius: var(--radius); padding: 20px; cursor: pointer;
    transition: all var(--transition); position: relative; overflow: hidden;
}
.plan-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.plan-card.selected { border-color: var(--primary); background: rgba(255, 107, 157, 0.04); }
.plan-card.popular { border-color: var(--primary); }
.popular-badge {
    position: absolute; top: 0; right: 0;
    background: var(--gradient); color: white;
    font-size: 11px; font-weight: 700; padding: 4px 12px;
    border-bottom-left-radius: var(--radius-sm);
}
.plan-header { display: flex; align-items: center; justify-content: space-between; }
.plan-name { font-size: 18px; font-weight: 700; }
.plan-price { font-size: 22px; font-weight: 800; color: var(--primary); }
.plan-price span { font-size: 13px; color: var(--text-muted); font-weight: 400; }
.plan-save { font-size: 12px; color: var(--success); font-weight: 600; background: rgba(34, 197, 94, 0.1); padding: 2px 8px; border-radius: 4px; }
.plan-original { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }

.plan-features-list { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.plan-features-list li { font-size: 14px; display: flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.plan-features-list li i { color: var(--primary); width: 16px; }

.payment-modal .modal-body { padding: 24px; }
.payment-method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.payment-method-btn {
    padding: 14px; border-radius: var(--radius-sm);
    border: 2px solid var(--border); background: var(--surface-2);
    cursor: pointer; text-align: center; transition: all var(--transition);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.payment-method-btn i { font-size: 24px; color: var(--primary); }
.payment-method-btn span { font-size: 12px; font-weight: 600; color: var(--text); }
.payment-method-btn.active { border-color: var(--primary); background: rgba(255, 107, 157, 0.06); }
.payment-method-btn:hover { border-color: var(--primary); }

/* ============ MODALS ============ */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 500;
    display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity var(--transition);
    backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
    background: var(--surface);
    border-radius: 24px 24px 0 0;
    width: 100%; max-width: 480px;
    max-height: 90vh; overflow-y: auto;
    transform: translateY(100%);
    transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px 0; position: sticky; top: 0;
    background: var(--surface); z-index: 2;
    border-bottom: 1px solid var(--border); padding-bottom: 16px;
}
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close {
    width: 32px; height: 32px; border-radius: 50%;
    border: none; background: var(--surface-2); color: var(--text);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.modal-body { padding: 20px 24px 32px; }

/* ============ POSTS ============ */
.post-card {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px;
}
.post-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.post-user-name { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 5px; }
.post-time { font-size: 12px; color: var(--text-muted); }
.post-content { font-size: 15px; line-height: 1.5; color: var(--text); margin-bottom: 12px; }
.post-image { width: 100%; border-radius: 12px; margin-bottom: 12px; object-fit: cover; max-height: 400px; }
.post-actions { display: flex; align-items: center; gap: 20px; padding-top: 12px; border-top: 1px solid var(--border); }
.post-action-btn { border: none; background: none; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 14px; padding: 4px 0; transition: color var(--transition); font-family: inherit; }
.post-action-btn:hover, .post-action-btn.liked { color: var(--primary); }
.post-action-btn i { font-size: 18px; }

.create-post-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    cursor: pointer;
}
.create-post-input {
    flex: 1; background: var(--surface-2);
    border-radius: var(--radius-full);
    padding: 10px 16px; font-size: 14px; color: var(--text-muted);
    border: 1px solid var(--border);
    pointer-events: none;
}

/* ============ FILTERS ============ */
.filter-bar {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; overflow-x: auto;
    background: var(--surface); border-bottom: 1px solid var(--border);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
    flex-shrink: 0;
    padding: 7px 14px; border-radius: var(--radius-full);
    border: 1.5px solid var(--border); background: var(--surface);
    font-size: 13px; font-weight: 500; cursor: pointer;
    color: var(--text); transition: all var(--transition); white-space: nowrap;
    display: flex; align-items: center; gap: 5px;
}
.filter-chip.active, .filter-chip:hover { border-color: var(--primary); color: var(--primary); background: rgba(255, 107, 157, 0.06); }
.filter-chip i { font-size: 13px; }

/* ============ ADMIN ============ */
.admin-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; width: 240px;
    background: var(--surface); border-right: 1px solid var(--border);
    overflow-y: auto; z-index: 50; padding: 20px 0;
}
.admin-content { margin-left: 240px; padding: 24px; min-height: 100vh; }
.admin-logo { padding: 0 20px 20px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.admin-logo h2 { font-size: 20px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.admin-nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 20px; font-size: 14px; font-weight: 500;
    color: var(--text-secondary); transition: all var(--transition); cursor: pointer;
}
.admin-nav-item:hover, .admin-nav-item.active { color: var(--primary); background: rgba(255, 107, 157, 0.06); }
.admin-nav-item i { width: 18px; text-align: center; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--surface); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.stat-card-val { font-size: 28px; font-weight: 800; }
.stat-card-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-muted); padding: 12px 16px; border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: 0.5px; }
.admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.admin-table tr:hover td { background: var(--surface-2); }

.badge-status {
    display: inline-block; padding: 3px 10px; border-radius: var(--radius-full);
    font-size: 11px; font-weight: 600; text-transform: uppercase;
}
.badge-active { background: rgba(34, 197, 94, 0.1); color: #16a34a; }
.badge-banned { background: rgba(239, 68, 68, 0.1); color: var(--danger); }
.badge-premium { background: rgba(251, 191, 36, 0.1); color: #d97706; }

/* ============ TOAST ============ */
.toast-container { position: fixed; top: 70px; right: 16px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
    background: var(--surface); color: var(--text); padding: 12px 18px;
    border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
    font-size: 14px; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    border-left: 4px solid var(--primary);
    animation: slideIn 0.3s ease, fadeOut 0.4s ease 3s forwards;
    pointer-events: all; min-width: 240px; max-width: 320px;
    border: 1px solid var(--border);
}
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast i { font-size: 18px; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }
.toast.warning i { color: var(--warning); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; transform: translateX(100%); } }

/* ============ MATCH OVERLAY ============ */
.match-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8);
    z-index: 900; display: flex; align-items: center; justify-content: center;
    padding: 20px; backdrop-filter: blur(10px);
}
.match-card {
    background: var(--surface); border-radius: 24px;
    padding: 40px 32px; text-align: center;
    max-width: 360px; width: 100%;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes popIn { from { transform: scale(0.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.match-heart { font-size: 60px; color: var(--primary); animation: heartbeat 1s infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.match-card h2 { margin: 16px 0 8px; font-size: 28px; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.match-card p { margin-bottom: 24px; font-size: 16px; }
.match-actions { display: flex; flex-direction: column; gap: 10px; }

/* ============ NOTIFICATION PAGE ============ */
.notif-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border-bottom: 1px solid var(--border);
    cursor: pointer; transition: background var(--transition);
}
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: rgba(255, 107, 157, 0.04); }
.notif-icon {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.notif-icon.match { background: rgba(255, 107, 157, 0.15); color: var(--primary); }
.notif-icon.message { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.notif-icon.like { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.notif-icon.view { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.notif-icon.premium { background: rgba(251, 191, 36, 0.15); color: #f59e0b; }
.notif-icon.discount { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.notif-icon.system { background: rgba(107, 114, 128, 0.15); color: #6b7280; }
.notif-content { flex: 1; min-width: 0; }
.notif-title { font-size: 14px; font-weight: 600; }
.notif-body { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.notif-time { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ============ AD CARD ============ */
.ad-card {
    background: var(--surface); border-radius: var(--radius);
    overflow: hidden; border: 1px solid var(--border);
    margin: 12px 16px;
}
.ad-card img { width: 100%; height: 180px; object-fit: cover; }
.ad-card-body { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
.ad-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.ad-title { font-size: 14px; font-weight: 600; margin-top: 2px; }
.ad-link { font-size: 13px; color: var(--primary); font-weight: 600; }

/* ============ EMPTY STATE ============ */
.empty-state {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 24px; text-align: center; gap: 12px;
}
.empty-state i { font-size: 56px; color: var(--border); }
.empty-state h3 { font-size: 18px; color: var(--text); }
.empty-state p { font-size: 14px; color: var(--text-muted); max-width: 240px; line-height: 1.5; }

/* ============ LOADING STATES ============ */
.skeleton { background: var(--border); border-radius: 8px; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

.loading-spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--border); border-top-color: var(--primary);
    border-radius: 50%; animation: spin 0.8s linear infinite; margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ MISC ============ */
.verify-icon { color: #60a5fa; }
.premium-icon { color: #fbbf24; }
.online-indicator { color: var(--online); font-size: 11px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.online-indicator::before { content: ''; width: 7px; height: 7px; background: var(--online); border-radius: 50%; display: inline-block; }

.divider { height: 1px; background: var(--border); margin: 16px 0; }

.page-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px; background: var(--surface); border-bottom: 1px solid var(--border);
    position: sticky; top: var(--header-h); z-index: 50;
}
.page-header h2 { font-size: 18px; font-weight: 700; }

.discount-banner {
    background: var(--gradient); color: white;
    padding: 10px 16px; display: flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 500; position: relative;
}
.discount-banner .close-btn {
    background: rgba(255,255,255,0.2); border: none; color: white;
    width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
    margin-left: auto; display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ============ 404 ============ */
.not-found { text-align: center; padding: 80px 24px; }
.not-found .code { font-size: 80px; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ============ RESPONSIVE ============ */
@media (max-width: 480px) {
    .admin-sidebar { display: none; }
    .admin-content { margin-left: 0; padding: 16px; }
}

@media (min-width: 481px) {
    .bottom-nav { border-radius: 0; }
    body { background: #e8e8f0; }
    [data-theme="dark"] body { background: #07070f; }
    .app-header { max-width: 480px; left: 50%; transform: translateX(-50%); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
}

/* Input file hidden */
input[type="file"] { display: none; }

/* Range input */
input[type="range"] { -webkit-appearance: none; width: 100%; height: 4px; border-radius: 2px; background: var(--border); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gradient); cursor: pointer; box-shadow: 0 2px 8px rgba(255, 107, 157, 0.4); }

/* Checkbox */
.checkbox-wrap { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.checkbox-wrap input[type="checkbox"] { display: none; }
.checkbox-box { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: all var(--transition); flex-shrink: 0; }
.checkbox-wrap input:checked + .checkbox-box { background: var(--gradient); border-color: transparent; }
.checkbox-wrap input:checked + .checkbox-box::after { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: white; font-size: 11px; }

/* Switches */
.switch { position: relative; display: inline-block; width: 48px; height: 26px; }
.switch input { display: none; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--border); border-radius: 26px; transition: .3s; }
.slider::before { position: absolute; content: ''; height: 20px; width: 20px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: .3s; box-shadow: 0 1px 4px rgba(0,0,0,0.2); }
input:checked + .slider { background: var(--gradient); }
input:checked + .slider::before { transform: translateX(22px); }

/* Pull to refresh hint */
.pull-hint { text-align: center; padding: 12px; color: var(--text-muted); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 6px; }

/* Safe area support */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .bottom-nav { padding-bottom: env(safe-area-inset-bottom); height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
    body { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
}
