/* ==========================================================================
   DESIGN SYSTEM & MODERN STYLING FOR IKPRINTHUB NEW DASHBOARD
   ========================================================================== */

:root {
    --bg-body: #eef2f6;
    --bg-card: rgba(255, 255, 255, 0.45);
    --bg-header: rgba(255, 255, 255, 0.55);
    --border-card: rgba(255, 255, 255, 0.45);
    --text-main: #0f172a;
    --text-sub: #334155;
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 50px -10px rgba(0, 0, 0, 0.08);
    --primary-blue: #3b82f6;
    --primary-purple: #8b5cf6;
    
    /* Category Gradients */
    --grad-pan: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --grad-ai: linear-gradient(135deg, #7c3aed, #a855f7);
    --grad-pdf: linear-gradient(135deg, #0ea5e9, #06b6d4);
    --grad-printing: linear-gradient(135deg, #f87171, #ef4444);
    --grad-photo: linear-gradient(135deg, #4f46e5, #3b82f6);
    --grad-banking: linear-gradient(135deg, #059669, #10b981);
    --grad-docs: linear-gradient(135deg, #d97706, #fbbf24);
    --grad-fav: linear-gradient(135deg, #fbbf24, #f59e0b);
}

[data-theme="dark"] {
    --bg-body: #0b0f19;
    --bg-card: rgba(15, 23, 42, 0.45);
    --bg-header: rgba(15, 23, 42, 0.55);
    --border-card: rgba(255, 255, 255, 0.05);
    --text-main: #f8fafc;
    --text-sub: #cbd5e1;
    --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 50px -10px rgba(0, 0, 0, 0.35);
    
    /* Category Gradients (Slightly Darker/Muted) */
    --grad-pan: linear-gradient(135deg, #2563eb, #1e40af);
    --grad-ai: linear-gradient(135deg, #6d28d9, #8b5cf6);
    --grad-pdf: linear-gradient(135deg, #0284c7, #0ea5e9);
    --grad-printing: linear-gradient(135deg, #dc2626, #ea580c);
    --grad-photo: linear-gradient(135deg, #4338ca, #3b82f6);
    --grad-banking: linear-gradient(135deg, #047857, #059669);
    --grad-docs: linear-gradient(135deg, #b45309, #d97706);
    --grad-fav: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Instant CSS state toggling to prevent flash of guest state (FOUC) */
.user-logged-in #guest-nav,
.user-logged-in #hero-guest-actions,
.user-logged-in .header-search {
    display: none !important;
}
.user-logged-in #user-nav,
.user-logged-in #hero-user-actions {
    display: flex !important;
}
.user-logged-in #banner-search-container {
    display: flex !important;
}

/* Prevent transition lag during theme switches */
.disable-transitions,
.disable-transitions * {
    transition: none !important;
}

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

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* --- DYNAMIC GRADIENT CANVAS --- */
.bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -100;
    overflow: hidden;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    animation: drift 25s infinite alternate ease-in-out;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

[data-theme="dark"] .bg-blob {
    opacity: 0.3;
    filter: blur(100px);
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: rgba(244, 63, 94, 0.22); /* rose */
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(59, 130, 246, 0.18); /* blue */
    bottom: 10%;
    left: -150px;
    animation-delay: -5s;
}

.blob-3 {
    width: 550px;
    height: 550px;
    background: rgba(168, 85, 247, 0.18); /* purple */
    bottom: -150px;
    right: 10%;
    animation-delay: -10s;
}

.blob-4 {
    width: 450px;
    height: 450px;
    background: rgba(253, 224, 71, 0.12); /* yellow */
    top: 30%;
    left: 30%;
    animation-delay: -15s;
}

@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(50px, -70px, 0) scale(1.08); }
    100% { transform: translate3d(-30px, 40px, 0) scale(0.92); }
}

/* --- GLASS CONTAINER --- */
.glass-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- MODERN HEADER --- */
header {
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-card);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: background 0.3s ease;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-main) 30%, #4b5563 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="dark"] .logo-text {
    background: linear-gradient(135deg, #ffffff 40%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Uiverse.io Scoped Search UI by vinodjangid07 --- */
.InputContainer {
    width: 100%;
    max-width: 480px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, rgb(227, 213, 255), rgb(255, 231, 231));
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.3s ease;
}

[data-theme="dark"] .InputContainer {
    background: linear-gradient(to bottom, rgb(139, 92, 246), rgb(59, 130, 246));
}

.InputContainer:focus-within {
    background: linear-gradient(to bottom, rgb(255, 81, 0), rgb(139, 92, 246));
    box-shadow: 0 0 15px rgba(255, 81, 0, 0.2);
}

.InputContainer .input {
    width: calc(100% - 6px);
    height: calc(100% - 6px);
    border: none;
    outline: none;
    caret-color: rgb(255, 81, 0);
    background-color: #ffffff;
    border-radius: 30px;
    padding: 0 16px 0 42px;
    letter-spacing: 0.8px;
    color: rgb(19, 19, 19);
    font-size: 13.4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .InputContainer .input {
    background-color: rgb(15, 23, 42);
    color: #f8fafc;
}

.InputContainer .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-sub);
    font-size: 14px;
    pointer-events: none;
    z-index: 2;
}

.header-search {
    flex: 1;
    max-width: 480px;
    margin: 0 40px;
    position: relative;
}

.header-search-input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--border-card);
    border-radius: 9999px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    transition: all 0.3s ease;
}

[data-theme="dark"] .header-search-input {
    background: rgba(15, 23, 42, 0.35);
}

.header-search-input:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .header-search-input:focus {
    background: rgba(15, 23, 42, 0.95);
}

.header-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-sub);
    font-size: 14px;
    pointer-events: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.header-icon-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-blue);
}

[data-theme="dark"] .header-icon-btn:hover {
    background: rgba(15, 23, 42, 0.9);
}

.header-icon-btn .badge-dot,
.header-icon-btn #notif-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: #ef4444;
    border-radius: 10px;
    border: 1.5px solid var(--bg-body);
    font-family: inherit;
    font-size: 9px;
    font-weight: 850;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    5% { transform: rotate(-10deg); }
    10% { transform: rotate(12deg); }
    15% { transform: rotate(-10deg); }
    20% { transform: rotate(8deg); }
    25% { transform: rotate(-6deg); }
    30% { transform: rotate(4deg); }
    35% { transform: rotate(0deg); }
}

.header-icon-btn.has-unread i {
    animation: ring 2.5s ease infinite;
    transform-origin: 50% 0%;
}

/* --- BANNER CARD --- */
.hero-banner {
    background: linear-gradient(-45deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.2), rgba(16, 185, 129, 0.2)) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 15s ease infinite !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px;
    padding: 24px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg) !important;
}

[data-theme="dark"] .hero-banner {
    background: linear-gradient(-45deg, rgba(30, 41, 59, 0.4), rgba(109, 40, 217, 0.3), rgba(236, 72, 153, 0.25), rgba(15, 23, 42, 0.5)) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.banner-left {
    max-width: 60%;
    z-index: 10;
}

.banner-title {
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 6px;
    color: var(--text-main);
}

.banner-sub {
    font-size: 13.5px;
    color: var(--text-sub);
    margin-bottom: 16px;
    font-weight: 500;
}

.banner-search-wrapper {
    position: relative;
    max-width: 650px;
    width: 100%;
    margin-bottom: 12px;
}

.banner-search-input {
    width: 100%;
    padding: 10px 16px 10px 42px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-card);
    border-radius: 9999px;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-main);
    outline: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

[data-theme="dark"] .banner-search-input {
    background: rgba(15, 23, 42, 0.7);
}

.banner-search-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15);
}

