@font-face {
    font-family: 'IBM VGA8';
    src: local('IBM VGA8'), local('IBM VGA8 Regular');
}

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

:root {
    --win95-silver: #c0c0c0;
    --win95-white: #ffffff;
    --win95-dark: #808080;
    --win95-black: #000000;
    --win95-blue: #000080;
    --win95-light: #dfdfdf;
    --win95-bg: #008080;
    --win95-green: #008000;
    --font-main: 'IBM VGA8', 'MS Sans Serif', 'Pixel', sans-serif;
}

body {
    background: var(--win95-bg);
    font-family: var(--font-main);
    font-size: 13px;
    min-height: 100vh;
    padding: 20px;
}

.desktop {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.window {
    background: var(--win95-silver);
    border: 2px solid;
    border-color: var(--win95-white) var(--win95-black) var(--win95-black) var(--win95-white);
    box-shadow: inset 1px 1px 0 var(--win95-white), inset -1px -1px 0 var(--win95-dark);
}

.title-bar {
    background: var(--win95-blue);
    padding: 3px 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.title-bar-text {
    color: var(--win95-white);
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.title-bar-controls {
    display: flex;
    gap: 2px;
}

.title-bar-btn {
    width: 16px;
    height: 14px;
    background: var(--win95-silver);
    border: 1px solid;
    border-color: var(--win95-white) var(--win95-black) var(--win95-black) var(--win95-white);
    box-shadow: inset 1px 1px 0 var(--win95-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    color: var(--win95-black);
    cursor: pointer;
    font-family: var(--font-main);
}

.title-bar-btn:active {
    border-color: var(--win95-black) var(--win95-white) var(--win95-white) var(--win95-black);
    box-shadow: none;
}

.window-body {
    padding: 12px;
}

.about-section {
    background: var(--win95-white);
    border: 2px solid;
    border-color: var(--win95-dark) var(--win95-white) var(--win95-white) var(--win95-dark);
    box-shadow: inset 1px 1px 0 var(--win95-dark);
    padding: 12px;
    margin-bottom: 12px;
}

.about-section h1 {
    font-size: 16px;
    margin-bottom: 4px;
}

.about-section p {
    font-size: 11px;
    line-height: 1.4;
    color: #444;
}

.about-text {
    flex: 1;
}

.about-text h1 {
    font-size: 16px;
    margin-bottom: 4px;
}

.about-text p {
    font-size: 11px;
    line-height: 1.4;
    color: #444;
}

.links-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.win95-btn {
    background: var(--win95-silver);
    border: 2px solid;
    border-color: var(--win95-white) var(--win95-black) var(--win95-black) var(--win95-white);
    box-shadow: inset 1px 1px 0 var(--win95-white), inset -1px -1px 0 var(--win95-dark);
    padding: 4px 12px;
    font-family: var(--font-main);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: var(--win95-black);
}

.win95-btn:active {
    border-color: var(--win95-black) var(--win95-white) var(--win95-white) var(--win95-black);
    box-shadow: none;
    padding: 5px 11px 3px 13px;
}

.section-title {
    font-size: 11px;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.inset-panel {
    background: var(--win95-white);
    border: 2px solid;
    border-color: var(--win95-dark) var(--win95-white) var(--win95-white) var(--win95-dark);
    box-shadow: inset 1px 1px 0 var(--win95-dark);
    padding: 8px;
    margin-bottom: 10px;
}

.toolbar {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
    padding: 4px;
    background: var(--win95-silver);
    border-bottom: 1px solid var(--win95-dark);
}

.toolbar-btn {
    background: var(--win95-silver);
    border: 1px solid;
    border-color: transparent transparent var(--win95-dark) transparent;
    padding: 2px 8px;
    font-family: var(--font-main);
    font-size: 11px;
    cursor: pointer;
    color: #444;
}

.toolbar-btn:hover {
    border-color: var(--win95-white) var(--win95-dark) var(--win95-dark) var(--win95-white);
}

.toolbar-btn:active, .toolbar-btn.active {
    border-color: var(--win95-dark) var(--win95-white) var(--win95-white) var(--win95-dark);
    background: var(--win95-light);
}

.contributions-list, .wallet-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 350px;
    overflow-y: auto;
}

.contribution-row {
    display: flex;
    gap: 8px;
    padding: 4px 6px;
    font-size: 11px;
    background: var(--win95-white);
    border: 1px solid var(--win95-dark);
    align-items: center;
}

.contribution-row:hover {
    background: var(--win95-blue);
    color: var(--win95-white);
}

.contribution-row:hover a {
    color: var(--win95-white);
}

.pr-id {
    font-family: var(--font-main);
    font-size: 10px;
    color: #666;
    min-width: 45px;
}

.contribution-row:hover .pr-id {
    color: #ccc;
}

.pr-status {
    font-size: 9px;
    padding: 1px 4px;
    border: 1px solid;
    font-weight: bold;
    min-width: 50px;
    text-align: center;
}

.pr-status.merged {
    background: #c0c0c0;
    border-color: var(--win95-dark) var(--win95-white) var(--win95-white) var(--win95-dark);
    color: var(--win95-black);
}

.pr-status.open {
    background: var(--win95-white);
    border-color: var(--win95-black);
    color: var(--win95-black);
}

.contribution-row:hover .pr-status {
    background: var(--win95-white);
    color: var(--win95-blue);
    border-color: var(--win95-white);
}

.pr-repo {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pr-repo a {
    text-decoration: none;
    color: var(--win95-black);
}

.pr-lang {
    font-size: 10px;
    min-width: 70px;
    text-align: right;
    color: #666;
}

.contribution-row:hover .pr-lang {
    color: #ccc;
}

.wallet-card {
    background: var(--win95-silver);
    border: 2px solid;
    border-color: var(--win95-white) var(--win95-black) var(--win95-black) var(--win95-white);
    box-shadow: inset 1px 1px 0 var(--win95-white), inset -1px -1px 0 var(--win95-dark);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wallet-card:active {
    border-color: var(--win95-black) var(--win95-white) var(--win95-white) var(--win95-black);
    box-shadow: none;
}

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

.wallet-coin {
    font-size: 12px;
    font-weight: bold;
}

.wallet-network {
    font-size: 10px;
    color: #444;
}

.wallet-status {
    font-size: 9px;
    padding: 1px 4px;
    background: #afa;
    border: 1px solid #0a0;
    color: #0a0;
}

.wallet-address {
    background: var(--win95-white);
    border: 1px inset var(--win95-dark);
    padding: 4px 6px;
    font-family: var(--font-main);
    font-size: 10px;
    word-break: break-all;
    color: #444;
}

.wallet-actions {
    display: flex;
    gap: 6px;
}

.wallet-actions .win95-btn {
    padding: 3px 10px;
    font-size: 10px;
}

.wallet-actions .win95-btn.copied {
    background: #afa;
}

.encrypted-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    padding: 2px 6px;
    background: var(--win95-silver);
    border: 2px solid;
    border-color: var(--win95-dark) var(--win95-white) var(--win95-white) var(--win95-dark);
    box-shadow: inset 1px 1px 0 var(--win95-dark);
    font-size: 10px;
    font-weight: bold;
}

.encrypted-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #0a0;
    border-radius: 50%;
    border: 1px solid #080;
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 8px;
}

.archive-card {
    background: var(--win95-silver);
    border: 2px solid;
    border-color: var(--win95-white) var(--win95-black) var(--win95-black) var(--win95-white);
    box-shadow: inset 1px 1px 0 var(--win95-white), inset -1px -1px 0 var(--win95-dark);
    padding: 8px;
    text-decoration: none;
    color: var(--win95-black);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.archive-card:active {
    border-color: var(--win95-black) var(--win95-white) var(--win95-white) var(--win95-black);
    box-shadow: none;
}

.archive-card .card-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.archive-card h3 {
    font-size: 11px;
    font-weight: bold;
}

.archive-card p {
    font-size: 10px;
    color: #444;
}

.archive-card .card-url {
    font-size: 9px;
    color: #666;
    margin-top: auto;
}

.archive-card .card-status {
    font-size: 9px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.archive-card .card-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #0a0;
    border-radius: 50%;
    border: 1px solid #080;
}

.warning {
    color: #c00;
    border-top: 1px dashed var(--win95-dark);
    padding-top: 6px;
    margin-top: 6px;
    font-size: 10px;
}

.status-bar {
    margin-top: 8px;
    padding: 2px 4px;
    font-size: 11px;
    color: #444;
    display: flex;
    gap: 12px;
    border: 1px solid;
    border-color: var(--win95-dark) var(--win95-white) var(--win95-white) var(--win95-dark);
    box-shadow: inset 1px 1px 0 var(--win95-dark);
}

.status-bar-section {
    padding: 2px 6px;
}

.footer-links {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    font-size: 11px;
}

.footer-links a {
    color: var(--win95-blue);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

::-webkit-scrollbar {
    width: 16px;
    height: 16px;
}

::-webkit-scrollbar-track {
    background: var(--win95-white);
    border: 1px solid var(--win95-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--win95-silver);
    border: 2px solid;
    border-color: var(--win95-white) var(--win95-dark) var(--win95-dark) var(--win95-white);
    box-shadow: inset 1px 1px 0 var(--win95-light);
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .about-section {
        flex-direction: column;
        text-align: center;
    }

    .links-group {
        justify-content: center;
    }

    .toolbar {
        flex-wrap: wrap;
    }

    .archive-grid {
        grid-template-columns: 1fr;
    }

    .contribution-row {
        flex-wrap: wrap;
    }
}
