:root {
    color-scheme: dark;
    --bg-base: #05070d;
    --bg-elevated: rgba(9, 24, 27, 0.92);    /* L=7, saturated */
    --bg-panel: rgba(16, 22, 30, 0.95);      /* L=8 for cards */
    --bg-section-gradient: rgba(16, 22, 30, 0.92);  /* Neutral fallback, overridden by theme generator */
    --bg-hover: rgba(30, 41, 59, 0.5);
    --bg-active: rgba(30, 41, 59, 0.8);
    --border-subtle: rgba(148, 163, 184, 0.08);
    --border-default: rgba(148, 163, 184, 0.15);
    --border-strong: rgba(59, 130, 246, 0.4);
    --glow-primary: rgba(14, 165, 233, 0.45);
    /* Accent colors are set by early injection and theme-generator - not defined here to avoid overwriting */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --btn-text-color: #ffffff;
    --pwa-theme-color: #080c14;

    /* Team View / Card styling */
    --card-bg: rgba(4, 4, 4, 0.98);
    --card-header-bg: rgba(8, 8, 8, 0.95);
    --body-bg: #0f172a;
    --border-color: rgba(50, 50, 50, 0.8);
    --border-color-light: rgba(50, 50, 50, 0.4);
    --hover-bg: rgba(30, 41, 59, 0.6);
    --accent-bg: rgba(6, 182, 212, 0.15);
    --scrollbar-track: rgba(30, 30, 30, 0.3);
    --scrollbar-thumb: rgba(80, 80, 80, 0.5);
    --scrollbar-thumb-hover: rgba(100, 100, 100, 0.7);
    --sidebar-width: 256px;
}

/* Card utility classes */
.bg-card-bg {
    background: var(--card-bg) !important;
}

.border-card-border {
    border-color: var(--border-color) !important;
}

/* Override slate gradient cards with neutral dark grays */
.from-slate-800\/60,
[class*="from-slate-800"] {
    --tw-gradient-from: rgba(6, 6, 6, 0.6) !important;
}
.to-slate-900\/60,
[class*="to-slate-900"] {
    --tw-gradient-to: rgba(2, 2, 2, 0.6) !important;
}

/* Stat cards - near black */
.stat-card,
#statsContainer > div,
#statsCards > div {
    background: linear-gradient(to bottom, rgba(6, 6, 6, 0.95), rgba(2, 2, 2, 0.98)) !important;
}

* {
    scrollbar-color: var(--accent-solid) var(--bg-base);
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base, #0f172a);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-solid);
    border-radius: 999px;
    border: 2px solid var(--bg-base, #0f172a);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-solid);
    filter: brightness(1.2);
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #000000 100%);
    color: var(--text-primary);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.01em;
    position: relative;
    overflow-x: hidden;
}

.bg-slate-900 {
    background: rgba(2, 6, 23, 0.75) !important;
}

.bg-slate-800 {
    background: rgba(12, 18, 28, 0.82) !important;
}

.bg-slate-700 {
    background: rgba(30, 41, 59, 0.5) !important;
}

.bg-slate-600 {
    background: rgba(51, 65, 85, 0.55) !important;
}

.border-slate-700 {
    border-color: rgba(148, 163, 184, 0.14) !important;
}

.border-slate-800 {
    border-color: rgba(30, 41, 59, 0.45) !important;
}

.text-slate-100,
.text-slate-200 {
    color: var(--text-primary) !important;
}

.text-slate-300 {
    color: rgba(226, 232, 240, 0.85) !important;
}

.text-slate-400,
.text-slate-500 {
    color: var(--text-secondary) !important;
}

.text-slate-600 {
    color: rgba(100, 116, 139, 0.72) !important;
}

.hover\:bg-slate-700:hover {
    background: rgba(37, 49, 69, 0.55) !important;
}

.hover\:bg-slate-600:hover {
    background: rgba(51, 65, 85, 0.6) !important;
}

.bg-blue-600,
.hover\:bg-blue-600:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.95));
    color: #f8fafc;
}

.bg-green-600,
.hover\:bg-green-600:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(45, 212, 191, 0.9)) !important;
    color: #ecfeff !important;
}

.bg-purple-600,
.hover\:bg-purple-600:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(99, 102, 241, 0.9)) !important;
    color: #f5f3ff !important;
}

.bg-yellow-600,
.hover\:bg-yellow-600:hover {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.9), rgba(250, 204, 21, 0.9)) !important;
    color: #fefce8 !important;
}

.bg-red-600,
.hover\:bg-red-600:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(190, 18, 60, 0.95)) !important;
    color: #fee2e2 !important;
}

.bg-cyan-600,
.hover\:bg-cyan-600:hover {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.9), rgba(59, 130, 246, 0.9)) !important;
    color: #ecfeff !important;
}

.bg-slate-50,
.bg-gray-50 {
    background: rgba(15, 23, 42, 0.55) !important;
}

.text-blue-600,
.hover\:text-blue-800:hover,
.text-blue-800 {
    color: rgba(125, 211, 252, 0.92) !important;
}

.bg-blue-100,
.bg-green-100,
.bg-red-100,
.bg-yellow-100,
.bg-purple-100 {
    background: rgba(37, 99, 235, 0.12) !important;
}

.text-blue-800,
.text-green-800,
.text-red-800,
.text-yellow-800,
.text-purple-800 {
    color: rgba(191, 219, 254, 0.92) !important;
}

.border-slate-300,
.border-slate-200 {
    border-color: rgba(148, 163, 184, 0.22) !important;
}

.text-gray-500,
.text-gray-400 {
    color: var(--text-secondary) !important;
}

.bg-white {
    background: #ffffff !important;
}

/* Toggle switch knobs - ensure always white and visible */
.w-5.h-5.bg-white.rounded-full,
.absolute.bg-white.rounded-full,
div.absolute.bg-white.rounded-full {
    background: #ffffff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15) !important;
}

.app-shell {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    margin-left: 270px;
    max-width: 100vw;
    overflow-x: hidden;
}

.sidebar {
    width: 270px;
    height: 100vh;
    height: 100dvh;
    background: rgb(6, 10, 16);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
}

body.sidebar-loading .sidebar {
    opacity: 1;
    pointer-events: none;
}

body.sidebar-loading .sidebar-nav,
body.sidebar-loading .sidebar-footer,
body.sidebar-loading .customize-menu-trigger {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.sidebar-header {
    padding: 2rem 1.75rem 1.5rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 110px;
}

.sidebar-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    width: 100%;
    margin-bottom: 0;
}

.sidebar-logo {
    max-width: 160px;
    max-height: 60px;
    width: 160px;
    height: 60px;
    display: block;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    margin: 0 auto;
}

.sidebar-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #e2e8f0;
}

.sidebar-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.sidebar-nav {
    margin-top: 0.3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.04rem;
    padding-bottom: 0.5rem;
    padding-left: 20px;
    transition: opacity 0.25s ease;
    overflow-y: auto;
    min-height: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 8px;
    margin: 0 0.5rem;
    padding: 0.15rem 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.sidebar-nav a span.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.sidebar-nav a span.icon svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

.sidebar-nav a:hover {
    color: var(--text-primary);
    transform: translateX(6px);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-solid) 25%, transparent);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent-solid) 12%, transparent), color-mix(in srgb, var(--accent-solid) 10%, transparent));
}

.sidebar-nav a.sidebar-active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent-solid) 28%, transparent), color-mix(in srgb, var(--accent-solid) 18%, transparent));
    border-left: 3px solid color-mix(in srgb, var(--accent-solid) 90%, transparent);
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-solid) 20%, transparent), 0 12px 30px -12px color-mix(in srgb, var(--accent-solid) 60%, transparent);
}


.sidebar-nav a.sidebar-locked,
.sidebar-nav a.sidebar-teaser {
    background: rgba(11, 17, 32, 0.9);
    color: var(--text-secondary);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
    opacity: 0.85;
}

.sidebar-nav a.sidebar-locked:hover,
.sidebar-nav a.sidebar-teaser:hover {
    transform: translateX(4px);
    background: rgba(15, 23, 42, 0.95);
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.2);
}

.sidebar-nav a.sidebar-disabled {
    opacity: 0.65;
}

.sidebar-separator {
    padding: 0.3rem 0.5rem 0.1rem;
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #64748b);
    user-select: none;
    pointer-events: none;
}

.sidebar-separator:first-child {
    padding-top: 0.15rem;
}

.sidebar-scroll-indicator {
    position: absolute;
    right: 24px;
    bottom: 95px;
    color: var(--text-muted);
    animation: bounce-arrow 1.5s ease-in-out infinite;
    opacity: 0.7;
    pointer-events: none;
    z-index: 10;
}

@keyframes bounce-arrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

.sidebar-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex-shrink: 0;
}

