.bazaar-container {
    max-width: 2000px;
    margin: 40px auto;
    padding: 0 2rem 2rem 2rem;
}

.bazaar-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0;
    background: transparent;
    border: none;
}

.bazaar-header h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(120, 150, 180, 0.8), 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin: 0 0 1.5rem 0;
    letter-spacing: 2px;
}

.bazaar-header h1 i {
    margin-right: 1rem;
    color: #FFD700;
}

.bazaar-header p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 2rem 0;
    text-shadow: 0 0 15px rgba(120, 150, 180, 0.5), 2px 2px 4px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bazaar-header-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-sell-account,
.btn-my-listings {
    padding: 1rem 2.5rem;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Cinzel', serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-sell-account {
    background: linear-gradient(135deg, #7896b4, #5a7a94);
    border: 2px solid #7896b4;
}

.btn-sell-account:hover {
    background: linear-gradient(135deg, #8ba6c4, #6a8aa4);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(120, 150, 180, 0.5);
    color: #ffffff;
}

.btn-my-listings {
    background: linear-gradient(135deg, #FFD700, #DAA520);
    border: 2px solid #FFD700;
    color: #1a1f2e;
}

.btn-my-listings:hover {
    background: linear-gradient(135deg, #FFED4E, #F0C420);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.5);
    color: #1a1f2e;
}

.btn-sell-account i,
.btn-my-listings i {
    margin-right: 0.75rem;
}

.bazaar-filters {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: rgba(10, 15, 25, 0.9);
    border: 2px solid rgba(120, 150, 180, 0.5);
    border-radius: 12px;
    backdrop-filter: blur(15px);
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: flex-end;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #FFD700;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Cinzel', serif;
}

.filter-select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(120, 150, 180, 0.4);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-select:hover,
.filter-select:focus {
    border-color: #7896b4;
    background: rgba(0, 0, 0, 0.9);
    outline: none;
    box-shadow: 0 0 15px rgba(120, 150, 180, 0.5);
}

.filter-select option {
    background: #0a0f19;
    color: #ffffff;
    text-transform: none;
}

.bazaar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
    background: rgba(10, 15, 25, 0.6);
    border: 2px solid rgba(120, 150, 180, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.bazaar-card {
    background: rgba(10, 15, 25, 0.9);
    border: 2px solid rgba(120, 150, 180, 0.5);
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.bazaar-card:hover {
    transform: translateY(-5px);
    border-color: #7896b4;
    box-shadow: 0 5px 20px rgba(120, 150, 180, 0.3);
}

.bazaar-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(120, 150, 180, 0.3);
}

.account-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #FFD700;
    font-weight: bold;
}

.account-badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #0a0f19;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.account-badge i {
    margin-right: 0.3rem;
}

.bazaar-card-body {
    position: relative;
}

.character-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    border: 1px solid rgba(120, 150, 180, 0.3);
}

.character-outfit {
    width: 80px;
    height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #7896b4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.character-outfit img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.character-info {
    flex: 1;
}

.character-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.character-details {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.character-details span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.character-details i {
    color: #FFD700;
}

.account-stats {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.stat-item {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(120, 150, 180, 0.3);
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #7896b4;
    background: rgba(0, 0, 0, 0.8);
}

.stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1rem;
    color: #FFD700;
    font-weight: bold;
    font-family: 'Cinzel', serif;
}

.bazaar-price {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 1rem;
    border-top: 2px solid rgba(120, 150, 180, 0.3);
}

.price-item {
    text-align: center;
    flex: 1;
}

.price-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-value {
    font-size: 1.4rem;
    color: #FFD700;
    font-weight: bold;
    font-family: 'Cinzel', serif;
}

.price-value i {
    margin-right: 0.3rem;
    font-size: 1.2rem;
}

.bazaar-empty {
    text-align: center;
    padding: 5rem 3rem;
    background: rgba(10, 15, 25, 0.9);
    border: 2px dashed rgba(120, 150, 180, 0.5);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.bazaar-empty i {
    font-size: 5rem;
    color: #FFD700;
    margin-bottom: 1.5rem;
    opacity: 0.6;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.bazaar-empty h3 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 15px rgba(120, 150, 180, 0.5);
}

.bazaar-empty p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn-be-first {
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #7896b4, #5a7a94);
    border: 2px solid #7896b4;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Cinzel', serif;
    box-shadow: 0 4px 15px rgba(120, 150, 180, 0.3);
}

.btn-be-first:hover {
    background: linear-gradient(135deg, #8ba6c4, #6a8aa4);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(120, 150, 180, 0.5);
    color: #ffffff;
}

.bazaar-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    background: rgba(10, 15, 25, 0.9);
    border: 2px solid rgba(120, 150, 180, 0.5);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 500;
}

.page-btn:hover,
.page-btn.active {
    background: rgba(120, 150, 180, 0.2);
    border-color: #7896b4;
    color: #FFD700;
    transform: translateY(-2px);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn:disabled:hover {
    transform: none;
}

@media (max-width: 1200px) {
    .bazaar-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .bazaar-container {
        padding: 0 1rem 1rem 1rem;
    }

    .bazaar-header h1 {
        font-size: 2.5rem;
    }

    .bazaar-header p {
        font-size: 1.1rem;
    }

    .bazaar-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .bazaar-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .filter-group {
        min-width: auto;
        width: 100%;
    }

    .filter-group label {
        font-size: 0.9rem;
    }

    .filter-select {
        font-size: 0.9rem;
        padding: 0.6rem;
    }

    .account-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .character-preview {
        flex-direction: column;
        text-align: center;
    }

    .bazaar-card {
        padding: 1rem;
    }

    .bazaar-card-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .account-name {
        font-size: 1.3rem;
    }

    .price-amount {
        font-size: 1.6rem;
    }

    .bazaar-price {
        padding-top: 0.75rem;
    }
}

@media (max-width: 480px) {
    .bazaar-header h1 {
        font-size: 2rem;
    }

    .bazaar-header p {
        font-size: 1rem;
    }

    .account-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .stat-item {
        padding: 0.6rem;
    }

    .bazaar-card {
        padding: 0.75rem;
    }

    .bazaar-card-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .account-name {
        font-size: 1.1rem;
    }

    .bazaar-grid {
        gap: 1rem;
    }

    .price-amount {
        font-size: 1.4rem;
    }

    .bazaar-price {
        padding-top: 0.5rem;
    }

    .filter-group label {
        font-size: 0.85rem;
    }

    .filter-select {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
}

.sell-form-container {
    max-width: 900px;
    margin: 0 auto;
}

.sell-form {
    background: rgba(10, 15, 25, 0.9);
    border: 2px solid rgba(120, 150, 180, 0.5);
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.form-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(120, 150, 180, 0.3);
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #7896b4;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(120, 150, 180, 0.4);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #7896b4;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 15px rgba(120, 150, 180, 0.3);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-text {
    display: block;
    margin-top: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.form-text span {
    color: #FFD700;
    font-weight: 600;
}

.text-danger {
    color: #ff6b6b;
    font-size: 0.85rem;
    display: block;
    margin-top: 0.5rem;
}

.warning-section {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.warning-box {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.warning-box > i {
    font-size: 2rem;
    color: #ffc107;
    margin-top: 0.25rem;
}

.warning-box h4 {
    font-family: 'Cinzel', serif;
    color: #ffc107;
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
}

.warning-box ul {
    margin: 0;
    padding-left: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.warning-box li {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Cinzel', serif;
    border: 2px solid;
}

.btn-primary {
    background: linear-gradient(135deg, #28a745, #218838);
    border-color: #28a745;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #34ce57, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(120, 150, 180, 0.2);
    border-color: #7896b4;
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(120, 150, 180, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(120, 150, 180, 0.3);
    color: #ffffff;
}

.alert-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 2px solid #dc3545;
    color: #ff6b6b;
}

.alert-error i {
    color: #dc3545;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .sell-form {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

.details-header {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 15, 25, 0.8);
    border: 2px solid rgba(120, 150, 180, 0.5);
    border-radius: 10px;
    color: #7896b4;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(120, 150, 180, 0.2);
    border-color: #7896b4;
    color: #ffffff;
    transform: translateX(-5px);
}

.back-link i {
    font-size: 1rem;
}

.details-header h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(120, 150, 180, 0.8), 3px 3px 6px rgba(0, 0, 0, 0.8);
    margin: 0 0 1rem 0;
}

.premium-badge-large {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #0a0f19;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.info-item {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(120, 150, 180, 0.3);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #FFD700;
    font-weight: bold;
}

.description-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(120, 150, 180, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    white-space: pre-wrap;
}

.characters-list {
    display: grid;
    gap: 1.5rem;
}

.character-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(120, 150, 180, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.character-card:hover {
    border-color: #7896b4;
    background: rgba(0, 0, 0, 0.6);
    transform: translateX(5px);
}

.character-outfit-large {
    width: 100px;
    height: 100px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #7896b4;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.character-outfit-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.character-card-info {
    flex: 1;
}

.character-card-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #FFD700;
    margin: 0 0 1rem 0;
}

.character-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.character-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.character-stats .stat i {
    color: #7896b4;
}

.no-data {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 2rem;
    font-style: italic;
}

.purchase-box {
    background: rgba(10, 15, 25, 0.9);
    border: 2px solid rgba(120, 150, 180, 0.5);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    position: sticky;
    top: 20px;
}

.purchase-box h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #FFD700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.price-display {
    margin-bottom: 2rem;
}

.price-option {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(120, 150, 180, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-option:last-child {
    margin-bottom: 0;
}

.price-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-amount {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: #FFD700;
    font-weight: bold;
}

.btn-buy {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #28a745, #218838);
    border: 2px solid #28a745;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: 'Cinzel', serif;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-buy:hover {
    background: linear-gradient(135deg, #34ce57, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    color: #ffffff;
}

.security-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(120, 150, 180, 0.1);
    border: 1px solid rgba(120, 150, 180, 0.3);
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.security-notice i {
    color: #7896b4;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.security-notice p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    line-height: 1.5;
}

.fee-notice {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.fee-notice i {
    color: #ffc107;
}

.fee-notice small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

.own-listing-notice {
    text-align: center;
    padding: 1.5rem;
    background: rgba(120, 150, 180, 0.1);
    border: 2px solid rgba(120, 150, 180, 0.3);
    border-radius: 10px;
}

.own-listing-notice i {
    font-size: 2rem;
    color: #7896b4;
    display: block;
    margin-bottom: 0.75rem;
}

.own-listing-notice p {
    margin: 0 0 1rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.btn-cancel-listing {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(220, 53, 69, 0.2);
    border: 2px solid #dc3545;
    border-radius: 8px;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-cancel-listing:hover {
    background: rgba(220, 53, 69, 0.3);
    transform: translateY(-2px);
    color: #ff6b6b;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: rgba(10, 15, 25, 0.98);
    border: 2px solid rgba(120, 150, 180, 0.5);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    padding: 2rem;
    border-bottom: 2px solid rgba(120, 150, 180, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: #FFD700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
}

.modal-close:hover {
    color: #FFD700;
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 2px solid rgba(120, 150, 180, 0.3);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.purchase-summary {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(120, 150, 180, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.purchase-summary h4 {
    font-family: 'Cinzel', serif;
    color: #FFD700;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(120, 150, 180, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

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

.summary-item.total {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFD700;
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 2px solid rgba(120, 150, 180, 0.3);
}

.warning-box-small {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1.5rem;
}

.warning-box-small i {
    color: #ffc107;
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.warning-box-small p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 2px solid #28a745;
    color: #5cb85c;
}

.alert-success i {
    color: #28a745;
    font-size: 1.2rem;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
}

.pagination-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #7896b4, #5a7a94);
    border: 2px solid rgba(120, 150, 180, 0.5);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #8ba6c4, #6a8aa4);
    border-color: #7896b4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(120, 150, 180, 0.4);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(120, 150, 180, 0.3);
}

.pagination-info {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.pagination-info span {
    color: #FFD700;
}

@media (max-width: 1024px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .purchase-box {
        position: relative;
        top: 0;
    }

    .back-link {
        position: relative;
        margin-bottom: 1rem;
    }

    .details-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }

    .character-card {
        flex-direction: column;
        text-align: center;
    }

    .character-stats {
        justify-content: center;
    }

    .modal-content {
        width: 95%;
    }
    
    .pagination-controls {
        flex-direction: column;
        gap: 10px;
    }
}

/* Character Selection Styles for Sell Page */
.character-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.character-option {
    position: relative;
}

.character-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.character-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(10, 15, 25, 0.8);
    border: 2px solid rgba(120, 150, 180, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.character-card:hover {
    background: rgba(20, 25, 35, 0.9);
    border-color: rgba(120, 150, 180, 0.6);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(120, 150, 180, 0.4);
}

.character-radio:checked + .character-card {
    background: rgba(40, 167, 69, 0.2);
    border-color: #28a745;
    box-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
}

.character-outfit {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(120, 150, 180, 0.3);
}

.character-outfit img {
    max-width: 100%;
    max-height: 100%;
}

.character-info {
    flex-grow: 1;
}

.character-info h4 {
    font-family: 'Cinzel', serif;
    color: #FFD700;
    margin: 0 0 0.5rem 0;
    font-size: 1.3rem;
}

.character-info .character-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.character-info .stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.character-info .stat i {
    color: #7896b4;
    width: 16px;
}

.selected-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    color: #28a745;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.character-radio:checked + .character-card .selected-indicator {
    opacity: 1;
}

.character-preview {
    background: rgba(10, 15, 25, 0.9);
    border: 2px solid rgba(120, 150, 180, 0.5);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.character-preview h3 {
    font-family: 'Cinzel', serif;
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.character-preview p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0.5rem 0;
    font-size: 1rem;
}

.character-preview strong {
    color: #7896b4;
    margin-right: 0.5rem;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border: 2px solid #ffc107;
    color: #ffc107;
}

.alert-warning i {
    color: #ffc107;
    font-size: 1.3rem;
}

.listing-inactive {
    opacity: 0.6;
    filter: grayscale(50%);
}

.listing-status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
}

.status-active {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.status-sold {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.4);
}

.status-cancelled {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
}

.sold-info, .cancelled-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    padding: 0.5rem;
}

.sold-info i {
    color: #28a745;
}

.cancelled-info i {
    color: #dc3545;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.listing-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.listing-actions button,
.listing-actions a {
    flex: 1;
}

.character-details-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-bottom: 2rem;
}

.character-main-info {
    background: rgba(10, 15, 25, 0.8);
    border: 2px solid rgba(120, 150, 180, 0.3);
    border-radius: 12px;
    padding: 2rem;
}

.character-title-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.character-outfit-display {
    width: 160px;
    height: 160px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(120, 150, 180, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.character-outfit-display img {
    width: 180px;
    height: auto;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.character-title-info h1 {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #FFD700;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vocation-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.character-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

.character-quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    width: 100%;
}

.quick-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(120, 150, 180, 0.2);
    border-radius: 8px;
}

.quick-stat i {
    font-size: 1.5rem;
    color: #7896b4;
}

.quick-stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.25rem;
}

.quick-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #FFD700;
}

.character-sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.price-box {
    background: linear-gradient(135deg, rgba(120, 150, 180, 0.2), rgba(80, 110, 140, 0.2));
    border: 2px solid #7896b4;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.price-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFD700;
    margin: 0.5rem 0;
}

.price-value i {
    margin-right: 0.5rem;
}

.price-currency {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.btn-buy-character {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #28a745, #20c997);
    border: 2px solid #28a745;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-buy-character:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.listing-info-box {
    background: rgba(10, 15, 25, 0.8);
    border: 2px solid rgba(120, 150, 180, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
}

.listing-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(120, 150, 180, 0.1);
}

.listing-info-item:last-child {
    border-bottom: none;
}

.listing-info-item i {
    font-size: 1.2rem;
    color: #7896b4;
    width: 20px;
    text-align: center;
}

.info-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.info-value {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.character-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(120, 150, 180, 0.3);
    padding: 0;
    width: 100%;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(120, 150, 180, 0.1);
}

.tab-btn.active {
    color: #FFD700;
    border-bottom-color: #FFD700;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.compact-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.compact-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(120, 150, 180, 0.2);
    border-radius: 8px;
}

.compact-stat i {
    font-size: 1.5rem;
    color: #7896b4;
}

.compact-stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.compact-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: bold;
    color: #FFD700;
}

.compact-skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skill-item-detailed {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(120, 150, 180, 0.2);
    border-radius: 8px;
    padding: 1rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.skill-name {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.skill-level {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FFD700;
}

.skill-progress {
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(120, 150, 180, 0.3);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.25rem;
}

.skill-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    border-radius: 10px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.skill-percent {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    display: block;
}

/* Equipment Slots */
.equipment-slots {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 64px);
    grid-template-rows: repeat(4, 64px);
    gap: 8px;
}

.equipment-slot {
    width: 64px;
    height: 64px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(120, 150, 180, 0.3);
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.equipment-slot:hover {
    border-color: #7896b4;
    background: rgba(120, 150, 180, 0.1);
    transform: scale(1.05);
}

.equipment-slot .slot-bg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.6;
}

.equipment-slot .item-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    z-index: 1;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.slot-empty {
    width: 64px;
    height: 64px;
}

.compact-skill {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(120, 150, 180, 0.2);
    border-radius: 8px;
}

.compact-skill i,
.compact-skill > span:first-child {
    font-size: 1.2rem;
    color: #7896b4;
    width: 25px;
    text-align: center;
}

.compact-skill span {
    flex: 1;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.compact-skill strong {
    font-size: 1.1rem;
    color: #FFD700;
}

@media (max-width: 1024px) {
    .character-details-layout {
        grid-template-columns: 1fr;
    }
    
    .compact-stats-grid,
    .compact-skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex !important;
}

.modal-content {
    background: linear-gradient(135deg, rgba(10, 15, 25, 0.98), rgba(20, 30, 45, 0.98));
    border: 2px solid rgba(120, 150, 180, 0.5);
    border-radius: 16px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: rgba(120, 150, 180, 0.1);
    border-bottom: 2px solid rgba(120, 150, 180, 0.3);
}

.modal-header h2 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #FFD700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-close {
    font-size: 2rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: #ff4444;
    background: rgba(255, 68, 68, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

.modal-body > p {
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.purchase-summary {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(120, 150, 180, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(120, 150, 180, 0.1);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

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

.summary-item strong {
    color: rgba(255, 255, 255, 0.6);
    margin-right: 0.5rem;
}

.price-highlight {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.1rem;
}

.purchase-notice {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
}

.purchase-notice i {
    font-size: 1.5rem;
    color: #ffc107;
    flex-shrink: 0;
}

.purchase-notice p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.modal-footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(120, 150, 180, 0.2);
}

.modal-footer button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: rgba(108, 117, 125, 0.2);
    border-color: #6c757d;
    color: rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
    background: rgba(108, 117, 125, 0.4);
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    border-color: #28a745;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.toast-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    padding: 18px 30px;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    animation: slideInUp 0.5s ease, fadeOut 0.5s ease 4.5s forwards;
    backdrop-filter: blur(10px);
}

.toast-success {
    background: linear-gradient(135deg, #28a745, #20893a);
    border: 2px solid rgba(40, 167, 69, 0.6);
}

.toast-error {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: 2px solid rgba(220, 53, 69, 0.6);
}

.toast-info {
    background: linear-gradient(135deg, #17a2b8, #138496);
    border: 2px solid rgba(23, 162, 184, 0.6);
}

.toast-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border: 2px solid rgba(255, 193, 7, 0.6);
}

.toast-notification i {
    font-size: 1.4rem;
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* ===========================
   MY LISTINGS PAGE STYLES
   =========================== */

.my-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 20px;
    margin-top: 30px;
    background: rgba(10, 15, 25, 0.6);
    border: 2px solid rgba(120, 150, 180, 0.3);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.my-listing-card {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.95), rgba(15, 20, 30, 0.98));
    border: 1px solid rgba(120, 150, 180, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.my-listing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(120, 150, 180, 0.6);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.my-listing-card.status-sold {
    border-color: rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, rgba(20, 35, 25, 0.95), rgba(15, 25, 20, 0.98));
}

.my-listing-card.status-cancelled {
    border-color: rgba(255, 87, 34, 0.3);
    background: linear-gradient(135deg, rgba(35, 20, 20, 0.95), rgba(25, 15, 15, 0.98));
    opacity: 0.85;
}

.my-listing-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: rgba(15, 20, 30, 0.6);
    border-bottom: 1px solid rgba(120, 150, 180, 0.2);
}

.my-listing-outfit {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(120, 150, 180, 0.15), transparent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(120, 150, 180, 0.2);
}

.my-listing-outfit img {
    width: 64px;
    height: 64px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.my-listing-title {
    flex: 1;
    min-width: 0;
}

.my-listing-title h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #FFD700;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.status-active {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.5);
}

.status-badge.status-sold {
    background: rgba(33, 150, 243, 0.2);
    color: #2196F3;
    border: 1px solid rgba(33, 150, 243, 0.5);
}

.status-badge.status-cancelled {
    background: rgba(255, 87, 34, 0.2);
    color: #FF5722;
    border: 1px solid rgba(255, 87, 34, 0.5);
}

.vocation-level {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.vocation-icon-small {
    width: 20px;
    height: 20px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.my-listing-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.listing-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(120, 150, 180, 0.1);
}

.listing-detail-row:last-child {
    border-bottom: none;
}

.listing-detail-row .label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.listing-detail-row .label i {
    color: #7896b4;
    width: 16px;
    text-align: center;
}

.listing-detail-row .value {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
}

.gold-text {
    color: #FFD700 !important;
}

.success-text {
    color: #4CAF50 !important;
}

.my-listing-actions {
    padding: 20px;
    background: rgba(15, 20, 30, 0.4);
    border-top: 1px solid rgba(120, 150, 180, 0.2);
    display: flex;
    gap: 12px;
}

.btn-view,
.btn-cancel {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-view {
    background: linear-gradient(135deg, #7896b4, #5a7a94);
    color: #ffffff;
    border: 1px solid rgba(120, 150, 180, 0.5);
}

.btn-view:hover {
    background: linear-gradient(135deg, #8ba6c4, #6a8aa4);
    box-shadow: 0 4px 12px rgba(120, 150, 180, 0.4);
    transform: translateY(-2px);
}

.btn-cancel {
    background: rgba(255, 87, 34, 0.15);
    color: #FF5722;
    border: 1px solid rgba(255, 87, 34, 0.4);
}

.btn-cancel:hover {
    background: rgba(255, 87, 34, 0.25);
    border-color: rgba(255, 87, 34, 0.6);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.3);
}

.cancelled-message {
    width: 100%;
    text-align: center;
    padding: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cancelled-message i {
    color: #FF5722;
}

.sold-message {
    width: 100%;
    text-align: center;
    padding: 12px;
    color: rgba(46, 204, 113, 0.9);
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 8px;
}

.sold-message i {
    color: #2ecc71;
    font-size: 1.1em;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .my-listings-grid {
        grid-template-columns: 1fr;
    }
    
    .my-listing-header {
        flex-direction: column;
        text-align: center;
    }
    
    .my-listing-title h3 {
        justify-content: center;
    }
    
    .my-listing-actions {
        flex-direction: column;
    }
}

/* ===========================
   ITEM TOOLTIP STYLES
   =========================== */

.item-tooltip {
    position: fixed;
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.98), rgba(15, 20, 30, 0.98));
    border: 2px solid #7896b4;
    border-radius: 8px;
    padding: 12px 16px;
    min-width: 200px;
    max-width: 300px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), 
                0 0 20px rgba(120, 150, 180, 0.4);
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(10px);
}

.item-tooltip.show {
    opacity: 1;
}

.tooltip-name {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    border-bottom: 1px solid rgba(120, 150, 180, 0.3);
    padding-bottom: 6px;
}

.tooltip-attributes {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 8px;
}

.tooltip-attr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    padding: 2px 0;
}

.tooltip-attr-label {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.tooltip-attr-value {
    color: #7896b4;
    font-weight: 700;
}

.tooltip-attr-value.attack {
    color: #FF6B6B;
}

.tooltip-attr-value.defense {
    color: #4ECDC4;
}

.tooltip-attr-value.armor {
    color: #95E1D3;
}

.tooltip-description {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(120, 150, 180, 0.2);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    line-height: 1.4;
}

.tooltip-weight {
    margin-top: 6px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
}

/* Cancel Modal */
.cancel-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cancel-modal-content {
    background: linear-gradient(135deg, rgba(26, 35, 50, 0.98), rgba(15, 20, 30, 1));
    border: 2px solid rgba(255, 87, 34, 0.5);
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: slideDown 0.3s ease;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cancel-modal-header {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.2), rgba(244, 67, 54, 0.1));
    border-bottom: 2px solid rgba(255, 87, 34, 0.4);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.cancel-modal-header i {
    font-size: 2rem;
    color: #FF5722;
    animation: pulse 2s infinite;
}

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

.cancel-modal-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #FFD700;
    margin: 0;
}

.cancel-modal-body {
    padding: 30px;
}

.cancel-modal-body p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.cancel-modal-body p strong {
    color: #FFD700;
    font-weight: 600;
}

.cancel-modal-warning {
    background: rgba(255, 87, 34, 0.1);
    border-left: 3px solid #FF5722;
    padding: 15px;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 0 !important;
}

.cancel-modal-warning i {
    color: #FF5722;
    margin-top: 2px;
    font-size: 1.1rem;
}

.cancel-modal-actions {
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(120, 150, 180, 0.2);
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-modal-cancel,
.btn-modal-confirm {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-modal-cancel {
    background: rgba(120, 150, 180, 0.2);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(120, 150, 180, 0.4);
}

.btn-modal-cancel:hover {
    background: rgba(120, 150, 180, 0.3);
    border-color: rgba(120, 150, 180, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(120, 150, 180, 0.3);
}

.btn-modal-confirm {
    background: linear-gradient(135deg, #FF5722, #E64A19);
    color: white;
    border: 1px solid rgba(255, 87, 34, 0.5);
}

.btn-modal-confirm:hover {
    background: linear-gradient(135deg, #F4511E, #D84315);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 87, 34, 0.5);
}

.btn-modal-cancel:active,
.btn-modal-confirm:active {
    transform: translateY(0);
}

.character-main-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 15px;
}

.character-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
    margin-right: 20px;
}

.character-equipment {
    flex-shrink: 0;
    margin-left: auto;
    position: relative;
    left: 10px;
}

.equipment-grid-mini {
    display: grid;
    grid-template-columns: repeat(3, 36px);
    grid-template-rows: repeat(4, 36px);
    gap: 3px;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid rgba(120, 150, 180, 0.2);
    margin-left: 10px;
}

.slot-empty-mini {
    width: 36px;
    height: 36px;
}

.equipment-slot-mini {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(120, 150, 180, 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.2s ease;
}

.equipment-slot-mini:hover {
    transform: scale(1.1);
    z-index: 100;
    border-color: #7896b4;
    background: rgba(120, 150, 180, 0.1);
}

.slot-bg-mini {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.6;
    pointer-events: none;
}

.item-image-mini {
    width: 30px;
    height: 30px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
    position: relative;
    z-index: 2;
}

.character-quick-stats-mini {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border: 1px solid rgba(120, 150, 180, 0.2);
    margin-top: 12px;
}

.stat-divider {
    color: rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    font-weight: 300;
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.stat-mini i {
    font-size: 1rem;
}

.stat-mini i.fa-heart {
    color: #ff6b6b;
}

.stat-mini i.fa-tint {
    color: #4dabf7;
}

.stat-mini i.fa-weight-hanging {
    color: #ffd43b;
}

.stat-mini span {
    font-weight: 600;
}

.bazaar-items-preview {
    margin: 15px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(120, 150, 180, 0.2);
}

.items-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 8px;
}

.items-row:last-child {
    margin-bottom: 0;
}

.item-slot-mini {
    width: 40px;
    height: 40px;
    background: url('/items/slots/slot.png') center/contain no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.item-slot-mini:hover {
    transform: scale(1.1);
    z-index: 10;
}
