<style>

  .astro-gadget {

    max-width: 340px;

    margin: 20px auto;

    background: linear-gradient(145deg, #2a003f, #1a0028);

    border: 5px solid #d4af37;

    border-radius: 24px;

    overflow: hidden;

    box-shadow: 

      0 15px 35px rgba(0, 0, 0, 0.6),

      0 0 40px rgba(212, 175, 55, 0.5),

      inset 0 0 40px rgba(255, 215, 0, 0.15);

    font-family: 'Noto Sans Devanagari', system-ui, sans-serif;

    color: #f0e6ff;

    position: relative;

  }


  .astro-header {

    background: linear-gradient(to right, #4b0082, #6a0dad);

    padding: 18px 15px 12px;

    text-align: center;

    position: relative;

    overflow: hidden;

  }


  .astro-header h1 {

    margin: 0;

    font-size: 32px;

    color: #ffd700;

    text-shadow: 0 0 15px #ffd700, 0 0 25px rgba(255,215,0,0.8);

    letter-spacing: 2px;

  }


  .astro-header p {

    margin: 5px 0 0;

    font-size: 15px;

    color: #e0c0ff;

    font-weight: 500;

  }


  .twinkle-stars {

    position: absolute;

    top: 0; left: 0; right: 0; bottom: 0;

    pointer-events: none;

    overflow: hidden;

  }


  .star {

    position: absolute;

    color: #ffd700;

    text-shadow: 0 0 12px #ffd700;

    animation: twinkle 2s infinite alternate;

  }


  @keyframes twinkle {

    0% { opacity: 0.3; transform: scale(0.7); }

    100% { opacity: 1; transform: scale(1.3); }

  }


  .tabs-container {

    display: flex;

    background: rgba(0,0,0,0.3);

    padding: 8px 10px;

    gap: 6px;

  }


  .tab-btn {

    flex: 1;

    padding: 12px 8px;

    background: transparent;

    border: none;

    color: #e0c0ff;

    font-size: 15px;

    font-weight: 700;

    border-radius: 50px;

    cursor: pointer;

    transition: all 0.4s ease;

  }


  .tab-btn.active {

    background: linear-gradient(90deg, #ffd700, #ffeb99);

    color: #2a003f;

    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.6);

    font-weight: 800;

  }


  .signs-scroll {

    padding: 15px 12px 10px;

    overflow-x: auto;

    white-space: nowrap;

    scrollbar-width: none;

  }


  .signs-scroll::-webkit-scrollbar { display: none; }


  .sign-item {

    display: inline-flex;

    flex-direction: column;

    align-items: center;

    width: 68px;

    margin-right: 12px;

    padding: 10px 6px;

    background: rgba(255,215,0,0.1);

    border-radius: 18px;

    border: 2px solid transparent;

    transition: all 0.3s ease;

    cursor: pointer;

  }


  .sign-item:hover {

    transform: translateY(-5px) scale(1.1);

    background: rgba(255,215,0,0.25);

  }


  .sign-item.active {

    border-color: #ffd700;

    background: rgba(255,215,0,0.28);

    box-shadow: 0 0 20px #ffd700;

  }


  .sign-symbol {

    font-size: 42px;

    line-height: 1;

    margin-bottom: 6px;

    filter: drop-shadow(0 0 12px #ffd700);

  }


  .sign-name {

    font-size: 13.5px;

    font-weight: 700;

    color: #ffd700;

  }


  .main-area {

    padding: 25px 20px 30px;

    text-align: center;

    background: rgba(255,255,255,0.06);

    min-height: 260px;

  }


  #big-symbol {

    font-size: 92px;

    display: block;

    line-height: 1;

    margin-bottom: 8px;

    filter: drop-shadow(0 0 25px #ffd700);

  }


  #sign-name-big {

    font-size: 28px;

    margin: 0 0 18px;

    color: #ffd700;

    font-weight: 700;

    text-shadow: 0 0 12px rgba(255,215,0,0.7);

  }


  #horoscope-text {

    font-size: 15.8px;

    line-height: 1.75;

    text-align: left;

    color: #f0e6ff;

    padding: 0 8px;

  }


  .gadget-footer {

    text-align: center;

    padding: 12px 0;

    font-size: 13px;

    color: #ffd700;

    background: rgba(0,0,0,0.3);

    border-top: 1px solid rgba(255,215,0,0.2);

  }


  .gadget-footer span { font-size: 18px; margin-right: 6px; }

</style>


<div class="astro-gadget" id="astro-gadget">


  <!-- Header -->

  <div class="astro-header">

    <div class="twinkle-stars" id="stars"></div>

    <h1>🌙 राशिफल</h1>

    <p>मेष से मीन तक • रहस्यमय ज्योतिष</p>

  </div>


  <!-- Tabs -->

  <div class="tabs-container">

    <button class="tab-btn active" data-tab="today">आज</button>

    <button class="tab-btn" data-tab="tomorrow">कल</button>

    <button class="tab-btn" data-tab="weekly">साप्ताहिक</button>

    <button class="tab-btn" data-tab="monthly">मासिक</button>

  </div>


  <!-- Zodiac Signs Scroll -->

  <div class="signs-scroll" id="signs-scroll"></div>


  <!-- Main Content -->

  <div class="main-area">

    <div id="big-symbol"></div>

    <h2 id="sign-name-big"></h2>

    <div id="horoscope-text"></div>

  </div>


  <!-- Footer -->

  <div class="gadget-footer">

    ✨ बिना इंटरनेट के काम करता है • Built-in Data

  </div>

</div>


<script>

// 12 राशियाँ - Built-in Hindi Content (Fully Offline)

const zodiacSigns = [

  {id:"mesha", name:"मेष", symbol:"♈", 

   today:"आज आपका उत्साह चरम पर रहेगा। नया काम शुरू करने का शुभ मुहूर्त है। प्रेम में रोमांच रहेगा।",

   tomorrow:"कल यात्रा या महत्वपूर्ण बैठक फायदेमंद साबित होगी। स्वास्थ्य अच्छा रहेगा।",

   weekly:"इस सप्ताह करियर में उन्नति और आर्थिक लाभ दोनों होंगे।",

   monthly:"महीने में ऊर्जा और महत्वाकांक्षा से बड़ी सफलता मिलेगी।"},


  {id:"vrishabha", name:"वृषभ", symbol:"♉", 

   today:"आज स्थिरता और धैर्य से काम लें। वित्तीय योजना बनाना फायदेमंद रहेगा।",

   tomorrow:"कल परिवार के साथ अच्छा समय बिताएंगे। प्रेम संबंध मजबूत होंगे।",

   weekly:"साप्ताहिक रूप से स्वास्थ्य और धन दोनों में सुधार होगा।",

   monthly:"इस महीने नई संपत्ति या निवेश का योग बन रहा है।"},


  {id:"mithuna", name:"मिथुन", symbol:"♊", 

   today:"आज बौद्धिक कार्यों में सफलता मिलेगी। संवाद कौशल चमकेगा।",

   tomorrow:"कल नए दोस्त या संपर्क फायदेमंद साबित होंगे।",

   weekly:"इस सप्ताह छोटी यात्राएं और सामाजिक गतिविधियां बढ़ेंगी।",

   monthly:"महीने भर ज्ञान और कौशल में वृद्धि होगी।"},


  {id:"karka", name:"कर्क", symbol:"♋", 

   today:"आज भावनात्मक रूप से मजबूत रहें। परिवार का साथ मिलेगा।",

   tomorrow:"कल घरेलू सुख बढ़ेगा। आर्थिक स्थिति अच्छी रहेगी।",

   weekly:"सप्ताह में घर और परिवार पर ज्यादा ध्यान रहेगा।",

   monthly:"इस महीने सुरक्षा और भावनात्मक संतुलन का समय है।"},


  {id:"simha", name:"सिंह", symbol:"♌", 

   today:"आज नेतृत्व करने का दिन है। सफलता आपके कदम चूमेगी।",

   tomorrow:"कल दोस्तों का सहयोग मिलेगा। महत्वपूर्ण निर्णय लें।",

   weekly:"इस सप्ताह करियर और प्रेम दोनों क्षेत्रों में चमक रहेगी।",

   monthly:"महीने में बड़ी उपलब्धि और सम्मान मिलने की संभावना है।"},


  {id:"kanya", name:"कन्या", symbol:"♍", 

   today:"आज विस्तार से काम करें। छोटे-छोटे काम पूरे होंगे।",

   tomorrow:"कल स्वास्थ्य का ध्यान रखें। आर्थिक योजना बनाएँ।",

   weekly:"साप्ताहिक रूप से व्यवस्था और अनुशासन से लाभ होगा।",

   monthly:"इस महीने मेहनत का अच्छा फल मिलेगा।"},


  {id:"tula", name:"तुला", symbol:"♎", 

   today:"आज रिश्तों में संतुलन बनाए रखें। सौंदर्य और कला का आनंद लें।",

   tomorrow:"कल निर्णय लेने में सावधानी बरतें। प्रेम अच्छा रहेगा।",

   weekly:"इस सप्ताह न्याय और समझदारी से काम लें।",

   monthly:"महीने में रिश्ते और साझेदारी मजबूत होंगी।"},


  {id:"vrishchika", name:"वृश्चिक", symbol:"♏", 

   today:"आज गहन विचार आएंगे। रहस्य उजागर हो सकते हैं।",

   tomorrow:"कल ऊर्जा बहुत बढ़ेगी। परिवर्तन के योग हैं।",

   weekly:"सप्ताह में आध्यात्मिक और मानसिक शक्ति बढ़ेगी।",

   monthly:"इस महीने गहन शक्ति से सफलता मिलेगी।"},


  {id:"dhanu", name:"धनु", symbol:"♐", 

   today:"आज साहस और ज्ञान का दिन है। यात्रा योग अच्छे हैं।",

   tomorrow:"कल नई सीख और अनुभव मिलेंगे।",

   weekly:"इस सप्ताह रोमांचक और सकारात्मक ऊर्जा रहेगी।",

   monthly:"महीने भर उदारता से बड़ा लाभ होगा।"},


  {id:"makara", name:"मकर", symbol:"♑", 

   today:"आज मेहनत और अनुशासन का फल मिलेगा।",

   tomorrow:"कल लक्ष्य की ओर तेज प्रगति होगी।",

   weekly:"सप्ताह में करियर में उन्नति संभव है।",

   monthly:"इस महीने आर्थिक मजबूती और सम्मान मिलेगा।"},


  {id:"kumbha", name:"कुंभ", symbol:"♒", 

   today:"आज नवीन विचार सफल होंगे। सामाजिक कार्य अच्छे रहेंगे।",

   tomorrow:"कल दोस्तों और समूह से मदद मिलेगी।",

   weekly:"इस सप्ताह नेटवर्किंग और नए संपर्क फायदेमंद होंगे।",

   monthly:"महीने में मानवता की सेवा से पुण्य और सफलता दोनों मिलेंगे।"},


  {id:"meena", name:"मीन", symbol:"♓", 

   today:"आज रचनात्मकता चरम पर रहेगी। अंतर्ज्ञान मजबूत होगा।",

   tomorrow:"कल आध्यात्मिक शांति मिलेगी।",

   weekly:"सप्ताह में कल्पना शक्ति से अच्छे परिणाम आएंगे।",

   monthly:"इस महीने प्रेम और अंतर्ज्ञान से जीवन सुंदर बनेगा।"}

];


let currentIndex = 0;

let currentTab = "today";


function createStars() {

  const container = document.getElementById('stars');

  for (let i = 0; i < 35; i++) {

    const star = document.createElement('span');

    star.className = 'star';

    star.textContent = ['✨','★','🌟'][Math.floor(Math.random()*3)];

    star.style.left = Math.random() * 100 + '%';

    star.style.top = Math.random() * 100 + '%';

    star.style.fontSize = (Math.random() * 14 + 8) + 'px';

    star.style.animationDelay = '-' + Math.random() * 3 + 's';

    container.appendChild(star);

  }

}


function renderSigns() {

  const container = document.getElementById('signs-scroll');

  container.innerHTML = '';


  zodiacSigns.forEach((sign, index) => {

    const div = document.createElement('div');

    div.className = `sign-item ${index === currentIndex ? 'active' : ''}`;

    div.innerHTML = `

      <div class="sign-symbol">${sign.symbol}</div>

      <div class="sign-name">${sign.name}</div>

    `;

    div.onclick = () => {

      currentIndex = index;

      document.querySelectorAll('.sign-item').forEach(el => el.classList.remove('active'));

      div.classList.add('active');

      renderPrediction();

    };

    container.appendChild(div);

  });

}


function renderPrediction() {

  const sign = zodiacSigns[currentIndex];

  

  document.getElementById('big-symbol').textContent = sign.symbol;

  document.getElementById('sign-name-big').innerHTML = `${sign.name} राशि`;


  const textEl = document.getElementById('horoscope-text');

  textEl.innerHTML = `<p>${sign[currentTab]}</p>`;

}


function initTabs() {

  document.querySelectorAll('.tab-btn').forEach(btn => {

    btn.addEventListener('click', () => {

      document.querySelectorAll('.tab-btn').forEach(b => b.classList.remove('active'));

      btn.classList.add('active');

      currentTab = btn.getAttribute('data-tab');

      renderPrediction();

    });

  });

}


function initGadget() {

  createStars();

  renderSigns();

  renderPrediction();

  initTabs();

  

  console.log('%c🌙 राशिफल गैजेट लोड हो चुका है | Fully Offline', 'color:#ffd700; font-size:14px;');

}


// Load the gadget

window.onload = initGadget;

</script>

 <style>

  .horoscope-gadget {

    max-width: 320px;

    margin: 15px auto;

    background: linear-gradient(180deg, #2e053f 0%, #1a0028 100%);

    color: #f0e6ff;

    border: 4px solid #ffd700;

    border-radius: 20px;

    padding: 18px 15px;

    box-shadow: 

      0 0 25px rgba(255, 215, 0, 0.6),

      inset 0 0 30px rgba(255, 215, 0, 0.2);

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    overflow: hidden;

    position: relative;

  }


  .header {

    position: relative;

    text-align: center;

    padding: 12px 0 8px;

    margin-bottom: 12px;

    height: 92px;

    overflow: hidden;

  }


  .header h1 {

    font-size: 29px;

    margin: 0 0 4px;

    color: #ffd700;

    text-shadow: 

      0 0 12px #ffd700,

      0 0 20px rgba(255, 215, 0, 0.7);

    letter-spacing: 1px;

  }


  .header p {

    font-size: 14px;

    margin: 0;

    color: #e8d5ff;

    font-weight: 500;

    opacity: 0.95;

  }


  .star {

    position: absolute;

    color: #ffd700;

    text-shadow: 0 0 10px #ffd700;

    animation: twinkle 1.8s ease-in-out infinite alternate;

    pointer-events: none;

    z-index: 1;

  }


  @keyframes twinkle {

    from { opacity: 0.4; transform: scale(0.8); }

    to   { opacity: 1; transform: scale(1.15); }

  }


  .tabs {

    display: flex;

    background: rgba(255,255,255,0.12);

    border-radius: 50px;

    padding: 6px;

    margin-bottom: 18px;

    box-shadow: inset 0 2px 8px rgba(0,0,0,0.3);

  }


  .tabs button {

    flex: 1;

    padding: 10px 0;

    background: transparent;

    border: none;

    color: #f0e6ff;

    font-size: 15px;

    font-weight: 700;

    border-radius: 50px;

    cursor: pointer;

    transition: all 0.3s ease;

  }


  .tabs button.active {

    background: linear-gradient(90deg, #ffd700, #ffeb99);

    color: #2e053f;

    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.5);

  }


  .sign-selector {

    overflow-x: auto;

    white-space: nowrap;

    padding: 8px 0 12px;

    margin-bottom: 10px;

    scrollbar-width: none;

  }


  .sign-selector::-webkit-scrollbar {

    display: none;

  }


  .sign-card {

    display: inline-flex;

    flex-direction: column;

    align-items: center;

    width: 64px;

    margin-right: 10px;

    padding: 8px 4px;

    background: rgba(255, 215, 0, 0.12);

    border-radius: 14px;

    border: 2px solid transparent;

    transition: all 0.3s ease;

    cursor: pointer;

  }


  .sign-card:hover {

    transform: translateY(-3px) scale(1.08);

    background: rgba(255, 215, 0, 0.25);

  }


  .sign-card.active {

    border-color: #ffd700;

    background: rgba(255, 215, 0, 0.3);

    box-shadow: 0 0 15px #ffd700;

  }


  .sign-card .symbol {

    font-size: 36px;

    line-height: 1;

    margin-bottom: 3px;

    filter: drop-shadow(0 0 8px #ffd700);

  }


  .sign-card .name {

    font-size: 12px;

    font-weight: 700;

    color: #ffd700;

    text-shadow: 0 0 6px rgba(255, 215, 0, 0.6);

  }


  .main-content {

    background: rgba(255,255,255,0.08);

    border-radius: 16px;

    padding: 22px 18px;

    text-align: center;

    min-height: 240px;

    box-shadow: inset 0 3px 12px rgba(0,0,0,0.2);

  }


  .selected-sign {

    margin-bottom: 18px;

  }


  #big-symbol {

    font-size: 78px;

    display: block;

    line-height: 1;

    margin-bottom: 6px;

    filter: drop-shadow(0 0 18px #ffd700);

  }


  #sign-name {

    font-size: 26px;

    margin: 0;

    color: #ffd700;

    font-weight: 700;

    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);

  }


  #prediction {

    font-size: 15.5px;

    line-height: 1.65;

    text-align: left;

    color: #f0e6ff;

    min-height: 140px;

  }


  .footer {

    text-align: center;

    margin-top: 18px;

    font-size: 12px;

    color: #ffd700;

    opacity: 0.85;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

  }


  .footer span {

    font-size: 16px;

  }

