/* INDEX and ACC :::::::::::::::::General Styles:::::::::::::::::::: */
  body{
    font-family: Arial, sans-serif;
    text-align: center;
    font-size: 16px;
    color: #e1e3e8;
    background-color: #283040;
    margin: 0;
    padding: 0;
  }

/* Logo Header */
.logo-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid #21435f;
  background: #1e2630;
  width: 100%;
  height: 55px;
}
  @media (max-width: 600px){
    .logo-header{ height: 50px; }
  }

  #titelblock{
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 600px;
    margin: 1px auto;
    margin-top: 30px;
    gap: 8px;
    justify-content: center;
  }
  #titeltitel{
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hover-zoom{ display: flex; transition: transform 0.3s ease; }
  .hover-zoom:hover{ transform: scale(1.1); }

  /* Status Message */
  #status{ text-align: center; margin: 20px; font-size: 18px; color: #6392F8; }

  /* Save Button */
  button#btnSave{
    margin: 30px auto;
    padding: 10px;
    background-color: rgba(99, 146, 248, 0.35);
    border: 1px solid #6392f8;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 300px;
    max-width: 92%;
    display: flex;
    justify-content: center;
  }
  button#btnSave:hover{ background-color: #5591e6; }

/* Editor Note */
.editornote {
  padding: 5px;
  font-weight: 700;
  font-size: 65%;
  line-height: 90%;
  text-align: center;
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 90%;
}

