/* ==========================================================================
   AION IN-GAME AUTHENTIC ITEM TOOLTIP STYLES
   Matches NCSoft Aion Classic In-Game Tooltip UI (1.9 / 2.4)
   ========================================================================== */

/* Floating In-Game Tooltip (on Hover) */
.aion-floating-tooltip {
    position: fixed;
    z-index: 2000001;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.08s ease-out;
    top: 0;
    left: 0;
}

.aion-floating-tooltip.active {
    opacity: 1;
    visibility: visible;
}

/* Modal Overlay (on Click) */
.aion-tooltip-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 13, 0.85);
    backdrop-filter: blur(6px);
    z-index: 2000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.aion-tooltip-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Tooltip Card */
.aion-item-tooltip {
    position: relative;
    width: 420px;
    max-width: 95vw;
    background: linear-gradient(180deg, #111a28 0%, #0a0f19 50%, #060910 100%);
    border: 1px solid #23354d;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.95), 
                inset 0 1px 0 rgba(255, 255, 255, 0.12),
                inset 0 0 20px rgba(0, 15, 35, 0.6);
    border-radius: 6px;
    padding: 14px 18px 18px 18px;
    color: #cbd5e1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.4;
    user-select: none;
}

.aion-tooltip-modal-overlay .aion-item-tooltip {
    transform: scale(0.96);
    transition: transform 0.15s ease;
}

.aion-tooltip-modal-overlay.active .aion-item-tooltip {
    transform: scale(1);
}

.aion-tooltip-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.aion-tooltip-close:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.1);
}

/* Header */
.aion-tt-header {
    margin-bottom: 10px;
    padding-right: 20px;
}

.aion-tt-id {
    font-size: 11.5px;
    color: #64748b;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.aion-tt-name {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.2px;
}

