/* ==========================================================================
   KSA Jobs Alert - Main Theme Stylesheet
   Mirrors the Flutter mobile app design system and Middle Eastern aesthetics
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Typography & Global Layout
   -------------------------------------------------------------------------- */
body {
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-scaffold);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.site-main {
    min-height: calc(100vh - 400px);
}

.feed-container,
.single-job-wrapper,
.hero-inner-container,
.footer-container,
.header-container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

@media (min-width: 892px) {
    .header-container,
    .footer-container,
    .feed-container,
    .single-job-wrapper,
    .hero-inner-container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* --------------------------------------------------------------------------
   2. Curved Navy Header & Background Texture
   -------------------------------------------------------------------------- */
.site-header {
    position: relative;
    background-color: var(--primary-color);
    background-image: url('../images/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0 0 var(--header-curve) var(--header-curve);
    box-shadow: 0 10px 25px rgba(2, 48, 71, 0.16);
    color: #ffffff;
    z-index: 1000;
    padding-bottom: 8px;
    /* overflow must NOT be hidden — needed for dropdown menus */
    overflow: visible;
}

[data-theme="dark"] .site-header {
    background-color: #1a1a1a;
    background-image: url('../images/bg.webp');
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.header-texture-overlay {
    display: none;
}

.header-container {
    position: relative;
    padding-top: 14px;
    padding-bottom: 14px;
    z-index: 1001;
    overflow: visible;
}

.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* Brand (Logo on Left, Site Title & Tagline vertically centered on Right) */
.header-brand {
    display: flex;
    align-items: center;
}

.header-brand .header-brand-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

.header-brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.header-site-title {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin: 0;
}

.header-site-tagline {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.2;
    margin-top: 2px;
}

/* Desktop Navigation (Supports WordPress Appearance -> Menus) */
.desktop-nav {
    display: none;
}

@media (min-width: 892px) {
    .desktop-nav {
        display: block;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.nav-links li,
.nav-links .menu-item {
    position: relative;
    list-style: none;
}

/* ---- Dropdown Sub-Menu ---- */
.nav-links .sub-menu,
.nav-links .nav-dropdown-menu,
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    min-width: 210px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    padding: 8px 6px;
    list-style: none;
    margin: 4px 0 0;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
    display: block;
}

/* Invisible hover bridge to prevent hover loss when moving mouse into dropdown */
.nav-links .sub-menu::before,
.nav-links .nav-dropdown-menu::before,
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 12px;
    display: block;
}

[data-theme="dark"] .nav-links .sub-menu,
[data-theme="dark"] .nav-links .nav-dropdown-menu,
[data-theme="dark"] .nav-dropdown-menu {
    background: #1e2430;
    border-color: #2d3748;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.nav-links .has-dropdown:hover > .sub-menu,
.nav-links .has-nav-dropdown:hover > .nav-dropdown-menu,
.nav-links .menu-item-has-children:hover > .sub-menu,
.nav-links .has-dropdown:focus-within > .sub-menu,
.nav-links .has-nav-dropdown:focus-within > .nav-dropdown-menu,
.nav-links .menu-item-has-children:focus-within > .sub-menu,
.nav-links .has-dropdown.dropdown-open > .sub-menu,
.nav-links .has-nav-dropdown.dropdown-open > .nav-dropdown-menu,
.nav-links .menu-item-has-children.dropdown-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-links .sub-menu li,
.nav-links .nav-dropdown-menu li,
.nav-dropdown-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-links .sub-menu li a,
.nav-links .nav-dropdown-menu li a,
.nav-dropdown-menu li a {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 9px 14px !important;
    border-radius: 8px !important;
    color: #1e293b !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    background: transparent !important;
}

[data-theme="dark"] .nav-links .sub-menu li a,
[data-theme="dark"] .nav-links .nav-dropdown-menu li a,
[data-theme="dark"] .nav-dropdown-menu li a {
    color: #f1f5f9 !important;
}

.nav-links .sub-menu li a:hover,
.nav-links .nav-dropdown-menu li a:hover,
.nav-dropdown-menu li a:hover {
    background: rgba(2, 132, 199, 0.1) !important;
    color: var(--highlight-blue) !important;
}

.nav-links .sub-menu li a.nav-logout-link,
.nav-links .nav-dropdown-menu li a.dropdown-logout-item,
.dropdown-logout-item {
    color: #ef4444 !important;
    border-top: 1px solid var(--border-color);
    margin-top: 4px;
    padding-top: 10px !important;
}

.nav-links .sub-menu li a.nav-logout-link:hover,
.nav-links .nav-dropdown-menu li a.dropdown-logout-item:hover,
.dropdown-logout-item:hover {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #ef4444 !important;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* Direct top-level nav links only — does NOT affect sub-menus */
.nav-links > li > a,
.nav-links > .menu-item > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 11px;
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li.current-item > a,
.nav-links > .current-menu-item > a,
.nav-links > .current_page_item > a {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.nav-links li a.nav-ai-pill {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.nav-links li a.nav-ai-pill:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
}

.desktop-saved-badge {
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}

/* Action Icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn {
    background: rgba(255, 255, 255, 0.16);
    border: none;
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: scale(1.05);
}

.mobile-menu-trigger {
    display: flex;
}

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

/* Dark Mode Icon Switching */
.theme-icon-light {
    display: none;
}
[data-theme="dark"] .theme-icon-dark {
    display: none;
}
[data-theme="dark"] .theme-icon-light {
    display: inline-block;
    color: #facc15;
}

/* --------------------------------------------------------------------------
   3. Mobile App Drawer
   -------------------------------------------------------------------------- */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.app-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 290px;
    max-width: 80vw;
    background: var(--card-bg);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.app-drawer.active {
    transform: translateX(0);
}

.drawer-header {
    background-color: var(--primary-color);
    background-image: url('../images/bg.webp');
    background-size: cover;
    padding: 24px 16px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0 0 20px 0;
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.drawer-logo-wrap img {
    border-radius: 12px;
}

.drawer-tagline strong {
    display: block;
    font-size: 15px;
    line-height: 1.2;
}

.drawer-tagline span {
    font-size: 12px;
    opacity: 0.85;
}

.drawer-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
}

.drawer-body {
    padding: 16px 12px;
    flex: 1;
}

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

.drawer-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.drawer-menu li a i {
    font-size: 16px;
    color: var(--accent-color);
    width: 22px;
    text-align: center;
}

.drawer-menu li.active a,
.drawer-menu li a:hover {
    background: rgba(2, 48, 71, 0.08);
}

[data-theme="dark"] .drawer-menu li.active a,
[data-theme="dark"] .drawer-menu li a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.drawer-menu li a.drawer-highlight {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(3, 105, 161, 0.15) 100%);
    color: var(--highlight-blue);
}

.badge-pill {
    margin-left: auto;
    background: var(--highlight-blue);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
}

.saved-count-badge {
    margin-left: auto;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.drawer-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 16px 14px 6px;
    text-transform: uppercase;
}

.drawer-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
}

.theme-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
}

.switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

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

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #cbd5e1;
    border-radius: 24px;
    transition: 0.3s;
}

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

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

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

/* --------------------------------------------------------------------------
   4. Hero Search & City Filter Pills
   -------------------------------------------------------------------------- */
.home-hero-section {
    padding: 24px 0 12px;
}

.hero-content {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--badge-bg);
    color: var(--badge-text);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-title {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 8px;
    color: var(--text-main);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 32px;
    }
}

.hero-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 20px;
}

.hero-search-form {
    margin-bottom: 20px;
}

.hero-search-bar {
    display: flex;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 6px 8px 6px 18px;
    box-shadow: var(--shadow-md);
    transition: border-color 0.2s;
}

.hero-search-bar:focus-within {
    border-color: var(--highlight-blue);
}

.hero-search-bar .search-icon {
    color: var(--text-muted);
    font-size: 16px;
    margin-right: 10px;
}

.hero-search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: inherit;
    background: transparent;
    color: var(--text-main);
}

.hero-search-submit {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 24px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-search-submit:hover {
    background: var(--accent-color);
}

/* City Pills Row */
.hero-pills-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    overflow: hidden;
}

.pills-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pills-scroll-container {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.pills-scroll-container::-webkit-scrollbar {
    display: none;
}

.city-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.city-pill i {
    color: var(--highlight-blue);
    font-size: 11px;
}

.city-pill:hover {
    border-color: var(--highlight-blue);
    color: var(--highlight-blue);
    transform: translateY(-1px);
}

.city-pill.view-all {
    background: rgba(33, 150, 243, 0.1);
    color: var(--highlight-blue);
    border-color: transparent;
}

/* --------------------------------------------------------------------------
   5. Job Cards Grid & Single Card (NewsListItem mirror)
   -------------------------------------------------------------------------- */
.jobs-feed-section {
    padding: 20px 0 40px;
}

.feed-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.feed-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.feed-title i {
    color: var(--accent-color);
}

[data-theme="dark"] .feed-title i {
    color: var(--highlight-blue);
}

.feed-subtitle {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-ai-promo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(3, 105, 161, 0.25);
    transition: transform 0.2s;
}

.btn-ai-promo:hover {
    transform: scale(1.03);
    color: #ffffff;
}

/* Job Cards Grid (Strict Single Column - 1 post per row) */
.jobs-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}

/* Single Job Card */
.job-card-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.job-card-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(33, 150, 243, 0.4);
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.job-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-title a {
    color: var(--text-main);
    text-decoration: none;
}

.job-card-title a:hover {
    color: var(--highlight-blue);
}

.job-card-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

/* Animated Latest Badge */
.badge-latest {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #2196f3;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    display: inline-block;
    animation: badgePulse 1.4s infinite ease-in-out;
}

