/* ==========================================================================
   ToolsTurbo.com — Clean Frontend Stylesheet v3.0.0
   Rebuilt from scratch based on reference: C:\xampp\htdocs\t\qr-gemeni

   CRITICAL STICKY RULES:
   1. html, body { margin: 0; padding: 0; display: block; }
      Never apply display:flex or overflow:hidden/clip on body/html.
   2. .top-header { display: flex; position: relative; }
      Header scrolls away naturally with the page. No transforms.
   3. All main wrappers use overflow: visible; display: block;
   ========================================================================== */

/* 1. RESET & BASE */
* {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

:root {
    --bg-color: #f6f8fb;
    --surface-color: #ffffff;
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --brand-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --brand-gradient-hover: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --container-max: 1200px;
    --card-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    --card-shadow-hover: 0 6px 18px rgba(37, 99, 235, 0.08);
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
}

html, body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 15px;
    display: block;
    min-height: 100%;
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
}

img, canvas, iframe, select, input, textarea {
    max-width: 100%;
    box-sizing: border-box;
}

.page-container, .container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* 2. TOP HEADER (Mobile First, Sticky Smart Scroll)
   Background: #eef0f1 | Text Color: Black */
.top-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #eef0f1;
    color: #000000;
    border-bottom: 2pt solid #dbdce0;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    box-sizing: border-box;
}

.top-header.header-hidden {
    transform: translateY(-100%);
}

.header-main-row {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
}

.logo-container .logo-link {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    color: #000000;
}
.logo {
    color: #000000;
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Header Action Controls */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-actions .icon-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
    color: #000000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s, border-color 0.15s;
}
.header-actions .icon-btn:hover {
    background: #edf3ff;
    border-color: rgba(0, 0, 0, 0.25);
}
.btn-signin-text {
    background: transparent;
    color: #000000;
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 11px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: none;
    white-space: nowrap;
}
.btn-signin-text:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #1d4ed8;
}

.btn-signup-gradient {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff !important;
    font-size: 13.5px;
    font-weight: 600;
    padding: 7px 15px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-signup-gradient:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.42);
    transform: translateY(-1px);
    color: #ffffff !important;
}
.btn-signup-gradient:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-signin {
    background: #000000;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.15s;
    display: inline-flex;
    align-items: center;
}
.btn-signin:hover {
    opacity: 0.85;
}

/* Desktop Navigation (Hidden on mobile) */
.desktop-nav {
    display: none;
}
.nav-list {
    display: flex;
    align-items: center;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.nav-link:hover {
    background: rgba(0, 0, 0, 0.06);
}
.dropdown-caret {
    font-size: 11px;
    color: #555555;
    transition: transform 0.2s ease;
}
.nav-item-dropdown:hover .dropdown-caret {
    transform: rotate(180deg);
}

/* MODERN & ATTRACTIVE TOOLS ROLLOVER MENU (MEGA MENU) */
.nav-item-dropdown {
    position: relative;
}
/* Invisible hover bridge to prevent menu from closing when moving cursor */
.nav-item-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    display: block;
}
.nav-dropdown-menu.mega-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #ffffff;
    border: 1px solid #cde0ff;
    border-radius: 14px;
    box-shadow: 0 16px 40px -4px rgba(22, 27, 51, 0.14), 0 4px 12px rgba(22, 27, 51, 0.04);
    min-width: 480px;
    padding: 14px;
    display: none;
    z-index: 1100;
    animation: megaMenuFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes megaMenuFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.nav-item-dropdown:hover .nav-dropdown-menu.mega-menu {
    display: block;
}
.mega-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #111111;
    transition: all 0.16s ease;
    border: 1px solid transparent;
}
.mega-menu-item:hover {
    background: #f0f5ff;
    border-color: #dbe8ff;
    transform: translateX(2px);
}
.mega-menu-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #e2ebff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    transition: transform 0.16s ease;
}
.mega-menu-item:hover .mega-menu-icon {
    transform: scale(1.12);
}
.mega-menu-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #111111;
    line-height: 1.25;
}
.mega-menu-item:hover .mega-menu-title {
    color: #2563eb;
}
.mega-menu-footer {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #edf2f9;
    display: flex;
    justify-content: flex-end;
}
.mega-menu-all-link {
    font-size: 12.5px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.15s ease;
}
.mega-menu-all-link:hover {
    gap: 7px;
    text-decoration: underline;
}

