/* ============================================================
   CENTRAL HUB — PLAYGROUND / TERMINAL THEME
   ============================================================ */

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-dark: #02040a;
    --bg-panel-1: #0b1329;
    --bg-panel-2: #060d1f;
    --cyan: #22d3ee;
    --cyan-bright: #06b6d4;
    --cyan-dim: #a5f3fc;
    --cyan-soft: rgba(34, 211, 238, 0.15);
    --cyan-glow: rgba(34, 211, 238, 0.4);
    --border-cyan: rgba(34, 211, 238, 0.15);
    --border-cyan-strong: rgba(34, 211, 238, 0.35);
    --text-main: #e2e8f0;
    --text-dim: rgba(255, 255, 255, 0.4);
    --text-dimmer: rgba(255, 255, 255, 0.2);
    --text-ghost: rgba(255, 255, 255, 0.12);
    --green: #4ade80;
    --amber: #fbbf24;
    --rose: #fb7185;
    --slate: #94a3b8;
    --radius-lg: 24px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'Menlo', 'Consolas', monospace;
    --ribbon-height: 2px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    background: radial-gradient(ellipse at 30% 20%, #0b1329 0%, #02040a 100%);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
    padding-top: calc(16px + var(--ribbon-height));
    line-height: 1.6;
    overflow-y: auto;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(34, 211, 238, 0.25);
    color: #fff;
}

/* ============================================================
   TOP SCAN LINE (was: red/white ribbon)
   ============================================================ */
.top-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--ribbon-height);
    z-index: 9999;
    overflow: hidden;
    background: var(--bg-dark);
}

.ribbon-track {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--cyan) 40%,
        var(--cyan-bright) 50%,
        var(--cyan) 60%,
        transparent 100%
    );
    background-size: 50% 100%;
    animation: scanLine 4s linear infinite;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}