@keyframes badgePulse {
    0% { transform: scale(0.8); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.8); opacity: 0.6; }
}

/* Card Divider with 'Apply Now' Button on the Right */
.job-card-action-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0 10px;
}

.job-card-action-divider .divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.btn-card-apply {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--highlight-blue) 0%, var(--primary-color) 100%);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 18px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(2, 48, 71, 0.15);
    flex-shrink: 0;
}

.btn-card-apply:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--highlight-blue) 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(33, 150, 243, 0.3);
}

.btn-card-apply i {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.btn-card-apply:hover i {
    transform: translateX(3px);
}

/* 4-Cell Metadata Grid */
.job-meta-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
    gap: 8px;
    align-items: center;
}

.meta-cell {
    display: flex;
    flex-direction: column;
}

.meta-cell-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2px;
    text-transform: uppercase;
}

.meta-cell-value {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 4px;
}

.meta-cell-value i {
    font-size: 10px;
    color: var(--text-muted);
}

/* City Meta: clean unhighlighted text matching other cells, supporting multiple cities */
.meta-cell-value.meta-cities-wrap {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    white-space: normal;
    line-height: 1.4;
    gap: 2px 4px;
}

.meta-city .meta-city-link {
    color: var(--text-main);
    text-decoration: none;
    display: inline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.meta-city .meta-city-link:hover {
    color: var(--highlight-blue);
    text-decoration: underline;
}

.meta-city-sep {
    color: var(--text-muted);
    font-weight: 400;
}

/* --------------------------------------------------------------------------
   6. Single Job Post Layout (ArticleDetailScreen mirror)
   -------------------------------------------------------------------------- */
.single-job-page-container {
    padding: 24px 0 50px;
}

.single-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.single-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}

.single-breadcrumbs a:hover {
    color: var(--highlight-blue);
}

.breadcrumb-separator {
    font-size: 9px;
    opacity: 0.6;
}

.breadcrumb-current {
    font-weight: 700;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 320px;
}

.single-job-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.single-featured-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

.single-job-content-wrap {
    padding: 24px 20px;
}

@media (min-width: 768px) {
    .single-job-content-wrap {
        padding: 32px 30px;
    }
}

.single-job-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.single-job-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    color: var(--text-main);
}

@media (min-width: 768px) {
    .single-job-title {
        font-size: 26px;
    }
}

.single-meta-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.single-category-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.single-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(33, 150, 243, 0.12);
    color: var(--highlight-blue);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.single-action-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action-icon-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}

[data-theme="dark"] .action-icon-btn {
    background: rgba(255, 255, 255, 0.05);
}

.action-icon-btn:hover {
    color: var(--highlight-blue);
    border-color: var(--highlight-blue);
}

.single-meta-actions-only {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}

/* Bookmark icon states (single icon at a time, fixes double icon bug) */
.btn-bookmark-toggle .icon-saved {
    display: none !important;
}

.btn-bookmark-toggle .icon-unsaved {
    display: inline-block !important;
}

.btn-bookmark-toggle.is-saved .icon-saved {
    display: inline-block !important;
    color: #eab308 !important;
}

.btn-bookmark-toggle.is-saved .icon-unsaved {
    display: none !important;
}

/* 4-Box Single Info Grid */
.single-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 22px;
}

@media (min-width: 600px) {
    .single-info-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

[data-theme="dark"] .single-info-grid {
    background: rgba(255, 255, 255, 0.03);
}

.single-info-box {
    display: flex;
    flex-direction: column;
}

.single-info-box .info-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 3px;
}

