.avatar img {
    margin-left: auto;
    margin-right: auto;
    display: block;
    width: 200px;
}

span.header__inner > a {
    text-decoration: none;
}

span.logo__cursor {
    visibility: visible;
    background-color: #00f15a;
    animation-duration: 2s;
}

@font-face {
  font-family: 'Inter', Helvetica, Arial, Sans-Serif;;
  font-style:  normal;
  font-display: auto;
  font-weight: 400;
  src: local('Inter'),
       url("../fonts/Inter-UI-Regular.woff2") format("woff2"),
       url("../fonts/Inter-UI-Regular.woff") format("woff");
  font-display: swap;
}

.profile .terminal-card {
    margin-top: 1.4rem;
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.08), transparent 35%), #0d101a;
    border: none;
    box-shadow: 0 18px 48px -24px rgba(0, 0, 0, 0.85), 0 12px 32px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 620px;
    text-align: left;
    transition: transform 0.28s ease, max-width 0.28s ease, box-shadow 0.28s ease, opacity 0.22s ease;
    position: relative;
}

.dark-theme .profile .terminal-card {
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 18px 48px -24px rgba(0, 0, 0, 0.75), 0 12px 32px rgba(0, 0, 0, 0.35);
}

.profile .terminal-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #131a2b, #0f1322);
    color: #d8e4ff;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.profile .terminal-card__dot {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    opacity: 0.85;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
    border: none;
    padding: 0;
    cursor: default !important;
    transition: transform 0.18s ease, opacity 0.18s ease;
    appearance: none;
}

.profile .terminal-card__dot:hover {
    cursor: default !important;
}

.profile .terminal-card__dot:focus-visible {
    outline: 2px solid #9bdfff;
    outline-offset: 2px;
}

.profile .terminal-card__dot:hover {
    transform: scale(1.05);
    opacity: 1;
}

.profile .terminal-card__dot--red {
    background: #ff5f56;
}

.profile .terminal-card__dot--amber {
    background: #ffbd2e;
}

.profile .terminal-card__dot--green {
    background: #27c93f;
}

.profile .terminal-card__title {
    margin-left: auto;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.12em;
}

.profile .terminal-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px 20px;
    font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    color: #e8edf7;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}

.profile .terminal-card__prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 1.05rem;
}

.profile .terminal-card__output {
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.5;
    min-height: 54px;
    max-height: 260px;
    overflow-y: auto;
    flex: 1;
}

.profile .terminal-card__line {
    margin: 4px 0;
    word-break: break-word;
}

.profile .terminal-card__line--command {
    color: #9ddfff;
}

.profile .terminal-card__line--muted {
    color: #94a3b8;
}

.profile .terminal-card__line--error {
    color: #fca5a5;
}

.profile .terminal-card__input-row {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile .terminal-card__input {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #e5e7eb;
    font-family: "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    outline: none;
    min-height: 20px;
    cursor: text;
    flex: 1;
    text-align: left;
}
.profile .terminal-card__path {
    color: #7dd3fc;
    font-weight: 700;
}

.profile .terminal-card__caret {
    color: #34d399;
    font-weight: 800;
}

.profile .terminal-card__command {
    color: #f8fafc;
    font-weight: 700;
    text-shadow: 0 0 14px rgba(52, 211, 153, 0.25);
}

.profile .terminal-card__message {
    display: none;
    margin-top: 12px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile .terminal-card.is-maximized {
    width: 100%;
    max-width: none;
    transform: scale(1.012);
    box-shadow: 0 18px 48px -14px rgba(0, 0, 0, 0.85), 0 18px 44px rgba(0, 0, 0, 0.35);
}

.profile .terminal-card.is-maximized .terminal-card__message {
    display: block;
    opacity: 1;
}

.profile .terminal-card.is-minimized {
    max-width: 620px;
    transform: none;
}

.profile .terminal-card.is-minimized .terminal-card__body,
.profile .terminal-card.is-minimized .terminal-card__message {
    display: none;
    opacity: 0;
}

.profile .terminal-card.is-minimizing {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    pointer-events: none;
}

.profile .terminal-card.is-showing {
    animation: terminal-pop-in 0.26s ease;
}

.profile .terminal-card.is-closed {
    animation: terminal-vanish 0.32s ease forwards;
    pointer-events: none;
}

.profile .terminal-card.is-hidden {
    display: none;
}

.profile .terminal-card__restore {
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #b3e1ff;
    background: linear-gradient(135deg, #67e8f9, #3b82f6);
    color: #061320;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.92rem;
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    cursor: default !important;
    appearance: none;
    text-decoration: none;
}

.profile .terminal-card__restore.is-dot {
    width: 28px;
    height: 28px;
    min-width: 0;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: #27c93f;
    box-shadow: 0 0 0 4px rgba(39, 201, 63, 0.15), 0 8px 18px rgba(0, 0, 0, 0.35);
    color: transparent;
    font-size: 0;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile .terminal-card__restore.is-dot .terminal-card__restore-dots {
    display: none;
}

.profile .terminal-card__restore.is-dot:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 0 4px rgba(39, 201, 63, 0.25), 0 10px 20px rgba(0, 0, 0, 0.45);
}

.profile .terminal-card__restore[hidden] {
    display: none;
}

.profile .terminal-card__restore:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.28);
    cursor: default !important;
}

.profile .terminal-card__restore:focus-visible {
    outline: 2px solid #9bdfff;
    outline-offset: 3px;
}

.profile .terminal-card__restore-dots {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.profile .terminal-card__restore-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
}

.profile .terminal-card__restore-dot--red {
    background: #ff5f56;
}

.profile .terminal-card__restore-dot--amber {
    background: #ffbd2e;
}

.profile .terminal-card__restore-dot--green {
    background: #27c93f;
}

@keyframes terminal-pop-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes terminal-vanish {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-12px) scale(0.95);
    }
}

@media (max-width: 640px) {
    .profile .terminal-card__prompt {
        white-space: normal;
        word-break: break-word;
    }
}

@media (max-width: 900px) {
    .profile .terminal-card__header {
        padding: 14px 18px;
    }

    .profile .terminal-card__dot {
        width: 16px;
        height: 16px;
    }

    .profile .terminal-card__body {
        padding: 20px 22px 22px;
    }

    .profile .terminal-card__prompt {
        font-size: 1.12rem;
    }

    .profile .terminal-card__output {
        font-size: 1.05rem;
    }
}
