local addonName, ns = ...
local Fatebound = ns

-- ==================================================
-- Allowed Blizzard items for Forge extraction
-- Each entry maps Blizzard itemID to custom icon ID and lore
-- ==================================================
Fatebound.AllowedExtractItems = {
	--[6948] = { name = "Astral Essence", icon = 537022, lore = "Forged from a lost Azeroth relic.", tree = "any", elite = false },
	
	[112938] = { name = "Y'Shaarj’s Coalesced Heart-Rot", icon = 627685, lore = "A dense clot of primeval malice, condensed from the last breath of a dying empire.", tree = "yshaarj", elite = true },

	[174277] = { name = "N'Zoth’s Lingering Mind-Echo", icon = 3004126, lore = "A residual psychic shell still vibrating with unspoken decrees of the Sleeper Below.", tree = "nzoth", elite = true },

	[160654] = { name = "G'huun’s Disjoined Spore-Tether", icon = 1726347, lore = "A severed organism of rot-flesh, twitching with the hunger of its erased progenitor.", tree = "ghuun", elite = true },

	[21579] = { name = "C’Thun’s Shorn Filament of the Devouring Eye", icon = 236407, lore = "Once an extension of the Beholder’s perception, it now gropes blindly for a gaze that no longer answers.", tree = "cthun", elite = true },

	[46312] = { name = "Yogg-Saron’s Unbound Nightmare Grip", icon = 458238, lore = "A writhing knot of nightmare essence, parted from its master yet eager to whisper again.", tree = "yogg", elite = true },
	[156458] = { name = "Yogg-Saron’s Unbound Nightmare Grip", icon = 458238, lore = "A writhing knot of nightmare essence, parted from its master yet eager to whisper again.", tree = "yogg", elite = true },
	
	-- ==================================================
	-- Y'Shaarj --
	-- ==================================================
	[112925] = { name = "Echo of the Warlord’s Rage", icon = 136131, lore = "A manifestation of Garrosh’s fury, magnified by the remnants of Y'Shaarj’s heart.", tree = "yshaarj", elite = false },
	[112940] = { name = "Reverberating Whisper of the Seven Shadows", icon = 4914670, lore = "The secrets once revealed to Garrosh now echo endlessly, carrying the weight of Y'Shaarj’s final breath.", tree = "yshaarj", elite = false },

	[112921] = { name = "Blade of the Vor'thik Paragon", icon = 970853, lore = "A distilled killing edge born from Kil'ruk’s merciless precision.", tree = "yshaarj", elite = false },
	[112920] = { name = "Crescent of the Crimson Brood", icon = 1104343, lore = "Korven’s tactical mastery lingers within this curved fragment of dominance.", tree = "yshaarj", elite = false },
	[112922] = { name = "Vital Rend of the Gene-Shaper", icon = 136137, lore = "The essence of Rik’kal’s experiments, eternally probing flesh and soul.", tree = "yshaarj", elite = false },
	[112918] = { name = "Silent Arrow of the Deepswarm", icon = 457655, lore = "Hisek’s calculating sight becomes a whispering shard of predatory instinct.", tree = "yshaarj", elite = false },
	[112916] = { name = "Seal of the Mindweaver", icon = 6035316, lore = "Drawn from Iyyokuk’s eldritch logic, it binds fates in patterns unseen.", tree = "yshaarj", elite = false },
	[112917] = { name = "Ascendant Broodband", icon = 491467, lore = "Kil'ruk’s ambition crystallized into a ring that sharpens instinct to lethal clarity.", tree = "yshaarj", elite = false },
	[112913] = { name = "Bloodecho Talisman", icon = 4554438, lore = "Skeer’s hunger for carnage lingers within this pulsing shard of gore-born power.", tree = "yshaarj", elite = false },

	[112804] = { name = "Warborn Cleaver of Submission", icon = 237530, lore = "Forged from Malkorok’s unwavering loyalty, its edge reflects both pride and ruin.", tree = "yshaarj", elite = false },
	[112792] = { name = "Phial of Writhing Defiance", icon = 348281, lore = "The living corruption within pulses like a heartbeat, mirroring Malkorok’s sacrifice.", tree = "yshaarj", elite = false },

	[112951] = { name = "Regal Eye of Condemnation", icon = 237468, lore = "It judges all it sees, preserving the arrogance that shattered kingdoms.", tree = "yshaarj", elite = false },
	[112949] = { name = "Blade of Fallen Majesty", icon = 628268, lore = "A sword borne from Pride’s final collapse, its dignity twisted into cruelty.", tree = "yshaarj", elite = false },
	[112950] = { name = "Bulwark of Derision", icon = 651095, lore = "A shield forged from mocking disdain, reflecting the Sha’s contempt.", tree = "yshaarj", elite = false },
	[112948] = { name = "Prism of Broken Virtue", icon = 135855, lore = "A prison shaped from Pride’s downfall, trapping all who believe themselves untouchable.", tree = "yshaarj", elite = false },

	[112477] = { name = "Last Blade of the Silent Step", icon = 4620678, lore = "Softfoot’s final resolve given form — swift, unseen, and unforgiving.", tree = "yshaarj", elite = false },
	[112476] = { name = "Talisman of Fading Oaths", icon = 656551, lore = "Rook’s shattered promises echo within this fractured charm.", tree = "yshaarj", elite = false },

	[110784] = { name = "Tidecutter of Forsaken Purity", icon = 645165, lore = "Born from Immerseus’ corruption, its waters burn with sorrow and spite.", tree = "yshaarj", elite = false },

	[86386] = { name = "Executioner of the Shadowed Mandate", icon = 1084435, lore = "A blade forged from the edicts whispered by Y'Shaarj’s lingering wrath.", tree = "yshaarj", elite = false },
	[86387] = { name = "Rendfang of the Endless Terror", icon = 804513, lore = "Its maw bites deeper than flesh, gnawing at courage itself.", tree = "yshaarj", elite = false },
	[86335] = { name = "Orb of the Weeping Tides", icon = 651091, lore = "A sphere echoing with the Waterspeaker’s last lament.", tree = "yshaarj", elite = false },
	[86391] = { name = "Spiritbreaker Fragment", icon = 651085, lore = "Sha-energy shaped into a sliver that sunders hope from soul.", tree = "yshaarj", elite = false },
	[86331] = { name = "Soulfeeder Censer", icon = 651098, lore = "Its smoke draws in spirits, leaving only ash and anguish.", tree = "yshaarj", elite = false },
	[86321] = { name = "Staff of the Revered Sentinel", icon = 135202, lore = "A guardian’s honor corrupted into an artifact of oppressive vigilance.", tree = "yshaarj", elite = false },
	[86328] = { name = "Incarnation of Unbound Fear", icon = 3641394, lore = "Fear given shape, echoing the terror once unleashed by Loshan.", tree = "yshaarj", elite = false },
	[86226] = { name = "Talons of the Broodqueen’s Wrath", icon = 645142, lore = "Mantid fury condensed into a pair of shimmering claws.", tree = "yshaarj", elite = false },
	[86227] = { name = "Scepter of the Swarm Unending", icon = 651094, lore = "A relic infused with the imperial will of Shek'zeer's lineage.", tree = "yshaarj", elite = false },

	[144138] = { name = "Shattered Carapace of Devotion", icon = 651089, lore = "A scale that once belonged to a devout servant of the ancient god.", tree = "yshaarj", elite = false },
	[144171] = { name = "Katar of the Bloodwoven Hunt", icon = 636332, lore = "Ner’onok’s ferocity distilled into a swift, brutal essence.", tree = "yshaarj", elite = false },

	[144109] = { name = "Hatemarrow Warmace", icon = 133502, lore = "Forged from the hatred that consumed Taran Zhu, pulsing with barely contained fury.", tree = "yshaarj", elite = false },
	[144215] = { name = "Breath of the Shrouded Will", icon = 651086, lore = "A whisper of the shadow that once ruled his heart, lingering like poison.", tree = "yshaarj", elite = false },
	
	[112930] = { name = "Iris of the Unblinking Void", icon = 895885, lore = "A fragment of Y’Shaarj’s sight, still searching for weakness in every living mind.", tree = "yshaarj", elite = false },
	
	[112939] = { name = "Core of the Subjugated Dawn", icon = 1390941, lore = "A fragment of the Old God’s dominion, torn from steel yet unwilling to release its claim upon the world.", tree = "yshaarj", elite = false },

	-- ==================================================
	-- N'Zoth --
	-- ==================================================
	[172187] = { name = "Hour of Unraveling", icon = 1022950, lore = "The moment when N'Zoth's whispers unravel reality, bringing all hopes to ruin.", tree = "nzoth", elite = false },
	[172229] = { name = "Lurker’s Dominion", icon = 607852, lore = "A blade that hungers in the void, feeding on the fears of those who dare dream.", tree = "nzoth", elite = false },
	[174108] = { name = "Stellar Malignancy", icon = 425953, lore = "Forged from the essence of a dying star, its gaze corrupts the minds of mortals.", tree = "nzoth", elite = false },

	[172228] = { name = "Cosmic Watcher", icon = 1386549, lore = "A staff that channels the silent, suffocating gaze of N'Zoth, bending the cosmos to his will.", tree = "nzoth", elite = false },
	[174528] = { name = "Titanshard Echo", icon = 5927657, lore = "An obsidian fragment warped by the void, pulsating with the torment of fallen titans.", tree = "nzoth", elite = false },

	[172189] = { name = "Eyestalk of Secrets", icon = 3004126, lore = "An eye that sees through flesh and soul, whispering secrets no mortal should know.", tree = "nzoth", elite = false },

	[173946] = { name = "Drest’s Segment", icon = 1357815, lore = "A living fragment of the ancient horror, moving with a will of its own.", tree = "nzoth", elite = false },
	[172198] = { name = "Mindpiercer Essence", icon = 132843, lore = "A jagged spear that rends thoughts and sanity alike, leaving only obedience.", tree = "nzoth", elite = false },
	[172195] = { name = "Slumberer’s Spearhead", icon = 136181, lore = "Pierces the slumbering minds of mortals, awakening nightmares best left forgotten.", tree = "nzoth", elite = false },

	[172192] = { name = "All-Seeing Fragment", icon = 3072251, lore = "A relic of the Hivemind, ever watching, ever judging, consuming the essence of those it spies upon.", tree = "nzoth", elite = false },
	[174106] = { name = "Echoes of Dread", icon = 632353, lore = "A conduit to the collective dread of the Hivemind, binding its victims in unending torment.", tree = "nzoth", elite = false },

	[172190] = { name = "Uhnish Shard", icon = 4914679, lore = "A weapon infused with the dark certainties of Xanesh, twisting flesh and mind alike.", tree = "nzoth", elite = false },
	[172196] = { name = "Vorzz Essence", icon = 1097742, lore = "A blade that hungers for conviction, draining the will of those who oppose it.", tree = "nzoth", elite = false },

	[172200] = { name = "Sk’shuul Fragment", icon = 458969, lore = "An obsidian destroyer imbued with the essence of the Old Gods, a testament to the aqir’s devotion.", tree = "nzoth", elite = false },
	[172191] = { name = "An’zig Shard", icon = 132860, lore = "A weapon that channels the desert’s wrath and N’Zoth’s whispering malice.", tree = "nzoth", elite = false },

	[172199] = { name = "Faralos Essence", icon = 236222, lore = "A sword of twisted ambition, promising dominion in the name of the Old Gods.", tree = "nzoth", elite = false },
	[174105] = { name = "Mish’un Fragment", icon = 463569, lore = "A cruel weapon that turns rulers into puppets, bending kingdoms to N’Zoth’s will.", tree = "nzoth", elite = false },

	[169314] = { name = "Abyssal Vein", icon = 537079, lore = "A wellspring of power granted by N'Zoth, binding the Highborne to the will of the Old Gods.", tree = "nzoth", elite = false },

	[167842] = { name = "Currents of the Deep", icon = 1022950, lore = "Relics of the Restless Cabal, these bracers surge with the tides of ancient power.", tree = "nzoth", elite = false },
	[167218] = { name = "Stride of Drowned Whispers", icon = 132291, lore = "Boots that tread the abyssal depths, carrying their wearer in service to N'Zoth.", tree = "nzoth", elite = false },

	[167867] = { name = "Voidmutter", icon = 237567, lore = "A relic of Uu'nat, channeling the inscrutable will of the void upon all who oppose it.", tree = "nzoth", elite = false },

	[167864] = { name = "Sunken Spire", icon = 892446, lore = "A relic to summon N'Zoth, forged from the pressure and darkness of the deep ocean.", tree = "nzoth", elite = false },
	[167865] = { name = "Oblivion Shard", icon = 425958, lore = "A fragment pulsing with the raw essence of the void, used to call forth N'Zoth's presence.", tree = "nzoth", elite = false },

	[77216] = { name = "Riftclaw Essence", icon = 1698701, lore = "A claw of the void-twisted Warlord, imbued with chaotic power in N'Zoth's service.", tree = "nzoth", elite = false },

	[174268] = { name = "Coil of Subjugation", icon = 1386551, lore = "A ring that binds Shek'zara’s swarm to the Old God, quickening their terrible speed.", tree = "nzoth", elite = false },

	[174469] = { name = "Whispered Remnant", icon = 236295, lore = "Vuk'laz’s band channels destructive thought into those who dare oppose N'Zoth.", tree = "nzoth", elite = false },
	
	[167866] = { name = "Insidious Gaze", icon = 237298, lore = "A fragment of N’Zoth’s ever-watchful sight. Those who bear it feel seen at all times—and begin to see the world as he intends.", tree = "nzoth", elite = false },
	
	[172227] = { name = "Shiv of Eternal Night", icon = 940810, lore = "A fragment of forbidden power siphoned from the depths of the Black Empire. Whispers of old gods linger within, promising strength… at a price.", tree = "nzoth", elite = false },

	-- ==================================================
	-- C'Thun --
	-- ==================================================
	[22732] = { name = "Glyph of the Thousand Gazes", icon = 136122, lore = "A shifting sigil born from C’Thun’s omnipresent sight. It watches even when closed.", tree = "cthun", elite = false },
	[21582] = { name = "Echo of Grasping Tides", icon = 236195, lore = "An intangible imprint of constriction, as if the very air remembers being squeezed.", tree = "cthun", elite = false },
	[21666] = { name = "Anima of Shattered Dominion", icon = 136128, lore = "What remains of Sartura’s fanatical will now swirls in a storm of fractured purpose.", tree = "cthun", elite = false },
	[21608] = { name = "Crest of the Forgotten Twin", icon = 135440, lore = "A psychic residue echoing Vek’nilash’s imperial authority across endless epochs.", tree = "cthun", elite = false },
	[21601] = { name = "Cycle of the Mind-Sundered Emperor", icon = 1362636, lore = "Vek’lor’s thoughts spiral within this ring-shaped anomaly, looping without escape.", tree = "cthun", elite = false },
	[21597] = { name = "Vector of Royal Ascendance", icon = 134969, lore = "A geometric construct pulsing with the calculated ambition of the twin emperors.", tree = "cthun", elite = false },
	[21616] = { name = "Hive-Spire of Perpetual Venom", icon = 463485, lore = "A crystalline toxin structure humming with Huhuran’s eternal aggression.", tree = "cthun", elite = false },

	[21463] = { name = "Binding of the Desert Colossus", icon = 5764926, lore = "The lingering command that once anchored Ossirian to the sands now drifts unmoored.", tree = "cthun", elite = false },
	[21466] = { name = "Resonance of Piercing Hunger", icon = 5764922, lore = "Ayamiss’ predatory instinct distilled into a single note of perfect malice.", tree = "cthun", elite = false },
	[21485] = { name = "Shard of the Endless Carapace", icon = 236462, lore = "A fragment of Buru’s oppressive presence, endlessly expanding inward and outward.", tree = "cthun", elite = false },
	[21473] = { name = "Photon of Devouring Stillness", icon = 351507, lore = "Moam’s essence trapped in a moment of total calm that swallows surrounding light.", tree = "cthun", elite = false },

	[59490] = { name = "Veil of the Eyeless Dream", icon = 136212, lore = "A membrane of warped perception, reflecting the Twilight cult’s blind devotion.", tree = "cthun", elite = false },
	[59494] = { name = "Oblivion Pulse of the Betrayer", icon = 5764932, lore = "A rhythmic psionic beat, echoing Cho’gall’s final surrender to the Old Gods.", tree = "cthun", elite = false },

	-- ==================================================
	-- Yogg-Saron --
	-- ==================================================
	[45522] = { name = "Hemorrhage of the Sleeper", icon = 343641, lore = "A droplet of Yogg-Saron’s true ichor, endlessly splitting into new horrors in the mind’s eye.", tree = "yogg", elite = false },
	[156234] = { name = "Hemorrhage of the Sleeper", icon = 343641, lore = "A droplet of Yogg-Saron’s true ichor, endlessly splitting into new horrors in the mind’s eye.", tree = "yogg", elite = false },

	[45507] = { name = "Pulse of Commanded Silence", icon = 136212, lore = "A core of anti-thought born from Vezax’s oppressive presence, smothering all attempts at reason.", tree = "yogg", elite = false },
	[156221] = { name = "Pulse of Commanded Silence", icon = 136212, lore = "A core of anti-thought born from Vezax’s oppressive presence, smothering all attempts at reason.", tree = "yogg", elite = false },

	[45993] = { name = "Fragment of Fractured Logic", icon = 134573, lore = "A flickering cognitive shard, echoing the broken brilliance of Mimiron’s mechanized mind.", tree = "yogg", elite = false },
	[156330] = { name = "Fragment of Fractured Logic", icon = 134573, lore = "A flickering cognitive shard, echoing the broken brilliance of Mimiron’s mechanized mind.", tree = "yogg", elite = false },

	[45158] = { name = "Iron Seed of Reforged Sanity", icon = 4530943, lore = "A smoldering core where Ignis’s devotion twists metal and madness into perfect unity.", tree = "yogg", elite = false },
	[155952] = { name = "Iron Seed of Reforged Sanity", icon = 4530943, lore = "A smoldering core where Ignis’s devotion twists metal and madness into perfect unity.", tree = "yogg", elite = false },

	[36995] = { name = "Custodian’s Final Memory", icon = 135980, lore = "A crystallized recollection of Loken’s betrayal and burden, looping infinitely on itself.", tree = "yogg", elite = false },

	[35614] = { name = "Reverie of the Multifold Mind", icon = 4638684, lore = "A kaleidoscopic echo of Volazj’s teachings, offering countless truths—none of them real.", tree = "yogg", elite = false },

	[43277] = { name = "Litany of the Deep Prayer", icon = 135980, lore = "A whispered invocation Jedoga once offered to the void, now repeating without a speaker.", tree = "yogg", elite = false },

	[137464] = { name = "Nodus of Unspooled Dreams", icon = 4631368, lore = "A severed thought-tendril, still twitching as it leaks half-formed hallucinations.", tree = "yogg", elite = false },

	[137433] = { name = "Monolith of Inverted Sight", icon = 298654, lore = "An impossible geometric sliver; it perceives observers instead of being observed.", tree = "yogg", elite = false },
	
	-- ==================================================
	-- G'huun --
	-- ==================================================
	[160679] = { name = "Coagulum of Entombed Machinery", icon = 538744, lore = "A clot of rusted mechanisms fused with corrupted lifeblood; it pulses with forgotten protocols.", tree = "ghuun", elite = false },
	[160647] = { name = "Loop of Recursive Night", icon = 1394887, lore = "A closed circuit of endlessly collapsing thoughts, echoing the void-scripts etched into Zek’voz.", tree = "ghuun", elite = false },
	[160649] = { name = "Sporeborne Catalyst", icon = 1387657, lore = "A living reaction suspended in rot; it seeks new hosts to rewrite from within.", tree = "ghuun", elite = false },
	[160691] = { name = "Echo of the Crimson Vision", icon = 1357798, lore = "A prophetic afterimage torn from Zul’s final conviction, still whispering of empires drowned in blood.", tree = "ghuun", elite = false },
	[160656] = { name = "Tendril of Obedient Ruin", icon = 254105, lore = "A severed feeler that twitches toward commands only Xalzaix can utter.", tree = "ghuun", elite = false },
	[160653] = { name = "Lens of Willed Oblivion", icon = 1392546, lore = "A cloudy eye grown from the void’s refusal to perceive anything but its destined erasure.", tree = "ghuun", elite = false },
	[160646] = { name = "Band of Absolute Stillness", icon = 1357816, lore = "A ring where motion and decay cancel one another, leaving only the hush before annihilation.", tree = "ghuun", elite = false },
	[159652] = { name = "Sacramental Clot", icon = 1035037, lore = "A gelatinous mote formed from Leaxa’s ritual offerings, quivering with devotion to rot.", tree = "ghuun", elite = false },
	[159653] = { name = "Ovipod of Festering Hunger", icon = 1394889, lore = "A parasite-laden nucleus that yearns to burst and spread its rancid brood.", tree = "ghuun", elite = false },
	[159410] = { name = "Mass of Lingering Putrefaction", icon = 3565722, lore = "Zancha’s last coherent instinct curdled into a lump of animate decay.", tree = "ghuun", elite = false },
	[159625] = { name = "Phial of Runaway Decay", icon = 1618564, lore = "A container that fails to contain; the fluid inside tries to infect the vessel holding it.", tree = "ghuun", elite = false },

	-- ==================================================
	-- All --
	-- ==================================================
	[219917] = { name = "Coagulated Creep-Mass", icon = 132096, lore = "A viscous glob of Old God blood, forever crawling toward new hosts.", tree = "any", elite = false },
	[220305] = { name = "Ovi'nax's Mercurial Brood-Seed", icon = 237298, lore = "A volatile embryonic cluster, shifting forms in response to unseen commands.", tree = "any", elite = false },
	[212401] = { name = "Ansurek's Terminal Decree", icon = 136204, lore = "A final pulse of the queen’s absolute judgment, crystallized into black resonance.", tree = "any", elite = false },

	[22177] = { name = "Hielaman’s Coagulated Carapace", icon = 237410, lore = "A hardened scab of fused ichor, beating faintly with remembered violence.", tree = "any", elite = false },
	[219320] = { name = "Viscous Confluence", icon = 236158, lore = "A slumping mound of fused flesh, continually re-forming its own boundaries.", tree = "any", elite = false },
	[219317] = { name = "Harvester’s Ichor Edict", icon = 971288, lore = "A decree etched in living blood, compelling all lesser fluids to submit.", tree = "any", elite = false },

	[137302] = { name = "Warped Heart-Core", icon = 876915, lore = "A malformed remnant of nightmare rebirth, still pulsing with Xavius’s malice.", tree = "any", elite = false },
	[137301] = { name = "Condensed Starlight Corruption", icon = 1357802, lore = "A mote of ruined celestial brilliance, drowned in nightmare influence.", tree = "any", elite = false },
	[137306] = { name = "Root of Gnarled Memory", icon = 133427, lore = "A crooked fragment of Oakheart’s essence; it yearns for the crushing embrace of the grove.", tree = "any", elite = false },
	[137317] = { name = "Xavius’s Whisper-Skein", icon = 5175979, lore = "A writhing knot of muttered promises, whispered from within the Nightmare’s core.", tree = "any", elite = false },
	[139326] = { name = "Spontaneous Spawn-Mass", icon = 1357800, lore = "A cluster of limbs waiting for a form to claim, reacting to thought more than touch.", tree = "any", elite = false },
	[139328] = { name = "Rend-Marked Essence of Ursoc", icon = 1396975, lore = "A talon-etch imbued with primal fury, splintered by corruption.", tree = "any", elite = false },
	[138224] = { name = "Unstable Horror-Slime", icon = 1357799, lore = "A shapeless parasite that bubbles with anticipation for new nightmares.", tree = "any", elite = false },
	[139333] = { name = "Cenarian Echo-Horn", icon = 1357801, lore = "A hollowed burst of natural resonance, distorted until nature no longer recognizes it.", tree = "any", elite = false },
	[139336] = { name = "Bough of Creeping Rot", icon = 1357813, lore = "A twisting sprig, more fungus than wood, seeking fertile nightmares to root within.", tree = "any", elite = false },

	[159646] = { name = "Tidecaller's Abyss-Pulse", icon = 464484, lore = "A beat of oceanic will, reshaped by Stormsong’s drowning devotion.", tree = "any", elite = false },
	[158371] = { name = "Seabreeze’s Captive Murmur", icon = 132852, lore = "A soft whisper stolen from the tidesages’ communion, warped toward darker currents.", tree = "any", elite = false },
	[159239] = { name = "Aqu’sirr’s Spiral Wake", icon = 1698701, lore = "A swirling core of water-thought left behind as Aqu’sirr dissolved.", tree = "any", elite = false },

	[159135] = { name = "Deep Fathom Bite-Seed", icon = 893777, lore = "A tooth of abyssal intention, gnawing reality where carried.", tree = "any", elite = false },
	[159620] = { name = "Conch of Submerged Whispers", icon = 1508064, lore = "A shell full of voices that never surface, urging descent.", tree = "any", elite = false },

	[161359] = { name = "Gravitation-Bound Loop", icon = 1022950, lore = "A ring of crushing intent, dragging stray thoughts toward its core.", tree = "any", elite = false },

	[168868] = { name = "Za’qul’s Visage-Fracture", icon = 4914671, lore = "A shard of the harbinger’s many-angled presence, echoing realms that overlap poorly.", tree = "any", elite = false },
	[169306] = { name = "Key of Gateway Echoes", icon = 1041235, lore = "A conceptual latch that unlocks nowhere good.", tree = "any", elite = false },

	[70723] = { name = "Extinguished Sulfurous Core", icon = 525025, lore = "A cold ember of divine fire, smothered by shadowed purpose.", tree = "any", elite = false },
	[71797] = { name = "Sho’ravon’s Annihilation Embers", icon = 512617, lore = "Burning syllables trapped in a husk of ash, chanting destruction.", tree = "any", elite = false },

	[77191] = { name = "Gurthalak’s Abyssal Voice", icon = 3860390, lore = "A whisper dredged from the deepest dark, echoing Deathwing’s last delirium.", tree = "any", elite = false },

	[72863] = { name = "Stalk of Pooled Corruption", icon = 1413868, lore = "A fibrous extrusion grown from Benedictus’s unraveling faith.", tree = "any", elite = false },
	[72867] = { name = "Chattering Husk-Claw", icon = 134262, lore = "A splintered pincer that clicks in forgotten cadence.", tree = "any", elite = false },
	[72862] = { name = "Fang of Rooted Night", icon = 4643995, lore = "A hooked protrusion carrying the taste of void-tainted hunger.", tree = "any", elite = false },
	[72866] = { name = "Bite of Treachery’s Shade", icon = 432007, lore = "A shadow imprint left by betrayal, seeking new loyalties to rupture.", tree = "any", elite = false },
	[72860] = { name = "Mandible of the Forgotten Ones", icon = 1723696, lore = "A remnant of ancient jaws, always on the verge of speaking a forbidden name.", tree = "any", elite = false },
	[72855] = { name = "Carapace of Smothered Light", icon = 4559243, lore = "A plated shard saturated with Asira’s dying defiance, now hollow.", tree = "any", elite = false },

	[151441] = { name = "Aku’mai’s Abyss-Gait", icon = 2060145, lore = "A slick imprint that echoes the beast’s ancient, slumbering devotion.", tree = "any", elite = false },

	[151439] = { name = "Bathiel’s Drifting Scale", icon = 7137561, lore = "A buoyant fragment imbued with unwavering service to the deep.", tree = "any", elite = false },

	[17715] = { name = "Theradric All-Seeing Core", icon = 206516, lore = "A glaring node of petrified influence, still watching its lost dominion.", tree = "any", elite = false },

	[9467] = { name = "Gahz’rilla’s Icy Maw-Shard", icon = 237013, lore = "A frigid bite-fragment, echoing the chill whimsy of its ancient masters.", tree = "any", elite = false },
	
	[69844] = { name = "Sable Resonator", icon = 1022944, lore = "A siphoned shard from Julak-Doom’s crystalline beak, vibrating faintly with the echo of annihilation.", tree = "any", elite = false },

}

