    :root {
        --container-bg-primary: #202020;
        --container-bg-flow: linear-gradient(135deg, #2D2D2D 0%, #1A1A1A 100%);
        --container-bg-secondary: #2d2d2d;
        --container-bg-tertiary: #3d3d3d;
        --text-color-primary: #e0e0e0;
        --accent-color: #B28427;
        
        /* Log status colors */
        --color-success: #2ecc71;
        --color-error: #e74c3c;
        --color-highlight: #f1c40f;
        
        /* Log entry backgrounds */
        --log-bg-header: rgba(255, 255, 255, 0.1);
        --log-bg-hover: rgba(255, 255, 255, 0.05);
        --log-bg-hover-darker: rgba(255, 255, 255, 0.2);
        
        /* Transaction styling colors */
        --transaction-header-bg: var(--container-bg-tertiary);
        --transaction-row-border: 1px solid var(--container-bg-tertiary);
        --transaction-row-odd-bg: var(--container-bg-secondary);
        --transaction-row-even-bg: #333333;
        --transaction-row-hover-bg: #3a3a3a;
    }
    
    .back-button {
        display: inline-flex;
        align-items: center;
        padding: 6px 12px;
        background: var(--container-bg-tertiary);
        color: var(--text-color-primary);
        text-decoration: none;
        border-radius: 4px;
        margin-bottom: 10px;
        transition: background 0.3s;
    }
    .back-button:hover {
        background: #4d4d4d;
    }
    .back-button:before {
        content: "\2190";
        margin-right: 5px;
    }
    .main-container {
        max-width: 100%;
        margin: 0 auto;
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 15px;
        padding-bottom: 5px;
        background: var(--container-bg-primary);
        border-radius: 8px;
        margin-bottom: 15px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        color: var(--text-color-primary);
        box-sizing: border-box;
    }
    .account-container {
        max-width: 100%;
        margin: 0 auto;
        padding: 15px;
        background: var(--container-bg-primary);
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        color: var(--text-color-primary);
    }
   
    .tekstheader {
        font-size: 16px;
        font-weight: bold;
        color: var(--text-color-primary);
        margin-bottom: 10px;
        display: block;
    }
        .tabs {
            display: flex;
            flex-wrap: nowrap; /* Prevent wrapping to new line */
            margin-bottom: 20px;
            overflow-x: auto; /* Allow horizontal scrolling if needed */
            padding-bottom: 5px; /* Space for potential scrollbar */
            width: 100%;
        }
        .tab {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border-radius: 5px;
            padding: 10px 5px;
            text-decoration: none;
            flex: 1 0 auto; /* All tabs take equal width */
            text-align: center;
            transition: background 0.3s;
            white-space: nowrap; /* Prevent text wrapping */
            min-width: 0; /* Allow shrinking below content size */
        }
        .tab:hover {
            background:  rgba(255, 255, 255, 0.2);
        }
        .tab.active {
            background:  rgba(255, 255, 255, 0.2);
        }
        
        
        /*/ Tab Container met links zoals in object status / Obay /*/
        .tab-container {
                display: flex;
                overflow-x: auto;
                margin-bottom: 15px;
                border-bottom: 1px solid #444;
              }
              .tab-button {
                padding: 10px 15px;
                background: none;
                border: none;
                color: #ccc;
                cursor: pointer;
                font-size: 11px;
                white-space: nowrap;
                transition: all 0.3s;
              }
              .tab-button:hover, .tab-button.active {
                color: #ffd700;
                border-bottom: 3px solid #ffd700;
              }
              
    .errorbold {
        color: #e74c3c;
        font-weight: bold;
        padding: 8px 10px;
        background-color: rgba(231, 76, 60, 0.1);
        border-radius: 5px;
        display: block;
        margin: 8px 0;
    }
    .nav-cards {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-bottom: 15px;
    }
    .nav-card {
        background: var(--container-bg-flow);
        border-radius: 8px;
        overflow: hidden;
        transition: transform 0.3s, box-shadow 0.3s;
        width: 100%;
        display: flex;
        text-decoration: none;
    }
    .nav-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
        background: var(--container-bg-tertiary);
    }
    .nav-card-icon {
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-card-content {
        padding: 10px;
        flex-grow: 1;
    }
    .nav-card-title {
        font-weight: bold;
        font-size: 13px;
        margin-bottom: 5px;
        color: #fff;
    }
    .nav-card-desc {
        color: #aaa;
        font-size: 11px;
    }
    .form-section {
        margin-bottom: 15px;
        background: linear-gradient(135deg, #2D2D2D 0%, #1A1A1A 100%);
        border-radius: 8px;
        padding: 12px;
    }
    .form-section h3 {
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 16px;
        border-bottom: 1px solid #444;
        padding-bottom: 8px;
    }
    .form-group {
        margin-bottom: 15px;
    }
    .form-control {
        width: 100%;
        height: 25px;
        padding: 8px 10px;
        border: 1px solid #444;
        border-radius: 5px;
        background: #333;
        color: #fff;
    }
    
    /* Fix for select elements in Chrome */
    select.form-control {
        height: auto;
        padding: 4px 8px;
        line-height: 1.2;
        appearance: menulist;
        -webkit-appearance: menulist;
    }
    .btn {
        display: inline-block;
            padding: 10px 24px;
            margin: 5px;
            background: linear-gradient(rgb(68, 68, 68), rgb(45, 45, 45)) repeat scroll 0% 0% rgb(51, 51, 51);
            color: white;
            border: 1px solid rgb(17, 17, 17);
            border-radius: 6px;
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            font-weight: bold;
    }
    .btn.small {
        display: inline-block;
            padding: 8px 20px;
            margin: 5px;
            background: linear-gradient(rgb(68, 68, 68), rgb(45, 45, 45)) repeat scroll 0% 0% rgb(51, 51, 51);
            color: white;
            border: 1px solid rgb(17, 17, 17);
            border-radius: 6px;
            font-size: 10px;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            font-weight: bold;
    }
    .btn.med {
        display: inline-block;
            padding: 9px 22px;
            margin: 5px;
            background: linear-gradient(rgb(68, 68, 68), rgb(45, 45, 45)) repeat scroll 0% 0% rgb(51, 51, 51);
            color: white;
            border: 1px solid rgb(17, 17, 17);
            border-radius: 6px;
            font-size: 11px;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            font-weight: bold;
    }
    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    }
    .form-actions {
        margin-top: 15px;
        text-align: center;
    }
    .pagination {
        display: flex;
        justify-content: center;
        margin: 15px 0;
        gap: 5px;
      }
      
      .pagination a {
        display: inline-block;
        padding: 5px 10px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 4px;
        text-decoration: none;
        color: #fff;
      }
      
      .pagination a.active {
        background: rgba(255, 255, 255, 0.3);
      }
      
      .pagination a:hover {
        background: rgba(255, 255, 255, 0.2);
      }
      
      .pagination a.pagination-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px 8px;
        font-size: 12px;
      }
      
      .pagination a.pagination-nav i {
        font-style: normal;
      }
      
      .pagination a.pagination-nav i.fa-chevron-left:before {
        content: "\00AB"; /* HTML entity for « (left-pointing double angle quotation mark) */
      }
      
      .pagination a.pagination-nav i.fa-chevron-right:before {
        content: "\00BB"; /* HTML entity for » (right-pointing double angle quotation mark) */
      }
    /* Custom radio button styling */
    .poll-radio {
        appearance: none;
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid #777;
        border-radius: 50%;
        outline: none;
        margin-right: 5px;
        position: relative;
    }
    .poll-radio:checked {
        border-color: var(--accent-color);
    }
    .poll-radio:checked::before {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--accent-color);
    }
    
    /* Custom radio button styling for reward cards */
    .reward-radio {
        appearance: none;
        -webkit-appearance: none;
        width: 20px;
        height: 20px;
        border: 2px solid #777;
        border-radius: 50%;
        outline: none;
        position: absolute;
        top: 5px;
        left: 5px;
        margin: 0;
        cursor: pointer;
    }
    .reward-radio:checked {
        border-color: var(--accent-color);
    }
    .reward-radio:checked::before {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--accent-color);
    }
    
    /* User avatar styling */
    .user-avatar {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 8px;
        border: 2px solid #333;
    }
    
    /* Log Components */
    .log-header {
        display: flex;
        justify-content: space-between;
        padding: 6px 8px;
        background: var(--log-bg-header);
        border-radius: 4px;
        margin-bottom: 6px;
        font-weight: bold;
        font-size: 1em;
    }
    
    /* Common log entry styles */
    .log-entry, .kill-entry, .transaction-entry, .protection-entry, 
    .hiding-entry, .promotion-entry, .player-hand, .bet-entry, .map-entry, .war-entry {
        display: flex;
        justify-content: space-between;
        padding: 4px 8px;
        margin-bottom: 3px;
        border-radius: 4px;
        transition: background 0.2s;
        font-size: 1em;
    }
    
    /* Hover effect for entries */
    .log-entry:hover, .kill-entry:hover, .transaction-entry:hover, 
    .protection-entry:hover, .hiding-entry:hover, .promotion-entry:hover, 
    .player-hand:hover, .bet-entry:hover, .map-entry:hover, .war-entry:hover {
        background: var(--log-bg-hover);
    }
    
    /* Entry with pointer cursor */
    .log-entry[onclick], .kill-entry[onclick], .map-entry[onclick] {
        cursor: pointer;
    }
    
    /* Common log item styles */
    .log-item {
        padding: 0 3px;
    }
    
    /* Common date column */
    .log-item.date, .kill-date, .transaction-date, 
    .protection-date, .hiding-date, .promotion-date, .war-date {
        width: 140px;
        text-align: center;
        margin-right: 10px;
    }
    
    /* Player name column */
    .log-item.player, .player-name {
        flex-grow: 1;
    }
    
    /* Amount column */
    .log-item.amount {
        width: 120px;
        text-align: center;
    }
    
    /* Result column */
    .log-item.result {
        width: 80px;
        text-align: center;
    }
    
    /* Index number column */
    .log-item.index {
        width: 30px;
        text-align: center;
    }
    
    /* Empty log message */
    .log-empty {
        text-align: center;
        padding: 15px;
        font-weight: bold;
    }
    
    /* Status colors for text */
    .text-success {
        color: var(--color-success);
        font-weight: bold;
    }
    
    .text-error {
        color: var(--color-error);
        font-weight: bold;
    }
    
    /* Error message styling */
    .error-message {
        background-color: rgba(231, 76, 60, 0.1);
        border-left: 4px solid var(--color-error);
        color: var(--text-color-primary);
        padding: 10px 15px;
        margin: 10px 0;
        border-radius: 4px;
        font-weight: bold;
    }
    
    /* Success message styling */
    .result-message.success {
        background-color: rgba(46, 204, 113, 0.1);
        border-left: 4px solid var(--color-success);
        color: var(--text-color-primary);
        padding: 10px 15px;
        margin: 10px 0;
        border-radius: 4px;
        font-weight: bold;
    }
    
    .text-highlight {
        color: var(--color-highlight);
        font-weight: bold;
    }
    
    /* Common details containers */
    .kill-details, .transaction-details, .protection-details, 
    .hiding-details, .promotion-details, .war-details {
        flex-grow: 1;
    }
    
    /* Button link for log views */
    .button-link {
        display: inline-block;
        padding: 5px 10px;
        background: var(--log-bg-header);
        border-radius: 4px;
        text-decoration: none;
        color: #fff;
        transition: background 0.2s;
    }
    
    .button-link:hover {
        background: var(--log-bg-hover-darker);
    }
    
    /* Icon styling */
    .icon {
        font-size: 18px;
        display: inline-block;
        text-align: center;
    }
    .icon-warning {
        color: #ffc107; /* Yellow color for warning icon */
    }
    .icon-success {
        color: #28a745; /* Green color for success icon */
    }
    .icon-danger {
        color: #dc3545; /* Red color for danger/error icon */
    }
    .icon-primary {
        color: #007bff; /* Blue color for info icon */
    }
    .icon-lg {
        font-size: 62px;
    }
    .icon-md {
        font-size: 20px;
    }
    .icon-sm {
        font-size: 16px;
    }
    
    /* Clickable log entries */
    .log-entry {
        cursor: pointer;
        position: relative;
    }
    .log-entry:hover {
        background: var(--log-bg-hover);
    }
    .log-entry .icon, 
    .log-entry a {
        position: relative;
        z-index: 2; /* Keep icons and links above the clickable area */
    }
    
    /* Transaction History Styling */
    .transactions-container {
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        margin-bottom: 15px;
    }
    
    .transactions-header {
        display: flex;
        background: var(--transaction-header-bg);
        padding: 12px 15px;
        font-weight: bold;
        color: var(--text-color-primary);
    }
    
    .transaction-row {
        display: flex;
        padding: 12px 15px;
        align-items: center;
        border-bottom: var(--transaction-row-border);
        transition: background 0.2s;
    }
    
    .transaction-row:hover {
        background: var(--transaction-row-hover-bg);
        cursor: pointer;
    }
    
    .transaction-row-odd {
        background: var(--transaction-row-odd-bg);
    }
    
    .transaction-row-even {
        background: var(--transaction-row-even-bg);
    }
    
    .transaction-column {
        padding: 0 10px;
    }
    
    
    
    /* Styling for checkboxes */
    input[type="checkbox"] {
        appearance: none;
        -webkit-appearance: none;
        width: 16px;
        height: 16px;
        border-radius: 3px;
        background-color: rgba(255,255,255,0.1);
        border: 1px solid #444;
        box-shadow: inset 0 1px 3px rgba(0,0,0,0.2);
        cursor: pointer;
        position: relative;
        transition: all 0.2s ease;
      }
      
      input[type="checkbox"]:checked {
        background-color: #3498db;
        border-color: #2980b9;
      }
      
      input[type="checkbox"]:checked:after {
        content: "\2713"; /* Unicode checkmark symbol */
        font-size: 12px;
        color: white;
        position: absolute;
        top: 1px;
        left: 3px;
      }
      
      input[type="checkbox"]:hover {
        background-color: rgba(255,255,255,0.2);
      }
      
      /* Custom dropdown styling */
      .select-styling {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background-color: var(--container-bg-tertiary, #333) !important;
        color: var(--text-color-primary, #fff) !important;
        border: 1px solid #444 !important;
        border-radius: 5px !important;
        padding: 8px 12px !important;
        background-repeat: no-repeat;
        background-position: right 10px center;
        cursor: pointer;
      }
      
      /* This helps with some browsers */
      select option {
        padding: 8px !important;
        background-color: #333 !important;
        color: white !important;
        border: none !important;
        box-shadow: none !important;
      }
      
      /* General reset for select elements */
      select {
        background-color: #333 !important;
        border-color: #444 !important;
        outline: none !important;
      }
      
      /* Some browsers need this */
      select::-ms-expand {
        display: none;
      }
    
    /* Modern Scrollbar Styling */
    /* For WebKit browsers (Chrome, Safari, newer versions of Opera) */
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    
    ::-webkit-scrollbar-track {
        background: var(--container-bg-primary);
        border-radius: 3px;
    }
    
    ::-webkit-scrollbar-thumb {
        background: var(--container-bg-tertiary);
        border-radius: 3px;
        transition: background 0.2s ease;
    }
    
    ::-webkit-scrollbar-thumb:hover {
        background: var(--accent-color);
    }
    
    /* For Firefox */
    * {
        scrollbar-width: thin;
        scrollbar-color: var(--container-bg-tertiary) var(--container-bg-primary);
    }
    
    /* For Edge and Internet Explorer */
    body {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: thin;     /* Firefox */
    }
    
    
    /*/ Header image for most pages /*/
    .top-header {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 5px;
        width: 100%;
    }
    .top-header img {
        width: 100%;
        max-width: 600px;
        border-radius: 8px;
        margin-bottom: 5px;
        transition: all 0.3s ease;
    }
    
    @media (min-width: 1100px) {
        .top-header img {
            max-width: 700px;
         }
    }
    
.intro-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--container-bg-tertiary);
}
        
    @media (max-width: 850px) {
        .nav-card {
            flex: 1 0 100%;
            max-width: 100%;
        }
        
        .transactions-container {
            overflow-x: auto;
        }
        
        .transactions-header, 
        .transaction-row {
            min-width: 600px;
        }
        
        p {
            font-size: 9px;
          }
         p.intro-text {
           font-size: 9px;
         }
        h2 {
            font-size: 13px;
        }
         h3 {
            font-size: 13px;
          }
         .intro-title {
           font-size: 13px;
         }
         
         .nav-card-title {
            font-weight: bold;
            font-size: 10px;
            margin-bottom: 5px;
            color: #fff;
        }
        .nav-card-desc {
            color: #aaa;
            font-size: 7px;
        }
            
        .transaction-row {
             font-size: 9px;
        }
        .achievement-name {
            font-size: 9px;
          }
          
     
          
          
     }
    