/* Mobile Menu Dropdown (Collapsible directly below header row) */
.mobile-menu-dropdown {
    display: none;
    background-color: #eef0f1;
    border-top: 2pt solid #dbdce0;
    padding: 10px 15px 16px;
    max-height: 75vh;
    overflow-y: auto;
}
.mobile-menu-dropdown.is-open {
    display: block;
}
.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mobile-nav-link {
    color: #000000;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    display: block;
}
.mobile-nav-link:hover, .mobile-nav-link:active {
    background: rgba(0, 0, 0, 0.05);
}
.mobile-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4b5563;
    padding: 8px 12px 4px;
}
.mobile-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 4px 0 8px;
}
.mobile-sub-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #cde0ff;
    text-decoration: none;
    color: #000000;
    box-sizing: border-box;
    transition: background 0.15s, border-color 0.15s;
}
.mobile-sub-item:active {
    background: #d6e5ff;
    border-color: #2563eb;
}
.mobile-sub-icon {
    font-size: 15px;
    flex-shrink: 0;
}
.mobile-sub-title {
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mobile-btn-signin {
    background: #ffffff;
    color: #000000;
    border: 1px solid #cde0ff;
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 12px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.mobile-btn-signin:active {
    background: #e2ebff;
    border-color: #2563eb;
}
.mobile-btn-signup {
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 13.5px;
    padding: 9px 12px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}
.mobile-btn-signup:active {
    transform: scale(0.98);
}

@media (min-width: 860px) {
    .desktop-nav {
        display: block;
    }
    .menu-toggle-btn {
        display: none !important;
    }
    .mobile-menu-dropdown {
        display: none !important;
    }
}

/* 3. BUTTONS (Clean & Lightweight) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.2;
    transition: all 0.15s ease;
}
.btn:hover {
    text-decoration: none;
}
.btn-outline {
    background: #ffffff;
    border-color: var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover {
    background: #f8fafc;
    border-color: var(--border-dark);
    color: var(--text-primary);
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff !important;
}
.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    color: #ffffff !important;
}
.btn-primary-light {
    background: var(--primary-light);
    color: var(--primary) !important;
    border-color: #cde0ff;
    font-weight: 600;
}
.btn-primary-light:hover {
    background: #dbe8fe;
    color: var(--primary-hover) !important;
    border-color: #bad3fe;
}
.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
    color: #ffffff !important;
}
.btn-danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}
.btn-outline-danger {
    background: #ffffff;
    border-color: #fecaca;
    color: var(--danger);
}
.btn-outline-danger:hover {
    background: #fef2f2;
    border-color: var(--danger);
    color: var(--danger);
}
.btn-gradient {
    background: var(--brand-gradient);
    color: #ffffff !important;
    border: none;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.28);
}
.btn-gradient:hover {
    background: var(--brand-gradient-hover);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.42);
    transform: translateY(-1px);
}
.btn-block, .btn-full {
    width: 100%;
}
.btn-lg {
    padding: 10px 18px;
    font-size: 15px;
}
.btn-sm {
    padding: 5px 10px;
    font-size: 12.5px;
    border-radius: 5px;
}
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
}
.btn-action:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* 4. SECTIONS & CATEGORY PILLS */
.section {
    margin: 24px 0;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 8px;
}
.section-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 3px 0;
    letter-spacing: -0.2px;
}
.section-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.category-nav-section {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}
.category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
    align-items: center;
}
.category-pills::-webkit-scrollbar {
    display: none;
}
.pill {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1;
    flex-shrink: 0;
}
.pill:hover {
    color: var(--primary);
    border-color: #b9d2fc;
    background: #edf4ff;
    text-decoration: none;
}
.pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* 4. META SECTION (Breadcrumbs, title, stats, action buttons — scrolls away) */
.meta-section, .tool-page-header {
    margin-bottom: 20px;
}
.breadcrumbs {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumbs a:hover {
    text-decoration: underline;
}
.breadcrumbs span {
    margin: 0 4px;
    color: #ccc;
}
.page-title, .tool-page-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}
.page-stats, .tool-page-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.tool-meta-sep {
    color: #ccc;
}
.page-links a, .tool-meta-link, .tool-meta-btn {
    color: #0056b3;
    text-decoration: none;
    font-size: 13px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.page-links a:hover, .tool-meta-link:hover {
    text-decoration: underline;
}
.action-buttons, .tool-actions-bar {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.fav-btn.favorited {
    color: #ef4444;
    border-color: #fca5a5;
    background: #fef2f2;
}

/* 5. MAIN CONTENT WRAPPERS & DESKTOP TOOL WORKSPACE GRID */
.site-main {
    display: block;
    overflow: visible;
    padding-top: 10px;
    padding-bottom: 30px;
}
.tool-workspace-wrapper {
    display: block;
    width: 100%;
    margin-bottom: 24px;
}
.tool-canvas-wrap {
    display: block;
    overflow: visible;
    margin-bottom: 0;
}
.tool-canvas-container {
    display: block;
    overflow: visible;
}

/* Computer Browser Only (min-width: 800px):
   Starts the result box / preview card from below the top menu on desktop,
   unifying main content width and result box width across all existing and upcoming tools.
   Mobile browser (< 800px) remains 100% untouched. */
@media (min-width: 800px) {
    .tool-workspace-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 390px !important;
        grid-template-rows: auto 1fr !important;
        grid-template-areas:
            "meta    preview"
            "config  preview" !important;
        column-gap: 28px !important;
        row-gap: 0 !important;
        align-items: start !important;
        width: 100% !important;
    }

    .tool-workspace-grid .meta-section {
        grid-area: meta !important;
        margin-bottom: 20px !important;
        width: 100% !important;
    }

    .tool-workspace-grid .tool-canvas-wrap {
        display: contents !important;
    }

    .tool-workspace-grid .tool-canvas-container {
        display: contents !important;
    }

    .tool-workspace-grid .tt-generator-grid {
        display: contents !important;
    }

    .tool-workspace-grid .tt-config-col {
        grid-area: config !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .tool-workspace-grid .tt-preview-col {
        grid-area: preview !important;
        width: 390px !important;
        max-width: 390px !important;
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 15px !important;
        align-self: start !important;
        z-index: 20 !important;
        margin: 0 !important;
    }
}

/* UNIFIED SPACE-SAVING TOOL DESIGN SYSTEM (Shared across all existing & upcoming direct tools) */
.tt-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 18px 0 14px;
    padding: 0 2px;
    border-bottom: 2pt solid #dbdce0;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 600px) {
    .tt-tabs-bar {
        justify-content: flex-start;
    }
}
.tt-tabs-bar::-webkit-scrollbar {
    display: none;
}
.tt-tab-btn {
    background: none;
    border: none;
    padding: 8px 2px 12px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--tt-text-muted, #64748B);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color 0.15s ease;
    user-select: none;
}
.tt-tab-btn:hover {
    color: var(--tt-text, #161B33);
}
.tt-tab-btn.active {
    color: var(--tt-text, #161B33);
    font-weight: 700;
}
.tt-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2pt;
    left: 0;
    right: 0;
    height: 2.5pt;
    background: linear-gradient(90deg, #2563eb 0%, #5045e5 50%, #7c3aed 100%);
    border-radius: 2px;
}
.tt-tab-panels {
    width: 100%;
}
.tt-tab-panel {
    display: none;
    width: 100%;
}
.tt-tab-panel.active {
    display: block;
}
.tt-panel-card {
    padding: 20px 24px;
    background: #FFFFFF;
    border: 2pt solid #dbdce0;
    border-radius: 14px;
    box-shadow: 0 4px 20px -8px rgba(22, 27, 51, 0.08);
}
.tt-unified-card {
    padding: 18px 20px 22px;
}
.tt-unified-card .tt-tabs-bar {
    margin: 18px 0 16px;
}
.tt-unified-card .tt-panel-card {
    padding: 14px 0 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
.tt-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.tt-panel-icon {
    font-size: 1.4rem;
    line-height: 1;
}
.tt-panel-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--tt-text, #161B33);
    margin: 0;
}
.tt-panel-subtitle {
    font-size: 0.82rem;
    color: var(--tt-text-muted, #64748B);
    margin: 3px 0 0;
}

/* 6. MODERN TOOLS LISTING CARDS WITH PROPORTIONAL 800x500 FEATURED THUMBNAIL */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin: 15px 0 28px;
}
.tool-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.tool-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* 800x500 Aspect Ratio Thumbnail Area - Proportional & Uncropped */
.tool-card-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 800 / 500;
    background: #0b0f19;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}
.tool-card-thumb-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    background: inherit;
}
.tool-card-thumb {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.25s ease;
}
.tool-card:hover .tool-card-thumb {
    transform: scale(1.03);
}

/* Fallback for tools without an uploaded thumbnail */
.tool-card-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}
.tool-card-fallback-icon {
    font-size: 2.75rem;
    line-height: 1;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}
.tool-card:hover .tool-card-fallback-icon {
    transform: scale(1.12);
}

/* Floating Favorite Button on Thumbnail */
.tool-card-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: var(--text-muted);
    transition: transform 0.15s ease, background-color 0.15s ease;
}
.tool-card-fav-btn:hover {
    transform: scale(1.1);
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.tool-card-fav-btn.favorited {
    color: #ef4444;
}

/* Card Body Content */
.tool-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tool-card-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.35;
}
.tool-card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.15s ease;
}
.tool-card-title a:hover {
    color: var(--primary);
}
.tool-card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.tool-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}
.rating-badge {
    color: #d97706;
    font-weight: 700;
}
.views-badge {
    color: var(--text-muted);
}
.meta-sep {
    color: #cbd5e1;
    font-size: 9px;
}
.tool-card-cat-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}
.tool-card-cat-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* Dark Mode Tool Card */
[data-theme="dark"] .tool-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .tool-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .tool-card-thumb-wrap {
    border-bottom-color: #334155;
}
[data-theme="dark"] .tool-card-meta {
    border-top-color: #334155;
}
[data-theme="dark"] .tool-card-fav-btn {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .tool-card-fav-btn:hover {
    background: rgba(30, 41, 59, 1);
}

/* Category Directory Cards (Home Page) */
.category-dir-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 12px;
}
.category-dir-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.15s ease;
}
.category-dir-card:hover {
    border-color: var(--primary);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-1px);
    text-decoration: none;
}
.category-dir-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.category-dir-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 2px;
}
.category-dir-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* Blog Cards (Blog Index) */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
.blog-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.blog-card:hover {
    border-color: var(--primary);
    box-shadow: var(--card-shadow-hover);
}
.blog-card-date {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.blog-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.35;
}
.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
}
.blog-card-title a:hover {
    color: var(--primary);
}
.blog-card-excerpt {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 14px;
    flex: 1;
}
.blog-card-link {
    font-weight: 600;
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.blog-card-link:hover {
    text-decoration: underline;
}

/* Wiki Cards (Wiki Index) */
.wiki-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 14px;
}
.wiki-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: block;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.15s ease;
}
.wiki-card:hover {
    border-color: var(--primary);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-1px);
    text-decoration: none;
}
.wiki-card-icon {
    font-size: 22px;
    margin-bottom: 8px;
}
.wiki-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.wiki-card-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

