:root {
    --primary: #4ade80;
    --primary-hover: #22c55e;
    --secondary: #1f2937;
    --danger: #ef4444;
    --dark-bg: #0f0f0f;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-header: 'Rajdhani', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--dark-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Utilities */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: var(--primary-hover);
}

/* Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4 !important;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.9) 100%);
    z-index: 1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
}

.logo {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

.status-indicator {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Main Layout */
#app {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    min-height: 60vh;
}

.container-center {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.container-center.wide {
    max-width: 1000px;
}

h1 {
    font-family: var(--font-header);
    font-size: 3rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    line-height: 1.1;
}

h2 {
    font-family: var(--font-header);
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary);
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Input Group */
.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

input[type="text"] {
    padding: 15px 20px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 1rem;
    width: 100%;
    max-width: 500px;
    transition: 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.2);
}

.btn-primary {
    padding: 15px 30px;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-header);
    text-transform: uppercase;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 222, 128, 0.4);
}

.error {
    color: var(--danger);
    margin-top: 10px;
    font-weight: 500;
}

/* Whitelist Box */
.whitelist-box {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid var(--primary);
    padding: 20px;
    border-radius: 8px;
    margin-top: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.whitelist-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.whitelist-box h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.highlight {
    color: #fff;
    background: rgba(74, 222, 128, 0.2);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.small {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Player Card */
.player-card-full {
    display: flex;
    flex-wrap: wrap;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.card-left {
    flex: 1;
    min-width: 250px;
    padding: 30px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--border-color);
}

.avatar-container {
    position: relative;
    margin-bottom: 20px;
}

.avatar-container img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--border-color);
}

.status-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary);
    color: #000;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 700;
}

#player-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
}

.level-badge {
    background: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #ccc;
}

.card-right {
    flex: 2;
    padding: 30px;
    min-width: 300px;
}

/* Trust Score */
.trust-score-container {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.trust-score-container h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 20px;
}

.score-circle {
    width: 80px;
    height: 80px;
}

.circular-chart {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 250px;
}

.circle-bg {
    fill: none;
    stroke: #333;
    stroke-width: 2.5;
}

.circle {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    transition: stroke-dasharray 1s ease;
    stroke: var(--primary); 
}

.percentage {
    fill: #fff;
    font-family: var(--font-header);
    font-weight: bold;
    font-size: 0.5em;
    text-anchor: middle;
}

.score-info {
    flex: 1;
}

.verdict-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.risk-factors {
    font-size: 0.85rem;
    color: var(--danger);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 6px;
    text-align: center;
}

.stat-card .stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stat-card .stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-header);
}

.stat-card .stat-value.highlight {
    color: var(--primary);
}

.stats-unavailable {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

/* Stats Hint */
.stats-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.4;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
}

/* Details */
.detail-row {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .icon {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 30px;
    text-align: center;
}

.detail-content {
    display: flex;
    flex-direction: column;
}

.detail-content .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-content .value {
    font-size: 1rem;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    background: #333;
}

/* Actions */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
}

.btn-secondary {
    padding: 15px 30px;
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-muted);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-header);
    text-transform: uppercase;
}

.btn-secondary:hover {
    border-color: #fff;
    color: #fff;
}

/* Report Form */
.report-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.report-section h3 {
    margin-bottom: 20px;
    font-family: var(--font-header);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-item input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Processing */
.processing-container {
    text-align: center;
    padding: 50px 0;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #333;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.console-log {
    background: #000;
    color: #0f0;
    font-family: monospace;
    padding: 15px;
    border-radius: 6px;
    text-align: left;
    height: 150px;
    overflow-y: auto;
    font-size: 0.85rem;
    margin-top: 20px;
}

/* Success */
.success-icon {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Mobile */
@media (max-width: 768px) {
    .player-card-full {
        flex-direction: column;
    }
    
    .card-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    h1 {
        font-size: 2rem;
    }
}