.sidebar-footer .user-meta {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.sidebar-footer .user-email {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.75rem;
    word-break: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-footer > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.customize-menu-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(148, 163, 184, 0.85);
    background: transparent;
    border: none;
    padding: 0.25rem 0;
    cursor: pointer;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.customize-menu-trigger:hover,
.customize-menu-trigger:focus {
    color: var(--accent-solid);
    outline: none;
}

.customize-menu-icon {
    display: inline-flex;
    width: 16px;
    height: 16px;
    color: rgba(148, 163, 184, 0.7);
}

.customize-menu-trigger:hover .customize-menu-icon,
.customize-menu-trigger:focus .customize-menu-icon {
    color: var(--accent-solid);
}

.customize-menu-icon svg {
    width: 100%;
    height: 100%;
}

.customize-menu-label {
    display: inline-flex;
    align-items: center;
}

.lock-indicator svg {
    width: 14px;
    height: 14px;
}

.paywall-panel {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 1.5rem;
    box-shadow: 0 30px 80px -20px rgba(6, 182, 212, 0.45);
    position: relative;
    overflow: hidden;
}

.paywall-aurora {
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 220px;
    background: radial-gradient(circle at 20% 20%, rgba(45, 212, 191, 0.35), transparent 60%),
                radial-gradient(circle at 80% 10%, rgba(96, 165, 250, 0.35), transparent 55%),
                radial-gradient(circle at 50% 70%, rgba(236, 72, 153, 0.3), transparent 65%);
    filter: blur(60px);
    opacity: 0.85;
    pointer-events: none;
}

.paywall-orbit {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.paywall-orbit-ring {
    position: absolute;
    width: 340px;
    height: 340px;
    border: 1px dashed rgba(148, 163, 184, 0.25);
    border-radius: 9999px;
    top: -120px;
    right: -160px;
}

.paywall-orbit-sparkle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #fcd34d, #f472b6);
    border-radius: 50%;
    top: -120px;
    right: 10px;
    box-shadow: 0 0 20px rgba(250, 204, 21, 0.6);
    animation: sparkleFloat 6s ease-in-out infinite;
}

.paywall-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.paywall-stars span {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(96, 165, 250, 0.6));
    border-radius: 50%;
    filter: blur(0.2px);
    opacity: 0.8;
}

.paywall-stars span:nth-child(1) {
    top: 18%;
    left: 15%;
    animation: sparklePulse 4s ease-in-out infinite;
}

.paywall-stars span:nth-child(2) {
    top: 32%;
    right: 12%;
    animation: sparklePulse 5.5s ease-in-out infinite;
}

.paywall-stars span:nth-child(3) {
    bottom: 20%;
    left: 25%;
    animation: sparklePulse 6.5s ease-in-out infinite;
}

.paywall-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: rgba(226, 232, 240, 0.9);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.paywall-close:hover,
.paywall-close:focus {
    transform: scale(1.05);
    background: rgba(59, 130, 246, 0.35);
    color: #f8fafc;
    outline: none;
}

.paywall-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.paywall-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 9999px;
    background: var(--accent-gradient);
    color: #0f172a;
    box-shadow: 0 18px 30px -15px rgba(56, 189, 248, 0.75);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.paywall-cta:hover,
.paywall-cta:focus {
    transform: translateY(-2px);
    box-shadow: 0 25px 45px -20px rgba(125, 211, 252, 0.85);
    outline: none;
}

.animate-float {
    animation: floaty 4.5s ease-in-out infinite;
}

@keyframes floaty {
    0%, 100% {
        transform: translateY(0px) rotate(-2deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes auroraShift {
    0% {
        transform: translate3d(-10%, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(10%, -6%, 0) rotate(3deg);
    }
    100% {
        transform: translate3d(-10%, 0, 0) rotate(0deg);
    }
}

@keyframes orbitSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.85;
    }
    50% {
        transform: translateY(18px) scale(1.15);
        opacity: 1;
    }
}

@keyframes sparklePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.4);
        opacity: 1;
    }
}

/* Teaser Preview - Content visible but not clickable, with upgrade CTA overlay */
/* Wrapper needs relative positioning for absolute overlay child */
.teaser-preview-wrapper {
    position: relative;
}

.teaser-preview-content {
    /* Block all clicks on the page content */
    pointer-events: none;
}

/* Overlay covers page-scroll area only (not sidebar), properly stacked within page-scroll */
.teaser-preview-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 256px; /* Account for sidebar width */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Above page content but below sidebar */
    padding: 2rem;
    pointer-events: none;
    /* Gradient using theme base color */
    background: linear-gradient(
        to bottom,
        transparent 0%,
        transparent 25%,
        color-mix(in srgb, var(--bg-base) 30%, transparent) 45%,
        color-mix(in srgb, var(--bg-base) 70%, transparent) 65%,
        color-mix(in srgb, var(--bg-base) 95%, transparent) 85%,
        var(--bg-base) 100%
    );
}

/* On mobile, full width since sidebar is hidden */
@media (max-width: 768px) {
    .teaser-preview-overlay {
        left: 0;
        padding: 1rem;
        padding-bottom: 5rem; /* Account for bottom nav */
    }
}

.teaser-preview-cta {
    width: 100%;
    max-width: 520px;
    padding: 2rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px -15px var(--glow-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
    pointer-events: auto; /* Make CTA card clickable */
}

.teaser-preview-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text-secondary);
    transition: background 0.15s, color 0.15s;
    z-index: 2;
}

.teaser-preview-close:hover {
    background: color-mix(in srgb, var(--text-secondary) 15%, transparent);
    color: var(--text-primary);
}

.teaser-preview-close svg {
    width: 1.25rem;
    height: 1.25rem;
}

.teaser-preview-cta::before {
    content: '';
    position: absolute;
    inset: -40% -20% auto -20%;
    height: 180px;
    background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent-solid) 25%, transparent), transparent 60%),
                radial-gradient(circle at 80% 10%, color-mix(in srgb, var(--accent-solid) 25%, transparent), transparent 55%);
    filter: blur(30px);
    /* animation: auroraShift 12s ease-in-out infinite alternate; -- DISABLED: GPU-intensive, causes vsync issues */
    pointer-events: none;
    z-index: 0;
}

.teaser-preview-cta > * {
    position: relative;
    z-index: 1;
}

.teaser-preview-icon {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.5rem;
    border-radius: 1.25rem;
    background: var(--accent-gradient);
    box-shadow: 0 20px 40px -15px var(--glow-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floaty 4.5s ease-in-out infinite;
}

.teaser-preview-icon svg {
    width: 2.25rem;
    height: 2.25rem;
    color: var(--bg-base);
}

.teaser-preview-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--accent-solid);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.teaser-preview-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.teaser-preview-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.teaser-preview-body p {
    margin-bottom: 0.75rem;
}

.teaser-preview-body p:last-child {
    margin-bottom: 0;
}

.teaser-preview-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bg-base);
    background: var(--accent-gradient);
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 15px 35px -10px var(--glow-primary);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.teaser-preview-button:hover,
.teaser-preview-button:focus {
    transform: translateY(-2px);
    box-shadow: 0 25px 45px -20px var(--glow-primary);
    outline: none;
}

.teaser-preview-button svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* AI Hub Cards - Theme-aware accent colors */
.ai-hub-card:hover {
    border-color: color-mix(in srgb, var(--accent-solid) 50%, transparent);
}

.ai-hub-icon-wrap {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent-solid) 20%, transparent), color-mix(in srgb, var(--accent-solid) 10%, transparent));
    color: var(--accent-solid);
}

.ai-hub-card:hover .ai-hub-icon-wrap {
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent-solid) 30%, transparent), color-mix(in srgb, var(--accent-solid) 15%, transparent));
}

.ai-hub-card:hover .ai-hub-title {
    color: var(--accent-solid);
}

.ai-hub-card:hover .ai-hub-arrow {
    color: var(--accent-solid);
}

.ai-hub-accent {
    color: var(--accent-solid);
}

/* ============================================
   AI Dashboard - Leaderboards
   ============================================ */
.leaderboard-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-hover);
    border-radius: 0.5rem;
    transition: background 0.15s ease;
}

.leaderboard-item:hover {
    background: var(--bg-active);
}

.leaderboard-rank {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.75rem;
    background: var(--bg-active);
    color: var(--text-secondary);
}

.leaderboard-rank-1 {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1e293b;
}

.leaderboard-rank-2 {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
    color: #1e293b;
}

.leaderboard-rank-3 {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #1e293b;
}

/* ============================================
   AI Dashboard - Showcase Carousel
   ============================================ */
.showcase-carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.showcase-carousel {
    display: flex;
    gap: 1rem;
    transition: transform 0.4s ease-out;
}

.showcase-card {
    flex: 0 0 calc(33.333% - 0.667rem);
    min-width: 280px;
    padding: 1.25rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-default);
    border-radius: 1rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.showcase-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.4);
}

.showcase-card-cyan {
    border-color: color-mix(in srgb, var(--accent-solid) 30%, transparent);
}
.showcase-card-cyan:hover {
    border-color: color-mix(in srgb, var(--accent-solid) 60%, transparent);
}

.showcase-card-pink {
    border-color: color-mix(in srgb, #ec4899 30%, transparent);
}
.showcase-card-pink:hover {
    border-color: color-mix(in srgb, #ec4899 60%, transparent);
}

.showcase-card-purple {
    border-color: color-mix(in srgb, #a855f7 30%, transparent);
}
.showcase-card-purple:hover {
    border-color: color-mix(in srgb, #a855f7 60%, transparent);
}

.showcase-card-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    background: var(--bg-hover);
    color: var(--text-secondary);
}

.showcase-card-cyan .showcase-card-badge {
    background: color-mix(in srgb, var(--accent-solid) 20%, transparent);
    color: var(--accent-solid);
}

.showcase-card-pink .showcase-card-badge {
    background: color-mix(in srgb, #ec4899 20%, transparent);
    color: #f472b6;
}

.showcase-card-purple .showcase-card-badge {
    background: color-mix(in srgb, #a855f7 20%, transparent);
    color: #c084fc;
}

.showcase-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.showcase-card-icon svg,
.showcase-card-svg-icon {
    width: 40px;
    height: 40px;
}

.showcase-card-cyan .showcase-card-icon svg,
.showcase-card-cyan .showcase-card-svg-icon {
    stroke: var(--accent-solid);
}

.showcase-card-pink .showcase-card-icon svg,
.showcase-card-pink .showcase-card-svg-icon {
    stroke: #f472b6;
}

.showcase-card-purple .showcase-card-icon svg,
.showcase-card-purple .showcase-card-svg-icon {
    stroke: #c084fc;
}

.showcase-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.showcase-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--bg-active);
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.showcase-dot:hover {
    background: var(--text-muted);
}

.showcase-dot.active {
    background: var(--accent-solid);
    transform: scale(1.3);
}

/* Responsive showcase */
@media (max-width: 1024px) {
    .showcase-card {
        flex: 0 0 calc(50% - 0.5rem);
    }
}

@media (max-width: 640px) {
    .showcase-card {
        flex: 0 0 100%;
    }
}

/* ============================================
   AI Dashboard - Highlights
   ============================================ */
.highlight-card {
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-default);
    background: var(--bg-panel);
}

.highlight-card-cyan {
    border-color: color-mix(in srgb, var(--accent-solid) 30%, transparent);
}

.highlight-card-pink {
    border-color: color-mix(in srgb, #ec4899 30%, transparent);
}

.highlight-card-purple {
    border-color: color-mix(in srgb, #a855f7 30%, transparent);
}

.highlight-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.highlight-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.highlight-icon {
    font-size: 2rem;
}

.highlight-icon svg {
    width: 32px;
    height: 32px;
}

.highlight-info {
    flex: 1;
    min-width: 0;
}

.highlight-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.highlight-metric {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.highlight-card-cyan .highlight-metric {
    color: var(--accent-solid);
}

.highlight-card-pink .highlight-metric {
    color: #f472b6;
}

.highlight-card-purple .highlight-metric {
    color: #c084fc;
}

.user-profile-card {
    flex: 1;
    min-width: 0;
}

#sidebarNotificationBellBtn {
    flex-shrink: 0;
}

.btn-logout {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.95));
    color: rgba(254, 242, 242, 0.92);
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-top: 15px;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -20px rgba(239, 68, 68, 0.75);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 0;
    min-width: 0; /* Prevent flex item from overflowing */
    max-width: 100%;
    overflow-x: hidden;
}

.top-bar {
    padding: 1.75rem 2.25rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(160deg, rgba(8, 12, 20, 0.78) 0%, rgba(15, 23, 42, 0.92) 100%);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 5;
    overflow: visible;
}

.top-bar::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, rgba(8, 12, 20, 0.3), rgba(8, 12, 20, 0));
    z-index: -1;
    pointer-events: none;
}

.top-bar h2 {
    font-size: 1.125rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #f1f5f9;
}

@media (min-width: 768px) {
    .top-bar h2 {
        font-size: 1.8rem;
    }
}

.top-bar .subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 0.3rem;
    line-height: 1;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.top-bar-actions button {
    font-size: 0.875rem !important;
    padding: 0.5rem 0.875rem !important;
}

.top-bar-actions select {
    width: auto !important;
    min-width: 150px;
    font-size: 0.875rem !important;
}
.contacts-mobile-toolbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    justify-items: center;
}

