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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 10px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 600px;
    margin: 0 auto;
}

.header {
    text-align: center;
    color: #fff;
    margin-bottom: 24px;
}

.header h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.badge.app {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: #0a7a52;
}

.badge.browser {
    background: rgba(255,255,255,0.95);
    color: #5a67d8;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.card h2 {
    font-size: 16px;
    color: #2d3748;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.info-item {
    background: #f7fafc;
    border-radius: 10px;
    padding: 12px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.label {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-bottom: 4px;
    font-weight: 500;
}

.value {
    display: block;
    font-size: 14px;
    color: #2d3748;
    word-break: break-all;
}

.value.mono {
    font-family: 'SF Mono', Consolas, Monaco, monospace;
    font-size: 12px;
    color: #4a5568;
    background: #edf2f7;
    padding: 6px 8px;
    border-radius: 6px;
    margin-top: 2px;
}

.match-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.match-status.pending {
    background: #fef3c7;
}

.match-status.success {
    background: #d1fae5;
}

.match-status.failed {
    background: #fee2e2;
}

.match-status.info {
    background: #dbeafe;
}

.status-icon {
    font-size: 32px;
}

.status-text {
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
}

.match-details {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.6;
}

.match-details .match-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px dashed #e2e8f0;
}

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

.match-details .match-label {
    color: #718096;
}

.match-details .match-value {
    color: #2d3748;
    font-weight: 500;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 4px 12px rgba(102,126,234,0.4);
}

.btn-secondary {
    background: #edf2f7;
    color: #4a5568;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
}

.btn-success:hover {
    box-shadow: 0 4px 12px rgba(17,153,142,0.4);
}

.log-output {
    margin-top: 12px;
    padding: 12px;
    background: #1a202c;
    border-radius: 10px;
    font-family: 'SF Mono', Consolas, Monaco, monospace;
    font-size: 12px;
    color: #a0aec0;
    max-height: 150px;
    overflow-y: auto;
}

.log-output .log-entry {
    padding: 2px 0;
}

.log-output .log-time {
    color: #718096;
}

.log-output .log-success {
    color: #68d391;
}

.log-output .log-error {
    color: #fc8181;
}

.log-output .log-info {
    color: #63b3ed;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.stat-item {
    text-align: center;
    padding: 12px 6px;
    background: #f7fafc;
    border-radius: 10px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
}

.stat-value.highlight {
    color: #11998e;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: #718096;
    margin-top: 4px;
}

.recent-activity {
    margin-top: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f7fafc;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 12px;
}

.activity-item .activity-ip {
    font-family: monospace;
    color: #4a5568;
}

.activity-item .activity-source {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}

.activity-item .activity-source.native {
    background: #d1fae5;
    color: #065f46;
}

.activity-item .activity-source.browser {
    background: #dbeafe;
    color: #1e40af;
}

.howto-content {
    line-height: 1.6;
}

.step {
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.step-num {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.step-body h3 {
    font-size: 14px;
    color: #2d3748;
    margin-bottom: 4px;
}

.step-body p {
    font-size: 13px;
    color: #718096;
}

.tip {
    background: #fef3c7;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    color: #92400e;
    margin-top: 12px;
}

.footer {
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    margin-top: 20px;
}

@media (max-width: 480px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header h1 {
        font-size: 20px;
    }
}
