/* ============================================
   PHIDOLS - Social Media Dark Theme
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161e;
    --bg-hover: #1e1e2a;
    --bg-input: #1a1a25;
    --border-color: #2a2a3a;
    --text-primary: #e8e8ef;
    --text-secondary: #8888a0;
    --accent: #6c5ce7;
    --accent-hover: #7c6ef7;
    --danger: #e74c3c;
    --success: #27ae60;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    min-height: 100vh;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    color: var(--accent-hover);
}

/* ============================================
   AUTH PAGES
   ============================================ */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0d0d1a 50%, var(--bg-primary) 100%);
    padding: 20px;
}

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

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
}

.auth-brand {
    font-size: 2rem;
    font-weight: 800;
    color: white;
}

.auth-card .form-control,
.auth-card .input-group-text {
    background: var(--bg-input);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.auth-card .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
    background: var(--bg-input);
    color: var(--text-primary);
}

/* ============================================
   TOP NAVBAR
   ============================================ */
.top-navbar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    height: 60px;
    z-index: 1040;
}

.navbar-brand {
    font-size: 1.3rem;
    color: white !important;
}

.search-form {
    width: 300px;
}

.search-form .input-group-text {
    background: var(--bg-input);
    border-color: var(--border-color);
    color: var(--text-secondary);
    border-right: 0;
}

.search-form .form-control {
    background: var(--bg-input);
    border-color: var(--border-color);
    color: var(--text-primary);
    border-left: 0;
}

.search-form .form-control:focus {
    box-shadow: none;
    border-color: var(--accent);
}

.search-form .form-control:focus + .input-group-text,
.search-form .form-control:focus ~ .input-group-text {
    border-color: var(--accent);
}

.nav-icon {
    color: var(--text-secondary);
    font-size: 1.25rem;
    padding: 6px;
    transition: color 0.2s;
}
.nav-icon:hover {
    color: white;
}

.badge-dot {
    position: absolute;
    top: 2px;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
}

.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.nav-profile-link {
    text-decoration: none !important;
}
.nav-profile-link::after {
    display: none;
}

.dropdown-menu {
    background: var(--bg-card);
    border-color: var(--border-color);
}
.dropdown-item {
    color: var(--text-primary);
}
.dropdown-item:hover {
    background: var(--bg-hover);
    color: white;
}
.dropdown-divider {
    border-color: var(--border-color);
}

/* ============================================
   LAYOUT
   ============================================ */
.container-fluid > .row {
    padding-top: 70px;
    min-height: 100vh;
}

.sidebar-left {
    position: relative;
}

.sidebar-nav {
    top: 70px;
    padding-top: 10px;
}

.main-content {
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    min-height: calc(100vh - 60px);
    padding: 0;
}

.right-sidebar {
    position: relative;
}

.right-sidebar .sticky-top {
    top: 70px;
    padding-top: 10px;
}

/* Sidebar Nav */
.sidebar-nav .list-group-item {
    background: transparent;
    border: none;
    color: var(--text-primary);
    padding: 12px 16px;
    font-size: 1rem;
    border-radius: 12px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}
.sidebar-nav .list-group-item:hover {
    background: var(--bg-hover);
    color: white;
}
.sidebar-nav .list-group-item.active {
    background: var(--bg-hover);
    color: white;
    font-weight: 600;
}
.sidebar-nav .list-group-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

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

/* Right Sidebar */
.right-sidebar .card {
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

/* ============================================
   POST CARD
   ============================================ */
.post-card {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    transition: background 0.15s;
}
.post-card:hover {
    background: var(--bg-hover);
}

.post-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.post-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.post-name {
    font-weight: 600;
    color: white;
}
.post-name:hover {
    text-decoration: underline;
}

.post-username {
    color: var(--text-secondary);
}

.post-time {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.post-content {
    margin-top: 4px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.post-content a {
    color: var(--accent);
}

/* Post Media Grid */
.post-media {
    margin-top: 12px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.post-media.grid-1 img,
.post-media.grid-1 video {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.post-media.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.post-media.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
}
.post-media.grid-3 > :first-child {
    grid-row: 1 / -1;
}

.post-media.grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2px;
}

.post-media img,
.post-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 150px;
    max-height: 300px;
}

/* Post Actions */
.post-actions {
    display: flex;
    justify-content: space-around;
    margin-top: 12px;
    padding-top: 8px;
}

.post-action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.post-action-btn:hover {
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent);
}
.post-action-btn.liked {
    color: var(--danger);
}
.post-action-btn.liked:hover {
    background: rgba(231, 76, 60, 0.1);
}

/* ============================================
   CREATE POST
   ============================================ */
.create-post-box {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.create-post-box textarea {
    background: transparent;
    border: none;
    color: var(--text-primary);
    resize: none;
    font-size: 1.1rem;
    width: 100%;
    outline: none;
}
.create-post-box textarea::placeholder {
    color: var(--text-secondary);
}

.media-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.media-preview-item {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.media-preview-item img,
.media-preview-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-preview-item .remove-media {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.7);
    border: none;
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.7rem;
}

/* ============================================
   COMMENTS
   ============================================ */
.comments-section {
    border-top: 1px solid var(--border-color);
    padding: 12px 0;
}

.comment-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 8px 14px;
    flex-grow: 1;
}

.comment-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 0;
}

