:root {
    --gd-primary: #4f46e5;
    --gd-primary-hover: #4338ca;
    --gd-success: #10b981;
    --gd-warning: #f59e0b;
    --gd-danger: #ef4444;
    --gd-bg: #f9fafb;
    --gd-card-bg: #ffffff;
    --gd-text: #1f2937;
    --gd-text-light: #6b7280;
    --gd-border: #e5e7eb;
}

.gd-tools-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--gd-text);
    max-width: 100%;
    margin: 20px auto;
}

.gd-card {
    background: var(--gd-card-bg);
    border: 1px solid var(--gd-border);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.gd-card-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.gd-form-group {
    margin-bottom: 20px;
}

.gd-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

.gd-input-text {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gd-border);
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.gd-input-text:focus {
    border-color: var(--gd-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.gd-btn {
    background: var(--gd-primary);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.gd-btn:disabled {
    background: var(--gd-border);
    cursor: not-allowed;
}

/* Progress bar */
.gd-progress-wrapper {
    margin-top: 20px;
    display: none;
}

.gd-progress-bar-container {
    background: var(--gd-border);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.gd-progress-bar {
    background: var(--gd-primary);
    height: 100%;
    width: 0%;
    transition: width 0.2s ease;
}

.gd-progress-text {
    font-size: 13px;
    color: var(--gd-text-light);
}

/* Badges */
.gd-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gd-badge-success { background: #d1fae5; color: #065f46; }
.gd-badge-warning { background: #fef3c7; color: #92400e; }
.gd-badge-danger { background: #fee2e2; color: #991b1b; }
.gd-badge-info { background: #e0f2fe; color: #075985; }

/* Tables */
.gd-table-container {
    overflow-x: auto;
    margin-top: 24px;
}

.gd-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.gd-table th, .gd-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gd-border);
}

.gd-table th {
    background: var(--gd-bg);
    font-weight: 600;
}

.gd-table tr:hover {
    background: rgba(243, 244, 246, 0.5);
}

/* Page Speed Auditor Metrics */
.gd-audit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.gd-metric-card {
    border: 1px solid var(--gd-border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    background: var(--gd-bg);
}

.gd-metric-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.gd-metric-label {
    font-size: 12px;
    color: var(--gd-text-light);
    font-weight: 500;
}

.gd-score-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.gd-score-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 800;
    border: 8px solid var(--gd-border);
}

.gd-score-good { border-color: var(--gd-success); color: var(--gd-success); }
.gd-score-average { border-color: var(--gd-warning); color: var(--gd-warning); }
.gd-score-poor { border-color: var(--gd-danger); color: var(--gd-danger); }

/* Print / PDF Styling */
@media print {
    body * {
        visibility: hidden;
    }
    
    .gd-print-report, .gd-print-report * {
        visibility: visible;
    }
    
    .gd-print-report {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        font-family: sans-serif;
    }
    
    .gd-no-print {
        display: none !important;
    }
    
    .gd-card {
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    .gd-metric-card {
        background: #f9fafb !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Secondary & Action Buttons */
.gd-btn-secondary {
    background: #64748b;
    color: white;
}
.gd-btn-secondary:hover {
    background: #475569;
}
.gd-btn-success {
    background: #10b981;
    color: white;
}
.gd-btn-success:hover {
    background: #059669;
}
.gd-btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 4px;
}

/* Checklist Styles for AdSense & SEO Audits */
.gd-checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gd-check-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--gd-border);
    background: #fff;
    transition: transform 0.15s ease;
}
.gd-check-item.pass {
    border-left: 4px solid var(--gd-success);
    background: #fdfefe;
}
.gd-check-item.warning {
    border-left: 4px solid var(--gd-warning);
    background: #fffdfa;
}
.gd-check-item.fail {
    border-left: 4px solid var(--gd-danger);
    background: #fffafa;
}
.gd-check-icon {
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
}
.gd-check-body {
    flex: 1;
}
.gd-check-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.gd-check-desc {
    font-size: 13px;
    color: var(--gd-text-light);
    line-height: 1.5;
    margin: 0;
}
.gd-check-remedy {
    font-size: 12px;
    color: #475569;
    margin-top: 6px;
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* Product Catalog PDF Sheet */
.gd-catalog-sheet {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-top: 25px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.gd-catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gd-primary);
    padding-bottom: 16px;
    margin-bottom: 24px;
}
.gd-catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .gd-catalog-grid {
        grid-template-columns: 320px 1fr;
    }
}
.gd-catalog-img {
    width: 100%;
    max-height: 380px;
    object-fit: contain;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    padding: 8px;
}
.gd-catalog-price-tag {
    font-size: 28px;
    font-weight: 800;
    color: var(--gd-primary);
    margin: 12px 0;
}
.gd-catalog-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
}
.gd-catalog-specs-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}
.gd-catalog-specs-table td:first-child {
    font-weight: 600;
    width: 140px;
    color: #475569;
}

/* Product Review Cards & Ratings */
.gd-review-summary-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 24px;
}
.gd-review-big-score {
    font-size: 48px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}
.gd-stars {
    color: #f59e0b;
    letter-spacing: 2px;
}
.gd-review-item {
    border-bottom: 1px solid var(--gd-border);
    padding: 16px 0;
}
.gd-review-item:last-child {
    border-bottom: none;
}
.gd-review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.gd-reviewer-name {
    font-weight: 700;
    font-size: 14px;
}
.gd-review-date {
    font-size: 12px;
    color: var(--gd-text-light);
}

/* Image Downloader Gallery Grid */
.gd-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 20px;
}
.gd-image-card {
    border: 1px solid var(--gd-border);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gd-image-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}
.gd-image-preview-wrap {
    height: 160px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.gd-image-preview-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.gd-image-meta {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.gd-image-res {
    font-size: 11px;
    color: var(--gd-text-light);
}

/* ==========================================================================
   GROWTH DECODED MEGA MENU & SUBMENU FORMAT
   ========================================================================== */

/* Enable relative / static positioning on Astra header containers */
.ast-main-header-wrap,
.main-header-bar,
.main-header-menu {
    position: relative !important;
}

li.gd-has-mega-menu {
    position: static !important;
}

/* Hide default Astra sub-menu dropdown on desktop in favor of Growth Decoded mega menu */
@media (min-width: 992px) {
    li.gd-has-mega-menu > ul.sub-menu {
        display: none !important;
    }
}

li.gd-has-mega-menu .ast-header-navigation-arrow {
    display: none !important;
}

.gd-menu-chevron {
    display: inline-block;
    vertical-align: middle;
    margin-left: 5px;
    transition: transform 0.2s ease;
    stroke: currentColor;
}

li.gd-has-mega-menu:hover .gd-menu-chevron,
li.gd-has-mega-menu.gd-menu-open .gd-menu-chevron {
    transform: rotate(180deg);
}

/* Growth Decoded Mega Menu Dropdown Container */
.gd-mega-menu-wrapper {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    width: min(1140px, 95vw);
    background: #ffffff;
    border: 1px solid #fed7aa; /* Warm accent border */
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12), 0 12px 24px -6px rgba(0, 0, 0, 0.05);
    padding: 24px 30px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.22s;
    z-index: 999999;
    text-align: left;
    box-sizing: border-box;
}

/* Open on hover / active */
li.gd-has-mega-menu:hover .gd-mega-menu-wrapper,
li.gd-has-mega-menu.gd-menu-open .gd-mega-menu-wrapper {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(2px);
}

/* Invisible hover bridge to prevent accidental closing */
.gd-mega-menu-wrapper::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

/* Layout: Left Sidebar (Categories) + Right Content (Tools) */
.gd-menu-container {
    display: flex;
    gap: 0;
    align-items: stretch;
    min-height: 440px;
}

/* Left Category Navigation Sidebar */
.gd-category-sidebar {
    width: 255px;
    flex-shrink: 0;
    padding-right: 20px;
    display: flex;
    flex-direction: column;
}

.gd-sidebar-header {
    padding: 0 8px 10px 8px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 10px;
}

.gd-sidebar-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.gd-cat-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.gd-cat-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    color: #334155;
    font-size: 13.5px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    text-decoration: none;
    box-sizing: border-box;
}

.gd-cat-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #f1f5f9;
}

.gd-cat-btn.active {
    background: #fff7ed;
    color: #ea580c;
    font-weight: 700;
    border-color: #fed7aa;
    box-shadow: 0 1px 3px rgba(234, 88, 12, 0.08);
}

.gd-cat-icon {
    font-size: 16px;
    line-height: 1;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.gd-cat-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gd-cat-arrow {
    color: #cbd5e1;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.15s ease, color 0.15s ease;
}

.gd-cat-btn:hover .gd-cat-arrow {
    color: #94a3b8;
}

.gd-cat-btn.active .gd-cat-arrow {
    color: #ea580c;
    transform: translateX(3px);
}

.gd-sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.gd-all-tools-portal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 700;
    color: #ea580c;
    text-decoration: none;
    padding: 8px 12px;
    background: #fff7ed;
    border: 1px dashed #fed7aa;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.gd-all-tools-portal:hover {
    background: #ea580c;
    color: #ffffff !important;
    border-style: solid;
}

/* Vertical Divider */
.gd-menu-divider {
    width: 1px;
    background: #f1f5f9;
    margin: 0 4px;
    align-self: stretch;
}

/* Right Content Area */
.gd-content-area {
    flex: 1;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-height: calc(85vh - 80px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #fed7aa #f8fafc;
}

.gd-content-area::-webkit-scrollbar {
    width: 6px;
}
.gd-content-area::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}
.gd-content-area::-webkit-scrollbar-thumb {
    background: #fed7aa;
    border-radius: 3px;
}
.gd-content-area::-webkit-scrollbar-thumb:hover {
    background: #ea580c;
}

/* Tab Panels */
.gd-tab-panel {
    display: none;
    height: 100%;
    flex-direction: column;
}

.gd-tab-panel.active {
    display: flex;
    animation: gdFadeIn 0.2s ease forwards;
}

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

/* Category Panel Header */
.gd-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f8fafc;
}