/* Empty State Component */
.empty-state-box {
    text-align: center;
    padding: 36px 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}
.empty-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}
.empty-state-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.empty-state-box p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

/* 7. CONTENT, ARTICLES & FAQS SECTION */
.content-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    box-sizing: border-box;
}
.wiki-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    align-items: start;
}
.tool-content-layout {
    display: block;
    overflow: visible;
    margin-top: 24px;
}
.article-body {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px 24px;
    margin-bottom: 20px;
    line-height: 1.65;
    color: var(--text-primary);
}
.article-body h2 {
    font-size: 1.3rem;
    margin: 1.25rem 0 0.5rem;
    color: var(--text-primary);
}
.article-body h3 {
    font-size: 1.15rem;
    margin: 1rem 0 0.4rem;
    color: var(--text-primary);
}
.article-body p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}
.article-body ul, .article-body ol {
    margin: 0 0 1rem 1.25rem;
    color: var(--text-secondary);
}
.article-body li {
    margin-bottom: 0.35rem;
}

.tags-wrap {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tag-pill {
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3px 10px;
    color: var(--text-secondary);
    text-decoration: none;
}
.tag-pill:hover {
    color: var(--primary);
    border-color: #b9d2fc;
}

.faq-section {
    margin-top: 20px;
}
.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
}
.faq-question {
    padding: 12px 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    padding: 0 15px 12px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

.review-form {
    margin-top: 1.5rem;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    max-width: 100%;
    box-sizing: border-box;
}
.review-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 120px;
    gap: 0.75rem;
    margin-bottom: 1rem;
    max-width: 100%;
    box-sizing: border-box;
}
.review-form-row input,
.review-form-row select {
    padding: 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: #fff;
}
.sidebar-widget {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    max-width: 100%;
    box-sizing: border-box;
}
.widget-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.footer-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.12s;
}
.footer-links li a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* 8. FORMS & ALERTS */
.form-group {
    margin-bottom: 14px;
}
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 5px;
}
.form-control {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--text-primary);
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.form-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}
.checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    color: var(--text-secondary);
}

