.wow-glory-checker-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.5;
}

.wow-glory-form {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #3a3a3a;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #f0f0f0;
}

.form-group input[type="text"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    background: #1a1a1a;
    color: #e0e0e0;
}

.form-group input[type="text"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #D7CAF5;
    box-shadow: 0 0 0 1px #D7CAF5;
}

.wow-submit-btn {
    background: #D7CAF5;
    color: #1a1a1a;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.wow-submit-btn:hover {
    background: #B8A8E0;
}

.wow-submit-btn:active {
    transform: translateY(1px);
}

.wow-results {
    background: #2a2a2a;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #3a3a3a;
}

.wow-results .loading {
    text-align: center;
    padding: 20px;
    color: #aaa;
}

.wow-results .loading::before {
    content: "⏳ ";
    font-size: 24px;
}

.achievement-results h3 {
    margin-top: 0;
    color: #f0f0f0;
    border-bottom: 2px solid #D7CAF5;
    padding-bottom: 10px;
}

.achievement-results .stats {
    background: #1a2332;
    padding: 15px;
    border-radius: 4px;
    margin: 15px 0;
    border: 1px solid #2a3a4a;
}

.achievement-results .stats p {
    margin: 5px 0;
    color: #e0e0e0;
}

.achievement-results .stats strong {
    color: #D7CAF5;
}

.achievement-results .stats .total-price {
    font-size: 18px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #3a3a3a;
}

.achievement-results .stats .pricing-note {
    font-size: 12px;
    color: #888;
    font-style: italic;
    margin-top: 10px;
}

.gold-amount {
    color: #ffd700;
    font-weight: bold;
    font-size: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.missing-achievements h4 {
    color: #f0f0f0;
    margin-top: 20px;
}

/* Mount results search bar */
.mount-results-search-wrap {
    margin: 15px 0 20px 0;
    padding: 10px 0;
}

.mount-results-search-input {
    width: 100%;
    max-width: 400px;
    padding: 10px 14px;
    background: #1a1a1a;
    color: #e0e0e0;
    border: 2px solid #D7CAF5;
    border-radius: 4px;
    font-size: 14px;
}

.mount-results-search-input::placeholder {
    color: #888;
}

.mount-results-search-input:focus {
    outline: none;
    border-color: #B8A8E0;
    box-shadow: 0 0 0 2px rgba(215, 202, 245, 0.3);
}

/* Mount results by expansion (collapsible sections) */
.mount-results-by-expansion .mount-expansion-section {
    margin-bottom: 15px;
}

.mount-results-by-expansion .mount-expansion-header {
    margin: 0;
    padding: 12px 18px;
    background: #2a2a2a;
    color: #D7CAF5;
    cursor: pointer;
    user-select: none;
    border-radius: 4px 4px 0 0;
    border: 1px solid #3a3a3a;
    transition: background 0.2s;
}

.mount-results-by-expansion .mount-expansion-header:hover {
    background: #333;
}

.mount-results-by-expansion .mount-expansion-header .toggle-icon {
    display: inline-block;
    width: 20px;
    font-weight: bold;
    margin-right: 5px;
}

.mount-results-by-expansion .mount-expansion-header .sub-count {
    color: #888;
    font-size: 0.9em;
    font-weight: normal;
    margin-left: 8px;
}

.mount-results-by-expansion .mount-expansion-content {
    padding: 15px;
    border: 1px solid #3a3a3a;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background: #1a1a1a;
}

.mount-results-by-expansion .mount-expansion-content table {
    margin: 0;
}

.expand-hint {
    color: #888;
    font-size: 13px;
    font-style: italic;
    margin-bottom: 10px;
}

.achievement-row.expandable {
    cursor: pointer;
    transition: background 0.2s;
}

.achievement-row.expandable:hover {
    background: #3a3a3a !important;
}

.expand-icon {
    display: inline-block;
    width: 16px;
    color: #D7CAF5;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.2s;
}

.detail-row {
    background: #1a1a1a !important;
}

.detail-row td {
    padding: 0 !important;
}

.sub-achievements {
    padding: 20px;
    border-left: 3px solid #D7CAF5;
    margin-left: 20px;
}

.sub-ach-header {
    font-weight: 600;
    color: #D7CAF5;
    margin-bottom: 15px;
    font-size: 14px;
}

.sub-ach-list {
    background: #2a2a2a;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
}

.sub-ach-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #3a3a3a;
    transition: opacity 0.2s;
}

.sub-ach-item.completed {
    opacity: 0.6;
    background: #1a2a1a;
}

.sub-ach-item:last-child {
    border-bottom: none;
}

.completion-check {
    color: #4caf50;
    font-weight: bold;
    margin-right: 8px;
    font-size: 16px;
}

