 @import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;300;400;500;700;900&display=swap');
    
    :root {
      /* Brand (Gold) */
      --primary: #D4AF37;          /* طلایی */
      --primary-light: #E3C663;    /* روشن */
      --primary-dark: #C39A22;     /* تیره */
      --secondary: #D4AF37;

      /* States */
      --success: #16a34a;
      --danger: #ef4444;
      --warning: #f59e0b;

      /* Light surfaces */
      --light-bg: #FFF7E6;         /* کرم روشن */
      --light-text: #1e293b;
      --light-card: #ffffff;
      --light-border: #e2e8f0;

      /* Dark surfaces */
      --dark-bg: #0f1115;          /* ذغالی تیره */
      --dark-text: #e5e7eb;
      --dark-card: #171a1f;
      --dark-border: #2a2f37;

      /* Gold & Currency Colors */
      --gold: #D4AF37;
      --gold-light: #E3C663;
      --gold-dark: #C39A22;
      --currency: #10B981;
      --currency-dark: #059669;
    }
    
    body {
      font-family: 'Vazirmatn', sans-serif;
      min-height: 100vh;
      transition: all 0.3s ease;
    }
    
    .light-mode {
      background-color: var(--light-bg);
      color: var(--light-text);
    }
    
    .dark-mode {
      background-color: var(--dark-bg);
      color: var(--dark-text);
    }
    
    .navbar {
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .light-mode .navbar {
      background: rgba(255, 255, 255, 0.95);
      border-color: rgba(226, 232, 240, 0.7);
    }
    
    .dark-mode .navbar {
      background: rgba(15, 17, 21, 0.95);
      border-color: rgba(255, 255, 255, 0.08);
    }
    
    .card {
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-radius: 16px;
      box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.1);
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      position: relative;
      overflow: hidden;
      border: 1px solid;
    }
    
    .light-mode .card {
      background: rgba(255, 255, 255, 0.9);
      border-color: rgba(226, 232, 240, 0.7);
    }
    
    .dark-mode .card {
      background: linear-gradient(145deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
      border-color: rgba(255, 255, 255, 0.08);
    }
    
    .gold-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
    }
    
    .currency-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, var(--currency) 0%, var(--currency-dark) 100%);
    }
    
    .card:hover {
      transform: translateY(-8px);
      box-shadow: 0 16px 32px -8px rgba(212, 175, 55, 0.3);
    }
    
    .light-mode .card:hover {
      border-color: var(--gold);
    }
    
    .dark-mode .card:hover {
      border-color: rgba(212, 175, 55, 0.3);
    }
    
    .positive {
      color: var(--success);
    }
    
    .negative {
      color: var(--danger);
    }
    
    .loading-spinner {
      animation: spin 1.2s linear infinite;
      border-top-color: var(--gold);
    }
    
    @keyframes spin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }
    
    .gold-icon {
      color: var(--gold);
    }
    
    .currency-icon {
      color: var(--currency);
    }
    
    .tab-active {
      background: rgba(212, 175, 55, 0.15);
      color: var(--gold);
      border-bottom: 2px solid var(--gold);
    }
    
    .light-mode .tab-active {
      background: rgba(212, 175, 55, 0.1);
    }
    
    .theme-switch {
      position: relative;
      display: inline-block;
      width: 60px;
      height: 30px;
    }
    
    .theme-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }
    
    .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: #ccc;
      transition: .4s;
      border-radius: 34px;
    }
    
    .slider:before {
      position: absolute;
      content: "";
      height: 22px;
      width: 22px;
      left: 4px;
      bottom: 4px;
      background-color: white;
      transition: .4s;
      border-radius: 50%;
    }
    
    input:checked + .slider {
      background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
    }
    
    input:checked + .slider:before {
      transform: translateX(30px);
    }
    
    .slider-icon {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      font-size: 14px;
    }
    
    .sun-icon {
      left: 8px;
      color: white;
    }
    
    .moon-icon {
      right: 8px;
      color: white;
    }
    
    .item-icon {
      width: 48px;
      height: 48px;
      object-fit: contain;
    }
    
    .refresh-btn {
      transition: transform .15s ease, box-shadow .2s ease, background .25s ease;
      background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
      box-shadow: 0 6px 14px -6px rgba(212,175,55,.55);
      color: #111827;
    }
    
    .refresh-btn:hover { 
      transform: translateY(-2px); 
      box-shadow: 0 10px 18px -6px rgba(212,175,55,.6); 
    }
    
    .refresh-btn:active { 
      transform: translateY(0); 
    }
    
    .light-mode .text-muted { 
      color: #64748b; 
    }
    
    .dark-mode .text-muted { 
      color: #94a3b8; 
    }
    
    /* استایل‌های جدید برای ویژگی‌های پیشرفته */
    .mini-chart {
      height: 40px;
      width: 100%;
      margin-top: 10px;
    }
    
    .favorite-btn {
      position: absolute;
      top: 15px;
      left: 15px;
      color: #ccc;
      cursor: pointer;
      transition: all 0.2s ease;
      z-index: 10;
    }
    
    .favorite-btn.active {
      color: var(--gold);
    }
    
    .favorite-btn:hover {
      transform: scale(1.2);
    }
    
    .calculator-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }
    
    .calculator-modal.active {
      opacity: 1;
      visibility: visible;
    }
    
    .modal-content {
      width: 90%;
      max-width: 500px;
      padding: 20px;
      border-radius: 16px;
      transform: translateY(20px);
      transition: all 0.3s ease;
    }
    
    .calculator-modal.active .modal-content {
      transform: translateY(0);
    }
    
    .alarm-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }
    
    .alarm-modal.active {
      opacity: 1;
      visibility: visible;
    }
    
    .alarm-modal .modal-content {
      width: 90%;
      max-width: 500px;
      padding: 20px;
      border-radius: 16px;
      transform: translateY(20px);
      transition: all 0.3s ease;
    }
    
    .alarm-modal.active .modal-content {
      transform: translateY(0);
    }
    
    .compare-modal {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }
    
    .compare-modal.active {
      opacity: 1;
      visibility: visible;
    }
    
    .compare-modal .modal-content {
      width: 90%;
      max-width: 700px;
      padding: 20px;
      border-radius: 16px;
      transform: translateY(20px);
      transition: all 0.3s ease;
    }
    
    .compare-modal.active .modal-content {
      transform: translateY(0);
    }
    
    .notification-badge {
      position: absolute;
      top: -5px;
      right: -5px;
      background-color: var(--danger);
      color: white;
      border-radius: 50%;
      width: 18px;
      height: 18px;
      font-size: 10px;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    
    .price-history {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px dashed;
    }
    
    .light-mode .price-history {
      border-color: rgba(0, 0, 0, 0.1);
    }
    
    .dark-mode .price-history {
      border-color: rgba(255, 255, 255, 0.1);
    }
</style>