.search-form-wrap {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    max-width: 600px;
    flex-wrap: wrap;
}
.search-form-wrap input {
    flex: 1;
    min-width: 200px;
}
.search-form-wrap select {
    min-width: 140px;
}

.alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    line-height: 1.45;
    border: 1px solid transparent;
}
.alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}
.alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}
.alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}
.alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* 9. AUTHENTICATION SUITE */
.auth-page-wrapper {
    padding: 30px 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
}
.auth-container-narrow {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}
.auth-form-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    box-sizing: border-box;
}
.auth-card-header {
    margin-bottom: 20px;
    text-align: center;
}
.auth-card-header h2 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}
.auth-card-header p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}
.auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    margin-bottom: 10px;
}
.auth-card-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.auth-card-divider::before, .auth-card-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}
.auth-card-divider span {
    padding: 0 10px;
}
.auth-promo-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px;
    text-align: center;
}

/* Password Generator Widget inside Register */
.pwgen-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.pwgen-toggle-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
}
.pwgen-toggle-btn:hover {
    color: var(--text-primary);
}
.pwgen-widget {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin-top: 8px;
    font-size: 12.5px;
}
.pwgen-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 8px;
}
.pwgen-collapse-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}
.pwgen-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
}
.pwgen-opt-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}
.pwgen-output-row {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
}
.pwgen-output-field {
    flex: 1;
    padding: 5px 8px;
    font-family: monospace;
    font-size: 13px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fff;
}
.pwgen-action-btn {
    padding: 5px 8px;
    font-size: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
}
.pwgen-strength-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pwgen-strength-bar {
    display: flex;
    gap: 3px;
    flex: 1;
    height: 5px;
}
.pwgen-strength-seg {
    flex: 1;
    border-radius: 2px;
    background: var(--border-color);
}
.pwgen-strength-lbl {
    font-size: 11px;
    font-weight: 600;
    width: 65px;
    text-align: right;
}