/* Rarity Colors */
.aion-tt-name.rarity-JUNK,
.aion-tt-name.rarity-COMMON { color: #f1f5f9; }
.aion-tt-name.rarity-RARE { color: #22c55e; }
.aion-tt-name.rarity-LEGEND { color: #38bdf8; }
.aion-tt-name.rarity-UNIQUE { color: #f59e0b; text-shadow: 0 0 10px rgba(245, 158, 11, 0.4); }
.aion-tt-name.rarity-EPIC { color: #ea580c; text-shadow: 0 0 10px rgba(234, 88, 12, 0.5); }
.aion-tt-name.rarity-MYTHIC { color: #c084fc; text-shadow: 0 0 12px rgba(192, 132, 252, 0.6); }

/* Top Section (Icon + Properties) */
.aion-tt-top {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}

.aion-tt-icon-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.aion-tt-icon-wrapper {
    width: 44px;
    height: 44px;
    position: relative;
    border-radius: 4px;
    background: #020617;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.8), 0 2px 6px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

.aion-tt-icon-wrapper.border-COMMON { border: 2px solid #475569; }
.aion-tt-icon-wrapper.border-RARE { border: 2px solid #16a34a; }
.aion-tt-icon-wrapper.border-LEGEND { border: 2px solid #0284c7; }
.aion-tt-icon-wrapper.border-UNIQUE { border: 2px solid #d97706; box-shadow: 0 0 8px rgba(217, 119, 6, 0.4); }
.aion-tt-icon-wrapper.border-EPIC { border: 2px solid #ea580c; box-shadow: 0 0 10px rgba(234, 88, 12, 0.5); }
.aion-tt-icon-wrapper.border-MYTHIC { border: 2px solid #9333ea; box-shadow: 0 0 12px rgba(147, 51, 234, 0.6); }

.aion-tt-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aion-tt-godstone-slot {
    width: 38px;
    height: 38px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 3px;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.9);
}

.aion-tt-props {
    flex: 1;
    font-size: 12.5px;
    line-height: 1.35;
}

.aion-tt-prop-item {
    color: #e2e8f0;
    margin-bottom: 2px;
}

.aion-tt-req-level {
    color: #cbd5e1;
    margin-top: 2px;
    margin-bottom: 2px;
}

.aion-tt-flag {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    margin-top: 2px;
}

.aion-tt-flag.no {
    color: #e2e8f0;
}

.aion-tt-flag.no .icon-cross {
    color: #ef4444;
    font-weight: bold;
}

.aion-tt-flag.yes {
    color: #e2e8f0;
}

.aion-tt-flag.yes .icon-check {
    color: #22c55e;
    font-weight: bold;
}

/* Description Text */
.aion-tt-desc-text {
    font-size: 12.5px;
    color: #f1f5f9;
    line-height: 1.45;
    padding: 2px 0;
}

/* Price Block */
.aion-tt-price-block {
    font-size: 12.5px;
    color: #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 2px 0;
}

.aion-tt-price-title {
    font-weight: 600;
    color: #f1f5f9;
}

.aion-tt-price-row {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #f1f5f9;
}

.aion-tt-kinah-coin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: radial-gradient(circle, #fde047 30%, #ca8a04 80%, #78350f 100%);
    border: 1px solid #fef08a;
    border-radius: 50%;
    box-shadow: 0 0 2px rgba(234, 179, 8, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.8);
    position: relative;
    vertical-align: middle;
}

.aion-tt-kinah-coin::after {
    content: "Q";
    font-family: 'Cinzel', serif, sans-serif;
    font-size: 8px;
    font-weight: 900;
    color: #451a03;
    line-height: 1;
}

/* Divider */
.aion-tt-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(35, 53, 77, 0.8) 0%, rgba(51, 65, 85, 0.4) 50%, rgba(35, 53, 77, 0.1) 100%);
    margin: 8px 0;
}

/* Stats 2-Column Grid */
.aion-tt-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
    row-gap: 3px;
    font-size: 12.5px;
}

.aion-tt-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aion-tt-stat-name {
    color: #e2e8f0;
}

.aion-tt-stat-val {
    color: #ffffff;
    font-weight: 600;
}

/* Bonus Stats */
.aion-tt-bonus-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
    row-gap: 3px;
    font-size: 12.5px;
}

.aion-tt-bonus-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aion-tt-bonus-name {
    color: #4ade80;
    font-weight: 500;
}

.aion-tt-bonus-val {
    color: #4ade80;
    font-weight: 700;
}

/* Enchantment */
.aion-tt-enchant {
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
}

/* Manastone Sockets */
.aion-tt-manastone-title {
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 6px;
}

.aion-tt-manastone-slots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.aion-tt-manastone-box {
    width: 28px;
    height: 28px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 2px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.8);
}

/* Gives skills block (Stigmas) */
.aion-tt-gives-skills {
    padding: 2px 0;
}

.aion-tt-gives-title {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 6px;
}

.aion-tt-skill-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(15, 23, 42, 0.4);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.aion-tt-skill-row:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.35);
}

.aion-tt-skill-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1.5px solid #0284c7;
    background: #020617;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.aion-tt-skill-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.18);
    display: block;
}

.aion-tt-skill-text-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.aion-tt-skill-label {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
}

.aion-tt-skill-hover-badge {
    font-size: 10.5px;
    font-weight: 500;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 1px 6px;
    border-radius: 3px;
    transition: all 0.15s ease;
    user-select: none;
}

.aion-tt-skill-row:hover .aion-tt-skill-hover-badge {
    background: #38bdf8;
    color: #070d14;
    border-color: #38bdf8;
}

/* Skill Popover: Chevauchement sur la largeur (décalé à droite) et décalé vers le haut */
.aion-skill-popover {
    display: none;
    position: absolute;
    left: 200px;
    top: -28px;
    width: 380px;
    max-width: 90vw;
    z-index: 999999;
    pointer-events: auto;
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 16px rgba(56, 189, 248, 0.35));
}

.aion-tt-skill-row:hover > .aion-skill-popover,
.aion-skill-popover.active {
    display: block;
    animation: aionSkillPopoverFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Focused / Pinned state: stays open, highlighted border & shadow */
.aion-skill-popover.is-focused {
    display: block !important;
    z-index: 1000000 !important;
    animation: aionSkillFocusIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.aion-skill-popover.is-focused .aion-skill-card {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5), 0 0 25px rgba(56, 189, 248, 0.35), 0 20px 40px rgba(0, 0, 0, 0.98);
    position: relative;
}

.aion-skill-close-btn {
    display: flex;
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid #334155;
    border-radius: 4px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: bold;
    line-height: 1;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.15s ease;
}

.aion-skill-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.aion-skill-shared-item {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background 0.12s ease;
}

.aion-skill-shared-item:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
}

@keyframes aionSkillPopoverFadeIn {
    0% {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes aionSkillFocusIn {
    0% {
        transform: scale(0.98);
    }
    100% {
        transform: scale(1);
    }
}

/* Mobile & Small screens: display inline under the skill line */
@media (max-width: 920px) {
    .aion-tt-skill-row {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .aion-skill-popover {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-top: 8px;
    }
}

/* ============================================================================
   AUTHENTIC AION SKILL TOOLTIP / CARD COMPONENT (Matching skill_template.png)
   ============================================================================ */
.aion-skill-card {
    background-color: #060c14;
    border: 1px solid #162638;
    border-radius: 6px;
    padding: 14px 16px;
    color: #cbd5e1;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
    margin-top: 0;
    text-align: left;
}

.aion-skill-id {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.2;
    margin-bottom: 2px;
}

.aion-skill-name {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.aion-skill-header-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.aion-skill-icon-box {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    background: #020617;
    border: 1.5px solid #0284c7;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.35);
}

.aion-skill-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.18);
    display: block;
}

.aion-skill-meta-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 12.5px;
    color: #94a3b8;
}

.aion-skill-meta-list .val {
    color: #f1f5f9;
}

.aion-skill-hr {
    border: 0;
    border-top: 1px solid #142332;
    margin: 8px 0;
}

.aion-skill-specs {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 12.5px;
    color: #cbd5e1;
}

.aion-skill-specs .val {
    color: #f1f5f9;
}

.aion-skill-shared-block {
    margin-top: 6px;
}

.aion-skill-shared-title {
    font-size: 12.5px;
    color: #cbd5e1;
    font-weight: 600;
    margin-bottom: 4px;
}

.aion-skill-shared-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 2px;
}

.aion-skill-shared-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #cbd5e1;
}

.aion-skill-shared-icon {
    width: 20px;
    height: 20px;
    border-radius: 2px;
    border: 1px solid #334155;
    background: #020617;
    flex-shrink: 0;
    object-fit: cover;
}

.aion-skill-desc-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
    color: #f1f5f9;
    line-height: 1.45;
}

.aion-skill-desc-text {
    white-space: pre-line;
    color: #f1f5f9;
}

.aion-skill-tag {
    font-size: 12px;
    color: #94a3b8;
}

.aion-skill-note {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.35;
}

/* ==========================================================================
   RECIPE & CRAFT PLAN STYLES (Matching authentic Aion Classic plan.png)
   ========================================================================== */
.aion-tt-recipe-section-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 6px;
    letter-spacing: -0.1px;
}

