/* Currency Marketplace Styles - Service Type 7 */

/* Marketplace Wider Layout */
.main-wrapper-marketplace {
    padding: 0 3rem !important;
}

@media (min-width: 1400px) {
    .main-wrapper-marketplace {
        padding: 0 4rem !important;
    }
}

@media (min-width: 1600px) {
    .main-wrapper-marketplace {
        padding: 0 5rem !important;
    }
}

/* Currency Marketplace Styles */
.currency-marketplace {
    color: var(--color-text-1);
    max-width: 100%;
    overflow-x: hidden;
    width: 100%;
}

.currency-marketplace *,
.currency-marketplace *::before,
.currency-marketplace *::after {
    box-sizing: border-box;
    max-width: 100%;
}

/* Prevent all children from causing overflow */
.currency-marketplace > * {
    max-width: 100%;
    overflow-x: hidden;
}

.currency-header {
    background: linear-gradient(135deg, rgba(34, 41, 52, 0.95) 0%, rgba(24, 29, 37, 0.98) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.currency-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563a8 0%, #3b82f6 50%, #2563a8 100%);
    opacity: 0.8;
}

.main-wrapper-marketplace .currency-header {
    padding: 2rem 2.5rem;
    margin-top: 5rem;
}

/* Currency Header Content - Horizontal Layout */
.currency-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.currency-title-section {
    flex: 1;
}

.currency-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: var(--color-text-1);
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-wrapper-marketplace .currency-header h1 {
    font-size: 2.25rem;
}

/* Currency Rating Section - Blue Theme */
.currency-rating-section {
    flex-shrink: 0;
}

.rating-badge-large {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(37, 99, 168, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.25);
    min-width: 280px;
    max-width: 100%;
    transition: all 0.3s ease;
}

.rating-badge-large:hover {
    border-color: rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, rgba(37, 99, 168, 0.2) 0%, rgba(59, 130, 246, 0.12) 100%);
    box-shadow: 0 8px 24px rgba(37, 99, 168, 0.2);
    transform: translateY(-2px);
}

.rating-top-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.rating-stars-display {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.rating-stars-display i {
    font-size: 1rem;
    color: #fbbf24 !important;
    vertical-align: middle;
    display: inline-block !important;
}

.rating-stars-display i.fas.fa-star {
    color: #fbbf24 !important;
}

.rating-stars-display i.fa-star-half-alt,
.rating-stars-display i.fas.fa-star-half-alt {
    color: #fbbf24 !important;
}

.rating-stars-display i.far.fa-star {
    color: rgba(251, 191, 36, 0.3) !important;
}

.rating-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-1);
    line-height: 1;
}

.rating-quality-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: #22c55e;
    letter-spacing: 0.3px;
}

.rating-count-text {
    font-size: 0.75rem;
    color: var(--color-text-2);
    line-height: 1.3;
    font-weight: 500;
}

/* Trust Badges */
.currency-trust-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 168, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(59, 130, 246, 0.15);
    transition: all 0.3s;
}