/* 10. MEMBER WORKSPACE DASHBOARD SUITE */
.member-dashboard-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: start;
    margin-top: 10px;
    margin-bottom: 30px;
}
.member-sidebar {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    box-sizing: border-box;
}
.msb-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}
.msb-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}
.msb-avatar--sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}
.msb-user-info {
    min-width: 0;
    flex: 1;
}
.msb-user-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.msb-user-email {
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.msb-plan-pill {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    text-transform: uppercase;
}
.msb-plan-pill--green {
    background: #dcfce7;
    color: #15803d;
}
.msb-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    padding: 8px 4px;
    margin-bottom: 14px;
    text-align: center;
}
.msb-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.msb-stat-num {
    font-weight: 800;
    font-size: 14px;
    color: var(--text-primary);
}
.msb-stat-lbl {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.msb-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.msb-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.14s ease;
}
.msb-nav-link:hover {
    background: #f1f5f9;
    color: var(--text-primary);
    text-decoration: none;
}
.msb-nav-link.active {
    background: #e2ebff;
    color: var(--primary);
    font-weight: 700;
}
.msb-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    stroke: currentColor;
}
.msb-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    background: #e2e8f0;
    color: #475569;
}
.msb-nav-link.active .msb-count {
    background: var(--primary);
    color: #fff;
}
.msb-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.msb-footer-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: color 0.14s;
}
.msb-footer-link:hover {
    color: var(--text-primary);
    background: #f8fafc;
}
.msb-footer-link--danger:hover {
    color: #dc2626;
    background: #fef2f2;
}
.msb-mobile-header {
    display: none;
}
.member-main {
    min-width: 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.stat-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.stat-meta {
    display: flex;
    flex-direction: column;
}
.stat-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}
.stat-lbl {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
}
.dashboard-grid-2col {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 16px;
}
.dash-box {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
}
.dash-box-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dash-box-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.dash-box-sub {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin: 3px 0 0;
}
.dash-box-body {
    padding: 16px 18px;
}
.dash-more-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.recent-tools-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.recent-tool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: #fdfdfd;
}
.tool-icon-mini {
    font-size: 18px;
    flex-shrink: 0;
}
.recent-tool-info {
    flex: 1;
    min-width: 0;
}
.recent-tool-title {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
}
.recent-tool-title:hover {
    color: var(--primary);
}
.recent-tool-time {
    font-size: 11.5px;
    color: var(--text-muted);
}
.history-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}
.data-table th {
    padding: 10px 12px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
}
.data-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.data-table tr:hover td {
    background: #fafcff;
}
.table-tool-link {
    color: var(--text-primary);
    text-decoration: none;
}
.table-tool-link:hover {
    color: var(--primary);
}
.badge-cat {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
    display: inline-block;
}
.badge-count {
    font-size: 12px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
}
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}
.collection-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.collection-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.collection-color-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.collection-header-meta {
    flex: 1;
    min-width: 0;
}
.collection-title {
    font-size: 14.5px;
    font-weight: 700;
    margin: 0;
}
.collection-title a {
    color: var(--text-primary);
    text-decoration: none;
}
.collection-title a:hover {
    color: var(--primary);
}
.collection-tool-count {
    font-size: 12px;
    color: var(--text-muted);
}
.collection-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0 0 14px;
    flex: 1;
}
.collection-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}
.btn-icon-danger {
    background: none;
    border: none;
    cursor: pointer;
    color: #ef4444;
    font-size: 16px;
    padding: 4px;
}
.collections-compact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.collection-compact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    background: #fdfdfd;
    transition: all 0.14s ease;
}
.collection-compact-item:hover {
    border-color: var(--primary);
    background: #fff;
    text-decoration: none;
}
.collection-badge-icon {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.collection-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.col-title {
    font-size: 13px;
    font-weight: 700;
}
.col-count {
    font-size: 11px;
    color: var(--text-muted);
}
.arrow-right {
    font-size: 14px;
    color: var(--text-muted);
}
.pref-section-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* 9. SIGNATURE VERDAAGRO / MAXVERSETECH AUTHENTIC THEME FOOTER */
.site-footer.wgl-footer {
    position: relative;
    padding: 95px 0 50px 0;
    margin-top: 60px;
    background-color: #0b0f19;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-attachment: scroll;
    color: #cbd5e1;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer.wgl-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 12, 22, 0.52) 0%, rgba(8, 12, 22, 0.85) 100%);
    pointer-events: none;
    z-index: 0;
}

.wgl-footer-container {
    position: relative;
    z-index: 1;
    max-width: 1240px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* 1. Giant Watermark Wordmark across the top */
.wgl-watermark-wrap {
    width: 100%;
    margin-bottom: -1.8vw;
    position: relative;
    z-index: 1;
    pointer-events: none;
    user-select: none;
}

.wgl-watermark-text {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
    margin: 0;
    padding: 0 4px;
    box-sizing: border-box;
    font-size: clamp(28px, 7.8vw, 118px);
    font-weight: 800;
    line-height: 0.95;
    color: #FFF3A3;
    opacity: 0.95;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.85), 0 1px 4px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.05em;
    font-family: inherit;
}

.wgl-watermark-text span {
    display: inline-block;
    font-size: inherit;
    text-transform: uppercase;
    line-height: inherit;
}

/* 2. Frosted Glass Floating Card Container */
.wgl-glass-card {
    position: relative;
    z-index: 2;
    background-color: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    padding: 70px 55px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    margin-bottom: 45px;
}

.wgl-glass-card-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 65px;
}