</style>


<div class="horoscope-gadget" id="horoscope-gadget">

  <!-- Header with twinkling stars -->

  <div class="header" id="header">

    <h1>🌙 राशिफल</h1>

    <p>मेष से मीन तक • सुंदर ज्योतिष</p>

  </div>


  <!-- 4 Tabs -->

  <div class="tabs" id="tabs">

    <button class="active" data-tab="today">आज</button>

    <button data-tab="tomorrow">कल</button>

    <button data-tab="weekly">साप्ताहिक</button>

    <button data-tab="monthly">मासिक</button>

  </div>


  <!-- Zodiac signs horizontal scroll -->

  <div class="sign-selector" id="sign-selector">

    <!-- Cards will be added by JS -->

  </div>


  <!-- Main display area -->

  <div class="main-content">

    <div class="selected-sign">

      <span id="big-symbol"></span>

      <h2 id="sign-name"></h2>

    </div>

    <div id="prediction"></div>

  </div>


  <!-- Footer -->

  <div class="footer">

    ✨ बिना इंटरनेट के काम करता है • Built-in Data

  </div>

</div>


<script>

  // ================================================

  // 12 राशियाँ — Built-in Hindi Data (offline)

  // ================================================

  const signs = [

    {

      id: "mesha",

      name: "मेष",

      symbol: "♈",

      predictions: {

        today: "आज आपका दिन ऊर्जा और उत्साह से भरा रहेगा। करियर में नए अवसर मिल सकते हैं। प्रेम में मधुरता आएगी और स्वास्थ्य अच्छा रहेगा।",

        tomorrow: "कल परिवार का सहयोग मिलेगा। छोटी यात्रा फायदेमंद साबित होगी। स्वास्थ्य का ध्यान रखें।",

        weekly: "इस सप्ताह आर्थिक स्थिति मजबूत रहेगी। नौकरी या व्यवसाय में अच्छी प्रगति होगी।",

        monthly: "महीने भर लक्ष्य पूरे होंगे। रिश्तों में गहराई आएगी और आर्थिक लाभ अच्छा रहेगा।"

      }

    },

    {

      id: "vrishabha",

      name: "वृषभ",

      symbol: "♉",

      predictions: {

        today: "आज स्थिरता और धैर्य का फल मिलेगा। वित्तीय मामलों में सावधानी बरतें तो लाभ होगा।",

        tomorrow: "कल घरेलू जीवन सुखमय रहेगा। प्रेम संबंधों में रोमांचक क्षण आएंगे।",

        weekly: "सप्ताह भर करियर में स्थिरता आएगी। स्वास्थ्य पर थोड़ा ध्यान दें।",

        monthly: "इस महीने नई योजनाएं सफल होंगी। आध्यात्मिक शांति मिलेगी।"

      }

    },

    {

      id: "mithuna",

      name: "मिथुन",

      symbol: "♊",

      predictions: {

        today: "आज संचार कौशल चमकेंगे। बौद्धिक कार्यों में सफलता मिलेगी। नए दोस्त बन सकते हैं।",

        tomorrow: "कल नए विचार आएंगे। प्रेम में रोमांचक मुलाकात संभव है।",

        weekly: "इस सप्ताह सामाजिक गतिविधियां बढ़ेंगी। छोटी यात्राएं फायदेमंद होंगी।",

        monthly: "महीने भर ज्ञान और कौशल में वृद्धि होगी। आर्थिक लाभ भी अच्छा रहेगा।"

      }

    },

    {

      id: "karka",

      name: "कर्क",

      symbol: "♋",

      predictions: {

        today: "आज भावनाओं को संतुलित रखें। घरेलू सुख बढ़ेगा और परिवार का साथ मिलेगा।",

        tomorrow: "कल आर्थिक लाभ की संभावना है। स्वास्थ्य सुधरेगा।",

        weekly: "सप्ताह में परिवार और घर का महत्व बढ़ेगा। भावनात्मक मजबूती आएगी।",

        monthly: "इस महीने सुरक्षा और सुरक्षा का भाव रहेगा। रिश्ते मजबूत होंगे।"

      }

    },

    {

      id: "simha",

      name: "सिंह",

      symbol: "♌",

      predictions: {

        today: "आज नेतृत्व गुण चमकेंगे। सफलता आपके हाथ में है। महत्वपूर्ण निर्णय लें।",

        tomorrow: "कल स्वास्थ्य का ध्यान रखें। दोस्तों का सहयोग मिलेगा।",

        weekly: "इस सप्ताह प्रेम और करियर दोनों में अच्छे परिणाम मिलेंगे।",

        monthly: "महीने में ऊर्जा और महत्वाकांक्षा पूरी होगी। बड़ी उपलब्धि संभव है।"

      }

    },

    {

      id: "kanya",

      name: "कन्या",

      symbol: "♍",

      predictions: {

        today: "आज विस्तार से काम करें। स्वास्थ्य अच्छा रहेगा और छोटे-छोटे काम पूरे होंगे।",

        tomorrow: "कल काम में सुधार होगा। आर्थिक योजना बनाएं।",

        weekly: "सप्ताह में वित्तीय मामलों में अच्छी योजना से लाभ होगा।",

        monthly: "इस महीने संगठन कौशल से बड़ी सफलता मिलेगी।"

      }

    },

    {

      id: "tula",

      name: "तुला",

      symbol: "♎",

      predictions: {

        today: "आज संतुलन बनाए रखें। रिश्तों में मधुरता और सौंदर्य का आनंद लें।",

        tomorrow: "कल निर्णय लेते समय सावधानी बरतें। प्रेम अच्छा रहेगा।",

        weekly: "इस सप्ताह न्याय और समानता का भाव रहेगा।",

        monthly: "महीने में कला, संगीत और रिश्तों का भरपूर आनंद मिलेगा।"

      }

    },

    {

      id: "vrishchika",

      name: "वृश्चिक",

      symbol: "♏",

      predictions: {

        today: "आज गहराई से सोचें। रहस्यों का खुलासा होगा। ऊर्जा बहुत ज्यादा रहेगी।",

        tomorrow: "कल ऊर्जा बढ़ेगी। महत्वपूर्ण बदलाव संभव हैं।",

        weekly: "सप्ताह में सकारात्मक परिवर्तन आएंगे। आध्यात्मिक विकास होगा।",

        monthly: "इस महीने गहन शक्ति और सफलता के नए रास्ते खुलेंगे।"

      }

    },

    {

      id: "dhanu",

      name: "धनु",

      symbol: "♐",

      predictions: {

        today: "आज साहस दिखाएं। यात्रा के योग बन रहे हैं। ज्ञान बढ़ेगा।",

        tomorrow: "कल नई सीख मिलेगी। दोस्तों के साथ अच्छा समय बिताएं।",

        weekly: "इस सप्ताह रोमांचक अनुभव और सकारात्मक ऊर्जा रहेगी।",

        monthly: "महीने भर उदारता और सकारात्मकता से बड़ा लाभ होगा।"

      }

    },

    {

      id: "makara",

      name: "मकर",

      symbol: "♑",

      predictions: {

        today: "आज मेहनत का फल मिलेगा। अनुशासन से काम करें।",

        tomorrow: "कल लक्ष्य की ओर तेजी से बढ़ें।",

        weekly: "सप्ताह में अनुशासन और मेहनत से सफलता मिलेगी।",

        monthly: "इस महीने करियर में उन्नति और आर्थिक मजबूती आएगी।"

      }

    },

    {

      id: "kumbha",

      name: "कुंभ",

      symbol: "♒",

      predictions: {

        today: "आज नवीन विचार सफल होंगे। सामाजिक कार्य में भाग लें।",

        tomorrow: "कल दोस्तों और समूह का सहयोग मिलेगा।",

        weekly: "इस सप्ताह सामाजिक गतिविधियां और नेटवर्किंग अच्छी रहेगी।",

        monthly: "महीने में मानवता की सेवा से पुण्य और सफलता दोनों मिलेंगे।"

      }

    },

    {

      id: "meena",

      name: "मीन",

      symbol: "♓",

      predictions: {

        today: "आज कल्पना शक्ति चरम पर रहेगी। रचनात्मक कार्य सफल होंगे।",

        tomorrow: "कल आध्यात्मिक शांति मिलेगी।",

        weekly: "सप्ताह में रचनात्मकता और अंतर्ज्ञान से लाभ होगा।",

        monthly: "इस महीने अंतर्ज्ञान और प्रेम से जीवन में सकारात्मक बदलाव आएंगे।"

      }

    }

  ]


  // Current state

  let currentSignIndex = 0

  let currentTab = 'today'


  // Render all zodiac cards

  function renderSignCards() {

    const container = document.getElementById('sign-selector')

    container.innerHTML = ''


    signs.forEach((sign, index) => {

      const card = document.createElement('div')

      card.className = `sign-card ${index === currentSignIndex ? 'active' : ''}`

      card.innerHTML = `

        <span class="symbol">${sign.symbol}</span>

        <span class="name">${sign.name}</span>

      `

      card.addEventListener('click', () => {

        currentSignIndex = index

        // Remove active from all cards

        document.querySelectorAll('.sign-card').forEach(c => c.classList.remove('active'))

        // Add active to clicked

        card.classList.add('active')

        renderContent()

      })

      container.appendChild(card)

    })

  }


  // Render current sign + prediction

  function renderContent() {

    const sign = signs[currentSignIndex]

    

    // Big symbol and name

    document.getElementById('big-symbol').textContent = sign.symbol

    document.getElementById('sign-name').innerHTML = `${sign.name} <small style="font-size:14px;opacity:0.8;">राशि</small>`

    

    // Prediction text

    const predictionEl = document.getElementById('prediction')

    predictionEl.innerHTML = `

      <p>${sign.predictions[currentTab]}</p>

      <div style="margin-top:18px;font-size:13px;color:#ffd700;opacity:0.7;text-align:center;">

        🌟 आज की राशिफल पूरी तरह बिल्ट-इन है

      </div>

    `

  }


  // Create twinkling golden stars in header

  function createStars() {

    const header = document.getElementById('header')

    for (let i = 0; i < 28; i++) {

      const star = document.createElement('span')

      star.className = 'star'

      star.textContent = Math.random() > 0.6 ? '✨' : '★'

      star.style.left = Math.random() * 100 + '%'

      star.style.top = Math.random() * 72 + 'px'

      star.style.fontSize = (Math.random() * 13 + 7) + 'px'

      star.style.animationDelay = '-' + (Math.random() * 2.5) + 's'

      // Random opacity for variety

      star.style.opacity = Math.random() * 0.6 + 0.5

      header.appendChild(star)

    }

  }


  // Tab click handlers

  function initTabs() {

    const tabButtons = document.querySelectorAll('#tabs button')

    tabButtons.forEach(btn => {

      btn.addEventListener('click', () => {

        // Remove active from all

        tabButtons.forEach(b => b.classList.remove('active'))

        // Activate clicked

        btn.classList.add('active')

        

        currentTab = btn.getAttribute('data-tab')

        renderContent()

      })

    })

  }


  // Initialize everything

  function initializeGadget() {

    createStars()

    renderSignCards()

    renderContent()

    initTabs()

    

    // Optional: Console message for Blogger users

    console.log('%c🌙 राशिफल गैजेट लोड हो गया! (Offline Mode)', 'color:#ffd700; font-size:13px;')

  }


  // Run when gadget loads

  window.addEventListener('load', initializeGadget)