.trust-badge:hover {
    background: rgba(37, 99, 168, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

.trust-badge i {
    font-size: 0.9rem;
    color: #3b82f6;
}

.trust-badge span {
    font-size: 0.8rem;
    color: var(--color-text-1);
    font-weight: 500;
}

.currency-filters {
    background: linear-gradient(135deg, rgba(34, 41, 52, 0.8) 0%, rgba(24, 29, 37, 0.95) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: visible;
    max-width: 100%;
}

.main-wrapper-marketplace .currency-filters {
    padding: 1.75rem 2rem;
    gap: 1.5rem;
}

.currency-filter-group {
    flex: 1;
    min-width: 180px;
    max-width: 100%;
    position: relative;
}

.currency-filter-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}

.currency-filter-select {
    width: 100%;
    background: linear-gradient(135deg, rgba(24, 29, 37, 0.9) 0%, rgba(34, 41, 52, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    color: var(--color-text-1);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%233b82f6' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.currency-filter-select:hover {
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.currency-filter-select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Dropdown options styling */
.currency-filter-select option {
    background: #1a1f27;
    color: var(--color-text-1);
    padding: 0.75rem 1rem;
    border: none;
}

.currency-filter-select option:hover,
.currency-filter-select option:focus,
.currency-filter-select option:checked {
    background: #2563a8;
    color: white;
}

/* Light theme */
html[data-theme="light"] .currency-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .currency-header h1 {
    background: linear-gradient(135deg, #1a1f27 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html[data-theme="light"] .currency-filters {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .currency-filter-select {
    background: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%232563a8' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1f27;
}

html[data-theme="light"] .currency-filter-select:hover {
    border-color: rgba(37, 99, 168, 0.4);
}

html[data-theme="light"] .currency-filter-select:focus {
    border-color: rgba(37, 99, 168, 0.6);
    box-shadow: 0 0 0 3px rgba(37, 99, 168, 0.1);
}

html[data-theme="light"] .currency-filter-select option {
    background: #ffffff;
    color: #1a1f27;
}

html[data-theme="light"] .currency-filter-label {
    color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .trust-badge {
    background: rgba(37, 99, 168, 0.08);
    border-color: rgba(37, 99, 168, 0.12);
}

html[data-theme="light"] .trust-badge span {
    color: #374151;
}

html[data-theme="light"] .rating-badge-large {
    background: linear-gradient(135deg, rgba(37, 99, 168, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-color: rgba(37, 99, 168, 0.2);
}

html[data-theme="light"] .rating-badge-large:hover {
    background: linear-gradient(135deg, rgba(37, 99, 168, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%);
    border-color: rgba(37, 99, 168, 0.35);
}

html[data-theme="light"] .rating-score {
    color: #1a1f27;
}

html[data-theme="light"] .rating-count-text {
    color: #6b7280;
}


.offers-count {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text-1);
}

.offers-count span {
    color: #3b82f6;
    font-size: 1.5rem;
}

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offer-card {
    background: linear-gradient(135deg, rgba(34, 41, 52, 0.8) 0%, rgba(24, 29, 37, 0.95) 100%);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr 1fr 1fr auto;
    gap: 1.5rem;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    max-width: 100%;
    position: relative;
}

.offer-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(135deg, transparent 0%, rgba(59, 130, 246, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Hide mobile wrapper divs on desktop */
.offer-mobile-row-2,
.offer-mobile-row-3 {
    display: contents;
}

/* Better spacing for wider marketplace */
.main-wrapper-marketplace .offer-card {
    padding: 1.5rem 2rem;
    gap: 1.75rem;
}

.offer-card:hover {
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

.offer-card:hover::before {
    opacity: 1;
}

html[data-theme="light"] .offer-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .offer-card:hover {
    border-color: rgba(37, 99, 168, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.offer-server {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.offer-server-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-1);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.offer-server .offer-badges {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.offer-badge {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    white-space: nowrap;
    background: rgba(100, 100, 100, 0.15);
    color: var(--color-text-1);
    border: 1px solid rgba(100, 100, 100, 0.2);
}

.offer-badge.region {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.offer-badge.faction {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.25);
}

html[data-theme="light"] .offer-badge {
    background: rgba(100, 100, 100, 0.1);
    color: #374151;
}

html[data-theme="light"] .offer-badge.region {
    background: rgba(37, 99, 168, 0.1);
    color: #2563a8;
    border-color: rgba(37, 99, 168, 0.2);
}

html[data-theme="light"] .offer-badge.faction {
    background: rgba(139, 92, 246, 0.1);
    color: #7c3aed;
    border-color: rgba(139, 92, 246, 0.2);
}

.offer-seller {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.offer-seller-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent-2);
}

/* Larger avatars on big screens */
@media (min-width: 1200px) {
    .offer-seller-avatar {
        width: 42px;
        height: 42px;
    }
}

@media (min-width: 1600px) {
    .offer-seller-avatar {
        width: 46px;
        height: 46px;
    }
}

.offer-seller-info {
    display: flex;
    flex-direction: column;
}

.offer-seller-name {
    font-weight: 600;
    color: var(--color-text-1);
    font-size: 0.85rem;
}

.offer-seller-rating {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: var(--color-text-2);
}

.offer-seller-rating i {
    color: var(--highlight-yellow);
    font-size: 0.7rem;
}

.offer-seller-rating.offer-seller-new {
    color: var(--color-text-3);
    font-style: italic;
}

.offer-seller-rating.offer-seller-new i {
    color: var(--primary);
    font-size: 0.65rem;
}

.offer-stat {
    text-align: center;
}

.offer-stat-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-1);
    display: block;
}

.offer-stat-label {
    font-size: 0.68rem;
    color: var(--color-text-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
}

.offer-price {
    text-align: center;
}

.offer-price-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--highlight-green);
    display: block;
}

.offer-price-label {
    font-size: 0.68rem;
    color: var(--color-text-2);
    margin-top: 0.2rem;
    text-transform: uppercase;
}

.offer-action {
    display: flex;
    align-items: center;
}

.btn-buy-now {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    min-width: 110px;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.25);
}

.btn-buy-now:hover {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.4);
    transform: translateY(-2px);
}

.btn-buy-now:active {
    transform: translateY(0);
}

.empty-state {
    background: linear-gradient(135deg, rgba(34, 41, 52, 0.8) 0%, rgba(24, 29, 37, 0.95) 100%);
    border-radius: 16px;
    padding: 4rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.empty-state i {
    font-size: 4rem;
    color: rgba(59, 130, 246, 0.4);
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--color-text-1);
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.empty-state p {
    color: var(--color-text-2);
    font-size: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

html[data-theme="light"] .empty-state {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .empty-state i {
    color: rgba(37, 99, 168, 0.4);
}

/* Pagination Styles */
.currency-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    background: linear-gradient(135deg, rgba(34, 41, 52, 0.8) 0%, rgba(24, 29, 37, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-1);
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563a8 0%, #3b82f6 100%);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 168, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-page {
    background: linear-gradient(135deg, rgba(34, 41, 52, 0.8) 0%, rgba(24, 29, 37, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-1);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.pagination-page:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.pagination-page.active {
    background: linear-gradient(135deg, #2563a8 0%, #3b82f6 100%);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 4px 16px rgba(37, 99, 168, 0.4);
    color: white;
}

.pagination-ellipsis {
    color: var(--color-text-2);
    padding: 0.75rem 0.5rem;
    font-weight: 600;
}

html[data-theme="light"] .pagination-btn,
html[data-theme="light"] .pagination-page {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .pagination-btn:hover:not(:disabled),
html[data-theme="light"] .pagination-page:hover {
    background: rgba(37, 99, 168, 0.1);
    border-color: rgba(37, 99, 168, 0.2);
}

html[data-theme="light"] .pagination-page.active {
    background: linear-gradient(135deg, #2563a8 0%, #3b82f6 100%);
    color: white;
}

/* How It Works Section */
.how-it-works-section {
    background: linear-gradient(135deg, rgba(34, 41, 52, 0.8) 0%, rgba(24, 29, 37, 0.95) 100%);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.5) 50%, transparent 100%);
}

.how-it-works-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-1);
    text-align: center;
    margin-bottom: 2.5rem;
}

.how-it-works-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-bottom: 0;
}

.work-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 1rem 0.5rem;
    background: transparent;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
}

.work-step:hover {
    transform: translateY(-2px);
}

.work-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 28px;
    right: -0.75rem;
    font-size: 1.25rem;
    color: rgba(59, 130, 246, 0.4);
    font-weight: 300;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2563a8 0%, #3b82f6 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 8px 20px rgba(37, 99, 168, 0.35);
}

.step-content h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-1);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
}

.step-content p {
    font-size: 0.8rem;
    color: var(--color-text-2);
    margin: 0;
    line-height: 1.5;
}

html[data-theme="light"] .how-it-works-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .work-step {
    background: transparent;
}

/* Service Description Section */
.currency-description-section {
    background: linear-gradient(135deg, rgba(34, 41, 52, 0.8) 0%, rgba(24, 29, 37, 0.95) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 2rem 0 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.currency-description-section .section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-1);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.currency-description-section .section-title::before {
    content: '';
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(180deg, #3b82f6 0%, #2563a8 100%);
    border-radius: 2px;
}

/* No title variation */
.currency-description-section.no-title {
    padding-top: 2rem;
}

.description-content {
    color: var(--color-text-2);
    font-size: 0.95rem;
    line-height: 1.8;
}

.description-content h2,
.description-content h3,
.description-content h4 {
    color: var(--color-text-1);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.description-content h2 {
    font-size: 1.35rem;
}

.description-content h3 {
    font-size: 1.15rem;
}

.description-content h4 {
    font-size: 1rem;
}

.description-content p {
    margin-bottom: 1rem;
}

.description-content ul,
.description-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.description-content li {
    margin-bottom: 0.5rem;
}

.description-content strong {
    color: var(--color-text-1);
    font-weight: 600;
}

.description-content a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.description-content a:hover {
    color: #60a5fa;
    text-decoration: underline;
}

html[data-theme="light"] .currency-description-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.98) 100%);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .currency-description-section .section-title {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .description-content a {
    color: #2563a8;
}

html[data-theme="light"] .description-content a:hover {
    color: #1d4ed8;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Extra Small Devices (Portrait Phones, <576px) */
@media (max-width: 575.98px) {
    /* Marketplace Layout - Fix overflow */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .main-wrapper-marketplace {
        padding: 0 0.75rem !important;
        max-width: 100vw;
        width: 100%;
        overflow-x: hidden;
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Header */
    .currency-header {
        padding: 1rem !important;
        margin-top: 4.5rem !important;
        width: 100%;
        max-width: 100%;
    }
    
    .currency-header-content {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .currency-header h1 {
        font-size: 1.35rem !important;
        margin-bottom: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Trust Badges - Stack 2 per row on tiny screens */
    .currency-trust-badges {
        gap: 0.4rem;
        margin-top: 0.75rem;
    }
    
    .trust-badge {
        flex: 1 1 calc(50% - 0.2rem);
        min-width: 0;
        padding: 0.4rem 0.5rem;
        font-size: 0.7rem;
        gap: 0.3rem;
    }
    
    .trust-badge i {
        font-size: 0.75rem;
    }
    
    .trust-badge span {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    /* Rating Badge */
    .rating-badge-large {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding: 0.65rem 0.85rem;
        gap: 0.35rem;
    }
    
    .rating-stars-display i {
        font-size: 0.75rem;
        color: var(--highlight-yellow) !important;
    }
    
    .rating-stars-display i.fas.fa-star {
        color: var(--highlight-yellow) !important;
    }
    
    .rating-stars-display i.fa-star-half-alt,
    .rating-stars-display i.fas.fa-star-half-alt {
        color: var(--highlight-yellow) !important;
    }
    
    .rating-stars-display i.far.fa-star {
        color: rgba(255, 215, 0, 0.3) !important;
    }
    
    .rating-score {
        font-size: 0.9rem;
    }
    
    .rating-quality-text {
        font-size: 0.7rem;
    }
    
    .rating-count-text {
        font-size: 0.6rem;
    }
    
    /* Filters - Full Width Stack */
    .currency-filters {
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.6rem;
        width: 100%;
        max-width: 100%;
    }
    
    .currency-filter-group {
        width: 100%;
        min-width: auto;
    }
    
    .currency-filter-label {
        font-size: 0.7rem;
    }
    
    .currency-filter-select {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
    
    /* Offers Count */
    .offers-count {
        font-size: 1.1rem;
        margin-bottom: 0.85rem;
    }
    
    /* MOBILE OFFER CARDS - COMPACT 2-3 LINE LAYOUT */
    .offers-list {
        gap: 0.7rem;
    }
    
    /* Compact card layout for mobile */
    .offer-card {
        display: flex !important;
        flex-direction: column !important;
        padding: 0.8rem !important;
        background: var(--bg-gradient-2);
        border-radius: 8px;
        gap: 0.55rem;
        line-height: 1.2;
    }
    
    /* Line 1: Server name with inline badges */
    .offer-server {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 0.4rem;
        margin: 0;
        line-height: 1.3;
    }
    
    .offer-server-name {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        color: var(--color-text-1);
        margin: 0;
        line-height: 1.4;
    }
    
    .offer-badges {
        display: inline-flex !important;
        gap: 0.3rem;
        flex-wrap: wrap;
        align-items: center;
    }
    
    .offer-badge {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.55rem !important;
        display: inline-flex !important;
        align-items: center !important;
        border-radius: 4px;
        line-height: 1.1;
        white-space: nowrap;
        gap: 0.2rem;
    }
    
    .offer-badge i {
        font-size: 0.5rem !important;
        line-height: 1;
    }
    
    /* Line 2: Seller info + compact stats row */
    .offer-mobile-row-2 {
        display: flex !important;
        align-items: center !important;
        gap: 0.35rem;
        flex-wrap: nowrap;
        font-size: 0.7rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .offer-mobile-row-2::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .offer-seller {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.35rem;
        margin: 0;
        flex-shrink: 1;
        min-width: 0;
        padding-right: 0.35rem;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .offer-seller-avatar {
        width: 22px !important;
        height: 22px !important;
        flex-shrink: 0;
        border-radius: 50%;
    }
    
    .offer-seller-info {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.3rem;
        line-height: 1.2;
        min-width: 0;
        overflow: hidden;
    }
    
    .offer-seller-name {
        font-size: 0.68rem !important;
        font-weight: 600 !important;
        color: var(--color-text-1);
        white-space: nowrap;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 70px;
    }
    
    .offer-seller-rating {
        font-size: 0.58rem !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.2rem;
        color: var(--color-text-2);
        white-space: nowrap;
        line-height: 1.3;
        flex-shrink: 0;
    }
    
    .offer-seller-rating i {
        font-size: 0.53rem !important;
        margin-top: -1px;
    }
    
    .offer-seller-rating.offer-seller-new {
        color: var(--color-text-3);
        font-style: italic;
    }
    
    .offer-seller-rating.offer-seller-new i {
        color: var(--primary);
    }
    
    /* Compact inline stats with separators */
    .offer-stat {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.22rem;
        margin: 0;
        white-space: nowrap;
        font-size: 0.63rem;
        flex-shrink: 0;
        padding: 0 0.3rem;
        position: relative;
    }
    
    .offer-stat:not(:last-of-type)::after {
        content: '•';
        position: absolute;
        right: -0.2rem;
        color: var(--color-text-3);
        opacity: 0.4;
        font-size: 0.5rem;
    }
    
    .offer-stat-value {
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        color: var(--color-text-1);
        line-height: 1.3;
    }
    
    .offer-stat-label {
        font-size: 0.53rem !important;
        color: var(--color-text-3) !important;
        text-transform: lowercase !important;
        white-space: nowrap;
        line-height: 1.3;
    }
    
    /* Line 3: Price + Button row */
    .offer-mobile-row-3 {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.75rem;
        margin-top: 0.25rem;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .offer-price {
        display: flex !important;
        align-items: baseline !important;
        gap: 0.35rem;
        margin: 0;
        flex-shrink: 0;
    }
    
    .offer-price-value {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        color: var(--highlight-green) !important;
        line-height: 1.2;
    }
    
    .offer-price-label {
        font-size: 0.625rem !important;
        color: var(--color-text-3) !important;
        line-height: 1.3;
        white-space: nowrap;
    }
    
    /* Compact buy button */
    .offer-action {
        display: flex !important;
        margin: 0;
        flex-shrink: 0;
    }
    
    .btn-buy-now {
        padding: 0.55rem 1rem !important;
        font-size: 0.75rem !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 6px;
        gap: 0.3rem;
        white-space: nowrap;
        line-height: 1.2;
        min-width: auto;
    }
    
    .btn-buy-now i {
        font-size: 0.7rem;
        margin-top: -1px;
    }
    
    /* Pagination - Compact */
    .currency-pagination {
        gap: 0.3rem;
        margin: 1.5rem 0;
    }
    
    .pagination-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.75rem;
    }
    
    .pagination-page {
        padding: 0.5rem 0.65rem;
        min-width: 34px;
        font-size: 0.75rem;
    }
    
    /* How It Works */
    .how-it-works-section {
        padding: 1.25rem 0.85rem !important;
        margin: 2rem 0 1rem 0;
    }
    
    .how-it-works-title {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }
    
    .how-it-works-steps {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .work-step:not(:last-child)::after {
        display: none;
    }
    
    .step-number {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .step-content h3 {
        font-size: 0.85rem;
    }
    
    .step-content p {
        font-size: 0.75rem;
    }
    
    /* Description */
    .currency-description-section {
        padding: 1.25rem 0.85rem;
        margin: 2rem 0 1rem 0;
    }
    
    .currency-description-section .section-title {
        font-size: 1.2rem;
    }
    
    .description-content {
        font-size: 0.85rem;
    }
    
    /* Empty State */
    .empty-state {
        padding: 1.5rem 1rem;
    }
    
    .empty-state i {
        font-size: 2.5rem;
    }
    
    .empty-state h3 {
        font-size: 1.1rem;
    }
    
    .empty-state p {
        font-size: 0.85rem;
    }
}

/* Small Devices (Landscape Phones, 576px-767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .main-wrapper-marketplace {
        padding: 0 1.25rem !important;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .currency-header {
        padding: 1.5rem !important;
        margin-top: 4.5rem !important;
    }
    
    .currency-header h1 {
        font-size: 1.5rem;
    }
    
    .currency-header-content {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    /* Trust Badges - 2 per row */
    .currency-trust-badges {
        gap: 0.6rem;
    }
    
    .trust-badge {
        flex: 1 1 calc(50% - 0.3rem);
        padding: 0.5rem 0.75rem;
    }
    
    .trust-badge span {
        font-size: 0.75rem;
    }
    
    /* Rating Badge */
    .rating-badge-large {
        width: 100%;
        min-width: auto;
        padding: 0.7rem 0.9rem;
    }
    
    /* Filters - 2 columns */
    .currency-filters {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .currency-filter-group {
        min-width: 0;
    }
    
    /* Offer Cards - Use mobile compact layout */
    .offer-card {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.6rem;
        padding: 0.85rem !important;
    }
    
    /* Show mobile wrapper divs */
    .offer-mobile-row-2,
    .offer-mobile-row-3 {
        display: flex !important;
    }
    
    /* Adjust sizes for landscape phones */
    .offer-server-name {
        font-size: 0.9rem !important;
    }
    
    .offer-seller-avatar {
        width: 28px !important;
        height: 28px !important;
    }
    
    .btn-buy-now {
        padding: 0.6rem 1rem !important;
        font-size: 0.75rem !important;
    }
    
    /* How It Works - 2 columns */
    .how-it-works-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .work-step:nth-child(2n)::after {
        display: none;
    }
}

/* Medium Devices (Tablets, 768px-991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .main-wrapper-marketplace {
        padding: 0 1.5rem !important;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .currency-header {
        padding: 2.25rem 2.5rem !important;
        margin-top: 4.75rem !important;
    }
    
    .currency-header h1 {
        font-size: 2rem;
    }
    
    .currency-header-content {
        gap: 2rem;
    }
    
    /* Trust Badges - 4 in a row */
    .currency-trust-badges {
        gap: 0.75rem;
    }
    
    .trust-badge {
        padding: 0.5rem 0.95rem;
    }
    
    /* Rating Badge - stays on side but smaller */
    .rating-badge-large {
        padding: 0.75rem 1.1rem;
        min-width: 260px;
    }
    
    /* Filters - 3 columns */
    .currency-filters {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .currency-filter-group {
        min-width: 0;
    }
    
    /* Offer Cards - 2 columns layout */
    .offer-card {
        grid-template-columns: 2fr 1fr 1fr auto;
        gap: 1.25rem;
        padding: 1.75rem 2rem !important;
    }
    
    .offer-server .offer-badges {
        display: none;
    }
    
    .offer-stat {
        text-align: center;
    }
    
    /* How It Works - 3 columns */
    .how-it-works-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .work-step:nth-child(3)::after,
    .work-step:nth-child(5)::after {
        display: none;
    }
}

/* Large Devices (Laptops, 992px-1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .main-wrapper-marketplace {
        padding: 0 2rem !important;
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .currency-header {
        padding: 2.5rem !important;
        margin-top: 5rem !important;
    }
    
    .currency-header h1 {
        font-size: 2.25rem;
    }
    
    /* Filters - 4 columns */
    .currency-filters {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
    
    .currency-filter-group {
        min-width: 0;
    }
    
    /* Offer Cards - Compact full layout */
    .offer-card {
        grid-template-columns: 2fr 1fr 1.2fr 1fr 1fr 1fr auto;
        gap: 1.5rem;
    }
    
    .offer-server .offer-badges {
        display: flex;
    }
    
    /* How It Works - 4 columns (wrap last one) */
    .how-it-works-steps {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .work-step:nth-child(4)::after {
        display: none;
    }
}

/* Extra Large Devices (Desktops, ≥1200px) */
@media (min-width: 1200px) {
    /* Filters - Keep flex layout, let them flow naturally */
    .currency-filters {
        display: flex;
        flex-wrap: wrap;
    }
    
    /* Offer Cards - Full layout */
    .offer-card {
        grid-template-columns: 2fr 1fr 1.2fr 1fr 1fr 1fr auto;
    }
    
    /* How It Works - All 5 in a row */
    .how-it-works-steps {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets */
    .currency-filter-select,
    .pagination-btn,
    .pagination-page,
    .btn-buy-now,
    .trust-badge {
        min-height: 44px;
        cursor: pointer;
    }
    
    /* Remove hover effects on touch */
    .offer-card:hover {
        transform: none;
    }
    
    .trust-badge:hover,
    .pagination-btn:hover:not(:disabled),
    .pagination-page:hover {
        transform: none;
    }
}