.banner-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-sub);
    font-size: 14px;
}

.banner-actions {
    display: flex;
    gap: 12px;
}

.banner-btn {
    padding: 10px 24px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.banner-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.banner-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
}

.banner-btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.banner-btn-secondary:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .banner-btn-secondary:hover {
    background: rgba(15, 23, 42, 0.8);
}

/* --- BANNER ILLUSTRATION --- */
.banner-right {
    position: relative;
    width: 260px;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ill-center {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-card);
    width: 110px;
    height: 75px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.ill-center i {
    font-size: 22px;
    color: var(--primary-blue);
}

.ill-center span {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-sub);
}

.ill-float {
    position: absolute;
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 3;
    animation: bounce-float 6s infinite ease-in-out;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.ill-1 { top: 0px; left: 30px; color: #ef4444; animation-delay: 0s; }
.ill-2 { top: 25px; right: 15px; color: #3b82f6; animation-delay: -1.5s; }
.ill-3 { bottom: 10px; right: 50px; color: #10b981; animation-delay: -3s; }
.ill-4 { bottom: 15px; left: 20px; color: #f59e0b; animation-delay: -4.5s; }

@keyframes bounce-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, -10px, 0) scale(1.05); }
}

/* --- SECTION HEADINGS --- */
.section-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    color: var(--text-main);
}

/* --- CATEGORIES GRID --- */
.categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.category-card, .category-card.span-4 {
    flex: 1 1 140px;
    max-width: 165px;
    height: 44px;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    color: white !important;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.category-card.active {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Gradients */
.cat-pan { background: var(--grad-pan); }
.cat-ai { background: var(--grad-ai); }
.cat-pdf { background: var(--grad-pdf); }
.cat-printing { background: var(--grad-printing); }
.cat-photo { background: var(--grad-photo); }
.cat-banking { background: var(--grad-banking); }
.cat-docs { background: var(--grad-docs); }
.cat-fav { background: var(--grad-fav); }

.category-card-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    z-index: 5;
    width: 100%;
}

.category-card-icon-badge {
    background: rgba(255, 255, 255, 0.18);
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.category-card-title {
    font-size: 12px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.category-card-right {
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 38px;
    height: 38px;
    opacity: 0.2;
    pointer-events: none;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: rotate(-10deg);
}

.category-card:hover .category-card-right img {
    transform: rotate(-5deg) scale(1.08);
}

/* --- POPULAR SERVICES SECTION --- */
.services-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    min-height: 380px;
}

/* --- SKELETON LOADER FOR SERVICES GRID --- */
.services-grid .service-card.skeleton-card {
    pointer-events: none;
    background: var(--bg-card, #ffffff);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: none;
}
.services-grid .skeleton-shimmer {
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer-effect 1.5s infinite linear;
}
[data-theme="dark"] .services-grid .skeleton-shimmer {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}
@keyframes shimmer-effect {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.services-grid .skeleton-card .service-card-icon-container {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
}
.services-grid .skeleton-card .skeleton-line {
    border-radius: 4px;
    background: var(--border, #e2e8f0);
}
[data-theme="dark"] .services-grid .skeleton-card .skeleton-line {
    background: var(--border-card, #334155);
}
.services-grid .skeleton-card .skeleton-title {
    width: 90px;
    height: 14px;
    margin-bottom: 8px;
}
.services-grid .skeleton-card .skeleton-desc {
    width: 140px;
    height: 10px;
}

.service-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 130px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .service-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.35);
    background: #ffffff;
}

[data-theme="dark"] .service-card:hover {
    background: rgba(15, 23, 42, 0.6);
}

.service-card-body {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 52px;
}

.service-card-icon-container {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.service-card-icon-container img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    object-fit: contain;
    transform: scale(1.0);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-card-icon-container img {
    transform: scale(1.12);
}

.service-card-icon-container i {
    color: var(--primary-blue);
    font-size: 34px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-card);
    width: 100%;
    height: 100%;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-card-icon-container i {
    transform: scale(1.18);
}

[data-theme="dark"] .service-card-icon-container i {
    background: rgba(15, 23, 42, 0.4);
}

.service-card-text {
    flex: 1;
    min-width: 0;
}

.service-card-title {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-card-hot-badge,
.service-card-new-badge,
.service-card-aget-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    z-index: 10;
    font-size: 8px;
    font-weight: 850;
    padding: 1.5px 5px;
    border-radius: 6px;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    border: 1.5px solid var(--bg-card);
    line-height: 1;
    white-space: nowrap;
}

.service-card-hot-badge {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: white;
}

.service-card-new-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.service-card-aget-badge {
    background: linear-gradient(135deg, #d97706, #b45309);
    color: white;
    border-radius: 4px;
    text-transform: uppercase;
}

.service-card-desc {
    font-size: 11.5px;
    color: var(--text-sub);
    line-height: 1.3;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-card);
    padding-top: 8px;
}

/* Status Pills */
.status-pill {
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pill-free {
    background: rgba(99, 102, 241, 0.12);
    color: #4f46e5;
}
[data-theme="dark"] .pill-free {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
}

.pill-violet {
    background: rgba(168, 85, 247, 0.12);
    color: #9333ea;
}
[data-theme="dark"] .pill-violet {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.pill-blue {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}
[data-theme="dark"] .pill-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.pill-purple {
    background: rgba(192, 132, 252, 0.12);
    color: #7c3aed;
}

.pill-green {
    background: rgba(16, 185, 129, 0.12);
    color: #059669;
}
[data-theme="dark"] .pill-green {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.pill-green-dark {
    background: rgba(4, 120, 87, 0.12);
    color: #047857;
}

.service-card-open-btn {
    background: transparent;
    border: 1px solid var(--border-card);
    color: var(--text-main);
    padding: 4px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}

.service-card:hover .service-card-open-btn {
    background: var(--text-main);
    color: var(--bg-body);
    border-color: var(--text-main);
}

/* --- QUICK ACTIONS --- */
.quick-actions-flex {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 4px 16px 4px;
    margin-bottom: 30px;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: rgba(59, 130, 246, 0.3) transparent;
}

.quick-actions-flex::-webkit-scrollbar {
    display: block; /* Chrome/Safari */
    height: 4px;
}

.quick-actions-flex::-webkit-scrollbar-track {
    background: transparent;
}

.quick-actions-flex::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.25);
    border-radius: 10px;
}

.quick-actions-flex::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.45);
}

.quick-action-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-radius: 9999px;
    color: white !important;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 700;
    min-width: 175px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: var(--shadow-sm);
}

.quick-action-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.quick-action-pill i {
    font-size: 16px;
    opacity: 0.9;
}

.quick-action-pill img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.quick-action-pill:hover img {
    transform: scale(1.1);
}

.qa-print { background: linear-gradient(135deg, #1e3a8a, #3b82f6); }
.qa-pan { background: linear-gradient(135deg, #581c87, #8b5cf6); }
.qa-ai { background: linear-gradient(135deg, #0f172a, #0ea5e9); }
.qa-bill { background: linear-gradient(135deg, #064e3b, #10b981); }
.qa-photo { background: linear-gradient(135deg, #1d4ed8, #a855f7); }
.qa-categories { background: linear-gradient(135deg, #c2410c, #f97316); }

/* --- RECENT ACTIVITY --- */
.recent-activity-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .recent-activity-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
}

.recent-activity-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-activity-item {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-main);
    position: relative;
    padding-left: 20px;
}

.recent-activity-item::before {
    content: "•";
    color: var(--primary-blue);
    font-size: 20px;
    position: absolute;
    left: 2px;
    top: -2px;
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--border-card);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-left {
    display: flex;
    gap: 24px;
}

.footer-link {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.footer-right {
    display: flex;
    gap: 20px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-social-link:hover {
    color: var(--text-main);
}

.footer-social-link i {
    font-size: 15px;
}

.sparkle-icon {
    background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
    display: inline-block;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero-banner {
        flex-direction: column;
        padding: 30px;
        align-items: flex-start;
        gap: 30px;
    }
    .banner-left {
        max-width: 100%;
    }
    .banner-right {
        width: 100%;
        height: 150px;
    }
    .header-search {
        display: none; /* Hide top search bar on smaller devices, use banner one */
    }
    .categories-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    .category-card, .category-card.span-4 {
        flex: 1 1 130px;
        max-width: 165px;
    }
}

@media (max-width: 640px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    .category-card, .category-card.span-4 {
        flex: 1 1 120px;
        max-width: 100%;
    }
    .categories-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .banner-title {
        font-size: 28px;
    }
    .banner-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .footer-left {
        justify-content: center;
        flex-wrap: wrap;
    }
    .footer-right {
        justify-content: center;
    }
}

/* Utility visibility classes */
.hidden {
    display: none !important;
}

/* Government Services Modal styling */
.gov-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.gov-modal-overlay.active {
    display: flex !important;
}

/* --- ABOUT & FAQ SECTION STYLING --- */
.about-section {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}


/* User navigation header styles added by Antigravity */
.user-nav-container {
    display: flex;
    gap: 10px;
    align-items: center;
}
.user-nav-pill {
    cursor: pointer;
    padding: 8px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s;
}
.user-nav-pill.user-nav-history {
  position: relative;
  background: #ffffff !important;
  color: #000000 !important;
  padding: 8px 16px !important;
  border-radius: 50px !important;
  height: 36px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
  box-sizing: border-box !important;
}

.user-nav-pill.user-nav-history .tooltip {
  position: absolute;
  top: 0;
  font-size: 11px;
  background: #ffffff;
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 5px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  white-space: nowrap;
  z-index: 1002;
}

.user-nav-pill.user-nav-history .tooltip::before {
  position: absolute;
  content: "";
  height: 6px;
  width: 6px;
  background: #ffffff;
  bottom: -3px;
  left: 50%;
  transform: translate(-50%) rotate(45deg);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.user-nav-pill.user-nav-history:hover .tooltip {
  top: -35px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.user-nav-pill.user-nav-history:hover,
.user-nav-pill.user-nav-history:hover .tooltip,
.user-nav-pill.user-nav-history:hover .tooltip::before {
  background: linear-gradient(320deg, rgb(3, 77, 146), rgb(0, 60, 255)) !important;
  color: #ffffff !important;
}
.user-nav-addmoney {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.user-nav-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    padding: 5px 12px 5px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}
.user-nav-welcome {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.user-nav-welcome-lbl {
    font-size: 9px;
    color: var(--text-sub);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.user-nav-welcome-name {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 700;
}
.user-nav-balance {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    padding: 4px 10px;
    border-radius: 20px;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}
.user-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}
.btn-profile {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    margin-right: 8px;
}
.btn-logout {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.stat-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-blue);
}

.stat-lbl {
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 4px;
}

.faq-section {
    margin-bottom: 40px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-question {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    padding: 0 20px;
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.6;
}

.faq-item.active {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.05);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 20px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 12px;
    color: var(--text-sub);
}

/* Service Card Favorite Button */
.fav-btn {
    color: var(--text-sub) !important;
    opacity: 0.35 !important;
    transition: all 0.2s ease !important;
}

.fav-btn.active {
    color: #fbbf24 !important;
    opacity: 1 !important;
}

.fav-btn:hover {
    transform: scale(1.25) !important;
    color: #fbbf24 !important;
    opacity: 1 !important;
}

/* --- Uiverse.io Scoped Heart Toggle by barisdogansutcu --- */
.fav-toggle-container {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

.square-icons .fav-toggle-container {
    top: 6px !important;
    left: 6px !important;
    right: auto !important;
}

.fav-toggle-input {
    display: none !important;
}

.fav-toggle-label {
    background-color: var(--bg-card);
    border: 1px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    cursor: pointer;
    user-select: none;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.fav-toggle-label:hover {
    transform: scale(1.15);
    border-color: var(--primary-blue);
}

.fav-toggle-label svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--text-sub);
    stroke-width: 2.2px;
    transition: all 0.3s ease;
}

.fav-toggle-input:checked + .fav-toggle-label svg {
    fill: hsl(0deg 100% 50%);
    stroke: hsl(0deg 100% 50%);
    animation: heartButton 1.0s ease-in-out;
}

@keyframes heartButton {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --- ENHANCED RECENTLY USED SECTION --- */
.recently-used-section {
    margin-top: 30px;
    margin-bottom: 24px;
    padding: 30px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .recently-used-section {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-card);
}

.recently-used-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.recently-used-section .section-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.recently-used-section .section-header h3 i {
    color: #3b82f6;
    font-size: 18px;
}

.clear-recent-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.clear-recent-btn:hover {
    background: #ef4444;
    color: white;
    transform: scale(1.05);
}

.recently-used-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.recently-used-scroll::-webkit-scrollbar {
    height: 6px;
}

.recently-used-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.recently-used-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.recently-used-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--text-sub);
}

.recent-card {
    min-width: 120px;
    max-width: 120px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.recent-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: #3b82f6;
}

.recent-card .icon-tile {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 10px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.recent-card:hover .icon-tile {
    transform: scale(1.15) rotate(5deg);
}

.recent-card-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recent-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #3b82f6;
    color: white;
    font-size: 8px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

/* ==========================================================================
   CSS FALLBACK PROFILE MENU STYLING
   ========================================================================== */
.css-profile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.css-profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.css-profile-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 400px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Custom Themes for Profile Menu */
.css-profile-content.theme-promax {
    border: 2px solid #fbbf24 !important;
    box-shadow: 0 0 25px rgba(251, 191, 36, 0.35) !important;
    background: linear-gradient(135deg, rgba(21, 27, 43, 0.95), rgba(15, 23, 42, 0.95)) !important;
}
.css-profile-content.theme-promax .css-profile-avatar {
    background: linear-gradient(135deg, #fbbf24, #d97706) !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5) !important;
}
.css-profile-content.theme-promax .css-profile-header h3 {
    color: #fbbf24 !important;
}
.css-profile-content.theme-promax .css-profile-option:hover {
    background: rgba(251, 191, 36, 0.08) !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
}

.css-profile-content.theme-pro {
    border: 1.5px solid #8b5cf6 !important;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3) !important;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.95)) !important;
}
.css-profile-content.theme-pro .css-profile-avatar {
    background: linear-gradient(135deg, #8b5cf6, #0ea5e9) !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5) !important;
}
.css-profile-content.theme-pro .css-profile-header h3 {
    color: #a78bfa !important;
}
.css-profile-content.theme-pro .css-profile-option:hover {
    background: rgba(139, 92, 246, 0.08) !important;
    border-color: rgba(139, 92, 246, 0.3) !important;
}

.css-profile-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-header);
}

.css-profile-header h3 {
    margin: 0;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 700;
}

.css-profile-close {
    cursor: pointer;
    color: var(--text-sub);
    font-size: 24px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.css-profile-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.css-profile-body {
    padding: 24px;
}

.css-profile-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    margin-bottom: 20px;
}

[data-theme="dark"] .css-profile-info {
    background: rgba(0, 0, 0, 0.15);
}

.css-profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.css-profile-details {
    flex: 1;
    min-width: 0;
}

.css-profile-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.css-profile-balance {
    font-size: 12.5px;
    color: var(--text-sub);
    margin-top: 2px;
}

.css-profile-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.css-profile-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.25s ease;
    cursor: pointer;
}

[data-theme="dark"] .css-profile-option {
    background: rgba(0, 0, 0, 0.1);
}

.css-profile-option:hover {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.2);
    transform: translateX(4px);
}

.css-profile-option i {
    font-size: 16px;
    color: var(--primary-blue);
    width: 20px;
    text-align: center;
}

.css-profile-option div {
    display: flex;
    flex-direction: column;
}

.css-profile-option div div {
    font-weight: 600;
    font-size: 13.5px;
}

.css-profile-option div small {
    font-size: 11px;
    color: var(--text-sub);
    margin-top: 1px;
}

/* ==========================================================================
   REAL-TIME NOTIFICATION SYSTEM & PANEL STYLING
   ========================================================================== */
#notif-panel {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-card) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.notif-item {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-card);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notif-item:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(3px);
}

.notif-item.unread {
    background: rgba(59, 130, 246, 0.08);
    border-left: 3px solid var(--primary-blue);
}

.notif-item.unread:hover {
    background: rgba(59, 130, 246, 0.12);
}

.notif-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-theme="dark"] .notif-icon {
    background: rgba(0, 0, 0, 0.2);
}

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

.notif-title {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text-main);
    margin-bottom: 3px;
    line-height: 1.3;
}

.notif-message {
    font-size: 11.5px;
    color: var(--text-sub);
    line-height: 1.4;
    margin-bottom: 6px;
    word-break: break-word;
}

.notif-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.notif-time {
    font-size: 10px;
    color: var(--text-sub);
    opacity: 0.8;
}

.notif-type-badge {
    font-size: 9px;
    padding: 1.5px 6px;
    border-radius: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notif-type-badge.type-transaction {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.notif-type-badge.type-system,
.notif-type-badge.type-welcome {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.notif-type-badge.type-alert,
.notif-type-badge.type-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.notif-type-badge.type-service {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.notif-type-badge.type-promotion {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
}

.notif-urgent {
    font-size: 9px;
    padding: 1.5px 6px;
    border-radius: 6px;
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: urgentPulse 1.5s infinite;
}

@keyframes urgentPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.notif-action {
    margin-top: 6px;
}

.notif-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 750;
    padding: 6px 14px;
    background: var(--primary-blue);
    color: white !important;
    border-radius: 20px;
    border: none;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.notif-action-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.notif-item.type-transaction .notif-action-btn {
    background: #10b981;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}
.notif-item.type-transaction .notif-action-btn:hover {
    background: #059669;
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

.notif-item.type-service .notif-action-btn {
    background: #8b5cf6;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.2);
}
.notif-item.type-service .notif-action-btn:hover {
    background: #7c3aed;
    box-shadow: 0 6px 12px rgba(139, 92, 246, 0.3);
}

.notif-unread-dot {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-blue);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary-blue);
}

.notif-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-sub);
}

/* Category Filters in Panel */
.notif-filters {
    display: flex;
    gap: 6px;
    padding: 8px 16px;
    border-bottom: 1px solid var(--border-card);
    background: rgba(255, 255, 255, 0.01);
}

.notif-filter {
    flex: 1;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-sub);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
}

.notif-filter:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.notif-filter.active {
    color: var(--primary-blue);
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.15);
}

/* Color Accents by Type */
.notif-item.unread.type-success,
.notif-item.unread.type-transaction {
    background: rgba(16, 185, 129, 0.06);
    border-left: 3px solid #10b981;
}
.notif-item.unread.type-error,
.notif-item.unread.type-danger,
.notif-item.unread.type-alert,
.notif-item.unread.type-urgent {
    background: rgba(239, 68, 68, 0.06);
    border-left: 3px solid #ef4444;
}
.notif-item.unread.type-warning {
    background: rgba(245, 158, 11, 0.06);
    border-left: 3px solid #f59e0b;
}
.notif-item.unread.type-info {
    background: rgba(234, 179, 8, 0.06);
    border-left: 3px solid #eab308;
}
.notif-item.unread.type-service {
    background: rgba(139, 92, 246, 0.06);
    border-left: 3px solid #8b5cf6;
}
.notif-item.unread.type-promotion {
    background: rgba(236, 72, 153, 0.06);
    border-left: 3px solid #ec4899;
}

.notif-item.type-success .notif-icon,
.notif-item.type-transaction .notif-icon {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.notif-item.type-error .notif-icon,
.notif-item.type-alert .notif-icon,
.notif-item.type-danger .notif-icon,
.notif-item.type-urgent .notif-icon {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}
.notif-item.type-warning .notif-icon {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}
.notif-item.type-info .notif-icon {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
}
.notif-item.type-service .notif-icon {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
}
.notif-item.type-promotion .notif-icon {
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.2);
}
.notif-item.type-system .notif-icon,
.notif-item.type-welcome .notif-icon {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* --- SWEETALERT Z-INDEX OVERRIDE --- */
.swal2-container {
    z-index: 100000 !important;
}

/* --- OLD STYLE VERTICAL LAYOUT TOGGLE --- */
.square-icons .services-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)) !important;
    gap: 14px !important;
}

.square-icons .service-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: center !important;
    height: 195px !important;
    padding: 16px 8px 12px 8px !important;
    gap: 8px !important;
    border-radius: 16px !important;
}

.square-icons .service-card-body {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
}

.square-icons .service-card-icon-container {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 4px !important;
    background: transparent !important;
    border: none !important;
}

.square-icons .service-card-icon-container img {
    border-radius: 16px !important;
    width: 100% !important;
    height: 100% !important;
}

.square-icons .service-card-icon-container i {
    width: 100% !important;
    height: 100% !important;
    border-radius: 16px !important;
    font-size: 38px !important;
}

.square-icons .service-card-text {
    width: 100% !important;
    text-align: center !important;
}

.square-icons .service-card-title {
    font-size: 13.5px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 2px !important;
    color: var(--text-main) !important;
    white-space: normal !important;
    overflow: visible !important;
    word-break: break-word !important;
}

.square-icons .service-card-desc {
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    opacity: 0.8 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.square-icons .service-card-footer {
    display: none !important;
}

/* Absolute position badges in the top-right of the card */
.square-icons .service-card-new-badge,
.square-icons .service-card-hot-badge,
.square-icons .service-card-aget-badge {
    position: absolute !important;
    top: -6px !important;
    right: -6px !important;
    transform: scale(0.85) !important;
    margin: 0 !important;
    z-index: 5 !important;
}

/* Position favorite star button in top-left */
.square-icons .fav-btn {
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    transform: scale(0.85) !important;
}

/* Responsive adjustment for section layout toggle */
@media (max-width: 480px) {
    .services-section-header {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    #layout-toggle {
        padding: 0 10px !important;
        font-size: 11px !important;
        height: 32px !important;
    }
}

/* --- CATEGORY SECTION HEADER STYLING --- */
.category-header {
    width: 100%;
    grid-column: 1 / -1;
    margin-top: 30px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-card);
    padding-bottom: 10px;
    opacity: 0;
    animation: fadeInCategory 0.5s ease forwards;
}

.category-header h3 {
    margin: 0;
    font-size: 16px;
    color: var(--text-main);
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-header h3 i {
    color: var(--primary-blue);
}

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

/* ==========================================================================
   NEWS BULLETIN TICKER STYLING
   ========================================================================== */
.news-bulletin-bar {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #1e1b4b 0%, #311042 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 36px;
    font-family: 'Inter', sans-serif;
    overflow: hidden;
    position: relative;
    z-index: 1002;
    width: 100%;
}

.news-bulletin-label {
    background: #d32f2f;
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
    position: relative;
    white-space: nowrap;
}

.news-bulletin-label i {
    animation: marquee-bell 1.5s infinite;
}

.news-bulletin-ticker {
    flex-grow: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.news-bulletin-text {
    display: inline-block;
    padding-left: 100%;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    animation: newsMarquee 25s linear infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.news-bulletin-bar:hover .news-bulletin-text {
    animation-play-state: paused;
}

@keyframes newsMarquee {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

@keyframes marquee-bell {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(-15deg); }
    30% { transform: rotate(15deg); }
    45% { transform: rotate(-10deg); }
    60% { transform: rotate(10deg); }
    75% { transform: rotate(-5deg); }
    85% { transform: rotate(5deg); }
}

/* Collapsible Categories Section */
.categories-collapse-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), margin-bottom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 0;
}

.categories-collapse-wrapper.open {
    max-height: 800px;
    margin-bottom: 24px;
}

.categories-toggle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.categories-toggle-header:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* ==========================================================================
   MOBILE VIEWPORT OPTIMIZATIONS (HOMEPAGE & DYNAMIC MODALS)
   ========================================================================== */
@media (max-width: 768px) {
    .mobile-search-wrapper {
        display: block !important;
    }
    .banner-right {
        display: none !important;
    }
    .banner-actions {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        align-items: stretch !important;
        gap: 10px !important;
        margin-top: 15px !important;
    }
    #hero-guest-actions[style*="display: none"],
    #hero-guest-actions[style*="display:none"],
    #hero-user-actions[style*="display: none"],
    #hero-user-actions[style*="display:none"] {
        display: none !important;
    }
    #hero-guest-actions:not([style*="display: none"]):not([style*="display:none"]), 
    #hero-user-actions:not([style*="display: none"]):not([style*="display:none"]) {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    #hero-guest-actions button,
    #hero-user-actions button {
        width: 100% !important;
        margin: 0 !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 13px !important;
        padding: 10px 12px !important;
    }
    .banner-actions a,
    .banner-actions button:not(.banner-btn) {
        width: 100% !important;
        justify-content: center !important;
        margin: 0 !important;
    }
    header {
        padding: 6px 0 !important;
    }
    .glass-container {
        padding: 0 12px !important;
    }
    .header-top {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px 0 !important;
    }
    .header-left {
        gap: 4px !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
        order: 1 !important;
    }
    .header-left img {
        width: 24px !important;
        height: 24px !important;
        border-radius: 6px !important;
    }
    .logo-text {
        font-size: 13px !important;
    }
    .logo-text + span {
        display: none !important; /* Hide "by Imran" tagline on mobile */
    }
    #lang-toggle {
        display: none !important;
    }
    #notif-bell {
        order: 2 !important;
        margin-left: auto !important;
        flex-shrink: 0 !important;
    }
    .theme-switch {
        order: 3 !important;
        flex-shrink: 0 !important;
    }
    #user-nav {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin-top: 4px !important;
        order: 4 !important;
        flex-shrink: 0 !important;
    }
    .user-nav-container {
        gap: 6px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }
    .user-nav-pill.user-nav-history {
        display: inline-flex !important;
        padding: 4px 10px !important;
        height: 26px !important;
        font-size: 11px !important;
        border-radius: 50px !important;
        align-items: center !important;
        gap: 4px !important;
        background: #ffffff !important;
        color: #000000 !important;
        border: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    .user-nav-pill.user-nav-history span {
        display: inline !important;
        font-size: 10.5px !important;
    }
    .user-nav-pill.user-nav-history i {
        font-size: 10.5px !important;
    }
    .user-nav-addmoney {
        display: flex !important;
        padding: 4px 10px !important;
        border-radius: 50px !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        background: linear-gradient(135deg, #10b981, #059669) !important;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
        color: white !important;
        height: 26px !important;
        font-size: 11px !important;
    }
    .user-nav-addmoney span {
        display: inline !important;
        font-size: 10.5px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }
    .user-nav-addmoney i {
        font-size: 10.5px !important;
        margin: 0 !important;
    }
    .user-nav-welcome {
        display: none !important;
    }
    .btn-logout {
        display: none !important;
    }
    .user-nav-profile-card {
        padding: 2px 6px !important;
        gap: 4px !important;
        height: 26px !important;
        border-radius: 50px !important;
    }
    .user-nav-balance {
        font-size: 9.5px !important;
        padding: 1px 5px !important;
        border-radius: 20px !important;
    }
    .btn-profile,
    .user-nav-btn.btn-profile.button {
        margin-right: 0 !important;
        width: 26px !important;
        height: 26px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: unset !important;
    }
    .user-nav-btn.btn-profile.button .lable {
        display: none !important;
    }
    .user-nav-btn.btn-profile.button .svg-icon {
        width: 14px !important;
        height: 14px !important;
    }
    #header-user-avatar-container svg, #header-user-avatar-container img {
        width: 22px !important;
        height: 22px !important;
    }
    #online-counter {
        padding: 2px 8px !important;
        gap: 4px !important;
    }
    #online-count {
        font-size: 9.5px !important;
    }
    .header-right {
        display: contents !important;
    }
    .header-icon-btn {
        width: 26px !important;
        height: 26px !important;
        font-size: 11px !important;
    }
    #guest-nav button, #user-nav button:not(.theme-switch-input) {
        padding: 4px 10px !important;
        font-size: 10px !important;
        height: 28px !important;
    }
    /* Scale theme switch for mobile */
    .theme-switch {
        width: 50px !important;
        height: 26px !important;
    }
    .theme-switch-slider:before {
        height: 22px !important;
        width: 22px !important;
    }
    .theme-switch-sun svg {
        top: 4px !important;
        left: 28px !important;
        width: 18px !important;
        height: 18px !important;
    }
    .theme-switch-moon svg {
        top: 4px !important;
        left: 4px !important;
        width: 18px !important;
        height: 18px !important;
    }
    .theme-switch-input:checked + .theme-switch-slider:before {
        transform: translateX(24px) !important;
    }
    #install-pwa-btn {
        display: none !important;
    }
    #layout-toggle {
        width: 28px !important;
        height: 28px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    #layout-toggle-text {
        display: none !important;
    }
}

/* SweetAlert User Management Modal Responsive overrides */
@media (max-width: 600px) {
    .users-management-modal, .active-users-modal {
        width: 95% !important;
    }
    
    /* Active Users Modal overrides */
    .active-users-modal div[style*="margin-bottom: 10px"] {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px !important;
    }
    .active-users-modal div[style*="justify-content: space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .active-users-modal div[style*="justify-content: space-between"] > div:last-child {
        width: 100% !important;
        justify-content: space-between !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Users Management Modal overrides */
    .users-management-modal div[style*="margin-bottom: 12px"] {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 12px !important;
    }
    .users-management-modal div[style*="margin-left: 15px"] {
        margin-left: 0 !important;
        margin-top: 15px !important;
        width: 100% !important;
    }
    .users-management-modal div[style*="margin-left: 15px"] > div {
        display: flex !important;
        width: 100% !important;
        gap: 6px !important;
        margin-bottom: 6px !important;
    }
    .users-management-modal div[style*="margin-left: 15px"] button {
        flex: 1 1 45% !important;
        padding: 8px 10px !important;
        font-size: 11px !important;
        margin: 0 !important;
    }
    .users-management-modal div[style*="margin-left: 15px"] > button[onclick*="deleteUserFromMain"] {
        width: 100% !important;
        margin-top: 2px !important;
    }
    
    /* Center text alignments on mobile if flex stacked */
    .users-management-modal .swal2-html-container div[style*="flex: 1"] {
        text-align: center !important;
    }
    .users-management-modal .swal2-html-container div[style*="display: flex; align-items: center; gap: 12px"] {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .users-management-modal .swal2-html-container div[style*="margin-bottom: 20px; text-align: center; display: flex; gap: 15px; justify-content: center;"] {
        flex-direction: column !important;
        gap: 8px !important;
        align-items: stretch !important;
    }
    .users-management-modal .swal2-html-container div[style*="margin-bottom: 20px; text-align: center; display: flex; gap: 15px; justify-content: center;"] > button {
        width: 100% !important;
    }
}

/* ==========================================================================
   ADDED VIA AGENTATION FEEDBACK: SETTINGS & HELP BUTTON STYLES
   ========================================================================== */

/* Keyframe for banner background animation */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* From Uiverse.io by luigimiraglia - adapted for Profile Settings */
.user-nav-btn.btn-profile.button {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 6px 16px !important;
  gap: 8px !important;
  height: 36px !important;
  width: auto !important;
  border: none !important;
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  border-radius: 20px !important;
  cursor: pointer !important;
  transition: background 0.3s ease, transform 0.2s ease !important;
  margin-right: 8px !important;
}

.user-nav-btn.btn-profile.button .lable {
  line-height: 20px !important;
  font-size: 11.5px !important;
  color: white !important;
  font-family: 'Poppins', sans-serif !important;
  letter-spacing: 0.5px !important;
  font-weight: 600 !important;
}

.user-nav-btn.btn-profile.button:hover {
  background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
  transform: translateY(-1px) !important;
}

.user-nav-btn.btn-profile.button:hover .svg-icon {
  animation: spin 2s linear infinite !important;
}

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

/* From Uiverse.io by VassoD - Help Center Floating Button & Tooltip */
.tooltip-container {
  position: relative;
  display: inline-block;
}

.help-button {
  background: linear-gradient(135deg, #ff6b00, #ff4e00) !important;
  color: white !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 50px !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-family: 'Poppins', sans-serif !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 4px 15px rgba(255, 78, 0, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.help-button:hover,
.help-button:focus {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255, 78, 0, 0.45) !important;
}

.tooltip {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  padding: 12px 20px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  color: #f8fafc;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10000;
}

/* Tooltip arrow */
.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #1e293b transparent transparent transparent;
}

.tooltip-container:hover .tooltip,
.help-button:focus + .tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@keyframes glow {
  0% { text-shadow: 0 0 10px rgba(255, 78, 0, 0.4); }
  50% { text-shadow: 0 0 20px rgba(255, 78, 0, 0.75); }
  100% { text-shadow: 0 0 10px rgba(255, 78, 0, 0.4); }
}

.tooltip strong {
  animation: glow 2s infinite;
  font-weight: 700;
  color: #ff6b00;
}

.tooltip i {
  margin-right: 6px;
  color: #ff6b00;
}

@media (max-width: 768px) {
  .tooltip {
    font-size: 12px;
    padding: 10px 16px;
  }

  .help-button {
    padding: 8px 16px !important;
    font-size: 11px !important;
  }
}

/* From Uiverse.io by alexroumi - adapted for Login & Register Buttons */ 
#guest-nav .banner-btn-secondary,
#guest-nav .banner-btn-primary {
 padding: 8px 20px !important;
 border-radius: 12px !important;
 z-index: 1 !important;
 position: relative !important;
 font-weight: 800 !important;
 font-size: 13px !important;
 transition: all 250ms !important;
 overflow: hidden !important;
 display: inline-flex !important;
 align-items: center !important;
 justify-content: center !important;
 height: 36px !important;
 cursor: pointer !important;
}

#guest-nav .banner-btn-secondary::before,
#guest-nav .banner-btn-primary::before {
 content: "" !important;
 position: absolute !important;
 top: 0 !important;
 left: 0 !important;
 height: 100% !important;
 width: 0 !important;
 border-radius: 12px !important;
 z-index: -1 !important;
 transition: all 250ms !important;
}

#guest-nav .banner-btn-secondary:hover::before,
#guest-nav .banner-btn-primary:hover::before {
 width: 100% !important;
}

/* 1. Scoped Purple Neon colors for Login button (Secondary) - LIGHT THEME (default) */
#guest-nav .banner-btn-secondary {
 border: 1px solid rgba(109, 40, 217, 0.4) !important;
 background: #faf5ff !important;
 color: #6d28d9 !important;
 box-shadow: 0 2px 5px rgba(109, 40, 217, 0.1) !important;
}

#guest-nav .banner-btn-secondary::before {
 background-color: #6d28d9 !important;
 box-shadow: 0 0 15px rgba(109, 40, 217, 0.6) !important;
}

