.exp-bonus-line {
    color: #6b3f16;
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 4px;
}

.exp-bonus-line .bonus-value {
    color: #00ff66;
    font-weight: bold;
    text-shadow: 0 0 6px rgba(0, 255, 102, 0.55);
}

.exp-potions-subtitle {
    margin: 4px 0 8px 0;
    color: #6b3f16;
    font-weight: bold;
    font-size: 14px;
}

.exp-potions-subtitle .active-count {
    color: #c45b00;
    font-weight: bold;
}

:root {
    --exp-scrollbar-width: 10px;
}

/* BOX */
.exp-potions-box {
    background: linear-gradient(180deg, #101c4e 0%, #182a63 55%, #142457 100%);
    border: 2px solid #3d6fd1;
    border-radius: 12px;
    box-shadow:
        0 0 10px rgba(0,0,0,0.45),
        inset 0 0 18px rgba(255,255,255,0.03);
    padding: 12px;
    width: 560px;
    max-width: 100%;
    box-sizing: border-box;
}

/* TITLE */
.exp-potions-title {
    text-align: center;
    font-size: 19px;
    font-weight: bold;
    color: #7fd0ff;
    text-shadow:
        0 1px 0 #000,
        0 0 8px rgba(118, 199, 255, 0.35);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

/* HEADER */
.exp-potions-header {
    display: grid;
    grid-template-columns: 42% 28% 15% 15%;
    align-items: center;
    height: 38px;
    padding-right: var(--exp-scrollbar-width);
    background: linear-gradient(180deg, rgba(109, 125, 176, 0.65), rgba(84, 100, 150, 0.65));
    border-radius: 8px 8px 0 0;
    border: 1px solid rgba(255,255,255,0.14);
    border-bottom: none;
    box-sizing: border-box;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.35);
    color: #ffffff;
    font-weight: bold;
}

.exp-potions-col-name,
.exp-potions-col-bar,
.exp-potions-col-time,
.exp-potions-col-uses {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    min-width: 0;
    height: 100%;
}

.exp-potions-col-name {
    padding: 0 12px;
    justify-content: flex-start;
}

.exp-potions-col-bar {
    padding: 0 12px;
    border-left: 1px solid rgba(255,255,255,0.10);
    justify-content: center;
}

.exp-potions-col-time {
    padding: 0 6px;
    border-left: 1px solid rgba(255,255,255,0.10);
    justify-content: center;
    text-align: center;
}

.exp-potions-col-uses {
    padding: 0 6px;
    border-left: 1px solid rgba(255,255,255,0.10);
    justify-content: center;
    text-align: center;
}

/* LIST */
.exp-potions-list {
    max-height: 380px;
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.14);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background: rgba(0,0,0,0.10);
    box-sizing: border-box;
    scrollbar-gutter: stable;
}

/* ROW */
.exp-potions-row {
    display: grid;
    grid-template-columns: 42% 28% 15% 15%;
    align-items: center;
    min-height: 46px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-sizing: border-box;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.exp-potions-row:last-child {
    border-bottom: none;
}

.exp-potions-row:hover {
    background: rgba(255,255,255,0.055);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

/* NAME */
.exp-potions-left {
    padding: 9px 12px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #edf3ff;
    font-size: 14px;
    min-width: 0;
    height: 100%;
}

.exp-potions-left img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 3px rgba(255,255,255,0.08));
}

/* BAR COLUMN */
.exp-potions-bar-wrap {
    padding: 0 12px;
    box-sizing: border-box;
    border-left: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    height: 100%;
}

/* ANIMATED BAR */
.exp-potions-bar {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #ff4d4d 0%, #ffb347 50%, #47d764 100%);
    box-shadow:
        inset 0 0 4px rgba(0,0,0,0.35),
        0 0 8px rgba(71,215,100,0.18);
    transition: width 0.6s linear, opacity 0.3s ease, filter 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    margin-left: 0;
}

