/* ================================================================
   notifiche.css — REDESIGN v2.0
   ================================================================ */

   #contenutoNotifiche {
    margin-top: 6px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-width: thin;
    scrollbar-color: var(--bg-elevated) transparent;
  }
  #contenutoNotifiche::-webkit-scrollbar { width: 5px; }
  #contenutoNotifiche::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 4px; }
  
  #btn-notifiche, #btn-profilo, #btn-tavoli, #btn-bonus, #logoutLink {
    display: flex; gap: 5px; cursor: pointer; align-items: center; color: var(--text-primary);
  }
  
  #notificheModal {
    display: none; position: fixed; z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.75); backdrop-filter: blur(6px);
  }
  
  .modal-content {
    background: var(--bg-card);
    margin: 5% auto; padding: 20px;
    width: 92%; max-width: 600px; color: var(--text-primary);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-modal);
    border: 1px solid var(--border-soft);
    overflow-y: auto; max-height: 85vh; position: relative;
  }
  
  .close { float: right; font-size: 24px; cursor: pointer; color: var(--text-muted); transition: color .2s; }
  .close:hover { color: var(--text-primary); }
  
  .notifiche-tab { display: none; }
  .notifiche-tab.attiva { display: block; }
  
  /* ===== ACCORDION ===== */
  .accordion {
    margin-bottom: 10px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    background: var(--bg-elevated);
    overflow: hidden;
  }
  .accordion-header {
    padding: 10px 14px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
    font-weight: 700; font-size: 13px;
    cursor: pointer; user-select: none;
    color: var(--text-primary);
    transition: background .2s;
    display: flex; align-items: center; justify-content: space-between;
  }
  .accordion-header:hover { background: var(--bg-card-hover); }
  .accordion-body {
    padding: 14px;
    display: none; flex-direction: column;
    background: var(--bg-elevated);
  }
  .accordion-body.attiva { display: flex; }
  
  /* ===== REGOLA WRAPPER ===== */
  .regola-wrapper {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    margin-bottom: 10px;
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: var(--r-md); padding: 8px 10px;
    transition: border-color .2s;
  }
  .regola-wrapper:hover { border-color: var(--border-soft); }
  .regola-wrapper span { font-size: 13px; color: var(--text-secondary); }
  .regola-wrapper select {
    background: var(--bg-elevated); color: var(--text-primary);
    border: 1px solid var(--border-soft); border-radius: var(--r-sm);
    padding: 5px 8px; font-size: 13px; font-family: inherit;
    appearance: none; width: 80px; height: auto; outline: none;
    cursor: pointer;
  }
  select {
    font-size: 13px; padding: 4px 6px; line-height: 1.2; height: auto;
    max-height: 36px; appearance: none; font-family: inherit;
  }
  .regola-wrapper select:focus { border-color: rgba(249,115,22,.4); }
  
  .accordion-body div:last-child { font-size: 12px; color: var(--text-muted); margin-top: 5px; font-style: italic; }
  
  /* ===== TABS NOTIFICHE ===== */
  .tab-container-not {
    display: flex; flex-wrap: nowrap; gap: 6px; padding: 8px; min-width: max-content;
  }
  .tab-container-not .tab {
    flex: 0 0 auto; padding: 7px 13px;
    background: var(--bg-elevated); color: var(--text-secondary);
    border: 1px solid var(--border-subtle); border-radius: var(--r-md);
    cursor: pointer; display: flex; align-items: center; gap: 7px;
    white-space: nowrap; font-size: 13px; font-weight: 500;
    transition: all .2s;
  }
  .tab-container-not .tab:hover { background: var(--bg-card-hover); color: var(--text-primary); }
  .tab-container-not .tab.active {
    background: rgba(249,115,22,.08); border-color: rgba(249,115,22,.2);
    color: var(--brand-orange);
  }
  
  .tab-scroll-wrapper-noti {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth; margin-bottom: 8px;
    background: var(--bg-surface); scrollbar-width: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .tab-scroll-wrapper-noti::-webkit-scrollbar { display: none; }
  
  @media (max-width: 500px) {
    .regola-wrapper { flex-direction: row; align-items: flex-start; }
    select { font-size: 16px; width: 100%; max-width: 100%; height: 40px; }
    .modal-content { padding: 14px; }
  }
  
  .tab-icon-crazy   { width: 22px; height: 22px; object-fit: cover; }
  .tab-icon-dream   { width: 28px; height: 28px; object-fit: contain; }
  .tab-icon-baccarat{ width: 28px; height: 28px; object-fit: contain; }
  
  /* ===== SOTTOTABS ===== */
  .sottotab-container { display: flex; gap: 6px; margin-bottom: 10px; }
  .sottotab {
    flex: 1; padding: 8px; border: none; border-radius: var(--r-md);
    background: var(--bg-elevated); color: var(--text-muted);
    cursor: pointer; font-weight: 600; font-size: 13px;
    transition: all .2s; font-family: inherit;
  }
  .sottotab:hover { background: var(--bg-card-hover); color: var(--text-primary); }
  .sottotab.active { background: rgba(249,115,22,.08); color: var(--brand-orange); border: 1px solid rgba(249,115,22,.18); }
  .sottotab-content { display: none; }
  .sottotab-content.attiva { display: block; }
  
  .fan-icon { width: 48px; height: 48px; object-fit: scale-down; }
  
  /* ===== DC PILLS ===== */
  .dc-pill {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 3px 10px; min-width: 32px; height: 22px;
    border-radius: 999px;
    font: 700 11px/1 'Plus Jakarta Sans', sans-serif; text-transform: uppercase;
    border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    letter-spacing: .2px; user-select: none; white-space: nowrap;
    transition: transform .15s;
  }
  .dc-pill:hover { transform: translateY(-1px); }
  .dc-1  { color: #ffe3a1; border-color: #ffc94b; background: rgba(255,201,75,.7); }
  .dc-2  { color: #dbe7ff; border-color: #6298ff; background: rgba(98,152,255,.22); }
  .dc-5  { color: #f1dcff; border-color: #cc85ff; background: rgba(204,133,255,.22); }
  .dc-10 { color: #c8ffd7; border-color: #59e777; background: rgba(89,231,119,.7); }
  .dc-20 { color: #ffd7c8; border-color: #ee7340; background: rgba(238,115,64,.22); }
  .dc-40 { color: #ffd2d1; border-color: #e53935; background: rgba(229,57,53,.22); }
  .dc-x2, .dc-x7 { color: #ffd700; border-color: #ffd700; background: rgba(180,140,0,.28); }
  .dc-pill.sm { height: 19px; padding: 2px 8px; font-size: 10px; }