@media (max-width: 992px) {
  .editornote {
    font-size: 55%;
  }
}
@media (max-width: 600px) {
  .editornote {
    font-size: 50%;
    width: 100%;
  }
}
  .block-display{
    width: auto;
    min-width: 90px;
    font-size: 90%;
    color: #6392f8;
    border: 1px solid #6392f8;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .block-display h4{ margin: 3px auto; }

  /* Textarea Styles */
  #txtData{
    width: 800px;
    max-width: 92%;
    height: 250px;
    margin: 20px auto;
    display: flex;
    border: 1px solid #6490eb;
    box-shadow: 0px 4px 8px #6392f8;
  }
  textarea{
    height: 100px;
    padding: 10px;
    border: 1px solid #6392f8;
    border-radius: 4px;
    resize: vertical;
    font-size: 14px;
    color: #e1e3e8;
    background-color: rgba(99, 146, 248, 0.1);
  }
  textarea::placeholder{ color: rgb(192 211 252 / .5); }

  .txt{
    border: 1px solid #6490eb;
    box-shadow: inset 0px 4px 8px 1px #6392f8;
    border-radius: 5px;
    margin: 5px auto;
    width: 800px;
    max-width: 96%;
    padding: 5px;
    position: relative;
  }

  /* Rotating Image Animation */
  .rotating-image{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, -50%);
    animation: rotate 2s linear infinite;
    pointer-events: none;
    border-radius: 50px;
    opacity: 0.5;
  }
  @keyframes rotate{
    0%   { transform: translate(-50%, -50%) rotate(0deg);   box-shadow: 0px 0px 15px 5px rgba(39, 133, 201, 0.9); }
    25%  { transform: translate(-50%, -50%) rotate(90deg);  box-shadow: 0px 0px 15px 5px rgba(58, 177, 255, 0.8); }
    50%  { transform: translate(-50%, -50%) rotate(180deg); box-shadow: 0px 0px 15px 5px rgba(30, 98, 146, 0.9); }
    75%  { transform: translate(-50%, -50%) rotate(270deg); box-shadow: 0px 0px 15px 5px rgba(39, 133, 201, 0.8); }
    100% { transform: translate(-50%, -50%) rotate(360deg); box-shadow: 0px 0px 15px 5px rgba(58, 177, 255, 0.9); }
  }

  /* Transaction Links */
  .tx-links{
    text-align: left;
    margin: 0px auto;
    max-width: 92%;
    width: 500px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #6392f8;
    font-size: 80%;
    color: #c0d3fc;
  }
  .tx-links h3{ color: #63a4ff; margin-bottom: 10px; }
  .tx-links ul{ list-style-type: none; padding: 0; }
  .tx-links li{ margin-bottom: 10px; }

  /* Link Styles */
  a{ color: #63a4ff; }
  a:active{ color: #63a4ff; }
  a:hover{ text-decoration: underline; color: #337ab7; }
  a:visited{ text-decoration: none; }
  @media (max-width: 600px){ .tx-links a{ font-size: 70%; } }

  /* Pagination Styles */
  .pagination{ display: flex; justify-content: center; margin-top: 10px; }
  .pagination button{
    background: rgba(99, 146, 248, 0.1);
    border: 1px solid #6392f8;
    color: rgb(192 211 252 / .5);
    padding: 8px 12px;
    margin: 0 3px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
  }
  .pagination button:hover:not(.active):not(.disabled){
    background-color: #5591e6;
    border: 1px solid #6392f8;
    color: #dedfdf;
  }
  .pagination button.active{
    background: rgba(99, 146, 248, 0.6);
    cursor: default;
    border: 1px solid #6392f8;
    color: #dedfdf;
  }
  .pagination button.disabled{ background-color: #283040; cursor: not-allowed; }

  /* Description */
  .descr{
    width: 800px;
    max-width: 92%;
    margin: 10px auto;
    margin-top: 0px !important;
    font-size: 16px;
    color: #c0d3fc;
    background-color: #283040;
    padding: 15px;
    text-align: left;
    line-height: 1.6;
  }
  @media (max-width: 600px){ .descr{ font-size: 14px; } }

  /* =========================
     SCI3 MINI ACCOUNT (Apps style)
     ========================= */
  .sci3AccWrap{ margin-left:auto; position:relative; display:flex; align-items:center; }
  .mlhsAcc{ display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-right: 5px;}
  @media (max-width: 600px){ .mlhsAcc{ margin-right: 2px; } }
  .mlhsBtn{
    appearance:none;
    border:1px solid rgba(192,211,252,.20);
    background: rgba(255,255,255,.03);
    color:#e1e3e8;
    border-radius:999px;
    padding:8px 12px;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
    transition: transform .12s ease, background-color .18s ease, border-color .18s ease;
    white-space:nowrap;
  }
  .mlhsBtn:hover{
    transform: translateY(-1px);
    background: rgba(99,146,248,.10);
    border-color: rgba(99,146,248,.55);
  }
  .mlhsBtn:disabled{ opacity:.6; cursor:not-allowed; transform:none; }
  .mlhsBtnPrimary{ border-color: rgba(99,146,248,.55); background: rgba(99,146,248,.16); }
  .mlhsBtnBrand{ border-color: rgba(99,146,248,.75); background: rgba(99,146,248,.22); }
  .mlhsBtnGhost{ padding:6px 10px; font-weight:900; }

  .mlhsPill{
    display:inline-flex;
    align-items:center;
    gap:6px;
    border:1px solid rgba(99,146,248,.18);
    background: rgba(255,255,255,.03);
    color:#e1e3e8;
    border-radius:999px;
    padding:8px 12px;
    font-size:12px;
    font-weight:900;
    cursor:pointer;
    transition: transform .12s ease, background-color .18s ease, border-color .18s ease;
    white-space:nowrap;
  }
  .mlhsPill:hover{
    transform: translateY(-1px);
    background: rgba(99,146,248,.10);
    border-color: rgba(99,146,248,.55);
  }

  .mlhsSubtle{ opacity:.75; font-weight:800; }
  .mlhsMuted{ opacity:.85; font-size:12px; }
  .mlhsDivider{ height:1px; background: rgba(192,211,252,.14); margin:10px 0; }
  .mlhsRow{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

  .mlhsInput{
    width: 260px;
    max-width: 48vw;
    padding:10px 12px;
    border-radius: 12px;
    border:1px solid rgba(99,146,248,.25);
    background:#12171d;
    color:#e1e3e8;
    outline:none;
    box-sizing: border-box;
  }
  .mlhsInput:focus{
    border-color: rgba(99,146,248,.6);
    box-shadow: 0 0 0 3px rgba(99,146,248,.12);
  }

  .mlhsPanel{
    position:absolute;
    right:0;
    top: calc(100% + 10px);
    width: min(420px, 92vw);
    border-radius: 16px;
    border:1px solid rgba(99,146,248,.22);
    background: #0f141a;
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
    padding: 12px;
    display:none;
    z-index: 9999;
  }
  .mlhsPanel.show{ display:block; }

  .mlhsWho{
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: bottom;
  }
  .mlhsDot{ opacity:.6; margin: 0 2px; }
  .mlhsChevron{
    display:inline-block;
    margin-left:4px;
    font-weight:900;
    transition: transform .16s ease;
  }
  .mlhsChevron.up{ transform: rotate(180deg); }

  @media (max-width: 600px){
    .mlhsInput{ width: 100%; max-width: 100%; }
    .mlhsBtn, .mlhsPill{ padding:6px 10px; font-size:11px; }
    .mlhsAcc{ gap:8px; }
    .mlhsWho{ max-width: 140px; }
  }

  /* ===== Account panel: My SCI3 links list ===== */
  .mlhsTxList{
    list-style:none;
    padding:0;
    margin:8px 0 0 0;
    max-height: 220px;
    overflow:auto;
    border: 1px solid rgba(99,146,248,.18);
    border-radius: 12px;
    background: rgba(255,255,255,.02);
  }
  .mlhsTxList li{
    padding:8px 10px;
    border-bottom:1px solid rgba(192,211,252,.12);
    font-size:12px;
    position: relative;
  }
  .mlhsTxList li:last-child{ border-bottom:none; }
  .mlhsTxList a{
    word-break: break-all;
    text-decoration:none;
  }
  .mlhsTxList a:hover{ text-decoration:underline; }

  /* ===== Per-link ⋯ menu (Account -> Your SCI3 links) ===== */
  .mlhsTxRow{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:10px;
  }
  .mlhsTxLeft{ min-width:0; }

  .mlhsTxBadge{
    display:inline-block;
    margin-left:8px;
    padding:2px 8px;
    border-radius:999px;
    border:1px solid rgba(99,146,248,.30);
    background: rgba(99,146,248,.10);
    font-size:11px;
    font-weight:900;
    opacity:.9;
  }

  .mlhsMoreWrap{ position:relative; flex:0 0 auto; }

  .mlhsMoreBtn{
    border:1px solid rgba(192,211,252,.20);
    background: rgba(255,255,255,.03);
    color:#e1e3e8;
    border-radius:999px;
    padding:6px 10px;
    font-size:14px;
    font-weight:900;
    cursor:pointer;
    line-height:1;
  }
  .mlhsMoreBtn:hover{
    background: rgba(99,146,248,.10);
    border-color: rgba(99,146,248,.55);
  }

  .mlhsMenu{
    position:absolute;
    right:0;
    top: calc(100% + 6px);
    width: 190px;
    border-radius: 12px;
    border:1px solid rgba(99,146,248,.22);
    background:#0f141a;
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
    padding:6px;
    display:none;
    z-index: 99999;
  }
  .mlhsMenu.show{ display:block; position: absolute; }

  .mlhsMenuBtn{
    width:100%;
    text-align:left;
    appearance:none;
    border:0;
    background:transparent;
    color:#e1e3e8;
    padding:8px 10px;
    border-radius:10px;
    font-size:12px;
    font-weight:900;
    cursor:pointer;
  }
  .mlhsMenuBtn:hover{ background: rgba(99,146,248,.12); }

  /* =========================
     FIX: Account panel height + list fills remaining space
     + "…" menu inline (scroll-friendly)
     ========================= */
  #mlhsAccPanel{
    display: none;              /* override .mlhsPanel default for this panel only */
    flex-direction: column;

    height: min(80vh, 620px);   /* make the panel tall */
    min-height: 360px;

    overflow: hidden;           /* internal areas scroll */
  }
  #mlhsAccPanel.show{ display:flex; } /* do not change .mlhsPanel.show globally */

  #mlhsMySci3LinksBox{
    display:flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
  }

  #mlhsMySci3LinksList{
    flex: 1 1 auto;
    min-height: 0;
    max-height: none !important; /* override .mlhsTxList max-height */
    overflow: auto;
  }

  /* Inline menu so it never gets "stuck" inside the same row */
  .mlhsMoreWrap{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .mlhsMenu{
    position: static;   /* was absolute */
    width: 190px;
    margin-top: 8px;
    display: none;
    z-index: 99999;
  }
  .mlhsMenu.show{ display:block; }

  /* Optional: nicer empty state spacing */
  #mlhsMySci3LinksEmpty{ padding: 8px 2px; }
  
/* HEADER ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: */  
    /* General Styles */
    .header {
      font-family: Arial, sans-serif;
      text-align: center;
      font-size: 16px;
      color: #e1e3e8;
      background-color: #283040;
      margin: 0;
      padding: 0;
    }

    /* Horizontal Layout */
    .wb_content.wb-layout-horizontal {
      display: flex;
      justify-content: center;
      background-color: #6392f8; /* Background color */
      height: 45px;
      border-bottom: 3px solid #3b5383;
    }

    .menu-wrapper {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 800px; /* Limits the width of the container */
    }

    #my_logo img {
      opacity: 1;
      box-sizing: border-box;
      width: auto;
      height: 33px;
      max-width: 50px;
      flex: 0 0 auto;
      box-shadow: 5.6px 5.6px 4px 0 rgba(0, 0, 0, 0.3);
      margin-right: 5px;
    }

    .wb_menu ul.hmenu {
      list-style: none;
      display: flex;
      margin: 0;
      padding: 0;
    }

    .wb_menu ul.hmenu li {
      display: flex;
      align-items: center;
      gap: 5px; /* Space between icon and text */
    }

    .wb_menu ul.hmenu li a {
      text-decoration: none;
      color: #ffffff;
      font-family: Arial, sans-serif;
      font-size: 16px;
      transition: color 0.3s;
      padding: 15px 18px;
    }

    .wb_menu ul.hmenu li:hover {
      background: #194cbc;
      border-bottom: 3px solid #3b5383;
    }

    .act {
      background: #1E2630;
      border-left: 3px solid #3b5383;
      border-right: 3px solid #3b5383;
      border-bottom: 1px solid #1E2630;
      
    }
    .act a {
        color: #6392f8 !important;
        padding: 17px 18px !important;
    }
    .act a:hover {
        background: #1E2630;
        padding: 19px 18px !important;
    }
    .wb_menu ul.hmenu li svg {
      width: 30px;
      height: 20px;
      fill: currentColor; /* Matches text color */
    }
    
   