.gd-panel-title {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 3px 0;
}

.gd-panel-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.45;
}

.gd-panel-hub-link {
    font-size: 12px;
    font-weight: 700;
    color: #ea580c;
    text-decoration: none;
    padding: 6px 12px;
    background: #fff7ed;
    border-radius: 7px;
    border: 1px solid #fed7aa;
    white-space: nowrap;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.gd-panel-hub-link:hover {
    background: #ea580c;
    color: #ffffff !important;
}

/* Right Tools Grid */
.gd-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    flex: 1;
    align-content: start;
}

@media (min-width: 1200px) {
    .gd-tools-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.gd-grid-card {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 11px;
    text-decoration: none !important;
    color: #1e293b !important;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    transition: all 0.15s ease;
}

.gd-grid-card:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.gd-grid-card:hover .gd-grid-name {
    color: #ea580c;
}

.gd-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gd-grid-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.gd-grid-desc {
    font-size: 11.5px;
    color: #64748b;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gd-icon-box {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Demos Mega Menu Grid & Visual Cards */
.gd-demos-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    flex: 1;
    align-content: start;
}

.gd-demo-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.gd-demo-card:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}

.gd-demo-card-thumb {
    position: relative;
    width: 100%;
    height: 96px;
    overflow: hidden;
    background: #f8fafc;
}

