/* ===== Copyright Vault ===== */

/* Page layout: side menu + main */
.vault-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}

/* ---- Side nav ---- */
.vault-sidenav {
    min-width: 0;
}

.vault-sidenav nav {
    border: 1px solid #dde8ed;
    border-radius: 10px;
    overflow: hidden;
}

.vault-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #dde8ed;
    transition: background 0.15s, color 0.15s;
}

.vault-nav-item:last-child {
    border-bottom: none;
}

.vault-nav-item i {
    color: #17BEBB;
    width: 16px;
    flex-shrink: 0;
}

.vault-nav-item:hover {
    background: #f4f9fb;
    color: #165e7b;
    text-decoration: none;
}

.vault-nav-active {
    background: #165e7b;
    color: #fff !important;
    font-weight: 600;
}

.vault-nav-active i {
    color: #fff !important;
}

.vault-nav-active:hover {
    background: #0d4158;
    color: #fff !important;
}

/* Credits box below nav */
.vault-nav-credits-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 14px;
    background: #f4f9fb;
    border: 1px solid #cde8f0;
    border-radius: 8px;
    font-size: 13px;
    color: #444;
}

.vault-nav-credits-box i {
    color: #17BEBB;
    flex-shrink: 0;
}

.vault-nav-credits-box strong {
    color: #165e7b;
}

.vault-nav-credits-buy {
    display: block;
    width: 100%;
    text-align: center;
    background: #165e7b;
    color: #fff !important;
    text-decoration: none;
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
    transition: background 0.2s;
}

.vault-nav-credits-buy:hover {
    background: #0d4158;
    color: #fff !important;
    text-decoration: none;
}

/* Disclaimer */
.vault-disclaimer {
    background: #fff8e6;
    border: 1px solid #f0c040;
    border-left: 5px solid #f0c040;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 11px;
    color: #5a4200;
    line-height: 1.6;
}

.vault-disclaimer i {
    color: #c08000;
    margin-right: 4px;
}

/* ---- Main content ---- */
.vault-main {
    min-width: 0;
}

.vault-hero-row {
    margin-bottom: 28px;
}

.vault-hero-row h1 {
    margin-bottom: 14px;
}

/* Benefits panel with certificate image inside */
.vault-benefits {
    background: #f4f9fb;
    border: 1px solid #cde8f0;
    border-top: 4px solid #17BEBB;
    border-radius: 8px;
    padding: 20px 22px;
}

.vault-benefits-inner {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 24px;
    align-items: start;
}

.vault-benefits h2 {
    font-size: 20px;
    font-weight: 700;
    color: #165e7b;
    margin: 0 0 14px;
}

.vault-benefits h2 i {
    margin-right: 8px;
}

.vault-benefits ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.vault-benefits ul li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}

.vault-benefits ul li i {
    color: #17BEBB;
    margin-top: 3px;
    flex-shrink: 0;
}

.vault-benefits ul li strong {
    color: #165e7b;
}

/* Certificate image inside benefits */
.vault-benefits-cert img.certificate {
    width: 100%;
    padding: 6px;
    border: 1px solid #e94e1b;
    rotate: -3deg;
    display: block;
}


/* ---- Buy credits page ---- */
.buy-credits-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 24px 0;
    max-width: 640px;
}

