:root {
    --bg:           #0b1118;
    --surface:      #161e28;
    --surface2:     #1f2837;
    --surface3:     #293345;
    --text:         #e8f0ff;
    --text2:        #b0c4e0;
    --text3:        #8aa2c2;
    --accent:       #3cbef2;
    --accent-dark:  #2a9fd9;
    --accent-glow:  rgba(60, 190, 242, 0.18);
    --border:       #2c3748;
    --border-strong:#3a4759;
    --shadow-hard:  #05090f;
    --shadow-soft:  rgba(0,0,0,0.68);
    --highlight:    rgba(60,190,242,0.09);
    --danger:       #ff6b6b;
    --success:      #5fe89c;
}

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

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    min-height: 100vh;
    line-height: 1.48;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.vault-header {
    padding: 5.5rem 1.5rem 3.5rem;
    text-align: center;
    background: linear-gradient(to bottom, #161e28 0%, var(--bg) 70%);
    border-bottom: 1px solid var(--border);
    position: relative;
    isolation: isolate;
}

.logo-container {
    margin-bottom: 1.8rem;
}

.logo-container img {
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 6px 18px rgba(60,190,242,0.32));
}

.vault-title {
    font-size: clamp(2.4rem, 6vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    background: linear-gradient(90deg, #b0d8ff 0%, #ffffff 50%, #b0d8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 3px 24px rgba(60,190,242,0.38);
}

.vault-subtitle {
    margin-top: 0.75rem;
    color: var(--accent);
    font-size: 1.28rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0.95;
}

.vault-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.25rem 5rem;
}

.verification-chamber {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2.8rem 2rem;
    margin: 3.5rem 0 4rem;
    box-shadow: 
        inset 0 2px 10px var(--shadow-soft),
        0 14px 44px var(--shadow-hard),
        inset 0 -1px 0 rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
}

.verification-chamber::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 18%, var(--highlight) 0%, transparent 62%);
    pointer-events: none;
}

.verification-chamber h2 {
    color: var(--accent);
    font-size: 1.85rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.chamber-desc {
    color: var(--text2);
    margin-bottom: 2.2rem;
    font-size: 1.05rem;
}

.input-group {
    display: flex;
    gap: 1rem;
    max-width: 820px;
    margin: 0 auto;
    flex-wrap: wrap;
}

#linkInput {
    flex: 1;
    min-width: 280px;
    padding: 1.1rem 1.5rem;
    font-size: 1.08rem;
    background: #0f161e;
    border: 1px solid var(--border-strong);
    border-radius: 0.9rem;
    color: white;
    font-family: inherit;
    box-shadow: inset 0 2px 6px #05090f;
    transition: border-color 0.18s, box-shadow 0.18s;
}

#linkInput:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3.5px rgba(60,190,242,0.22);
}

