.privileges-container {
    max-width: 960px;
    margin: 0 auto;
}

.privileges-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
    flex-wrap: wrap;
    gap: 10px;
}

.privileges-balances {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 28px;
    align-items: center;
}

.privileges-balance {
    font-size: 16px;
    color: #f0e6d2;
}

.privileges-balance-label {
    margin-right: 4px;
    color: #c0b090;
}

.privileges-balance-vp strong {
    color: #9fd4ff;
}

.privileges-balance img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.privileges-balance strong {
    color: #ffd700;
}

.privileges-realm-select label {
    color: #c0b090;
    margin-right: 8px;
}

.privileges-realm-select select {
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #5a4a3a;
    color: #f0e6d2;
    border-radius: 3px;
}

.privileges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.privilege-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid #5a4a3a;
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.privilege-card:hover {
    border-color: #c9aa71;
    box-shadow: 0 0 12px rgba(201, 170, 113, 0.3);
}

.privilege-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.privilege-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.privilege-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 48px;
    color: #5a4a3a;
}

.privilege-info {
    padding: 15px 15px 18px;
}

.privilege-name {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #ffd700;
    font-weight: bold;
}

.privilege-description {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #c0b090;
    line-height: 1.4;
    min-height: 36px;
}

.privilege-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.privilege-prices {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.privilege-price-line {
    font-size: 14px;
    color: #ffd700;
    font-weight: bold;
}

.privilege-price-line img,
.privilege-vp-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

.privilege-price-vp {
    color: #9fd4ff;
}

.privilege-vp-icon {
    display: inline-block;
    font-size: 12px;
    line-height: 14px;
    text-align: center;
    color: #9fd4ff;
}

.privilege-price-unset {
    font-size: 13px;
    color: #888;
    font-style: italic;
}

.privilege-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.privilege-buy-btn {
    padding: 6px 14px !important;
    font-size: 12px !important;
    cursor: pointer;
    height: auto !important;
    margin-top: 0 !important;
    line-height: 1.4 !important;
}

.privilege-buy-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.privileges-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 15px;
}

#privilege_message {
    margin-top: 15px;
    padding: 10px;
    text-align: center;
}