.exp-potions-bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.10) 25%,
            rgba(255,255,255,0.28) 40%,
            rgba(255,255,255,0.08) 55%,
            rgba(255,255,255,0) 75%
        );
    background-size: 200% 100%;
    animation: expBarFlow 1.8s linear infinite;
    pointer-events: none;
}

.exp-potions-bar::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    right: 1px;
    height: 45%;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    pointer-events: none;
}

@keyframes expBarFlow {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.exp-potions-bar-wrap-inactive {
    opacity: 0.35;
}

.exp-potions-bar-inactive {
    background: rgba(255,255,255,0.10);
    box-shadow: inset 0 0 4px rgba(0,0,0,0.25);
}

.exp-potions-bar-inactive::before,
.exp-potions-bar-inactive::after {
    display: none;
}

/* TIME */
.exp-potions-time {
    border-left: 1px solid rgba(255,255,255,0.08);
    box-sizing: border-box;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #67ffe5;
    font-size: 14px;
    font-weight: bold;
    min-width: 0;
    height: 100%;
}

/* USE COUNT */
.exp-potions-uses {
    border-left: 1px solid rgba(255,255,255,0.08);
    box-sizing: border-box;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #ffd36b;
    min-width: 0;
    height: 100%;
}

.exp-potions-uses span,
.exp-potions-uses-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(95, 116, 183, 0.58), rgba(59, 77, 136, 0.58));
    box-shadow:
        inset 0 1px 1px rgba(255,255,255,0.08),
        0 0 6px rgba(0,0,0,0.18);
    color: #ffd36b;
    text-shadow: 0 0 4px rgba(255, 211, 107, 0.18);
}

/* SECTION TITLE */
.exp-potions-section-title {
    background: linear-gradient(180deg, rgba(10, 20, 68, 0.96), rgba(9, 16, 55, 0.96));
    color: #b4a7ff;
    font-size: 16px;
    font-weight: bold;
    padding: 11px 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-shadow: 0 0 8px rgba(180, 167, 255, 0.15);
}

/* INACTIVE */
.exp-potions-row-inactive {
    opacity: 0.55;
    filter: grayscale(38%);
}

.exp-potions-left-inactive {
    color: #b7bed8;
}

.exp-potions-time-inactive,
.exp-potions-uses-inactive {
    color: #95a1ca;
}

/* TIME COLORS */
.exp-time-green {
    color: #47d764 !important;
    text-shadow: 0 0 6px rgba(71, 215, 100, 0.28);
}

.exp-time-yellow {
    color: #ffb347 !important;
    text-shadow: 0 0 6px rgba(255, 179, 71, 0.22);
}

.exp-time-red {
    color: #ff4d4d !important;
    text-shadow: 0 0 7px rgba(255, 77, 77, 0.28);
    animation: expBlink 1s infinite;
}

.exp-time-expired {
    color: #8d95b8 !important;
    font-weight: bold;
}

.exp-potions-row-expired {
    opacity: 0.48;
    filter: grayscale(50%);
}

@keyframes expBlink {
    0% { opacity: 1; }
    50% { opacity: 0.45; }
    100% { opacity: 1; }
}

/* FOOTER */
.exp-potions-footer {
    margin-top: 10px;
    text-align: center;
    background: linear-gradient(180deg, rgba(82, 103, 177, 0.58), rgba(58, 77, 143, 0.58));
    border-radius: 8px;
    color: #dbe7ff;
    font-weight: bold;
    padding: 10px;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.08);
    text-shadow: 0 1px 0 rgba(0,0,0,0.35);
}

/* EMPTY */
.exp-potions-empty {
    text-align: center;
    color: #dbe7ff;
    padding: 16px;
    font-size: 14px;
}

/* SCROLL */
.exp-potions-list::-webkit-scrollbar {
    width: var(--exp-scrollbar-width);
}

.exp-potions-list::-webkit-scrollbar-track {
    background: #16214c;
    border-radius: 8px;
}

.exp-potions-list::-webkit-scrollbar-thumb {
    background: #4b73d1;
    border-radius: 8px;
}

.exp-potions-list::-webkit-scrollbar-thumb:hover {
    background: #6c92eb;
}