/**
 * Autonis Core - Exploded Diagrams & Interactive EPC Stylesheet
 * High-Density Industrial Luxury Slate & Amber Gold
 * RTL-First Architecture | PC & Mobile Precision Optimized
 */

/* ==========================================================================
   1. GLOBAL WRAPPER & CANVAS RESET
   ========================================================================== */
.atn-diagram-single-wrap,
.atn-diagram-hub-wrap {
    background-color: #070a13;
    color: #f8fafc;
    min-height: 100vh;
    padding-bottom: 80px;
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    direction: rtl;
    text-align: right;
    box-sizing: border-box;
}

.atn-diagram-single-wrap *,
.atn-diagram-hub-wrap * {
    box-sizing: border-box;
}

.atn-diagram-single-wrap .dashicons,
.atn-diagram-hub-wrap .dashicons,
.dashicons {
    font-family: dashicons !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.atn-container {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .atn-container {
        padding: 0 16px;
    }
}

/* ==========================================================================
   2. LUXURY BREADCRUMB
   ========================================================================== */
.atn-diagram-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0 12px;
    font-size: 13px;
    color: #64748b;
}

.atn-bc-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #94a3b8;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.atn-bc-item:hover {
    color: #f59e0b;
}

.atn-bc-item .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    line-height: 15px;
}

.atn-bc-sep {
    color: #334155;
    font-size: 12px;
}

.atn-bc-current {
    color: #cbd5e1;
    font-weight: 600;
}

/* ==========================================================================
   3. HERO BAR / SINGLE COCKPIT HEADER
   ========================================================================== */
.atn-diagram-hero-bar {
    background: linear-gradient(135deg, rgba(16, 24, 40, 0.95) 0%, rgba(11, 17, 30, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
}

@media (max-width: 991px) {
    .atn-diagram-hero-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
}

.atn-diagram-hero-content {
    flex: 1;
}

.atn-diagram-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.atn-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.atn-badge .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.atn-badge-accent {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.atn-badge-mono {
    background: #0f172a;
    color: #94a3b8;
    border: 1px solid #334155;
    font-family: monospace;
    letter-spacing: 0.5px;
}

.atn-badge-success {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.atn-badge-count {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.35);
}

.atn-badge-info {
    background: rgba(14, 165, 233, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.atn-diagram-main-title {
    margin: 0 0 8px 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

.atn-title-fa {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.atn-title-en {
    font-size: 16px;
    font-weight: 600;
    color: #94a3b8;
    font-family: monospace;
}

.atn-diagram-hero-desc {
    margin: 0;
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.6;
    max-width: 900px;
}

.atn-diagram-hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 991px) {
    .atn-diagram-hero-actions {
        width: 100%;
    }
}

.atn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: none;
}

.atn-btn-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.atn-btn-primary:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.atn-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0 !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.atn-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
}

.atn-btn-count-pill {
    background: #0f172a;
    color: #fbbf24;
    padding: 2px 7px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
}

/* ==========================================================================
   4. MOBILE VIEW SWITCHER TABS
   ========================================================================== */
.atn-mobile-view-tabs {
    display: none;
    background: #0d1424;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 16px;
    gap: 4px;
}

@media (max-width: 991px) {
    .atn-mobile-view-tabs {
        display: flex;
    }
}

.atn-mobile-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 700;
    padding: 9px 8px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.atn-mobile-tab-btn .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    line-height: 15px;
}

.atn-mobile-tab-btn.is-active {
    background: #1e293b;
    color: #fbbf24;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   5. MASTER DIAGRAM & CATALOG SPLIT STUDIO
   ========================================================================== */
.atn-diagram-studio-container {
    display: grid;
    grid-template-columns: 46% 54%;
    gap: 0;
    background: #0d1424;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    height: 760px;
    margin-bottom: 48px;
    position: relative;
}

@media (max-width: 991px) {
    .atn-diagram-studio-container {
        grid-template-columns: 1fr;
        height: auto;
    }
}

/* FULLSCREEN STUDIO MODE */
.atn-diagram-studio-container.is-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
    border-radius: 0 !important;
    margin: 0 !important;
    border: none !important;
}

/* ==========================================================================
   6. VISUAL BLUEPRINT CANVAS PANEL
   ========================================================================== */
.atn-studio-canvas-panel {
    background: radial-gradient(rgba(245, 158, 11, 0.05) 1px, transparent 1px) 0 0 / 24px 24px, #070c18;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    user-select: none;
}

@media (max-width: 991px) {
    .atn-studio-canvas-panel {
        border-left: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        min-height: 440px;
        height: 480px;
    }
}

.atn-canvas-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(13, 20, 36, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    z-index: 20;
}

.atn-canvas-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
}

.atn-status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: atn-dot-pulse 2s infinite ease-in-out;
}

@keyframes atn-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}