Fatebound.FakeItems = {
	["Twisted Soul Fragment"] = { name = "Twisted Soul Fragment", icon = 136221, lore = "A fragment of a soul warped by your dominance.", tree = "any", elite = false },
	["Corrupted Heart"] = { name = "Corrupted Heart", icon = 458245, lore = "The heart of a fallen creature, tainted by your influence.", tree = "any", elite = false },
	["Shattered Mindstone"] = { name = "Shattered Mindstone", icon = 535592, lore = "An essence of intellect broken and twisted by your touch.", tree = "any", elite = false },
	["Void-Touched Relic"] = { name = "Void-Touched Relic", icon = 4914668, lore = "A relic infused with the corruption of the void.", tree = "any", elite = false },
	["Warped Spirit Shard"] = { name = "Warped Spirit Shard", icon = 607513, lore = "A fragment of spirit twisted beyond recognition.", tree = "any", elite = false },
	["Fallen Essence"] = { name = "Fallen Essence", icon = 631519, lore = "The corrupted essence of a vanquished foe.", tree = "any", elite = false },
	["Ebon Tendril"] = { name = "Ebon Tendril", icon = 537022, lore = "A strand of darkness writhing with forbidden energy.", tree = "any", elite = false },
	["Cursed Void Shard"] = { name = "Cursed Void Shard", icon = 649816, lore = "A fragment of pure void energy, unstable and dangerous.", tree = "any", elite = false },
	["Nether Infused Crystal"] = { name = "Nether Infused Crystal", icon = 236296, lore = "A crystal pulsing with the chaotic energies of the Nether.", tree = "any", elite = false },
	["Eldritch Bone"] = { name = "Eldritch Bone", icon = 1022950, lore = "Bone imbued with the whispers of ancient horrors.", tree = "any", elite = false },
	["Corrupted Fang"] = { name = "Corrupted Fang", icon = 135687, lore = "A fang consumed by dark magic, still radiating malevolence.", tree = "any", elite = false },
	["Void-Twined Root"] = { name = "Void-Twined Root", icon = 537079, lore = "A root entwined with the essence of the void, black as night.", tree = "any", elite = false },
	["Shattered Netherstone"] = { name = "Shattered Netherstone", icon = 458969, lore = "A broken stone that vibrates with unstable Nether energy.", tree = "any", elite = false },
	["Abyssal Fragment"] = { name = "Abyssal Fragment", icon = 132851, lore = "A shard taken from the bottomless void, cold and lifeless.", tree = "any", elite = false },
	["Twilight Essence"] = { name = "Twilight Essence", icon = 132885, lore = "A fading essence of a world swallowed by darkness.", tree = "any", elite = false },
	["Fetid Heart"] = { name = "Fetid Heart", icon = 4497562, lore = "A heart soaked in decay and corruption.", tree = "any", elite = false },
	["Obsidian Shard"] = { name = "Obsidian Shard", icon = 462650, lore = "A fragment of black glass hardened in void flames.", tree = "any", elite = false },
	["Nightmare Essence"] = { name = "Nightmare Essence", icon = 1134860, lore = "The essence of twisted dreams, clawing at reality.", tree = "any", elite = false },
	["Void-Touched Fang"] = { name = "Void-Touched Fang", icon = 6856023, lore = "A fang that has tasted the void and returned.", tree = "any", elite = false },
	["Eldritch Shard"] = { name = "Eldritch Shard", icon = 1398088, lore = "A fragment brimming with eldritch energy.", tree = "any", elite = false },
	["Darkwhisper Relic"] = { name = "Darkwhisper Relic", icon = 135695, lore = "A relic that murmurs secrets of forbidden power.", tree = "any", elite = false },
	["Tainted Soulstone"] = { name = "Tainted Soulstone", icon = 3459799, lore = "A soulstone corrupted by void energy, pulsing with malice.", tree = "any", elite = false },
	["Netherbane Fragment"] = { name = "Netherbane Fragment", icon = 460858, lore = "A piece of shattered Nether essence, searing to the touch.", tree = "any", elite = false },
	["Fellblood Crystal"] = { name = "Fellblood Crystal", icon = 135735, lore = "A crystal containing the essence of fallen, corrupted blood.", tree = "any", elite = false },
	["Shadowflame Ember"] = { name = "Shadowflame Ember", icon = 135794, lore = "An ember born of shadow and flame, alive with corruption.", tree = "any", elite = false },
	["Creeping Darkness"] = { name = "Creeping Darkness", icon = 458230, lore = "A sliver of darkness that seems almost alive.", tree = "any", elite = false },
	["Ebon Soul Shard"] = { name = "Ebon Soul Shard", icon = 6841595, lore = "A shard of soul, blackened by endless void energies.", tree = "any", elite = false },
	["Corrupted Shard of Life"] = { name = "Corrupted Shard of Life", icon = 132860, lore = "Life energy twisted into a fragment of malevolence.", tree = "any", elite = false },
	["Netherweb Silk"] = { name = "Netherweb Silk", icon = 1786422, lore = "Silken threads pulled from the void between worlds.", tree = "any", elite = false },
	["Fallen Star Fragment"] = { name = "Fallen Star Fragment", icon = 6374897, lore = "A piece of celestial matter consumed by corruption.", tree = "any", elite = false },
	["Twisted Bone Shard"] = { name = "Twisted Bone Shard", icon = 607851, lore = "A fragment of bone bent by unspeakable power.", tree = "any", elite = false },
	["Void-Twisted Claw"] = { name = "Void-Twisted Claw", icon = 645142, lore = "A claw infused with void essence, unnaturally long and sharp.", tree = "any", elite = false },
	["Abyssal Relic"] = { name = "Abyssal Relic", icon = 4226154, lore = "A relic from the depths of the void, radiating unease.", tree = "any", elite = false },
	["Eldritch Heart"] = { name = "Eldritch Heart", icon = 4554439, lore = "The heart of an ancient entity, dark and unknowable.", tree = "any", elite = false },
	["Corrupted Seed"] = { name = "Corrupted Seed", icon = 425951, lore = "A seed tainted by dark magic, promising destruction.", tree = "any", elite = false },
	["Void-Bound Talisman"] = { name = "Void-Bound Talisman", icon = 135988, lore = "A talisman fused with void energies, humming with power.", tree = "any", elite = false },
	["Fallen Whisper"] = { name = "Fallen Whisper", icon = 1355358, lore = "A whisper caught between worlds, carrying ominous secrets.", tree = "any", elite = false },
	["Darkened Eye"] = { name = "Darkened Eye", icon = 2921474, lore = "An eye filled with shadow, watching endlessly.", tree = "any", elite = false },
	["Netherfused Fang"] = { name = "Netherfused Fang", icon = 136131, lore = "A fang imbued with the chaotic energies of the Nether.", tree = "any", elite = false },
	["Twilight Bone"] = { name = "Twilight Bone", icon = 237244, lore = "Bone harvested from the twilight realm, cold and heavy.", tree = "any", elite = false },
	["Shadow Essence"] = { name = "Shadow Essence", icon = 136150, lore = "The concentrated shadow of a corrupted soul.", tree = "any", elite = false },
	["Void Ember"] = { name = "Void Ember", icon = 1717107, lore = "A tiny ember that burns with voidfire.", tree = "any", elite = false },
	["Fetid Shard"] = { name = "Fetid Shard", icon = 237531, lore = "A piece of matter consumed by decay and dark magic.", tree = "any", elite = false },
	["Eldritch Vine"] = { name = "Eldritch Vine", icon = 132887, lore = "A vine from the Old Gods’ realm, whispering in forgotten tongues.", tree = "any", elite = false },
	["Corrupted Crystal"] = { name = "Corrupted Crystal", icon = 237155, lore = "A crystal whose brilliance has been drowned in darkness.", tree = "any", elite = false },
	["Nether Shard"] = { name = "Nether Shard", icon = 607850, lore = "A fragment torn from the Nether, crackling with unstable energy.", tree = "any", elite = false },
	["Twisted Tendril"] = { name = "Twisted Tendril", icon = 960672, lore = "A writhing mass of corruption and shadow.", tree = "any", elite = false },
	["Abyssal Essence"] = { name = "Abyssal Essence", icon = 1589502, lore = "The distilled essence of the abyss, dark and infinite.", tree = "any", elite = false },
	["Fallen Soul Fragment"] = { name = "Fallen Soul Fragment", icon = 4914670, lore = "A fragment of a soul lost to corruption.", tree = "any", elite = false },
	["Void-Touched Scale"] = { name = "Void-Touched Scale", icon = 4914667, lore = "A scale taken from a creature consumed by the void.", tree = "any", elite = false },
	["Netherblood Crystal"] = { name = "Netherblood Crystal", icon = 607513, lore = "A crystal carrying the essence of netherborne blood.", tree = "any", elite = false },
	["Cursed Ember"] = { name = "Cursed Ember", icon = 2120320, lore = "An ember carrying lingering curses of the void.", tree = "any", elite = false },
	["Ebon Shard"] = { name = "Ebon Shard", icon = 4914668, lore = "A piece of black stone steeped in dark magic.", tree = "any", elite = false },
	["Twilight Fang"] = { name = "Twilight Fang", icon = 2921473, lore = "A fang from creatures of the dying twilight.", tree = "any", elite = false },
	["Shadowflame Shard"] = { name = "Shadowflame Shard", icon = 136160, lore = "A shard infused with fire from the shadows.", tree = "any", elite = false },
	["Fallen Ember"] = { name = "Fallen Ember", icon = 524350, lore = "A dying ember from a corrupted soul.", tree = "any", elite = false },
	["Nethervoid Fragment"] = { name = "Nethervoid Fragment", icon = 633004, lore = "A fragment that exists between the Nether and void.", tree = "any", elite = false },
	["Eldritch Ash"] = { name = "Eldritch Ash", icon = 237514, lore = "Ash from an ancient being, infused with forbidden magic.", tree = "any", elite = false },
	["Corrupted Tendril"] = { name = "Corrupted Tendril", icon = 1100169, lore = "A tendril consumed by dark energies, writhing unnaturally.", tree = "any", elite = false },
	["Voidheart Shard"] = { name = "Voidheart Shard", icon = 2060145, lore = "A shard from a heart touched by the void.", tree = "any", elite = false },
	["Fetid Relic"] = { name = "Fetid Relic", icon = 1769010, lore = "A relic soaked in decay and ancient corruption.", tree = "any", elite = false },
	["Shadow Tendril"] = { name = "Shadow Tendril", icon = 1022950, lore = "A tendril of pure shadow, still pulsing with life.", tree = "any", elite = false },
	["Nether Essence"] = { name = "Nether Essence", icon = 4067372, lore = "The concentrated life force of the Nether.", tree = "any", elite = false },
	["Twisted Shard"] = { name = "Twisted Shard", icon = 4914666, lore = "A piece of corrupted crystal warped by dark energies.", tree = "any", elite = false },
	["Ebon Relic"] = { name = "Ebon Relic", icon = 4914669, lore = "A relic blackened by voidfire.", tree = "any", elite = false },
	["Corrupted Vine"] = { name = "Corrupted Vine", icon = 3528303, lore = "A vine once living, now consumed by dark magic.", tree = "any", elite = false },
	["Voidfang Fragment"] = { name = "Voidfang Fragment", icon = 651088, lore = "A fragment of a fang twisted by void energy.", tree = "any", elite = false },
	["Fallen Bone Shard"] = { name = "Fallen Bone Shard", icon = 135974, lore = "A shard of bone from a creature lost to darkness.", tree = "any", elite = false },
	["Netherwhisper Fragment"] = { name = "Netherwhisper Fragment", icon = 136199, lore = "A fragment carrying whispers from the Nether.", tree = "any", elite = false },
	["Eldritch Ember"] = { name = "Eldritch Ember", icon = 3528298, lore = "An ember pulsing with eldritch energies.", tree = "any", elite = false },
	["Twilight Shard"] = { name = "Twilight Shard", icon = 348536, lore = "A shard reflecting the dying light of corrupted realms.", tree = "any", elite = false },
	["Corrupted Ash"] = { name = "Corrupted Ash", icon = 636332, lore = "Ash from a fire tainted by dark power.", tree = "any", elite = false },
	["Void Essence"] = { name = "Void Essence", icon = 237468, lore = "The essence of the void, intangible yet oppressive.", tree = "any", elite = false },
	["Fallen Relic"] = { name = "Fallen Relic", icon = 254114, lore = "A relic lost to time and corrupted by dark forces.", tree = "any", elite = false },
	["Ebon Bone"] = { name = "Ebon Bone", icon = 628268, lore = "A bone turned black by the energies of the void.", tree = "any", elite = false },
	["Netherflame Shard"] = { name = "Netherflame Shard", icon = 237567, lore = "A shard burning with unstable Nether flames.", tree = "any", elite = false },
	["Twisted Soulstone"] = { name = "Twisted Soulstone", icon = 3163624, lore = "A soulstone warped by corruption and void energies.", tree = "any", elite = false },
	["Fetid Essence"] = { name = "Fetid Essence", icon = 254501, lore = "Essence rotting with the power of decay.", tree = "any", elite = false },
	["Eldritch Shroud"] = { name = "Eldritch Shroud", icon = 136014, lore = "A veil of eldritch energy, suffocating and dark.", tree = "any", elite = false },
	["Voidtouched Ember"] = { name = "Voidtouched Ember", icon = 651095, lore = "An ember carrying whispers of the void.", tree = "any", elite = false },
	["Corrupted Heartstone"] = { name = "Corrupted Heartstone", icon = 574790, lore = "A heartstone overtaken by dark magic.", tree = "any", elite = false },
	["Netherbone Fragment"] = { name = "Netherbone Fragment", icon = 1355358, lore = "A fragment of bone infused with Nether energy.", tree = "any", elite = false },
	["Twilight Ember"] = { name = "Twilight Ember", icon = 1698698, lore = "An ember carrying the last light of a corrupted world.", tree = "any", elite = false },
	["Ebon Shard of Night"] = { name = "Ebon Shard of Night", icon = 1518095, lore = "A shard absorbing the essence of endless night.", tree = "any", elite = false },
	["Voidvine Fragment"] = { name = "Voidvine Fragment", icon = 4914678, lore = "A fragment of vine grown from void-tainted soil.", tree = "any", elite = false },
	["Fallen Shadow Fragment"] = { name = "Fallen Shadow Fragment", icon = 1357803, lore = "A piece of shadow twisted by corruption.", tree = "any", elite = false },
	["Netherflame Ember"] = { name = "Netherflame Ember", icon = 136202, lore = "An ember flickering with chaotic Netherfire.", tree = "any", elite = false },
	["Eldritch Shard of Decay"] = { name = "Eldritch Shard of Decay", icon = 1003592, lore = "A shard pulsing with ancient, decaying magic, echoing with the whispers of the Old Gods.", tree = "any", elite = false },
	["Voidmoss Fragment"] = { name = "Voidmoss Fragment", icon = 1500940, lore = "A piece of moss that grew in the endless void, dark and cold.", tree = "any", elite = false },
	["Netherroot Shard"] = { name = "Netherroot Shard", icon = 136093, lore = "A shard from a root twisted by Nether energies.", tree = "any", elite = false },
	["Fell Whisper"] = { name = "Fell Whisper", icon = 1618564, lore = "A whisper caught in the winds of corruption, unsettling all who hear it.", tree = "any", elite = false },
	["Twilight Vein"] = { name = "Twilight Vein", icon = 432007, lore = "A vein of material tainted by fading light and creeping darkness.", tree = "any", elite = false },
	["Eldritch Pulse"] = { name = "Eldritch Pulse", icon = 136010, lore = "A small fragment of energy that beats with forbidden magic.", tree = "any", elite = false },
	["Corrupted Marrow"] = { name = "Corrupted Marrow", icon = 2998185, lore = "Bone marrow overtaken by void corruption, black and brittle.", tree = "any", elite = false },
	["Voidglass Fragment"] = { name = "Voidglass Fragment", icon = 1373912, lore = "A sliver of glass forged in the heart of the void.", tree = "any", elite = false },
	["Fallen Essence Crystal"] = { name = "Fallen Essence Crystal", icon = 3528311, lore = "A crystal containing the essence of a fallen soul.", tree = "any", elite = false },
	["Nethercoil Tendril"] = { name = "Nethercoil Tendril", icon = 1418615, lore = "A writhing tendril born of the chaotic Nether.", tree = "any", elite = false },
	["Shadowvein Fragment"] = { name = "Shadowvein Fragment", icon = 237016, lore = "A fragment from a vein running with shadow magic.", tree = "any", elite = false },
	["Ebon Ash Shard"] = { name = "Ebon Ash Shard", icon = 134126, lore = "Ash from a fire consumed by darkness, cold yet heavy.", tree = "any", elite = false },
	["Corrupted Night Ember"] = { name = "Corrupted Night Ember", icon = 1357806, lore = "An ember carrying the darkness of the void and the night.", tree = "any", elite = false },
}

