@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@500;700&family=Manrope:wght@400;500;600;700;800&display=swap');

.cppinst-root {
    --cppinst-navy: #102247;
    --cppinst-navy-soft: #1d325f;
    --cppinst-violet: #7B3FE4;
    --cppinst-violet-deep: #5827b8;
    --cppinst-cream: #FFF8EE;
    --cppinst-paper: #FAFBFD;
    --cppinst-line: rgba(16, 34, 71, 0.10);
    --cppinst-line-strong: rgba(16, 34, 71, 0.18);
    --cppinst-muted: #6b7689;
    --cppinst-success: #1b9e6b;

    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 18px 10px 24px 10px;
    padding: 0;
}

.cppinst-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--cppinst-line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(16, 34, 71, 0.04), 0 24px 48px -32px rgba(16, 34, 71, 0.18);
}

.cppinst-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cppinst-violet) 0%, var(--cppinst-navy) 100%);
}

.cppinst-pattern {
    position: absolute;
    top: 0; right: 0;
    width: 280px; height: 280px;
    opacity: 0.04;
    background-image: radial-gradient(circle at 1px 1px, var(--cppinst-navy) 1px, transparent 0);
    background-size: 14px 14px;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(225deg, black, transparent 70%);
    mask-image: linear-gradient(225deg, black, transparent 70%);
}

.cppinst-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 28px 20px 28px;
    border-bottom: 1px solid var(--cppinst-line);
    position: relative;
    flex-wrap: wrap;
    gap: 12px;
}

.cppinst-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cppinst-eyebrow-mark {
    width: 8px; height: 8px;
    background: var(--cppinst-violet);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(123, 63, 228, 0.15);
}
.cppinst-eyebrow-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cppinst-violet);
}
.cppinst-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--cppinst-navy);
    margin: 6px 0 0 0;
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.cppinst-subtitle {
    font-size: 13px;
    color: var(--cppinst-muted);
    margin: 4px 0 0 0;
    font-weight: 500;
}

.cppinst-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.cppinst-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.cppinst-chip-network {
    background: rgba(123, 63, 228, 0.10);
    color: var(--cppinst-violet-deep);
    border: 1px solid rgba(123, 63, 228, 0.22);
}
.cppinst-chip-token {
    background: var(--cppinst-navy);
    color: #fff;
}
.cppinst-chip-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.cppinst-body {
    padding: 26px 28px 8px 28px;
}

.cppinst-wallet {
    background: var(--cppinst-cream);
    border: 1px solid rgba(123, 63, 228, 0.18);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 24px;
    position: relative;
}
.cppinst-wallet-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.cppinst-wallet-label-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cppinst-navy-soft);
}
.cppinst-wallet-tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--cppinst-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.cppinst-wallet-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.cppinst-wallet-addr {
    flex: 1 1 320px;
    min-width: 0;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
    font-size: 15px;
    font-weight: 600;
    color: var(--cppinst-navy);
    letter-spacing: -0.01em;
    word-break: break-all;
    line-height: 1.5;
}
.cppinst-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--cppinst-navy);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.cppinst-copy-btn:hover {
    background: var(--cppinst-violet);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -4px rgba(123, 63, 228, 0.4);
}
.cppinst-copy-btn:active {
    transform: translateY(0);
}
.cppinst-copy-btn.copied {
    background: var(--cppinst-success);
}
.cppinst-copy-icon {
    width: 14px; height: 14px;
    stroke-width: 2.4;
}

.cppinst-steps-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cppinst-muted);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.cppinst-steps-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--cppinst-line);
}

.cppinst-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}
@media (max-width: 900px) {
    .cppinst-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .cppinst-steps { grid-template-columns: 1fr; }
}
.cppinst-step {
    background: var(--cppinst-paper);
    border: 1px solid var(--cppinst-line);
    border-radius: 10px;
    padding: 18px 16px 16px 16px;
    position: relative;
    transition: all 0.2s ease;
}
.cppinst-step:hover {
    border-color: rgba(123, 63, 228, 0.35);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -16px rgba(16, 34, 71, 0.25);
}
.cppinst-step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    font-weight: 700;
    color: var(--cppinst-violet);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
}
.cppinst-step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--cppinst-navy);
    margin: 0 0 6px 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 7px;
}
.cppinst-cpgex-mark {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    display: inline-block;
}
.cppinst-step-body {
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--cppinst-muted);
    margin: 0;
}
.cppinst-step-body code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    background: rgba(16, 34, 71, 0.06);
    color: var(--cppinst-navy);
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 600;
}
.cppinst-step-body a {
    color: var(--cppinst-violet);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(123, 63, 228, 0.3);
}
.cppinst-step-body a:hover {
    border-bottom-color: var(--cppinst-violet);
}

.cppinst-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(255, 184, 0, 0.08);
    border-left: 3px solid #f5a623;
    border-radius: 0 8px 8px 0;
    margin: 0 28px 24px 28px;
}
.cppinst-note-icon {
    flex-shrink: 0;
    width: 18px; height: 18px;
    color: #c87f00;
    margin-top: 1px;
}
.cppinst-note-text {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--cppinst-navy);
    margin: 0;
}
.cppinst-note-text strong {
    font-weight: 700;
}
.cppinst-note-text code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11.5px;
    background: rgba(16, 34, 71, 0.08);
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
}

.cppinst-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--cppinst-navy);
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 16px 32px -8px rgba(16, 34, 71, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
}
.cppinst-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.cppinst-toast-icon {
    width: 16px; height: 16px;
    color: #4ade80;
}