@keyframes scanLine {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   TERMINAL WRAPPER
   ============================================================ */
.linktree.terminal-wrapper {
    width: 100%;
    max-width: 760px;
    background: linear-gradient(145deg, var(--bg-panel-1), var(--bg-panel-2));
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border-cyan);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(34, 211, 238, 0.04);
    display: flex;
    flex-direction: column;
    overflow: visible;
    animation: fadeInTerminal 0.5s ease forwards;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.linktree.terminal-wrapper:focus-within {
    border-color: var(--border-cyan-strong);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 60px rgba(34, 211, 238, 0.07);
}

@keyframes fadeInTerminal {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TERMINAL HEADER
   ============================================================ */
.terminal-header {
    padding: 14px 22px 12px 22px;
    background: rgba(2, 4, 10, 0.7);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(34, 211, 238, 0.08);
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    user-select: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
}

.header-dots {
    display: flex;
    gap: 9px;
    align-items: center;
}

.header-dots span {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: inline-block;
    transition: opacity 0.2s;
}

.dot-red    { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green  { background: #28c840; }

.header-title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: rgba(255, 255, 255, 0.5);
    text-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
}

.header-title strong {
    background: linear-gradient(135deg, var(--cyan), var(--cyan-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* ============================================================
   TERMINAL BODY
   ============================================================ */
.terminal-body {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   PROFILE / AVATAR
   ============================================================ */
.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 0 20px;
    margin-bottom: 8px;
}

.avatar {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    border-radius: 50%;
    margin-bottom: 16px;
    background: linear-gradient(145deg, var(--bg-panel-1), var(--bg-panel-2));
    padding: 3px;
    box-shadow:
        0 0 0 1px rgba(34, 211, 238, 0.35),
        0 0 30px rgba(34, 211, 238, 0.15);
}

.avatar-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(2, 4, 10, 0.8);
    color: var(--cyan);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Rotating dashed ring (replaces the red/white flag) */
.flag-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    border-radius: 50%;
    border: 2px dashed rgba(34, 211, 238, 0.45);
    background: none;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.12);
    animation: ringSpin 12s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes ringSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.profile h1 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.2px;
    background: linear-gradient(135deg, var(--cyan), #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 6px;
    padding: 0;
    border: none;
}

.bio-description {
    font-size: 12.5px;
    font-weight: 400;
    color: var(--text-dim);
    background: none;
    border: none;
    padding: 0;
    max-width: 420px;
    line-height: 1.65;
}

.bio-description strong {
    color: var(--cyan);
    font-weight: 600;
}

/* ============================================================
   ORBIT BUTTONS (FAQ & About)
   ============================================================ */
.orbit-btn {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1.5px solid rgba(34, 211, 238, 0.45);
    background: rgba(11, 19, 41, 0.95);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.18);
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
    z-index: 5;
    padding: 0;
    line-height: 1;
    user-select: none;
    transform: translate(-50%, -50%);
    font-family: inherit;
}

.orbit-btn:hover {
    background: rgba(34, 211, 238, 0.22);
    border-color: var(--cyan);
    color: #fff;
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.45);
}

.orbit-btn:active {
    transform: translate(-50%, -50%) scale(0.92);
}

.orbit-btn .orbit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.orbit-btn .orbit-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.orbit-btn.about-btn {
    border-color: rgba(148, 163, 184, 0.5);
    color: var(--slate);
    box-shadow: 0 0 16px rgba(148, 163, 184, 0.15);
}

.orbit-btn.about-btn:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: var(--slate);
    color: #fff;
    box-shadow: 0 0 24px rgba(148, 163, 184, 0.4);
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-section {
    display: flex;
    gap: 8px;
    margin: 8px 0 20px;
}

.search-section input {
    flex: 1;
    background: rgba(2, 4, 10, 0.7);
    border: 1px solid rgba(34, 211, 238, 0.15);
    border-radius: var(--radius-sm);
    padding: 11px 16px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    caret-color: var(--cyan);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-section input::placeholder {
    color: var(--text-ghost);
    font-weight: 400;
}

.search-section input:focus {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.search-section button {
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--cyan);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
    white-space: nowrap;
}

.search-section button:hover {
    background: rgba(34, 211, 238, 0.22);
    color: #fff;
    border-color: rgba(34, 211, 238, 0.55);
    transform: translateY(-1px);
}

.search-section button:active {
    transform: translateY(0);
}

#clearBtn {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.25);
    color: var(--text-dim);
}

#clearBtn:hover {
    background: rgba(148, 163, 184, 0.2);
    color: var(--text-main);
    border-color: rgba(148, 163, 184, 0.4);
}

/* ============================================================
   DONATION LINK BUTTONS
   ============================================================ */
.links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: rgba(2, 4, 10, 0.5);
    border: 1px solid rgba(34, 211, 238, 0.08);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, transform 0.15s;
    cursor: pointer;
}

.link-btn .icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
}

.link-btn .label {
    flex: 1;
}

.link-btn .arrow {
    font-size: 1.1rem;
    opacity: 0.4;
    transition: transform 0.2s ease, opacity 0.2s;
}

.link-btn:hover {
    background: rgba(2, 4, 10, 0.85);
    border-color: rgba(34, 211, 238, 0.28);
    transform: translateY(-1px);
}

.link-btn:hover .arrow {
    transform: translateX(4px);
    opacity: 1;
    color: var(--cyan);
}

.link-btn--banana    { border-color: rgba(251, 191, 36, 0.18); }
.link-btn--banana:hover    { border-color: rgba(251, 191, 36, 0.5); }

.link-btn--sunflower { border-color: rgba(251, 191, 36, 0.22); }
.link-btn--sunflower:hover { border-color: rgba(251, 191, 36, 0.55); }

.link-btn--crypto    { border-color: rgba(74, 222, 128, 0.18); }
.link-btn--crypto:hover    { border-color: rgba(74, 222, 128, 0.5); }

.link-btn--main {
    background: rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.4);
    color: #fff;
}

.link-btn--main:hover {
    background: rgba(34, 211, 238, 0.25);
    border-color: var(--cyan);
}

.link-btn--secondary {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.3);
}

.link-btn--secondary:hover {
    background: rgba(148, 163, 184, 0.2);
    border-color: var(--slate);
}

.badge {
    background: rgba(34, 211, 238, 0.1);
    color: var(--cyan);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 6px;
    display: inline-block;
}

/* ============================================================
   RESULTS GRID & CARDS
   ============================================================ */
