:root {
    --primary: #137fec;
    /* WeSendit Brand Blue from design */
    --primary-dark: #0056b3;
    --secondary: #0f2842;
    --background-light: #f6f7f8;
    --surface-light: #FFFFFF;
    --text-main-light: #0d141b;
    --text-sub-light: #4c739a;
    --border-light: #e7edf3;

    --background-dark: #101922;
    --surface-dark: #1A2633;
    --text-main-dark: #FFFFFF;
    --text-sub-dark: #94a3b8;
    --border-dark: #334155;

    --accent-orange: #FF6B00;
}

body.dark {
    --background-light: var(--background-dark);
    --surface-light: var(--surface-dark);
    --text-main-light: var(--text-main-dark);
    --text-sub-light: var(--text-sub-dark);
    --border-light: var(--border-dark);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

body {
    font-family: 'Manrope', 'Inter', sans-serif;
    /* Updated font preference */
    background-color: var(--background-light);
    color: var(--text-main-light);
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;

    /* Sticky Footer Setup */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    /* Pushes footer down */
    width: 100%;
    /* Ensure full width in flex column */
}

/* Utilities */
.hidden {
    display: none !important;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.flex {
    display: flex;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.right-0 {
    right: 0;
}

.z-20 {
    z-index: 20;
}

.flex-col {
    flex-direction: column;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.items-end {
    align-items: flex-end;
}

.items-start {
    align-items: flex-start;
}

.gap-1 {
    gap: 0.25rem;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 500;
}

.text-2xl {
    font-size: 1.5rem;
}

.text-lg {
    font-size: 1.125rem;
}

.text-base {
    font-size: 1rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.w-full {
    width: 100%;
}

.opacity-60 {
    opacity: 0.6;
}

.opacity-80 {
    opacity: 0.8;
}

.mb-1 {
    margin-bottom: 0.25rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 0.75rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

/* Mobile Defaults (Layout) */
.max-w-lg {
    max-width: 512px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-5 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.mb-20 {
    margin-bottom: 5rem;
}

/* Header */
.navbar {
    background-color: var(--surface-light);
    color: var(--text-main-light);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-light);
}

.navbar-inner {
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Toggle Switch */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    margin-right: 0.5rem;
}

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

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

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

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

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

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

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-sub-light);
    cursor: pointer;
    display: flex;
    align-items: center;
}

/* View Toggle Buttons */
.view-toggle-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--text-sub-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.view-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

.view-toggle-btn.active {
    background: var(--surface-light);
    color: var(--primary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

body.dark .view-toggle-btn.active {
    background: var(--surface-dark);
}

.bg-surface-variant {
    background-color: #f1f5f9;
}

body.dark .bg-surface-variant {
    background-color: #1e293b;
}

/* Helpers */
.hidden {
    display: none !important;
}

.sm\:block {
    display: none;
}

@media (min-width: 640px) {
    .sm\:block {
        display: block !important;
    }
}

/* Submit Button */
.btn-submit {
    background: var(--primary);
    color: white;
    font-weight: 700;
    padding: 0 1rem;
    height: 40px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.875rem;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* View Controls Header */
.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    /* Increased margin to avoid overlap with absolute arrows */
    gap: 1rem;
}

@media (max-width: 767px) {
    .view-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Tabs */
.tabs-container {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex: 1;
}

@media (max-width: 767px) {
    .tabs-container {
        justify-content: center;
    }
}

/* Kanban Controls (Arrows) */
.kanban-controls {
    display: flex;
    gap: 0.5rem;
}

.kanban-wrapper .kanban-controls {
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .kanban-wrapper .kanban-controls {
        position: absolute;
        right: 0;
        top: -48px;
        /* Slightly adjusted for better alignment in the increased margin */
    }
}

.kanban-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    color: var(--text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.kanban-nav-btn:hover:not(:disabled) {
    background: var(--surface-hover);
    color: var(--primary);
    border-color: var(--primary-light);
}

.kanban-nav-btn:disabled,
.kanban-nav-btn.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.tab {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    color: var(--text-sub-light);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
}

.tab.active {
    background: var(--surface-light);
    /* Or slightly different if needed */
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

/* Kanban Scroller / Board */
.kanban-scroller {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2rem;
}

.kanban-column {
    min-width: 85%;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .max-w-lg {
        max-width: 1400px;
    }

    /* Expand container */
    /* Expand container but keep scroll if needed */
    .kanban-scroller {
        overflow-x: auto;
        /* Enable inner scroll if content is too wide */
        scroll-snap-type: none;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 1rem;
        /* Ensure it takes full width but doesn't overflow page */
        width: 100%;
    }

    /* Improve scrollbar for the board */
    .kanban-scroller::-webkit-scrollbar {
        height: 8px;
        display: block;
    }

    .kanban-scroller::-webkit-scrollbar-track {
        background: transparent;
    }

    .kanban-scroller::-webkit-scrollbar-thumb {
        background-color: var(--border-light);
        border-radius: 4px;
    }

    body.dark .kanban-scroller::-webkit-scrollbar-thumb {
        background-color: var(--border-dark);
    }

    .kanban-column {
        min-width: 320px;
        width: 320px;
        flex-shrink: 0;
        /* Add contrast */
        background-color: #f8fafc;
        /* Slate 50 */
        border-radius: 12px;
        /* xl */
        padding: 1rem;
        border: 1px solid transparent;
    }

    body.dark .kanban-column {
        background-color: rgba(30, 41, 59, 0.5);
        /* Slate 800 with opacity */
        border-color: rgba(51, 65, 85, 0.5);
    }

    .bottom-nav {
        display: none;
    }

    /* Hide bottom nav on desktop */
    .navbar-inner {
        padding: 0 1.5rem;
    }

    .px-5 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    /* Desktop Header Actions */
    .desktop-only {
        display: flex !important;
    }

    /* Desktop Intro Alignment */
    .intro-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 2rem;
    }

    .roadmap-intro {
        margin-bottom: 0;
        max-width: 60%;
    }

    .btn-submit {
        width: auto;
        margin-bottom: 0;
    }
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0 0.25rem;
}

.phase-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    display: none;
    /* Removed in desktop design preference, usually */
}

/* reCAPTCHA Inline Style */
.grecaptcha-badge {
    visibility: hidden;
}

.recaptcha-legal {
    font-size: 0.75rem;
    color: var(--text-sub-light);
    opacity: 0.7;
    margin-top: 0.5rem;
    text-align: center;
    line-height: 1.4;
}

.recaptcha-legal a {
    color: var(--primary);
    text-decoration: none;
}

.recaptcha-legal a:hover {
    text-decoration: underline;
}

/* Utilities */
.space-y-3>*+* {
    margin-top: 0.75rem;
}

/* Kanban Card Improvements */
.count-badge {
    background: rgba(19, 127, 236, 0.1);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
}

/* List View Styles */
.list-card {
    background: var(--surface-light);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    border: 1px solid transparent;
}

.list-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: var(--border-light);
}

body.dark .list-card {
    background: var(--surface-dark);
    border: 1px solid var(--border-dark);
}

.list-vote-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    background: var(--background-light);
    border-radius: 8px;
    padding: 0.5rem 0.25rem;
    height: fit-content;
}

body.dark .list-vote-col {
    background: rgba(255, 255, 255, 0.05);
}

.list-vote-btn {
    background: none;
    border: none;
    color: var(--text-sub-light);
    cursor: pointer;
    padding: 0;
}

.list-vote-btn:hover {
    color: var(--primary);
}

.list-score {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main-light);
    margin: 2px 0;
}

.list-vote-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    color: var(--text-sub-light);
    font-weight: 600;
}

.list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Cards (Kanban) - Enhanced */
.kb-card {
    background: var(--surface-light);
    border-radius: 0.75rem;
    /* xl */
    padding: 1rem;
    border: 1px solid transparent;
    /* Default transparent for shadow implementation */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.kb-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Desktop hover effect */
    transform: translateY(-2px);
}

body.dark .kb-card {
    border-color: var(--border-light);
    box-shadow: none;
}

body.dark .kb-card:hover {
    border-color: var(--border-light);
    /* Keep border on hover in dark mode */
}


.kb-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.badge {
    font-size: 0.625rem;
    /* 10px */
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

/* Tag Colors (aligned with design suggestions) */
.badge-purple {
    background: #f3e8ff;
    color: #9333ea;
}

.badge-orange {
    background: #ffedd5;
    color: #ea580c;
}

.badge-blue {
    background: #dbeafe;
    color: #2563eb;
}

.badge-green {
    background: #dcfce7;
    color: #16a34a;
}

body.dark .badge-purple {
    background: rgba(147, 51, 234, 0.2);
    color: #d8b4fe;
}

body.dark .badge-orange {
    background: rgba(234, 88, 12, 0.2);
    color: #fdba74;
}

body.dark .badge-blue {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
}

body.dark .badge-green {
    background: rgba(22, 163, 74, 0.2);
    color: #86efac;
}


.kb-card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main-light);
    line-height: 1.375;
}

.kb-card-desc {
    font-size: 0.875rem;
    color: var(--text-sub-light);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.kb-card-footer {
    padding-top: 0.75rem;
    border-top: 1px solid #f0f4f8;
    /* Light gray for divider */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.dark .kb-card-footer {
    border-color: rgba(255, 255, 255, 0.05);
}

/* Avatar Styling */
.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #e0e7ff;
    color: #4338ca;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid var(--surface-light);
    /* Ring effect */
}

body.dark .user-avatar {
    border-color: var(--surface-dark);
    background-color: #312e81;
    color: #a5b4fc;
}

.author-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-sub-light);
}

.vote-widget-pill {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    background-color: #f6f7f8;
    color: var(--text-sub-light);
    transition: background-color 0.2s, color 0.2s;
    border: none;
    cursor: pointer;
}

.vote-widget-pill:hover {
    background-color: #e7edf3;
}

.vote-widget-pill.active {
    color: var(--primary);
    background-color: rgba(19, 127, 236, 0.1);
}

body.dark .vote-widget-pill {
    background-color: #334155;
    color: var(--text-sub-dark);
}

body.dark .vote-widget-pill:hover {
    background-color: #475569;
}

.vote-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main-light);
}


