/* Account Villa Channel Manager Style */
.av-marketplace-wrapper {
    margin: 30px 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* FILTER BAR */
.av-filter-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.av-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.av-tab-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.av-tab-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.av-tab-btn.active {
    background: #15803d;
    color: #ffffff;
    border-color: #15803d;
}

.av-filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
}

.av-search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.av-search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.av-search-box input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.av-search-box input:focus {
    border-color: #15803d;
}

.av-select-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.av-select-group select {
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    background: #fff;
    cursor: pointer;
    outline: none;
}

/* CHANNELS GRID */
.av-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

/* CHANNEL CARD */
.av-channel-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.av-channel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.08);
}

.av-card-thumb-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #0f172a;
    overflow: hidden;
}

.av-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.av-channel-card:hover .av-card-img {
    transform: scale(1.03);
}

.av-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    z-index: 2;
}

.av-badge-mono {
    background: #15803d;
    color: #ffffff;
}

.av-badge-non {
    background: #0f172a;
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.2);
}

.av-code-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    z-index: 2;
}

/* CARD BODY */
.av-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.av-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    margin: 0 0 14px 0;
    min-height: 42px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.av-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.av-card-title a:hover {
    color: #15803d;
}

/* METRICS GRID */
.av-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 16px;
}

.av-metric-item {
    display: flex;
    flex-direction: column;
}

.av-metric-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.3px;
}

.av-metric-val {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-green {
    color: #15803d !important;
}

/* CARD FOOTER */
.av-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}

.av-price-box {
    display: flex;
    flex-direction: column;
}

.av-price-lbl {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}

.av-price-amount {
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.av-card-btns {
    display: flex;
    gap: 8px;
}

.av-btn-wa {
    background: #22c55e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}

.av-btn-wa:hover {
    background: #16a34a;
    color: #ffffff;
}

.av-btn-details {
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.av-btn-details:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.av-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}