/* FLOATING TOOLBAR */
.atn-studio-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #162032;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 4px 6px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.atn-tool-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}

.atn-tool-btn:hover {
    background: #1e293b;
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.atn-tool-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* VIEWPORT & STAGE */
.atn-diagram-viewport-frame {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.atn-diagram-viewport-frame:active {
    cursor: grabbing;
}

.atn-diagram-movable-stage {
    position: relative;
    display: inline-block;
    transform-origin: 0 0;
    transition: transform 0.08s ease-out;
}

.atn-diagram-schematic-img {
    max-width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    border-radius: 6px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
    transition: filter 0.3s ease;
}

/* HIGH-CONTRAST BLUEPRINT THEME */
.atn-studio-canvas-panel.is-contrast {
    background: #000000;
}

.atn-studio-canvas-panel.is-contrast .atn-diagram-schematic-img {
    filter: invert(1) hue-rotate(180deg) contrast(1.2) brightness(0.95);
}

/* HOTSPOT PINS */
.atn-hotspot-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    outline: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.atn-pin-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 6px;
    background: #0f172a;
    color: #fbbf24;
    border: 2px solid #f59e0b;
    border-radius: 6px;
    font-size: 11px;
    font-family: monospace;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
    user-select: none;
    transition: all 0.2s ease;
}

.atn-hotspot-pin:hover,
.atn-hotspot-pin.is-active {
    transform: translate(-50%, -50%) scale(1.25);
    z-index: 30;
}

.atn-hotspot-pin:hover .atn-pin-bubble,
.atn-hotspot-pin.is-active .atn-pin-bubble {
    background: #d97706;
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.8), 0 4px 12px rgba(0, 0, 0, 0.7);
}

.atn-hotspot-pin.is-active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    transform: translate(-50%, -50%);
    border: 2px solid #f59e0b;
    border-radius: 8px;
    animation: atn-pin-ring 1.8s infinite ease-out;
    pointer-events: none;
}

@keyframes atn-pin-ring {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* CANVAS HINT */
.atn-canvas-hint {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 11px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    backdrop-filter: blur(6px);
}

.atn-canvas-hint .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 13px;
    color: #f59e0b;
}

/* FLOATING PIN TOOLTIP */
.atn-pin-tooltip-card {
    position: absolute;
    display: none;
    width: 250px;
    background: #0f172a;
    border: 1px solid #f59e0b;
    border-radius: 10px;
    padding: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 16px rgba(245, 158, 11, 0.3);
    z-index: 50;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.atn-pin-tooltip-card.is-visible {
    display: block;
}

.atn-tt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.atn-tt-callout {
    background: #f59e0b;
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

.atn-tt-oem {
    font-size: 11px;
    color: #94a3b8;
    font-family: monospace;
}

.atn-tt-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.4;
    margin-bottom: 8px;
}

.atn-tt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    border-top: 1px solid #1e293b;
    padding-top: 6px;
}

.atn-tt-price {
    color: #34d399;
    font-weight: 700;
}

.atn-tt-action {
    color: #f59e0b;
}

/* ==========================================================================
   7. PARTS CATALOG PANEL (HIGH-DENSITY LUXURY TABLE)
   ========================================================================== */