/* Bottom Nav (Mobile) vs Desktop Nav */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: var(--surface-light);
    border-top: 1px solid var(--border-light);
    z-index: 100;
}

.nav-inner {
    height: 64px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
}

.nav-item {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-sub-light);
    cursor: pointer;
    width: 50%;
}


/* Discussion / Comments */
.comment-item {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.avatar-blue {
    background-color: #3b82f6;
}

.avatar-purple {
    background-color: #a855f7;
}

.avatar-pink {
    background-color: #ec4899;
}

.avatar-indigo {
    background-color: #6366f1;
}

.avatar-teal {
    background-color: #14b8a6;
}

.avatar-orange {
    background-color: #f97316;
}

.comment-bubble {
    background-color: #f8fafc;
    /* Slate 50 */
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    border-top-left-radius: 2px;
    padding: 0.75rem 1rem;
    flex: 1;
    min-width: 0;
}

body.dark .comment-bubble {
    background-color: rgba(30, 41, 59, 0.5);
    border-color: rgba(51, 65, 85, 0.5);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.comment-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 0.5rem;
}

.comment-date {
    font-size: 0.75rem;
    color: var(--text-sub-light);
    white-space: nowrap;
}

.comment-text {
    font-size: 0.875rem;
    color: #475569;
    /* Slate 600 */
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

body.dark .comment-text {
    color: #cbd5e1;
    /* Slate 300 */
}

/* Input Section Styles */
.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    background-color: var(--primary);
}

.btn-primary-small {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary-small:hover {
    background: var(--primary-dark);
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
    margin-top: 2px;
}

/* Modals (Redesigned) */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: flex-end;
    /* Bottom sheet default */
    justify-content: center;
}

@media (min-width: 1024px) {
    .modal-overlay {
        align-items: center;
    }

    .modal-sheet {
        height: 850px;
        max-height: 90vh;
        border-radius: 2.5rem !important;
        /* Match design */
        overflow: hidden !important;
    }
}

.modal-sheet {
    background: var(--surface-light);
    width: 100%;
    max-width: 480px;
    /* Slightly narrower like detail card */
    height: 90vh;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.dark .modal-sheet {
    background: var(--surface-dark);
}

.modal-content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.modal-header-bg {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
    position: relative;
    flex-shrink: 0;
}

.modal-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.modal-icon-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.modal-icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.modal-top-title {
    font-weight: 600;
    font-size: 1.125rem;
    letter-spacing: 0.025em;
}

.modal-badges-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.modal-main-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.modal-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #dbeafe;
    /* Blue-100 equivalent */
    font-size: 0.875rem;
}

.meta-item-pill {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.modal-body-scroll {
    flex: 1;
    overflow-y: auto;
    background: var(--surface-light);
    margin-top: -1rem;
    /* Overlap effect */
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    position: relative;
    z-index: 10;
    padding: 1.5rem;
    padding-bottom: 6rem;
    /* Space for footer */
}

body.dark .modal-body-scroll {
    background: var(--surface-dark);
}

.modal-section-card {
    background: var(--background-light);
    padding: 1.25rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

body.dark .modal-section-card {
    background: #0f1623;
    /* Darker bg for card */
}

.modal-desc-text {
    line-height: 1.625;
    color: var(--text-main-light);
}

body.dark .modal-desc-text {
    color: var(--text-main-dark);
}

.modal-comment-input {
    background: var(--background-light);
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

body.dark .modal-comment-input {
    background: #0f1623;
}

.user-avatar-small {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

.comment-placeholder-text {
    font-size: 0.875rem;
    color: var(--text-sub-light);
    display: flex;
    align-items: center;
}

.bg-white-10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.bg-white-20 {
    background-color: rgba(255, 255, 255, 0.2);
}

.text-blue-100 {
    color: #dbeafe;
}

.modal-footer-fixed {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--surface-light);
    padding: 1.25rem;
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 1rem;
    z-index: 50;
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.dark .modal-footer-fixed {
    background: var(--surface-dark);
    border-color: var(--border-dark);
}

.section-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-sub-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.btn-footer-primary {
    flex: 2;
    background: var(--secondary);
    /* Darker blue per design */
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-footer-secondary {
    flex: 1;
    background: var(--background-light);
    color: var(--text-main-light);
    border: 1px solid var(--border-light);
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
}

body.dark .btn-footer-secondary {
    background: var(--background-dark);
    color: var(--text-main-dark);
    border-color: var(--border-dark);
}

.db-status-fixed {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    display: block;
}

/* Privacy Modal Specifics */
#privacyModal {
    backdrop-filter: blur(8px);
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    /* Ensure centering works */
    align-items: center;
    /* Center vertical */
    justify-content: center;
    /* Center horizontal */
}

.privacy-modal-card {
    background: var(--surface-light);
    border-radius: 24px;
    max-width: 480px;
    width: 90%;
    margin: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

body.dark .privacy-modal-card {
    background: var(--surface-dark);
    border: 1px solid var(--border-dark);
}

.privacy-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.privacy-icon-wrapper {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #eff6ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

body.dark .privacy-icon-wrapper {
    background: rgba(59, 130, 246, 0.1);
}

.privacy-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main-light);
}

.privacy-subtitle {
    color: var(--text-sub-light);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.privacy-option {
    width: 100%;
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: left;
    transition: all 0.2s;
    height: 100%;
    /* Equal height */
    display: flex;
    flex-direction: column;
}

body.dark .privacy-option {
    background: var(--surface-dark);
    border-color: var(--border-dark);
}

.login-option {
    border-color: #10b981;
    /* Green hint */
    background: rgba(16, 185, 129, 0.05);
}

body.dark .login-option {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-secondary-large {
    width: 100%;
    background: white;
    border: 1px solid var(--border-light);
    color: var(--text-main-light);
    font-weight: 700;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary-large:hover {
    border-color: var(--primary);
    color: var(--primary);
}

body.dark .btn-secondary-large {
    background: var(--surface-variant);
    border-color: var(--border-dark);
    color: var(--text-main-dark);
}

.identified-option {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 1.25rem;
    text-align: left;
}

body.dark .identified-option {
    background: #0f1623;
    border-color: var(--border-dark);
}

.identified-option:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.privacy-option-title {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main-light);
}

.privacy-option-desc {
    font-size: 0.875rem;
    color: var(--text-sub-light);
    margin-bottom: 1rem;
}

.privacy-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.privacy-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 0.9375rem;
    outline: none;
    transition: all 0.2s;
    color: var(--text-main-light);
}

body.dark .privacy-input {
    background: #1e293b;
    border-color: var(--border-dark);
    color: var(--text-main-dark);
}

.privacy-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-primary-large {
    width: 100%;
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
}

.btn-primary-large:hover {
    background: var(--secondary);
}

.anonymous-option {
    background: transparent;
    border: 1px solid #e2e8f0;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

body.dark .anonymous-option {
    border-color: var(--border-dark);
}

.anonymous-option:hover {
    background: #f8fafc;
}

body.dark .anonymous-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.privacy-option-title-small {
    font-weight: 600;
    color: var(--text-main-light);
    font-size: 1rem;
}

.privacy-option-desc-small {
    font-size: 0.75rem;
    color: var(--text-sub-light);
}

.privacy-footer-text {
    font-size: 0.75rem;
    color: var(--text-sub-light);
    opacity: 0.6;
    margin-top: 1.5rem;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.text-blue {
    color: var(--primary);
}

.text-gray {
    color: #94a3b8;
}

body.dark .text-main-light {
    color: var(--text-main-dark);
}

body.dark .text-sub-light {
    color: var(--text-sub-dark);
}

/* Form Elements (Added for submit.php) */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main-light);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-light);
    background: var(--surface-light);
    color: var(--text-main-light);
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 127, 236, 0.1);
}

body.dark .form-input,
body.dark .form-textarea,
body.dark .form-select {
    background: var(--surface-dark);
    border-color: var(--border-dark);
}

.form-hint {
    font-size: 0.75rem;
    color: var(--text-sub-light);
    margin-top: 0.25rem;
    text-align: right;
}

.text-red {
    color: #ef4444;
}

/* Feedback Box */
.feedback-box {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.feedback-success {
    background: #dcfce7;
    color: #166534;
}

.feedback-error {
    background: #fee2e2;
    color: #991b1b;
}

body.dark .feedback-success {
    background: rgba(22, 163, 74, 0.2);
    color: #86efac;
}

body.dark .feedback-error {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

/* Footer Refactor */
.public-footer {
    background-color: white;
    width: 100%;
    margin-top: auto;
    border-top: 1px solid var(--border-light);
    padding: 3rem 0;
}

/* Hide on Mobile (< 768px) */
@media (max-width: 767px) {
    .public-footer {
        display: none !important;
    }
}

body.dark .public-footer {
    background-color: var(--surface-dark);
    border-color: var(--border-dark);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 100%;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        max-width: 1200px;
        /* Standard container width */
        margin: 0 auto;
        padding: 0 2rem;
    }
}

.footer-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-link {
    color: var(--text-sub-light);
    font-size: 0.875rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary);
}

.copyright {
    color: var(--text-sub-light);
    font-size: 0.875rem;
}

/* Changelog Styles */
.cl-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.cl-header {
    text-align: center;
    margin-bottom: 3rem;
}

.cl-icon-wrapper {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(19, 127, 236, 0.3);
}

.cl-icon-wrapper .material-icons-round {
    font-size: 32px;
}

.cl-main-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main-light);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cl-subtitle {
    font-size: 1.125rem;
    color: var(--text-sub-light);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.cl-card {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cl-version-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.cl-version-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main-light);
}

.cl-badge {
    background: rgba(19, 127, 236, 0.1);
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cl-section-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-sub-light);
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.cl-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cl-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-main-light);
    line-height: 1.6;
}

.cl-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 0.6rem;
    flex-shrink: 0;
}