.single-info-box .info-value {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-info-box .info-value i {
    color: var(--highlight-blue);
}

.single-info-box .info-value.info-cities-wrap {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    white-space: normal;
    gap: 2px 4px;
    line-height: 1.4;
}

.single-city-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.single-city-link:hover {
    color: var(--highlight-blue);
    text-decoration: underline;
}

/* Multilingual Translation Tabs Card */
.translation-bar-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.translation-bar-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.translation-tabs-list {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.trans-tab-btn {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 4px 12px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

[data-theme="dark"] .trans-tab-btn {
    background: rgba(255, 255, 255, 0.05);
}

.trans-tab-btn.active,
.trans-tab-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* Post Typography Entry Content */
.post-typography {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-main);
}

.post-typography p {
    margin-bottom: 1.2em;
}

.post-typography h2,
.post-typography h3,
.post-typography h4 {
    color: var(--text-main);
    font-weight: 800;
    margin: 1.4em 0 0.6em;
}

.post-typography ul,
.post-typography ol {
    padding-left: 24px;
    margin-bottom: 1.4em;
}

.post-typography li {
    margin-bottom: 0.5em;
}

.post-typography blockquote {
    border-left: 4px solid var(--highlight-blue);
    margin: 1.4em 0;
    padding: 10px 16px;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

/* --------------------------------------------------------------------------
   7. Post Disclaimer Notice Box (Plugin Settings driven)
   -------------------------------------------------------------------------- */
.post-disclaimer-card {
    background: rgba(2, 48, 71, 0.03);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--highlight-blue);
    border-radius: 8px;
    padding: 14px 16px;
    margin: 28px 0;
}

[data-theme="dark"] .post-disclaimer-card {
    background: rgba(255, 255, 255, 0.03);
    border-left-color: #38bdf8;
}

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

.disclaimer-icon {
    color: var(--highlight-blue);
    font-size: 16px;
}

.disclaimer-title {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-main);
}

.disclaimer-body {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   8. "Follow Us On" Social Channels Bar
   -------------------------------------------------------------------------- */
.single-social-channels {
    margin: 28px 0 16px;
}

.social-channels-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.social-channels-header .divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.social-channels-header .channels-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.channels-btn-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

@media (min-width: 600px) {
    .channels-btn-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.channel-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s;
}

.channel-card:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.channel-card.whatsapp { background: #25d366; }
.channel-card.telegram { background: #229ed9; }
.channel-card.facebook { background: #1877f2; }
.channel-card.linkedin { background: #0a66c2; }

/* Bottom mini share bar */
.single-bottom-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.share-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.share-mini-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mini-share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.2s;
}

.mini-share-btn:hover {
    transform: scale(1.1);
}

.mini-share-btn.wa { background: #25d366; }
.mini-share-btn.tg { background: #229ed9; }
.mini-share-btn.fb { background: #1877f2; }
.mini-share-btn.li { background: #0a66c2; }

/* Suppress plugin's unstyled desktop disclaimer (the one without heading) */
.iaam-desktop-disclaimer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Similar Job Openings: 2-Column Grid View on Desktop, 1-Column on Mobile */
.related-jobs-section {
    margin-top: 40px;
}

.related-header {
    margin-bottom: 20px;
}

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

.related-header h3 i {
    color: var(--highlight-blue);
}

.related-jobs-section .jobs-list-grid,
.related-jobs-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    max-width: 100% !important;
}

@media (max-width: 768px) {
    .related-jobs-section .jobs-list-grid,
    .related-jobs-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --------------------------------------------------------------------------
   9. AI CV Writer Tool Styles
   -------------------------------------------------------------------------- */
.ai-cv-app-container {
    padding: 24px 0 50px;
}

/* AI Disclaimer Note */
.ai-disclaimer-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.12) 0%, rgba(245, 158, 11, 0.08) 100%);
    border: 1px solid rgba(234, 179, 8, 0.35);
    border-left: 4px solid #eab308;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.55;
}

.ai-disclaimer-note i {
    color: #ca8a04;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.ai-disclaimer-note span {
    opacity: 0.9;
}

.ai-disclaimer-bottom {
    margin-top: 16px;
    margin-bottom: 8px;
}

[data-theme="dark"] .ai-disclaimer-note {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(245, 158, 11, 0.06) 100%);
    border-color: rgba(234, 179, 8, 0.25);
    border-left-color: #ca8a04;
    color: rgba(255, 255, 255, 0.85);
}

.ai-cv-header-card {
    background: var(--primary-color);
    background-image: url('../images/bg.webp');
    background-size: cover;
    color: #ffffff;
    padding: 28px 24px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    margin-bottom: 28px;
    text-align: center;
}

.ai-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.ai-cv-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #ffffff;
}

@media (min-width: 768px) {
    .ai-cv-title {
        font-size: 30px;
    }
}

.ai-cv-desc {
    max-width: 680px;
    margin: 0 auto 20px;
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

.ai-language-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lang-bar-label {
    font-size: 12px;
    font-weight: 700;
}

.ai-lang-pills {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ai-lang-pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.ai-lang-pill.active,
.ai-lang-pill:hover {
    background: #ffffff;
    color: var(--primary-color);
}

/* Forms & Step Cards */
.ai-cv-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-step-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.step-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.step-number {
    width: 28px;
    height: 28px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.step-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    flex: 1;
}

.btn-add-repeater {
    background: rgba(33, 150, 243, 0.1);
    color: var(--highlight-blue);
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-repeater:hover {
    background: var(--highlight-blue);
    color: #ffffff;
}

.form-row {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

@media (min-width: 600px) {
    .form-row-2 { grid-template-columns: repeat(2, 1fr); }
    .form-row-3 { grid-template-columns: repeat(3, 1fr); }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.form-control,
.form-select-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.form-control:focus,
.form-select-control:focus {
    border-color: var(--highlight-blue);
}

/* Repeater items */
.repeater-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
    position: relative;
}

[data-theme="dark"] .repeater-item {
    background: rgba(255, 255, 255, 0.02);
}

.btn-remove-repeater {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
}

/* Generate Button */
.btn-generate-cv {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #0284c7 0%, #023047 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-generate-cv:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* CV Preview Paper Document (A4 look) */
.ai-cv-preview-wrapper {
    margin-top: 30px;
}

.preview-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-status-pill {
    background: #dcfce7;
    color: #166534;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-action-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-preview-action {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-preview-action:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.cv-sheet-paper-container {
    padding: 10px 0 30px;
}

.cv-sheet-paper {
    background: #ffffff;
    color: #1e293b;
    border-radius: 16px;
    padding: 42px 48px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid #e2e8f0;
    max-width: 860px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

/* ─── Profile Photo Upload in Form ─── */
.cv-photo-upload-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: 12px;
    margin-bottom: 18px;
}

[data-theme="dark"] .cv-photo-upload-row {
    background: rgba(255, 255, 255, 0.02);
}

.cv-photo-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    overflow: hidden;
    border: 2px solid #cbd5e1;
    flex-shrink: 0;
}

.cv-photo-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-photo-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.btn-upload-photo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #ffffff;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    width: fit-content;
}

.btn-upload-photo:hover {
    background: #0284c7;
    transform: translateY(-1px);
}

.btn-remove-photo {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    width: fit-content;
}

.btn-remove-photo:hover {
    text-decoration: underline;
}

.cv-photo-hint {
    font-size: 11px;
    color: var(--text-muted);
}

/* ─── Dates Row & Checkboxes ─── */
.form-dates-row {
    align-items: flex-end;
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    margin-bottom: 10px;
}

.checkbox-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

/* ─── Template Selector Bar ─── */
.cv-template-selector-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 18px 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.selector-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 14px;
}

.selector-card-title i {
    color: var(--primary-color);
}

.cv-template-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .cv-template-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .cv-template-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.template-choice-card {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.template-choice-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.template-choice-card.active {
    border-color: var(--primary-color);
    background: rgba(2, 132, 199, 0.05);
    box-shadow: 0 0 0 1px var(--primary-color), var(--shadow-sm);
}

.template-color-preview {
    height: 24px;
    border-radius: 6px;
    width: 100%;
}

.template-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.template-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px;
}

.badge-recommended {
    background: #fef08a;
    color: #854d0e;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
}

.template-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   CV TEMPLATES STYLING (A4 Document Layouts)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Global CV Document Section Styles */
.cv-template {
    color: #1e293b;
    line-height: 1.55;
    font-size: 13px;
}

.tmpl-candidate-name {
    font-size: 26px;
    font-weight: 900;
    margin: 0 0 4px;
    letter-spacing: -0.5px;
}

.tmpl-candidate-role {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
}

.tmpl-sec-block {
    margin-bottom: 22px;
}

.tmpl-sec-heading {
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tmpl-summary-text {
    font-size: 13px;
    line-height: 1.65;
    color: #334155;
    margin: 0;
}

.tmpl-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tmpl-tag {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.tmpl-achieve-list {
    margin: 0;
    padding-left: 18px;
    color: #334155;
    font-size: 13px;
}

.tmpl-achieve-list li {
    margin-bottom: 4px;
}

/* ─── TEMPLATE 1: Timeline Premium ─── */
.cv-tmpl-timeline .tmpl-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #7A0000;
    padding-bottom: 18px;
    margin-bottom: 22px;
    gap: 16px;
}

.cv-tmpl-timeline .tmpl-candidate-name {
    color: #7A0000;
}

.cv-tmpl-timeline .tmpl-candidate-role {
    color: #C0392B;
}

.cv-tmpl-timeline .tmpl-contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12px;
    color: #475569;
}

.cv-tmpl-timeline .tmpl-contact-bar span i {
    color: #7A0000;
}

.tmpl-timeline-avatar-wrap {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #7A0000;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(122, 0, 0, 0.15);
}

.tmpl-timeline-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cv-tmpl-timeline .tmpl-sec-heading {
    color: #7A0000;
    border-bottom: 1px solid #fee2e2;
    padding-bottom: 6px;
}

.tmpl-timeline-track {
    position: relative;
    border-left: 2px solid #f87171;
    margin-left: 8px;
    padding-left: 18px;
}

.tmpl-timeline-card {
    position: relative;
    margin-bottom: 16px;
}

.tmpl-timeline-bullet {
    position: absolute;
    left: -24px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #7A0000;
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #7A0000;
}

.tmpl-timeline-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 700;
    color: #0f172a;
    font-size: 13.5px;
}

.tmpl-timeline-badge {
    background: #fdf2f2;
    color: #7A0000;
    border: 1px solid #fecaca;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.tmpl-item-sub {
    font-size: 12px;
    color: #64748b;
    margin-top: 1px;
}

.tmpl-item-desc {
    font-size: 12.5px;
    color: #334155;
    margin-top: 4px;
    line-height: 1.5;
}

.tmpl-bullets-list {
    margin: 6px 0 2px 0;
    padding-left: 20px;
    list-style: disc;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tmpl-bullets-list li {
    font-size: 12.5px;
    line-height: 1.55;
    color: #334155;
    margin: 0;
    padding: 0;
}

.cv-tmpl-timeline .tmpl-bullets-list li::marker {
    color: #7A0000;
}

.cv-tmpl-modern-sidebar .tmpl-bullets-list li::marker {
    color: #0F4C81;
}

.cv-tmpl-executive .tmpl-bullets-list li::marker {
    color: #023047;
}

.cv-tmpl-classic.tmpl-theme-classic_crimson .tmpl-bullets-list li::marker {
    color: #7A0000;
}

.cv-tmpl-classic.tmpl-theme-classic_navy .tmpl-bullets-list li::marker {
    color: #023047;
}

.cv-tmpl-classic.tmpl-theme-classic_charcoal .tmpl-bullets-list li::marker {
    color: #2B2B2B;
}

.tmpl-tag-crimson {
    background: #fdf2f2;
    color: #7A0000;
    border: 1px solid #fecaca;
}

.tmpl-tag-outline {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #334155;
}

/* ─── TEMPLATE 2: Modern Sidebar ─── */
.cv-tmpl-modern-sidebar {
    display: grid;
    grid-template-columns: 240px 1fr;
    border-radius: 12px;
    overflow: hidden;
    margin: -42px -48px;
    min-height: 800px;
}

.tmpl-sidebar-left {
    background: #0F4C81;
    color: #ffffff;
    padding: 36px 22px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tmpl-sidebar-avatar-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.85);
    overflow: hidden;
    margin: 0 auto 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.tmpl-sidebar-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmpl-avatar-placeholder {
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: #ffffff;
}

.tmpl-side-heading {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 6px;
    margin: 0 0 10px;
}

.tmpl-side-contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.9);
    word-break: break-all;
}

.tmpl-side-contacts i {
    width: 14px;
    color: #38bdf8;
    margin-right: 4px;
}

.tmpl-side-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tmpl-side-tag {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.tmpl-sidebar-right {
    padding: 36px 36px 36px 30px;
    background: #ffffff;
}

.tmpl-indigo-title {
    color: #0F4C81;
}

.tmpl-indigo-sub {
    color: #2B7A78;
}

.tmpl-heading-indigo {
    color: #0F4C81;
    border-bottom: 1.5px solid #0F4C81;
    padding-bottom: 4px;
}

.tmpl-sidebar-item {
    margin-bottom: 14px;
}

.tmpl-sidebar-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
}

.tmpl-date-pill {
    font-size: 11px;
    font-weight: 700;
    color: #0F4C81;
    background: #f0f7ff;
    border: 1px solid #bae6fd;
    padding: 1px 7px;
    border-radius: 10px;
}

/* ─── TEMPLATE 3: Executive Bar ─── */
.cv-tmpl-executive {
    margin: -42px -48px;
}

.tmpl-exec-banner {
    background: linear-gradient(135deg, #7A0000 0%, #1B365D 100%);
    color: #ffffff;
    padding: 32px 42px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.tmpl-exec-name {
    font-size: 28px;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 4px;
    letter-spacing: -0.5px;
}

.tmpl-exec-role {
    font-size: 15px;
    font-weight: 700;
    color: #fca5a5;
    margin: 0 0 10px;
}

.tmpl-exec-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
}

.tmpl-exec-contacts i {
    color: #fca5a5;
}

.tmpl-exec-avatar-wrap {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.85);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.tmpl-exec-avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tmpl-exec-body {
    padding: 32px 42px;
    background: #ffffff;
}

.tmpl-exec-sec {
    margin-bottom: 22px;
}

.tmpl-exec-heading {
    background: #7A0000;
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 4px;
    margin: 0 0 12px;
}

.tmpl-exec-item {
    margin-bottom: 14px;
    padding-left: 4px;
}

.tmpl-exec-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 700;
    color: #0f172a;
    font-size: 13.5px;
}

.tmpl-exec-date {
    font-size: 11.5px;
    font-weight: 700;
    color: #7A0000;
}

.tmpl-tag-exec {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #1B365D;
    font-weight: 700;
}

/* ─── TEMPLATES 4, 5, 6: Classic Single Column (Crimson, Navy, Charcoal) ─── */
.cv-tmpl-classic .tmpl-classic-header {
    border-bottom: 2px solid var(--classic-color, #7A0000);
    padding-bottom: 14px;
    margin-bottom: 20px;
    text-align: center;
}

.cv-tmpl-classic .tmpl-classic-name {
    font-size: 26px;
    font-weight: 900;
    margin: 0 0 4px;
    letter-spacing: -0.5px;
}

.cv-tmpl-classic .tmpl-classic-role {
    font-size: 15px;
    font-weight: 700;
    color: #475569;
    margin: 0 0 8px;
}

.cv-tmpl-classic .tmpl-classic-contacts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: #64748b;
}

.cv-tmpl-classic .tmpl-classic-sec {
    margin-bottom: 20px;
}

.cv-tmpl-classic .tmpl-classic-heading {
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1.5px solid var(--classic-color, #7A0000);
    padding-bottom: 4px;
    margin: 0 0 10px;
}

.cv-tmpl-classic .tmpl-classic-item {
    margin-bottom: 12px;
}

.cv-tmpl-classic .tmpl-classic-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-weight: 700;
    color: #0f172a;
    font-size: 13px;
}

.cv-tmpl-classic .tmpl-classic-date {
    font-size: 11.5px;
    font-style: italic;
    font-weight: 600;
}

.tmpl-tag-classic {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

/* ─── CV Document Print Styling ─── */
@media print {
    body * {
        visibility: hidden !important;
    }
    .cv-sheet-paper,
    .cv-sheet-paper * {
        visibility: visible !important;
    }
    .cv-sheet-paper {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        padding: 20px !important;
        border: none !important;
        margin: 0 !important;
    }
    .cv-tmpl-modern-sidebar,
    .cv-tmpl-executive {
        margin: 0 !important;
    }
    .preview-actions-bar,
    .cv-template-selector-card,
    .ai-cv-header-card,
    .ai-form-wrapper,
    header,
    footer {
        display: none !important;
    }
}

/* AI Loading Modal */
.ai-loading-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.ai-loading-modal-overlay.active {
    display: flex;
}

.ai-loading-modal-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    max-width: 380px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.ai-spinner {
    position: relative;
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
}

.spinner-ring {
    position: absolute;
    inset: 0;
    border: 4px solid rgba(33, 150, 243, 0.2);
    border-top-color: var(--highlight-blue);
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

.spinner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: var(--highlight-blue);
}

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

/* --------------------------------------------------------------------------
   10. Categories & Cities Grid Styles
   -------------------------------------------------------------------------- */
.categories-hero-section {
    padding: 24px 0 10px;
    text-align: center;
}

.categories-title {
    font-size: 26px;
    font-weight: 800;
    margin: 8px 0;
    color: var(--text-main);
}

.categories-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 20px;
}

.category-block-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.city-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

@media (min-width: 600px) {
    .city-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .city-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.city-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.city-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--highlight-blue);
}

.city-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(33, 150, 243, 0.1);
    color: var(--highlight-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.city-card-info {
    flex: 1;
}

.city-card-info h3 {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.city-card-info span {
    font-size: 11px;
    color: var(--text-muted);
}

.city-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.city-card:hover .city-arrow {
    transform: translateX(4px);
    color: var(--highlight-blue);
}

.cat-pill-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 600px) {
    .cat-pill-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .cat-pill-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.cat-grid-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
}

.cat-grid-card:hover {
    border-color: var(--highlight-blue);
    transform: translateY(-1px);
}

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

.cat-icon-wrap {
    color: var(--highlight-blue);
    font-size: 14px;
}

.cat-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}

.cat-count-pill {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

[data-theme="dark"] .cat-count-pill {
    background: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------------
   11. Footer & Mobile Bottom Navigation Bar (AppBottomNav mirror)
   -------------------------------------------------------------------------- */
.site-footer {
    position: relative;
    background-color: #021f2f;
    background-image: url('../images/bg.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: rgba(255, 255, 255, 0.85);
    padding: 48px 0 30px;
    margin-top: 40px;
    overflow: hidden;
}

[data-theme="dark"] .site-footer {
    background-color: #0d0d0d;
    background-image: url('../images/bg.webp');
    border-top: 1px solid #222;
}

.footer-texture-overlay {
    display: none;
}

.footer-container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 36px;
}

@media (min-width: 600px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 892px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 20px;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.footer-logo img {
    border-radius: 10px;
}

.footer-brand-text h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
}

.footer-brand-text p {
    margin: 0;
    font-size: 11px;
    opacity: 0.8;
}

.footer-desc {
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 16px;
    opacity: 0.8;
}

.footer-social-links {
    display: flex;
    gap: 8px;
}

.social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.2s;
}

.social-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.social-btn.whatsapp { background: #25d366; }
.social-btn.telegram { background: #229ed9; }
.social-btn.facebook { background: #1877f2; }
.social-btn.linkedin { background: #0a66c2; }

.footer-heading {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 16px;
}

.footer-menu-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu-links li {
    margin-bottom: 10px;
}

.footer-menu-links li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.footer-menu-links li a:hover {
    color: #38bdf8;
}

.footer-menu-links li a:not(:has(i))::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    opacity: 0.7;
    margin-right: 6px;
}

.footer-menu-links.footer-cities-menu li a:not(:has(i))::before {
    content: "\f3c5";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    opacity: 0.7;
    margin-right: 6px;
}

/* Footer Widget Support */
.footer-widget {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}

.footer-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 10px;
}

.footer-widget ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.footer-widget ul li a:hover {
    color: #38bdf8;
}

.footer-widget ul li a:not(:has(i))::before {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    opacity: 0.7;
    margin-right: 6px;
}

.footer-app-promo {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px;
    margin-top: 14px;
}

.app-promo-tag {
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
}

.footer-app-promo p {
    margin: 4px 0 0;
    font-size: 12px;
    opacity: 0.85;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: #ffffff;
}

.footer-bottom-nav {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-bottom-nav li {
    display: inline-flex;
    align-items: center;
}

.footer-bottom-nav li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-nav li a:hover {
    color: #ffffff;
}

/* Mobile Fixed Bottom App Bar */
.mobile-app-bottom-bar {
    display: none;
}

@media (max-width: 768px) {
    .mobile-app-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 62px;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(16px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
        z-index: 900;
        align-items: center;
        justify-content: space-around;
        padding-bottom: env(safe-area-inset-bottom);
    }

    [data-theme="dark"] .mobile-app-bottom-bar {
        background: rgba(30, 30, 30, 0.94);
        border-top-color: rgba(255, 255, 255, 0.08);
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4);
    }

    body {
        padding-bottom: 70px;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    gap: 3px;
    transition: color 0.2s;
    flex: 1;
}

.bottom-nav-item i {
    font-size: 18px;
}

.bottom-nav-item.active {
    color: var(--highlight-blue);
}

.bottom-nav-special {
    position: relative;
    top: -12px;
}

.bottom-nav-special-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0284c7 0%, #023047 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(2, 48, 71, 0.35);
}

.bottom-nav-special span {
    font-weight: 700;
    color: var(--highlight-blue);
}

.bottom-nav-icon-wrap {
    position: relative;
}

.mobile-saved-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 4px;
    border-radius: 8px;
    line-height: 1;
}

/* --------------------------------------------------------------------------
   12. Modals (Search, Share, Report)
   -------------------------------------------------------------------------- */
.search-modal-overlay,
.share-modal-overlay,
.report-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.search-modal-overlay.active,
.share-modal-overlay.active,
.report-modal-overlay.active {
    display: flex;
}

.search-modal-card,
.share-modal-card,
.report-modal-card {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
}

.search-modal-header,
.share-modal-header,
.report-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.search-modal-header h3,
.share-modal-header h3,
.report-modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-modal-close,
.share-modal-close,
.report-modal-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    padding: 0;
}

.search-modal-close:hover,
.share-modal-close:hover,
.report-modal-close:hover {
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .search-modal-close:hover,
[data-theme="dark"] .share-modal-close:hover,
[data-theme="dark"] .report-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-input-wrap {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 4px 6px 4px 12px;
    margin-bottom: 16px;
}

.search-input-wrap:focus-within {
    border-color: var(--highlight-blue);
}

.search-input-field {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-main);
    background: transparent;
}

.search-submit-btn {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.quick-tags {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    color: var(--text-muted);
}

.quick-tags a {
    background: rgba(0, 0, 0, 0.05);
    padding: 3px 8px;
    border-radius: 6px;
    color: var(--text-main);
    text-decoration: none;
}

[data-theme="dark"] .quick-tags a {
    background: rgba(255, 255, 255, 0.08);
}

/* Share modal buttons */
.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.share-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.share-action-btn.share-wa { background: #25d366; }
.share-action-btn.share-tg { background: #229ed9; }
.share-action-btn.share-fb { background: #1877f2; }
.share-action-btn.share-li { background: #0a66c2; }

.copy-link-wrap {
    display: flex;
    gap: 8px;
}

.copy-link-wrap input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-main);
}

.copy-link-wrap button {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
}

/* Buttons utility */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-color);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-main);
}

[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
}

.btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.btn-outline-danger {
    background: transparent;
    border: 1px solid #ef4444;
    color: #ef4444;
}

.btn-outline-danger:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Empty States */
.no-jobs-found-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 40px 20px;
    text-align: center;
    grid-column: 1 / -1;
}

.no-jobs-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 16px;
    background: rgba(33, 150, 243, 0.1);
    color: var(--highlight-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.no-jobs-found-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
}

.no-jobs-found-card p {
    color: var(--text-muted);
    font-size: 14px;
    max-width: 440px;
    margin: 0 auto 20px;
}

/* Pagination */
.jobs-pagination-wrap {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.jobs-pagination-wrap .nav-links {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.jobs-pagination-wrap .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.2s;
}

.jobs-pagination-wrap .page-numbers.current,
.jobs-pagination-wrap .page-numbers:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* ==========================================================================
   Rewarded Ad Modal  — mirrors Flutter app rewarded video experience
   ========================================================================== */
.rewarded-ad-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.82);
    display: flex !important;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.rewarded-ad-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.rewarded-ad-modal-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    width: 92%;
    max-width: 420px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    animation: rewardedSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes rewardedSlideIn {
    from { transform: translateY(40px) scale(0.94); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* Top bar */
.rewarded-ad-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--primary-color);
    color: #ffffff;
}

.rewarded-ad-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.rewarded-ad-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.92;
}

.timer-countdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    font-weight: 800;
}

.rewarded-ad-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #ffffff;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.rewarded-ad-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Content slot */
.rewarded-ad-content-slot {
    padding: 20px 16px 8px;
}

.rewarded-ad-frame {
    border-radius: 12px;
    overflow: hidden;
}

.ad-sponsor-banner {
    background: linear-gradient(135deg, #023047 0%, #126782 100%);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    color: #ffffff;
}

.ad-tag {
    font-size: 10px;
    letter-spacing: 1.5px;
    font-weight: 700;
    opacity: 0.65;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.ad-sponsor-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ad-icon-large {
    font-size: 36px;
    opacity: 0.88;
}

#rewardedAdTitle {
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
}

#rewardedAdDesc {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
    line-height: 1.5;
}

.btn-ad-visit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-ad-visit:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

/* Progress bar */
.rewarded-ad-progress-bar {
    height: 4px;
    background: var(--border-color);
    margin: 12px 16px 0;
    border-radius: 2px;
    overflow: hidden;
}

.rewarded-ad-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color, #fb8500));
    border-radius: 2px;
    transition: width 1s linear;
}