.atn-studio-catalog-panel {
    background: #0d1424;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.atn-catalog-header {
    padding: 16px 20px;
    background: #090e1b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.atn-catalog-title-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.atn-catalog-heading {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.atn-catalog-heading .dashicons {
    color: #f59e0b;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.atn-catalog-count-badge {
    background: #162032;
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
}

/* SEARCH & FILTER CONTROLS */
.atn-catalog-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 600px) {
    .atn-catalog-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

.atn-catalog-search-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.atn-search-icon {
    position: absolute;
    right: 12px;
    color: #64748b;
    font-size: 16px;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.atn-catalog-input {
    width: 100%;
    background: #131c30;
    border: 1px solid #334155;
    color: #ffffff;
    font-size: 12.5px;
    padding: 8px 36px 8px 30px;
    border-radius: 8px;
    outline: none;
    transition: all 0.15s ease;
}

.atn-catalog-input:focus {
    border-color: #f59e0b;
    background: #162038;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.atn-search-clear {
    position: absolute;
    left: 8px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    display: none;
}

.atn-search-clear:hover {
    color: #ef4444;
}

.atn-catalog-filter-pills {
    display: flex;
    gap: 6px;
}

.atn-filter-pill {
    background: #162032;
    border: 1px solid #334155;
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.atn-filter-pill.is-active,
.atn-filter-pill:hover {
    background: #1e293b;
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

/* ==========================================================================
   8. HIGH-DENSITY CATALOG TABLE (DESKTOP)
   ========================================================================== */
.atn-catalog-table-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: auto;
    background: #0b1120;
}

/* CUSTOM HIGH-DENSITY SCROLLBAR */
.atn-catalog-table-wrapper::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}
.atn-catalog-table-wrapper::-webkit-scrollbar-track {
    background: #090e1b;
}
.atn-catalog-table-wrapper::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
.atn-catalog-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

.atn-catalog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: right;
}

.atn-catalog-table thead th {
    background: #090e1b;
    color: #94a3b8;
    font-size: 11.5px;
    font-weight: 700;
    padding: 10px 14px;
    border-bottom: 2px solid #1e293b;
    position: sticky;
    top: 0;
    z-index: 5;
    white-space: nowrap;
}

.atn-catalog-table tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.atn-catalog-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.015);
}

.atn-part-row {
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.atn-part-row:hover {
    background-color: rgba(245, 158, 11, 0.08) !important;
}

/* ACTIVE HIGHLIGHTED ROW */
.atn-part-row.is-highlighted {
    background-color: rgba(245, 158, 11, 0.2) !important;
    box-shadow: inset 4px 0 0 #f59e0b;
    animation: atn-row-glow 2s ease-out;
}

@keyframes atn-row-glow {
    0% { background-color: rgba(245, 158, 11, 0.4); }
    100% { background-color: rgba(245, 158, 11, 0.2); }
}

/* TABLE COLUMN WIDTHS & STYLING */
.atn-catalog-table .col-callout {
    width: 75px;
    white-space: nowrap;
}

.atn-callout-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #0f172a;
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
    padding: 3px 8px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
    font-weight: 800;
}

.atn-callout-badge .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 13px;
    color: #f59e0b;
}

.atn-catalog-table .col-oem {
    width: 125px;
    white-space: nowrap;
}

.atn-oem-pill-box {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #131c30;
    border: 1px solid #334155;
    padding: 3px 8px;
    border-radius: 5px;
}

.atn-oem-code {
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: 0.5px;
}

.atn-copy-oem-btn {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: color 0.15s ease;
}

.atn-copy-oem-btn:hover {
    color: #fbbf24;
}

.atn-copy-oem-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.atn-copy-tooltip {
    position: absolute;
    bottom: calc(100% + 5px);
    right: 50%;
    transform: translateX(50%);
    background: #10b981;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.atn-copy-oem-btn.copied .atn-copy-tooltip {
    opacity: 1;
}

.atn-catalog-table .col-title {
    min-width: 180px;
}

.atn-part-link {
    color: #f8fafc;
    text-decoration: none !important;
    display: block;
    line-height: 1.5;
    transition: color 0.15s ease;
}

