.brand-block {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-icon {
    width: 28px;
    height: 28px;
    color: #6366f1;
    fill: #6366f1;
    fill-opacity: 0.1;
}

.brand-title {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: #223150;
    margin: 0;
}

.brand-subtitle {
    font-size: 12px;
    color: rgba(34, 49, 80, 0.58);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
    padding-left: 12px;
}

.header-search-field {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1;
    max-width: 248px;
    padding: 8px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(248,252,253,0.98) 100%);
    border-radius: 18px;
    border: 1px solid rgba(195, 213, 230, 0.7);
    box-shadow: 0 10px 24px rgba(110, 135, 170, 0.08);
    transition: all 0.25s ease;
}

.header-search-field:focus-within {
    border-color: rgba(124, 181, 214, 0.85);
    box-shadow: 0 12px 28px rgba(118, 157, 204, 0.12);
}

.search-icon-sm {
    width: 16px;
    height: 16px;
    color: rgba(95, 122, 154, 0.62);
    flex-shrink: 0;
}

.header-search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    color: #344562;
    min-width: 0;
}

.header-search-input::placeholder {
    color: rgba(95, 122, 154, 0.44);
}

.hero-bar {
    padding: 20px 18px 6px;
    background: linear-gradient(180deg, rgba(236, 242, 255, 0.72) 0%, rgba(255,255,255,0.98) 70%);
}

.hero-slogan {
    background: linear-gradient(135deg, rgba(117, 132, 255, 0.12) 0%, rgba(226, 241, 255, 0.65) 100%);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    border: 1px solid rgba(166, 176, 231, 0.35);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hero-slogan h2 {
    font-size: 18px;
    font-weight: 700;
    color: #243459;
    letter-spacing: 0.01em;
}

.hero-slogan p {
    font-size: 13px;
    color: rgba(36, 52, 89, 0.64);
}

.tabs-wrapper {
    padding: 8px 16px 14px;
}

.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(203, 213, 225, 0.6);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(93, 99, 155, 0.12);
    overflow: hidden;
}

.tab-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    background: transparent;
    border: none;
    color: rgba(47, 58, 88, 0.55);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 16px;
}

.tab-item.active {
    color: #2f3a58;
    background: linear-gradient(90deg, rgba(106, 126, 242, 0.08) 0%, rgba(146, 170, 255, 0.05) 100%);
}

.tab-item:hover:not(.active) {
    color: rgba(47, 58, 88, 0.8);
}

.tab-icon {
    font-size: 18px;
}

.tab-content {
    display: none;
}

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

.filter-bar {
    display: none;
}

.filter-select {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid rgba(208, 220, 232, 0.82);
    border-radius: 12px;
    font-size: 13px;
    background: rgba(255,255,255,0.94);
    outline: none;
    color: #51627f;
    transition: all 0.3s ease;
    box-shadow: 0 8px 18px rgba(116, 145, 179, 0.08);
}

.filter-select:focus {
    border-color: #81c6ce;
    box-shadow: 0 10px 24px rgba(116, 172, 183, 0.12);
}

.card-list {
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(248,251,253,0.96) 100%);
    padding: 20px 16px 84px;
}

.card-item {
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(249,251,255,0.98) 100%);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 8px 20px -20px rgba(71, 96, 135, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(213, 223, 236, 0.78);
    position: relative;
    overflow: hidden;
}

.card-sheen {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 0%, rgba(121, 207, 211, 0.16) 0%, rgba(255,255,255,0) 54%),
                radial-gradient(circle at 82% 0%, rgba(164, 183, 255, 0.14) 0%, rgba(255,255,255,0) 54%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 48px -28px rgba(79, 107, 149, 0.45);
    border-color: rgba(145, 190, 205, 0.9);
}

.card-item:active {
    transform: translateY(-3px);
}

