:root {
    /* Define these here since we aren't using the main site's CSS */
    --skye-blue: #5D9CEC;
    --skye-dark: #1E293B;
    --white: #ffffff;
    --connect-bg: #F8FAFC;
}

/* --- Custom Skye Scrollbar --- */

/* For Chrome, Safari, and Edge */
::-webkit-scrollbar {
    width: 12px;
    display: block !important; /* Forces it to show */
}

::-webkit-scrollbar-track {
    background: var(--white); /* Light background for the track */
}

::-webkit-scrollbar-thumb {
    background-color: #5D9CEC; /* Your requested Skye Blue */
    border-radius: 50px;       /* Pill shape */
    border: 2px solid var(--white); /* Padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background-color: #4a8bd1; /* Slightly darker blue on hover */
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #5D9CEC var(--white);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll; /* Forces vertical scrollbar space to always exist */
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh; /* Ensures the body is at least as tall as the screen */
    position: relative;
    background-color: var(--connect-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
}

#notif-dropdown {
    position: absolute;
    top: 65px; /* Adjust based on your nav height */
    right: 0;
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    z-index: 9999 !important; /* Forces it to the front on mobile */
    border: 1px solid #e2e8f0;
}

/* --- Forum Splash Screen --- */
#forum-splash-screen {
    position: fixed;
    inset: 0;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

.forum-splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 90%;
    max-width: 300px; 
}

.forum-logo {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 30px;
}

/* --- Loader Dots --- */
.forum-loader { display: flex; gap: 8px; }
.forum-loader span {
    width: 12px; height: 12px;
    background: var(--skye-blue);
    border-radius: 50%;
    animation: forumBounce 1.4s infinite ease-in-out both;
}
.forum-loader span:nth-child(1) { animation-delay: -0.32s; }
.forum-loader span:nth-child(2) { animation-delay: -0.16s; }

@keyframes forumBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.avatar-fallback {
    width: 45px;
    height: 45px;
    background: #1a1a1a; /* Dark theme for Skye */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
}

.avatar-fallback i {
    color: #10b981; /* Skye's accent green */
    font-size: 1.5rem;
}

#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a; /* Or your preferred Skye dark theme */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

/* --- Connect Main Layout --- */
#connect-main {
    padding-top: 100px !important; /* Adjust this if your header is taller */
    padding-bottom: 50px;
    min-height: 100vh;
}

#connect-main.reveal {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Forum Nav --- */
.connect-nav {
    position: fixed;
    /* Default for Desktop: Top */
    top: 20px;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 2000;
    padding: 0 15px;
    pointer-events: none; /* Allows clicking things 'under' the nav container */
}

.nav-pill-connect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    display: flex;
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* --- Navigation Pill (The Floating Bar) --- */
.connect-nav {
    position: fixed;
    top: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.nav-pill {
    pointer-events: auto; /* Re-enables clicking on the actual pill */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 12px 25px;
    border-radius: 50px;
    display: flex;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    max-width: 95%; /* Prevents touching screen edges */
}

.nav-link {
    text-decoration: none;
    color: var(--skye-dark);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
    opacity: 0.6;
    justify-content: center;
    min-width: 45px;
    position: relative;
    z-index: 1000; /* Ensure the bell is above the background */
    -webkit-tap-highlight-color: transparent; /* Fixes mobile flickering */
}

.nav-link:hover, .nav-link.active {
    color: var(--skye-blue);
    opacity: 1;
}

.container {
    width: 98%; /* Increased from 90% for mobile */
    max-width: 1200px; /* Increased from 1000px for desktop */
    margin: 0 auto;
    padding: 10px;
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Change from center to flex-start */
    min-height: 100vh;
    padding: 100px 20px 140px; /* Top padding for nav, bottom for mobile nav */
    box-sizing: border-box;
}

.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
    width: 100%;
    margin-top: 30px;
}

.post-card {
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid rgba(0,0,0,0.02);
}

.post-card:hover { transform: translateY(-3px); }

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 12px;
}

.mini-avatar { width: 30px; height: 30px; border-radius: 50%; }

.login-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.skye-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--skye-dark);
    margin: 15px 0 5px 0;
}

.skye-input {
    margin-bottom: 8px;   /* Reduced from default */
    padding: 10px 15px;   /* Slightly slimmer padding */
}

.skye-input:focus {
    outline: none;
    border-color: var(--skye-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(93, 156, 236, 0.1);
}

.section-subtitle {
    margin-bottom: 15px !important;
}

.auth-promo {
    background: var(--skye-blue);
    color: var(--white);
    padding: 30px;
    border-radius: 25px;
    text-align: center;
}

/* --- Hero & Typography --- */
h1 {
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--skye-dark);
}

.accent { color: var(--skye-blue); }

/* --- Buttons --- */
.btn-pill {
    display: inline-block;
    padding: 14px 35px;
    background: var(--skye-blue);
    color: var(--white);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--skye-blue);
    transition: 0.3s;
}

.btn-pill.outline {
    background: transparent;
    color: var(--skye-blue);
    margin-left: 10px;
}

.btn-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(93, 156, 236, 0.4);
}

.btn-pill, .btn-outline {
    padding: 10px 24px !important; /* Reduced vertical padding */
    font-size: 14px !important;    /* Slightly smaller font */
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px; /* Fixed smaller height */
}