.contacts-mobile-toolbar button {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 1.1rem;
    padding: 0.75rem !important;
    text-align: center;
}

.contacts-mobile-toolbar button svg {
    width: 1.15rem;
    height: 1.15rem;
}

.contacts-mobile-toolbar button .label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* Kanban board - fit columns to available width */
#kanbanBoardContainer {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
}

#kanbanBoard {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

/* Mobile: columns stack vertically */
#kanbanBoard > div {
    width: 100%;
    flex-shrink: 0;
}

/* Desktop: columns go horizontal, flex to fit available space */
@media (min-width: 768px) {
    #kanbanBoard {
        flex-direction: row;
        width: 100%;
        gap: 0.5rem;
    }

    /* Columns flex to fill available space equally - allow shrinking to fit */
    #kanbanBoard > div {
        flex: 1 1 0;
        min-width: 0;
        max-width: none;
        width: auto;
    }

    /* When more than 6 columns, use horizontal scroll with smaller fixed widths */
    #kanbanBoard.many-columns {
        width: max-content;
        overflow-x: auto;
    }

    #kanbanBoard.many-columns > div {
        flex: 0 0 180px;
        min-width: 180px;
    }
}

/* Prevent kanban content from forcing overflow */
#kanbanBoard .kanban-column,
#kanbanBoard > div > div {
    min-width: 0;
    overflow: hidden;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    background: rgba(15, 118, 255, 0.12);
    color: rgba(191, 219, 254, 0.92);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.page-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 2.5rem 1rem 3rem 1rem;
    min-width: 0;
    max-width: 100%;
}

@media (min-width: 768px) {
    .page-scroll {
        overflow-x: hidden;
        padding: 2.5rem 2.25rem 3rem 2.25rem;
    }
}

.channel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: none;
    color: rgba(148, 163, 184, 0.6);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0;
}

.channel-btn:hover {
    color: rgba(148, 163, 184, 0.9);
    transform: scale(1.1);
}

.channel-btn.active {
    color: rgba(34, 211, 238, 1);
}

.page-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    min-width: 0;
}

.page-container.full-width {
    max-width: 100%;
}

.glass-panel {
    background: linear-gradient(160deg, rgba(8, 12, 20, 0.78) 0%, rgba(15, 23, 42, 0.92) 100%);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 25px 50px -20px rgba(15, 23, 42, 0.65), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(18px);
}