-- List of all Siphonable item IDs
local siphonableIDsList = {
 6948, 112938, 174277, 160654, 21579, 46312, 156458, 112925,
 112940, 112921, 112920, 112922, 112918, 112916, 112917, 112913,
 112804, 112792, 112951, 112949, 112950, 112948, 112477, 112476,
 110784, 86386, 86387, 86335, 86391, 86331, 86321, 86328,
 86226, 86227, 144138, 144171, 144109, 144215, 172187, 172229,
 174108, 172228, 174528, 172189, 173946, 172198, 172195, 172192,
 174106, 172190, 172196, 172200, 172191, 172199, 174105, 169314,
 167842, 167218, 167867, 167864, 167865, 77216, 174268, 174469,
 22732, 21582, 21666, 21608, 21601, 21597, 21616, 21463, 21466,
 21485, 21473, 59490, 59494, 45522, 156234, 45507, 156221, 45993,
 156330, 45158, 155952, 36995, 35614, 43277, 137464, 137433,
 160679, 160647, 160649, 160691, 160656, 160653, 160646, 159652,
 159653, 159410, 159625, 219917, 220305, 212401, 22177, 219320,
 219317, 137302, 137301, 137306, 137317, 139326, 139328, 138224,
 139333, 139336, 159646, 158371, 159239, 159135, 159620, 161359,
 168868, 169306, 70723, 71797, 77191, 72863, 72867, 72862, 72866,
 72860, 72855, 151441, 151439, 17715, 9467, 112930, 172227, 69844,
 167866, 112939
}