.form-actions {
    margin-top: 20px !important; /* Reduced gap from form fields */
    gap: 10px !important;        /* Tighter gap between buttons */
}

.auth-card {
    background: var(--white);
    padding: 35px;
    border-radius: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    box-sizing: border-box; /* CRITICAL: Keeps inputs inside the card */
    margin: 20px auto;
    transition: max-width 0.3s ease;
}

/* Apply this to all inputs to prevent them from sticking out */
.auth-card input, 
.auth-card textarea {
    width: 100%;
    box-sizing: border-box; /* Forces width to include padding */
    display: block;
    margin-bottom: 15px;
}

.auth-card textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    resize: vertical; /* Allows user to adjust height if needed */
    min-height: 100px;
}

/* --- Sign In / Join Toggle --- */
.auth-toggle {
    display: flex;
    width: 100%;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-sizing: border-box;
}

.auth-toggle button {
    flex: 1;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-weight: 600;
    background: transparent;
    transition: all 0.3s ease;
}

.auth-toggle button.active {
    background: var(--white);
    color: var(--skye-blue);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dual-input {
    display: flex;
    flex-direction: column; /* Stack handle/link on mobile */
    gap: 8px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns by default */
    gap: 30px;
}

.form-group {
    position: relative;
    margin-bottom: 15px; /* Reduced vertical space for a neater look */
}

.form-group label {
    display: block;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--skye-blue);
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.form-grid, .form-group {
    position: relative;
    overflow: visible !important; 
}

.skye-input {
    width: 100%;
    padding: 14px 16px; 
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    background: white;
    transition: all 0.2s ease;
    outline: none;
    display: block;
}

/* Floating Label Logic */
.skye-label {
    position: absolute;
    left: 14px;
    top: 14px;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.2s ease;
    font-size: 15px;
    background: transparent;
    padding: 0 4px;
}

/* Updated Lifted State: Shifted higher and neatened */
.skye-input:focus ~ .skye-label,
.skye-input:not(:placeholder-shown) ~ .skye-label {
    top: -14px; /* Shifted higher for clear text visibility */
    left: 10px;
    font-size: 11px;
    font-weight: 700;
    color: var(--skye-blue);
    background: #ffffff; /* Solid white to mask the border */
    padding: 0 6px;
    text-transform: uppercase;
    z-index: 10;
}

.skye-input:focus {
    border-color: var(--skye-blue);
    box-shadow: 0 0 0 4px rgba(93, 156, 236, 0.1);
}

.password-wrapper {
    position: relative;
    display: block;
}

.password-wrapper .skye-label {
    z-index: 5;
}

.social-stack .form-group {
    margin-bottom: 10px !important;
}

.social-stack {
    display: flex;
    flex-direction: column;
    gap: 12px; /* Controlled gap between stacked social inputs */
}

.social-trigger {
    cursor: pointer !important;
    padding: 10px;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.social-trigger:hover {
    transform: scale(1.2);
    color: var(--skye-blue);
}

.skye-social-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8); /* Darker backdrop */
    display: none; /* JS will toggle to 'flex' */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.modal-content-skye {
    background: var(--white);
    padding: 30px;
    border-radius: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

#readiness-group {
    margin-top: 5px !important;
}

textarea.skye-input {
    min-height: 100px;
}

#signup-form input, 
#signup-form textarea,
#login-form input {
    width: 100%;
    padding: 14px 20px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-family: inherit;
    transition: 0.3s;
}

#signup-form input:focus {
    border-color: var(--skye-blue);
    background: var(--white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(93, 156, 236, 0.1);
}

/* File input styling */
input[type="file"] {
    background: transparent !important;
    border: 2px dashed #e2e8f0 !important;
    padding: 20px !important;
    text-align: center;
    cursor: pointer;
}

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

.full-feed {
    max-width: 700px; /* Optimal reading width for posts */
    width: 100%;
    margin: 0 auto;
}

.topic-card-wide {
    background: var(--white);
    padding: 25px;
    border-radius: 24px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease;
}

.topic-card-wide:hover {
    transform: scale(1.02);
    border-color: var(--skye-blue);
}

.topic-meta {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    display: flex;
    gap: 8px;
    align-items: center;
}

.user-tag {
    color: var(--skye-blue);
    font-weight: 600;
}

/* --- The Profile Trigger --- */
.profile-trigger {
    color: var(--skye-dark);
    font-size: 1.5rem;
    margin-left: 10px;
    transition: 0.3s;
    display: flex;
    align-items: center;
}

.profile-trigger:hover {
    color: var(--skye-blue);
}

/* --- Center the Header --- */
.feed-header-alt {
    text-align: center;
    margin-bottom: 50px;
}

.topic-info h3 a {
    text-decoration: none;
    color: var(--skye-dark);
    font-size: 1.15rem;
}

.topic-info p {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 5px;
}