.gd-demo-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.3s ease;
}

.gd-demo-card:hover .gd-demo-card-thumb img {
    transform: scale(1.04);
}

.gd-demo-price-badge {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(15, 23, 42, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fed7aa;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 5px;
    letter-spacing: 0.02em;
    line-height: 1.3;
}

.gd-demo-tag-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: rgba(234, 88, 12, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1.2;
}

.gd-demo-card-body {
    padding: 8px 10px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gd-demo-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 3px 0;
    line-height: 1.3;
    transition: color 0.15s ease;
}

.gd-demo-card:hover .gd-demo-card-title {
    color: #ea580c;
}

.gd-demo-card-desc {
    font-size: 11px;
    color: #64748b;
    line-height: 1.35;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gd-demo-card-cta {
    font-size: 11px;
    font-weight: 700;
    color: #ea580c;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    transition: gap 0.15s ease;
}

.gd-demo-card:hover .gd-demo-card-cta {
    gap: 7px;
}

.gd-demo-cta-arrow {
    transition: transform 0.15s ease;
}

.gd-demo-card:hover .gd-demo-cta-arrow {
    transform: translateX(2px);
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 991px) {
    .gd-mega-menu-wrapper {
        position: static;
        transform: none !important;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: 1px solid #fed7aa;
        margin-top: 10px;
        padding: 16px;
    }
    .gd-menu-container {
        flex-direction: column;
        min-height: auto;
    }
    .gd-category-sidebar {
        width: 100%;
        padding-right: 0;
        margin-bottom: 16px;
    }
    .gd-cat-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }
    .gd-cat-btn {
        width: auto;
        padding: 6px 12px;
    }
    .gd-cat-arrow {
        display: none;
    }
    .gd-menu-divider {
        display: none;
    }
    .gd-content-area {
        padding-left: 0;
        max-height: none;
    }
    .gd-tools-grid {
        grid-template-columns: 1fr;
    }
    .gd-demos-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .gd-demo-card {
        flex-direction: row;
        align-items: stretch;
    }
    .gd-demo-card-thumb {
        width: 110px;
        height: auto;
        min-height: 80px;
        flex-shrink: 0;
    }
    .gd-demo-tag-badge {
        display: none;
    }
    .gd-demo-card-body {
        padding: 8px 12px;
    }
    .gd-demo-card-desc {
        -webkit-line-clamp: 1;
    }
    .gd-panel-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Client-Side Tools Suite Extensions
   ========================================================================== */

/* Privacy Note Box */
.gd-privacy-note {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 16px;
    margin-top: 20px;
    font-size: 13px;
    color: #64748b;
}

.gd-privacy-note .gd-privacy-icon {
    font-size: 16px;
    flex-shrink: 0;
}

/* Textarea & Code Inputs */
.gd-textarea {
    width: 100%;
    min-height: 140px;
    padding: 12px 14px;
    border: 1px solid var(--gd-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    resize: vertical;
    background: #ffffff;
}

.gd-textarea:focus {
    border-color: var(--gd-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.gd-textarea-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 13px;
}

/* Actions Toolbar */
.gd-actions-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

/* Toast Notification */
.gd-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    z-index: 99999;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gd-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Stat Grid & Stat Card */
.gd-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.gd-stat-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    text-align: center;
}

.gd-stat-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--gd-primary);
    line-height: 1.2;
}

.gd-stat-label {
    font-size: 12px;
    color: var(--gd-text-light);
    margin-top: 4px;
    font-weight: 500;
    text-transform: capitalize;
}

/* Category Hubs Grid */
.gd-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.gd-hub-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 22px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: inherit !important;
}

