@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(22, 28, 45, 0.7);
    --bg-card-hover: rgba(30, 41, 59, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --primary: #6366f1; /* Indigo */
    --primary-glow: rgba(99, 102, 241, 0.3);
    --secondary: #ec4899; /* Pink */
    --secondary-glow: rgba(236, 72, 153, 0.3);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --success: #10b981; /* Green */
    --danger: #ef4444;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(236, 72, 153, 0.12) 0px, transparent 50%);
    background-attachment: fixed;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header / Navbar */
.navbar {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: rgba(11, 15, 25, 0.8);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.badge {
    background: var(--secondary);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 99px;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

/* Glass Card */
.card {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    transition: var(--transition-normal);
}

.card:hover {
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 15px 40px -15px rgba(99, 102, 241, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    background-color: rgba(11, 15, 25, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: var(--transition-fast);
}

select.form-control option {
    background-color: #121824;
    color: #ffffff;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Auth Pages (Login & Register) */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    flex-grow: 1;
}

.auth-card {
    width: 100%;
    max-width: 480px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Home / Discovery Page */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 40px 0;
    flex-grow: 1;
}

@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
}

/* User Card Grid */
.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.user-card {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background-color: #0f172a;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 420px; /* beautiful vertical rectangle */
    box-shadow: 0 15px 35px -15px rgba(0, 0, 0, 0.5);
}

.user-card:hover {
    transform: translateY(-10px);
    border-color: rgba(244, 63, 94, 0.5);
    box-shadow: 0 25px 50px -10px rgba(244, 63, 94, 0.25);
}

/* Tinder style overlay cover wrapper */
.user-card-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    background-color: #0f172a;
}

.user-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.user-card:hover .user-card-img {
    transform: scale(1.1) rotate(0.5deg);
}

/* Beautiful dark bottom gradient overlay */
.user-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 35%, rgba(15, 23, 42, 0.65) 65%, rgba(15, 23, 42, 0.95) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Photo Overlay Badges */
.user-card-badge-zodiac {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

.user-card-badge-gender {
    position: absolute;
    top: 16px;
    right: 48px; /* space for online status pulse dot */
    background: linear-gradient(135deg, #ec4899, #f43f5e); /* Pink gradient for female */
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 3;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.35);
}
.user-card-badge-gender.erkek {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8); /* Blue gradient for male */
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.online-pulse {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 14px;
    height: 14px;
    background-color: var(--success);
    border-radius: 50%;
    z-index: 3;
    border: 2px solid #0f172a;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse 1.6s infinite;
}

.offline-dot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 14px;
    height: 14px;
    background-color: #64748b;
    border-radius: 50%;
    z-index: 3;
    border: 2px solid #0f172a;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Premium Info overlay at bottom */
.user-card-info {
    padding: 24px;
    position: relative;
    z-index: 3; /* sits above grad overlay */
    display: flex;
    flex-direction: column;
}

.user-card-name {
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.user-card-loc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.user-card-status {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-left: 3px solid var(--secondary);
    padding: 8px 12px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 18px;
    font-style: italic;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.user-card-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
}

/* Gradient View Profile Button */
.btn-profile-view {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    border: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.35);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    padding: 10px 16px;
    text-decoration: none;
    cursor: pointer;
}

.btn-profile-view:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 22px rgba(244, 63, 94, 0.55);
    opacity: 1;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.btn-icon.favorited {
    color: white;
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
}

/* Sidebar Profile Widget */
.sidebar-profile {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mini-profile-card {
    text-align: center;
}

.mini-avatar {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    object-fit: cover;
    margin: 0 auto 16px auto;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Profile Completion Meter */
.meter-wrapper {
    margin-top: 15px;
    text-align: left;
}

.meter-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.meter-bar-bg {
    width: 100%;
    height: 6px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 99px;
    overflow: hidden;
}

.meter-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 99px;
    transition: width 0.5s ease-out;
}

/* Profile Details Page */
.profile-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 30px;
    padding: 40px 0;
}

@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

.profile-sidebar-img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.icebreaker-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
    border-color: rgba(99, 102, 241, 0.2);
}

.icebreaker-q {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 15px;
}

.icebreaker-a {
    color: var(--text-primary);
    font-size: 14px;
    font-style: italic;
    background-color: rgba(0,0,0,0.2);
    padding: 10px 14px;
    border-radius: 10px;
    border-left: 3px solid var(--secondary);
}

/* Messaging Layout (Split Panel) */
.messages-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0;
    height: calc(100vh - 120px);
    margin: 20px 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .messages-layout {
        grid-template-columns: 1fr;
    }
    .chat-active {
        display: none;
    }
    .chat-active.mobile-show {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        z-index: 100;
        background-color: var(--bg-main);
    }
}

.chat-sidebar {
    background-color: rgba(15, 23, 42, 0.6);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chat-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.chat-list {
    overflow-y: auto;
    flex-grow: 1;
}

.chat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,255,255,0.02);
    transition: var(--transition-fast);
    text-decoration: none;
    color: inherit;
}

.chat-item:hover {
    background-color: rgba(255,255,255,0.03);
}

.chat-item.active {
    background-color: rgba(99, 102, 241, 0.12);
    border-left: 4px solid var(--primary);
}

.chat-item-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.chat-item-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.chat-item-online {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    background-color: var(--success);
    border-radius: 50%;
    border: 2px solid #0f172a;
}

.chat-item-offline {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 11px;
    height: 11px;
    background-color: var(--text-muted);
    border-radius: 50%;
    border: 2px solid #0f172a;
}

.chat-item-info {
    flex-grow: 1;
    min-width: 0;
}

.chat-item-name-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.chat-item-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.chat-item-time {
    font-size: 11px;
    color: var(--text-muted);
}

.chat-item-lastmsg {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-active {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card);
}

.chat-active-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-active-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-active-user-name {
    font-weight: 700;
    font-size: 16px;
}

.chat-active-status {
    font-size: 12px;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-active-status.offline {
    color: var(--text-secondary);
}

.chat-messages-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message-bubble {
    max-width: 65%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.message-bubble.incoming {
    align-self: flex-start;
    background-color: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
}

.message-bubble.outgoing {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-bottom-right-radius: 4px;
}

.message-meta {
    display: flex;
    justify-content: flex-end;
    font-size: 10px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.chat-input-area {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(11, 15, 25, 0.4);
}

.chat-form {
    display: flex;
    gap: 12px;
}

/* Alert Notification */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-danger {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #a7f3d0;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Search and Filters */
.search-sidebar {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    align-self: start;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.search-sidebar::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, Opera */
}

.search-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Footer styling */
footer {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: rgba(11, 15, 25, 0.8);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--text-primary);
}

/* Landing Page & Social Platform Base Styling */
.landing-wrapper {
    display: flex;
    flex-direction: column;
    padding: 50px 20px;
    gap: 70px;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.landing-hero-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    width: 100%;
    align-items: start;
}

.auth-card {
    position: sticky;
    top: 95px;
    border: 1px solid rgba(99, 102, 241, 0.35);
    background: rgba(22, 28, 45, 0.85);
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.6);
    width: 100%;
}

.hero-pillars-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 10px;
}

.pillar-card {
    background: rgba(22, 28, 45, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition-fast);
}

.pillar-card:hover {
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
    background: rgba(30, 41, 59, 0.8);
}

.showcase-section {
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.showcase-card {
    padding: 28px 24px;
    border: 1px solid var(--border-color);
    background: rgba(22, 28, 45, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: var(--transition-normal);
}

.showcase-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px -10px rgba(99, 102, 241, 0.25);
    background: rgba(30, 41, 59, 0.85);
}

.dashboard-welcome-banner {
    padding: 22px 26px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(236,72,153,0.08));
    border: 1px solid rgba(99,102,241,0.25);
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Overrides for Mobile & Tablet */
@media (max-width: 992px) {
    .landing-hero-grid {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 36px !important;
        width: 100% !important;
    }
    .auth-card {
        position: static !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .main-layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        padding: 24px 0 !important;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 10px 0;
    }
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    .logo {
        font-size: 18px;
        white-space: nowrap;
    }
    .logo span {
        display: inline;
    }
    .nav-links {
        display: flex;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        width: 100%;
        padding: 4px 0 6px 0;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    .nav-links li {
        flex-shrink: 0;
    }
    .nav-links a {
        font-size: 13px;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        white-space: nowrap;
    }
    .nav-links a.active {
        background: rgba(99, 102, 241, 0.25);
        border-color: rgba(99, 102, 241, 0.5);
    }
    .card {
        padding: 20px 16px;
        border-radius: 16px;
    }
    .dashboard-welcome-banner {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 12px;
    }
    .landing-wrapper {
        padding: 24px 10px;
        gap: 36px;
    }
    .landing-hero-grid h1 {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }
    .hero-pillars-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    .pillar-card {
        padding: 12px 14px;
    }
    .showcase-section {
        padding-top: 36px;
    }
    .showcase-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    .showcase-card {
        padding: 20px 16px;
    }
    .auth-card {
        padding: 20px 16px;
    }
    .user-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
        gap: 16px;
    }
    .user-card {
        height: 390px;
        border-radius: 20px;
    }
    .user-card-info {
        padding: 16px;
    }
    .user-card-name {
        font-size: 18px;
    }
    .user-card-status {
        font-size: 12px;
        margin-bottom: 12px;
        padding: 6px 10px;
    }
    .btn-profile-view {
        font-size: 12px;
        padding: 8px 12px;
    }
    .btn-icon {
        width: 36px;
        height: 36px;
    }
    .logo {
        font-size: 20px;
    }
    .logo span {
        display: inline;
    }
}

/* Mobile App-Like Bottom Navigation Bar (Members Only) */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body.logged-in-mobile {
        padding-bottom: 74px !important;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: rgba(11, 15, 25, 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        padding: 0 4px;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7);
    }

    .mobile-bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 10.5px;
        font-weight: 500;
        flex: 1;
        height: 100%;
        transition: all 0.2s ease;
    }

    .mobile-bottom-nav a i {
        width: 20px;
        height: 20px;
        stroke-width: 2.2px;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .mobile-bottom-nav a.active {
        color: var(--primary);
        font-weight: 700;
    }

    .mobile-bottom-nav a.active i {
        color: var(--primary);
        transform: translateY(-2px);
    }

    .mobile-nav-badge {
        position: absolute;
        top: -4px;
        right: -8px;
        background: var(--secondary);
        color: white;
        font-size: 9px;
        font-weight: 800;
        padding: 2px 5px;
        border-radius: 99px;
        line-height: 1;
        box-shadow: 0 0 8px rgba(236, 72, 153, 0.6);
    }

    /* On mobile header when logged in: hide main 5 nav items (since they are in bottom bar), keep top bar clean */
    .nav-links-logged-in li.nav-main-item {
        display: none !important;
    }
}