.auth-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--white);
    padding: 25px;
    border-radius: 25px;
    box-shadow: var(--shadow);
    text-align: center;
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.connect-footer {
    flex-shrink: 0;
    background: var(--white);
    /* Drastically reduced padding to make it feel 'higher' */
    padding: 20px 20px; 
    margin-top: 20px; /* Small gap instead of 80px */
    border-top: 1px solid rgba(0,0,0,0.05);
    text-align: center;
    width: 100%;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--skye-dark);
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.connect-footer p {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-links a {
    text-decoration: none;
    color: var(--skye-dark);
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.3s;
    opacity: 0.6;
}

.footer-links a:hover {
    color: var(--skye-blue);
    opacity: 1;
}

/* --- Dashboard Specifics --- */

.dashboard-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
}

.search-wrapper {
    flex: 1;
    background: var(--white);
    border-radius: 50px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.search-wrapper input {
    border: none;
    padding: 15px;
    width: 100%;
    outline: none;
    font-size: 0.95rem;
}

.btn-create {
    background: var(--skye-blue);
    color: var(--white);
    width: 55px; /* Circle on mobile */
    height: 55px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(93, 156, 236, 0.3);
}

/* --- Filter Pills --- */

.filter-section {
    background: white;
    padding: 15px 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-bottom: 40px;
}

.search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

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

.search-input-wrapper i {
    position: absolute;
    left: 15px;
    color: #94a3b8;
}

.search-input-wrapper input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.filter-controls {
    display: flex;
    gap: 10px;
}

.filter-controls select {
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.filter-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 20px;
    margin-bottom: 10px;
    scrollbar-width: none;
}

.filter-pill {
    background: #e2e8f0;
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--skye-dark);
    cursor: pointer;
}

.filter-pill.active {
    background: var(--skye-dark);
    color: var(--white);
}


/* --- Discussion Cards --- */
.card-body {
    flex-grow: 1; /* Pushes the footer/button to the bottom */
}

.card-body h3 {
    font-size: 1.15rem;
    color: var(--skye-dark);
    margin-bottom: 10px;
    /* Prevents giant titles from breaking the grid */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.discussion-card {
    background: var(--white);
    border-radius: 15px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* These 3 lines make the buttons align at the bottom */
    display: flex;
    flex-direction: column;
    height: 100%; 
}

.discussion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(93, 156, 236, 0.15);
}

.discussion-item {
    background: var(--white);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 15px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--skye-blue);
}

.user-avatar-mini {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    flex-shrink: 0; /* Prevents the circle from squishing */
}

.user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.username {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--skye-dark);
}

.time {
    font-size: 0.75rem;
    color: #888;
}

.badge.campaign {
    background: #fef3c7;
    color: #92400e;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 20px;
    margin-left: auto;
    font-weight: bold;
}

.category-pill {
    background: #e0f2fe;
    color: var(--skye-blue);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.category-tag {
    font-size: 0.75rem;
    background: #f1f5f9;
    color: #475569;
    padding: 5px 10px;
    border-radius: 6px;
}

.user-thumb {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
}

.badge-work {
    background: #10b981;
    color: white;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: bold;
    display: block;
    text-align: center;
    margin-top: 5px;
}

.btn-create-topic {
    background: var(--skye-blue);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
}

.btn-read {
    color: var(--skye-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.suggestion-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    z-index: 9999; /* Ensure it stays above everything */
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: none;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--skye-dark);
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8fafc;
    color: var(--skye-blue);
}

.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-wrapper, .skills-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.tags-input-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    min-height: 45px;
}