.comment-input-group input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    padding: 8px 16px;
    flex-grow: 1;
    outline: none;
}
.comment-input-group input:focus {
    border-color: var(--accent);
}

/* ============================================
   PROFILE PAGE
   ============================================ */
.profile-cover {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--accent), #2d3436);
    position: relative;
    overflow: hidden;
}
.profile-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header {
    padding: 0 20px;
    position: relative;
}

.profile-avatar-container {
    margin-top: -60px;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    object-fit: cover;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0;
}

.profile-username {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-bio {
    margin-bottom: 10px;
    line-height: 1.5;
}

.profile-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 12px;
}
.profile-meta i {
    margin-right: 4px;
}

.profile-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 16px;
}
.profile-stats a {
    color: var(--text-primary);
    text-decoration: none;
}
.profile-stats a:hover {
    text-decoration: underline;
}
.profile-stats strong {
    color: white;
}
.profile-stats span {
    color: var(--text-secondary);
}

/* ============================================
   MESSAGES
   ============================================ */
.conversation-list-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}
.conversation-list-item:hover {
    background: var(--bg-hover);
    color: inherit;
}
.conversation-list-item.unread {
    background: var(--bg-hover);
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.message-bubble {
    max-width: 70%;
    padding: 10px 16px;
    border-radius: 18px;
    margin-bottom: 4px;
    word-break: break-word;
}
.message-bubble.sent {
    background: var(--accent);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}
.message-bubble.received {
    background: var(--bg-input);
    border-bottom-left-radius: 4px;
}

.message-input-container {
    padding: 12px 20px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.message-input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-primary);
    padding: 10px 20px;
    width: 100%;
    outline: none;
}
.message-input:focus {
    border-color: var(--accent);
}

/* ============================================
   NOTIFICATIONS
   ============================================ */
.notification-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}
.notification-item:hover {
    background: var(--bg-hover);
}
.notification-item.unread {
    background: rgba(108, 92, 231, 0.05);
    border-left: 3px solid var(--accent);
}

.notification-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ============================================
   USER CARD (for search, followers lists)
   ============================================ */
.user-card {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}
.user-card:hover {
    background: var(--bg-hover);
}

.user-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 56px;
    z-index: 1040;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-decoration: none;
    position: relative;
    padding: 4px 12px;
}
.mobile-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}
.mobile-nav-item.active {
    color: var(--accent);
}

.mobile-nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.badge-count {
    position: absolute;
    top: 0;
    right: 4px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    padding: 1px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

/* Mobile spacing */
@media (max-width: 991.98px) {
    .container-fluid > .row {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    .main-content {
        border: none;
    }
}

/* ============================================
   FLASH MESSAGES
   ============================================ */
.flash-container {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    width: 90%;
    max-width: 500px;
}

.flash-container .alert {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.flash-container.flash-guest {
    top: 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-outline-primary {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-outline-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-control,
.form-select {
    background: var(--bg-input);
    border-color: var(--border-color);
    color: var(--text-primary);
}
.form-control:focus,
.form-select:focus {
    background: var(--bg-input);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(108, 92, 231, 0.25);
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

/* ============================================
   CARDS & MODALS
   ============================================ */
.card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.modal-content {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.modal-header {
    border-bottom-color: var(--border-color);
}

.modal-footer {
    border-top-color: var(--border-color);
}

/* ============================================
   PAGE HEADERS
   ============================================ */
.page-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 60px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.page-header h5 {
    margin: 0;
    font-weight: 700;
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

/* ============================================
   TABS
   ============================================ */
.nav-tabs {
    border-bottom: 1px solid var(--border-color);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-secondary);
    padding: 12px 20px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
}
.nav-tabs .nav-link:hover {
    color: white;
    border-color: transparent;
}
.nav-tabs .nav-link.active {
    color: var(--accent);
    background: transparent;
    border-bottom: 2px solid var(--accent);
}

/* ============================================
   SETTINGS / EDIT PROFILE
   ============================================ */
.settings-section {
    padding: 20px;
}

.avatar-upload {
    position: relative;
    display: inline-block;
}
.avatar-upload .avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    cursor: pointer;
}
.avatar-upload:hover .avatar-overlay {
    opacity: 1;
}
.avatar-upload .avatar-overlay i {
    color: white;
    font-size: 1.5rem;
}

.cover-upload {
    position: relative;
    cursor: pointer;
}
.cover-upload .cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
}
.cover-upload:hover .cover-overlay {
    opacity: 1;
}

/* Conversation header */
.conversation-header {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 60px;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(12px);
    z-index: 10;
}

.messages-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: calc(100vh - 250px);
    overflow-y: auto;
}

/* Explore grid */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}
.explore-grid-item {
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}
.explore-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}
.explore-grid-item:hover img {
    transform: scale(1.05);
}

/* Post modal */
#createPostModal .modal-body textarea {
    background: transparent;
    border: none;
    color: var(--text-primary);
    resize: none;
    font-size: 1.1rem;
    min-height: 120px;
}
#createPostModal .modal-body textarea:focus {
    box-shadow: none;
}