</script>

 <!DOCTYPE html>

<html lang="hi">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Business Today - Gadgets & Tech</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Segoe UI', Arial, sans-serif;
            background: #f8f9fa;
            color: #333;
            line-height: 1.6;
        }
        .header {
            background: #c8102e; /* Business Today red */
            color: white;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        .header h1 {
            font-size: 28px;
        }
        .search-bar {
            padding: 10px 20px;
            width: 350px;
            border: none;
            border-radius: 30px;
            font-size: 16px;
        }
        .nav {
            background: #fff;
            border-bottom: 1px solid #ddd;
            padding: 12px 20px;
            display: flex;
            gap: 25px;
            font-weight: 600;
        }
        .nav a {
            text-decoration: none;
            color: #333;
        }
        .nav a:hover {
            color: #c8102e;
        }
        .container {
            max-width: 1200px;
            margin: 30px auto;
            padding: 0 20px;
        }
        .section-title {
            font-size: 26px;
            color: #c8102e;
            margin-bottom: 20px;
            border-bottom: 3px solid #c8102e;
            padding-bottom: 8px;
            display: inline-block;
        }
        .gadgets-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 25px;
        }
        .gadget-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            transition: transform 0.3s;
        }
        .gadget-card:hover {
            transform: translateY(-8px);
        }
        .gadget-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }
        .card-body {
            padding: 18px;
        }
        .card-title {
            font-size: 20px;
            margin-bottom: 10px;
            line-height: 1.3;
        }
        .price {
            font-size: 22px;
            font-weight: bold;
            color: #c8102e;
            margin: 10px 0;
        }
        .specs {
            font-size: 14px;
            color: #666;
            margin-bottom: 12px;
        }
        .btn {
            background: #c8102e;
            color: white;
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
        }
        .btn:hover {
            background: #a00c24;
        }
        .trending {
            margin-top: 50px;
        }
        .carousel {
            display: flex;
            overflow-x: auto;
            gap: 20px;
            padding-bottom: 15px;
            scrollbar-width: thin;
        }
        .carousel-card {
            min-width: 220px;
            background: white;
            border-radius: 10px;
            padding: 15px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
            text-align: center;
        }
        .live {
            color: #c8102e;
            font-weight: bold;
            animation: pulse 2s infinite;
        }
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }
        footer {
            background: #222;
            color: #ccc;
            text-align: center;
            padding: 30px;
            margin-top: 60px;
        }
    </style>
