:root {
    --bg-color: #121212;
    --panel-bg: #1e1e1e;
    --border-color: #333333;

    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;

    --header-blue: #6b8fd4;
    --btn-blue: #5579c6;
    --btn-hover: #4562a2;

    --success-green: #67c251;
    --success-bg: rgba(103, 194, 81, 0.1);

    --warning-yellow: #eab308;
    --error-red: #ef4444;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 2rem;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.search-header {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.header-title {
    background-color: var(--header-blue);
    color: #fff;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

.search-box {
    display: flex;
    padding: 16px;
    gap: 12px;
}

.search-box input {
    flex: 1;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 1.1rem;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: var(--header-blue);
}

.search-box button {
    background: var(--btn-blue);
    color: white;
    border: none;
    padding: 0 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-box button:hover {
    background: var(--btn-hover);
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--header-blue);
}

.summary-item.warning {
    color: var(--warning-yellow);
    align-items: flex-start;
}

.summary-item.warning p {
    margin: 0;
    font-size: 0.95rem;
}

.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-check {
    background: var(--success-green);
    border: 3px solid rgba(103, 194, 81, 0.3);
}

.icon-warning {
    background: transparent;
}

.icon-circle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chain-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.cert-card-wrap {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.cert-icon-lockup {
    position: relative;
    width: 80px;
    height: 100px;
    background: linear-gradient(135deg, #f0f0f0, #d0d0d0);
    border-radius: 4px;
    border: 1px solid #999;
    box-shadow: inset 2px 2px 5px rgba(255, 255, 255, 0.7), 2px 2px 5px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-icon-lockup::before {
    content: '';
    position: absolute;
    top: -1px;
    right: -1px;
    width: 25px;
    height: 25px;
    background: var(--bg-color);
    border-bottom: 1px solid #999;
    border-left: 1px solid #999;
    border-bottom-left-radius: 4px;
}

.cert-title {
    position: absolute;
    top: 5px;
    left: 8px;
    font-size: 0.8rem;
    font-weight: bold;
    color: #000;
}

.cert-lock-img {
    width: 40px;
    height: auto;
    margin-top: 15px;
}

.cert-status-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: var(--success-green);
    border-radius: 50%;
    border: 2px solid var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-status-badge svg {
    width: 14px;
    height: 14px;
    stroke: white;
    stroke-width: 3;
    fill: none;
}

.chain-arrow {
    width: 80px;
    display: flex;
    justify-content: center;
    margin: -10px 0;
}

.chain-arrow svg {
    fill: #a2d246;
    width: 30px;
    height: 40px;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.5));
}

.cert-details {
    flex: 1;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding-top: 10px;
}

.cert-details strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-right: 4px;
}

.cert-details div {
    margin-bottom: 3px;
}

.hidden {
    display: none !important;
}

.error-msg {
    margin-top: 20px;
    padding: 16px;
    background: rgba(239, 68, 68, 0.1);
    border-left: 4px solid var(--error-red);
    color: #ffb3b3;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--header-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

#loading {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 40px;
}

.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}