/* Left Column */
.wgl-card-left {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
}

.wgl-motto-heading {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.6;
    color: #ffffff;
    margin: 0 0 30px 0;
    max-width: 480px;
    letter-spacing: -0.2px;
}

.wgl-big-contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 35px;
}

.wgl-big-link {
    font-size: clamp(1.5rem, 2.2vw, 2.1rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #FFF3A3;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    border-bottom: 2px solid transparent;
    transition: all 0.28s ease;
    line-height: 1.3;
}

.wgl-big-link:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
    transform: translateX(4px);
    text-decoration: none;
}

/* Pill Social Buttons */
.wgl-pill-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.wgl-pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 500;
    color: #ffffff;
    padding: 7px 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 12px;
    text-decoration: none;
    background: transparent;
    transition: all 0.25s ease;
}

.wgl-pill-btn:hover {
    background-color: #FFF3A3;
    border-color: #FFF3A3;
    color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 243, 163, 0.25);
    text-decoration: none;
}

/* Right Container */
.wgl-card-right {
    flex: 1 1 50%;
    display: flex;
    gap: 50px;
}

.wgl-card-subcol {
    flex: 1;
}

.wgl-col-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 24px 0;
    letter-spacing: -0.3px;
}

/* Useful Links List */
.wgl-card-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wgl-card-menu li {
    margin-bottom: 14px;
}

.wgl-card-menu a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.96rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.22s ease;
}

.wgl-card-menu a:hover {
    color: #FFF3A3;
    transform: translateX(4px);
    text-decoration: none;
}

/* Subscribe Sub-Column */
.wgl-subscribe-col {
    flex: 1.25;
}

.wgl-verda-form {
    margin-bottom: 18px;
}

.wgl-verda-input-wrap {
    display: flex;
    align-items: center;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 8px;
    transition: border-color 0.25s ease;
}

.wgl-verda-input-wrap:focus-within {
    border-bottom-color: #FFF3A3;
}

.wgl-verda-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-size: 0.95rem;
    padding: 6px 0;
}

.wgl-verda-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.wgl-verda-submit {
    background: transparent;
    border: none;
    color: #FFF3A3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 4px;
    transition: all 0.25s ease;
}

.wgl-verda-submit:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.wgl-verda-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.wgl-sub-feedback {
    margin-top: 10px;
    font-size: 0.84rem;
    padding: 8px 12px;
    border-radius: 8px;
    line-height: 1.4;
}

.wgl-sub-feedback.is-success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.wgl-sub-feedback.is-error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* 3. Bottom Row */
.wgl-footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 14px 28px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.wgl-bottom-copy {
    color: rgba(255, 255, 255, 0.7);
}

.wgl-bottom-meta-links {
    display: flex;
    gap: 22px;
}

.wgl-bottom-meta-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}

.wgl-bottom-meta-links a:hover {
    color: #FFF3A3;
    text-decoration: none;
}

.wgl-bottom-top-action {
    display: flex;
    align-items: center;
}

.wgl-card-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.wgl-card-top-btn:hover {
    background-color: #FFF3A3;
    border-color: #FFF3A3;
    color: #111827;
    transform: translateY(-2px);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .wgl-glass-card { padding: 50px 35px; }
    .wgl-glass-card-inner { flex-direction: column; gap: 45px; }
    .wgl-card-left, .wgl-card-right { width: 100%; flex: 1 1 100%; }
    .wgl-watermark-text { font-size: clamp(26px, 7.6vw, 95px); }
}

@media (max-width: 768px) {
    .site-footer.wgl-footer { padding: 60px 0 35px 0; margin-top: 30px; }
    .wgl-watermark-text { font-size: clamp(20px, 7.2vw, 55px); letter-spacing: 0.04em; }
    .wgl-glass-card { padding: 35px 22px; border-radius: 16px; margin-bottom: 30px; }
    .wgl-card-right { flex-direction: column; gap: 35px; }
    .wgl-motto-heading { font-size: 1.15rem; }
    .wgl-big-link { font-size: 1.45rem; }
    .wgl-footer-bottom-bar { flex-direction: column; align-items: flex-start; gap: 14px; border-radius: 20px; padding: 18px 20px; }
    .wgl-bottom-meta-links { flex-wrap: wrap; gap: 14px; }
}

/* 10. MOBILE RESPONSIVENESS */
@media (max-width: 860px) {
    .member-dashboard-wrap {
        grid-template-columns: 1fr;
    }
    .msb-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: #ffffff;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 10px 14px;
        margin-bottom: 14px;
    }
    .msb-mobile-user {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        font-size: 13.5px;
    }
    .msb-mobile-toggle {
        background: none;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        padding: 5px 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
    }
    .member-sidebar {
        display: none;
        margin-bottom: 16px;
    }
    .member-sidebar.msb--open {
        display: block;
    }
    .dashboard-grid-2col {
        grid-template-columns: 1fr;
    }
    .wiki-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-container, .container {
        padding: 10px 12px;
    }
    .top-header {
        padding: 10px 12px;
    }
    .page-title, .tool-page-title {
        font-size: 20px;
    }
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .review-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .header-actions {
        gap: 5px;
    }
    .header-actions .icon-btn {
        padding: 5px 8px;
        font-size: 14px;
    }
    .btn-signin-text {
        padding: 5px 7px;
        font-size: 12.5px;
    }
    .btn-signup-gradient {
        padding: 5px 10px;
        font-size: 12px;
    }
}