/* Pipeline opportunity cards - allow text wrapping and compact sizing */
.opportunity-card h4,
.opportunity-card .truncate {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.opportunity-card a.truncate {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.opportunity-card {
    padding: 0.65rem !important;
}

.opportunity-card h4 {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.25rem !important;
}

.opportunity-card .text-base {
    font-size: 0.85rem !important;
    margin-bottom: 0.35rem !important;
}

.opportunity-card .text-xs {
    font-size: 0.7rem;
}

/* Kanban column header - more compact */
.kanban-column .border-b {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.kanban-column h3 {
    font-size: 0.85rem;
}

.card {
    border-radius: 18px;
    padding: 1rem 1.15rem;
    background: linear-gradient(145deg,
        rgba(6, 6, 6, 0.99) 0%,
        rgba(3, 3, 3, 1) 50%,
        rgba(2, 2, 2, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top-color: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 12px 32px -12px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 1px 0 rgba(255, 255, 255, 0.02) inset;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 20%,
        rgba(255, 255, 255, 0.1) 80%,
        transparent 100%);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 20px 48px -16px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset,
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.card.highlight {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow:
        0 12px 32px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.card-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.tab-btn {
    padding: 10px;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(14, 165, 233, 0.95));
    color: white;
    box-shadow: 0 4px 12px -4px rgba(56, 189, 248, 0.5), 0 2px 8px -4px rgba(37, 99, 235, 0.5);
}

.btn-primary:hover {
    background: linear-gradient(135deg, rgba(30, 82, 200, 0.95), rgba(10, 145, 210, 0.95));
    box-shadow: 0 6px 16px -4px rgba(56, 189, 248, 0.6), 0 4px 12px -4px rgba(37, 99, 235, 0.6);
}

.btn-primary:active {
    background: linear-gradient(135deg, rgba(25, 70, 180, 0.95), rgba(8, 130, 190, 0.95));
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-primary);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.18);
}

.btn-secondary:hover {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.4);
}

.btn-secondary:active {
    background: rgba(15, 23, 42, 0.95);
}

.btn-ghost {
    background: rgba(59, 130, 246, 0.08);
    color: rgba(191, 219, 254, 0.95);
    border: 1px dashed rgba(96, 165, 250, 0.35);
}

.btn-ghost:hover {
    background: rgba(59, 130, 246, 0.15);
    border-style: solid;
}

.btn-ghost:active {
    background: rgba(59, 130, 246, 0.1);
}

/* Override text-white on button-like elements to use theme button text color */
button.text-white, a.text-white, [role="button"].text-white,
.btn.text-white, .btn-primary.text-white,
.bg-cyan-500.text-white, .bg-cyan-600.text-white, .bg-cyan-400.text-white,
.bg-blue-500.text-white, .bg-blue-600.text-white, .bg-blue-700.text-white,
.hover\:bg-cyan-500.text-white, .hover\:bg-cyan-600.text-white,
.hover\:bg-blue-500.text-white, .hover\:bg-blue-600.text-white, .hover\:bg-blue-700.text-white {
    color: var(--btn-text-color, white) !important;
}

.input-field,
.select-field,
.textarea-field {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.12);
    color: var(--text-primary);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input-field::placeholder,
.textarea-field::placeholder {
    color: rgba(148, 163, 184, 0.55);
}

.input-field:focus,
.select-field:focus,
.textarea-field:focus {
    outline: none;
    border-color: var(--accent-solid, #22d3ee);
    box-shadow: 0 0 0 3px var(--accent-bg, rgba(34, 211, 238, 0.15));
    background: rgba(15, 23, 42, 0.95);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.badge-blue {
    background: rgba(37, 99, 235, 0.22);
    color: rgba(191, 219, 254, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-green {
    background: rgba(16, 185, 129, 0.22);
    color: rgba(209, 250, 229, 0.9);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-red {
    background: rgba(239, 68, 68, 0.22);
    color: rgba(254, 226, 226, 0.9);
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-yellow {
    background: rgba(251, 191, 36, 0.22);
    color: rgba(254, 243, 199, 0.9);
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.badge-purple {
    background: rgba(168, 85, 247, 0.22);
    color: rgba(243, 232, 255, 0.9);
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.badge-slate {
    background: rgba(100, 116, 139, 0.22);
    color: rgba(226, 232, 240, 0.9);
    border: 1px solid rgba(100, 116, 139, 0.35);
}

.badge-amber {
    background: rgba(245, 158, 11, 0.22);
    color: rgba(254, 243, 199, 0.9);
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.badge-cyan {
    background: rgba(6, 182, 212, 0.22);
    color: rgba(207, 250, 254, 0.9);
    border: 1px solid rgba(6, 182, 212, 0.35);
}

.badge-gold {
    background: rgba(234, 179, 8, 0.28);
    color: rgba(254, 249, 195, 0.95);
    border: 1px solid rgba(234, 179, 8, 0.45);
}

.table-wrapper {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(12, 18, 28, 0.85);
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

.table-wrapper th,
.table-wrapper td {
    padding: 0.9rem 1.2rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.table-wrapper th {
    color: rgba(203, 213, 225, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.table-wrapper tbody tr:hover {
    background: rgba(59, 130, 246, 0.08);
}

.section-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.section-description {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state strong {
    color: var(--text-primary);
}

.modal-backdrop {
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(16px);
}

.modal-backdrop:not(.hidden) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-panel {
    background: linear-gradient(160deg, rgba(10, 16, 25, 0.92), rgba(9, 12, 20, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 24px;
    box-shadow: 0 35px 65px -30px rgba(15, 118, 255, 0.5);
}

.modal-scroll-body {
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

body.modal-open {
    overflow: hidden;
}

.mobile-fullscreen-modal {
    align-items: center;
}

.modal-mobile-panel {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .mobile-fullscreen-modal {
        padding: 0;
        align-items: stretch;
        justify-content: flex-start;
        inset: 0;
        width: 100dvw;
        height: 100dvh;
    }

    .mobile-fullscreen-modal .modal-mobile-panel {
        width: 100dvw;
        max-width: none;
        min-height: 100dvh;
        height: 100dvh;
        border-radius: 0;
        padding-top: max(0px, env(safe-area-inset-top));
        padding-bottom: max(0px, env(safe-area-inset-bottom));
        padding-left: max(0px, env(safe-area-inset-left));
        padding-right: max(0px, env(safe-area-inset-right));
    }

    .mobile-fullscreen-modal .modal-scroll-body {
        flex: 1;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.dashboard-widget-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dashboard-widget-option {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: var(--bg-elevated);
    position: relative;
    transition: border 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.dashboard-widget-option:hover {
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-1px);
}

.dashboard-widget-option:focus-within {
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.35);
}

.dashboard-widget-checkbox {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.dashboard-widget-copy {
    flex: 1;
}

.dashboard-widget-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-widget-description {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.dashboard-widget-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    min-width: 110px;
}

.dashboard-widget-status {
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-widget-status.is-on {
    color: rgba(94, 234, 212, 0.95);
}

.dashboard-widget-status.is-off {
    color: rgba(148, 163, 184, 0.85);
}

.dashboard-widget-switch {
    width: 42px;
    height: 22px;
    border-radius: 999px;
    background: rgba(71, 85, 105, 0.6);
    position: relative;
    transition: background 0.2s ease;
}

.dashboard-widget-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
    transition: transform 0.2s ease;
}

.dashboard-widget-option input[data-widget-toggle]:checked ~ .dashboard-widget-meta .dashboard-widget-switch {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.75), rgba(14, 165, 233, 0.75));
}

.dashboard-widget-option input[data-widget-toggle]:checked ~ .dashboard-widget-meta .dashboard-widget-switch::after {
    transform: translateX(18px);
}

.dashboard-widget-option.is-disabled {
    opacity: 0.65;
}

.dashboard-widget-hidden {
    display: none !important;
}

@media (prefers-color-scheme: light) {
    .dashboard-widget-option {
        background: rgba(255, 255, 255, 0.92);
        border-color: rgba(15, 23, 42, 0.12);
    }

    .dashboard-widget-status.is-on {
        color: #0d9488;
    }

    .dashboard-widget-status.is-off {
        color: rgba(71, 85, 105, 0.85);
    }

    .dashboard-widget-switch {
        background: rgba(148, 163, 184, 0.4);
    }

    .dashboard-widget-switch::after {
        background: rgba(15, 23, 42, 0.8);
    }
}

.tab-nav {
    display: inline-flex;
    background: rgba(15, 23, 42, 0.55);
    padding: 0.3rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.tab-nav button {
    border-radius: 999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tab-nav button.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(14, 165, 233, 0.55));
    color: var(--text-primary);
    box-shadow: 0 10px 25px -15px rgba(56, 189, 248, 0.65);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: rgba(191, 219, 254, 0.95);
    font-size: 0.75rem;
}

.message-type-btn {
    width: 20px;
    height: 20px;
    padding: 0;
    background: none;
    border: none;
    color: rgba(148, 163, 184, 0.6);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-type-btn:hover {
    color: rgba(148, 163, 184, 0.9);
    transform: scale(1.1);
}

.message-type-btn.active {
    color: rgba(56, 189, 248, 1);
}

/* Mobile/Tablet breakpoint - sidebar becomes slide-out menu */
@media (max-width: 1024px) {
    .top-bar::after {
        height: 30px;
    }

    .top-bar {
        padding: 1.5rem;
    }

    .page-scroll {
        padding: 1.75rem;
    }

    .app-shell {
        flex-direction: column;
        margin-left: 0;
    }

    .sidebar {
        position: fixed;
        left: -320px;
        top: 0;
        width: 280px;
        height: 100vh;
        height: 100dvh;
        transition: left 0.3s ease;
        z-index: 999;
        overflow: hidden;
        flex-direction: column;
        display: flex;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-header {
        display: block;
    }

    .sidebar-footer {
        display: block;
    }

    .sidebar-nav {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        margin-top: 0;
    }

    .sidebar-nav a {
        margin: 0;
        border-radius: 0;
        padding: 0.25rem 1.5rem;
        line-height: 1.2;
        box-shadow: inset 4px 0 0 0 transparent;
        transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

    .sidebar-nav a:hover {
        color: var(--text-primary);
        background: transparent;
        transform: none;
    }

    .sidebar-nav a.sidebar-active {
        background: color-mix(in srgb, var(--accent-solid) 18%, transparent);
        color: var(--accent-solid);
        box-shadow: inset 4px 0 0 0 var(--accent-solid);
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: #f8fafc;
        font-size: 24px;
        cursor: pointer;
        padding: 0.5rem;
        margin-right: 1rem;
    }

    .mobile-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 990;
        transition: opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }

    .mobile-menu-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }
}

/* iOS PWA Safe Area Insets - handles notch, Dynamic Island, and status bar */
@supports (padding-top: max(0px, env(safe-area-inset-top))) {
    /* Mobile: use max() to prefer safe-area-inset-top when available */
    @media (max-width: 1024px) {
        .top-bar {
            /* Use whichever is larger: default 1.5rem or iPhone notch spacing */
            padding-top: max(1.5rem, env(safe-area-inset-top));
        }

        /* Sidebar container padding pushes everything down */
        .sidebar {
            padding-top: env(safe-area-inset-top);
        }

        /* Close button - adjust position to account for safe area */
        #mobileSidebarClose {
            top: calc(1rem + env(safe-area-inset-top)) !important;
        }
    }

    /* Bottom navigation safe area */
    #mobileBottomNav {
        padding-bottom: calc(25px + env(safe-area-inset-bottom));
    }

    /* Page scroll needs to account for bottom safe area on PWA */
    @media (max-width: 768px) {
        .page-scroll {
            padding-bottom: calc(140px + env(safe-area-inset-bottom)) !important;
        }
    }
}

@media (min-width: 1025px) {
    .mobile-menu-btn {
        display: none;
    }

    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Bottom nav active state - uses theme accent color */
.bottom-nav-active {
    color: var(--accent-solid) !important;
}

/* Notification Dropdown Styles */
.notification-dropdown {
    background: linear-gradient(160deg, rgba(10, 16, 25, 0.95), rgba(9, 12, 20, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.8);
    z-index: 9999 !important;
}

/* Ensure notification dropdown in sidebar overflows properly */
.sidebar-footer .relative {
    overflow: visible;
}

/* Mobile: position dropdown below the bell instead of left */
@media (max-width: 768px) {
    #sidebarNotificationDropdown {
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        top: calc(100% + 0.5rem) !important;
        width: calc(100vw - 2rem) !important;
        max-width: none !important;
    }
}

.notification-dropdown.hidden {
    display: none !important;
}

.notification-dropdown::-webkit-scrollbar {
    width: 8px;
}

.notification-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.notification-dropdown::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 4px;
}

.notification-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.5);
}

/* Notification Item Styles */
.notification-dropdown .group {
    cursor: pointer;
}

.notification-dropdown .group:last-child {
    border-bottom: none;
}

/* Notification Badge */
#notificationBadge {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.625rem;
    line-height: 1;
    animation: pulse-badge 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* User Profile Card in Sidebar */
.user-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.user-profile-card:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(148, 163, 184, 0.3);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
    overflow: hidden;
}

.avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.user-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.2;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer .user-email {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-footer .user-settings-link {
    font-size: 10px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* PWA-only Adjustments (display-mode: standalone) */
@media (display-mode: standalone) and (max-width: 768px) {
    /* Add padding to page content to account for mobile bottom nav bar (64px + 5px top + 25px bottom) */
    .page-scroll {
        padding-bottom: calc(3rem + 64px + 5px + 25px) !important;
    }

    /* Adjust sidebar height to stop at bottom nav on mobile */
    .sidebar {
        height: calc(100vh - 94px);
        height: calc(100dvh - 94px);
    }

    /* Ensure sidebar nav doesn't overflow into bottom nav */
    .sidebar-nav {
        max-height: calc(100vh - 240px);
        overflow-y: auto;
    }
}

.menu-manager-item {
    list-style: none;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    background: rgba(10, 15, 24, 0.72);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.menu-manager-item + .menu-manager-item {
    margin-top: 0.5rem;
}

.menu-manager-item.dragging {
    opacity: 0.6;
}

.menu-manager-item.drag-over {
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 0 0 2px rgba(34, 211, 238, 0.25);
}

.menu-manager-handle {
    cursor: grab;
    font-size: 1rem;
    user-select: none;
}

.menu-manager-handle:active {
    cursor: grabbing;
}

/* Gamification UI */
.toggle-knob {
    transition: all 0.35s ease;
}

.gamify-top-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border-radius: 9999px;
    background: rgba(14, 165, 233, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: rgba(224, 242, 254, 0.95);
    font-size: 0.78rem;
    font-weight: 700;
    box-shadow: 0 18px 35px -24px rgba(59, 130, 246, 0.9);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.gamify-top-trigger:focus-visible,
.gamify-top-trigger:hover {
    transform: translateY(-1px) scale(1.02);
    background: rgba(14, 165, 233, 0.24);
    box-shadow: 0 25px 40px -24px rgba(59, 130, 246, 0.95);
    outline: none;
}

.gamify-top-trigger:focus-visible {
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.65), 0 20px 35px -24px rgba(59, 130, 246, 0.9);
}

.gamify-top-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.55));
    animation: gamifyTriggerTwinkle 2.8s ease-in-out infinite;
}

.gamify-top-trigger-icon svg {
    width: 0.9rem;
    height: 0.9rem;
}

.gamify-top-trigger-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.1;
    min-width: 0;
}

.gamify-top-trigger-level {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(191, 219, 254, 0.85);
}

.gamify-top-trigger-xp {
    font-size: 0.8rem;
    color: #f8fafc;
}

@keyframes gamifyTriggerTwinkle {
    0%, 100% {
        transform: scale(1) rotate(-3deg);
        filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.35));
    }
    50% {
        transform: scale(1.12) rotate(3deg);
        filter: drop-shadow(0 0 14px rgba(250, 204, 21, 0.75));
    }
}


.gamify-inline {
    margin-top: 0.5rem;
    padding: 0.75rem 0.9rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(124, 58, 237, 0.18));
    border: 1px solid rgba(96, 165, 250, 0.35);
    box-shadow: 0 18px 35px -30px rgba(79, 70, 229, 0.55), inset 0 0 0 1px rgba(12, 74, 110, 0.35);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gamify-inline-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.85rem;
}

@media (min-width: 640px) {
    .gamify-inline-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.gamify-inline-overview {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.gamify-inline-level {
    display: flex;
    flex-direction: row;
    gap: 0.4rem;
    align-items: baseline;
}

.gamify-inline-level strong {
    font-size: 1.15rem;
    color: rgba(224, 242, 254, 0.98);
}

.gamify-inline-rank {
    --gamify-badge-color: #f97316;
    --gamify-badge-glow: #fb923c;
    --gamify-accent-color: #000000;
    font-size: 0.85rem;
    color: #e0f2fe;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2rem 0.8rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--gamify-badge-color), var(--gamify-accent-color));
    border: 1.5px solid rgba(165, 243, 252, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, black 85%, transparent 100%);
}

.gamify-inline-progress {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.gamify-inline-track {
    position: relative;
    width: 100%;
    height: 0.6rem;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.7);
    overflow: hidden;
}

.gamify-inline-bar {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #facc15, #f472b6, var(--accent-solid));
    transition: width 0.45s ease;
    box-shadow: 0 0 15px rgba(250, 204, 21, 0.45);
}

.gamify-inline-label {
    font-size: 0.72rem;
    color: rgba(226, 232, 240, 0.85);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gamify-inline-reminder {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: rgba(253, 224, 71, 0.95);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.gamify-modal-panel {
    position: relative;
    overflow: hidden;
}

.gamify-modal-panel::before {
    content: '';
    position: absolute;
    inset: -40% -10% auto;
    height: 65%;
    background: radial-gradient(circle at top left, rgba(14, 165, 233, 0.35), transparent 70%);
    filter: blur(0px);
    pointer-events: none;
}

.gamify-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.9));
}

.gamify-modal-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #f8fafc;
}

.gamify-modal-title h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

.gamify-modal-title p {
    margin: 0.25rem 0 0;
    font-size: 0.8rem;
    color: rgba(203, 213, 225, 0.85);
}

.gamify-modal-icon {
    font-size: 1.85rem;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(253, 224, 71, 0.55));
    animation: gamifyTriggerTwinkle 2.8s ease-in-out infinite;
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: rgba(226, 232, 240, 0.9);
    transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
    background: rgba(148, 163, 184, 0.2);
    transform: rotate(90deg) scale(1.05);
    outline: none;
}

.gamify-modal-content {
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.gamify-modal-hero {
    display: grid;
    gap: 1.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .gamify-modal-hero {
        grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
    }
}

.gamify-modal-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
}

.gamify-modal-avatar-frame {
    width: 5.5rem;
    height: 5.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(14, 165, 233, 0.85));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0f2fe;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 40px -30px rgba(14, 165, 233, 0.75);
}

.gamify-modal-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gamify-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gamify-modal-badge-color, #f97316), rgba(251, 191, 36, 0.95));
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 20px 40px -30px rgba(251, 191, 36, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.gamify-modal-level {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gamify-modal-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(165, 243, 252, 0.7);
}

.gamify-modal-level-row {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.gamify-modal-level-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1;
}

.gamify-modal-rank {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: rgba(191, 219, 254, 0.95);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.gamify-modal-rank-description {
    font-size: 0.85rem;
    color: rgba(203, 213, 225, 0.85);
    max-width: 32rem;
    margin: 0;
}

.gamify-modal-progress {
    position: relative;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(8, 47, 73, 0.55);
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(12, 74, 110, 0.35);
}

.gamify-modal-progress-bar {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-solid), #a855f7, #f97316);
    box-shadow: 0 0 18px rgba(129, 140, 248, 0.55);
    transition: width 0.4s ease;
}

.gamify-modal-xp {
    font-size: 0.8rem;
    color: rgba(186, 230, 253, 0.85);
    margin: 0;
}

.gamify-modal-stats {
    display: grid;
    gap: 0.75rem;
    align-content: start;
}

.gamify-modal-stat {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.75rem;
    border-radius: 14px;
    background: rgba(15, 118, 110, 0.18);
    border: 1px solid rgba(45, 212, 191, 0.2);
    color: rgba(20, 184, 166, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
}

.gamify-modal-stat-icon {
    font-size: 1.2rem;
}

.gamify-modal-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(153, 246, 228, 0.7);
    margin: 0;
}

.gamify-modal-stat-value {
    font-size: 0.95rem;
    color: rgba(236, 253, 245, 0.95);
    margin: 0;
}

.gamify-modal-nudge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.8rem;
    border-radius: 14px;
    background: rgba(244, 114, 182, 0.18);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: rgba(254, 215, 170, 0.95);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 20px 38px -28px rgba(251, 191, 36, 0.75);
}

.gamify-modal-nudge.hidden {
    display: none;
}

.gamify-modal-nudge-icon {
    font-size: 1.1rem;
}

.gamify-modal-body {
    display: grid;
    gap: 1.5rem;
}

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

.gamify-modal-section-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f8fafc;
}

.gamify-modal-reward {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.25);
    color: #fffbeb;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(251, 191, 36, 0.4);
    animation: xpPillPulse 2s ease-in-out infinite;
}

@keyframes xpPillPulse {
    0%, 100% {
        background: rgba(251, 191, 36, 0.25);
        box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.3);
        border-color: rgba(251, 191, 36, 0.4);
    }
    50% {
        background: rgba(251, 191, 36, 0.35);
        box-shadow: 0 0 12px 2px rgba(251, 191, 36, 0.4);
        border-color: rgba(251, 191, 36, 0.6);
    }
}

.gamify-modal-missions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.gamify-modal-mission {
    position: relative;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.12));
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: rgba(226, 232, 240, 0.95);
    box-shadow: 0 25px 35px -28px rgba(30, 64, 175, 0.65);
    overflow: hidden;
}

.gamify-modal-mission::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(244, 114, 182, 0.25), transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.gamify-modal-mission > strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.gamify-modal-mission > span {
    display: block;
    font-size: 0.75rem;
    color: rgba(186, 230, 253, 0.8);
}

.gamify-modal-mission-progress {
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    color: rgba(226, 232, 240, 0.75);
}

.gamify-modal-mission-progress-bar {
    flex: 1;
    height: 0.4rem;
    border-radius: 999px;
    background: rgba(8, 47, 73, 0.55);
    overflow: hidden;
    margin-right: 0.6rem;
    position: relative;
}

.gamify-modal-mission-progress-bar span {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent-solid), #f97316);
    transition: width 0.4s ease;
}

.gamify-modal-mission--complete {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(22, 163, 74, 0.15));
    border-color: rgba(74, 222, 128, 0.35);
    animation: missionCompleteGlow 0.8s ease-out, missionCompleteScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes missionCompleteGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7),
                    0 25px 35px -28px rgba(30, 64, 175, 0.65);
    }
    50% {
        box-shadow: 0 0 20px 10px rgba(74, 222, 128, 0.3),
                    0 25px 35px -28px rgba(30, 64, 175, 0.65);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0),
                    0 25px 35px -28px rgba(30, 64, 175, 0.65);
    }
}

