* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0d0d0d;
    color: #f0f0f0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.header-left .title {
    font-size: 24px;
    font-weight: 600;
    color: #f0f0f0;
    margin: 0;
}

.header-left .subtitle {
    font-size: 13px;
    color: #555;
    margin: 3px 0 0 0;
}

.header-right {
    display: flex;
    gap: 12px;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #111;
    border: 0.5px solid #1e1e1e;
    border-radius: 6px;
    font-size: 13px;
    color: #4ade80;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.card {
    background: #111;
    border: 0.5px solid #1e1e1e;
    border-radius: 8px;
    padding: 20px;
}

.card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 12px;
}

.card-value {
    font-size: 32px;
    font-weight: 700;
    color: #f0f0f0;
    line-height: 1;
    margin-bottom: 6px;
}

.card-subtext {
    font-size: 12px;
    color: #555;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    border-bottom: 0.5px solid #1e1e1e;
    margin-bottom: 24px;
}

.tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #555;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.tab:hover {
    color: #f0f0f0;
}

.tab.active {
    color: #f0f0f0;
    border-bottom-color: #4ade80;
}

/* Section */
.section {
    background: #111;
    border: 0.5px solid #1e1e1e;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 20px;
}

/* Market List */
.market-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.market-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #0d0d0d;
    border: 0.5px solid #1e1e1e;
    border-radius: 6px;
}

.market-flag {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    border: 0.5px solid #1e1e1e;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #f0f0f0;
}

.market-info {
    flex: 1;
}

.market-name {
    font-size: 14px;
    font-weight: 600;
    color: #f0f0f0;
}

.market-lang {
    font-size: 12px;
    color: #555;
}

.market-count {
    font-size: 18px;
    font-weight: 700;
    color: #f0f0f0;
}

/* Timeline */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 0.5px solid #1e1e1e;
}

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

.timeline-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0.5px solid #1e1e1e;
    border-radius: 50%;
    font-size: 12px;
    color: #555;
    flex-shrink: 0;
}

.timeline-icon.success {
    border-color: #4ade80;
    color: #4ade80;
}

.timeline-icon.error {
    border-color: #f87171;
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.timeline-icon.pending {
    border-color: #555;
    color: #555;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    font-size: 14px;
    font-weight: 500;
    color: #f0f0f0;
    margin-bottom: 2px;
}

.timeline-desc {
    font-size: 12px;
    color: #555;
}

.timeline-time {
    font-size: 12px;
    color: #555;
    flex-shrink: 0;
}

/* XML List */
.xml-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.xml-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #0d0d0d;
    border: 0.5px solid #1e1e1e;
    border-radius: 6px;
}

.xml-flag {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
    border: 0.5px solid #1e1e1e;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #f0f0f0;
    text-transform: uppercase;
}

.xml-info {
    flex: 1;
}

.xml-name {
    font-size: 14px;
    font-weight: 600;
    color: #f0f0f0;
    margin-bottom: 4px;
}

.xml-url {
    font-family: 'Courier New', monospace;
    font-size: 11px;
    color: #555;
}

.xml-count {
    font-size: 13px;
    color: #f0f0f0;
    margin-right: 12px;
}

.btn-copy {
    padding: 6px 14px;
    background: #111;
    border: 0.5px solid #1e1e1e;
    border-radius: 4px;
    color: #f0f0f0;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-copy:hover {
    background: #1a1a1a;
    border-color: #4ade80;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #555;
    font-size: 14px;
}

/* Quality Tab */
.quality-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.quality-card {
    background: #111;
    border: 0.5px solid #1e1e1e;
    border-radius: 8px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.15s;
}

.quality-card:hover {
    border-color: #333;
}

.quality-card.active {
    border-color: #4ade80;
}

.quality-card-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 12px;
}

.quality-card-value {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 6px;
}

.quality-card-value.green { color: #4ade80; }
.quality-card-value.yellow { color: #fbbf24; }
.quality-card-value.red { color: #f87171; }

.quality-card-subtext {
    font-size: 12px;
    color: #555;
}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.chip {
    padding: 6px 14px;
    background: #111;
    border: 0.5px solid #1e1e1e;
    border-radius: 16px;
    font-size: 12px;
    color: #555;
    cursor: pointer;
    transition: all 0.15s;
}

.chip:hover {
    border-color: #333;
    color: #f0f0f0;
}

.chip.active {
    background: #1f1200;
    color: #fbbf24;
    border-color: #3a2200;
}

.chip.ok {
    background: #0a1f0f;
    color: #4ade80;
    border-color: #1a4a28;
}

/* Search Input */
.search-input {
    width: 100%;
    max-width: 400px;
    padding: 10px 16px;
    background: #111;
    border: 0.5px solid #1e1e1e;
    border-radius: 6px;
    color: #f0f0f0;
    font-size: 14px;
    margin-bottom: 20px;
}

.search-input:focus {
    outline: none;
    border-color: #4ade80;
}

.search-input::placeholder {
    color: #555;
}

/* Table */
.quality-table {
    width: 100%;
    border-collapse: collapse;
}

.quality-table th {
    background: #111;
    padding: 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #555;
    border-bottom: 0.5px solid #1e1e1e;
}

.quality-table td {
    padding: 16px 12px;
    border-bottom: 0.5px solid #1e1e1e;
    font-size: 14px;
}

.quality-table tr:hover {
    background: rgba(255,255,255,0.02);
}

.product-title {
    font-weight: 500;
    color: #e0e0e0;
}

.product-title.ok {
    color: #555;
}

/* Market Flags */
.market-flags {
    display: flex;
    gap: 12px;
}

.flag {
    font-size: 20px;
    opacity: 1;
    position: relative;
}

.flag.missing {
    opacity: 0.15;
}

.flag.missing::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -2px;
    right: -2px;
    height: 2px;
    background: #f87171;
    transform: rotate(-45deg);
}

/* Issue Pills */
.issue-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pill {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 0.5px solid;
}

.pill.no-price {
    background: #1f1200;
    color: #fbbf24;
    border-color: #3a2200;
}

.pill.no-trans {
    background: #1a1020;
    color: #a78bfa;
    border-color: #2a1a40;
}

.pill.no-stock {
    background: #1f0a0a;
    color: #f87171;
    border-color: #3a1a1a;
}

.pill.ok {
    background: #0a1f0f;
    color: #4ade80;
    border-color: #1a4a28;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.page-btn {
    padding: 8px 14px;
    background: #111;
    border: 0.5px solid #1e1e1e;
    border-radius: 4px;
    color: #f0f0f0;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}

.page-btn:hover {
    border-color: #4ade80;
}

.page-btn.active {
    background: #4ade80;
    border-color: #4ade80;
    color: #0d0d0d;
}

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