.sub-ach-name {
    color: #ccc;
    font-size: 14px;
    flex: 1;
}

.sub-ach-item.completed .sub-ach-name {
    text-decoration: line-through;
    color: #888;
}

.sub-ach-price {
    color: #ffd700;
    font-weight: 600;
    font-size: 14px;
}

.sub-ach-price.completed-price {
    color: #888;
    text-decoration: line-through;
}

.sub-ach-summary {
    background: #2a3a2a;
    padding: 10px 12px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 3px solid #4caf50;
}

.completion-stats {
    color: #4caf50;
    font-weight: 600;
    font-size: 14px;
}

.sub-ach-total {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 4px;
    text-align: right;
}

.sub-ach-total strong {
    color: #f0f0f0;
}

.sub-ach-total .gold-amount {
    margin-left: 10px;
}

.sub-ach-total br {
    margin-bottom: 5px;
}

.pricing-method {
    font-size: 12px;
    color: #4caf50;
    margin-top: 10px;
    font-style: italic;
    font-weight: 600;
}

.price-comparison {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
    text-align: left;
}

.price-option {
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.price-option.cheaper {
    background: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
}

.cheaper-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #2ecc71;
    color: white;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 10px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.achievement-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.achievement-table thead {
    background: #1a1a1a;
    color: #D7CAF5;
    border-bottom: 2px solid #D7CAF5;
}

.achievement-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.achievement-table tbody tr {
    border-bottom: 1px solid #3a3a3a;
    transition: background 0.2s;
}

.achievement-table tbody tr:hover {
    background: #333;
}

.achievement-table td {
    padding: 12px;
    color: #e0e0e0;
}

.ach-name {
    font-weight: 500;
    color: #f0f0f0;
}

.bundle-missing-mounts {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    font-weight: normal;
}

.ach-type {
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-raid {
    background: #F5F4B4;
    color: black;
}

.badge-dungeon {
    background: #D7CAF5;
    color: black;
}

.ach-price {
    color: #ffd700;
    font-weight: 600;
    text-align: right;
}

.ach-link a {
    color: #D7CAF5;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 3px;
    transition: background 0.2s;
}

.ach-link a:hover {
    background: #1a1a1a;
    text-decoration: none;
}

.success-message {
    background: #1a2e1a;
    border: 2px solid #4caf50;
    border-radius: 6px;
    padding: 20px;
    text-align: center;
    margin: 20px 0;
}

.success-message p {
    margin: 0;
    font-size: 18px;
    color: #4caf50;
    font-weight: 600;
}

.error-message {
    background: #2e1a1a;
    border: 2px solid #f44336;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.error-message p {
    margin: 0;
    color: #f44336;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wow-glory-checker-container {
        padding: 10px;
        margin: 10px;
    }
    
    .wow-glory-form,
    .wow-results {
        padding: 15px;
    }
    
    .achievement-table {
        font-size: 14px;
    }
    
    .achievement-table th,
    .achievement-table td {
        padding: 8px;
    }
}

/* Server search box styling */
#server-search {
    margin-bottom: 8px;
    border: 1px solid #555;
    background: #2a2a2a;
}


/* Recent Searches */
.recent-searches {
    margin-top: 20px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 8px;
    border: 1px solid #444;
}

.recent-searches h4 {
    margin: 0 0 10px 0;
    color: #D7CAF5;
    font-size: 14px;
    font-weight: 600;
}

#recent-searches-list,
#mount-recent-searches-list,
#other-ach-recent-searches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recent-search-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    transition: all 0.2s;
}

.recent-search-item:hover {
    border-color: #D7CAF5;
    background: #252525;
}

.recent-search-name {
    color: #e0e0e0;
    font-size: 14px;
}

.recent-search-server {
    color: #888;
    font-size: 12px;
}

.recent-search-refresh {
    background: #D7CAF5;
    color: #1a1a1a;
    border: none;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s;
}

.recent-search-refresh:hover {
    background: #B8A8E0;
}

.recent-search-remove {
    background: #ed4245;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    line-height: 1;
    transition: background 0.2s;
}

.recent-search-remove:hover {
    background: #c03537;
}

/* Back to Top Button */
.back-to-top-btn {
    display: block;
    margin: 30px auto 0;
    padding: 12px 30px;
    background: #D7CAF5;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.back-to-top-btn:hover {
    background: #B8A8E0;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.back-to-top-btn:active {
    transform: translateY(0);
}

/* Copy Discord Button */
.ach-copy {
    text-align: center;
}

.copy-discord-btn {
    background: #9B7DC3;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.copy-discord-btn:hover {
    background: #8B7AB8;
    transform: translateY(-1px);
}

.copy-discord-btn:active {
    transform: translateY(0);
}

/* Copy Toast Notification */
.copy-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #46b450;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.copy-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==================== FLOATING CART ==================== */

