<?xml version="1.0" encoding="UTF-8" ?><!-- generator=Zoho Sites --><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><atom:link href="https://www.taass.in/blogs/tag/private-company/feed" rel="self" type="application/rss+xml"/><title>Thombre and Associates - Blog #Private company</title><description>Thombre and Associates - Blog #Private company</description><link>https://www.taass.in/blogs/tag/private-company</link><lastBuildDate>Sat, 20 Jun 2026 14:22:58 -0700</lastBuildDate><generator>http://zoho.com/sites/</generator><item><title><![CDATA[Tax on Settling Private Company Shares in a Trust]]></title><link>https://www.taass.in/blogs/post/tax-on-settling-private-company-shares-in-a-trust</link><description><![CDATA[Unlock tax rules for transferring shares to a private trust in India. Our guide covers capital gains, Section 56(2)(x) gift tax, & revocable vs. irrevocable trust impacts. Essential for tax planning.]]></description><content:encoded><![CDATA[<div class="zpcontent-container blogpost-container "><div data-element-id="elm_Yp8stGYuTZ28uL9SNJed9A" data-element-type="section" class="zpsection "><style type="text/css"></style><div class="zpcontainer-fluid zpcontainer"><div data-element-id="elm_2tI32TpxpOSe7OwSVn-lQg" data-element-type="row" class="zprow zprow-container zpalign-items-flex-start zpjustify-content-flex-start zpdefault-section zpdefault-section-bg " data-equal-column="false"><style type="text/css"></style><div data-element-id="elm_FqfDQjmtwGMdOhJtP6yxfQ" data-element-type="column" class="zpelem-col zpcol-12 zpcol-md-12 zpcol-sm-12 zpalign-self- zpdefault-section zpdefault-section-bg "><style type="text/css"></style><div data-element-id="elm_7z7inrD-HZC38bReYuh9PA" data-element-type="codeSnippet" class="zpelement zpelem-codesnippet "><div class="zpsnippet-container"><!DOCTYPE html><html lang="en"><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>Tax on Settling Private Company Shares in a Trust - Interactive Guide</title><!-- Tailwind CSS CDN --><script src="https://cdn.tailwindcss.com"></script><!-- Google Fonts: Inter --><link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet"><style> body { font-family: 'Inter', sans-serif; } .custom-scrollbar::-webkit-scrollbar { width: 6px; } .custom-scrollbar::-webkit-scrollbar-track { background: #f1f5f9; } .custom-scrollbar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; } .custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #94a3b8; } </style><body class="bg-slate-50 text-slate-900 min-h-screen selection:bg-indigo-500 selection:text-white"><!-- Header Section --><header class="bg-gradient-to-r from-slate-900 via-indigo-950 to-slate-900 text-white py-12 px-4 shadow-xl relative overflow-hidden"><div class="absolute inset-0 bg-[radial-gradient(circle_at_top_right,rgba(99,102,241,0.15),transparent_45%)]"></div>
<div class="max-w-6xl mx-auto relative z-10 text-center md:text-left"><span class="inline-flex items-center gap-1.5 px-3 py-1 rounded-full text-xs font-semibold bg-indigo-500/20 text-indigo-300 mb-4 border border-indigo-500/30"><span class="w-2 h-2 rounded-full bg-indigo-400 animate-pulse"></span> Indian Income Tax Framework </span><h1 class="text-3xl md:text-5xl font-extrabold tracking-tight bg-gradient-to-r from-white via-slate-100 to-indigo-200 bg-clip-text text-transparent"> Tax on Settling Private Company Shares in a Trust </h1><p class="mt-4 text-base md:text-lg text-slate-300 max-w-3xl leading-relaxed"> Master the complex legal and tax rules in India for transferring shares to a private trust. Use this interactive dashboard to analyze capital gains, gift tax rules, income clubbing provisions, and comparative tax rates. </p></div>
</header><!-- Main Workspace Container --><main class="max-w-6xl mx-auto px-4 py-12 space-y-16"><!-- SECTION 1: The Key Players --><section class="space-y-6"><div class="text-center md:text-left"><h2 class="text-2xl md:text-3xl font-bold text-slate-800 tracking-tight">1. The Key Players</h2><p class="text-slate-500 mt-1">A private trust functions on a tripod of distinct legal roles. Click each actor to explore their duties, tax relevance, and legal definitions.</p></div>
<!-- Interactivity Container --><div class="grid grid-cols-1 md:grid-cols-3 gap-6" id="players-container"><!-- Card 1: Settlor --><div onclick="selectPlayer('settlor')" id="card-settlor" class="bg-white rounded-2xl p-6 border-2 border-slate-200 hover:border-indigo-500 shadow-sm hover:shadow-md transition-all duration-300 cursor-pointer group relative overflow-hidden"><div class="absolute top-0 right-0 w-24 h-24 bg-indigo-50 rounded-full -mr-8 -mt-8 transition-transform group-hover:scale-110 duration-300"></div>
<div class="relative z-10"><div class="w-12 h-12 rounded-xl bg-indigo-100 text-indigo-600 flex items-center justify-center mb-4 group-hover:bg-indigo-600 group-hover:text-white transition-colors duration-300"><!-- User Icon --><svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"/></svg></div>
<h3 class="text-xl font-bold text-slate-800 group-hover:text-indigo-600 transition-colors">The Settlor</h3><p class="text-slate-500 text-sm mt-2">The individual who initiates the trust and transfers ownership of the private company shares.</p><span class="inline-flex items-center gap-1 mt-4 text-xs font-semibold text-indigo-600 group-hover:translate-x-1 transition-transform"> View Legal Impact &rarr; </span></div>
</div><!-- Card 2: Trustee --><div onclick="selectPlayer('trustee')" id="card-trustee" class="bg-white rounded-2xl p-6 border-2 border-slate-200 hover:border-indigo-500 shadow-sm hover:shadow-md transition-all duration-300 cursor-pointer group relative overflow-hidden"><div class="absolute top-0 right-0 w-24 h-24 bg-emerald-50 rounded-full -mr-8 -mt-8 transition-transform group-hover:scale-110 duration-300"></div>
<div class="relative z-10"><div class="w-12 h-12 rounded-xl bg-emerald-100 text-emerald-600 flex items-center justify-center mb-4 group-hover:bg-emerald-600 group-hover:text-white transition-colors duration-300"><!-- Shield Check Icon --><svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/></svg></div>
<h3 class="text-xl font-bold text-slate-800 group-hover:text-emerald-600 transition-colors">The Trustee</h3><p class="text-slate-500 text-sm mt-2">The custodian (individual or corporate) responsible for managing the shares and distribution of income.</p><span class="inline-flex items-center gap-1 mt-4 text-xs font-semibold text-emerald-600 group-hover:translate-x-1 transition-transform"> View Legal Impact &rarr; </span></div>
</div><!-- Card 3: Beneficiary --><div onclick="selectPlayer('beneficiary')" id="card-beneficiary" class="bg-white rounded-2xl p-6 border-2 border-slate-200 hover:border-indigo-500 shadow-sm hover:shadow-md transition-all duration-300 cursor-pointer group relative overflow-hidden"><div class="absolute top-0 right-0 w-24 h-24 bg-amber-50 rounded-full -mr-8 -mt-8 transition-transform group-hover:scale-110 duration-300"></div>
<div class="relative z-10"><div class="w-12 h-12 rounded-xl bg-amber-100 text-amber-600 flex items-center justify-center mb-4 group-hover:bg-amber-600 group-hover:text-white transition-colors duration-300"><!-- Gift Icon --><svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v13m0-13V6a2 2 0 112 2h-2zm0 0V5.5A2.5 2.5 0 109.5 8H12zm-7 4h14M5 12a2 2 0 110-4h14a2 2 0 110 4M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7"/></svg></div>
<h3 class="text-xl font-bold text-slate-800 group-hover:text-amber-600 transition-colors">The Beneficiary</h3><p class="text-slate-500 text-sm mt-2">The person or group (often family members) for whose benefit the trust is created and run.</p><span class="inline-flex items-center gap-1 mt-4 text-xs font-semibold text-amber-600 group-hover:translate-x-1 transition-transform"> View Legal Impact &rarr; </span></div>
</div></div><!-- Player Detail Panel --><div id="player-detail-panel" class="bg-slate-100 rounded-2xl p-6 border border-slate-200/60 hidden transition-all duration-300"><div class="flex items-start gap-4"><div id="detail-icon-wrapper" class="p-3 rounded-xl text-white shrink-0 mt-1"></div>
<div class="space-y-3"><h4 id="detail-title" class="text-lg font-bold text-slate-800"></h4><div id="detail-text" class="text-slate-600 text-sm md:text-base space-y-2"></div>
</div></div></div></section><!-- SECTION 2: The Process Flow --><section class="space-y-6"><div class="text-center md:text-left"><h2 class="text-2xl md:text-3xl font-bold text-slate-800 tracking-tight">2. Execution Pathway & Milestones</h2><p class="text-slate-500 mt-1">Settling shares involves precise corporate and trust law actions. Click on each chronological step to view legal mechanics.</p></div>
<!-- Steps Progress Bar --><div class="bg-white rounded-2xl p-6 md:p-8 border border-slate-200 shadow-sm"><!-- Visual Pipeline --><div class="relative flex flex-col md:flex-row justify-between items-center gap-8 md:gap-4"><div class="absolute hidden md:block top-1/2 left-[5%] right-[5%] h-0.5 bg-slate-200 -translate-y-1/2 z-0"></div>
<div id="pipeline-progress" class="absolute hidden md:block top-1/2 left-[5%] w-[0%] h-0.5 bg-indigo-500 -translate-y-1/2 z-0 transition-all duration-500 ease-in-out"></div>
<!-- Step 1 Button --><button onclick="selectStep(1)" id="btn-step-1" class="relative z-10 flex flex-col items-center group w-full md:w-auto"><div class="w-12 h-12 rounded-full bg-indigo-600 text-white flex items-center justify-center font-bold border-4 border-white shadow-md group-hover:scale-105 transition-transform duration-200">1</div>
<span class="mt-2 text-xs font-semibold text-slate-800 group-hover:text-indigo-600 transition-colors">Creation Decision</span></button><!-- Step 2 Button --><button onclick="selectStep(2)" id="btn-step-2" class="relative z-10 flex flex-col items-center group w-full md:w-auto"><div class="w-12 h-12 rounded-full bg-slate-200 text-slate-600 flex items-center justify-center font-bold border-4 border-white shadow-sm group-hover:scale-105 transition-transform duration-200">2</div>
<span class="mt-2 text-xs font-semibold text-slate-500 group-hover:text-slate-800 transition-colors">Deed & Registration</span></button><!-- Step 3 Button --><button onclick="selectStep(3)" id="btn-step-3" class="relative z-10 flex flex-col items-center group w-full md:w-auto"><div class="w-12 h-12 rounded-full bg-slate-200 text-slate-600 flex items-center justify-center font-bold border-4 border-white shadow-sm group-hover:scale-105 transition-transform duration-200">3</div>
<span class="mt-2 text-xs font-semibold text-slate-500 group-hover:text-slate-800 transition-colors">Share Transfer</span></button><!-- Step 4 Button --><button onclick="selectStep(4)" id="btn-step-4" class="relative z-10 flex flex-col items-center group w-full md:w-auto"><div class="w-12 h-12 rounded-full bg-slate-200 text-slate-600 flex items-center justify-center font-bold border-4 border-white shadow-sm group-hover:scale-105 transition-transform duration-200">4</div>
<span class="mt-2 text-xs font-semibold text-slate-500 group-hover:text-slate-800 transition-colors">Asset Management</span></button></div>
<!-- Step Description Workspace --><div class="mt-8 pt-6 border-t border-slate-100 min-h-[140px]" id="step-content-area"><!-- Loaded dynamically via JavaScript --></div>
</div></section><!-- SECTION 3: Scenario Simulator --><section class="space-y-6"><div class="text-center md:text-left"><h2 class="text-2xl md:text-3xl font-bold text-slate-800 tracking-tight">3. Interactive Tax Scenario Simulator</h2><p class="text-slate-500 mt-1">Toggle the variables below to understand how the nature of the trust and relationships define the tax treatment under the Indian Income Tax Act.</p></div>
<div class="grid grid-cols-1 lg:grid-cols-12 gap-8 items-start"><!-- Parameters Panel (Left) --><div class="lg:col-span-5 bg-white p-6 rounded-2xl border border-slate-200 shadow-sm space-y-6"><h3 class="text-lg font-bold text-slate-800 flex items-center gap-2"><!-- Adjustments Icon --><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-indigo-500" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6V4m0 2a2 2 0 100 4m0-4a2 2 0 110 4m-6 8a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4m6 6v10m6-2a2 2 0 100-4m0 4a2 2 0 110-4m0 4v2m0-6V4"/></svg> Scenario Parameters </h3><!-- Parameter 1: Trust Type --><div class="space-y-2"><label class="block text-sm font-semibold text-slate-700">Type of Trust</label><div class="grid grid-cols-2 gap-3"><button onclick="updateScenario('trustType', 'irrevocable')" id="param-trust-irrevocable" class="px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none bg-indigo-50 border-indigo-600 text-indigo-700"> Irrevocable Trust </button><button onclick="updateScenario('trustType', 'revocable')" id="param-trust-revocable" class="px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none border-slate-200 hover:border-slate-300 text-slate-600"> Revocable Trust </button></div>
<p class="text-xs text-slate-400 mt-1">Determines if control is completely relinquished or if assets can return to the settlor.</p></div>
<!-- Parameter 2: Relationship of Beneficiaries --><div class="space-y-2"><label class="block text-sm font-semibold text-slate-700">Beneficiary Profile</label><div class="grid grid-cols-2 gap-3"><button onclick="updateScenario('beneficiaryType', 'relatives')" id="param-ben-relatives" class="px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none bg-indigo-50 border-indigo-600 text-indigo-700"> Relatives of Settlor </button><button onclick="updateScenario('beneficiaryType', 'non-relatives')" id="param-ben-nonrelatives" class="px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none border-slate-200 hover:border-slate-300 text-slate-600"> Non-Relatives / Mix </button></div>
<p class="text-xs text-slate-400 mt-1">Crucial for defining Gift Tax exemptions under Section 56(2)(x).</p></div>
<!-- Parameter 3: Shares Distribution Determination --><div class="space-y-2"><label class="block text-sm font-semibold text-slate-700">Income Distribution Model</label><div class="grid grid-cols-2 gap-3"><button onclick="updateScenario('distType', 'determinate')" id="param-dist-determinate" class="px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none bg-indigo-50 border-indigo-600 text-indigo-700"> Determinate </button><button onclick="updateScenario('distType', 'discretionary')" id="param-dist-discretionary" class="px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none border-slate-200 hover:border-slate-300 text-slate-600"> Discretionary </button></div>
<p class="text-xs text-slate-400 mt-1">Determines whether beneficiaries' shares are fixed or left to trustees' discretion.</p></div>
</div><!-- Simulation Results Panel (Right) --><div class="lg:col-span-7 bg-slate-900 text-white p-6 rounded-2xl shadow-xl space-y-6"><div class="flex justify-between items-center border-b border-slate-800 pb-4"><h3 class="text-lg font-bold tracking-tight text-slate-100 flex items-center gap-2"><!-- Shield Exclamation Icon --><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-indigo-400" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/></svg> Tax Verdict </h3><span id="scenario-summary-badge" class="px-2.5 py-0.5 rounded text-xs font-bold uppercase bg-indigo-500/20 text-indigo-300 border border-indigo-500/40"></span></div>
<!-- Grid of impacts --><div class="grid grid-cols-1 md:grid-cols-2 gap-4"><!-- Settlor Tax Impact --><div class="p-4 bg-slate-800/60 rounded-xl border border-slate-800 space-y-2"><h4 class="text-xs font-bold text-slate-400 uppercase tracking-wider">Settlor Tax Assessment</h4><p id="impact-settlor" class="text-sm text-slate-200 leading-relaxed"></p></div>
<!-- Capital Gains Impact --><div class="p-4 bg-slate-800/60 rounded-xl border border-slate-800 space-y-2"><h4 class="text-xs font-bold text-slate-400 uppercase tracking-wider">Capital Gains Treatment</h4><p id="impact-capgains" class="text-sm text-slate-200 leading-relaxed"></p></div>
<!-- Gift Tax Impact --><div class="p-4 bg-slate-800/60 rounded-xl border border-slate-800 space-y-2"><h4 class="text-xs font-bold text-slate-400 uppercase tracking-wider">Gift Tax u/s 56(2)(x)</h4><p id="impact-gift" class="text-sm text-slate-200 leading-relaxed"></p></div>
<!-- Clubbing provisions --><div class="p-4 bg-slate-800/60 rounded-xl border border-slate-800 space-y-2"><h4 class="text-xs font-bold text-slate-400 uppercase tracking-wider">Income Clubbing Rules</h4><p id="impact-clubbing" class="text-sm text-slate-200 leading-relaxed"></p></div>
</div><!-- Bottom Warning/Tax Rate Indicator --><div id="scenario-tax-rating" class="p-4 rounded-xl flex items-start gap-3 text-sm"><!-- Dynamic indicator text loads here --></div>
</div></div></section><!-- SECTION 4: Key Statutory Provisions --><section class="space-y-6"><div class="text-center md:text-left"><h2 class="text-2xl md:text-3xl font-bold text-slate-800 tracking-tight">4. Key Income Tax Act Sections</h2><p class="text-slate-500 mt-1">Click on each section of the Income Tax Act, 1961 to view simplified summaries and legal significance.</p></div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6"><!-- Card: Sec 47(iii) --><div class="bg-white p-6 rounded-2xl border border-slate-200 shadow-sm flex flex-col justify-between"><div><div class="flex items-center justify-between"><span class="px-2.5 py-1 rounded bg-indigo-50 text-indigo-700 text-xs font-bold uppercase">Sec 47(iii)</span><span class="text-slate-400 text-xs font-semibold">Gifts & Trusts</span></div>
<h4 class="font-bold text-slate-800 mt-4 text-lg">Exempted Capital Transfers</h4><p class="text-slate-500 text-sm mt-2 leading-relaxed"> Specifically excludes transfers of capital assets under a "gift" or a "will" or "an irrevocable trust" from the definition of a transfer, bypassing capital gains tax at the point of creation. </p></div>
<div class="mt-6 pt-4 border-t border-slate-100 flex items-center justify-between text-xs text-indigo-600 font-bold hover:text-indigo-800 cursor-pointer" onclick="showSectionModal('47(iii)')"><span>Read Legal Analysis &rarr;</span></div>
</div><!-- Card: Sec 56(2)(x) --><div class="bg-white p-6 rounded-2xl border border-slate-200 shadow-sm flex flex-col justify-between"><div><div class="flex items-center justify-between"><span class="px-2.5 py-1 rounded bg-amber-50 text-amber-700 text-xs font-bold uppercase">Sec 56(2)(x)</span><span class="text-slate-400 text-xs font-semibold">Deemed Income</span></div>
<h4 class="font-bold text-slate-800 mt-4 text-lg">Tax on Gift of Shares</h4><p class="text-slate-500 text-sm mt-2 leading-relaxed"> Brings property received without consideration (or for inadequate consideration) into the tax net. Exemptions apply if the trust receives the asset for the absolute benefit of defined "relatives." </p></div>
<div class="mt-6 pt-4 border-t border-slate-100 flex items-center justify-between text-xs text-amber-600 font-bold hover:text-amber-800 cursor-pointer" onclick="showSectionModal('56')"><span>Read Legal Analysis &rarr;</span></div>
</div><!-- Card: Sec 61 & 64 --><div class="bg-white p-6 rounded-2xl border border-slate-200 shadow-sm flex flex-col justify-between"><div><div class="flex items-center justify-between"><span class="px-2.5 py-1 rounded bg-rose-50 text-rose-700 text-xs font-bold uppercase">Sec 61 - 64</span><span class="text-slate-400 text-xs font-semibold">Clubbing</span></div>
<h4 class="font-bold text-slate-800 mt-4 text-lg">Anti-Avoidance Rules</h4><p class="text-slate-500 text-sm mt-2 leading-relaxed"> Ensures income generated by settled assets continues to be taxed in the hands of the settlor if the trust is revocable, or if the trust distributes income for the benefit of the settlor's spouse/minor child. </p></div>
<div class="mt-6 pt-4 border-t border-slate-100 flex items-center justify-between text-xs text-rose-600 font-bold hover:text-rose-800 cursor-pointer" onclick="showSectionModal('61')"><span>Read Legal Analysis &rarr;</span></div>
</div></div></section><!-- SECTION 5: Trust Taxation Rate Comparison Calculator --><section class="space-y-6"><div class="text-center md:text-left"><h2 class="text-2xl md:text-3xl font-bold text-slate-800 tracking-tight">5. Tax Rate Comparison Tool</h2><p class="text-slate-500 mt-1">Discretionary trusts are taxed at the Maximum Marginal Rate (MMR), whereas Determinate trusts mirror the individual slab rates of beneficiaries. Compare the liabilities visually below.</p></div>
<div class="bg-white rounded-2xl border border-slate-200 shadow-sm overflow-hidden grid grid-cols-1 lg:grid-cols-12"><!-- User Input Panel --><div class="lg:col-span-5 p-6 border-b lg:border-b-0 lg:border-r border-slate-200 space-y-6"><h3 class="text-lg font-bold text-slate-800">Income Estimator</h3><div class="space-y-2"><label for="income-input" class="block text-sm font-semibold text-slate-700">Annual Dividend/Capital Income of Trust</label><div class="relative rounded-xl shadow-sm"><div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"><span class="text-slate-500 sm:text-sm">₹</span></div>
<input type="number" name="income" id="income-input" value="1500000" step="50000" min="100000" max="50000000" class="focus:ring-indigo-500 focus:border-indigo-500 block w-full pl-8 pr-12 py-3 sm:text-sm border border-slate-300 rounded-xl" placeholder="0.00"><div class="absolute inset-y-0 right-0 pr-3 flex items-center pointer-events-none"><span class="text-slate-400 sm:text-sm" id="formatted-lakhs">15 Lakhs</span></div>
</div><p class="text-xs text-slate-400 mt-1">Calculations are based on the standard Maximum Marginal Rate of 39% (inclusive of standard surcharge caps on dividend income/capital gains, plus 4% cess).</p></div>
<div class="space-y-4 pt-4 border-t border-slate-100"><div class="flex justify-between items-center"><span class="text-xs font-semibold text-slate-500">Tax Regime for Individual comparison</span><span class="text-xs bg-slate-100 text-slate-700 px-2 py-0.5 rounded font-bold">New Tax Regime</span></div>
<p class="text-xs text-slate-400 leading-relaxed"> For individual slabs, we compare using the simplified standard New Tax Regime slab structures. </p></div>
</div><!-- Live Results Output --><div class="lg:col-span-7 p-6 bg-slate-50 flex flex-col justify-between"><div class="space-y-6"><h3 class="text-lg font-bold text-slate-800">Dynamic Projections</h3><!-- Visual Comparison Bar Chart --><div class="space-y-4"><!-- Discretionary Trust Bar --><div class="space-y-1"><div class="flex justify-between text-xs font-bold text-slate-700"><span>Discretionary Trust (MMR) Liability</span><span id="mmr-tax-lbl">₹ 5,85,000</span></div>
<div class="w-full bg-slate-200 rounded-full h-4 overflow-hidden"><div id="mmr-tax-bar" class="bg-rose-500 h-full rounded-full transition-all duration-300" style="width:100%;"></div>
</div><p class="text-[10px] text-slate-400">Effective Tax Rate: ~39.0% (No initial threshold exemptions)</p></div>
<!-- Individual Slab Bar --><div class="space-y-1"><div class="flex justify-between text-xs font-bold text-slate-700"><span>Determinate Trust / Beneficiary Individual Slab</span><span id="ind-tax-lbl">₹ 1,50,000</span></div>
<div class="w-full bg-slate-200 rounded-full h-4 overflow-hidden"><div id="ind-tax-bar" class="bg-indigo-600 h-full rounded-full transition-all duration-300" style="width:25.6%;"></div>
</div><p class="text-[10px] text-slate-400">Effective Tax Rate dynamically computed based on New Tax Regime slabs</p></div>
</div><!-- Savings Indicator --><div class="p-4 bg-emerald-50 border border-emerald-100 rounded-xl flex items-center justify-between"><div><h4 class="text-xs font-bold text-emerald-800 uppercase tracking-wider">Potential Tax Delta</h4><p id="tax-savings-lbl" class="text-lg font-extrabold text-emerald-600 mt-1">₹ 4,35,000</p></div>
<span class="text-xs font-medium text-emerald-700 bg-emerald-100/50 px-2.5 py-1 rounded-full"> Determinate Benefit </span></div>
</div></div></div></section><!-- Disclaimer Footer --><footer class="text-center text-slate-400 text-xs space-y-2 pt-8 border-t border-slate-200"><p><strong>Disclaimer:</strong> This interactive workspace is an informational and illustrative educational platform based on general interpretations of the Income Tax Act, 1961. Transfer of private company shares to family trusts involves complex corporate restructuring, valuation challenges, and legal documentation. Users must consult with qualified legal and certified chartered accountancy advisors prior to implementing any structures.</p></footer></main><!-- Detailed Section Modal (Hidden by default) --><div id="detail-modal" class="fixed inset-0 z-50 overflow-y-auto hidden" aria-labelledby="modal-title" role="dialog" aria-modal="true"><div class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0"><!-- Modal Overlay --><div class="fixed inset-0 bg-slate-900 bg-opacity-75 transition-opacity" onclick="closeSectionModal()"></div>
<!-- Modal body centering trick --><span class="hidden sm:inline-block sm:align-middle sm:h-screen" aria-hidden="true">&#8203;</span><!-- Modal content panel --><div class="inline-block align-bottom bg-white rounded-2xl text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-2xl sm:w-full"><div class="bg-white px-6 pt-6 pb-4 sm:p-6 sm:pb-4"><div class="sm:flex sm:items-start"><div id="modal-accent-bar" class="mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full sm:mx-0 sm:h-10 sm:w-10"><!-- Icon populated dynamically --></div>
<div class="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full"><h3 class="text-xl leading-6 font-extrabold text-slate-900" id="modal-title"></h3><div class="mt-4 border-t border-slate-100 pt-4 text-sm text-slate-500 space-y-4 leading-relaxed" id="modal-body-content"><!-- Dynamic legal text --></div>
</div></div></div><div class="bg-slate-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse"><button type="button" class="w-full inline-flex justify-center rounded-xl border border-transparent shadow-sm px-4 py-2 bg-slate-900 text-base font-semibold text-white hover:bg-slate-800 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-slate-500 sm:ml-3 sm:w-auto sm:text-sm" onclick="closeSectionModal()"> Close Analysis </button></div>
</div></div></div><!-- JavaScript logic --><script>
        // Global State
        const state = {
            selectedPlayer: null,
            selectedStep: 1,
            scenario: {
                trustType: 'irrevocable',
                beneficiaryType: 'relatives',
                distType: 'determinate'
            }
        };

        // Data: Key Players
        const playersData = {
            settlor: {
                title: 'The Settlor (Asset Creator)',
                bgColor: 'bg-indigo-600',
                text: `
                    <p class="font-semibold text-slate-800">Duties & Position:</p>
                    <p class="mt-1">The Settlor executes the Trust Deed, decides on the objectives of the family trust, and transfers the shares of the private company to the trust. He or she must completely and unconditionally part with the control of the shares to trigger exemptions.</p>
                    <p class="font-semibold text-slate-800 mt-3">Primary Tax Focus:</p>
                    <p class="mt-1">Subject to capital gains evaluation under Section 45. If the transfer is designated as "Irrevocable", Section 47(iii) exempts the transfer from capital gains tax because it qualifies as a gift. However, if the settlor receives any direct or indirect compensation/consideration, it ceases to be a gift, resulting in capital gains implications computed based on the Fair Market Value (FMV) of the shares as per Rule 11UA.</p>
                `
            },
            trustee: {
                title: 'The Trustee (Legal Custodian)',
                bgColor: 'bg-emerald-600',
                text: `
                    <p class="font-semibold text-slate-800">Duties & Position:</p>
                    <p class="mt-1">The Trustee holds legal title to the private company shares and executes decisions aligned strictly with the Trust Deed. Trustees act as a "Representative Assessee" for the beneficiaries under the Indian Income Tax framework.</p>
                    <p class="font-semibold text-slate-800 mt-3">Primary Tax Focus:</p>
                    <p class="mt-1">Trustees are assessed on trust income under Sections 160-164. Depending on whether the trust is a <strong>Determinate Trust</strong> (beneficiary shares are clearly defined) or a <strong>Discretionary Trust</strong> (shares are variable or up to trustee discretion), the trustee will either be taxed at the respective individual slab rates of the beneficiaries, or at the maximum marginal tax rate (MMR).</p>
                `
            },
            beneficiary: {
                title: 'The Beneficiary (Beneficial Owner)',
                bgColor: 'bg-amber-600',
                text: `
                    <p class="font-semibold text-slate-800">Duties & Position:</p>
                    <p class="mt-1">The beneficiaries are the family members or individuals who receive distributions (dividends, liquidation proceeds, interest) from the trust structure.</p>
                    <p class="font-semibold text-slate-800 mt-3">Primary Tax Focus:</p>
                    <p class="mt-1">Under Section 56(2)(x), if beneficiaries receive property/shares from non-relatives for little or no consideration, it is taxed as "Income from Other Sources". If all beneficiaries are defined as "Relatives" of the Settlor, the transfer of shares is generally exempt from gift tax. In determinate structures, income received by the trust is clubbed/allocated to respective beneficiary tax returns, avoiding triple taxation.</p>
                `
            }
        };

        // Data: Process Steps
        const stepsData = {
            1: {
                title: "Step 1: Creation Decision & Purpose Identification",
                desc: "The Settlor identifies private assets (shares) to structure. The objective is formalized—such as succession planning, preserving assets, or preventing fragmentation of private company ownership. <strong>Tax Trigger:</strong> It is critical to establish if the trust will be revocable or irrevocable at this phase, as this choice fundamentally alters the entire tax outcome."
            },
            2: {
                title: "Step 2: Drafting and Registration of Trust Deed",
                desc: "A custom Trust Deed is drafted detailing the roles of trustees, beneficiary structures (determinate vs discretionary), and asset distribution rights. The deed must be registered with the local sub-registrar in India under the Indian Trusts Act, 1882. <strong>Tax Trigger:</strong> The explicit inclusion of a clause making the trust completely irrevocable prevents future clubbing of income under Section 61."
            },
            3: {
                title: "Step 3: Share Transfer & Rule 11UA Valuation",
                desc: "The physical or demat shares are formally transferred from the Settlor's portfolio to the trust's demat account. This requires an execution of a Share Transfer Deed (Form SH-4) and board approval from the private company. <strong>Tax Trigger:</strong> Since the shares are unlisted, a Valuation Report from a Merchant Banker or Chartered Accountant using the net-worth-based Rule 11UA formulas is mandatory to prove the valuation is within standard bounds and defend against deemed income challenges."
            },
            4: {
                title: "Step 4: Active Management & Compliance Reporting",
                desc: "The Trustees now manage the corporate assets. Any dividends paid by the private company flow to the trust. <strong>Tax Trigger:</strong> The trust must obtain its own PAN, open a trust bank account, and file annual Income Tax Returns (ITR-5). If taxed as a discretionary trust, the trustees pay tax directly at MMR before distributing tax-paid income to the beneficiaries."
            }
        };

        // Interactive scenario generator matrix
        const scenariosMatrix = {
            'irrevocable-relatives-determinate': {
                badge: 'Highly Tax Efficient',
                settlor: 'Exempt from capital gains under Section 47(iii) as an irrevocable gift of shares.',
                capgains: 'No capital gains taxes apply at the time of settlement.',
                gift: 'Exempt! Since all beneficiaries qualify as "relatives" under Section 56(2)(x), the receipt of shares is not taxed.',
                clubbing: 'No clubbing under Section 61. However, clubbing under Section 64 remains active if beneficiary is the spouse or a minor child.',
                warningClass: 'bg-emerald-500/10 text-emerald-400 border border-emerald-500/20',
                warningText: 'Ideal for succession planning. Tax is computed based on individual beneficiary slabs.'
            },
            'irrevocable-relatives-discretionary': {
                badge: 'Protected but MMR applies',
                settlor: 'Exempt from capital gains under Section 47(iii) as an irrevocable gift.',
                capgains: 'No capital gains taxes apply on the transfer.',
                gift: 'Exempt from Gift Tax under Section 56(2)(x) since the trust is established for the sole benefit of relatives.',
                clubbing: 'No clubbing under Section 61 (irrevocable status).',
                warningClass: 'bg-amber-500/10 text-amber-400 border border-amber-500/20',
                warningText: 'The trust is taxed at the Maximum Marginal Rate (MMR), which is often higher than individual slab rates.'
            },
            'irrevocable-non-relatives-determinate': {
                badge: 'Gift Tax Risk',
                settlor: 'No capital gains tax on transfer under Section 47(iii).',
                capgains: 'Exempt under Section 47(iii).',
                gift: '<strong>Risk!</strong> Since beneficiaries are non-relatives, the receipt of shares without consideration exceeding ₹50,000 is taxed as "Income from Other Sources" u/s 56(2)(x) at FMV.',
                clubbing: 'No clubbing under Section 61.',
                warningClass: 'bg-rose-500/10 text-rose-400 border border-rose-500/20',
                warningText: 'Significant tax leakage risk on share transfer if non-relatives are included.'
            },
            'irrevocable-non-relatives-discretionary': {
                badge: 'High Tax Exposure',
                settlor: 'Exempt under Section 47(iii).',
                capgains: 'No capital gains tax on transfer.',
                gift: '<strong>High Risk!</strong> Section 56(2)(x) tax applies immediately at the trust level since the beneficiaries are non-relatives.',
                clubbing: 'No clubbing under Section 61.',
                warningClass: 'bg-rose-500/10 text-rose-400 border border-rose-500/20',
                warningText: 'Double disadvantage: Immediate gift tax liability plus ongoing income taxed at the Maximum Marginal Rate (MMR).'
            },
            'revocable-relatives-determinate': {
                badge: 'Clubbed Structure',
                settlor: 'Tax neutral on transfer, but all future dividend/gain income is clubbed back to the Settlor.',
                capgains: 'No capital gains since the asset transfer is not absolute (revocable).',
                gift: 'Exempt from gift tax initially.',
                clubbing: '<strong>Complete Clubbing!</strong> Under Section 61, all income generated by the trust is taxed directly in the hands of the Settlor as if no transfer occurred.',
                warningClass: 'bg-indigo-500/10 text-indigo-400 border border-indigo-500/20',
                warningText: 'Limits planning benefits. Often used strictly for non-tax asset protection.'
            },
            'revocable-relatives-discretionary': {
                badge: 'Clubbed Structure',
                settlor: 'Tax neutral on transfer, but future income is clubbed with Settlor.',
                capgains: 'No capital gains since the asset transfer is revocable.',
                gift: 'Exempt from gift tax initially.',
                clubbing: '<strong>Complete Clubbing!</strong> Under Section 61, all trust income is clubbed back to the Settlor, nullifying any tax shelter benefits.',
                warningClass: 'bg-indigo-500/10 text-indigo-400 border border-indigo-500/20',
                warningText: 'Not recommended for tax optimization due to total clubbing of future asset yields.'
            },
            'revocable-non-relatives-determinate': {
                badge: 'High Complex Exposure',
                settlor: 'Taxed on all trust-level earnings due to Section 61 clubbing rules.',
                capgains: 'No capital gains on transfer.',
                gift: 'Potential gift tax under 56(2)(x) for non-relative beneficial interest allocations.',
                clubbing: '<strong>Clubbed!</strong> Section 61 applies completely because the trust is revocable.',
                warningClass: 'bg-rose-500/10 text-rose-400 border border-rose-500/20',
                warningText: 'High risk. Results in immediate complications with multiple non-relative beneficiaries.'
            },
            'revocable-non-relatives-discretionary': {
                badge: 'High Complex Exposure',
                settlor: 'Taxed on all income generated from the shares.',
                capgains: 'No capital gains tax on transfer.',
                gift: 'Potential gift tax consequences at trust level under 56(2)(x).',
                clubbing: '<strong>Clubbed!</strong> Section 61 applies completely.',
                warningClass: 'bg-rose-500/10 text-rose-400 border border-rose-500/20',
                warningText: 'Most complex setup; yields no tax benefit and exposes the structure to heavy audits.'
            }
        };

        // Modal Content Data
        const modalData = {
            '47(iii)': {
                title: 'Section 47(iii) Legal Deep-Dive',
                accentClass: 'bg-indigo-100 text-indigo-700',
                body: `
                    <p class="font-bold text-slate-800">The Rule:</p>
                    <p>Section 47 of the Indian Income Tax Act lists transactions that are *not* considered "transfers" for the purpose of computing Capital Gains tax. Sub-clause (iii) specifically provides that any transfer of a capital asset under a *gift or will or an irrevocable trust* is exempt.</p>
                    <p class="font-bold text-slate-800 mt-4">The Catch:</p>
                    <p>To ensure this exemption holds true, the transfer of shares must be completely **without consideration**. If the trust pays even a token sum, or allocates units of commercial value to the Settlor, the transaction shifts to Section 45 (normal Capital Gains computed on Fair Market Value).</p>
                    <p class="font-bold text-slate-800 mt-4">Judicial Precedents:</p>
                    <p>Courts have consistently maintained that the word "gift" includes transfers to a trust where the settlor parts with the ownership voluntarily and without any monetary exchange.</p>
                `
            },
            '56': {
                title: 'Section 56(2)(x) & Private Trusts',
                accentClass: 'bg-amber-100 text-amber-700',
                body: `
                    <p class="font-bold text-slate-800">The Gift Tax Trap:</p>
                    <p>Section 56(2)(x) charges any sum of money or property received without adequate consideration to tax in the hands of the recipient. For unlisted shares, if the difference between the actual payment and the Rule 11UA value is greater than ₹50,000, that difference is taxed as "Income from Other Sources".</p>
                    <p class="font-bold text-slate-800 mt-4">The "Relative" Exemption:</p>
                    <p>Clause (x) includes a vital proviso: any property received from a *relative* is completely exempt. But does a "Trust" qualify as a relative? </p>
                    <p>Judicial rulings (e.g., *Dr. Kiren Sidhu*, CIT v. Sarjan Trust) have held that if the trust is created **solely** for the benefit of the settlor's relatives (defined as spouse, siblings, lineal ascendants/descendants), the trust can look through to the beneficiaries, and the exemption will apply. If even one non-relative is included, the entire share settlement risks being taxed at Fair Market Value!</p>
                `
            },
            '61': {
                title: 'Sections 61-64 Anti-Clubbing Provisions',
                accentClass: 'bg-rose-100 text-rose-700',
                body: `
                    <p class="font-bold text-slate-800">Section 61 (Revocable Transfers):</p>
                    <p>If the Trust Deed contains any clause that allows the Settlor to re-acquire the shares, or direct control over them in the future, the transfer is deemed *revocable*. In such cases, all dividends or capital income generated by the shares are clubbed back into the Settlor's tax return and taxed at their individual bracket.</p>
                    <p class="font-bold text-slate-800 mt-4">Section 64 (Spouse or Minor Children):</p>
                    <p>Even if the trust is completely irrevocable, if the trust income is utilized directly or indirectly for the benefit of the Settlor's spouse (Section 64(1)(vi)) or minor children (Section 64(1A)), that specific income will be clubbed in the hands of the Settlor.</p>
                    <p class="font-bold text-slate-800 mt-4">Action Plan:</p>
                    <p>Trust deeds must contain precise, legally vetted wording indicating the permanent, non-reclaimable nature of the transfer to prevent unexpected clubbing audits.</p>
                `
            }
        };

        // Logic: Key Players Tabs
        function selectPlayer(player) {
            state.selectedPlayer = player;
            const data = playersData[player];

            // Highlight chosen card, reset others
            ['settlor', 'trustee', 'beneficiary'].forEach(p => {
                const card = document.getElementById(`card-${p}`);
                if (p === player) {
                    card.classList.remove('border-slate-200');
                    if (player === 'settlor') card.classList.add('border-indigo-500', 'ring-2', 'ring-indigo-100');
                    if (player === 'trustee') card.classList.add('border-emerald-500', 'ring-2', 'ring-emerald-100');
                    if (player === 'beneficiary') card.classList.add('border-amber-500', 'ring-2', 'ring-amber-100');
                } else {
                    card.classList.add('border-slate-200');
                    card.classList.remove('border-indigo-500', 'border-emerald-500', 'border-amber-500', 'ring-2', 'ring-indigo-100', 'ring-emerald-100', 'ring-amber-100');
                }
            });

            // Set content in the detail panel
            const panel = document.getElementById('player-detail-panel');
            const titleEl = document.getElementById('detail-title');
            const textEl = document.getElementById('detail-text');
            const iconWrapper = document.getElementById('detail-icon-wrapper');

            titleEl.innerText = data.title;
            textEl.innerHTML = data.text;

            // Update Icon background
            iconWrapper.className = `p-3 rounded-xl text-white shrink-0 mt-1 ${data.bgColor}`;
            if (player === 'settlor') {
                iconWrapper.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z" /></svg>`;
            } else if (player === 'trustee') {
                iconWrapper.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" /></svg>`;
            } else {
                iconWrapper.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v13m0-13V6a2 2 0 112 2h-2zm0 0V5.5A2.5 2.5 0 109.5 8H12zm-7 4h14M5 12a2 2 0 110-4h14a2 2 0 110 4M5 12v7a2 2 0 002 2h10a2 2 0 002-2v-7" /></svg>`;
            }

            panel.classList.remove('hidden');
        }

        // Logic: Process Step Pipeline
        function selectStep(stepNum) {
            state.selectedStep = stepNum;
            const data = stepsData[stepNum];

            // Visual buttons state updates
            for (let i = 1; i <= 4; i++) {
                const btn = document.getElementById(`btn-step-${i}`);
                const circle = btn.querySelector('div');
                const label = btn.querySelector('span');

                if (i <= stepNum) {
                    circle.className = "w-12 h-12 rounded-full bg-indigo-600 text-white flex items-center justify-center font-bold border-4 border-white shadow-md group-hover:scale-105 transition-all duration-200";
                    label.className = "mt-2 text-xs font-semibold text-indigo-600 transition-colors";
                } else {
                    circle.className = "w-12 h-12 rounded-full bg-slate-200 text-slate-600 flex items-center justify-center font-bold border-4 border-white shadow-sm group-hover:scale-105 transition-all duration-200";
                    label.className = "mt-2 text-xs font-semibold text-slate-500 transition-colors";
                }
            }

            // Move the background progress bar
            const percent = ((stepNum - 1) / 3) * 90; // Adjusts line percentage
            document.getElementById('pipeline-progress').style.width = `${percent}%`;

            // Draw content
            const contentArea = document.getElementById('step-content-area');
            contentArea.innerHTML = `
                <div class="space-y-3 animate-fadeIn">
                    <h4 class="text-lg font-bold text-slate-800">${data.title}</h4>
                    <p class="text-slate-600 text-sm md:text-base leading-relaxed">${data.desc}</p>
                </div>
            `;
        }

        // Logic: Interactive Tax Scenario Simulator
        function updateScenario(param, value) {
            state.scenario[param] = value;

            // Visual toggle of parameter buttons
            if (param === 'trustType') {
                const irrevBtn = document.getElementById('param-trust-irrevocable');
                const revBtn = document.getElementById('param-trust-revocable');
                if (value === 'irrevocable') {
                    irrevBtn.className = "px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none bg-indigo-50 border-indigo-600 text-indigo-700";
                    revBtn.className = "px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none border-slate-200 hover:border-slate-300 text-slate-600";
                } else {
                    revBtn.className = "px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none bg-indigo-50 border-indigo-600 text-indigo-700";
                    irrevBtn.className = "px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none border-slate-200 hover:border-slate-300 text-slate-600";
                }
            } else if (param === 'beneficiaryType') {
                const relBtn = document.getElementById('param-ben-relatives');
                const nonRelBtn = document.getElementById('param-ben-nonrelatives');
                if (value === 'relatives') {
                    relBtn.className = "px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none bg-indigo-50 border-indigo-600 text-indigo-700";
                    nonRelBtn.className = "px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none border-slate-200 hover:border-slate-300 text-slate-600";
                } else {
                    nonRelBtn.className = "px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none bg-indigo-50 border-indigo-600 text-indigo-700";
                    relBtn.className = "px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none border-slate-200 hover:border-slate-300 text-slate-600";
                }
            } else if (param === 'distType') {
                const detBtn = document.getElementById('param-dist-determinate');
                const discBtn = document.getElementById('param-dist-discretionary');
                if (value === 'determinate') {
                    detBtn.className = "px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none bg-indigo-50 border-indigo-600 text-indigo-700";
                    discBtn.className = "px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none border-slate-200 hover:border-slate-300 text-slate-600";
                } else {
                    discBtn.className = "px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none bg-indigo-50 border-indigo-600 text-indigo-700";
                    detBtn.className = "px-4 py-3 rounded-xl border-2 text-sm font-bold text-center transition-all duration-200 focus:outline-none border-slate-200 hover:border-slate-300 text-slate-600";
                }
            }

            calculateScenarioResult();
        }

        function calculateScenarioResult() {
            const key = `${state.scenario.trustType}-${state.scenario.beneficiaryType}-${state.scenario.distType}`;
            const match = scenariosMatrix[key];

            if (!match) return;

            document.getElementById('scenario-summary-badge').innerText = match.badge;
            document.getElementById('impact-settlor').innerHTML = match.settlor;
            document.getElementById('impact-capgains').innerHTML = match.capgains;
            document.getElementById('impact-gift').innerHTML = match.gift;
            document.getElementById('impact-clubbing').innerHTML = match.clubbing;

            const ratingDiv = document.getElementById('scenario-tax-rating');
            ratingDiv.className = `p-4 rounded-xl flex items-start gap-3 text-sm ${match.warningClass}`;
            ratingDiv.innerHTML = `
                <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 shrink-0 mt-0.5" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg>
                <span><strong>Structure Insight:</strong> ${match.warningText}</span>
            `;
        }

        // Logic: Modal Opening & Closing
        function showSectionModal(sectionKey) {
            const item = modalData[sectionKey];
            if (!item) return;

            document.getElementById('modal-title').innerText = item.title;
            document.getElementById('modal-body-content').innerHTML = item.body;

            const accentBar = document.getElementById('modal-accent-bar');
            accentBar.className = `mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full sm:mx-0 sm:h-10 sm:w-10 ${item.accentClass}`;
            accentBar.innerHTML = `<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /></svg>`;

            document.getElementById('detail-modal').classList.remove('hidden');
        }

        function closeSectionModal() {
            document.getElementById('detail-modal').classList.add('hidden');
        }

        // Logic: MMR vs Individual Slab Calculator
        const incomeInput = document.getElementById('income-input');
        
        incomeInput.addEventListener('input', (e) => {
            const val = parseFloat(e.target.value) || 0;
            
            // Format to lakhs label
            let lakhs = (val / 100000).toFixed(2);
            document.getElementById('formatted-lakhs').innerText = `${lakhs} Lakhs`;

            calculateComparativeTax(val);
        });

        function calculateComparativeTax(income) {
            // MMR Calculation
            // Standard Maximum Marginal Rate on trust dividends/gains: 39.0% (standard surcharge cap 15% + 4% Cess + 30% base rate)
            const mmrTax = income * 0.39;

            // Individual Slab Calculation (New Tax Regime FY 2025-26 / 2026-27 assumptions)
            // Slabs:
            // Up to 3,00,000: Nil
            // 3,00,001 - 7,00,000: 5%
            // 7,00,001 - 10,00,000: 10%
            // 10,00,001 - 12,00,000: 15%
            // 12,00,001 - 15,00,000: 20%
            // Above 15,00,000: 30%
            // Surcharge is 10% (above 50L) - we keep this basic up to 50L. Cess is 4%
            let indTaxBase = 0;

            if (income <= 700000) {
                // Tax rebate u/s 87A keeps tax Nil up to 7 Lakhs in New Regime
                indTaxBase = 0;
            } else {
                if (income > 300000) {
                    const slab1 = Math.min(income - 300000, 400000);
                    indTaxBase += slab1 * 0.05;
                }
                if (income > 700000) {
                    const slab2 = Math.min(income - 700000, 300000);
                    indTaxBase += slab2 * 0.10;
                }
                if (income > 1000000) {
                    const slab3 = Math.min(income - 1000000, 200000);
                    indTaxBase += slab3 * 0.15;
                }
                if (income > 1200000) {
                    const slab4 = Math.min(income - 1200000, 300000);
                    indTaxBase += slab4 * 0.20;
                }
                if (income > 1500000) {
                    const slab5 = income - 1500000;
                    indTaxBase += slab5 * 0.30;
                }
            }

            const indTax = indTaxBase * 1.04; // Adding 4% Cess

            const savings = Math.max(0, mmrTax - indTax);

            // Update Labels
            document.getElementById('mmr-tax-lbl').innerText = `₹ ${Math.round(mmrTax).toLocaleString('en-IN')}`;
            document.getElementById('ind-tax-lbl').innerText = `₹ ${Math.round(indTax).toLocaleString('en-IN')}`;
            document.getElementById('tax-savings-lbl').innerText = `₹ ${Math.round(savings).toLocaleString('en-IN')}`;

            // Update Visual Bars
            const maxVal = Math.max(mmrTax, indTax, 1000);
            const mmrWidth = (mmrTax / maxVal) * 100;
            const indWidth = (indTax / maxVal) * 100;

            document.getElementById('mmr-tax-bar').style.width = `${mmrWidth}%`;
            document.getElementById('ind-tax-bar').style.width = `${indWidth}%`;
        }

        // Initialize Workspace Defaults
        window.addEventListener('DOMContentLoaded', () => {
            selectPlayer('settlor');
            selectStep(1);
            calculateScenarioResult();
            calculateComparativeTax(1500000);
        });
    </script></div>
</div></div></div></div></div></div> ]]></content:encoded><pubDate>Tue, 02 Sep 2025 11:55:01 +0500</pubDate></item></channel></rss>