-- ======================================================
-- Siphonable Item Tooltip Handler
-- ======================================================

-- Build lookup table
local SiphonableItemIDs = {}
for _, id in ipairs(siphonableIDsList) do
    SiphonableItemIDs[id] = true
end

-- Add "Siphonable" line with icon to tooltip
local function AddSiphonableLine(tooltip, itemID)
    if not tooltip or not itemID or not SiphonableItemIDs[itemID] then return end

    tooltip.__siphonable_added = tooltip.__siphonable_added or {}
    if tooltip.__siphonable_added[itemID] then return end

    local icon = "|TInterface/Minimap/ObjectIconsAtlas:24:24:0:0:1024:1024:1:69:131:199|t"
	tooltip:AddLine(icon .. " |cff7955c8Siphonable|r")
    --tooltip:AddLine(icon .. " |cffbb2f2aSiphonable|r")
    tooltip:Show()
    tooltip.__siphonable_added[itemID] = true
end

local function AddSiphonableLine(tooltip, itemID)
    if not tooltip or not itemID or not SiphonableItemIDs[itemID] then return end

    tooltip.__siphonable_added = tooltip.__siphonable_added or {}
    if tooltip.__siphonable_added[itemID] then return end

    -- Icon immediately before text, no extra space or indent
    local icon = "|TInterface/Minimap/ObjectIconsAtlas:24:24:0:0:1024:1024:1:69:131:199|t"
    tooltip:AddLine(icon .. "|cff7955c8Siphonable|r")
	--tooltip:AddLine(icon .. " |cffbb2f2aSiphonable|r")

    tooltip:Show()
    tooltip.__siphonable_added[itemID] = true