.results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 4px 0 20px;
    min-height: 80px;
}

.card {
    background: rgba(2, 4, 10, 0.5);
    border: 1px solid rgba(34, 211, 238, 0.08);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    animation: fadeInCard 0.25s ease-out;
}

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.card:hover {
    background: rgba(2, 4, 10, 0.8);
    border-color: rgba(34, 211, 238, 0.25);
    box-shadow: 0 4px 20px rgba(34, 211, 238, 0.06);
}

.card h3 {
    font-size: 14.5px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.card p {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 12px;
    line-height: 1.55;
}

.version-badge {
    display: inline-block;
    background: rgba(34, 211, 238, 0.1);
    color: var(--cyan);
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    border: 1px solid rgba(34, 211, 238, 0.22);
    letter-spacing: 0.4px;
    vertical-align: middle;
}

.cdn-badge {
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
    background: rgba(251, 191, 36, 0.1);
    color: var(--amber);
    font-size: 9.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 9px;
    border: 1px solid rgba(251, 191, 36, 0.28);
    border-radius: 6px;
}

.card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.28);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 11.5px;
    letter-spacing: 0.3px;
    text-decoration: none;
    color: var(--cyan);
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.card .card-link:hover {
    background: rgba(34, 211, 238, 0.22);
    color: #fff;
    border-color: var(--cyan);
    transform: translateY(-1px);
}

.card-docs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    margin-left: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: color 0.2s;
    vertical-align: middle;
}

.card-docs:hover {
    color: var(--cyan);
}

.card-docs .icon-svg {
    width: 13px;
    height: 13px;
}

.no-results {
    font-weight: 500;
    font-size: 13px;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-dim);
    background: rgba(2, 4, 10, 0.4);
    border: 1px dashed rgba(34, 211, 238, 0.12);
    border-radius: var(--radius-md);
}

.coming-soon {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 6px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    vertical-align: middle;
}

.coming-soon-desc {
    margin: 8px 0 10px;
    font-weight: 500;
    font-size: 11.5px;
    color: var(--amber);
    background: rgba(251, 191, 36, 0.06);
    padding: 6px 12px;
    border: 1px dashed rgba(251, 191, 36, 0.3);
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
}

.coming-soon-desc .icon-svg {
    width: 14px;
    height: 14px;
    color: var(--amber);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 0 8px;
    margin-top: 4px;
    border-top: 1px solid rgba(34, 211, 238, 0.08);
    flex-wrap: wrap;
}

.pagination button {
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    color: var(--cyan);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}

.pagination button:hover:not(:disabled) {
    background: rgba(34, 211, 238, 0.22);
    color: #fff;
    border-color: rgba(34, 211, 238, 0.55);
    transform: translateY(-1px);
}

.pagination button:active:not(:disabled) {
    transform: translateY(0);
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination #pageInfo {
    font-weight: 600;
    font-size: 12px;
    color: var(--cyan);
    background: transparent;
    padding: 0;
    border: none;
    letter-spacing: 0.5px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    margin-top: 24px;
    text-align: center;
    font-weight: 400;
    font-size: 11px;
    color: var(--text-dim);
    letter-spacing: 0.3px;
    border-top: 1px solid rgba(34, 211, 238, 0.08);
    padding-top: 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 12px;
}

.footer .heart {
    display: inline-block;
    color: var(--rose);
    padding: 0 2px;
    border: none;
    background: none;
    font-weight: 700;
}

.footer-demo-links a {
    color: rgba(34, 211, 238, 0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-demo-links a:hover {
    color: var(--cyan);
}

/* ============================================================
   OVERLAY MODAL
   ============================================================ */
.overlay-modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 10, 0.85);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: fadeInOverlay 0.2s ease;
}

.overlay-modal.hidden {
    display: none;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.overlay-content {
    width: 100%;
    max-width: 680px;
    max-height: 85vh;
    background: linear-gradient(145deg, var(--bg-panel-1), var(--bg-panel-2));
    border: 1.5px solid rgba(34, 211, 238, 0.3);
    border-radius: var(--radius-lg);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(34, 211, 238, 0.15);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUpOverlay 0.28s ease;
}

@keyframes slideUpOverlay {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.overlay-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
    font-family: inherit;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, background 0.2s, transform 0.2s;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.overlay-close:hover {
    color: var(--rose);
    background: rgba(251, 113, 133, 0.1);
    transform: rotate(90deg);
}

#overlayBody {
    padding: 24px 28px;
    overflow-y: auto;
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.7;
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 211, 238, 0.25) transparent;
}