.gd-hub-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.gd-hub-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.gd-hub-card-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
}

.gd-hub-card-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.gd-hub-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    color: var(--gd-primary);
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}

/* Range Slider */
.gd-range-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
    margin: 10px 0;
}

.gd-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gd-primary);
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Radio / Checkbox Pills */
.gd-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.gd-pill {
    padding: 6px 14px;
    border: 1px solid var(--gd-border);
    border-radius: 9999px;
    background: #ffffff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.gd-pill:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

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

/* ==========================================================================
   GROWTH DECODED ALL TOOLS DIRECTORY & CATEGORY CARD GRIDS
   ========================================================================== */

/* Hide duplicate default Astra entry-header on tools directory page */
.page-id-3475 .entry-header,
body.page-id-3475 header.entry-header {
    display: none !important;
}

.gd-all-tools-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 16px 60px 16px;
}

.gd-all-tools-hero {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 32px auto;
}

.gd-all-tools-title {
    font-size: 34px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px 0;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.gd-all-tools-subtitle {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 28px 0;
}

/* Real-time Live Search Input Bar */
.gd-tools-search-wrap {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.gd-search-icon {
    position: absolute;
    left: 18px;
    font-size: 18px;
    pointer-events: none;
    line-height: 1;
}

.gd-tools-search-input {
    width: 100%;
    padding: 14px 110px 14px 48px;
    font-size: 15px;
    border: 2px solid #fed7aa;
    border-radius: 9999px;
    background: #ffffff;
    color: #0f172a;
    outline: none;
    box-shadow: 0 4px 12px -2px rgba(234, 88, 12, 0.08);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.gd-tools-search-input:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.15), 0 6px 16px -2px rgba(0, 0, 0, 0.05);
}

.gd-tools-count-badge {
    position: absolute;
    right: 12px;
    background: #fff7ed;
    color: #ea580c;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    border: 1px solid #fed7aa;
    pointer-events: none;
}

/* Category Quick Jump Navigation Bar */
.gd-category-pills-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 44px 0;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.gd-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    text-decoration: none !important;
    color: #334155 !important;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.gd-pill-btn:hover {
    background: #fff7ed;
    color: #ea580c !important;
    border-color: #fed7aa;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(234, 88, 12, 0.1);
}