#guest-nav .banner-btn-secondary:hover {
 color: white !important;
 box-shadow: 0 0 20px rgba(109, 40, 217, 0.5) !important;
 border-color: #7c3aed !important;
}

/* Scoped Purple Neon colors for Login button (Secondary) - DARK THEME */
[data-theme="dark"] #guest-nav .banner-btn-secondary {
 border: 1px solid rgba(139, 92, 246, 0.4) !important;
 background: rgba(139, 92, 246, 0.1) !important;
 color: #c084fc !important;
 box-shadow: 0 0 10px rgba(139, 92, 246, 0.2) !important;
}

[data-theme="dark"] #guest-nav .banner-btn-secondary::before {
 background-color: #8b5cf6 !important;
 box-shadow: 0 0 15px rgba(139, 92, 246, 0.6) !important;
}

[data-theme="dark"] #guest-nav .banner-btn-secondary:hover {
 color: white !important;
 box-shadow: 0 0 20px rgba(139, 92, 246, 0.7) !important;
 border-color: #a855f7 !important;
}

/* 2. Scoped Blue Neon colors for Register button (Primary) - LIGHT THEME (default) */
#guest-nav .banner-btn-primary {
 border: 1px solid rgba(29, 78, 216, 0.4) !important;
 background: #eff6ff !important;
 color: #1d4ed8 !important;
 box-shadow: 0 2px 5px rgba(29, 78, 216, 0.1) !important;
}