end


-- Clear siphonable flag when tooltip clears
local function ClearSiphonableFlag(tooltip)
    tooltip.__siphonable_added = nil
end

GameTooltip:HookScript("OnTooltipCleared", ClearSiphonableFlag)
ItemRefTooltip:HookScript("OnTooltipCleared", ClearSiphonableFlag)

-- ======================================================
-- Tooltip Handlers
-- ======================================================

local TooltipHandlers = {}

TooltipHandlers["SetBagItem"] = function(tip, bag, slot)
    local itemLocation = ItemLocation:CreateFromBagAndSlot(bag, slot)
    if not itemLocation or not itemLocation:IsValid() then return end

    local itemLink = C_Item.GetItemLink(itemLocation)
    if not itemLink then return end

    local itemID = tonumber(itemLink:match("item:(%d+)"))
    if not itemID then return end

    AddSiphonableLine(tip, itemID)
end

TooltipHandlers["SetInventoryItem"] = function(tip, unit, slot)
    local itemLink = GetInventoryItemLink(unit, slot)
    if itemLink then
        local itemID = tonumber(itemLink:match("item:(%d+)"))
        AddSiphonableLine(tip, itemID)
    end
end

TooltipHandlers["SetLootItem"] = function(tip, slot)
    local itemLink = GetLootSlotLink(slot)
    if itemLink then
        local itemID = tonumber(itemLink:match("item:(%d+)"))
        AddSiphonableLine(tip, itemID)
    end
end

TooltipHandlers["SetHyperlink"] = function(tip, itemLink)
    if itemLink then
        local itemID = tonumber(itemLink:match("item:(%d+)"))
        AddSiphonableLine(tip, itemID)
    end
end

TooltipHandlers["SetItemByID"] = function(tip, itemID)
    if itemID then
        AddSiphonableLine(tip, itemID)
    end
end

-- Hook GameTooltip functions
for func, handler in pairs(TooltipHandlers) do
    if GameTooltip[func] then
        hooksecurefunc(GameTooltip, func, handler)
    end
end

hooksecurefunc(ItemRefTooltip, "SetHyperlink", TooltipHandlers["SetHyperlink"])

-- TooltipDataProcessor integration (Dragonflight+)
if TooltipDataProcessor and C_TooltipInfo then
    TooltipDataProcessor.AddTooltipPostCall(Enum.TooltipDataType.Item, function(tooltip, data)
        if not tooltip:IsForbidden() and data and data.hyperlink then
            local itemID = tonumber(data.hyperlink:match("item:(%d+)"))
            AddSiphonableLine(tooltip, itemID)
        end
    end)
end