.card-item:hover .card-sheen {
    opacity: 1;
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title-section {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-icon {
    font-size: 24px;
}

.card-icon-svg-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.card-icon-svg {
    width: 18px;
    height: 18px;
    stroke: #6c97ce;
}

/* Tabs spacing fine-tune on home */
.publish-type-tabs.home-tabs {
    top: 56px;
    position: sticky;
    z-index: 99;
    padding: 0 16px;
    margin-bottom: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.home-tabs .type-tab {
    padding: 14px 0 12px;
    border-radius: 0;
}

.home-tabs .type-tab.active {
    background: transparent;
    color: var(--primary-color);
}

.home-tabs .type-tab .tab-icon {
    width: 20px;
    height: 20px;
    stroke: #9ca3af;
    stroke-width: 1.5;
    opacity: 0.8;
}

.home-tabs .type-tab.active .tab-icon {
    stroke: var(--primary-color);
    opacity: 1;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #243555;
}

.card-title-stack {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.card-subtitle {
    font-size: 12px;
    color: rgba(83, 102, 129, 0.6);
    display: block;
}

.card-header-side .seller-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(247, 250, 252, 0.95) 0%, rgba(242, 246, 250, 0.98) 100%);
    border: 1px solid rgba(222, 231, 239, 0.9);
    border-radius: 999px;
}

.card-header-side .seller-name {
    font-size: 12px;
}

.card-tone-badge {
    display: none;
}

.card-tone-badge.buy {
    color: #2463d6;
    background: linear-gradient(135deg, rgba(232, 241, 255, 0.96) 0%, rgba(244, 248, 255, 0.98) 100%);
    border-color: rgba(192, 214, 246, 0.92);
}

.card-tone-badge.sell {
    color: #0f8e73;
    background: linear-gradient(135deg, rgba(232, 251, 245, 0.96) 0%, rgba(244, 255, 251, 0.98) 100%);
    border-color: rgba(184, 233, 216, 0.92);
}

.discount-badge {
    display: none;
}

.seller-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 6px 12px 6px 8px;
    background: linear-gradient(135deg, rgba(247, 250, 252, 0.95) 0%, rgba(242, 246, 250, 0.98) 100%);
    border: 1px solid rgba(222, 231, 239, 0.9);
    border-radius: 999px;
}

.seller-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(112, 136, 174, 0.16);
}

.seller-name {
    font-size: 12px;
    font-weight: 600;
    color: #53637d;
}

.verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    color: #2175c9;
    background: rgba(231, 242, 255, 0.92);
    font-size: 11px;
    font-weight: 700;
}

.seller-level {
    display: none;
}

.card-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 50px;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid rgba(221, 231, 239, 0.95);
    border-radius: 12px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.card-details .detail-item:first-child {
    background: transparent;
    border-color: rgba(221, 231, 239, 0.95);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.card-details .detail-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.detail-label {
    font-size: 11px;
    color: rgba(84, 104, 133, 0.5);
}

.detail-value {
    font-size: 13px;
    font-weight: 600;
    color: #2e4162;
}

.card-details .detail-item:first-child .detail-value {
    font-size: 18px;
    line-height: 1.1;
    color: #3457d9;
}

.price-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(214, 224, 235, 0.8);
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.price-label {
    font-size: 11px;
    color: rgba(84, 104, 133, 0.52);
}

.price-value {
    font-size: 22px;
    font-weight: 700;
    color: #315fe6;
    line-height: 1;
}

.price-unit {
    font-size: 13px;
    margin-left: 2px;
}

.price-note {
    font-size: 11px;
    color: rgba(86, 104, 130, 0.72);
    display: none;
}

.btn-trade {
    min-width: 80px;
    height: 36px;
    padding: 0 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 16px rgba(121, 153, 226, 0.2);
}

.btn-trade:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 22px rgba(121, 153, 226, 0.26);
}

.btn-trade:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

.stats-row {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-icon {
    font-size: 14px;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 0;
    margin-bottom: 8px;
}

.payment-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: linear-gradient(135deg, #f7fafc 0%, #f2f6fa 100%);
    border-radius: 999px;
    font-size: 11px;
    color: #667791;
    font-weight: 600;
    border: 1px solid rgba(222, 231, 239, 0.92);
}

.payment-tag::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #79cfd3 0%, #8aa4ff 100%);
}

.payment-tag.is-empty {
    color: #8692a5;
    background: rgba(244, 247, 251, 0.96);
}

.payment-tag.is-empty::before {
    background: #b9c3d3;
}