#guest-nav .banner-btn-primary::before {
 background-color: #1d4ed8 !important;
 box-shadow: 0 0 15px rgba(29, 78, 216, 0.6) !important;
}

#guest-nav .banner-btn-primary:hover {
 color: white !important;
 box-shadow: 0 0 20px rgba(29, 78, 216, 0.5) !important;
 border-color: #2563eb !important;
}

/* Scoped Blue Neon colors for Register button (Primary) - DARK THEME */
[data-theme="dark"] #guest-nav .banner-btn-primary {
 border: 1px solid rgba(59, 130, 246, 0.4) !important;
 background: rgba(59, 130, 246, 0.1) !important;
 color: #60a5fa !important;
 box-shadow: 0 0 10px rgba(59, 130, 246, 0.2) !important;
}

[data-theme="dark"] #guest-nav .banner-btn-primary::before {
 background-color: #3b82f6 !important;
 box-shadow: 0 0 15px rgba(59, 130, 246, 0.6) !important;
}

[data-theme="dark"] #guest-nav .banner-btn-primary:hover {
 color: white !important;
 box-shadow: 0 0 20px rgba(59, 130, 246, 0.7) !important;
 border-color: #60a5fa !important;
}

/* From Uiverse.io by andrew-demchenk0 - Theme Switch */
.theme-switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 64px;
  height: 34px;
  cursor: pointer;
  vertical-align: middle;
  flex-shrink: 0 !important;
}

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