@media (max-width: 380px) {
    .btn-signin-text {
        display: none;
    }
    .btn-signup-gradient {
        padding: 5px 8px;
        font-size: 11.5px;
    }
}

/* ==========================================================================
   11. TOP MENU RIGHT ALIGNMENT & MODERN SEARCH BUTTON (MaxVerseTech Style)
   ========================================================================== */
.top-header .desktop-nav {
    margin-left: auto;
    margin-right: 14px;
}
.nav-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background-color: #ffffff;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}
.nav-search-btn:hover, .nav-search-btn:focus-visible {
    background-color: var(--primary, #2563eb);
    border-color: var(--primary, #2563eb);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
    transform: translateY(-1px);
    outline: none;
}

/* ==========================================================================
   12. GLOBAL AJAX LIVE SEARCH OVERLAY MODAL (MaxVerseTech Theme)
   ========================================================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.search-overlay.active {
    opacity: 1;
    visibility: visible;
}
.search-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 15, 25, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.search-modal-container {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 0 20px;
    z-index: 10;
    transform: translateY(-20px) scale(0.98);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.search-overlay.active .search-modal-container {
    transform: translateY(0) scale(1);
}
.search-modal-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}
.search-input-wrapper {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
}
.search-input-icon {
    color: var(--primary, #2563eb);
    display: flex;
    align-items: center;
    margin-right: 14px;
    flex-shrink: 0;
}
.search-modal-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.15rem;
    color: #0f172a;
    background: transparent;
    font-family: inherit;
    font-weight: 500;
}
.search-modal-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}
.search-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    margin-left: 10px;
}
.search-modal-close:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}
.search-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e2e8f0;
    border-top-color: var(--primary, #2563eb);
    border-radius: 50%;
    animation: searchSpin 0.7s linear infinite;
    margin-right: 8px;
}
@keyframes searchSpin {
    to { transform: rotate(360deg); }
}
.search-hints {
    padding: 12px 20px;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.85rem;
}
.search-hints-label {
    color: #64748b;
    font-weight: 600;
    margin-right: 4px;
}
.search-hint-tag {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.3;
}
.search-hint-tag:hover {
    background-color: var(--primary, #2563eb);
    border-color: var(--primary, #2563eb);
    color: #ffffff;
}
.search-results-wrapper {
    overflow-y: auto;
    max-height: 52vh;
    padding: 6px 0;
}
.search-result-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    gap: 14px;
    transition: background-color 0.15s ease;
}
.search-result-row:last-child {
    border-bottom: none;
}
.search-result-row:hover, .search-result-row.is-selected {
    background-color: #f0f7ff;
    text-decoration: none;
}
.search-result-thumb-box {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.search-result-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.search-result-info {
    flex: 1;
    min-width: 0;
}
.search-result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}
.search-result-title {
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    line-height: 1.25;
}
.search-result-cat {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.search-result-excerpt {
    font-size: 13px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}
.search-result-arrow {
    color: #94a3b8;
    font-size: 18px;
    font-weight: 600;
    transition: transform 0.15s ease, color 0.15s ease;
}
.search-result-row:hover .search-result-arrow,
.search-result-row.is-selected .search-result-arrow {
    transform: translateX(3px);
    color: var(--primary, #2563eb);
}
.search-empty-state {
    padding: 40px 20px;
    text-align: center;
    color: #64748b;
}
.search-empty-state svg {
    margin-bottom: 12px;
    color: #94a3b8;
}
.empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}
.empty-desc {
    font-size: 13px;
    color: #64748b;
    max-width: 380px;
    margin: 0 auto;
}
.search-modal-footer {
    padding: 10px 20px;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.78rem;
    color: #64748b;
}
.search-modal-footer kbd {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 1px 6px;
    font-family: monospace;
    font-size: 0.75rem;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

/* ==========================================================================
   13. WORDPRESS-STYLE DARK BLUE ADMIN TOOLBAR (#101f30)
   ========================================================================== */
.tt-admin-bar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 32px;
    background: #101f30;
    border-bottom: 1px solid #1e3a5f;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    z-index: 100000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    user-select: none;
}
body.has-admin-bar .top-header {
    top: 32px;
}
.tt-admin-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 16px;
    max-width: 100%;
}
.tt-ab-group {
    display: flex;
    align-items: center;
    height: 100%;
}
.tt-ab-item, .tt-ab-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    color: #cbd5e1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    font-size: 12.5px;
    line-height: 1;
    white-space: nowrap;
}
.tt-ab-item:hover, .tt-ab-link:hover, .tt-ab-has-submenu:hover > .tt-ab-link {
    background: rgba(255, 255, 255, 0.1);
    color: #60a5fa;
    text-decoration: none;
}
.tt-ab-brand {
    font-weight: 700;
    color: #93c5fd;
}
.tt-ab-icon {
    font-size: 13px;
    line-height: 1;
}
.tt-ab-arrow {
    font-size: 9px;
    opacity: 0.7;
    margin-left: 2px;
}
.tt-ab-has-submenu {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}
.tt-ab-submenu {
    display: none;
    position: absolute;
    top: 32px;
    left: 0;
    background: #101f30;
    border: 1px solid #1e3a5f;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    min-width: 180px;
    padding: 6px 0;
    z-index: 100001;
}
.tt-ab-submenu-right {
    left: auto;
    right: 0;
}
.tt-ab-has-submenu:hover .tt-ab-submenu {
    display: block;
}
.tt-ab-subitem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 12.5px;
    transition: background 0.12s, color 0.12s;
    line-height: 1.3;
}
.tt-ab-subitem:hover {
    background: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
}
.tt-ab-sub-header {
    padding: 8px 14px;
    border-bottom: 1px solid #1e3a5f;
    margin-bottom: 4px;
}
.tt-ab-sub-header strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
}
.tt-ab-sub-header small {
    display: block;
    color: #94a3b8;
    font-size: 11px;
}
.tt-ab-sub-divider {
    height: 1px;
    background: #1e3a5f;
    margin: 4px 0;
}
.tt-ab-logout:hover {
    background: #dc2626;
    color: #ffffff;
}
@media (max-width: 768px) {
    .tt-ab-text { display: none; }
    .tt-admin-bar-inner { padding: 0 8px; }
    .tt-ab-greeting strong { max-width: 100px; overflow: hidden; text-overflow: ellipsis; }
}