/* Footer action bar */
.rewarded-ad-footer-bar {
    padding: 12px 16px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ad-reward-notice {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-claim-reward {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
    animation: claimPulse 1.5s ease-in-out infinite;
}

.btn-claim-reward:hover {
    background: var(--primary-dark, #012535);
    transform: scale(1.04);
}

@keyframes claimPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb, 2, 48, 71), 0.4); }
    50%       { box-shadow: 0 0 0 8px rgba(var(--primary-rgb, 2, 48, 71), 0); }
}

[data-theme="dark"] .rewarded-ad-modal-overlay {
    background: rgba(0, 0, 0, 0.88);
}

/* ==========================================================================
   10. Frontend Authentication, User Account & Job Posting System
   Mirrors Flutter app's modern Middle Eastern UI & strict 860px grid
   ========================================================================== */

/* Container & Grid Width Constraint */
.auth-page-container,
.account-page-container,
.user-posts-page-container,
.submit-post-page-container {
    width: 100%;
    padding: 24px 0 60px;
}

.auth-page-container .feed-container,
.account-page-container .feed-container,
.user-posts-page-container .feed-container,
.submit-post-page-container .feed-container {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
}

@media (min-width: 892px) {
    .auth-page-container .feed-container,
    .account-page-container .feed-container,
    .user-posts-page-container .feed-container,
    .submit-post-page-container .feed-container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Nav Menu: Post Job Pill & User Dropdown */
.nav-post-job-pill {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    padding: 7px 14px !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25) !important;
    font-weight: 700 !important;
    transition: all 0.2s ease !important;
}