.cl-text {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-sub-light);
}

.cl-footer-nav {
    margin-top: 3rem;
    text-align: center;
}

.cl-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-sub-light);
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.cl-back-link:hover {
    background: var(--surface-light);
    color: var(--primary);
}

/* Dark Mode Overrides */
body.dark .cl-main-title {
    color: var(--text-main-dark);
}

body.dark .cl-card {
    background: var(--surface-dark);
    border-color: var(--border-dark);
}

body.dark .cl-version-row {
    border-color: var(--border-dark);
}

body.dark .cl-version-title {
    color: var(--text-main-dark);
}

body.dark .cl-item {
    color: var(--text-main-dark);
}

body.dark .cl-back-link:hover {
    background: var(--surface-dark);
}

body.dark .cl-section-title {
    color: var(--text-sub-dark);
}

body.dark .cl-subtitle {
    color: var(--text-sub-dark);
}

/* Button Fixes */
.btn-header-cta {
    background-color: var(--primary);
    color: white !important;
    /* Ensure white text */
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(19, 127, 236, 0.4);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    line-height: normal;
    text-decoration: none !important;
}

.btn-header-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(19, 127, 236, 0.5);
    color: white !important;
}

.btn-header-cta:active {
    transform: translateY(0);
}

/* Fix for Submit Idea Button Underline */
a.btn-primary,
a.btn-primary-large,
.btn-submit,
.submit-btn-wrapper a {
    text-decoration: none !important;
}