@keyframes missionCompleteScale {
    0% {
        transform: scale(0.95);
        opacity: 0.9;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.gamify-modal-mission--loading {
    color: rgba(148, 163, 184, 0.6);
    text-align: center;
    font-style: italic;
}

.gamify-modal-ranks {
    padding: 1.15rem;
    border-radius: 18px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.2);
}

.gamify-modal-rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.gamify-modal-rank-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: rgba(226, 232, 240, 0.95);
    font-size: 0.85rem;
}

.gamify-modal-rank-list li strong {
    font-size: 0.95rem;
    color: #f8fafc;
}

.gamify-modal-rank-list li.is-current {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(14, 165, 233, 0.18));
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 18px 34px -26px rgba(14, 165, 233, 0.75);
    color: #e0f2fe;
}

.gamify-modal-rank-list li.is-current strong {
    color: #e0f2fe;
}

.gamify-modal-rank-list li.is-next {
    border-color: rgba(251, 191, 36, 0.35);
    color: rgba(254, 215, 170, 0.95);
}

.gamify-modal-rank-list li.is-next strong {
    color: rgba(255, 237, 213, 0.95);
}

@keyframes gamifyModalGlow {
    0% {
        box-shadow: 0 30px 40px -32px rgba(14, 165, 233, 0.65);
        transform: rotate(-2deg);
    }
    100% {
        box-shadow: 0 30px 40px -28px rgba(14, 165, 233, 0.9);
        transform: rotate(2deg);
    }
}

.gamify-inline.hidden,
.gamify-top-trigger.hidden {
    opacity: 0;
    display: none;
}

.gamify-hero {
    position: relative;
    padding: 1.75rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(14, 165, 233, 0.35);
    box-shadow: 0 28px 55px -28px rgba(14, 165, 233, 0.5), inset 0 0 0 1px rgba(8, 47, 73, 0.65);
    overflow: hidden;
    isolation: isolate;
}

.gamify-progress {
    position: relative;
    width: 100%;
    height: 0.9rem;
    background: rgba(15,23,42,0.75);
    border-radius: 9999px;
    border: 1px solid rgba(148,163,184,0.35);
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(15,23,42,0.8);
}