.buy-credits-card {
    border: 1px solid #dde8ed;
    border-radius: 10px;
    padding: 28px 24px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.buy-credits-card-featured {
    border: 2px solid #17BEBB;
}

.buy-credits-badge {
    display: inline-block;
    background: #17BEBB;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
    width: fit-content;
}

.buy-credits-card h2 {
    font-size: 22px;
    font-weight: 700;
    color: #165e7b;
    margin: 0 0 4px;
}

.buy-credits-free {
    font-size: 14px;
    font-weight: 600;
    color: #17BEBB;
    margin: 0 0 8px;
}

.buy-credits-price {
    font-size: 36px;
    font-weight: 700;
    color: #165e7b;
    margin: 0 0 16px;
}

.buy-credits-includes {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.buy-credits-includes li {
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.buy-credits-includes li i {
    color: #17BEBB;
    flex-shrink: 0;
}

.buy-credits-btn {
    display: block;
    text-align: center;
    background-color: #165e7b;
    color: #fff !important;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.2s;
    margin-top: auto;
}

.buy-credits-btn:hover {
    background-color: #0d4158;
    color: #fff !important;
    text-decoration: none;
}

.buy-credits-stripe {
    margin: 8px 0 16px;
}

.buy-credits-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f4f9fb;
    border: 1px solid #cde8f0;
    border-radius: 8px;
    padding: 14px 16px;
    max-width: 640px;
}

.buy-credits-note i {
    color: #165e7b;
    margin-top: 3px;
    flex-shrink: 0;
}

.buy-credits-note p {
    font-size: 13px;
    color: #555;
    margin: 0;
}

/* ---- How it works page ---- */
.hiw-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 28px 0;
    border: 1px solid #dde8ed;
    border-radius: 10px;
    overflow: hidden;
}

.hiw-step {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #dde8ed;
}

.hiw-step:last-child {
    border-bottom: none;
}

.hiw-step-number {
    background: #165e7b;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    width: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hiw-step-content {
    padding: 22px 24px;
}

.hiw-step-content h2 {
    font-size: 17px;
    font-weight: 700;
    color: #165e7b;
    margin: 0 0 10px;
}

.hiw-step-content h2 i {
    color: #17BEBB;
    margin-right: 8px;
}

.hiw-step-content p {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 10px;
}

.hiw-step-content p:last-child {
    margin-bottom: 0;
}

.hiw-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.hiw-btn {
    display: inline-block;
    box-sizing: border-box;
    background-color: #165e7b;
    border: 2px solid transparent;
    color: #fff !important;
    text-decoration: none;
    padding: 9px 20px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 12px;
    transition: background 0.2s;
}

.hiw-btn:hover {
    background-color: #0d4158;
    color: #fff !important;
    text-decoration: none;
}

.hiw-btn-outline {
    background-color: transparent;
    border-color: #165e7b;
    color: #165e7b !important;
    margin-top: 0;
}

/* Inside a flex button row, the row itself supplies the top spacing —
   individual buttons must share the same margin-top or they end up
   different heights/offsets under the default align-items: stretch. */
.hiw-actions .hiw-btn,
.vault-upload-cta-actions .hiw-btn {
    margin-top: 0;
}

.hiw-btn-outline:hover {
    background-color: #165e7b;
    color: #fff !important;
}

.hiw-list {
    list-style: none;
    margin: 10px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hiw-list li {
    font-size: 14px;
    color: #444;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hiw-list li i {
    color: #17BEBB;
    flex-shrink: 0;
}

.hiw-explainer {
    background: #f4f9fb;
    border: 1px solid #cde8f0;
    border-top: 4px solid #17BEBB;
    border-radius: 8px;
    padding: 22px 24px;
    margin-bottom: 28px;
}

.hiw-explainer h2 {
    font-size: 17px;
    font-weight: 700;
    color: #165e7b;
    margin: 0 0 12px;
}

.hiw-explainer p {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 10px;
}

.hiw-explainer p:last-child {
    margin-bottom: 0;
}

.hiw-faq {
    margin-bottom: 32px;
}

.hiw-faq h2 {
    font-size: 17px;
    font-weight: 700;
    color: #165e7b;
    margin: 30px 0 0;
}

.hiw-faq-item {
    border-bottom: 1px solid #eee;
    padding: 16px 0;
}

.hiw-faq-item:last-child {
    border-bottom: none;
}

.hiw-faq-item h3 {
    font-size: 15px;
    font-weight: 700;
    color: #165e7b;
    margin: 0 0 8px !important;
}

.hiw-faq-item p {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0;
}

.hiw-cta {
    background: #165e7b;
    border-radius: 10px;
    padding: 28px 28px;
    margin-bottom: 16px;
    color: #fff;
}

.hiw-cta h2 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.hiw-cta p {
    font-size: 15px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 16px;
}

/* Override .buy-credits-btn's default teal fill here — it's the same
   color as .hiw-cta's background, so the button disappears without this. */
.hiw-cta .buy-credits-btn {
    background-color: #fff;
    color: #165e7b !important;
}

.hiw-cta .buy-credits-btn:hover {
    background-color: #eaf6f8;
    color: #0d4158 !important;
}

/* Outline button needs to flip to white on the dark .hiw-cta background */
.hiw-cta .hiw-btn-outline {
    border-color: #fff;
    color: #fff !important;
}

.hiw-cta .hiw-btn-outline:hover {
    background-color: rgba(255,255,255,0.15);
    color: #fff !important;
}

/* ---- Generic "encourage an upload" banner, reused across vault pages ---- */
.vault-upload-cta {
    background: #f4f9fb;
    border: 1px solid #cde8f0;
    border-left: 4px solid #17BEBB;
    border-radius: 8px;
    padding: 20px 22px;
    margin: 24px 0;
}

.vault-upload-cta h2 {
    font-size: 17px;
    font-weight: 700;
    color: #165e7b;
    margin: 0 0 8px;
}

.vault-upload-cta h2 i {
    color: #17BEBB;
    margin-right: 8px;
}

.vault-upload-cta p {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin: 0 0 14px;
}

.vault-upload-cta-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .vault-layout {
        grid-template-columns: 1fr;
    }
    .vault-sidenav {
        margin-top: 20px;
    }
    .vault-sidenav {
        position: static;
    }
    .vault-sidenav nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .vault-nav-section {
        border-right: none;
        border-bottom: 1px solid #dde8ed;
    }
    .vault-nav-section:nth-child(odd) {
        border-right: 1px solid #dde8ed;
    }
}

@media (max-width: 600px) {
    .vault-sidenav nav {
        grid-template-columns: 1fr;
    }
    .vault-benefits-inner {
        grid-template-columns: 1fr;
    }
    .vault-benefits-cert {
        display: none;
    }
    .buy-credits-cards {
        grid-template-columns: 1fr;
    }
}
