/* ============================================================
   BONEYARD-STYLE SKELETON SCREEN — DNA Softech
   Shimmer animation modelled after Atlassian Boneyard
   ============================================================ */

@keyframes boneyard-shimmer {
    0% {
        background-position: -800px 0;
    }

    100% {
        background-position: 800px 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Overlay wrapper ─────────────────────────────────────── */
.boneyard-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

    .boneyard-overlay.boneyard-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

/* ── Shimmer base ────────────────────────────────────────── */
.bone {
    background: linear-gradient( 90deg, #e2e8f0 25%, #f0f4f8 50%, #e2e8f0 75% );
    background-size: 800px 100%;
    animation: boneyard-shimmer 1.5s infinite linear;
    border-radius: 6px;
    display: block;
}

/* ── Navbar skeleton ─────────────────────────────────────── */
.boneyard-nav {
    height: 64px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.bone-brand {
    width: 130px;
    height: 30px;
}

.bone-nav-link {
    width: 60px;
    height: 14px;
}

.bone-spacer {
    flex: 1;
}

.bone-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
}

.bone-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Content wrapper ─────────────────────────────────────── */
.boneyard-content {
    flex: 1;
    padding: 40px 24px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

/* ── Hero / banner ───────────────────────────────────────── */
.boneyard-hero {
    height: 260px;
    border-radius: 16px;
    margin-bottom: 40px;
}

/* ── Product grid ────────────────────────────────────────── */
.boneyard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.boneyard-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.bone-card-img {
    height: 175px;
    width: 100%;
    border-radius: 0;
}

.bone-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bone-card-title {
    height: 17px;
    width: 80%;
}

.bone-card-sub {
    height: 13px;
    width: 55%;
}

.bone-card-price {
    height: 19px;
    width: 40%;
}

.bone-card-btn {
    height: 34px;
    width: 100%;
    border-radius: 8px;
    margin-top: 2px;
}

/* ── ≤1200px: 2 columns ─────────────────────────────────── */
@media (max-width: 1200px) {
    .boneyard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .boneyard-hero {
        height: 200px;
        margin-bottom: 28px;
    }
}

/* ── ≤768px: horizontal card rows (matches real mobile layout) ── */
@media (max-width: 768px) {
    .boneyard-content {
        padding: 12px;
    }

    .boneyard-hero {
        height: 120px;
        margin-bottom: 16px;
        border-radius: 10px;
    }

    .boneyard-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .boneyard-card {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        border-radius: 0;
        box-shadow: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 14px 4px;
        gap: 12px;
        background: #fff;
    }

        .boneyard-card:last-child {
            border-bottom: none;
        }
    /* Image thumbnail — fixed left column (matches 130×150 real card) */
    .bone-card-img {
        width: 130px;
        min-width: 130px;
        height: 150px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    /* Text body fills the right side */
    .bone-card-body {
        flex: 1;
        min-width: 0;
        padding: 4px 8px 4px 0;
        gap: 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .bone-card-title {
        height: 14px;
        width: 85%;
    }

    .bone-card-sub {
        height: 12px;
        width: 50%;
    }

    .bone-card-price {
        height: 17px;
        width: 35%;
    }

    .bone-card-btn {
        height: 32px;
        width: 90%;
        margin-top: 4px;
    }
}

/* ── Two-column layout (checkout / product detail) ───────── */
.boneyard-two-col {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}

.boneyard-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bone-line-lg {
    height: 20px;
    width: 100%;
}

.bone-line-md {
    height: 15px;
    width: 75%;
}

.bone-line-sm {
    height: 13px;
    width: 50%;
}

.bone-input {
    height: 44px;
    width: 100%;
    border-radius: 8px;
}

.bone-input-sm {
    height: 44px;
    width: 100%;
    border-radius: 8px;
}

.bone-btn-lg {
    height: 48px;
    width: 100%;
    border-radius: 10px;
    margin-top: 6px;
}

/* ── Product detail image ────────────────────────────────── */
.bone-product-img {
    height: 340px;
    width: 100%;
    border-radius: 12px;
}

/* ── Centered form (login / register / quotes / advisor) ─── */
.boneyard-form-wrap {
    max-width: 480px;
    margin: 60px auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bone-form-title {
    height: 28px;
    width: 60%;
}

.bone-form-sub {
    height: 13px;
    width: 85%;
}

/* ── Wide form (Quotes / Advisor) ───────────────────────── */
.boneyard-wide-form-wrap {
    max-width: 700px;
    margin: 50px auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ── Profile ─────────────────────────────────────────────── */
.boneyard-profile {
    max-width: 640px;
    margin: 60px auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bone-avatar-lg {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 8px;
}

/* ── Orders list ─────────────────────────────────────────── */
.boneyard-orders {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.boneyard-order-row {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.bone-order-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    flex-shrink: 0;
}

.bone-order-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

/* ── Admin dashboard ─────────────────────────────────────── */
.boneyard-admin-wrap {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
}

.boneyard-admin-title {
    height: 30px;
    width: 200px;
}

.boneyard-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 18px;
}

.boneyard-stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.bone-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.bone-stat-num {
    height: 34px;
    width: 60%;
}

.bone-stat-lbl {
    height: 13px;
    width: 80%;
}

.boneyard-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bone-table-hdr {
    height: 42px;
    width: 100%;
    border-radius: 8px;
}

.bone-table-row {
    height: 52px;
    width: 100%;
    border-radius: 8px;
}

/* ── Success page ────────────────────────────────────────── */
.boneyard-success {
    max-width: 460px;
    margin: 80px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
}

.bone-success-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
}

.bone-success-h {
    height: 30px;
    width: 70%;
}

.bone-success-p {
    height: 14px;
    width: 90%;
}

/* ── Info / text pages (Privacy / Terms) ─────────────────── */
.boneyard-info-wrap {
    max-width: 760px;
    margin: 50px auto;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.bone-info-h {
    height: 28px;
    width: 50%;
    margin-bottom: 8px;
}

.bone-info-p {
    height: 14px;
    width: 100%;
}

.bone-info-p-sm {
    height: 14px;
    width: 75%;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .boneyard-two-col {
        grid-template-columns: 1fr;
    }

    .boneyard-grid {
        grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    }

    .boneyard-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}