.input-group button {
    padding: 0 2.4rem;
    font-size: 1.08rem;
    font-weight: 700;
    background: var(--accent);
    color: #08141f;
    border: none;
    border-radius: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.input-group button:hover {
    background: #58c9f5;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(60,190,242,0.35);
}

.validation-result {
    margin-top: 1.8rem;
    padding: 1.1rem 1.5rem;
    border-radius: 0.9rem;
    font-weight: 600;
    text-align: center;
    min-height: 3.5rem;
    background: rgba(20,30,45,0.65);
    border: 1px solid rgba(255,255,255,0.07);
    transition: all 0.25s ease;
}

.validation-result.success {
    background: rgba(60,220,140,0.16);
    border-color: rgba(60,220,140,0.38);
    color: #a0ffce;
}

.validation-result.error {
    background: rgba(255,90,90,0.16);
    border-color: rgba(255,90,90,0.38);
    color: #ffb3b3;
}

.mirror-vault {
    margin: 5rem 0 6rem;
}

.mirror-vault h2 {
    text-align: center;
    color: var(--accent);
    font-size: 2.15rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.vault-info {
    text-align: center;
    color: var(--text2);
    margin-bottom: 2.8rem;
    font-size: 1.05rem;
}

.cells-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.8rem;
}

.mirror-cell {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 
        0 10px 32px var(--shadow-hard),
        inset 0 1px 0 rgba(255,255,255,0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mirror-cell:hover {
    transform: translateY(-7px);
    box-shadow: 
        0 20px 52px rgba(0,0,0,0.62),
        0 0 0 1.5px rgba(60,190,242,0.16);
}

.cell-front {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.link-url {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 1.06rem;
    color: #d8e2ff;
    word-break: break-all;
    cursor: pointer;
    padding: 0.8rem 1.1rem;
    background: #0f161e;
    border-radius: 0.8rem;
    border: 1px solid var(--border-strong);
    transition: background 0.18s;
}

.link-url:hover {
    background: #141c26;
}

.cell-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.94rem;
    color: var(--text3);
}

.link-latency {
    color: #9cb8ff;
}

.copy-btn {
    padding: 0.6rem 1.4rem;
    background: rgba(60,190,242,0.14);
    color: var(--accent);
    border: 1px solid rgba(60,190,242,0.32);
    border-radius: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
}

.copy-btn:hover {
    background: rgba(60,190,242,0.32);
    color: white;
}

.vault-warning {
    margin-top: 2.5rem;
    padding: 1rem 1.5rem;
    background: rgba(255,140,0,0.12);
    border: 1px solid rgba(255,140,0,0.32);
    border-radius: 0.9rem;
    color: #ffcc99;
    text-align: center;
    font-weight: 500;
    font-size: 0.98rem;
}

.market-overview {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2.8rem 2rem;
    margin: 4rem 0;
    box-shadow: 0 10px 36px var(--shadow-hard);
}

.market-overview h2 {
    color: var(--accent);
    font-size: 2.05rem;
    margin-bottom: 1.6rem;
}

.market-overview h3 {
    color: #c0e0ff;
    font-size: 1.55rem;
    margin: 2.5rem 0 1rem;
    font-weight: 650;
}

.key-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.25rem;
    margin: 1.8rem 0 2.5rem;
}

.fact-item {
    background: var(--surface2);
    padding: 1.1rem;
    border-radius: 0.9rem;
    text-align: center;
    border: 1px solid var(--border);
}

.fact-label {
    display: block;
    color: var(--text3);
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
}

.fact-value {
    font-size: 1.18rem;
    font-weight: 650;
    color: var(--accent);
}

.positives-list, .considerations-list {
    list-style: none;
    margin: 1.2rem 0;
}

.positives-list li,
.considerations-list li {
    padding: 0.6rem 0 0.6rem 1.8rem;
    position: relative;
}

.positives-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.considerations-list li::before {
    content: "⚠";
    position: absolute;
    left: 0;
    color: var(--danger);
}

.status-led {
    text-align: center;
    padding: 3rem 0 2rem;
    color: var(--text2);
    font-size: 1rem;
}

.led-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.led {
    width: 14px;
    height: 14px;
    background: #22ffbb;
    border-radius: 50%;
    box-shadow: 0 0 14px #22ffbb80;
}

.led.active {
    animation: pulse 2.8s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 14px #22ffbb60; }
    50%      { box-shadow: 0 0 28px #22ffbbA0; }
}

.last-update {
    opacity: 0.78;
}

.vault-footer {
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    color: var(--text2);
    border-top: 1px solid var(--border);
    font-size: 0.94rem;
}

.notification {
    position: fixed;
    top: 1.8rem;
    right: 1.8rem;
    background: rgba(10,20,35,0.94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 1rem;
    border: 1px solid rgba(60,190,242,0.38);
    z-index: 10000;
    transform: translateX(130%);
    transition: transform 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    font-weight: 500;
}

.notification.show {
    transform: translateX(0);
}

@media (max-width: 680px) {
    .vault-header        { padding-top: 4.5rem; padding-bottom: 3rem; }
    .vault-title         { font-size: 2.4rem; }
    .input-group         { flex-direction: column; gap: 1rem; }
    .input-group button  { width: 100%; padding: 1.1rem; }
    .cells-grid          { grid-template-columns: 1fr; gap: 1.5rem; }
    .market-overview     { padding: 2rem 1.5rem; }
}

.faq-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2.8rem 2rem;
    margin: 4.5rem 0 5rem;
    box-shadow: 0 10px 36px var(--shadow-hard);
}

.faq-section h2 {
    color: var(--accent);
    font-size: 2.05rem;
    margin-bottom: 2rem;
    text-align: center;
}

.faq-item {
    margin-bottom: 1.8rem;
    padding: 1.4rem 1.8rem;
    background: var(--surface2);
    border-radius: 1rem;
    border: 1px solid var(--border);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}

.faq-item h3 {
    color: #c0e0ff;
    font-size: 1.32rem;
    margin-bottom: 0.9rem;
    font-weight: 600;
}

.faq-item p {
    color: var(--text2);
    font-size: 1.02rem;
    line-height: 1.55;
}

.key-facts-grid {
    margin: 2rem 0 3rem;
}

.fact-item {
    transition: transform 0.2s ease;
}

.fact-item:hover {
    transform: scale(1.04);
}

.positives-list li,
.considerations-list li {
    transition: color 0.18s ease;
}

.positives-list li:hover {
    color: #a0ffce;
}

.considerations-list li:hover {
    color: #ff9999;
}

.vault-header::after,
.market-overview::after,
.faq-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(60,190,242,0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.mirror-cell {
    position: relative;
}

.mirror-cell::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(60,190,242,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.mirror-cell:hover::before {
    opacity: 1;
}

.copy-btn:active {
    transform: scale(0.96);
}

#linkInput {
    transition: all 0.22s ease;
}

.input-group button:active {
    transform: scale(0.97);
}

.validation-result {
    transform: translateY(8px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.validation-result.success,
.validation-result.error {
    transform: translateY(0);
    opacity: 1;
}

.notification {
    box-shadow: 0 12px 48px rgba(0,0,0,0.65);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 680px) {
    .faq-section,
    .market-overview,
    .mirror-vault {
        padding-left: 1.4rem;
        padding-right: 1.4rem;
    }

    .vault-title {
        font-size: 2.5rem;
    }

    .vault-subtitle {
        font-size: 1.15rem;
    }
}