.atn-part-link:hover {
    color: #f59e0b;
}

.atn-part-note-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

.atn-part-note-tag .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    line-height: 12px;
}

.atn-catalog-table .col-price {
    width: 110px;
    white-space: nowrap;
}

.atn-price-wrap {
    font-size: 13px;
    font-weight: 700;
    color: #34d399;
    direction: ltr;
    text-align: right;
    font-feature-settings: "tnum" 1;
}

.atn-badge-oos {
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
}

.atn-catalog-table .col-action {
    width: 85px;
    white-space: nowrap;
    text-align: center;
}

.atn-btn-add-cart,
.atn-btn-view-part {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 8px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.15s ease;
}

.atn-btn-add-cart {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.atn-btn-add-cart:hover {
    background: #f59e0b;
    color: #0f172a !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.atn-btn-view-part {
    background: #162032;
    color: #cbd5e1 !important;
    border: 1px solid #334155;
}

.atn-btn-view-part:hover {
    background: #1e293b;
    color: #ffffff !important;
}

/* ==========================================================================
   9. MOBILE HIGH-DENSITY PART CARDS
   ========================================================================== */
.atn-catalog-mobile-cards {
    display: none;
    padding: 12px;
    gap: 10px;
    overflow-y: auto;
    max-height: 520px;
}

@media (max-width: 768px) {
    .atn-catalog-table-wrapper {
        display: none;
    }
    .atn-catalog-mobile-cards {
        display: flex;
        flex-direction: column;
    }
}

.atn-mobile-part-card {
    background: #101728;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.15s ease;
}

.atn-mobile-part-card.is-highlighted {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
}

.atn-mpc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.atn-mpc-title {
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none !important;
}

.atn-mpc-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    margin-top: 2px;
}

.atn-mpc-price {
    font-weight: 700;
    font-size: 13px;
    color: #34d399;
}

/* ==========================================================================
   10. SIBLING DIAGRAMS SECTION
   ========================================================================== */
.atn-sibling-diagrams-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

@media (max-width: 600px) {
    .atn-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

.atn-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #f59e0b;
    font-weight: 700;
    margin-bottom: 4px;
}

.atn-section-heading {
    margin: 0;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.atn-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: color 0.15s ease;
}

.atn-section-link:hover {
    color: #f59e0b;
}

.atn-sibling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.atn-sibling-card {
    background: #0d1424;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.atn-sibling-card:hover {
    transform: translateY(-4px);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.15);
}

.atn-sibling-thumb {
    position: relative;
    height: 160px;
    background: #070c18;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atn-sibling-thumb img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.atn-sibling-card:hover .atn-sibling-thumb img {
    transform: scale(1.06);
}

.atn-sibling-overlay-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 36px;
    height: 36px;
    background: rgba(245, 158, 11, 0.9);
    color: #0f172a;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s ease;
}

.atn-sibling-card:hover .atn-sibling-overlay-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.atn-sibling-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.atn-sibling-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
}

.atn-sibling-title-en {
    font-size: 11.5px;
    color: #64748b;
    font-family: monospace;
}

.atn-sibling-action-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #f59e0b;
    font-weight: 700;
    margin-top: 4px;
}

/* ==========================================================================
   11. DIAGRAMS CATALOG HUB (/diagram/) STYLES
   ========================================================================== */
.atn-hub-hero-section {
    background: linear-gradient(135deg, rgba(16, 24, 40, 0.95) 0%, rgba(10, 15, 28, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px 40px;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .atn-hub-hero-section {
        padding: 24px 20px;
    }
}

.atn-hub-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.atn-hub-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.atn-hub-main-title {
    margin: 0 0 12px 0;
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .atn-hub-main-title {
        font-size: 24px;
    }
}

.atn-hub-sub-brand {
    font-size: 16px;
    color: #f59e0b;
    font-weight: 600;
    margin-right: 8px;
    font-family: monospace;
}

.atn-hub-desc {
    margin: 0 0 24px 0;
    font-size: 14.5px;
    color: #94a3b8;
    line-height: 1.7;
    max-width: 960px;
}

.atn-hub-garage-card {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #0d1424;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
    .atn-hub-garage-card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
}

.atn-hgc-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #cbd5e1;
}

.atn-hgc-icon {
    font-size: 22px;
    width: 22px;
    height: 22px;
    color: #f59e0b;
}

/* HUB SEARCH & COCKPIT BAR */
.atn-hub-cockpit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .atn-hub-cockpit-bar {
        flex-direction: column;
        align-items: stretch;
    }
}