.aion-tt-recipe-product-block {
    margin-bottom: 4px;
}

.aion-tt-recipe-components-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.aion-tt-recipe-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(51, 65, 85, 0.45);
    border-radius: 4px;
    padding: 4px 8px;
    transition: all 0.15s ease;
}

.aion-tt-recipe-row.aion-tt-linkable-item {
    cursor: pointer;
    user-select: none;
}

.aion-tt-recipe-row.aion-tt-linkable-item:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.45);
    transform: translateX(2px);
}

.aion-tt-recipe-slot {
    width: 32px;
    height: 32px;
    border-radius: 3px;
    background: #020617;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
}

.aion-tt-recipe-slot.border-COMMON { border: 1.5px solid #475569; }
.aion-tt-recipe-slot.border-RARE { border: 1.5px solid #16a34a; }
.aion-tt-recipe-slot.border-LEGEND { border: 1.5px solid #0284c7; }
.aion-tt-recipe-slot.border-UNIQUE { border: 1.5px solid #d97706; box-shadow: 0 0 6px rgba(217, 119, 6, 0.35); }
.aion-tt-recipe-slot.border-EPIC { border: 1.5px solid #ea580c; box-shadow: 0 0 8px rgba(234, 88, 12, 0.4); }
.aion-tt-recipe-slot.border-MYTHIC { border: 1.5px solid #9333ea; box-shadow: 0 0 10px rgba(147, 51, 234, 0.5); }

.aion-tt-recipe-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aion-tt-recipe-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.aion-tt-recipe-name {
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.aion-tt-recipe-qty {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    flex-shrink: 0;
}

.aion-tt-recipe-link-badge {
    font-size: 11px;
    color: #64748b;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1px 6px;
    border-radius: 3px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.aion-tt-recipe-row:hover .aion-tt-recipe-link-badge {
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.4);
}

/* History Nav Bar in Modal Tooltip */
.aion-tt-history-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.4);
}

.aion-tt-back-btn {
    background: rgba(30, 41, 59, 0.8);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.35);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}

.aion-tt-back-btn:hover {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 0 8px rgba(2, 132, 199, 0.4);
}

/* =========================================================================
   AUTHENTIC ITEM SET SECTION (Miragent, Fenris, Anuhart, etc.)
   ========================================================================= */
.aion-tt-set-block {
    margin-top: 4px;
}

.aion-tt-set-title {
    color: #f59e0b;
    font-weight: 700;
    font-size: 13.5px;
    margin-bottom: 5px;
    letter-spacing: 0.2px;
}

.aion-tt-set-parts {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}

.aion-tt-set-part {
    color: #f59e0b;
    font-size: 12.5px;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-block;
    width: fit-content;
}

.aion-tt-set-part:hover {
    color: #fef08a;
    text-decoration: underline;
    text-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.aion-tt-set-part-current {
    font-weight: 700;
    color: #fbbf24;
}

.aion-tt-set-tier-title {
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 600;
    margin-top: 10px;
    margin-bottom: 3px;
}

.aion-tt-set-full-title {
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 700;
    margin-top: 12px;
    margin-bottom: 3px;
}

.aion-tt-set-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 2px;
    margin-bottom: 4px;
}

.aion-tt-set-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    line-height: 1.35;
}

.aion-tt-set-stat-label {
    color: #ffffff;
}

.aion-tt-set-stat-value {
    color: #ffffff;
    font-weight: 600;
    margin-left: 8px;
    white-space: nowrap;
}




/* ==========================================================================
   MODAL 2-COLUMN LAYOUT WITH EMBEDDED 3D VIEWER
   ========================================================================== */
.aion-item-tooltip.has-3d-pane {
    width: 960px !important;
    max-width: 96vw !important;
    max-height: 92vh !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

.aion-item-tooltip.has-3d-pane .aion-tt-modal-body {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    max-height: 92vh;
    overflow: hidden;
}

.aion-tt-modal-left {
    width: 430px;
    flex-shrink: 0;
    padding: 16px 20px 20px 20px;
    overflow-y: auto;
    max-height: 92vh;
    box-sizing: border-box;
}

.aion-item-tooltip:not(.has-3d-pane) .aion-tt-modal-left {
    width: 100%;
    padding: 0;
    max-height: none;
    overflow-y: visible;
}

.aion-tt-modal-left::-webkit-scrollbar {
    width: 6px;
}
.aion-tt-modal-left::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}
.aion-tt-modal-left::-webkit-scrollbar-thumb {
    background: #23354d;
    border-radius: 3px;
}
.aion-tt-modal-left::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

.aion-tt-modal-right {
    flex: 1;
    min-width: 480px;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at 50% 35%, #151f32 0%, #0a0f1d 70%, #050811 100%);
    border-left: 1px solid #1e2c40;
    position: relative;
    box-sizing: border-box;
}

.aion-tt-3d-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 48px 12px 18px;
    background: rgba(11, 17, 30, 0.95);
    border-bottom: 1px solid rgba(56, 189, 248, 0.25);
    z-index: 2;
}

.aion-item-tooltip.has-3d-pane .aion-tooltip-close {
    top: 10px;
    right: 12px;
    z-index: 50;
    color: #94a3b8;
    font-size: 18px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.2s ease;
}

.aion-item-tooltip.has-3d-pane .aion-tooltip-close:hover {
    background: rgba(239, 68, 68, 0.35);
    border-color: #ef4444;
    color: #ffffff;
}

.aion-tt-3d-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: #38bdf8;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.aion-tt-3d-ext-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(56,189,248,0.15), rgba(59,130,246,0.25));
    border: 1px solid rgba(56,189,248,0.5);
    color: #bae6fd;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 0 12px rgba(56,189,248,0.2);
}

.aion-tt-3d-ext-btn:hover {
    background: rgba(56,189,248,0.35);
    color: #ffffff;
    border-color: #38bdf8;
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(56,189,248,0.4);
}

.aion-tt-3d-iframe-wrapper {
    flex: 1;
    min-height: 520px;
    width: 100%;
    position: relative;
    background: transparent;
}

.aion-tt-3d-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.aion-tt-3d-hint {
    padding: 7px 12px;
    background: rgba(8, 12, 22, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Space Mono', monospace;
    font-size: 0.70rem;
    color: #64748b;
    text-align: center;
    user-select: none;
}

@media (max-width: 940px) {
    .aion-item-tooltip.has-3d-pane {
        width: 95vw !important;
        max-height: 94vh !important;
        overflow-y: auto !important;
    }
    .aion-item-tooltip.has-3d-pane .aion-tt-modal-body {
        flex-direction: column;
        height: auto;
        max-height: none;
    }
    .aion-tt-modal-left {
        width: 100%;
        max-height: none;
        overflow-y: visible;
    }
    .aion-tt-modal-right {
        width: 100%;
        min-width: 0;
        border-left: none;
        border-top: 1px solid #1e2c40;
    }
    .aion-tt-3d-iframe-wrapper {
        min-height: 380px;
        height: 380px;
    }
}