.gamify-progress-bar {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(250,204,21,0.9), rgba(249,115,22,0.95));
    box-shadow: 0 0 18px rgba(249,115,22,0.45);
    border-radius: inherit;
    transition: width 0.6s ease, background 0.6s ease;
}

.gamify-streak {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0.9rem;
    background: rgba(15,23,42,0.55);
    border: 1px solid rgba(94,234,212,0.2);
    box-shadow: inset 0 0 0 1px rgba(148,163,184,0.15);
    backdrop-filter: blur(6px);
}

.gamify-streak-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #facc15;
    text-shadow: 0 0 12px rgba(250,204,21,0.6);
}

.gamify-nudge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.85rem;
    background: rgba(59,130,246,0.25);
    border: 1px solid rgba(59,130,246,0.4);
    color: #e0f2fe;
    box-shadow: 0 0 16px rgba(14,165,233,0.4);
    animation: gamifyGlow 3s ease-in-out infinite;
}

.gamify-nudge-icon {
    font-size: 1.35rem;
}

.gamify-rank-badge {
    --gamify-badge-color: #f97316;
    --gamify-badge-glow: #fb923c;
    --gamify-accent-color: #000000;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--gamify-badge-color), var(--gamify-accent-color));
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2), 0 0 40px rgba(255,255,255,0.25), 0 0 50px var(--gamify-badge-glow), inset 0 1px 0 rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, black 85%, transparent 100%);
}

.gamify-rank-badge,
.gamify-inline-rank {
    isolation: isolate;
}

.gamify-rank-badge::before,
.gamify-rank-badge::after,
.gamify-inline-rank::before,
.gamify-inline-rank::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: screen;
    transition: opacity 0.3s ease;
}

.gamify-rank-badge[data-animation],
.gamify-inline-rank[data-animation] {
    will-change: filter;
}

.gamify-rank-badge[data-animation="none"]::after,
.gamify-inline-rank[data-animation="none"]::after {
    opacity: 0 !important;
}

.gamify-rank-badge[data-animation="pulse"]::after,
.gamify-inline-rank[data-animation="pulse"]::after {
    opacity: 0.55;
    background: radial-gradient(circle, rgba(255,255,255,0.85) 0%, transparent 65%);
    animation: gamifyBadgePulse 2.6s ease-out infinite;
}

.gamify-rank-badge[data-animation="shimmer"]::after,
.gamify-inline-rank[data-animation="shimmer"]::after {
    opacity: 0.6;
    width: 50%;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.9) 50%, rgba(255,255,255,0) 100%);
    animation: gamifyBadgeShimmer 2.2s ease-in-out infinite;
}

.gamify-rank-badge[data-animation="flare"]::after,
.gamify-inline-rank[data-animation="flare"]::after {
    opacity: 0.5;
    width: 45%;
    inset: auto;
    top: -30%;
    bottom: -30%;
    left: -40%;
    right: auto;
    background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 45%, rgba(255,255,255,0) 100%);
    animation: gamifyBadgeFlare 2.8s ease-in-out infinite;
}

.gamify-rank-badge[data-animation="comet"]::after,
.gamify-inline-rank[data-animation="comet"]::after {
    opacity: 0.9;
    width: 18px;
    height: 18px;
    inset: auto;
    top: 50%;
    left: -20px;
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.35) 60%, transparent 100%);
    border-radius: 999px;
    transform: translateY(-50%);
    animation: gamifyBadgeComet 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.gamify-rank-badge[data-animation="burst"]::before,
.gamify-inline-rank[data-animation="burst"]::before {
    opacity: 0.35;
    border: 2px solid rgba(255,255,255,0.8);
    inset: 10%;
    border-radius: inherit;
    animation: gamifyBadgeBurst 2.4s ease-out infinite;
}

.gamify-rank-badge[data-animation="burst"]::after,
.gamify-inline-rank[data-animation="burst"]::after {
    opacity: 0.45;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 65%);
    animation: gamifyBadgePulse 2.4s ease-out infinite;
}

.gamify-rank-badge[data-animation="glow"]::after,
.gamify-inline-rank[data-animation="glow"]::after {
    opacity: 0.5;
    background: radial-gradient(circle, rgba(255,255,255,0.95) 0%, transparent 70%);
    animation: gamifyBadgeGlow 2s ease-in-out infinite;
}

.gamify-rank-badge[data-animation="twist"]::after,
.gamify-inline-rank[data-animation="twist"]::after {
    opacity: 0.6;
    background: linear-gradient(45deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 70%);
    animation: gamifyBadgeTwist 2.4s ease-in-out infinite;
}

.gamify-rank-badge[data-animation="bounce"]::after,
.gamify-inline-rank[data-animation="bounce"]::after {
    opacity: 0.7;
    background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 60%);
    animation: gamifyBadgeBounce 1.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.gamify-rank-badge[data-animation="wave"]::before,
.gamify-inline-rank[data-animation="wave"]::before {
    opacity: 0.6;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    animation: gamifyBadgeWave 2.8s ease-in-out infinite;
}

.gamify-rank-badge[data-animation="orbit"]::after,
.gamify-inline-rank[data-animation="orbit"]::after {
    opacity: 0.8;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(255,255,255,0.5) 100%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    inset: auto;
    animation: gamifyBadgeOrbit 3s linear infinite;
}

.gamify-mission-card {
    border-radius: 1.25rem;
    border: 1px solid rgba(148,163,184,0.2);
    background: linear-gradient(160deg, rgba(15,23,42,0.95), rgba(8,47,73,0.85));
    box-shadow: 0 20px 40px -30px rgba(8,145,178,0.6);
}

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

.gamify-mission {
    position: relative;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(15,23,42,0.7);
    border: 1px solid rgba(148,163,184,0.2);
    box-shadow: inset 0 0 0 1px rgba(30,41,59,0.4);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gamify-mission:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px -22px rgba(59,130,246,0.6);
}

.gamify-mission.complete {
    border-color: rgba(250,204,21,0.7);
    box-shadow: 0 0 22px rgba(250,204,21,0.35);
    animation: missionCompleteYellow 0.8s ease-out;
}

.gamify-mission.complete::after {
    content: '✔';
    position: absolute;
    top: 0.85rem;
    right: 0.9rem;
    color: #facc15;
    font-size: 1rem;
    text-shadow: 0 0 12px rgba(250,204,21,0.7);
    animation: checkmarkPulse 0.6s ease-out;
    display: none;
}

@keyframes missionCompleteYellow {
    0%, 100% {
        box-shadow: 0 0 12px rgba(250,204,21,0.3),
                    inset 0 0 0 1px rgba(30,41,59,0.4);
    }
}

@keyframes missionCompleteRise {
    0% {
        transform: scale(0.95) translateY(4px);
        opacity: 0.9;
    }
    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes checkmarkPulse {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.gamify-mission-title {
    font-weight: 600;
    color: #f8fafc;
}

.gamify-mission-sub {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: rgba(226,232,240,0.72);
}

.gamify-mission-progress {
    position: relative;
    height: 0.55rem;
    border-radius: 9999px;
    background: rgba(15,23,42,0.75);
    border: 1px solid rgba(148,163,184,0.25);
    overflow: hidden;
}

.gamify-mission-progress-bar {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(248,113,113,0.95), rgba(250,204,21,0.95));
    transition: width 0.45s ease;
    box-shadow: 0 0 16px rgba(250,204,21,0.35);
}

.gamify-mission-progress-text {
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: rgba(226,232,240,0.65);
}

.gamify-mission-reward {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    border: 1px solid rgba(250,204,21,0.5);
    color: #facc15;
    background: rgba(250,204,21,0.12);
    white-space: nowrap;
    min-width: 3.5rem;
    text-align: center;
    flex-shrink: 0;
}

.gamify-mission-reward.completed {
    background: rgba(34,197,94,0.15);
    border-color: rgba(74,222,128,0.5);
    color: #86efac;
    animation: xpRewardPulse 2s ease-in-out infinite;
}

@keyframes xpRewardPulse {
    0%, 100% {
        background: rgba(34,197,94,0.15);
        box-shadow: 0 0 0 0 rgba(74,222,128,0.4);
        border-color: rgba(74,222,128,0.5);
        transform: scale(1);
    }
    50% {
        background: rgba(34,197,94,0.25);
        box-shadow: 0 0 10px 2px rgba(74,222,128,0.3);
        border-color: rgba(74,222,128,0.8);
        transform: scale(1.05);
    }
}

.gamify-mission.empty {
    text-align: center;
    color: rgba(226,232,240,0.6);
    font-style: italic;
}

.gamify-reward-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background: rgba(56,189,248,0.25);
    border: 1px solid rgba(56,189,248,0.45);
    color: #bae6fd;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gamify-mission.skeleton {
    color: rgba(148,163,184,0.6);
    background: linear-gradient(90deg, rgba(30,41,59,0.5) 25%, rgba(51,65,85,0.95) 50%, rgba(30,41,59,0.5) 75%);
    background-size: 200% 100%;
    animation: gamifyShimmer 1.25s linear infinite;
}

@keyframes gamifyGlow {
    0%, 100% {
        box-shadow: 0 0 16px rgba(56,189,248,0.32);
    }
    50% {
        box-shadow: 0 0 24px rgba(14,165,233,0.45);
    }
}

@keyframes gamifyShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

@keyframes gamifyAurora {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(0deg);
    }
    50% {
        transform: translate3d(-12%, 5%, 0) rotate(8deg);
    }
}

@keyframes gamifyBadgePulse {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
        filter: brightness(1.2);
    }
    40% {
        opacity: 0.6;
        filter: brightness(1);
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
        filter: brightness(0.8);
    }
}

@keyframes gamifyBadgeShimmer {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes gamifyBadgeGlow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 8px rgba(255,255,255,0.2));
        transform: scale(1);
    }
    25% {
        filter: brightness(1.4) drop-shadow(0 0 20px rgba(255,255,255,0.9)) drop-shadow(0 0 40px rgba(255,255,255,0.4));
        transform: scale(1.02);
    }
    50% {
        filter: brightness(1.6) drop-shadow(0 0 30px rgba(255,255,255,1)) drop-shadow(0 0 60px rgba(255,255,255,0.5));
        transform: scale(1.05);
    }
    75% {
        filter: brightness(1.4) drop-shadow(0 0 20px rgba(255,255,255,0.9)) drop-shadow(0 0 40px rgba(255,255,255,0.4));
        transform: scale(1.02);
    }
}