a.btn-primary .material-icons-round,
a.btn-primary-large .material-icons-round,
.btn-submit .material-icons-round,
.submit-btn-wrapper .material-icons-round {
    text-decoration: none !important;
    display: inline-block;
    /* Helps with decoration issues */
}

/* Mobile Optimizations */
@media (max-width: 768px) {

    /* Lift FreeScout Widget above Bottom Nav */
    iframe#freescout-w {
        bottom: 90px !important;
        z-index: 40 !important;
        /* Ensure below modals (z-9999) but above content */
    }

    /* Smaller Header CTA */
    .btn-header-cta {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
        max-width: 500px;
        margin: 0 auto;
        line-height: 1.6;
    }
}

.cl-card {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    padding: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cl-version-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.cl-version-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main-light);
}

.cl-badge {
    background: rgba(19, 127, 236, 0.1);
    color: var(--primary);
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cl-section-title {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-sub-light);
    font-weight: 700;
    margin: 2rem 0 1rem;
}

.cl-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cl-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-main-light);
    line-height: 1.6;
}

.cl-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    margin-top: 0.6rem;
    flex-shrink: 0;
}

.cl-text {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--text-sub-light);
}

.cl-footer-nav {
    margin-top: 3rem;
    text-align: center;
}

.cl-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-sub-light);
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.2s;
}