.theme-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #73C0FC;
  transition: .4s;
  border-radius: 30px;
}

.theme-switch-slider:before {
  position: absolute;
  content: "";
  height: 30px;
  width: 30px;
  border-radius: 20px;
  left: 2px;
  bottom: 2px;
  z-index: 2;
  background-color: #e8e8e8;
  transition: .4s;
}

.theme-switch-sun svg {
  position: absolute;
  top: 6px;
  left: 36px;
  z-index: 1;
  width: 24px;
  height: 24px;
  animation: theme-switch-rotate 15s linear infinite;
}

.theme-switch-moon svg {
  fill: #73C0FC;
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  width: 24px;
  height: 24px;
  animation: theme-switch-tilt 5s linear infinite;
}

@keyframes theme-switch-rotate {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

@keyframes theme-switch-tilt {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
  100% { transform: rotate(0deg); }
}

.theme-switch-input:checked + .theme-switch-slider {
  background-color: #183153;
}

.theme-switch-input:focus + .theme-switch-slider {
  box-shadow: 0 0 1px #183153;
}

.theme-switch-input:checked + .theme-switch-slider:before {
  transform: translateX(30px);
}

/* === MOBILE RESPONSIVE: New Uiverse Buttons & Theme Switch === */

/* Tablets & small laptops */
@media (max-width: 768px) {
  #guest-nav .banner-btn-secondary,
  #guest-nav .banner-btn-primary {
    padding: 4px 12px !important;
    font-size: 11px !important;
    height: 28px !important;
    border-radius: 10px !important;
  }
  #guest-nav .banner-btn-secondary::before,
  #guest-nav .banner-btn-primary::before {
    border-radius: 10px !important;
  }
  
  /* Settings button: collapse to icon-only on mobile */
  .user-nav-btn.btn-profile.button {
    width: 26px !important;
    height: 26px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    min-width: unset !important;
    margin-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .user-nav-btn.btn-profile.button .lable {
    display: none !important;
  }
  .user-nav-btn.btn-profile.button .svg-icon {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
  }
  
  /* Stop header bell and user-nav container from squishing */
  .header-icon-btn,
  .user-nav-container,
  #user-nav {
    flex-shrink: 0 !important;
  }
}