.skill-tag {
    background: var(--skye-blue);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.skill-tag span {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
}

.skye-modal-overlay {
    position: fixed; /* Ensures it stays on top of everything */
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px; /* Prevents modal from hitting screen edges on mobile */
}

#skye-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 41, 59, 0.8); /* Using --skye-dark with opacity */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.skye-modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.skye-modal-content h3 { color: var(--skye-blue); margin-top: 0; }

.modal-content p {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-modal-close {
    background: var(--skye-blue); /* */
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-modal-close:hover {
    background: #4a8bd1;
    transform: translateY(-2px);
}

.user-nav-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 8px;
    color: var(--skye-dark);
}

.btn-delete-text {
    background-color: #fff1f2;
    color: #e11d48;
    border: 1px solid #fecdd3;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-delete-text:hover {
    background-color: #e11d48;
    color: white;
}

/* Ensure the Logout button looks like an outline */
.btn-outline {
    padding: 10px 25px;
    border: 2px solid var(--skye-blue);
    color: var(--skye-blue);
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline:hover {
    background: var(--skye-blue);
    color: white;
}

.profile-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--skye-dark);
    font-style: italic;
    border-left: 4px solid var(--skye-blue);
    padding-left: 15px;
}

.skill-tag-display {
    display: inline-block;
    background: #e2e8f0;
    color: var(--skye-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin: 4px;
    font-weight: 500;
}

.social-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.resume-link {
    grid-column: span 2;
    background: #f1f5f9;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    color: var(--skye-blue);
    font-weight: bold;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header, .connect-footer {
    width: 100%;
    box-sizing: border-box;
}

/* --- Profile Dashboard Styles --- */
.profile-card {
    width: 100%; /* Takes up full width of the container */
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.profile-card, .auth-wrapper {
    width: 95%;         /* Fits nearly full screen */
    max-width: 1200px;  /* Keeps it readable on massive PC monitors */
    margin: 20px auto;  /* Centers it */
}

.profile-header {
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 30px;
    margin-bottom: 30px;
}

.profile-img-lg {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--connect-bg);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.profile-header h1 {
    margin: 10px 0 5px 0;
    color: var(--skye-dark);
}

.username-tag {
    background: #e0f2fe;
    color: var(--skye-blue);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Content Sections --- */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.section {
    margin-bottom: 25px;
}

.section h3 {
    font-size: 1rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-bio {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #334155;
    background: #f8fafc;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid var(--skye-blue);
}

/* --- Action Buttons --- */
.profile-actions {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.discussion-feed {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pagination-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 40px 0;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: white;
    color: var(--skye-dark);
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.page-link:hover {
    background: var(--skye-blue);
    color: white;
    transform: translateY(-3px);
}

.page-link.active {
    background: var(--skye-dark);
    color: var(--skye-blue);
}

.social-links-vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-item:hover {
    background: #e2e8f0;
    border-color: var(--skye-blue);
}

.social-item i {
    font-size: 1.2rem;
    color: #64748b;
    transition: color 0.3s;
}

.social-item.active i {
    color: var(--skye-blue); /* Turns blue when linked */
}

.handle-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--skye-dark);
}

/* Ensure the modal is hidden by default and sits on top */
.skye-social-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8); /* Darker backdrop */
    display: none; /* JS will toggle to 'flex' */
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

/* Social item layout: Icon + Text */
.social-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.social-item:hover {
    background: #e2e8f0;
    border-color: var(--skye-blue);
}

.social-item i {
    font-size: 1.2rem;
    color: #64748b;
    transition: color 0.3s;
}

.social-item.active i {
    color: var(--skye-blue); /* Turns blue when linked */
}

.handle-display {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--skye-dark);
    display: none; /* Only shows when data exists */
}

.dual-input {
    gap: 10px;            /* Closer horizontal gap for handles and links */
}

.dual-input input:first-child {
    flex: 1; /* Handle gets less space */
}

.dual-input input:last-child {
    flex: 2; /* Link gets more space */
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: var(--skye-blue);
}

/* Container for the whole list */
.ql-mention-list-container {
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border: 1px solid #e2e8f0 !important;
    background: white !important;
    z-index: 9999;
}

/* Individual suggestion item */
.mention-suggestion {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 10px;
    cursor: pointer;
}

.mention-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--skye-blue);
}

.mention-label {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
}
/* Hover state */
.ql-mention-list-item.selected {
    background-color: #f0f9ff !important;
    text-decoration: none;
}
.ql-mention-list-item.selected .mention-label {
    color: #5D9CEC;
}


.editor-container {
    position: relative;
    margin-bottom: 20px;
}

.image-upload-section {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 12px;
}

.skye-toast {
    position: fixed;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    border-left: 5px solid #10b981; /* Success Green */
    min-width: 320px;
    animation: slideUpFade 0.4s ease-out;
}

.skye-toast.show {
    bottom: 30px; /* Slide up into view */
}

.toast-icon { font-size: 1.5rem; }
.toast-content strong { display: block; color: var(--skye-dark); font-size: 0.95rem; }
.toast-content p { color: #64748b; font-size: 0.85rem; margin: 0; }
.toast-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #94a3b8;
    margin-left: auto;
}

.discussion-grid {
    display: grid;
    /* This creates 3 columns if there is space, otherwise it scales down */
    grid-template-columns: repeat(3, 1fr); 
    gap: 25px;
    padding: 20px 0;
    width: 100%;
}


.btn-like {
    background: #fff0f0;
    color: #ff4757;
}
.btn-like:hover { background: #ff4757; color: white; transform: scale(1.05); }

.btn-share {
    background: #f0f7ff;
    color: var(--skye-blue);
}
.btn-share:hover { background: var(--skye-blue); color: white; transform: scale(1.05); }

.mission-view {
    background: var(--white);
    border-radius: 15px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.mission-actions {
    display: flex;
    gap: 12px;
    margin: 25px 0;
}

.btn-action {
    background: #f1f5f9;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--skye-dark);
    cursor: pointer;
    transition: 0.2s;
}

.btn-action i { color: var(--skye-blue); }
.btn-action:hover { background: #e2e8f0; }

.meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.mission-header h1 {
    font-size: 2.2rem;
    color: var(--skye-dark);
    margin-bottom: 25px;
    line-height: 1.2;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.user-avatar-mini {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.author-text { display: flex; flex-direction: column; }
.author-name { font-weight: 700; color: var(--skye-dark); }
.author-label { font-size: 0.75rem; color: var(--skye-blue); text-transform: uppercase; }



.comment-wrapper {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.comment-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 0;
}

.skye-quote {
    background: #f8fafc;
    border-left: 4px solid var(--skye-blue);
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.skye-quote small {
    color: var(--skye-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.7rem;
}

.reply-item {
    margin-left: 40px;
    margin-top: 15px;
    padding-left: 20px;
    border-left: 1px dashed #cbd5e1;
}

/* --- Form Cleanup --- */
.reply-form-wrap {
    display: none;
    margin-top: 15px;
}

.reply-form-wrap.active { display: block; }

.reply-context-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f0f7ff;
    padding: 8px 15px;
    border-radius: 10px 10px 0 0;
    border-left: 4px solid var(--skye-blue);
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.reply-info strong {
    color: var(--skye-blue);
}

.context-content small {
    color: var(--skye-blue);
    font-weight: 800;
    font-size: 0.75rem;
}

.context-content p {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 500px;
}

.cancel-reply {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1.2rem;
}

.cancel-reply:hover { color: #ef4444; }

.input-wrapper {
    display: flex;
    background: var(--white);
    border: 2px solid #e2e8f0;
    border-radius: 0 0 15px 15px; /* Rounded bottom to match preview */
    padding: 5px;
}

.main-comment-form .input-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

#main-textarea {
    width: 100%;
    min-height: 120px; /* Adjust this to your preferred original height */
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    resize: vertical; /* Allows users to expand it if they need more room */
    font-family: inherit;
    font-size: 1rem;
}

.btn-send {
    background: var(--skye-blue);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-send:hover {
    transform: scale(1.05);
    background: #4a8bd1;
}


.main-comment-form textarea, 
.reply-form-wrap textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    resize: none;
    font-family: inherit;
    margin-bottom: 10px;
}

.reply-form-container {
    display: none; /* Hidden by default */
    margin-top: 10px;
    padding-left: 40px;
}

.reply-form-container.active {
    display: block;
}

/* --- Clean Skye Comments --- */
.comment-item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #edf2f7;
}

.reply-item {
    margin-left: 30px;
    margin-top: 15px;
    padding-left: 15px;
    border-left: 2px solid var(--skye-blue);
}

/* --- The Quote Style (Inside the reply) --- */
.skye-quote {
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

/* --- The Dynamic Input Box (WhatsApp style logic, Skye style look) --- */
.reply-context-box {
    background: var(--skye-dark);
    color: white;
    padding: 10px 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
}

.input-wrapper {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

#main-textarea {
    flex: 1;
    border: none;
    padding: 15px;
    height: 60px;
    resize: none;
}

.btn-send {
    background: var(--skye-blue);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--skye-blue);
}

/* Action Buttons */
.comment-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9; /* Light line to separate text from buttons */
}


.reply-btn, .delete-btn {
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    font-family: inherit;
}

/* Reply Button - Skye Blue */
.reply-btn {
    color: var(--skye-blue);
}

.reply-btn:hover {
    color: var(--skye-dark);
}

/* Delete Button - Soft Gray that turns Red on hover */
.delete-btn {
    color: #94a3b8;
}

.delete-btn:hover {
    color: #ef4444; /* Mission Alert Red */
}
.btn-skye-action, .btn-skye-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--skye-blue);
    text-decoration: none;
}


.btn-skye-action { color: var(--skye-blue); }
.btn-skye-action:hover { color: var(--skye-dark); }

.btn-skye-delete { color: #cbd5e1; }
.btn-skye-delete:hover { color: #ef4444; }

/* Comment Form Styling */
.main-comment-form textarea {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 12px;
    resize: none;
    height: 50px;
    font-family: inherit;
    transition: border 0.3s;
}

.main-comment-form textarea:focus {
    outline: none;
    border-color: var(--skye-blue);
}

.main-input-area {
    position: sticky;
    bottom: 20px;
    background: var(--white);
    padding: 15px;
    border-radius: 20px;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.05);
    margin-top: 30px;
    border: 1px solid #eee;
}

#like-btn {
    transition: all 0.3s ease;
    cursor: pointer;
    background: none;
    border: none;
}

#like-btn.liked {
    color: #ef4444; /* Heart Red */
}

.btn-action.liked i {
    color: #ef4444 !important;
    animation: heartPop 0.3s ease;
}

.btn-action.liked span, 
.btn-action.liked {
    color: var(--skye-blue); 
}
@keyframes heartPop {
    0% { transform: scale(1); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1); }
    0% { transform: scale(1.2); }
}

.mission-media {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    align-items: flex-start;
    flex-wrap: wrap;
}

.media-item {
    flex: 0 1 auto;
    max-width: 350px; /* Slightly smaller for a cleaner look */
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    cursor: zoom-in; /* Indicates the image can be expanded */
    transition: transform 0.2s;
}

.media-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.media-item img {
    width: 100%;
    height: auto;
    display: block;
}

.lightbox-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    cursor: zoom-out;
}

.lightbox-overlay img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* --- Skye Toggle Switch --- */
.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--skye-blue);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.fleet-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-top: 30px;
    height: calc(100vh - 150px);
}