.cl-back-link:hover {
    background: var(--surface-light);
    color: var(--primary);
}

/* Dark Mode Overrides */
body.dark .cl-main-title {
    color: var(--text-main-dark);
}

body.dark .cl-card {
    background: var(--surface-dark);
    border-color: var(--border-dark);
}

body.dark .cl-version-row {
    border-color: var(--border-dark);
}

body.dark .cl-version-title {
    color: var(--text-main-dark);
}

body.dark .cl-item {
    color: var(--text-main-dark);
}

body.dark .cl-back-link:hover {
    background: var(--surface-dark);
}

body.dark .cl-section-title {
    color: var(--text-sub-dark);
}

body.dark .cl-subtitle {
    color: var(--text-sub-dark);
}

/* Button Fixes */
.btn-header-cta {
    background-color: var(--primary);
    color: white !important;
    /* Ensure white text */
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(19, 127, 236, 0.4);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    line-height: normal;
    text-decoration: none !important;
}

.btn-header-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(19, 127, 236, 0.5);
    color: white !important;
}

.btn-header-cta:active {
    transform: translateY(0);
}

/* Fix for Submit Idea Button Underline */
a.btn-primary,
a.btn-primary-large,
.btn-submit,
.submit-btn-wrapper a {
    text-decoration: none !important;
}