/* Small phones */
@media (max-width: 480px) {
  #guest-nav {
    gap: 5px !important;
  }
  #guest-nav .banner-btn-secondary,
  #guest-nav .banner-btn-primary {
    padding: 3px 10px !important;
    font-size: 10px !important;
    height: 26px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
  }
  #guest-nav .banner-btn-secondary::before,
  #guest-nav .banner-btn-primary::before {
    border-radius: 8px !important;
  }
  /* Even smaller theme switch */
  .theme-switch {
    width: 44px !important;
    height: 22px !important;
  }
  .theme-switch-slider:before {
    height: 18px !important;
    width: 18px !important;
  }
  .theme-switch-sun svg {
    top: 2px !important;
    left: 24px !important;
    width: 16px !important;
    height: 16px !important;
  }
  .theme-switch-moon svg {
    top: 2px !important;
    left: 3px !important;
    width: 16px !important;
    height: 16px !important;
  }
  .theme-switch-input:checked + .theme-switch-slider:before {
    transform: translateX(22px) !important;
  }
}

/* Ultra-small phones (e.g. Galaxy Fold, SE) */
@media (max-width: 360px) {
  #guest-nav {
    gap: 4px !important;
  }
  #guest-nav .banner-btn-secondary,
  #guest-nav .banner-btn-primary {
    padding: 2px 8px !important;
    font-size: 9px !important;
    height: 24px !important;
    border-radius: 7px !important;
  }
  .theme-switch {
    width: 40px !important;
    height: 20px !important;
  }
  .theme-switch-slider:before {
    height: 16px !important;
    width: 16px !important;
  }
  .theme-switch-sun svg {
    top: 2px !important;
    left: 22px !important;
    width: 14px !important;
    height: 14px !important;
  }
  .theme-switch-moon svg {
    top: 2px !important;
    left: 2px !important;
    width: 14px !important;
    height: 14px !important;
  }
  .theme-switch-input:checked + .theme-switch-slider:before {
    transform: translateX(20px) !important;
  }
}