.nav-post-job-pill:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35) !important;
}

.menu-item.has-dropdown,
.has-nav-dropdown,
.menu-item-has-children {
    position: relative;
}

.menu-item.has-dropdown .nav-caret,
.nav-caret-icon {
    font-size: 11px;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.menu-item.has-dropdown:hover .nav-caret,
.has-nav-dropdown:hover .nav-caret-icon,
.menu-item-has-children:hover .nav-caret {
    transform: rotate(180deg);
}

/* ==========================================================================
   Auth Pages (Sign In & Sign Up)
   ========================================================================== */
.auth-header-card {
    background-color: var(--primary-color);
    background-image: url('../images/bg.webp');
    background-size: cover;
    background-position: center;
    border-radius: var(--card-radius);
    padding: 28px 24px;
    color: #ffffff;
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.auth-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

.auth-card-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #ffffff;
}

.auth-card-desc {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 20px;
    line-height: 1.5;
    max-width: 680px;
}

.auth-tabs-row {
    display: flex;
    gap: 10px;
}

.auth-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.auth-tab-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.auth-tab-btn.active {
    background: #ffffff;
    color: var(--primary-color);
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
}

.auth-alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 13.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInDown 0.25s ease;
}

.auth-alert.alert-error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.auth-alert.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 7px;
}

.required-star {
    color: #ef4444;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-field-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.input-with-icon .form-control {
    padding-left: 42px;
}

.password-input-wrap .form-control {
    padding-right: 42px;
}

.btn-toggle-password {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: color 0.15s ease;
}

.btn-toggle-password:hover {
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    background: var(--bg-scaffold);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-main);
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--highlight-blue);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15);
    background: var(--card-bg);
}

.auth-form-row-remember {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 13px;
}

.forgot-pass-link {
    color: var(--highlight-blue);
    font-weight: 600;
    text-decoration: none;
}

.forgot-pass-link:hover {
    text-decoration: underline;
}

.custom-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-main);
    user-select: none;
}

.custom-checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox-box {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 2px solid var(--border-color);
    background: var(--bg-scaffold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.custom-checkbox-label input[type="checkbox"]:checked ~ .custom-checkbox-box {
    background: var(--highlight-blue);
    border-color: var(--highlight-blue);
}

.custom-checkbox-label input[type="checkbox"]:checked ~ .custom-checkbox-box::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ffffff;
    font-size: 10px;
}

.auth-terms-row {
    margin-bottom: 20px;
    line-height: 1.5;
}

.terms-link-trigger {
    color: var(--highlight-blue);
    text-decoration: none;
}

.terms-link-trigger:hover {
    text-decoration: underline;
}

.btn-auth-submit {
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(2, 48, 71, 0.2);
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-auth-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 48, 71, 0.25);
}

.btn-auth-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.auth-switch-footer {
    text-align: center;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    font-size: 13.5px;
    color: var(--text-muted);
}

.auth-switch-footer a {
    color: var(--highlight-blue);
    font-weight: 700;
    margin-left: 4px;
}

/* ==========================================================================
   Account / Profile Screen
   ========================================================================== */
.account-header-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.account-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.account-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--highlight-blue) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(2, 48, 71, 0.2);
    flex-shrink: 0;
}

.account-user-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account-user-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.account-user-email {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.account-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    width: fit-content;
    margin-top: 4px;
}

.account-role-badge.admin-badge {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.account-role-badge.member-badge {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.account-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-account-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 10px;
    background: var(--bg-scaffold);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.15s ease;
}

.btn-account-link:hover {
    background: var(--card-bg);
    border-color: var(--highlight-blue);
    color: var(--highlight-blue);
}

.btn-account-link.btn-account-highlight {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-color: transparent;
}

.btn-account-link.btn-account-highlight:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-account-link.btn-account-logout {
    margin-left: auto;
    color: #ef4444;
}

.btn-account-link.btn-account-logout:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
}

/* Admin Restriction Banner */
.account-admin-restriction-banner {
    display: flex;
    gap: 16px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--card-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.account-admin-restriction-banner .restriction-icon {
    font-size: 28px;
    color: #f59e0b;
    flex-shrink: 0;
    margin-top: 2px;
}

.account-admin-restriction-banner h4 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 800;
    color: #b45309;
}

.account-admin-restriction-banner p {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--text-main);
    line-height: 1.5;
}

.btn-wp-admin {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: #023047;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-wp-admin:hover {
    opacity: 0.9;
}

/* Dimmed State for Protected Forms */
.is-dimmed-form,
.is-dimmed-danger {
    opacity: 0.45;
    pointer-events: none;
    user-select: none;
    filter: grayscale(40%);
}

.account-section-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.section-card-header {
    margin-bottom: 18px;
}

.section-card-header h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-card-header .section-subtitle {
    font-size: 12.5px;
    color: var(--text-muted);
}

.form-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

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

.form-action-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 14px;
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.15s ease;
    font-family: inherit;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-color);
    transform: translateY(-1px);
}

.danger-zone-card {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.02);
}

.danger-title {
    color: #ef4444 !important;
}

.danger-zone-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 640px) {
    .danger-zone-body {
        flex-direction: column;
        align-items: flex-start;
    }
}

.danger-info-text p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-danger-delete {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease;
    font-family: inherit;
}

.btn-danger-delete:hover:not(:disabled) {
    background: #dc2626;
}

.btn-danger-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   User Posts Dashboard (Review, Published, Draft, Rejected/Deleted)
   ========================================================================== */
.user-posts-header-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.header-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
}

@media (max-width: 640px) {
    .header-card-top {
        flex-direction: column;
    }
}

.posts-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--badge-bg);
    color: var(--badge-text);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11.5px;
    font-weight: 700;
    margin-bottom: 8px;
}

.user-posts-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--text-main);
}

.user-posts-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
}

.btn-create-post-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-create-post-top:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.promo-banner-alert {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.08) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-posts-filter-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--bg-scaffold);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.filter-tab-pill:hover {
    border-color: var(--highlight-blue);
    color: var(--highlight-blue);
}

.filter-tab-pill.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.tab-count-badge {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 7px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
}

.filter-tab-pill.active .tab-count-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Post Status Badges */
.post-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
}

.badge-published {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.badge-review {
    background: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.badge-draft {
    background: rgba(100, 116, 139, 0.14);
    color: #64748b;
}

.badge-rejected {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.badge-promoted {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
}

/* User Post Actions Row */
.user-post-actions-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--bg-scaffold);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--card-radius) var(--card-radius);
    flex-wrap: wrap;
}

.btn-post-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-main);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    font-family: inherit;
}

.btn-post-action:hover {
    background: var(--bg-scaffold);
    border-color: var(--highlight-blue);
    color: var(--highlight-blue);
}

.btn-action-delete:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.05);
}

.btn-action-promote {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #ffffff !important;
    border-color: transparent;
}

.btn-action-promote:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #5b21b6 100%);
    transform: translateY(-1px);
}

.admin-moderation-group {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.btn-admin-approve {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}

.btn-admin-approve:hover {
    background: #10b981;
    color: #ffffff;
}

.btn-admin-reject {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.btn-admin-reject:hover {
    background: #ef4444;
    color: #ffffff;
}

/* ==========================================================================
   New Post / Job Submission Form & WYSIWYG Editor
   ========================================================================== */
.submit-post-header-card {
    background-color: var(--primary-color);
    background-image: url('../images/bg.webp');
    background-size: cover;
    background-position: center;
    border-radius: var(--card-radius);
    padding: 28px 24px;
    color: #ffffff;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
}

.post-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.submit-post-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    color: #ffffff;
}

.submit-post-desc {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    line-height: 1.5;
}

.submit-post-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
}