.atn-hub-search-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.atn-hub-search-icon {
    position: absolute;
    right: 14px;
    color: #64748b;
    font-size: 18px;
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.atn-hub-search-input {
    width: 100%;
    background: #0d1424;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 14px;
    padding: 12px 42px 12px 36px;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
}

.atn-hub-search-input:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
    background: #111a30;
}

.atn-hub-status-box {
    font-size: 13px;
    color: #94a3b8;
    white-space: nowrap;
}

.atn-hub-status-box strong {
    color: #fbbf24;
    margin-right: 4px;
}

/* TECHNICAL GROUPS HORIZONTAL PILLS SCROLLER */
.atn-hub-groups-filter-nav {
    margin-bottom: 28px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.atn-hub-groups-filter-nav::-webkit-scrollbar {
    height: 4px;
}
.atn-hub-groups-filter-nav::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 2px;
}

.atn-hub-pills-scroller {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: max-content;
}

.atn-hub-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0d1424;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.atn-hub-pill .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.atn-hub-pill .atn-pill-count {
    background: #162032;
    color: #64748b;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
}

.atn-hub-pill:hover,
.atn-hub-pill.is-active {
    background: #1e293b;
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.4);
}

.atn-hub-pill.is-active .atn-pill-count {
    background: #0f172a;
    color: #fbbf24;
}

/* HUB DIAGRAM CARDS GRID */
.atn-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

@media (max-width: 600px) {
    .atn-hub-grid {
        grid-template-columns: 1fr;
    }
}

.atn-hub-card {
    background: #0d1424;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.atn-hub-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(245, 158, 11, 0.15);
}

.atn-card-link-wrapper {
    color: inherit;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.atn-card-thumbnail {
    position: relative;
    height: 200px;
    background: #070c18;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atn-card-thumbnail img {
    max-width: 88%;
    max-height: 88%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.atn-hub-card:hover .atn-card-thumbnail img {
    transform: scale(1.08);
}

.atn-card-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #334155;
    font-size: 12px;
}

.atn-card-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 16, 29, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(4px);
}

.atn-hub-card:hover .atn-card-thumb-overlay {
    opacity: 1;
}

.atn-overlay-badge {
    background: #f59e0b;
    color: #0f172a;
    font-weight: 800;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    transform: translateY(6px);
    transition: transform 0.2s ease;
}

.atn-hub-card:hover .atn-overlay-badge {
    transform: translateY(0);
}

.atn-card-group-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(6px);
}

.atn-card-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.atn-card-title {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.4;
}

.atn-card-title-en {
    font-size: 12px;
    color: #64748b;
    font-family: monospace;
    margin-bottom: 12px;
}

.atn-card-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 14px;
}

.atn-card-parts-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #94a3b8;
    background: #162032;
    padding: 2px 8px;
    border-radius: 5px;
    border: 1px solid #334155;
}

.atn-card-hotspot-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #34d399;
}

.atn-mini-pin-dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
}

.atn-card-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #f59e0b;
    font-size: 12.5px;
    font-weight: 700;
}

.atn-card-arrow {
    font-size: 16px;
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.atn-hub-card:hover .atn-card-arrow {
    transform: translateX(-4px);
}

/* NO RESULTS BOX */
.atn-hub-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #0d1424;
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

.atn-no-results-icon {
    font-size: 44px;
    width: 44px;
    height: 44px;
    color: #64748b;
    margin-bottom: 16px;
}

.atn-hub-no-results h3 {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 18px;
}

.atn-hub-no-results p {
    margin: 0 0 20px 0;
    color: #94a3b8;
    font-size: 13.5px;
}