a.btn-primary .material-icons-round,
a.btn-primary-large .material-icons-round,
.btn-submit .material-icons-round,
.submit-btn-wrapper .material-icons-round {
    text-decoration: none !important;
    display: inline-block;
    /* Helps with decoration issues */
}

/* Mobile Optimizations */
@media (max-width: 768px) {

    /* Lift FreeScout Widget above Bottom Nav */
    iframe#freescout-w {
        bottom: 90px !important;
        z-index: 40 !important;
        /* Ensure below modals (z-9999) but above content */
    }

    /* Smaller Header CTA */
    .btn-header-cta {
        padding: 0.35rem 0.75rem;
        font-size: 0.75rem;
    }

    .btn-header-cta .material-icons-round {
        font-size: 1rem;
    }
}

/* Mobile Modal Optimizations */

/* Reduce gaps in grid to exactly 10px */
.privacy-options-grid {
    gap: 10px !important;
}

/* Compact Privacy Option */
.privacy-option {
    padding: 1rem !important;
}

.privacy-option-title {
    font-size: 1rem !important;
    gap: 0.5rem !important;
}

/* Collapsible Section */
.privacy-option-header {
    user-select: none;
}

.privacy-option.login-option {
    border: 1px solid var(--border-light);
    background: transparent;
}