/* ============================================
   LANDING PAGE
   ============================================ */

.landing-hero {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Subtle background glow */
.landing-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.landing-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.landing-brand {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
}
.landing-brand i {
    font-size: 1.4rem;
    margin-right: 6px;
}

.landing-headline {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: white;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, #a29bfe 50%, #fd79a8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtext {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

/* Landing Stats / Quick features */
.landing-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.landing-stat {
    display: flex;
    align-items: center;
    gap: 14px;
}

.landing-stat > i {
    font-size: 1.5rem;
    color: var(--accent);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 92, 231, 0.12);
    border-radius: 12px;
    flex-shrink: 0;
}

.landing-stat strong {
    display: block;
    color: white;
    font-size: 0.95rem;
}

.landing-stat span {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Landing auth card (right side) */
.landing-hero .auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 36px;
    position: relative;
    z-index: 1;
}

/* Landing Sections */
.landing-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.landing-section-alt {
    background: var(--bg-secondary);
}

/* Feature Cards */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(108, 92, 231, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.feature-icon i {
    font-size: 1.5rem;
    color: var(--accent);
}

.feature-card h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Roadmap Timeline */
.roadmap-timeline {
    position: relative;
    padding-left: 40px;
}
.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.roadmap-item {
    position: relative;
    margin-bottom: 32px;
}
.roadmap-item:last-child {
    margin-bottom: 0;
}

.roadmap-marker {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    z-index: 1;
}

.roadmap-item.completed .roadmap-marker {
    background: var(--accent);
    color: white;
}

.roadmap-item.upcoming .roadmap-marker {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.roadmap-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px 24px;
}

.roadmap-content h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 8px;
}

.roadmap-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.roadmap-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.badge-done {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.badge-next {
    background: rgba(108, 92, 231, 0.15);
    color: var(--accent);
}

.badge-planned {
    background: rgba(136, 136, 160, 0.12);
    color: var(--text-secondary);
}

/* CTA Section */
.landing-cta {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

/* Footer */
.landing-footer {
    padding: 40px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.landing-footer a:hover {
    color: white !important;
}

/* Landing responsive */
@media (max-width: 991.98px) {
    .landing-headline {
        font-size: 2.2rem;
    }

    .landing-hero .auth-card {
        margin-top: 20px;
    }

    .landing-section {
        padding: 50px 0;
    }
}

@media (max-width: 575.98px) {
    .landing-headline {
        font-size: 1.8rem;
    }

    .landing-subtext {
        font-size: 1rem;
    }

    .landing-hero .auth-card {
        padding: 24px;
    }

    .feature-card {
        padding: 22px;
    }

    .roadmap-content {
        padding: 16px;
    }
}

/* ============================================
   LEGAL PAGES (Privacy, Terms, Cookies)
   ============================================ */

.legal-page {
    min-height: 100vh;
}

.legal-page-guest {
    padding-top: 20px;
    padding-bottom: 40px;
}

.legal-topbar {
    padding: 16px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.3rem;
}

.legal-content {
    padding: 20px;
    max-width: 800px;
}

.legal-content h2 {
    color: white;
    font-weight: 800;
    margin-bottom: 8px;
}

.legal-content h4 {
    color: white;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.legal-content h5 {
    color: var(--text-primary);
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-content ul {
    color: var(--text-secondary);
    line-height: 1.8;
    padding-left: 20px;
    margin-bottom: 16px;
}

.legal-content li {
    margin-bottom: 4px;
}

.legal-content a {
    color: var(--accent);
}

.legal-content strong {
    color: var(--text-primary);
}

.legal-content code {
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--accent);
}

.legal-content .table {
    font-size: 0.88rem;
}

.legal-content .table th {
    font-weight: 600;
    white-space: nowrap;
}

.legal-footer {
    margin-top: 40px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
}

/* ============================================
   COOKIE CONSENT BANNER (GDPR)
   ============================================ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
}

.cookie-consent-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex: 1;
    min-width: 280px;
}

.cookie-consent-text a {
    color: var(--accent);
}

.cookie-consent-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.cookie-manage-panel {
    border-top: 1px solid var(--border-color);
}

.cookie-manage-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
}

.cookie-manage-inner .form-check-label strong {
    color: var(--text-primary);
    font-size: 0.9rem;
}

@media (max-width: 575.98px) {
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
        padding: 14px 16px;
    }

    .cookie-consent-actions {
        justify-content: center;
        width: 100%;
    }
}