.fleet-feed {
    overflow-y: auto;
    padding-right: 15px;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.user-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: 0.3s;
}

.user-card:hover {
    transform: translateY(-5px);
    border-color: var(--skye-blue);
}

.skill-tag {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: #f1f5f9;
    border-radius: 20px;
    display: inline-block;
    margin: 2px;
}

.skill-tag.common {
    background: var(--skye-blue);
    color: white;
}

.badge-alumni {
    background: #10b981;
    color: white;
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
}

.intel-dossier {
    background: white;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    padding: 25px;
    position: sticky;
    top: 20px;
    overflow-y: auto;
}

/* Dossier Styling */
.dossier-header { text-align: center; padding-bottom: 20px; }
.dossier-avatar { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; border: 3px solid var(--skye-blue); margin-bottom: 10px; }
.dossier-username { color: #64748b; font-weight: 600; }
.dossier-divider { border: 0; border-top: 1px solid #e2e8f0; margin: 20px 0; }

.dossier-section { margin-bottom: 25px; }
.dossier-section h4 { font-size: 0.9rem; color: var(--skye-dark); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.dossier-section p { font-size: 0.85rem; color: #475569; }

/* The Post Feed inside Dossier */
.intel-feed-list { display: flex; flex-direction: column; gap: 10px; }
.intel-post-link { 
    display: flex; justify-content: space-between; padding: 10px; 
    background: #f8fafc; border-radius: 8px; text-decoration: none; border-left: 3px solid var(--skye-blue);
    transition: 0.2s;
}
.intel-post-link:hover { background: #f1f5f9; transform: translateX(5px); }
.post-title { font-size: 0.8rem; font-weight: 600; color: var(--skye-dark); }
.post-date { font-size: 0.7rem; color: #94a3b8; }

.btn-bookmark {
    width: 100%; padding: 12px; background: var(--skye-dark); color: white;
    border: none; border-radius: 10px; cursor: pointer; font-weight: 600; transition: 0.3s;
}
.btn-bookmark:hover { background: #000; }

.skye-input {
    width: 100%; padding: 12px; margin: 20px 0; border-radius: 10px; border: 1px solid #ddd;
}
.modal-btns { display: flex; gap: 10px; justify-content: center; }
.btn-save { background: var(--skye-blue); color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; }
.btn-cancel { background: #eee; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; }

.fleet-main-layout {
    display: grid;
    grid-template-columns: 280px 1fr 350px;
    gap: 30px;
    align-items: start;
}

.filter-strip {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    position: sticky;
    top: 80px; /* This ensures it sticks below your nav bar while scrolling */
    z-index: 100;
    border: 1px solid #e2e8f0;
}

.filter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-form input, .filter-form select {
    padding: 10px; border-radius: 8px; border: 1px solid #ddd; flex: 1; min-width: 150px;
}
.btn-filter { background: var(--skye-blue); color: white; border: none; padding: 10px 20px; border-radius: 8px; cursor: pointer; }

/* --- Saved Fleet Sidebar --- */
.saved-fleet-sidebar { background: #f1f5f9; padding: 15px; border-radius: 12px; }
.saved-item { 
    background: white; padding: 10px; border-radius: 8px; margin-bottom: 10px; 
    cursor: pointer; font-size: 0.85rem; border-left: 4px solid var(--skye-blue);
}
.saved-item span { display: block; font-size: 0.7rem; color: #64748b; }

/* --- Discovery Grid & Cards --- */
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 15px; }
.user-card { background: white; padding: 15px; border-radius: 12px; text-align: center; transition: 0.3s; cursor: pointer; border: 1px solid #e2e8f0; }
.user-card:hover { border-color: var(--skye-blue); transform: translateY(-3px); }

.mini-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #e2e8f0; /* Fallback color */
    border: 2px solid var(--skye-blue);
}

.dot-active { height: 12px; width: 12px; background-color: #10b981; border-radius: 50%; display: inline-block; position: absolute; border: 2px solid white; }

.form-section .skye-label {
    margin-bottom: 4px;   /* Reduced from 10px+ */
    margin-top: 12px;     /* Reduced space between sections of inputs */
    display: block;
    font-size: 0.9rem;
}

.social-input-group {
    margin-bottom: 10px;  /* Less space between IG and X inputs */
}

select.skye-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.form-group select.skye-input + .skye-label {
    top: -10px;
    left: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--skye-blue);
    background: white;
    text-transform: uppercase;
}

#readiness + .skye-label {
    top: -14px !important; /* Adjusted higher */
    left: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--skye-blue);
    background: white; /* Ensures it cuts the border line clearly */
    padding: 0 5px;
    text-transform: uppercase;
    z-index: 10;
}

.password-wrapper {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    z-index: 10;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--skye-blue);
}

/* Ensure text doesn't go under the eye icon */
.password-wrapper .skye-input {
    padding-right: 45px;
}

.card-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.skill-pill, .skill-tag {
    background: #eef2ff; /* Very light Skye blue */
    color: #5D9CEC;      /* Skye Primary Blue */
    border: 1px solid #dbeafe;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.skill-pill:hover {
    background: #5D9CEC;
    color: white;
}

/* Specific fix for the input box in welcome.php so it doesn't look messy */
.tags-input-container {
    background: #f1f5f9 !important; /* Soft grey background */
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    min-height: 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.btn-google:hover {
    background-color: #f8fafc !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Ensure the searchable country list matches Skye's aesthetic */
.iti__country-list {
    background-color: var(--white) !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
    z-index: 100 !important;
    width: 300px !important; /* Wider for better search visibility */
}

/* The search input inside the dropdown */
.iti__search-input {
    background: var(--connect-bg) !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    margin: 10px !important;
    padding: 8px !important;
}

/* Correcting the vertical alignment with your floating label */
/* Ensure the container takes full width but doesn't break layout */
.iti { 
    width: 100%; 
    display: block; 
}
/* Add specific padding so the text doesn't hide behind the flag */
#phone {
    padding-left: 52px !important; /* Adjust based on flag size */
    width: 100% !important;
}

/* --- Discussion Poll Styles --- */
.poll-creator-box {
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 20px;
    margin-top: 25px;
}

.poll-option-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.poll-container {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.poll-question-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--skye-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.poll-vote-label {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    border: 1.5px solid #f1f5f9;
    border-radius: 12px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.poll-vote-label:hover {
    border-color: var(--skye-blue);
    background-color: #f8fafc;
}

.poll-vote-label input[type="radio"] {
    margin-right: 15px;
    accent-color: var(--skye-blue);
    transform: scale(1.2);
}

/* Results Progress Bars */
.poll-result-item {
    margin-bottom: 18px;
}

.poll-bar-container {
    background: #f1f5f9;
    height: 10px;
    border-radius: 10px;
    overflow: hidden;
    margin: 6px 0;
}

.poll-bar-fill {
    background: linear-gradient(90deg, var(--skye-blue), #4a8bd1);
    height: 100%;
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.1, 0.5, 0.5, 1);
}

.poll-stats-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
}
/* Custom Skye Popup Styling */


.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--skye-dark);
}

/* --- No Results Container --- */
.no-results {
    grid-column: 1 / -1; /* Spans across the full feed width */
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 15px;
    border: 2px dashed #e2e8f0;
    margin-top: 20px;
}

/* The Radar Animation */
.skye-radar {
    position: relative;
    width: 60px;
    height: 60px;
    background-color: var(--skye-blue);
    border-radius: 50%;
    margin: 0 auto 20px;
    opacity: 0.8;
}

.skye-radar::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: var(--skye-blue);
    border-radius: 50%;
    z-index: -1;
    animation: radar-pulse 1.5s ease-out infinite;
}

@keyframes radar-pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.no-results h3 {
    color: var(--skye-dark);
    margin-bottom: 8px;
}

.no-results p {
    color: #64748b;
    font-size: 14px;
}

/* 1. Hide the FAB container on Desktop */
.skye-fab-container {
    display: none;
}

.notif-item {
    display: flex;
    padding: 12px;
    gap: 12px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}
.notif-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--skye-blue);
}
.notif-content p {
    font-size: 13px;
    margin: 0;
    color: #1e293b;
    line-height: 1.4;
}
.notif-topic {
    display: block;
    font-size: 11px;
    color: var(--skye-blue);
    font-weight: 600;
    margin-top: 2px;
}

/* 2. Mobile Specific Styles (Max-width 768px) */
@media (max-width: 768px) {
.feed-actions .btn-expandable {
        display: none !important;
    }
    .mobile-nav, 
    .nav-bottom, 
    .bottom-nav-container {
        display: none !important;
    }

    .btn-expandable[title="New Discussion"],
    .feed-actions .btn-expandable {
        display: none !important;
    }
    .connect-footer {
        padding-bottom: 100px !important;
    }
    .skye-fab-container {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-end;
        position: fixed;
        bottom: 30px;
        right: 25px;
        z-index: 9999;
    }

    /* The Circle Trigger */
    .fab-trigger {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background-color: var(--skye-blue);
        color: white;
        border: none;
        box-shadow: 0 4px 15px rgba(93, 156, 236, 0.4);
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 22px;
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }

    /* The Menu (Closed State) */
    .fab-menu {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(30px) scale(0.5);
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        transform-origin: bottom right;
    }

    /* Expanded State */
    .skye-fab-container.active .fab-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }

    /* Rotate the Plus to an 'X' and change color when open */
    .skye-fab-container.active .fab-trigger {
        background-color: var(--skye-dark);
        transform: rotate(135deg);
    }

    /* Individual Menu Item Styling */
    .fab-item {
        background: white;
        padding: 12px 20px;
        border-radius: 50px;
        text-decoration: none;
        color: var(--skye-dark);
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        font-weight: 600;
        white-space: nowrap;
        border: 1px solid #e2e8f0;
    }

    .fab-item i {
        color: var(--skye-blue);
        font-size: 18px;
        width: 20px;
        text-align: center;
    }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1100px) {
    .fleet-main-layout { grid-template-columns: 200px 1fr; } /* Hide dossier on medium screens */
    .intel-dossier { display: none; } 
}

@media (max-width: 1024px) {
    .discussion-grid { grid-template-columns: repeat(2, 1fr); }
    .fleet-main-layout {
        grid-template-columns: 240px 1fr; /* Dossier becomes a hidden element or we can use a modal */
    }
    .intel-dossier {
        display: none;
    }
}

@media (max-width: 600px) {
    .discussion-grid { grid-template-columns: 1fr; }

    .dual-input {
        flex-direction: column;
    }
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-pill, .connect-nav {
        overflow: visible !important;
    }

    #notif-dropdown {
        position: fixed !important; /* Fixed relative to the viewport */
        top: 80px !important;      /* Sit below the nav bar */
        left: 5% !important;
        right: 5% !important;
        width: 90% !important;     /* Wide enough to read on phone */
        z-index: 10001 !important; /* Stay above everything else */
    }
    
    /* Ensure the parent nav-pill doesn't hide the dropdown */
    .nav-pill {
        overflow: visible !important;
    }

    nav {
        display: none !important;
    }

    .form-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .connect-nav {
        top: auto;
        bottom: 20px; /* Sticks to bottom */
    }

    .nav-pill {
        width: 90%;
        justify-content: space-around;
        padding: 15px 10px;
        gap: 10px;
    }

    /* Icons only for a cleaner app feel */
    .nav-link span {
        display: none;
    }

    .nav-link i {
        font-size: 1.5rem;
    }

    h1 {
        font-size: 1.8rem;
        width: 100%;
        text-align: center;
    }

    .dual-input {
        flex-direction: column !important; /* Stacks handle input above link input */
    }
    
    .auth-card {
        margin: 10px auto;
        width: calc(100% - 20px);
    }
    
    .auth-wrapper {
        align-items: flex-start; /* Better for long signup forms on small screens */
        padding-top: 20px;
        padding-bottom: 120px;
    }

    connect-footer {
        /* Extra padding so the bottom sticky nav doesn't cover footer text */ 
        padding-top: 15px;
        padding-bottom: 90px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .main-layout { grid-template-columns: 1fr; }
    .login-sidebar { display: none; }

    .btn-create { width: auto; padding: 0 25px; }
    .btn-create span { display: inline; margin-left: 8px; }

    .profile-grid { grid-template-columns: 1fr; }

    .container {
        padding: 0 15px; /* Thinner gutters for mobile */
    }

    .header-text h1 {
        font-size: 1.8rem;
    }

    .profile-card {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0; /* Looks more modern on mobile */
    }

    .profile-card, .discussion-card {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 12px; /* Slightly softer corners for mobile */
    }

    .profile-grid {
        display: block !important; /* Stack columns vertically */
    }

    .profile-actions {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .profile-actions .btn-pill, 
    .profile-actions .btn-outline, 
    .btn-delete-text {
        width: 100%;
        text-align: center;
    }

    .discussion-grid { grid-template-columns: 1fr; }
    .search-container { flex-direction: column; }
    .dashboard-header { flex-direction: column; text-align: center; gap: 20px; }

    .skye-toast {
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        min-width: unset;
        animation: slideDownFade 0.4s ease-out;
    }

    .mission-media {
        flex-direction: column;
    }
    .media-item {
        max-width: 100%;
        flex: 1 1 100%;
    }
    .fleet-main-layout {
        grid-template-columns: 1fr;
    }
    .saved-fleet-sidebar {
        order: 2; /* Move saved fleet below discovery on mobile */
    }
    .filter-form {
        flex-direction: column;
    }
    .discovery-area { order: 1; }
    .intel-dossier { display: none; }
    .search-anchor {
        margin: 15px auto;
        padding: 0 10px;
    }

    .skye-search-engine {
        flex-direction: column; /* Stack the pill and button */
        align-items: center;    /* Center the button */
        gap: 12px;
        width: 100%;
    }
    .search-pill {
        width: 100%;
        flex-direction: column; /* Stack input and dropdown inside */
        height: auto;
        padding: 10px;
    }

    .search-pill input {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .category-divider {
        width: 80%;      /* Horizontal line */
        height: 1px;
        margin: 5px auto;
        background: #e2e8f0;
    }

    .category-dropdown {
        width: 100% !important; /* Force full width on mobile */
        text-align: center;
        padding: 10px 0;
        margin: 0 auto;
    }

    .search-submit-btn {
        width: 60px !important;  /* Keep it as a square/circle on mobile */
        height: 60px !important;
        border-radius: 50%;      /* Make it a circle for a floating action look */
        margin-left: 0;
        box-shadow: 0 4px 10px rgba(93, 156, 236, 0.3);
    }

}
    
@media (max-width: 900px) {
    .feed-container {
        grid-template-columns: 1fr;
    }
    .auth-sidebar {
        display: none; /* Hide sidebar on mobile to keep feed primary */
    }
}

@media (min-width: 992px) {
    /* 1. Force the card to be wide enough for two columns */
    .fleet-layout { grid-template-columns: 1fr; }
    .intel-dossier { display: none; }
    .discussion-grid { grid-template-columns: repeat(2, 1fr); }

    .auth-card {
        max-width: 1150px !important; /* Increased for more field space */
        width: 98% !important;
        margin: 40px auto !important;
    }

    /* 2. Activate the Grid */
    .form-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important; /* Adjusted gap for better flow */
    }
    /* 3. Make the Title and Button span across both columns */
    #signup-form h2, 
    #signup-form .btn-pill {
        grid-column: span 2;
        text-align: center;
    }

    /* 4. Center the button and give it a fixed width so it doesn't stretch */
    #signup-form .btn-pill {
        width: 280px;
        margin: 20px auto 0;
    }
}

@media (max-width: 480px) {
    .user-nav-name {
        display: none;
    }

    .dual-input {
        flex-direction: row; /* Horizontal on small tablets and up */
    }
    .container {
        width: 100%; /* Absolute maximum width for small screens */
        padding: 5px;
    }
    
    .auth-card {
        width: 100% !important;
        border-radius: 0; /* Optional: remove rounding for a true edge-to-edge look */
    }
}

/* PC: Bottom Left */
@media (min-width: 769px) {
    .skye-toast {
        bottom: 30px;
        left: 30px;
    }

    .form-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important; /* Changed from 30px to 12px for a tighter look */
    }

    nav {
        display: flex !important;
    }

    /* Keep the 'New Discussion' button visible on desktops */
    .btn-expandable {
        display: inline-flex !important;
    }
}

/* Animations */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translate(-50%, -20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}