.floating-cart {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 320px;
    background: #2a2a2a;
    border: 2px solid #D7CAF5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.cart-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: #1a1a1a;
    border-bottom: 1px solid #444;
    border-radius: 6px 6px 0 0;
    cursor: pointer;
    user-select: none;
}

.cart-icon {
    font-size: 20px;
}

.cart-title {
    font-weight: 600;
    color: #D7CAF5;
    font-size: 16px;
}

.cart-count {
    color: #888;
    font-size: 14px;
}

.cart-toggle {
    margin-left: auto;
    background: none;
    border: none;
    color: #D7CAF5;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-content {
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.cart-empty {
    padding: 30px 20px;
    text-align: center;
    color: #888;
}

.cart-empty p {
    margin: 5px 0;
}

.cart-hint {
    font-size: 12px;
    font-style: italic;
}

.cart-items {
    padding: 10px;
}

.cart-item {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 8px;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

.cart-item-name {
    color: #e0e0e0;
    font-size: 13px;
    font-weight: 600;
    flex: 1;
}

.cart-item-remove {
    background: #ed4245;
    color: white;
    border: none;
    border-radius: 3px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
}

.cart-item-remove:hover {
    background: #c03537;
}

.cart-item-price {
    color: #ffd700;
    font-size: 12px;
}

.cart-summary {
    padding: 15px;
    border-top: 2px solid #444;
    background: #1a1a1a;
}

.cart-total-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: #e0e0e0;
    font-size: 14px;
}

.cart-total-line strong {
    color: #D7CAF5;
}

.cart-copy-btn {
    width: 100%;
    background: #9B7DC3;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 8px;
    transition: background 0.2s;
}

.cart-copy-btn:hover {
    background: #8B7AB8;
}

.cart-clear-btn {
    width: 100%;
    background: #444;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.cart-clear-btn:hover {
    background: #555;
}

/* Checkbox styling */
.ach-select {
    text-align: center;
    width: 40px;
}

.cart-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .floating-cart {
        position: fixed;
        right: 10px;
        left: 10px;
        top: auto;
        bottom: 10px;
        width: auto;
        max-height: 60vh;
    }
    
    .cart-header {
        cursor: pointer;
    }
    
    .cart-content {
        max-height: calc(60vh - 60px);
    }
}

/* Mobile table adjustments */
@media (max-width: 768px) {
    .achievement-table {
        font-size: 13px;
    }
    
    .ach-select {
        width: 30px;
    }
    
    .cart-checkbox {
        width: 16px;
        height: 16px;
    }
    
    .ach-name {
        font-size: 13px;
    }
    
    .badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .copy-discord-btn {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Booster Warning Icon */
.booster-warning {
    cursor: help;
    font-size: 14px;
    margin-left: 4px;
    opacity: 0.9;
}

.booster-warning:hover {
    opacity: 1;
}

/* Note Icon */
.note-icon {
    cursor: help;
    font-size: 14px;
    margin-left: 4px;
    opacity: 0.8;
}

.note-icon:hover {
    opacity: 1;
}

/* 80% Rule - Disabled Individual Option */
.price-option.disabled {
    opacity: 0.6;
    background: rgba(237, 66, 69, 0.1);
    border-color: #ed4245;
}

/* Delver progress page */
.delver-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin: 12px 0 16px;
}

.delver-controls .mount-results-search-input {
    min-width: 280px;
    max-width: 420px;
}

.delver-summary-stats {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.delver-expansion-block {
    margin-bottom: 16px;
}

.delver-expansion-block h4 {
    margin: 8px 0;
    color: #d7caf5;
}

.delver-meta-block {
    border: 1px solid rgba(215, 202, 245, 0.25);
    border-radius: 6px;
    margin-bottom: 10px;
    background: rgba(30, 30, 30, 0.45);
}

.delver-meta-block > summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 12px;
}

.delver-meta-block > summary::-webkit-details-marker {
    display: none;
}

.delver-meta-title {
    font-weight: 600;
}

.delver-meta-counters {
    color: #cfcfcf;
    font-size: 12px;
}

.delver-meta-content {
    padding: 0 10px 10px;
}

.delver-status {
    display: inline-block;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.delver-status.is-complete {
    background: rgba(73, 190, 120, 0.2);
    color: #86e6a9;
}

.delver-status.is-missing {
    background: rgba(230, 93, 93, 0.2);
    color: #ffb3b3;
}

.delver-sub-table td,
.delver-sub-table th {
    vertical-align: top;
}

.delver-criteria-list {
    margin: 0;
    padding-left: 18px;
}

.delver-criterion-row {
    margin: 3px 0;
}

.delver-empty-row {
    color: #bbb;
    font-style: italic;
}
