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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    min-height: 100vh;
    color: #c9d1d9;
    padding: 40px 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeIn 0.5s ease-in;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    color: #58a6ff;
    filter: drop-shadow(0 4px 8px rgba(88, 166, 255, 0.3));
    transition: all 0.3s ease;
}

.logo:hover .logo-icon {
    color: #3fb950;
    transform: rotate(360deg) scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(63, 185, 80, 0.4));
}

h1 {
    font-size: 36px;
    margin: 0;
    background: linear-gradient(135deg, #58a6ff 0%, #3fb950 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 16px;
    color: #8b949e;
    margin-top: 8px;
}

.input-section {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    animation: slideUp 0.6s ease-out 0.2s backwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: -10px 0 20px;
}

.secondary-btn {
    padding: 10px 14px;
    font-size: 14px;
    background: #30363d;
    color: #c9d1d9;
    border: 1px solid #30363d;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.secondary-btn:hover {
    background: #3b434d;
}

#githubInput {
    flex: 1;
    padding: 14px 18px;
    font-size: 16px;
    background: #161b22;
    border: 2px solid #30363d;
    border-radius: 8px;
    color: #c9d1d9;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#githubInput:focus {
    outline: none;
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

#githubInput::placeholder {
    color: #6e7681;
}

#analyzeBtn {
    padding: 14px 32px;
    font-size: 16px;
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.3);
    position: relative;
    overflow: hidden;
}

#analyzeBtn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

#analyzeBtn:hover::before {
    width: 300px;
    height: 300px;
}

#analyzeBtn:hover {
    background: linear-gradient(135deg, #2ea043 0%, #3fb950 100%);
    box-shadow: 0 6px 20px rgba(35, 134, 54, 0.4);
    transform: translateY(-2px);
}

#analyzeBtn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(35, 134, 54, 0.3);
}

.loading {
    text-align: center;
    font-size: 18px;
    padding: 30px;
    animation: fadeIn 0.3s ease-in;
}

#loadingText {
    font-weight: 500;
    color: #58a6ff;
    margin-bottom: 12px;
}

.results {
    margin-top: 20px;
}

.repo-item {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.4s ease-out;
    position: relative;
    overflow: hidden;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.repo-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(135deg, #58a6ff 0%, #3fb950 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.repo-item:hover {
    border-color: #58a6ff;
    box-shadow: 0 8px 24px rgba(88, 166, 255, 0.2), 0 0 0 1px rgba(88, 166, 255, 0.1);
    transform: translateY(-4px) scale(1.01);
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%);
}

.repo-item:hover::before {
    opacity: 1;
}

.repo-item:hover .repo-name a {
    color: #79c0ff;
}

.repo-item:hover .quality-score {
    transform: scale(1.05);
}

.repo-item:hover .repo-status {
    transform: translateY(-1px);
}

.repo-name {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.repo-name a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.repo-name a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #58a6ff, #3fb950);
    transition: width 0.3s ease;
}

.repo-name a:hover {
    color: #79c0ff;
}

.repo-name a:hover::after {
    width: 100%;
}