#overlayBody::-webkit-scrollbar {
    width: 5px;
}
#overlayBody::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}
#overlayBody::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.25);
    border-radius: 10px;
}
#overlayBody::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 211, 238, 0.45);
}

#overlayBody h2 {
    font-size: 18px;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(34, 211, 238, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.2px;
}

#overlayBody h2 svg {
    color: var(--cyan);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#overlayBody p {
    margin: 10px 0;
    color: rgba(255, 255, 255, 0.68);
}

#overlayBody strong {
    color: #f1f5f9;
    font-weight: 600;
}

#overlayBody em {
    color: var(--cyan-dim);
    font-style: normal;
}

#overlayBody a {
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
    font-weight: 600;
}

#overlayBody a:hover {
    border-bottom-color: var(--cyan);
}

#overlayBody .faq-item {
    border-bottom: 1px solid rgba(34, 211, 238, 0.06);
    padding: 14px 0;
}

#overlayBody .faq-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

#overlayBody .faq-item strong {
    display: block;
    font-size: 13.5px;
    color: var(--cyan);
    margin-bottom: 5px;
    font-weight: 600;
}

#overlayBody .faq-item span {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12.5px;
    line-height: 1.65;
    padding: 0;
    border-left: none;
}

#overlayBody .icon-svg {
    width: 16px;
    height: 16px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 640px) {
    :root { --ribbon-height: 2px; }

    body {
        padding: 8px;
        padding-top: calc(8px + var(--ribbon-height));
    }

    .linktree.terminal-wrapper {
        border-radius: 18px;
    }

    .terminal-header {
        padding: 10px 14px 8px 14px;
        gap: 10px;
        border-radius: 18px 18px 0 0;
    }

    .header-dots span { width: 11px; height: 11px; }
    .header-title { font-size: 11.5px; text-align: left; }

    .terminal-body {
        padding: 16px 14px 20px;
    }

    .profile { padding: 24px 0 16px; }

    .profile h1 { font-size: 18px; }
    .bio-description { font-size: 11.5px; }

    .avatar {
        width: 78px;
        height: 78px;
    }

    .flag-ring {
        top: -5px;
        left: -5px;
        width: calc(100% + 10px);
        height: calc(100% + 10px);
    }

    .orbit-btn {
        width: 34px;
        height: 34px;
    }
    .orbit-btn .orbit-icon svg {
        width: 15px;
        height: 15px;
    }

    .search-section {
        flex-wrap: wrap;
        gap: 6px;
    }

    .search-section input {
        flex: 0 0 100%;
    }

    .search-section button {
        flex: 1;
        padding: 9px 8px;
        font-size: 11px;
    }

    .link-btn {
        font-size: 12px;
        padding: 11px 12px;
        gap: 8px;
    }

    .link-btn .icon { font-size: 1.2rem; width: 1.6rem; }

    .card { padding: 14px 14px; }
    .card h3 { font-size: 13.5px; }
    .card p { font-size: 12px; }

    .pagination { gap: 8px; }
    .pagination button { padding: 7px 12px; font-size: 11px; }

    .footer {
        font-size: 10px;
        flex-direction: column;
        gap: 4px;
        padding-top: 14px;
    }

    .overlay-content { border-radius: 18px; }
    #overlayBody { padding: 20px 18px; }
    #overlayBody h2 { font-size: 16px; }
    .overlay-close { font-size: 20px; width: 28px; height: 28px; top: 10px; right: 10px; }
}

@media (max-width: 380px) {
    .terminal-body { padding: 12px 10px 16px; }
    .avatar { width: 68px; height: 68px; }
    .profile h1 { font-size: 16px; }
    .orbit-btn { width: 30px; height: 30px; }
    .orbit-btn .orbit-icon svg { width: 13px; height: 13px; }
}