@keyframes gamifyBadgeTwist {
    0% {
        transform: rotate(0deg) skewY(-5deg);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) skewY(-5deg);
        opacity: 0;
    }
}

@keyframes gamifyBadgeBounce {
    0%, 100% {
        transform: scale(0.7) translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2) translateY(-8px);
        opacity: 1;
    }
}

@keyframes gamifyBadgeWave {
    0%, 100% {
        transform: translateX(-150%) skewX(-20deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateX(0) skewX(0deg);
        opacity: 0.9;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(150%) skewX(20deg);
        opacity: 0;
    }
}

@keyframes gamifyBadgeOrbit {
    0% {
        transform: rotate(0deg) translateX(26px) scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
    }
    25% {
        transform: rotate(90deg) translateX(26px) scale(0.95);
        opacity: 0.8;
        filter: drop-shadow(0 0 3px rgba(255,255,255,0.4));
    }
    50% {
        transform: rotate(180deg) translateX(26px) scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
    }
    75% {
        transform: rotate(270deg) translateX(26px) scale(0.95);
        opacity: 0.8;
        filter: drop-shadow(0 0 3px rgba(255,255,255,0.4));
    }
    100% {
        transform: rotate(360deg) translateX(26px) scale(1.1);
        opacity: 1;
        filter: drop-shadow(0 0 6px rgba(255,255,255,0.8));
    }
}

@keyframes gamifyBadgeFlare {
    0% {
        transform: translateX(-100%) skewX(-20deg);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateX(300%) skewX(-20deg);
        opacity: 0;
    }
}

@keyframes gamifyBadgeComet {
    0% {
        transform: translate(-80px, -50%) scale(0.3);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate(-50px, -50%) scale(1);
    }
    90% {
        opacity: 1;
        transform: translate(200px, -50%) scale(1);
    }
    100% {
        transform: translate(250px, -50%) scale(0.5);
        opacity: 0;
    }
}

@keyframes gamifyBadgeBurst {
    0% {
        transform: scale(0.5);
        opacity: 0.6;
        filter: brightness(1.4) saturate(1.3);
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: scale(2);
        opacity: 0;
        filter: brightness(0.8) saturate(0.8);
    }
}

/* Gamification Hero Mobile Layout - Keep desktop layout, scale down elements */
@media (max-width: 767px) {
    .gamify-hero {
        padding: 1rem;
    }

    /* Override Tailwind flex-col to stay as row on mobile (main container with level + XP) */
    .gamify-hero > div:first-child {
        flex-direction: row !important;
        align-items: flex-end !important;
        justify-content: space-between !important;
        gap: 0.5rem !important;
    }

    /* Left side (level section) - constrain width */
    .gamify-hero > div:first-child > .flex-1 {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }

    /* "Level" label */
    .gamify-hero > div:first-child > .flex-1 > p:first-child {
        font-size: 0.55rem;
        letter-spacing: 0.12em;
    }

    /* Level number + badge row - keep in row, scale down */
    .gamify-hero > div:first-child > .flex-1 > div {
        gap: 0.4rem !important;
        flex-wrap: nowrap !important;
    }

    /* Scale down the level number */
    .gamify-hero #gamifyLevel {
        font-size: 1.75rem;
    }

    /* Scale down the rank badge */
    .gamify-hero .gamify-rank-badge {
        font-size: 0.5rem;
        padding: 0.25rem 0.45rem;
        letter-spacing: 0.06em;
    }

    /* Scale down description text */
    .gamify-hero #gamifyRankDescription {
        font-size: 0.65rem;
        margin-top: 0.35rem;
        max-width: none;
    }

    /* Right side (XP section) - constrain and shrink */
    .gamify-hero > div:first-child > div:last-child {
        flex-shrink: 0;
        text-align: right;
    }

    /* "XP until next level" label */
    .gamify-hero > div:first-child > div:last-child > p:first-child {
        font-size: 0.5rem;
        letter-spacing: 0.08em;
    }

    .gamify-hero #gamifyXpRemaining {
        font-size: 0.95rem;
    }

    .gamify-hero #gamifyXpTotals {
        font-size: 0.55rem;
    }

    /* Scale down progress bar */
    .gamify-hero .gamify-progress {
        margin-top: 0.6rem;
        height: 0.5rem;
    }

    /* Streak badges row - allow natural wrapping, just scale down */
    .gamify-hero > div:nth-child(3) {
        gap: 0.4rem !important;
        margin-top: 0.6rem !important;
        font-size: 0.6rem !important;
    }

    .gamify-hero .gamify-streak {
        padding: 0.3rem 0.45rem;
        border-radius: 0.5rem;
        gap: 0.2rem;
    }

    .gamify-hero .gamify-streak-value {
        font-size: 0.8rem;
    }

    .gamify-hero .gamify-nudge {
        padding: 0.25rem 0.4rem;
        font-size: 0.55rem;
    }

    .gamify-hero .gamify-nudge-icon {
        font-size: 0.8rem;
    }

    /* Scale down streak reminder */
    .gamify-hero #gamifyStreakReminder {
        font-size: 0.65rem;
        margin-top: 0.5rem;
    }

    /* Scale down rewards section */
    .gamify-hero #gamifyNextRankRewards {
        margin-top: 0.6rem;
        padding-top: 0.6rem;
    }

    .gamify-hero #gamifyNextRankRewards > p:first-child {
        font-size: 0.5rem;
        margin-bottom: 0.4rem;
    }

    .gamify-hero #gamifyRewardsList {
        font-size: 0.65rem;
    }

    .gamify-hero #gamifyRewardsList > div {
        gap: 0.25rem;
    }
}

/* Contact list cards */
.contact-card {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.85);
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.55);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(14, 165, 233, 0.4), rgba(244, 114, 182, 0.25));
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: -1;
}

.contact-card:hover {
    border-color: rgba(6, 182, 212, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 25px 55px rgba(6, 182, 212, 0.18);
}

.contact-card:hover::after {
    opacity: 1;
}

.contact-card-main {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

@media (min-width: 1024px) {
    .contact-card-main {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.contact-card-primary {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.contact-card-checkbox {
    display: inline-flex;
    width: 2rem;
    justify-content: center;
    align-items: flex-start;
    cursor: pointer;
}

.contact-card-checkbox input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.contact-card-checkbox-box {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.45rem;
    border: 1.5px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.6);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.contact-card-checkbox input:focus + .contact-card-checkbox-box {
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.4);
    border-color: rgba(14, 165, 233, 0.9);
}

.contact-card-checkbox input:checked + .contact-card-checkbox-box {
    background: var(--accent-gradient);
    border-color: transparent;
}

.contact-card-checkbox input:checked + .contact-card-checkbox-box::after {
    content: '';
    width: 0.45rem;
    height: 0.25rem;
    border: 2px solid white;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}

.contact-card-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.3);
}

.contact-card-content {
    flex: 1;
    min-width: 0;
}

.contact-card-name-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.contact-card-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #e0f2fe;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-card-name:hover {
    color: #67e8f9;
}

.contact-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.contact-card-detail {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: #cbd5f5;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

.contact-card-detail-muted {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding-left: 0;
}

.contact-card-icon {
    width: 16px;
    height: 16px;
    color: currentColor;
}

.contact-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.contact-card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    border: 1px solid rgba(14, 165, 233, 0.25);
    color: #bae6fd;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}

.chip-success {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.chip-danger {
    background: rgba(248, 113, 113, 0.15);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecdd3;
}

.contact-chip-ghost {
    background: rgba(148, 163, 184, 0.08);
    color: #cbd5f5;
}

.contact-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 220px;
}

@media (min-width: 1024px) {
    .contact-card-meta {
        align-items: flex-end;
        text-align: right;
    }

    .contact-card-timestamps {
        align-items: flex-end;
    }
}

.contact-card-meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(226, 232, 240, 0.7);
    margin-bottom: 0.2rem;
}

.contact-card-timestamps {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.contact-card-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(6, 182, 212, 0.5);
    color: #5eead4;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-card-view:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.8);
    color: #a7f3d0;
}

/* Global Admin Settings Navigation - Amber styling */
#globalAdminSettings a,
#globalAdminSettings .global-admin-nav-item,
html #globalAdminSettings a.global-admin-nav-item {
    background-color: rgba(245, 158, 11, 0.2) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #fcd34d !important;
}

#globalAdminSettings a:hover,
#globalAdminSettings .global-admin-nav-item:hover,
html #globalAdminSettings a.global-admin-nav-item:hover {
    background-color: rgba(245, 158, 11, 0.3) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
}

/* Settings Navigation - Use class-based selector for ALL settings nav items */
#settingsNavGrid .settings-nav-item {
    background: rgba(0, 0, 0, 0.8) !important;
    border: 1px solid rgba(148, 163, 184, 0.15) !important;
    color: var(--text-primary) !important;
}

#settingsNavGrid .settings-nav-item:hover {
    background: rgba(20, 20, 20, 0.8) !important;
    border-color: rgba(148, 163, 184, 0.25) !important;
}

#settingsNavGrid .settings-nav-item[class*="ring"] {
    background: rgba(20, 20, 20, 0.9) !important;
    border-color: rgba(148, 163, 184, 0.3) !important;
}

/* Search dropdowns - Tasks page and similar */
#assigneeDropdown,
#contactDropdown {
    background: rgba(15, 23, 42, 0.98) !important;
    border: 1px solid rgba(148, 163, 184, 0.2) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
    z-index: 50 !important;
}

#assigneeDropdown > div,
#contactDropdown > div {
    border-color: rgba(148, 163, 184, 0.1) !important;
}