</head>
<body>

    <div class="header">
        <h1>Business Today</h1>
        <input type="text" class="search-bar" placeholder="गैजेट्स, स्मार्टफोन या टेक सर्च करें...">
    </div>

    <div class="nav">
        <a href="#">होम</a>
        <a href="#">मार्केट</a>
        <a href="#">टेक्नोलॉजी</a>
        <a href="#">गैजेट्स</a>
        <a href="#">स्मार्टफोन</a>
        <a href="#">वीडियो</a>
    </div>

    <div class="container">
        <h2 class="section-title">नए गैजेट्स & टेक न्यूज़</h2>
        
        <div class="gadgets-grid" id="gadgetsGrid">
            <!-- JS से भरेगा -->
        </div>

        <div class="trending">
            <h2 class="section-title">ट्रेंडिंग गैजेट्स</h2>
            <div class="carousel" id="carousel">
                <!-- JS से भरेगा -->
            </div>
        </div>
    </div>

    <footer>
        © 2026 Business Today | Gadgets Section Demo<br>
        केवल डेमो उद्देश्य के लिए • रियल डेटा के लिए आधिकारिक साइट देखें
    </footer>

    <script>
        // सैंपल गैजेट्स डेटा (आप बाद में रियल API जोड़ सकते हैं)
        const gadgets = [
            {
                title: "Vivo X300s लॉन्च, 200MP कैमरा के साथ",
                price: "₹74,999",
                image: "https://picsum.photos/id/1015/600/400",
                specs: "Dimensity 9500 • 120Hz AMOLED • 6300mAh",
                change: "+2.3%"
            },
            {
                title: "Xiaomi TV S Mini LED Series 2026",
                price: "₹1,29,999",
                image: "https://picsum.photos/id/106/600/400",
                specs: "Mini LED • 4K 144Hz • Google TV",
                change: "नया लॉन्च"
            },
            {
                title: "Lava Bold N2 Pro बजट स्मार्टफोन",
                price: "₹7,999",
                image: "https://picsum.photos/id/201/600/400",
                specs: "5000mAh • 50MP कैमरा • 8GB RAM",
                change: "बेस्ट वैल्यू"
            },
            {
                title: "ViewSonic AI ViewBoard IN01-2",
                price: "₹1,20,000",
                image: "https://picsum.photos/id/251/600/400",
                specs: "Android 14 • Interactive Display",
                change: "एआई फीचर्स"
            }
        ];

        // मुख्य गैजेट्स कार्ड बनाएं
        function renderGadgets() {
            const grid = document.getElementById('gadgetsGrid');
            grid.innerHTML = '';

            gadgets.forEach(g => {
                const card = document.createElement('div');
                card.className = 'gadget-card';
                card.innerHTML = `
                    <img src="${g.image}" alt="${g.title}">
                    <div class="card-body">
                        <h3 class="card-title">${g.title}</h3>
                        <div class="price">₹${g.price}</div>
                        <div class="specs">${g.specs}</div>
                        <div style="color: #28a745; font-weight:600;">${g.change}</div>
                        <button class="btn" onclick="alert('अधिक जानकारी के लिए Business Today ऐप डाउनलोड करें')">जानें अधिक</button>
                    </div>
                `;
                grid.appendChild(card);
            });
        }

        // ट्रेंडिंग carousel
        function renderCarousel() {
            const carousel = document.getElementById('carousel');
            carousel.innerHTML = '';

            gadgets.forEach(g => {
                const item = document.createElement('div');
                item.className = 'carousel-card';
                item.innerHTML = `
                    <img src="${g.image}" alt="" style="width:100%; height:140px; object-fit:cover; border-radius:8px;">
                    <h4 style="margin:12px 0 8px;">${g.title}</h4>
                    <div class="price" style="font-size:18px;">₹${g.price}</div>
                `;
                carousel.appendChild(item);
            });
        }

        // लाइव प्राइस सिमुलेशन (हर 8 सेकंड में छोटा बदलाव)
        function simulateLivePrice() {
            setInterval(() => {
                const prices = document.querySelectorAll('.price');
                prices.forEach(price => {
                    if (Math.random() > 0.7) {
                        let current = parseInt(price.textContent.replace(/[^0-9]/g,''));
                        current += Math.floor(Math.random() * 300) - 100;
                        price.textContent = `₹${current.toLocaleString('en-IN')}`;
                    }
                });
            }, 8000);
        }

        // शुरू करें
        window.onload = () => {
            renderGadgets();
            renderCarousel();
            simulateLivePrice();

            // सर्च फंक्शन (डेमो)
            document.querySelector('.search-bar').addEventListener('keyup', (e) => {
                if (e.key === 'Enter') {
                    alert('सर्च रिजल्ट: ' + e.target.value + ' के लिए गैजेट्स दिखाए जा रहे हैं (डेमो)');
                }
            });
        };
    </script>