/* ==========================================================================
   14. FREEPLANT-STYLE AUTH MODAL POPUP COMPONENT
   ========================================================================== */
.auth-modal-root {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999999;
}
body.auth-modal-open {
    overflow: hidden;
}
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
}
.auth-modal-window {
    position: relative;
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 25px 65px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    animation: authModalPop 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    margin: auto;
}
@keyframes authModalPop {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    z-index: 5;
}
.auth-modal-close:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}
.auth-modal-header {
    padding: 24px 26px 0;
    text-align: center;
}
.auth-modal-brand {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-modal-logo {
    max-height: 32px;
    width: auto;
    object-fit: contain;
}
.auth-modal-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    gap: 16px;
    justify-content: center;
}
.auth-modal-tab {
    background: none;
    border: none;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    position: relative;
    transition: color 0.15s ease;
}
.auth-modal-tab:hover {
    color: var(--primary, #2563eb);
}
.auth-modal-tab.active {
    color: var(--primary, #2563eb);
}
.auth-modal-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary, #2563eb);
    border-radius: 2px 2px 0 0;
}
.auth-modal-alert {
    margin: 16px 26px 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
}
.auth-modal-alert.is-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.auth-modal-alert.is-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.auth-modal-body {
    padding: 22px 26px 28px;
}
.auth-screen-intro {
    margin-bottom: 18px;
}
.auth-screen-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}
.auth-screen-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}
.auth-form-group {
    margin-bottom: 15px;
}
.auth-form-label {
    display: block;
    font-weight: 600;
    font-size: 12.5px;
    color: #1e293b;
    margin-bottom: 5px;
}
.required-star {
    color: #ef4444;
}
.auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.auth-forgot-link {
    font-size: 12px;
    color: var(--primary, #2563eb);
    font-weight: 600;
    text-decoration: none;
}
.auth-forgot-link:hover {
    text-decoration: underline;
}
.auth-form-control {
    width: 100%;
    padding: 9px 13px;
    font-size: 14px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
}
.auth-form-control:focus {
    outline: none;
    border-color: var(--primary, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.auth-password-wrap {
    position: relative;
    width: 100%;
}
.auth-password-wrap input {
    padding-right: 42px;
}
.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
    color: #64748b;
    border-radius: 4px;
}
.auth-pwd-generator-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}
.btn-password-generator {
    background: none;
    border: none;
    color: #0284c7;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 0;
    transition: color 0.15s;
}
.btn-password-generator:hover {
    color: #0369a1;
    text-decoration: underline;
}
.pwd-copied-badge {
    font-size: 11px;
    color: #16a34a;
    font-weight: 600;
}
.auth-modal-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 22px;
}
.auth-btn-cancel {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    border-radius: 7px;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}
.auth-btn-cancel:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.auth-btn-submit {
    flex: 2;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    border: none;
    border-radius: 7px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.auth-btn-submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #6d28d9 100%);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}
.auth-btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
.auth-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: searchSpin 0.6s linear infinite;
}
.auth-switch-prompt {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #64748b;
}
.auth-switch-prompt a {
    color: var(--primary, #2563eb);
    font-weight: 600;
    text-decoration: none;
}
.auth-switch-prompt a:hover {
    text-decoration: underline;
}