#assigneeDropdown > div:hover,
#contactDropdown > div:hover {
    background: rgba(51, 65, 85, 0.6) !important;
}

/* Quill Editor - Base Dark Theme Styling */
.ql-container {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(148, 163, 184, 0.15) !important;
    color: var(--text-primary) !important;
}

.ql-editor {
    color: var(--text-primary) !important;
}

.ql-editor.ql-blank::before {
    color: var(--text-muted) !important;
    font-style: italic;
}

.ql-toolbar {
    background: rgba(30, 41, 59, 0.6) !important;
    border-color: rgba(148, 163, 184, 0.15) !important;
}

.ql-toolbar .ql-stroke {
    stroke: var(--text-secondary) !important;
}

.ql-toolbar .ql-fill {
    fill: var(--text-secondary) !important;
}

.ql-toolbar .ql-picker {
    color: var(--text-secondary) !important;
}

.ql-toolbar .ql-picker-options {
    background: #0f172a !important;
    border-color: rgba(148, 163, 184, 0.2) !important;
}

.ql-toolbar .ql-picker-options .ql-picker-item {
    color: var(--text-primary) !important;
}

.ql-toolbar button:hover .ql-stroke,
.ql-toolbar button.ql-active .ql-stroke {
    stroke: var(--accent-solid) !important;
}

.ql-toolbar button:hover .ql-fill,
.ql-toolbar button.ql-active .ql-fill {
    fill: var(--accent-solid) !important;
}

.ql-toolbar .ql-picker-label:hover,
.ql-toolbar .ql-picker-label.ql-active {
    color: var(--accent-solid) !important;
}

.ql-snow.ql-toolbar {
    border-color: rgba(148, 163, 184, 0.15) !important;
}

.ql-snow .ql-picker-label {
    color: var(--text-secondary) !important;
}

.ql-snow .ql-picker-label:hover {
    color: var(--accent-solid) !important;
}

/* ============================================================================
   THEME-AWARE CHECKBOXES AND RADIO BUTTONS
   Override Tailwind's default purple color with theme accent colors
   ============================================================================ */

/* Base checkbox/radio styling - force theme colors */
input[type="checkbox"],
input[type="radio"] {
    /* Override purple focus ring */
    --tw-ring-color: color-mix(in srgb, var(--accent-solid, #22d3ee) 50%, transparent) !important;
    accent-color: var(--accent-solid, #22d3ee) !important;
}

/* Checkbox styling */
input[type="checkbox"] {
    border-radius: 0.25rem;
    border: 1.5px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.6);
    transition: all 0.15s ease;
}

input[type="checkbox"]:checked {
    background: var(--accent-gradient, linear-gradient(135deg, #22d3ee, #3b82f6)) !important;
    border-color: transparent !important;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e") !important;
    background-size: 100% 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-solid, #22d3ee) 40%, transparent) !important;
    border-color: var(--accent-solid, #22d3ee) !important;
}

/* Radio button styling */
input[type="radio"] {
    border-radius: 50%;
    border: 1.5px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.6);
    transition: all 0.15s ease;
}

input[type="radio"]:checked {
    background: var(--accent-gradient, linear-gradient(135deg, #22d3ee, #3b82f6)) !important;
    border-color: transparent !important;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e") !important;
    background-size: 100% 100% !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-solid, #22d3ee) 40%, transparent) !important;
    border-color: var(--accent-solid, #22d3ee) !important;
}

/* Override any hardcoded Tailwind color classes on checkboxes/radios */
input[type="checkbox"].text-blue-600,
input[type="checkbox"].text-blue-500,
input[type="checkbox"].text-purple-600,
input[type="checkbox"].text-purple-500,
input[type="checkbox"].text-indigo-600,
input[type="checkbox"].text-indigo-500,
input[type="checkbox"].text-red-600,
input[type="checkbox"].text-red-500,
input[type="checkbox"].text-yellow-600,
input[type="checkbox"].text-yellow-500,
input[type="checkbox"].text-orange-500,
input[type="checkbox"].text-cyan-500,
input[type="radio"].text-blue-600,
input[type="radio"].text-blue-500,
input[type="radio"].text-purple-600,
input[type="radio"].text-purple-500,
input[type="radio"].text-indigo-600,
input[type="radio"].text-indigo-500,
input[type="radio"].text-red-600,
input[type="radio"].text-red-500,
input[type="radio"].text-yellow-600,
input[type="radio"].text-yellow-500,
input[type="radio"].text-orange-500,
input[type="radio"].text-cyan-500 {
    accent-color: var(--accent-solid, #22d3ee) !important;
}

input[type="checkbox"].text-blue-600:checked,
input[type="checkbox"].text-blue-500:checked,
input[type="checkbox"].text-purple-600:checked,
input[type="checkbox"].text-purple-500:checked,
input[type="checkbox"].text-indigo-600:checked,
input[type="checkbox"].text-indigo-500:checked,
input[type="checkbox"].text-red-600:checked,
input[type="checkbox"].text-red-500:checked,
input[type="checkbox"].text-yellow-600:checked,
input[type="checkbox"].text-yellow-500:checked,
input[type="checkbox"].text-orange-500:checked,
input[type="checkbox"].text-cyan-500:checked,
input[type="radio"].text-blue-600:checked,
input[type="radio"].text-blue-500:checked,
input[type="radio"].text-purple-600:checked,
input[type="radio"].text-purple-500:checked,
input[type="radio"].text-indigo-600:checked,
input[type="radio"].text-indigo-500:checked,
input[type="radio"].text-red-600:checked,
input[type="radio"].text-red-500:checked,
input[type="radio"].text-yellow-600:checked,
input[type="radio"].text-yellow-500:checked,
input[type="radio"].text-orange-500:checked,
input[type="radio"].text-cyan-500:checked {
    background: var(--accent-gradient, linear-gradient(135deg, #22d3ee, #3b82f6)) !important;
    border-color: transparent !important;
}

/* Override focus ring colors */
input[type="checkbox"].focus\:ring-blue-500:focus,
input[type="checkbox"].focus\:ring-purple-500:focus,
input[type="checkbox"].focus\:ring-indigo-500:focus,
input[type="checkbox"].focus\:ring-red-500:focus,
input[type="checkbox"].focus\:ring-yellow-500:focus,
input[type="radio"].focus\:ring-blue-500:focus,
input[type="radio"].focus\:ring-purple-500:focus,
input[type="radio"].focus\:ring-indigo-500:focus,
input[type="radio"].focus\:ring-red-500:focus,
input[type="radio"].focus\:ring-yellow-500:focus {
    --tw-ring-color: color-mix(in srgb, var(--accent-solid, #22d3ee) 50%, transparent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-solid, #22d3ee) 40%, transparent) !important;
}

/* ============================================
   Select/Dropdown Styling
   Fix text visibility on both light and dark themes
   ============================================ */
select {
    color: var(--text-primary) !important;
    background-color: var(--bg-elevated) !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    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='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem !important;
}

select option {
    color: var(--text-primary, #0f172a) !important;
    background-color: var(--bg-elevated, #ffffff) !important;
    padding: 0.5rem;
}

/* Ensure option text is dark on light backgrounds in dropdown */
select option:checked {
    background-color: var(--accent-bg, rgba(14, 165, 233, 0.15)) !important;
}

/* ============================================
   Currency Input Wrapper Styling
   Properly position dollar sign with adequate padding
   ============================================ */
.currency-input-wrapper {
    position: relative;
}

.currency-input-wrapper .currency-symbol {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-weight: 500;
    z-index: 1;
}

.currency-input-wrapper input {
    padding-left: 2rem !important;
}

/* ============================================
   Primary Button Shine Animation
   ============================================ */
@keyframes btn-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.btn-shine {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.3s ease-out, box-shadow 0.3s ease-out !important;
    will-change: transform;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: btn-shine 3s ease-in-out infinite;
    pointer-events: none;
}

.btn-shine:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 12px 35px -8px rgba(0,0,0,0.4) !important;
}

.btn-shine:active {
    transform: translateY(-2px) !important;
}


/* ============================================
   Embedded Mode (for iframe embedding)
   ============================================ */
.app-shell.embedded-mode {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
}

.embedded-mode .main-content.embedded-fullwidth {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.embedded-mode .page-scroll.embedded-no-topbar {
    padding-top: 1rem !important;
    margin-top: 0 !important;
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* Hide any body scrollbar in embedded mode */
body:has(.embedded-mode) {
    overflow: hidden !important;
}


/* ============================================
   Toggle Switches - Universal Fix
   Make toggle tracks visible in both ON/OFF states
   ============================================ */

/* Toggle switch track - OFF state (visible dark gray) */
label.cursor-pointer > input.sr-only.peer + div[class*="rounded-full"],
label > input.sr-only.peer + div.rounded-full,
div.w-11.h-6.rounded-full.peer,
div[class*="w-11"][class*="h-6"][class*="rounded-full"] {
    background: rgba(55, 65, 81, 0.95) !important; /* Visible gray with contrast */
    border: 1px solid rgba(75, 85, 99, 0.8) !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* Toggle switch track - ON state (accent color) */
label.cursor-pointer > input.sr-only.peer:checked + div[class*="rounded-full"],
label > input.sr-only.peer:checked + div.rounded-full,
input.sr-only.peer:checked ~ div.w-11.h-6.rounded-full.peer,
input.sr-only.peer:checked + div.w-11.h-6.rounded-full,
input.sr-only.peer:checked + div[class*="w-11"][class*="h-6"][class*="rounded-full"] {
    background: var(--accent-solid, #06b6d4) !important;
    border-color: var(--accent-solid, #06b6d4) !important;
    box-shadow: 0 0 8px rgba(6, 182, 212, 0.4), inset 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Toggle switch knob (the ::after pseudo-element) - always white with shadow */
label.cursor-pointer > input.sr-only.peer + div[class*="rounded-full"]::after,
label > input.sr-only.peer + div.rounded-full::after,
div.w-11.h-6.rounded-full.peer::after,
div[class*="w-11"][class*="h-6"][class*="rounded-full"]::after {
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
}