</body>
</html>

 <!DOCTYPE html>

<html lang="hi">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Finance Gadget - लाइव स्टॉक</title>
  <style>
    @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

    body {
      font-family: 'Roboto', sans-serif;
      background: #f8f9fa;
      margin: 0;
      padding: 20px;
      color: #202124;
    }

    .dashboard {
      max-width: 1200px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 20px;
    }

    .card {
      background: white;
      border-radius: 12px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.1);
      padding: 20px;
      transition: transform 0.2s;
    }

    .card:hover {
      transform: translateY(-5px);
    }

    .header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 15px;
      border-bottom: 1px solid #eee;
      padding-bottom: 10px;
    }

    .symbol {
      font-size: 1.5rem;
      font-weight: 700;
    }

    .price {
      font-size: 2rem;
      font-weight: 700;
    }

    .change {
      font-size: 1.1rem;
      font-weight: 500;
      padding: 4px 12px;
      border-radius: 20px;
    }

    .positive { background: #e6f4ea; color: #137333; }
    .negative { background: #fce8e6; color: #c5221f; }

    canvas {
      width: 100% !important;
      height: 120px !important;
      margin-top: 15px;
    }

    .ticker {
      background: #202124;
      color: white;
      padding: 12px 0;
      overflow: hidden;
      white-space: nowrap;
      margin-bottom: 20px;
      border-radius: 8px;
    }

    .ticker-content {
      display: inline-block;
      animation: ticker-scroll 30s linear infinite;
    }

    @keyframes ticker-scroll {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }

    h1 {
      text-align: center;
      color: #1a73e8;
    }
  </style>
</head>
<body>

  <h1>📈 Finance Gadget - लाइव स्टॉक मार्केट</h1>

  <!-- लाइव टिकर -->
  <div class="ticker">
    <div class="ticker-content" id="tickerContent">
      AAPL $226.84 <span style="color:#137333">+1.23 (+0.54%)</span> &nbsp;&nbsp;&nbsp;&nbsp;
      TSLA $248.12 <span style="color:#c5221f">-2.45 (-0.98%)</span> &nbsp;&nbsp;&nbsp;&nbsp;
      GOOGL $168.95 <span style="color:#137333">+3.12 (+1.88%)</span> &nbsp;&nbsp;&nbsp;&nbsp;
      RELIANCE ₹2,456.75 <span style="color:#137333">+18.50 (+0.76%)</span> &nbsp;&nbsp;&nbsp;&nbsp;
      TCS ₹4,128.90 <span style="color:#c5221f">-12.30 (-0.30%)</span>
    </div>
  </div>

  <div class="dashboard" id="dashboard">
    <!-- JS से कार्ड्स ऐड होंगे -->
  </div>

  <script>
    // सैंपल स्टॉक डेटा (रियल API से बदलें)
    const stocks = [
      { symbol: "AAPL", name: "Apple Inc.", price: 226.84, change: 1.23, percent: 0.54, color: "#137333" },
      { symbol: "TSLA", name: "Tesla Inc.", price: 248.12, change: -2.45, percent: -0.98, color: "#c5221f" },
      { symbol: "GOOGL", name: "Alphabet Inc.", price: 168.95, change: 3.12, percent: 1.88, color: "#137333" },
      { symbol: "RELIANCE", name: "Reliance Industries", price: 2456.75, change: 18.50, percent: 0.76, color: "#137333" },
      { symbol: "TCS", name: "TCS", price: 4128.90, change: -12.30, percent: -0.30, color: "#c5221f" }
    ];

    function createStockCard(stock) {
      const card = document.createElement('div');
      card.className = 'card';

      const isPositive = stock.change > 0;
      const changeClass = isPositive ? 'positive' : 'negative';

      card.innerHTML = `
        <div class="header">
          <div>
            <div class="symbol">${stock.symbol}</div>
            <div style="font-size:0.9rem; color:#5f6368;">${stock.name}</div>
          </div>
          <div class="change ${changeClass}">
            ${isPositive ? '+' : ''}${stock.change} (${isPositive ? '+' : ''}${stock.percent}%)
          </div>
        </div>
        <div class="price">₹${stock.price.toLocaleString('en-IN')}</div>
        <canvas id="chart-${stock.symbol}" width="300" height="120"></canvas>
      `;

      document.getElementById('dashboard').appendChild(card);

      // सिंपल लाइन चार्ट (Canvas)
      setTimeout(() => {
        const canvas = document.getElementById(`chart-${stock.symbol}`);
        if (!canvas) return;
        const ctx = canvas.getContext('2d');

        ctx.strokeStyle = stock.color;
        ctx.lineWidth = 3;

        ctx.beginPath();
        ctx.moveTo(0, 80);
        ctx.quadraticCurveTo(75, 40, 150, 90);
        ctx.quadraticCurveTo(225, 60, 300, 70);
        ctx.stroke();

        // छोटे डॉट्स
        ctx.fillStyle = stock.color;
        ctx.fillRect(50, 65, 4, 4);
        ctx.fillRect(200, 75, 4, 4);
      }, 100);
    }

    // सभी स्टॉक कार्ड्स बनाएं
    stocks.forEach(stock => createStockCard(stock));

    // लाइव अपडेट सिमुलेशन (हर 5 सेकंड में प्राइस चेंज)
    setInterval(() => {
      const cards = document.querySelectorAll('.card');
      cards.forEach((card, index) => {
        const priceEl = card.querySelector('.price');
        let currentPrice = parseFloat(priceEl.textContent.replace(/[^0-9.]/g, ''));
        
        const randomChange = (Math.random() * 2 - 0.8).toFixed(2);
        currentPrice = (currentPrice + parseFloat(randomChange)).toFixed(2);
        
        priceEl.textContent = `₹${parseFloat(currentPrice).toLocaleString('en-IN')}`;
      });
    }, 5000);

    // टिकर को डुप्लिकेट करें ताकि स्मूथ स्क्रॉल हो
    const tickerContent = document.getElementById('tickerContent');
    tickerContent.innerHTML += tickerContent.innerHTML; // डुप्लिकेट
  </script>

</body>
</html>

 <!DOCTYPE html>

<html lang="en">

<head>

  <meta charset="UTF-8">

  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <title>Live Finance News Gadget</title>

  <style>

    :root {

      --bg: #ffffff;

      --text: #202124;

      --border: #dadce0;

      --accent: #1a73e8;

      --green: #137333;

      --red: #c5221f;

    }


    @media (prefers-color-scheme: dark) {

      :root {

        --bg: #202124;

        --text: #e8eaed;

        --border: #5f6368;

      }

    }


    body {

      font-family: 'Roboto', system-ui, sans-serif;

      background: var(--bg);

      color: var(--text);

      margin: 0;

      padding: 20px;

      display: flex;

      justify-content: center;

    }


    .finance-gadget {

      width: 100%;

      max-width: 420px;

      background: var(--bg);

      border: 1px solid var(--border);

      border-radius: 12px;

      box-shadow: 0 4px 12px rgba(0,0,0,0.1);

      overflow: hidden;

    }


    .header {

      background: var(--accent);

      color: white;

      padding: 14px 16px;

      font-size: 18px;

      font-weight: 500;

      display: flex;

      align-items: center;

      justify-content: space-between;

    }


    .header::after {

      content: "LIVE";

      font-size: 12px;

      background: rgba(255,255,255,0.3);

      padding: 2px 8px;

      border-radius: 12px;

      font-weight: 600;

    }


    .news-container {

      max-height: 520px;

      overflow-y: auto;

      padding: 8px 0;

    }


    .news-item {

      padding: 14px 16px;

      border-bottom: 1px solid var(--border);

      display: flex;

      gap: 12px;

      transition: background 0.2s;

    }


    .news-item:hover {

      background: rgba(26, 115, 232, 0.08);

    }


    .news-content {

      flex: 1;

    }


    .news-title {

      font-size: 15px;

      line-height: 1.3;

      margin: 0 0 6px 0;

      font-weight: 500;

    }


    .news-title a {

      color: inherit;

      text-decoration: none;

    }


    .news-title a:hover {

      text-decoration: underline;

    }


    .meta {

      font-size: 13px;

      color: #70757a;

      display: flex;

      align-items: center;

      gap: 8px;

      flex-wrap: wrap;

    }


    .ticker {

      font-weight: 600;

      font-size: 13px;

      padding: 1px 6px;

      border-radius: 4px;

      background: rgba(0,0,0,0.08);

    }


    .change {

      font-weight: 600;

    }


    .positive { color: var(--green); }

    .negative { color: var(--red); }


    .footer {

      padding: 10px 16px;

      text-align: center;

      font-size: 12px;

      color: #70757a;

      border-top: 1px solid var(--border);

    }


    .loading {

      text-align: center;

      padding: 30px;

      color: #70757a;

    }

  </style>

</head>

<body>


  <div class="finance-gadget">

    <div class="header">

      <span>Today's Financial News</span>

    </div>


    <div class="news-container" id="newsContainer">

      <!-- News items populated by JavaScript -->

      <div class="loading">Loading live news...</div>

    </div>


    <div class="footer">

      Powered by simulated live data • Updates every 60s

    </div>

  </div>


  <script>

    // Sample live news data (in real use, fetch from an API or RSS)

    let newsData = [

      {

        title: "Nvidia shares surge 4% after strong AI demand outlook",

        ticker: "NVDA",

        change: "+3.85%",

        source: "CNBC",

        time: "12 min ago",

        link: "https://www.cnbc.com"

      },

      {

        title: "Tesla reports record Q1 deliveries, stock jumps in after-hours",

        ticker: "TSLA",

        change: "+2.15%",

        source: "Reuters",

        time: "37 min ago",

        link: "#"

      },

      {

        title: "Indian Rupee strengthens against USD amid RBI intervention",

        ticker: "INR",

        change: "+0.45%",

        source: "Economic Times",

        time: "1 hr ago",

        link: "#"

      },

      {

        title: "Gold prices hit new all-time high as investors seek safe haven",

        ticker: "XAU",

        change: "+1.20%",

        source: "Bloomberg",

        time: "2 hrs ago",

        link: "#"

      },

      {

        title: "Apple to launch new AI features at WWDC 2026",

        ticker: "AAPL",

        change: "-0.35%",

        source: "The Verge",

        time: "3 hrs ago",

        link: "#"

      }

    ];


    function renderNews() {

      const container = document.getElementById('newsContainer');

      container.innerHTML = '';


      newsData.forEach(item => {

        const isPositive = item.change.startsWith('+');


        const html = `

          <div class="news-item">

            <div class="news-content">

              <div class="news-title">

                <a href="${item.link}" target="_blank">${item.title}</a>

              </div>

              <div class="meta">

                <span class="ticker">${item.ticker}</span>

                <span class="change ${isPositive ? 'positive' : 'negative'}">${item.change}</span>

                <span>${item.source}</span>

                <span>•</span>

                <span>${item.time}</span>

              </div>

            </div>

          </div>

        `;

        container.innerHTML += html;

      });

    }


    // Simulate live updates

    function simulateLiveUpdate() {

      // Randomly update one news item time

      if (newsData.length > 0) {

        const randomIndex = Math.floor(Math.random() * newsData.length);

        newsData[randomIndex].time = "Just now";

      }

      renderNews();

    }


    // Initial render

    window.onload = () => {

      renderNews();


      // Auto-refresh simulation every 60 seconds

      setInterval(() => {

        simulateLiveUpdate();

      }, 60000);

    };

  </script>


</body>

</html>