/* ==========================================================================
   BONEYARD SKELETON LOADER STYLES
   ========================================================================== */
@keyframes boneyard-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes boneyard-pulse {
    0%, 100% {
        opacity: 0.65;
    }
    50% {
        opacity: 1;
    }
}

.boneyard-pulse {
    animation: boneyard-pulse 2s infinite ease-in-out;
}

.skeleton-card {
    pointer-events: none;
    user-select: none;
}

.skeleton-shimmer {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.04) 25%, 
        rgba(255, 255, 255, 0.12) 37%, 
        rgba(255, 255, 255, 0.04) 63%
    );
    background-size: 200% 100%;
    animation: boneyard-shimmer 1.5s infinite linear;
}

[data-theme="light"] .skeleton-shimmer {
    background: linear-gradient(90deg, 
        rgba(0, 0, 0, 0.04) 25%, 
        rgba(0, 0, 0, 0.08) 37%, 
        rgba(0, 0, 0, 0.04) 63%
    );
    background-size: 200% 100%;
    animation: boneyard-shimmer 1.5s infinite linear;
}

.skeleton-card .service-card-icon-container.skeleton-avatar {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    width: 64px;
    height: 64px;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .skeleton-card .service-card-icon-container.skeleton-avatar {
    background: rgba(0, 0, 0, 0.04);
}

.skeleton-line {
    background: rgba(255, 255, 255, 0.04);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

[data-theme="light"] .skeleton-line {
    background: rgba(0, 0, 0, 0.04);
}




/* ==========================================
 * APPENDED FROM: issues-solved.css
 * ========================================== */
/* ============================================
   ISSUES SOLVED TAB - STYLES
   Fixed tab at bottom of page
   ============================================ */

/* Fixed Tab Button - Help Button (Shows only when scrolled down) */
.issues-tab {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
    z-index: 998 !important;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.issues-tab.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.issues-tab:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.issues-tab i {
    font-size: 16px;
}

/* Issues Modal */
.issues-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.issues-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Issues Container */
.issues-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    width: 90%;
    max-width: 900px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

/* Issues Header */
.issues-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-header);
}

.issues-header h2 {
    margin: 0;
    font-size: 24px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.issues-header h2 i {
    color: #10b981;
}

.issues-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-sub);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.issues-close:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    transform: rotate(90deg);
}