.repo-status {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.forked {
    background: linear-gradient(135deg, #1f6feb 0%, #388bfd 100%);
    color: white;
}

.forked:hover {
    box-shadow: 0 4px 8px rgba(31, 111, 235, 0.3);
}

.not-forked {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: white;
}

.not-forked:hover {
    box-shadow: 0 4px 8px rgba(35, 134, 54, 0.3);
}

.error {
    background: linear-gradient(135deg, #da3633 0%, #f85149 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(218, 54, 51, 0.3);
    border-left: 4px solid #ff7b72;
    animation: slideIn 0.4s ease-out;
    font-weight: 500;
}
.repo-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.repo-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.signal-chip {
    background: #21262d;
    border: 1px solid #30363d;
    color: #8b949e;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.signal-chip:hover {
    background: #30363d;
    border-color: #58a6ff;
    color: #c9d1d9;
    transform: translateY(-1px);
}

.star-count {
    font-size: 14px;
    color: #8b949e;
}
.suspicious {
    background: linear-gradient(135deg, #da3633 0%, #f85149 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(218, 54, 51, 0.4);
    animation: pulse 2s infinite;
}

.suspicious-reason {
    margin-top: 10px;
    font-size: 14px;
    color: #ff7b72;
    font-weight: 500;
    padding: 8px 12px;
    background: rgba(248, 81, 73, 0.1);
    border-radius: 6px;
    border-left: 3px solid #f85149;
}
.summary {
    background: linear-gradient(135deg, #21262d 0%, #161b22 100%);
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.5s ease-out;
    border-left: 4px solid #58a6ff;
}

.repo-suspicious {
    border-color: #da3633;
    border-width: 2px;
    background: linear-gradient(135deg, #1a1414 0%, #161b22 100%);
}

.repo-suspicious::before {
    background: linear-gradient(135deg, #da3633 0%, #f85149 100%);
    opacity: 1;
}

.commit-info {
    margin-top: 8px;
    font-size: 13px;
    color: #8b949e;
}
.crypto-warning {
    background: linear-gradient(135deg, #3d1f00 0%, #2d1700 100%);
    border: 2px solid #f0883e;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
    box-shadow: 0 2px 8px rgba(240, 136, 62, 0.2);
    animation: fadeIn 0.5s ease-in;
}

.crypto-warning > :first-child {
    color: #f0883e;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 15px;
}

.crypto-address {
    font-size: 13px;
    color: #c9d1d9;
    margin-top: 6px;
    word-break: break-all;
}

.crypto-address code {
    background: #161b22;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 12px;
}

.verified-on-chain {
    display: inline-block;
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: white;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 700;
    margin-left: 6px;
    box-shadow: 0 2px 4px rgba(35, 134, 54, 0.3);
    animation: pulse 2s infinite;
}
.address-type {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
    font-weight: 600;
}

.address-type.contract,
.address-type.program {
    background: linear-gradient(135deg, #8957e5 0%, #9d6ff2 100%);
    color: white;
    font-weight: 700;
}

.address-type.likely-contract {
    background: linear-gradient(135deg, #6e40c9 0%, #8957e5 100%);
    color: white;
    font-weight: 600;
}

.address-type.possibly-contract {
    background: linear-gradient(135deg, #5a32a3 0%, #6e40c9 100%);
    color: white;
    font-weight: 500;
    opacity: 0.9;
}

.address-type.wallet {
    background: linear-gradient(135deg, #f0883e 0%, #fb923c 100%);
    color: white;
    font-weight: 700;
}

.address-type.likely-wallet {
    background: linear-gradient(135deg, #d29922 0%, #f0883e 100%);
    color: white;
    font-weight: 600;
}

.address-type.possibly-wallet {
    background: linear-gradient(135deg, #b87d1a 0%, #d29922 100%);
    color: white;
    font-weight: 500;
    opacity: 0.9;
}

.address-type.unknown {
    background: #484f58;
    color: #c9d1d9;
    font-weight: 500;
}
/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #21262d 25%, #30363d 50%, #21262d 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 6px;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.skeleton-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
}

.skeleton-age {
    height: 20px;
    width: 80px;
}

.skeleton-meta {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.skeleton-badge {
    height: 28px;
    width: 80px;
    border-radius: 16px;
}

.skeleton-stars {
    height: 20px;
    width: 60px;
}

.skeleton-score {
    height: 28px;
    width: 50px;
}

.skeleton-profile {
    display: flex;
    gap: 24px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.skeleton-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-profile-details {
    flex: 1;
}

.skeleton-name {
    height: 28px;
    width: 200px;
    margin-bottom: 8px;
}

.skeleton-username {
    height: 18px;
    width: 150px;
    margin-bottom: 16px;
}

.skeleton-stats {
    display: flex;
    gap: 20px;
}

.skeleton-stat {
    height: 18px;
    width: 100px;
}

.progress-bar {
    width: 100%;
    max-width: 450px;
    height: 10px;
    background: #21262d;
    border-radius: 8px;
    margin: 16px auto 0;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #238636 0%, #3fb950 50%, #238636 100%);
    background-size: 200% 100%;
    border-radius: 8px;
    width: 0%;
    transition: width 0.3s ease;
    animation: shimmer 2s infinite;
    box-shadow: 0 0 10px rgba(35, 134, 54, 0.5);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
.copyable {
    cursor: pointer;
}

.copyable:hover {
    background: #30363d;
}

.copy-tooltip {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #238636;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 1000;
}
.quality-score {
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.quality-score:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.score-1, .score-2 {
    background: linear-gradient(135deg, #da3633 0%, #f85149 100%);
    color: white;
}

.score-3, .score-4 {
    background: linear-gradient(135deg, #f85149 0%, #ff7b72 100%);
    color: white;
}

.score-5, .score-6 {
    background: linear-gradient(135deg, #d29922 0%, #e5b038 100%);
    color: white;
}

.score-7, .score-8 {
    background: linear-gradient(135deg, #3fb950 0%, #56d364 100%);
    color: white;
}

.score-9, .score-10 {
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: white;
}
.account-profile {
    display: flex;
    gap: 24px;
    background: linear-gradient(135deg, #161b22 0%, #1c2128 100%);
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.5s ease-out;
    transition: all 0.3s ease;
}

.account-profile:hover {
    box-shadow: 0 6px 24px rgba(88, 166, 255, 0.1);
    transform: translateY(-2px);
}

.account-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid #30363d;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.account-avatar:hover {
    border-color: #58a6ff;
    box-shadow: 0 6px 20px rgba(88, 166, 255, 0.3);
    transform: scale(1.05);
}

.account-details {
    flex: 1;
}

.account-name {
    font-size: 24px;
    font-weight: 600;
}

.account-name a {
    color: #58a6ff;
    text-decoration: none;
}

.account-name a:hover {
    text-decoration: underline;
}

.account-username {
    font-size: 14px;
    color: #8b949e;
    margin-top: 4px;
}

.account-stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    font-size: 14px;
    color: #c9d1d9;
}

.repo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.repo-age {
    font-size: 13px;
    color: #8b949e;
}

.account-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-badge {
    background: linear-gradient(135deg, #1f6feb 0%, #388bfd 100%);
    color: white;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(31, 111, 235, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 2px 4px rgba(31, 111, 235, 0.3);
    }
    50% {
        box-shadow: 0 2px 8px rgba(31, 111, 235, 0.5);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 20px 16px;
    }

    h1 {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .input-section {
        flex-direction: column;
        gap: 12px;
    }

    #analyzeBtn {
        width: 100%;
        padding: 14px;
    }

    .account-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .account-stats {
        flex-direction: column;
        gap: 10px;
    }

    .repo-item {
        padding: 16px;
    }

    .repo-name {
        font-size: 18px;
    }

    .repo-meta {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 24px;
    }

    .account-avatar {
        width: 72px;
        height: 72px;
    }

    .summary {
        font-size: 14px;
        padding: 16px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0d1117;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #30363d 0%, #484f58 100%);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #484f58 0%, #6e7681 100%);
}

/* README Quality Score */
.readme-score {
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    background: linear-gradient(135deg, #1f6feb 0%, #388bfd 100%);
    color: white;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(31, 111, 235, 0.3);
}

.readme-score:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(31, 111, 235, 0.4);
}

/* Social Proof Section */
.social-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    padding: 12px;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    border: 1px solid #30363d;
    border-radius: 6px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.social-link:hover {
    transform: translateY(-2px);
}

/* Twitter/X Link */
.social-link:has-text("Twitter"), .social-link:nth-child(1):contains("🐦") {
    background: linear-gradient(135deg, #1d9bf0 0%, #2db0ff 100%);
    color: white;
    border-color: #1d9bf0;
}

.social-link:has-text("Twitter"):hover {
    box-shadow: 0 4px 12px rgba(29, 155, 240, 0.4);
}

/* Discord Link */
.social-link:contains("Discord") {
    background: linear-gradient(135deg, #5865f2 0%, #6d7aff 100%);
    color: white;
    border-color: #5865f2;
}

.social-link:contains("Discord"):hover {
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

/* Telegram Link */
.social-link:contains("Telegram") {
    background: linear-gradient(135deg, #229ed9 0%, #34b3ec 100%);
    color: white;
    border-color: #229ed9;
}

.social-link:contains("Telegram"):hover {
    box-shadow: 0 4px 12px rgba(34, 158, 217, 0.4);
}

/* Website Link */
.social-link:contains("Website") {
    background: linear-gradient(135deg, #6e40c9 0%, #8957e5 100%);
    color: white;
    border-color: #6e40c9;
}

.social-link:contains("Website"):hover {
    box-shadow: 0 4px 12px rgba(110, 64, 201, 0.4);
}

/* Simplified approach - target all social links */
.social-proof a {
    background: linear-gradient(135deg, #30363d 0%, #484f58 100%);
    color: #c9d1d9;
    border-color: #30363d;
}

.social-proof a:hover {
    background: linear-gradient(135deg, #484f58 0%, #6e7681 100%);
    border-color: #58a6ff;
    color: white;
    box-shadow: 0 4px 12px rgba(88, 166, 255, 0.3);
}

/* Audit Badge */
.audit-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    background: linear-gradient(135deg, #238636 0%, #2ea043 100%);
    color: white;
    border-radius: 6px;
    border: 2px solid #2ea043;
    box-shadow: 0 2px 6px rgba(35, 134, 54, 0.4);
    animation: pulse 2s infinite;
}

.audit-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(35, 134, 54, 0.5);
}

/* Mobile adjustments for social proof */
@media (max-width: 768px) {
    .social-proof {
        flex-direction: column;
        gap: 8px;
    }

    .social-link, .audit-badge {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* Verified Organization Badge */
.verified-org-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(135deg, #1f6feb 0%, #388bfd 100%);
    color: white;
    border-radius: 999px;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(31, 111, 235, 0.3);
    animation: pulse 2s infinite;
    vertical-align: middle;
}

.verified-org-badge:hover {
    box-shadow: 0 2px 8px rgba(31, 111, 235, 0.5);
}