.gd-pill-icon {
    font-size: 14px;
    line-height: 1;
}

.gd-pill-count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    line-height: 1;
    transition: all 0.15s ease;
}

.gd-pill-btn:hover .gd-pill-count {
    background: #fed7aa;
    color: #9a3412;
}

/* Category Section */
.gd-all-categories-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.gd-category-section {
    scroll-margin-top: 100px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 30px 32px 30px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gd-category-section:hover {
    border-color: #fed7aa;
    box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.05);
}

/* Category Section Header */
.gd-cat-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.gd-cat-header-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
}

.gd-cat-section-icon {
    font-size: 28px;
    line-height: 1;
    width: 48px;
    height: 48px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.gd-cat-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 4px;
}

.gd-cat-section-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}

.gd-cat-badge {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    line-height: 1.2;
}

.gd-cat-section-desc {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.gd-cat-hub-link {
    font-size: 13px;
    font-weight: 700;
    color: #ea580c !important;
    text-decoration: none !important;
    padding: 8px 16px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    white-space: nowrap;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin-top: 4px;
}

.gd-cat-hub-link:hover {
    background: #ea580c;
    color: #ffffff !important;
    border-color: #ea580c;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.2);
}

/* No Results Box */
.gd-no-results-box {
    text-align: center;
    padding: 48px 24px;
    background: #ffffff;
    border: 2px dashed #fed7aa;
    border-radius: 16px;
    margin: 20px 0;
}

/* Mobile Responsiveness for All Tools Directory */
@media (max-width: 991px) {
    .gd-all-tools-title {
        font-size: 28px;
    }
    .gd-category-section {
        padding: 20px 18px 24px 18px;
    }
    .gd-cat-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .gd-cat-hub-link {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .gd-category-pills-bar {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 10px;
        -webkit-overflow-scrolling: touch;
    }
    .gd-pill-btn {
        flex-shrink: 0;
    }
}