/* Issues Toolbar */
.issues-toolbar {
    padding: 15px 30px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.issues-search {
    flex: 1;
    min-width: 200px;
    padding: 10px 15px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 50px;
    color: var(--text-main);
    font-size: 14px;
}

.issues-search:focus {
    outline: none;
    border-color: #10b981;
}

.issues-add-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.issues-add-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.admin-only {
    display: none;
}

/* Issues Content */
.issues-content {
    padding: 30px;
    max-height: calc(80vh - 200px);
    overflow-y: auto;
}

/* Issues Timeline */
.issues-timeline {
    position: relative;
    padding-left: 40px;
}

.issues-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #10b981, #059669);
}

/* Issue Item */
.issue-item {
    position: relative;
    margin-bottom: 30px;
    background: var(--bg-body);
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 20px;
    transition: all 0.3s ease;
}

.issue-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.issue-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 25px;
    width: 16px;
    height: 16px;
    background: #10b981;
    border: 3px solid var(--bg-card);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

/* Issue Header */
.issue-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.issue-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 5px 0;
}

.issue-category {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-bug { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.category-feature { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }
.category-performance { background: rgba(168, 85, 247, 0.1); color: #a855f7; }
.category-security { background: rgba(234, 179, 8, 0.1); color: #eab308; }
.category-ui { background: rgba(236, 72, 153, 0.1); color: #ec4899; }
.category-general { background: rgba(100, 116, 139, 0.1); color: #64748b; }

.issue-description {
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.issue-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.issue-date {
    font-size: 12px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 5px;
}

.issue-actions {
    display: flex;
    gap: 10px;
}

.issue-edit-btn,
.issue-delete-btn {
    background: none;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.issue-edit-btn {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.issue-edit-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}

.issue-delete-btn {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.issue-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

/* Empty State */
.issues-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-sub);
}

.issues-empty i {
    font-size: 60px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.issues-empty p {
    font-size: 16px;
    margin: 10px 0;
}

/* Add/Edit Form */
.issue-form {
    display: none;
    padding: 20px;
    background: var(--bg-body);
    border-radius: 15px;
    margin-bottom: 20px;
}

.issue-form.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
}

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

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #10b981;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.form-submit-btn,
.form-cancel-btn {
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    border: none;
    transition: all 0.3s ease;
}

.form-submit-btn {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.form-submit-btn:hover {
    transform: scale(1.05);
}

.form-cancel-btn {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.form-cancel-btn:hover {
    background: var(--bg-body);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .issues-tab {
        bottom: 80px;
        left: 15px;
        padding: 10px 20px;
        font-size: 12px;
    }
    
    .issues-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .issues-header {
        padding: 15px 20px;
    }
    
    .issues-header h2 {
        font-size: 20px;
    }
    
    .issues-toolbar {
        padding: 10px 20px;
        flex-direction: column;
    }
    
    .issues-search {
        width: 100%;
    }
    
    .issues-content {
        padding: 20px;
    }
    
    .issues-timeline {
        padding-left: 30px;
    }
    
    .issue-item {
        padding: 15px;
    }
    
    .issue-title {
        font-size: 16px;
    }
    
    .issue-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* Antigravity: Prevent header overlapping on desktop view */
@media (max-width: 1480px) {
    .header-search {
        margin: 0 15px !important;
    }
    .user-nav-pill span,
    .user-nav-credits-text,
    .guest-nav-credits-text {
        display: none !important;
    }
    .user-nav-pill,
    .user-nav-credits,
    .guest-nav-credits {
        padding: 8px !important;
        width: 38px !important;
        height: 38px !important;
        justify-content: center !important;
        border-radius: 50% !important; /* Make it a perfect circle when collapsed */
    }
    .user-nav-pill i,
    .user-nav-credits i,
    .guest-nav-credits i {
        margin: 0 !important;
        font-size: 14px !important;
    }
}