.form-section-block {
    margin-bottom: 24px;
}

.form-label-bold {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.field-hint-text {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

/* Category Multi-Select Picker */
.multi-select-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    min-height: 28px;
}

.selected-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(33, 150, 243, 0.12);
    color: var(--highlight-blue);
    border: 1px solid rgba(33, 150, 243, 0.25);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    animation: fadeIn 0.2s ease;
}

.btn-remove-cat-pill {
    background: transparent;
    border: none;
    color: var(--highlight-blue);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    margin-left: 2px;
    line-height: 1;
}

.no-cat-selected-hint {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
}

.custom-multi-select-container {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-scaffold);
    overflow: hidden;
}

.multi-select-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.multi-select-search-box i {
    color: var(--text-muted);
}

.multi-select-search-box input {
    border: none;
    background: transparent;
    width: 100%;
    font-size: 13.5px;
    color: var(--text-main);
    font-family: inherit;
    outline: none;
}

/* Category Dropdown Trigger */
.cat-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-main);
    transition: border-color 0.15s ease;
    user-select: none;
}

.cat-dropdown-trigger:hover,
.cat-dropdown-trigger.open {
    border-color: var(--highlight-blue);
}

.cat-dropdown-trigger .trigger-count-badge {
    background: var(--highlight-blue);
    color: #ffffff;
    border-radius: 50px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
}

.cat-dropdown-trigger .trigger-caret {
    transition: transform 0.2s ease;
    color: var(--text-muted);
}

.cat-dropdown-trigger.open .trigger-caret {
    transform: rotate(180deg);
}

/* Dropdown Panel */
.cat-dropdown-panel {
    display: none;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: var(--bg-scaffold);
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.cat-dropdown-panel.open {
    display: block;
    animation: fadeInDown 0.18s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cat-dropdown-trigger.open {
    border-radius: 10px 10px 0 0;
    border-bottom-color: transparent;
}

.category-options-scrollable {
    max-height: 240px;
    overflow-y: auto;
    padding: 8px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

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

.category-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    background: var(--card-bg);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 12.5px;
    transition: all 0.15s ease;
}

.category-checkbox-item:hover {
    border-color: var(--border-color);
    background: rgba(33, 150, 243, 0.05);
}

.category-checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.custom-chk-square {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-scaffold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.category-checkbox-item input[type="checkbox"]:checked ~ .custom-chk-square {
    background: var(--highlight-blue);
    border-color: var(--highlight-blue);
}

.category-checkbox-item input[type="checkbox"]:checked ~ .custom-chk-square::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #ffffff;
    font-size: 9px;
}

.cat-item-name {
    font-weight: 600;
    color: var(--text-main);
}

.cat-item-count {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: auto;
}

/* WYSIWYG Rich Editor */
.editor-header-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.btn-tool-upload {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: var(--bg-scaffold);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-tool-upload:hover {
    border-color: var(--highlight-blue);
    color: var(--highlight-blue);
}

/* ---- Link Insert Modal (Enhanced WP-style) ---- */
.editor-link-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.editor-link-modal-overlay.open {
    display: flex;
}

.editor-link-modal {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 440px;
    padding: 28px;
    animation: slideUp 0.2s ease;
}

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

.editor-link-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.editor-link-modal-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-link-modal-header h3 i {
    color: var(--highlight-blue);
}

.editor-link-modal-close {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    transition: color 0.15s;
}

.editor-link-modal-close:hover {
    color: var(--text-main);
}

.editor-link-field {
    margin-bottom: 14px;
}

.editor-link-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.editor-link-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-main);
    background: var(--bg-scaffold);
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.editor-link-field input:focus {
    border-color: var(--highlight-blue);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.12);
}

.editor-link-auto-hint {
    display: none;
    font-size: 11.5px;
    color: var(--highlight-blue);
    margin-top: 5px;
    gap: 5px;
    align-items: center;
}

.editor-link-auto-hint.visible {
    display: flex;
}

.editor-link-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.editor-link-btn-insert {
    flex: 1;
    padding: 11px 16px;
    background: var(--highlight-blue);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.editor-link-btn-insert:hover {
    background: #1565c0;
}

.editor-link-btn-cancel {
    padding: 11px 16px;
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.editor-link-btn-cancel:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.custom-rich-editor-wrapper {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: visible;
    background: var(--card-bg);
    position: relative;
}

.rich-editor-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 10px;
    background: var(--bg-scaffold);
    border-bottom: 1px solid var(--border-color);
    border-radius: 9px 9px 0 0;
    /* Sticky Toolbar */
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.admin-bar .rich-editor-toolbar {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .rich-editor-toolbar {
        top: 46px;
    }
}

.toolbar-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: var(--text-main);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.toolbar-btn:hover {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--highlight-blue);
}

.toolbar-select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    outline: none;
    font-family: inherit;
}

.toolbar-sep {
    width: 1px;
    height: 18px;
    background: var(--border-color);
    margin: 0 4px;
}

.rich-text-contenteditable {
    min-height: 280px;
    padding: 18px;
    outline: none;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-main);
    overflow-y: auto;
    word-break: break-word;
}

.rich-text-contenteditable:empty::before {
    content: attr(data-placeholder);
    color: var(--text-muted);
    font-style: italic;
    pointer-events: none;
}

.rich-text-contenteditable p {
    margin: 0 0 1em;
}

.rich-text-contenteditable h1,
.rich-text-contenteditable h2,
.rich-text-contenteditable h3,
.rich-text-contenteditable h4 {
    color: var(--text-main);
    font-weight: 800;
    margin: 1.4em 0 0.5em;
    line-height: 1.35;
}

.rich-text-contenteditable h1 { font-size: 1.55rem; border-bottom: 1px solid var(--border-color); padding-bottom: 6px; }
.rich-text-contenteditable h2 { font-size: 1.35rem; }
.rich-text-contenteditable h3 { font-size: 1.18rem; }
.rich-text-contenteditable h4 { font-size: 1.05rem; }

.rich-text-contenteditable ul,
.rich-text-contenteditable ol {
    padding-left: 26px;
    margin: 0 0 1.2em;
}

.rich-text-contenteditable li {
    margin-bottom: 0.4em;
    line-height: 1.6;
}

.rich-text-contenteditable blockquote {
    border-left: 4px solid var(--highlight-blue);
    margin: 1.2em 0;
    padding: 10px 16px;
    background: rgba(33, 150, 243, 0.05);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-muted);
}

.rich-text-contenteditable hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 1.5em 0;
}

.rich-text-contenteditable img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 14px 0;
    display: block;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Toolbar Media Buttons (Image & PDF) */
.toolbar-media-btn {
    color: var(--highlight-blue);
    background: rgba(33, 150, 243, 0.08);
}

.toolbar-media-btn:hover {
    background: var(--highlight-blue);
    color: #ffffff;
}

/* Responsive Table Styles (Editor & Front-end) */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    margin: 1.4em 0;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.editor-content-table,
.post-typography table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--card-bg);
    text-align: left;
}

.editor-content-table th,
.post-typography table th {
    background: var(--bg-scaffold);
    color: var(--text-main);
    font-weight: 700;
    padding: 10px 14px;
    border-bottom: 2px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 13.5px;
    letter-spacing: 0.2px;
}

.editor-content-table th:last-child,
.post-typography table th:last-child {
    border-right: none;
}

.editor-content-table td,
.post-typography table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    color: var(--text-main);
    vertical-align: top;
    line-height: 1.5;
}

.editor-content-table td:last-child,
.post-typography table td:last-child {
    border-right: none;
}

.editor-content-table tr:last-child td,
.post-typography table tr:last-child td {
    border-bottom: none;
}

.editor-content-table tbody tr:hover,
.post-typography table tbody tr:hover {
    background: rgba(33, 150, 243, 0.03);
}

[data-theme="dark"] .editor-content-table tbody tr:hover,
[data-theme="dark"] .post-typography table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Post Attachment Badge (PDF / Document Link) */
.post-attachment-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    margin: 10px 0;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 8px;
    color: #dc2626;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.post-attachment-badge i {
    font-size: 20px;
    color: #ef4444;
}

.post-attachment-badge:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.post-attachment-badge:hover i {
    color: #ffffff;
}

[data-theme="dark"] .post-attachment-badge {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

[data-theme="dark"] .post-attachment-badge i {
    color: #f87171;
}

[data-theme="dark"] .post-attachment-badge:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Submit Action Buttons Row */
.submit-action-buttons-row {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-post-action-sub {
    flex: 1;
    padding: 13px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
    border: none;
}

.btn-save-draft {
    background: var(--bg-scaffold);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-save-draft:hover:not(:disabled) {
    background: var(--card-bg);
    border-color: var(--text-main);
}

.btn-publish-now {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-publish-now:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

.btn-post-action-sub:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   App Styled Modal Dialogs (Terms, Delete, Promotion)
   ========================================================================== */
.app-styled-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.app-styled-modal-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalScaleIn 0.25s ease;
    overflow: hidden;
}

@keyframes modalScaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.modal-close-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.modal-body {
    padding: 20px 22px;
    overflow-y: auto;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-main);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 22px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-scaffold);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s ease;
}

.btn-secondary:hover {
    background: var(--bg-scaffold);
}

.btn-danger-confirm {
    background: #ef4444;
    color: #ffffff;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: inherit;
    transition: background 0.15s ease;
}

.btn-danger-confirm:hover {
    background: #dc2626;
}

/* Delete modal extra styling */
.danger-modal .modal-header h3 {
    color: #ef4444;
}

.delete-warning-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
}