.privacy-option.login-option.active {
    background: var(--surface-light);
    border-color: var(--primary);
}

#loginChevron.rotate-180 {
    transform: rotate(180deg);
}

/* Horizontal Anonymous Button */
.anonymous-option {
    padding: 0.75rem 1rem !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem;
}

.anonymous-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.privacy-option-title-small {
    font-size: 0.9rem !important;
    margin: 0 !important;
}

.privacy-option-desc-small {
    display: none !important;
    /* Hide description to save space on mobile/compact */
}

/* Reduce Main Icon size on Mobile */
@media (max-height: 700px) {
    .privacy-icon-wrapper {
        display: none;
    }

    .privacy-subtitle {
        display: none;
    }

    .privacy-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .privacy-content {
        padding: 1.5rem !important;
    }
}

/* Modal Header Refactor */
.privacy-content {
    padding: 0 !important;
    border-radius: 1.5rem;
    display: block !important;
    /* Disable flex centering preventing full width */
    text-align: center;
    /* Keep text centered for subtitle etc */
}

.privacy-header-band {
    background-color: var(--primary);
    /* CD Blue */
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.privacy-icon-wrapper-new {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.privacy-icon-wrapper-new .material-icons-round {
    color: white;
    font-size: 1.25rem;
}

.privacy-title-new {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

/* Add padding back to the rest of the content */
.privacy-subtitle,
.privacy-options-grid,
.privacy-footer-text {
    padding-left: 2rem;
    padding-right: 2rem;
}

.privacy-subtitle {
    margin-top: 1.5rem;
}

.privacy-footer-text {
    padding-bottom: 2rem;
}

/* Mobile Adjustments for new Header */
@media (max-width: 480px) {
    .privacy-header-band {
        padding: 1rem 1.5rem;
    }

    .privacy-subtitle,
    .privacy-options-grid,
    .privacy-footer-text {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* Category Tab Share */
.tab-wrapper {
    background: var(--surface-light);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 2px;
    padding-right: 4px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    height: 42px;
    /* Consistent height for tabs */
}

body.dark .tab-wrapper {
    background: var(--surface-dark);
    border-color: var(--border-dark);
}

.tab-wrapper .tab {
    border: none;
    background: none;
}

.tab-share-btn {
    background: none;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: var(--text-sub-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: all 0.2s;
}

.tab-share-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
}

body.dark .tab-share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.tab-wrapper:has(.tab.active) {
    border-color: var(--primary);
}

.tab-wrapper:has(.tab.active) .tab {
    color: var(--primary);
    font-weight: 600;
}

/* Share Toast */
.share-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    animation: slideUpFade 0.3s ease-out;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translate(-50%, 1rem);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}