/* =====================================================================================
   Topbalk (topbalk3.php)
   Twee regels onderdelen (standaard: meters boven, waarden onder), rechts de meldingen
   (event-ster, poker) en naam + avatar met menu; daaronder de actiebalken.
   De speler stelt de regels samen in edit.php?instel=topbalk.
   Responsieve teksten: .tb-t1 (>= 1200px), .tb-t2 (600-1199px), .tb-t3 (< 600px).
   Onderdelen vanaf plek 6 in een regel (.tb-p6 t/m .tb-p8) vallen op smalle schermen weg.
   Alleen ASCII in dit blok (de site draait op windows-1252).
   ===================================================================================== */
.tb-kop {
    position: relative;
    z-index: 60;             /* menu, tooltips en toast boven de pagina-inhoud (maar onder modals) */
    margin: 0 0 12px;
}
.tb {
    --tb-rand: #3d3d3d;
    --tb-item: rgba(0, 0, 0, 0.25);
    --tb-lijn: rgba(255, 255, 255, 0.07);
    --tb-lijn-sterk: rgba(255, 255, 255, 0.16);
    --tb-tekst: #e0e0e0;
    --tb-muted: #aaaaaa;
    --tb-goud: #f1c40f;
    --tb-goud-dk: #B28427;
    --tb-ok: #2ecc71;
    --tb-err: #e74c3c;
    --tb-zacht: #9fb3c8;
    --tb-warm: #c8a27c;
    --tb-blauw: #3498db;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 6px 5px 7px;
    border: 1px solid var(--tb-rand);
    border-radius: 10px;
    background: linear-gradient(180deg, #242424 0%, #1a1a1a 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    color: var(--tb-tekst);
    font-size: 11px;
    line-height: 1.2;
    text-align: left;
}
.tb *, .tb *::before, .tb *::after { box-sizing: border-box; }
.tb a { text-decoration: none; }

/* ---------- regels en onderdelen ---------- */
.tb-regels {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tb-regel {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    overflow: hidden;        /* vangnet bij een zeer volle regel: nooit over de rail/avatar heen */
}
.tb-item {
    flex: 0 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    height: 21px;
    padding: 0 8px;
    border: 1px solid var(--tb-lijn);
    border-radius: 6px;
    background: var(--tb-item);
    color: var(--tb-tekst);
    white-space: nowrap;
    transition: border-color 0.15s, background-color 0.15s;
}
a.tb-item:hover,
a.tb-item:focus-visible {
    border-color: var(--tb-lijn-sterk);
    background-color: rgba(255, 255, 255, 0.05);
    outline: none;
}
.tb-item.tb-meter { flex: 1 1 0; min-width: 150px; }
/* bedragen, tellers en timers krimpen nooit; de rang- en familienaam mogen als laatste worden afgekapt */
.tb-geld, .tb-getal, .tb-timer, .tb-sessie, .tb-uur, .tb-slim, .tb .is-msg, .tb .is-positie, .tb .is-speeltijd { flex-shrink: 0; }
.tb-ico {
    flex: 0 0 auto;
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* elk icoon zijn eigen kleur (ook in de chips op edit.php?instel=topbalk) */
.tb-ico-cash      { color: #2ecc71; }
.tb-ico-bank      { color: #5dade2; }
.tb-ico-munten    { color: #f1c40f; }
.tb-ico-brief     { color: #f0a04b; }
.tb-ico-hart      { color: #2ecc71; }
.tb-ico-schild    { color: #9fb3c8; }
.tb-ico-klok      { color: #5dade2; }
.tb-ico-slim      { color: #48c9b0; }
.tb-ico-rang      { color: #f1c40f; }
.tb-ico-slot      { color: #e74c3c; }
.tb-ico-uitbraak  { color: #58d68d; }
.tb-ico-kogel     { color: #d4a73a; }
.tb-ico-diamant   { color: #48c9b0; }
.tb-ico-ster      { color: #f4d03f; }
.tb-ico-bliksem   { color: #f5b041; }
.tb-ico-doel      { color: #ec7063; }
.tb-ico-trofee    { color: #f1c40f; }
.tb-ico-familie   { color: #bb8fce; }
.tb-ico-klik      { color: #85c1e9; }
.tb-ico-auto      { color: #e59866; }
.tb-ico-medaille  { color: #d4a73a; }
.tb-ico-glas      { color: #f5b041; }
.tb-ico-pil       { color: #c39bd3; }
.tb-ico-zandloper { color: #d7bde2; }
.tb-ico-persoon   { color: #f1948a; }
.tb-ico-hash      { color: #a9cce3; }
.tb-ico-wereld    { color: #5dade2; }
.tb-v {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: normal;
    color: #ffffff;
    font-variant-numeric: tabular-nums;
}
.tb-l {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--tb-muted);
}
.tb-t2, .tb-t3 { display: none; }
.tb-landnaam { font-weight: normal; color: var(--tb-tekst); }
.tb-vlag {
    flex: 0 0 auto;
    display: block;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.tb-vlag.is-leeg { box-shadow: none; font-size: 12px; line-height: 1; }

/* ---------- meters ---------- */
.tb-m {
    flex: 1 1 auto;
    display: block;
    min-width: 18px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    overflow: hidden;
}
.tb-m i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--tb-kleur, var(--tb-muted));
    transition: width 0.6s ease;
}
.tb-meter .tb-v { flex-shrink: 0; min-width: 30px; text-align: right; }
.is-rv      { --tb-kleur: linear-gradient(90deg, #B28427, #f1c40f); --tb-accent: #f1c40f; }
.is-hp      { --tb-kleur: #2ecc71; --tb-accent: #2ecc71; }
.is-sec     { --tb-kleur: #9fb3c8; --tb-accent: #9fb3c8; }
.is-moord   { --tb-kleur: #ec7063; --tb-accent: #ec7063; }
.is-embleem { --tb-kleur: #B28427; --tb-accent: #d4a73a; }
.tb .tb-meter .tb-ico { color: var(--tb-accent, var(--tb-muted)); }

/* ---------- toestanden ---------- */
.tb .is-wiebel .tb-ico { animation: tb-wiebel 0.6s ease-in-out 1; }
.tb .is-klaar { border-color: rgba(46, 204, 113, 0.45); }
.tb .is-klaar .tb-v { color: var(--tb-ok); }
.tb .is-klaar .tb-ico { color: var(--tb-ok); }
.tb .is-klaar.is-net { animation: tb-klaar 0.9s ease-out 1; }
.tb .is-bijna { --tb-kleur: var(--tb-warm); --tb-accent: var(--tb-warm); }
.tb .is-bijna .tb-v { color: var(--tb-warm); }
.tb .is-leeg .tb-v { color: var(--tb-muted); }
.tb .is-laag { --tb-kleur: var(--tb-err); --tb-accent: var(--tb-err); }
.tb .is-laag .tb-v { color: #ff8a80; }
.tb .is-vast {
    border-color: rgba(231, 76, 60, 0.55);
    background: repeating-linear-gradient(90deg, rgba(231, 76, 60, 0.14) 0 2px, transparent 2px 8px), var(--tb-item);
}
.tb .is-vast .tb-ico,
.tb .is-vast .tb-v { color: #ff8a80; }

/* ---------- meldingenrail (event, poker) ---------- */
.tb-rail {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}
.tb-melding {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border: 1px solid var(--tb-lijn);
    border-radius: 50%;
    background: var(--tb-item);
    color: var(--tb-tekst);
    font-size: 12px;
    line-height: 1;
}
.tb-melding:hover,
.tb-melding:focus-visible { border-color: var(--tb-lijn-sterk); outline: none; }
.tb-mi { display: block; }
.tb-ster.is-nieuw { border-color: rgba(241, 196, 15, 0.45); }
.tb-ster.is-nieuw .tb-mi { animation: tb-ster 2s ease-in-out infinite; }
.tb-poker.is-wacht  { color: #9fb3c8; }
.tb-poker.is-actief { color: #5dade2; }
.tb-poker.is-beurt {
    color: var(--tb-blauw);
    border-color: rgba(52, 152, 219, 0.6);
    animation: tb-gloed 1.6s ease-in-out infinite;
}
.tb-badge {
    position: absolute;
    top: -5px;
    right: -6px;
    min-width: 13px;
    height: 13px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--tb-err);
    color: #ffffff;
    font-size: 9px;
    font-weight: normal;
    line-height: 13px;
    text-align: center;
}
.tb-tip {
    display: none;
    position: absolute;
    top: calc(100% + 7px);
    right: -8px;
    z-index: 1002;
    padding: 6px 9px;
    border: 1px solid var(--tb-rand);
    border-radius: 8px;
    background: linear-gradient(180deg, #2a2a2a, #1c1c1c);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    color: var(--tb-tekst);
    font-size: 11px;
    line-height: 1.45;
    white-space: nowrap;
}
.tb-tip b { color: #ffffff; font-weight: normal; }
.tb-melding:hover .tb-tip,
.tb-melding:focus-visible .tb-tip { display: block; }
@media (hover: none) {
    .tb-melding:hover .tb-tip { display: none; }   /* touch: een tik opent direct de pagina */
}

/* ---------- naam, avatar en menu ---------- */
.tb-wie {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 7px;
}
.tb-naam {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: #ffffff;
}
.tb-naam:hover { color: var(--tb-goud); }
.tb-avatar {
    position: relative;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #2d2d2d;
    cursor: pointer;
}
.tb-avatar img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #2d2d2d;
}
.tb-avatar::after {
    content: '\25BE';
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 13px;
    height: 13px;
    border: 1px solid var(--tb-rand);
    border-radius: 50%;
    background: #2d2d2d;
    color: var(--tb-goud);
    font-size: 9px;
    line-height: 11px;
    text-align: center;
}
.tb-avatar:focus-visible { outline: 2px solid var(--tb-goud); outline-offset: 2px; }
.tb-avatar[aria-expanded="true"]::after { transform: rotate(180deg); }

.tb-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 1003;
    width: 262px;
    max-width: calc(100vw - 16px);
    padding: 8px;
    border: 1px solid var(--tb-rand);
    border-radius: 10px;
    background: linear-gradient(180deg, #262626, #1c1c1c);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    animation: tb-menu-in 0.15s ease-out;
}
.tb-menu[hidden] { display: none; }
.tb-menu-kop {
    margin-bottom: 6px;
    padding: 2px 4px 8px;
    border-bottom: 1px solid var(--tb-lijn);
}
.tb-menu-naam { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #ffffff; font-size: 12px; }
.tb-menu .tb-menu-naam { padding: 0; }
.tb-menu .tb-menu-naam:hover { background: none; color: var(--tb-goud); text-decoration: underline; }
.tb-menu-kop small { display: block; margin: 2px 0 6px; color: var(--tb-muted); font-size: 10px; }
.tb-menu-kop .tb-m { height: 4px; }
.tb-menu-grid,
.tb-menu-voet {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}
.tb-menu-voet {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--tb-lijn);
}
.tb-menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 7px;
    border-radius: 6px;
    color: var(--tb-tekst);
    font-size: 11px;
    white-space: nowrap;
}
.tb-menu a:hover,
.tb-menu a:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    outline: none;
}

/* ---------- toast (uit de gevangenis gebroken) ---------- */
.tb-toast {
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    z-index: 1002;
    display: flex;
    align-items: center;
    gap: 8px;
    width: max-content;
    max-width: calc(100% - 16px);
    padding: 7px 8px 7px 10px;
    border: 1px solid var(--tb-rand);
    border-left: 3px solid var(--tb-ok);
    border-radius: 8px;
    background: linear-gradient(180deg, #2a2a2a, #1c1c1c);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    color: var(--tb-tekst);
    font-size: 11px;
    line-height: 1.4;
    transform: translateX(-50%);
    animation: tb-toast-in 0.25s ease-out;
}
.tb-toast a { color: var(--tb-goud); }
.tb-toast.is-weg { animation: tb-toast-uit 0.25s ease-in forwards; }
.tb-toast-i { flex: 0 0 auto; font-size: 13px; }
.tb-toast-x {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--tb-muted);
    font: inherit;
    font-size: 13px;
    line-height: 20px;
    cursor: pointer;
}
.tb-toast-x:hover { color: #ffffff; }

/* ---------- actiebalken onder de topbalk (dubbele belcredits, creditshop) ---------- */
.belcredits-notification-row {
    position: relative;
    margin: 6px 0 0;
    padding: 6px 10px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(183, 142, 0, 0.3) 20%, rgba(183, 142, 0, 0.3) 80%, rgba(0, 0, 0, 0) 100%);
    text-align: center;
    font-size: 11px;
    animation: pulse-belcredits-background 3s infinite alternate;
    transition: all 0.3s ease;
}
.belcredits-notification-row a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}
.belcredits-notification-row:hover {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(183, 142, 0, 0.5) 20%, rgba(183, 142, 0, 0.5) 80%, rgba(0, 0, 0, 0) 100%);
}
@keyframes pulse-belcredits-background {
    0%   { box-shadow: 0 0 5px rgba(183, 142, 0, 0.3); }
    100% { box-shadow: 0 0 15px rgba(183, 142, 0, 0.6); }
}

/* ---------- verplichte naamswijziging (log = 5) ---------- */
.tb-verplicht {
    margin: 0 0 12px;
    padding: 28px 16px;
    border: 1px solid #3d3d3d;
    border-radius: 10px;
    background: linear-gradient(180deg, #242424 0%, #1a1a1a 100%);
    text-align: center;
    font-size: 11px;
    line-height: 1.6;
}
.tb-verplicht .errorbold { font-size: 19px; }

/* ---------- animaties ---------- */
@keyframes tb-ster {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(241, 196, 15, 0)); }
    50%      { transform: scale(1.18); filter: drop-shadow(0 0 4px rgba(241, 196, 15, 0.85)); }
}
@keyframes tb-gloed {
    0%, 100% { box-shadow: 0 0 0 0 rgba(52, 152, 219, 0); }
    50%      { box-shadow: 0 0 8px 1px rgba(52, 152, 219, 0.65); }
}
@keyframes tb-klaar {
    0%   { box-shadow: inset 0 0 0 12px rgba(46, 204, 113, 0.35); }
    100% { box-shadow: inset 0 0 0 0 rgba(46, 204, 113, 0); }
}
@keyframes tb-wiebel {
    0%, 100% { transform: rotate(0); }
    20%      { transform: rotate(-14deg); }
    40%      { transform: rotate(12deg); }
    60%      { transform: rotate(-8deg); }
    80%      { transform: rotate(4deg); }
}
@keyframes tb-toast-in {
    from { opacity: 0; transform: translate(-50%, -6px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes tb-toast-uit {
    to { opacity: 0; transform: translate(-50%, -6px); }
}
@keyframes tb-menu-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1199px) {
    .tb-t1 { display: none; }
    .tb-t2 { display: inline; }
    .tb-naam { display: none; }      /* 720p / iPad Pro en kleiner: naam staat (aanklikbaar) in het menu */
    /* volle regel (5+ onderdelen): meters alleen met hun icoon, zodat alles past */
    .tb-regel:has(> .tb-item:nth-child(5)) .tb-meter .tb-l { display: none; }
    .tb-regel:has(> .tb-item:nth-child(5)) .tb-item.tb-meter { min-width: 100px; }
}
@media (max-width: 899px) {
    .tb-p8 { display: none; }
}
@media (max-width: 699px) {
    /* smalle tablets: meters alleen met hun (gekleurde) icoon, zodat de slimme timer ernaast past */
    .tb-meter .tb-l { display: none; }
    .tb-item.tb-meter { min-width: 100px; }
}
@media (max-width: 599px) {
    .tb { gap: 5px; padding: 5px 5px 5px 6px; }
    .tb-regel { gap: 4px; }
    .tb-item { gap: 4px; padding: 0 6px; }
    .tb-t2 { display: none; }
    .tb-t3 { display: inline; }
    .tb-meter .tb-l,
    .tb-landnaam,
    .tb .is-msg.is-nieuw .tb-l { display: none; }
    .tb-item.tb-meter { min-width: 62px; }
    .tb-meter .tb-v { min-width: 0; }
    .tb-m { min-width: 10px; }
    .tb-p6, .tb-p7 { display: none; }
    .tb-avatar { width: 32px; height: 32px; }
    .tb-rail { gap: 3px; }
    .tb-melding { width: 19px; height: 19px; font-size: 11px; }
}
@media (max-width: 419px) {
    .tb-regel { gap: 3px; }
    .tb-item { gap: 3px; padding: 0 4px; }
    .tb .is-rang .tb-ico { display: none; }
    /* volle regel (4+ onderdelen): meters zonder balk, alleen icoon + waarde */
    .tb-regel:has(> .tb-item:nth-child(4)) .tb-item.tb-meter { min-width: 0; }
    .tb-regel:has(> .tb-item:nth-child(4)) .tb-m { display: none; }
}

/* rustige modus (edit.php) en "verminder beweging" in het OS: geen animaties */
.tb--rustig *,
.tb--rustig *::before,
.tb--rustig *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
    .tb-kop *,
    .tb-kop *::before,
    .tb-kop *::after { animation: none !important; transition: none !important; }
}