.delete-warning-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.delete-warning-list li i {
    color: #ef4444;
}

.post-preview-quote {
    background: var(--bg-scaffold);
    border-left: 3px solid #ef4444;
    padding: 10px 14px;
    margin: 12px 0;
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    font-size: 13.5px;
}

.modal-hint-text {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}

/* Promo packages grid inside modal */
.promo-packages-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.promo-package-card {
    position: relative;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    background: var(--card-bg);
    transition: all 0.2s ease;
}

.promo-package-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.promo-package-card.selected,
.promo-package-card:hover {
    border-color: #8b5cf6;
    background: rgba(139, 92, 246, 0.04);
}

.package-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.pkg-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
}

.pkg-price {
    font-size: 14px;
    font-weight: 800;
    color: #8b5cf6;
}

.pkg-desc {
    margin: 0 0 6px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.pkg-duration {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.terms-content-html {
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--text-main);
}

/* =========================================================================
   INLINE PDF EMBED VIEWER
   Mirrors Flutter app's PdfReaderScreen — displayed inline inside post content
   ========================================================================= */

/* Wrapper block that replaces the raw PDF link */
.post-pdf-embed {
    display: block;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color, rgba(0,0,0,0.12));
    background: var(--card-bg, #f5f5f5);
    box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

[data-theme="dark"] .post-pdf-embed {
    border-color: rgba(255,255,255,0.08);
    background: var(--card-bg, #1e1e2e);
    box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

/* The native iframe that renders the PDF */
.post-pdf-embed iframe {
    display: block;
    width: 100%;
    height: 520px;
    border: none;
    background: #fff;
}

@media (max-width: 640px) {
    .post-pdf-embed iframe {
        height: 380px;
    }
}

/* Footer bar: title above (left aligned), Download button centered below */
.post-pdf-embed-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 18px 16px;
    background: var(--card-bg, #f8f9fa);
    border-top: 1px solid var(--border-color, rgba(0,0,0,0.10));
    gap: 14px;
}

[data-theme="dark"] .post-pdf-embed-footer {
    background: rgba(0,0,0,0.25);
    border-top-color: rgba(255,255,255,0.07);
}

/* Filename / Title wrapper — strictly aligned left */
.post-pdf-embed-title-wrap {
    display: flex;
    align-items: center;
    text-align: left;
    width: 100%;
}

.post-pdf-embed-name {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-color, #1e293b);
    text-align: left;
    line-height: 1.4;
    word-break: break-word;
}

.post-pdf-embed-name i {
    color: #ef4444;
    font-size: 16px;
    flex-shrink: 0;
}

[data-theme="dark"] .post-pdf-embed-name {
    color: var(--text-color, #e2e8f0);
}

/* Download button container — centered with clear spacing */
.post-pdf-embed-btn-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Download button — centered */
.post-pdf-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 32px;
    border-radius: 24px;
    background: var(--primary, #8b5cf6);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.18s, box-shadow 0.18s;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.25);
}

.post-pdf-download-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
    color: #fff;
    text-decoration: none;
}

.post-pdf-download-btn i {
    font-size: 14px;
}

/* =========================================================================
   17. Floating Back to Top Button (Appears on Scroll)
   ========================================================================= */
.floating-back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--highlight-blue, #0284c7) 0%, var(--primary-color, #2563eb) 100%);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px) scale(0.9);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease, box-shadow 0.2s ease;
}

.floating-back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-back-to-top:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
    color: #ffffff;
}

.floating-back-to-top:active {
    transform: translateY(0) scale(0.96);
}

@media (max-width: 768px) {
    .floating-back-to-top {
        bottom: 76px; /* Avoid overlapping the mobile bottom app bar */
        right: 18px;
        width: 42px;
        height: 42px;
        font-size: 14px;
    }
}

/* =========================================================================
   18. Post Details Social Sharing Box
   ========================================================================= */
.single-post-share-box {
    margin: 28px 0 20px;
    padding: 20px 22px;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.08));
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .single-post-share-box {
    background: var(--card-bg, #1e1e2e);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.share-box-header {
    margin-bottom: 14px;
}

.share-box-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color, #1e293b);
}

.share-box-title i {
    color: var(--primary, #0284c7);
    font-size: 16px;
}

[data-theme="dark"] .share-box-title {
    color: var(--text-color, #f1f5f9);
}

.share-box-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.post-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.92;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.post-share-btn.share-wa { background: #25d366; }
.post-share-btn.share-tg { background: #0088cc; }
.post-share-btn.share-fb { background: #1877f2; }
.post-share-btn.share-x  { background: #0f1419; }
.post-share-btn.share-li { background: #0a66c2; }
.post-share-btn.share-copy {
    background: #64748b;
    border: none;
}
.post-share-btn.share-copy.copied {
    background: #10b981;
}

/* =========================================================================
   19. Footer App Download Widget Styles (QR on top, store button below)
   ========================================================================= */
.footer-app-download-col .footer-app-desc {
    font-size: 12.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 16px;
}

.footer-app-stores-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Each store card: vertical layout */
.app-store-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 12px 14px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.app-store-item:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
}

/* QR code block — displayed on top */
.store-qr-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 5px;
}

.store-qr-top .store-qr-img {
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background: #ffffff;
    padding: 4px;
}

.store-qr-top .store-qr-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
}

/* Store button — displayed below the QR */
.app-store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-decoration: none;
    color: #ffffff;
    min-width: 0;
}

.app-store-btn:hover {
    color: #ffffff;
    text-decoration: none;
}

.store-btn-icon {
    font-size: 24px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.store-playstore .store-btn-icon { color: #34a853; }
.store-appstore .store-btn-icon  { color: #ffffff; }
.store-huawei .store-btn-icon    { color: #e41f26; }

.store-btn-labels {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-sub {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
}

.store-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
}

/* Column-order utility classes for 4-col footer grid on desktop */
@media (min-width: 892px) {
    .footer-app-col-order-1 { order: -3; }
    .footer-app-col-order-2 { order: -2; }
    .footer-app-col-order-3 { order: -1; }
    .footer-app-col-order-4 { order: 0;  }
}

/* =========================================================================
   20. Footer App Download Widget — Centered Inline Row (Position 5)
   ========================================================================= */
.footer-app-center-row {
    width: 100%;
    margin-bottom: 32px;
    padding: 28px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-app-center-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-app-center-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.footer-app-center-title {
    font-size: 16px;
    margin: 0;
}

.footer-app-center-desc {
    text-align: center;
    max-width: 520px;
    margin: 0;
}

/* Store cards row — inline horizontal */
.footer-app-center-stores {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 50px;
}

@media (max-width: 640px) {
    .footer-app-center-stores {
        gap: 24px;
    }
}

/* Each store card in center mode */
.app-store-center-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 18px;
    min-width: 130px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.app-store-center-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-3px);
}

/* QR code block — top of each card */
.store-qr-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.store-qr-center .store-qr-img {
    display: block;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    object-fit: cover;
    background: #ffffff;
    padding: 4px;
}

.store-qr-center .store-qr-label {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1;
}

/* Store button — bottom of each card */
.app-store-center-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    width: 100%;
    justify-content: center;
    transition: background 0.18s ease;
}

.app-store-center-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    text-decoration: none;
}

.store-playstore .app-store-center-btn .store-btn-icon { color: #34a853; }
.store-appstore  .app-store-center-btn .store-btn-icon { color: #ffffff; }
.store-huawei    .app-store-center-btn .store-btn-icon { color: #e41f26; }

/* =========================================================================
   21. 404 Error Page Styling
   ========================================================================= */
.not-found-page-container {
    padding: 40px 16px 60px;
}

.not-found-hero-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
}

.not-found-badge {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

.not-found-code-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px 0 12px;
}

.not-found-num {
    font-size: 80px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.not-found-icon-bubble {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.12);
    border: 2px dashed rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #38bdf8;
    animation: floatIcon 3s ease-in-out infinite;
}

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

.not-found-search-box {
    width: 100%;
    max-width: 520px;
    margin-top: 24px;
}

.not-found-search-form {
    width: 100%;
}

.not-found-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.not-found-input {
    padding-right: 110px !important;
    height: 48px;
    font-size: 14px;
    border-radius: 12px;
}

.btn-not-found-search {
    position: absolute;
    right: 6px;
    top: 5px;
    bottom: 5px;
    padding: 0 16px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.2s;
}

.btn-not-found-search:hover {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    transform: translateX(2px);
}

.not-found-links-card {
    padding: 24px;
}

.not-found-links-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.not-found-links-title i {
    color: #38bdf8;
}

.not-found-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.not-found-link-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.not-found-link-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}

.not-found-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.not-found-item-icon.icon-jobs { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.not-found-item-icon.icon-cities { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.not-found-item-icon.icon-cv { background: rgba(234, 179, 8, 0.15); color: #facc15; }
.not-found-item-icon.icon-blog { background: rgba(34, 197, 94, 0.15); color: #4ade80; }

.not-found-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.not-found-item-info strong {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 3px;
}

.not-found-item-info span {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
}

.item-arrow {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
    transition: transform 0.2s, color 0.2s;
}

.not-found-link-item:hover .item-arrow {
    color: #38bdf8;
    transform: translateX(3px);
}

/* ==========================================================================
   User Posts Management Page (page-user-posts.php)
   ========================================================================== */

/* ── Page container ─────────────────────────────────────────────────────── */
.user-posts-page-container {
    padding: 24px 0 60px;
}

.user-posts-header-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 20px 24px 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.header-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.posts-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(33, 150, 243, 0.12);
    color: var(--highlight-blue);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.user-posts-title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
    color: var(--text-main);
}

.user-posts-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.btn-create-post-top {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, var(--highlight-blue) 0%, var(--primary-color) 100%);
    color: #ffffff;
    padding: 9px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    box-shadow: 0 3px 8px rgba(2, 48, 71, 0.2);
    flex-shrink: 0;
}

.btn-create-post-top:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--highlight-blue) 100%);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(33, 150, 243, 0.3);
}

/* ── Promo Banner Alert ──────────────────────────────────────────────────── */
.promo-banner-alert {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.12) 0%, rgba(255, 193, 7, 0.08) 100%);
    border: 1px solid rgba(255, 152, 0, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 14px;
    font-size: 12.5px;
    color: #e65100;
    font-weight: 500;
}

.promo-banner-alert i {
    color: #ff9800;
    font-size: 14px;
    flex-shrink: 0;
}

/* ── Filter Tabs ─────────────────────────────────────────────────────────── */
.user-posts-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.filter-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.18s ease;
}

.filter-tab-pill:hover {
    color: var(--text-main);
    border-color: rgba(33, 150, 243, 0.4);
}

.filter-tab-pill.active {
    background: var(--highlight-blue);
    color: #ffffff;
    border-color: var(--highlight-blue);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.3);
}

.filter-tab-pill.status-review.active  { background: #ff9800; border-color: #ff9800; }
.filter-tab-pill.status-published.active { background: #4caf50; border-color: #4caf50; }
.filter-tab-pill.status-draft.active   { background: #607d8b; border-color: #607d8b; }
.filter-tab-pill.status-rejected.active { background: #f44336; border-color: #f44336; }

.tab-count-badge {
    background: rgba(0, 0, 0, 0.12);
    color: inherit;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.filter-tab-pill.active .tab-count-badge {
    background: rgba(255, 255, 255, 0.25);
}

/* ── User Posts Grid ─────────────────────────────────────────────────────── */
.user-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 16px;
}

/* ── Promoted Card Top Tag ───────────────────────────────────────────────── */
.promoted-card-top-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #ff9800 0%, #e65100 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px 6px 0 0;
    margin: -16px -20px 12px;
    letter-spacing: 0.3px;
}

.is-promoted-card {
    border-color: rgba(255, 152, 0, 0.4) !important;
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.1), var(--shadow-sm) !important;
}

/* ── Post Status Badges ──────────────────────────────────────────────────── */
.post-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.badge-published  { background: rgba(76,175,80,0.12); color: #2e7d32; border: 1px solid rgba(76,175,80,0.3); }
.badge-review     { background: rgba(255,152,0,0.12); color: #e65100; border: 1px solid rgba(255,152,0,0.3); }
.badge-draft      { background: rgba(96,125,139,0.12); color: #455a64; border: 1px solid rgba(96,125,139,0.3); }
.badge-rejected   { background: rgba(244,67,54,0.12); color: #c62828; border: 1px solid rgba(244,67,54,0.3); }

/* ── Action Divider with Toolbar ────────────────────────────────────────── */
.user-post-action-divider {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin: 12px 0 10px !important;
}

.user-post-action-divider .divider-line {
    display: block !important;
    height: 1px !important;
    background: var(--border-color) !important;
    width: 100% !important;
    flex: none !important;
}

/* ── Admin Scope Toggle ─────────────────────────────────────────────────── */
.user-posts-scope-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
    flex-wrap: wrap;
}

.user-posts-scope-toggle .scope-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.scope-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    transition: all 0.2s ease;
}

.scope-toggle-btn:hover {
    color: var(--text-main);
    border-color: var(--highlight-blue);
}

.scope-toggle-btn.active {
    background: #023047;
    color: #ffffff;
    border-color: #023047;
    box-shadow: 0 2px 6px rgba(2, 48, 71, 0.2);
}

/* ── App Styled Modals (Delete Confirmation & Promo Modal) ───────────────── */
.app-styled-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.app-styled-modal-overlay[style*="display: block"],
.app-styled-modal-overlay[style*="display: flex"] {
    display: flex !important;
}

.app-styled-modal-box {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    box-sizing: border-box;
    border: 1px solid var(--border-color);
    animation: appModalIn 0.22s ease-out;
}

@keyframes appModalIn {
    from { opacity: 0; transform: scale(0.96) translateY(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.app-styled-modal-box.promo-modal {
    max-width: 580px;
}

.app-styled-modal-box .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.app-styled-modal-box .modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.danger-modal .modal-header h3 {
    color: #e53935;
}

.promo-modal .modal-header h3 {
    color: #e65100;
}

.app-styled-modal-box .modal-close-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    padding: 0;
}

.app-styled-modal-box .modal-close-btn:hover {
    background: var(--bg-secondary);
    color: var(--text-main);
}

.app-styled-modal-box .modal-body {
    font-size: 13.5px;
    color: var(--text-main);
    line-height: 1.5;
}

.app-styled-modal-box .modal-body p {
    margin: 0 0 10px;
}

.post-preview-quote {
    margin: 12px 0;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border-left: 3px solid #e53935;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    word-break: break-word;
}

.modal-hint-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

.app-styled-modal-box .modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.btn-danger-confirm {
    background: linear-gradient(135deg, #ef5350 0%, #c62828 100%);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(198, 40, 40, 0.25);
}

.btn-danger-confirm:hover {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(198, 40, 40, 0.35);
}

/* ── Promo Packages Grid in Modal ────────────────────────────────────────── */
.promo-modal-intro {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.promo-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.promo-package-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    display: block;
    background: var(--bg-secondary);
}

.promo-package-card input[type="radio"] {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 0;
    accent-color: #ff9800;
}

.promo-package-card.selected {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.06);
    box-shadow: 0 0 0 2px rgba(255, 152, 0, 0.2);
}

.package-card-top {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
}

.pkg-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-main);
    padding-right: 20px;
}

.pkg-price {
    font-size: 14px;
    font-weight: 900;
    color: #e65100;
}

.pkg-desc {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.35;
    margin: 0 0 8px;
}

.pkg-duration {
    font-size: 11px;
    font-weight: 700;
    color: var(--highlight-blue);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Scrollable toolbar */
.user-post-actions-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 2px 0 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.user-post-actions-toolbar::-webkit-scrollbar { display: none; }

/* ── Action Buttons ──────────────────────────────────────────────────────── */
.btn-post-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 11.5px;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.18s ease;
    flex-shrink: 0;
    background: transparent;
}

.btn-post-action i { font-size: 11px; }

/* Edit – Blue outline */
.btn-action-edit {
    border-color: rgba(33,150,243,0.4);
    color: var(--highlight-blue);
    background: rgba(33,150,243,0.06);
}
.btn-action-edit:hover {
    background: var(--highlight-blue);
    color: #ffffff;
    border-color: var(--highlight-blue);
    transform: translateY(-1px);
}

/* Delete – Red outline */
.btn-action-delete {
    border-color: rgba(244,67,54,0.35);
    color: #e53935;
    background: rgba(244,67,54,0.06);
}
.btn-action-delete:hover {
    background: #e53935;
    color: #ffffff;
    border-color: #e53935;
    transform: translateY(-1px);
}

/* View – Muted outline */
.btn-action-view {
    border-color: var(--border-color);
    color: var(--text-muted);
    background: transparent;
}
.btn-action-view:hover {
    background: var(--bg-secondary);
    color: var(--text-main);
    border-color: rgba(33,150,243,0.3);
    transform: translateY(-1px);
}

/* Share – Teal outline */
.btn-action-share {
    border-color: rgba(0,150,136,0.35);
    color: #00897b;
    background: rgba(0,150,136,0.06);
}
.btn-action-share:hover {
    background: #00897b;
    color: #ffffff;
    border-color: #00897b;
    transform: translateY(-1px);
}

/* Boost Reach – Orange gradient */
.btn-action-promote {
    background: linear-gradient(135deg, #ff9800 0%, #e65100 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(230, 81, 0, 0.25);
}
.btn-action-promote:hover {
    background: linear-gradient(135deg, #e65100 0%, #bf360c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(230, 81, 0, 0.35);
}

/* Admin Approve – Green solid */
.btn-admin-approve {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(46, 125, 50, 0.25);
}
.btn-admin-approve:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.35);
}

/* Admin Reject – Red solid */
.btn-admin-reject {
    background: linear-gradient(135deg, #ef5350 0%, #c62828 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 2px 6px rgba(198, 40, 40, 0.25);
}
.btn-admin-reject:hover {
    background: linear-gradient(135deg, #c62828 0%, #b71c1c 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(198, 40, 40, 0.35);
}

/* ── Empty State Card ────────────────────────────────────────────────────── */
.no-jobs-found-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 48px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.no-jobs-icon {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 14px;
    opacity: 0.5;
}

.no-jobs-found-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-main);
}

.no-jobs-found-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 20px;
}

/* ── Auth Alert ──────────────────────────────────────────────────────────── */
.auth-alert {
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    display: none;
    border: 1px solid transparent;
}

.auth-alert.alert-success {
    background: rgba(76,175,80,0.1);
    border-color: rgba(76,175,80,0.3);
    color: #2e7d32;
}

.auth-alert.alert-error {
    background: rgba(244,67,54,0.1);
    border-color: rgba(244,67,54,0.3);
    color: #c62828;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .header-card-top { flex-direction: column; }
    .btn-create-post-top { width: 100%; justify-content: center; }
    .user-posts-filter-tabs { gap: 6px; }
    .filter-tab-pill { font-size: 11px; padding: 4px 10px; }
    .user-posts-title { font-size: 18px; }
    .promoted-card-top-tag { margin: -16px -16px 10px; }
    .promo-packages-grid { grid-template-columns: 1fr; }
    .app-styled-modal-box { padding: 18px 16px; margin: 10px; }
}
