/*************************************/
/***** Big Store - Getting Started page **/

.appearance_page_thunk_started {
    --th-primary: #2563eb;
    --th-primary-dark: #1d4ed8;
    --th-pro: #f97316;
    --th-pro-dark: #ea580c;
    --th-success: #16a34a;
    --th-danger: #dc2626;
    --th-text: #1e293b;
    --th-muted: #64748b;
    --th-border: #e2e8f0;
    --th-surface: #ffffff;
    --th-bg: #f1f5f9;
    --th-radius: 12px;
    --th-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
    background: var(--th-bg);
}
.appearance_page_thunk_started #wpcontent {
    padding-left: 0;
}
.appearance_page_thunk_started .notice.notice-success.is-dismissible.th-theme-notice {
    display: none;
}

.wrap-th {
    margin: 0;
    padding: 0 32px 40px;
    color: var(--th-text);
    font-size: 14px;
    box-sizing: border-box;
}
.wrap-th *,
.wrap-th *::before,
.wrap-th *::after {
    box-sizing: border-box;
}
.wrap-th h2,
.wrap-th h3,
.wrap-th h4 {
    color: var(--th-text);
}

/* ---------- Header ---------- */
.th-option-area {
    margin: 0 -32px 28px;
    background: var(--th-surface);
    border-bottom: 1px solid var(--th-border);
}
.th-option-top-hdr {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    color: #fff;
    background: linear-gradient(120deg, #2355c9 0%, #2563eb 55%, #2250bd 100%);
}
.th-brand {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
}
.th-brand:focus {
    box-shadow: 0 0 0 2px #fff;
}
.th-brand img {
    width: 40px;
    height: auto;
}
.th-option-heading {
    flex: 1 1 auto;
    min-width: 0;
}
.th-option-heading h2 {
    margin: 6px 0 4px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
}
.th-option-heading p {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
}
.th-badges {
    display: flex;
    gap: 8px;
}
.th-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, .18);
    color: #fff;
}
.th-badge.free {
    background: #fff;
    color: var(--th-primary-dark);
}
.th-hdr-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.th-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.th-btn .dashicons {
    font-size: 17px;
    width: 17px;
    height: 17px;
}
.th-btn:hover {
    transform: translateY(-1px);
}
.th-btn-light {
    background: rgba(255, 255, 255, .15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
}
.th-btn-light:hover,
.th-btn-light:focus {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}
.th-btn-pro,
.ztabtn {
    background: var(--th-pro) !important;
    border-color: var(--th-pro) !important;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(249, 115, 22, .35);
}
.th-btn-pro:hover,
.th-btn-pro:focus {
    background: var(--th-pro-dark) !important;
    color: #fff !important;
}
.th-btn-block {
    display: flex;
    width: 100%;
}

.wrap-th .button {
    border-radius: 8px;
    min-height: 36px;
    padding: 0 16px;
    line-height: 34px;
    font-weight: 500;
}
.wrap-th .button-primary {
    background: var(--th-primary);
    border-color: var(--th-primary);
}
.wrap-th .button-primary:hover,
.wrap-th .button-primary:focus {
    background: var(--th-primary-dark);
    border-color: var(--th-primary-dark);
}

/* ---------- Tabs ---------- */
.th-option-bottom-hdr {
    display: flex;
    gap: 4px;
    padding: 0 24px;
    overflow-x: auto;
    scrollbar-width: none;
}
.th-option-bottom-hdr::-webkit-scrollbar {
    display: none;
}
.th-option-bottom-hdr .tablinks {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 16px 14px;
    color: var(--th-muted);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}
.th-option-bottom-hdr .tablinks .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}
.th-option-bottom-hdr .tablinks:hover {
    color: var(--th-text);
}
.th-option-bottom-hdr .tablinks.active {
    color: var(--th-primary);
    border-bottom-color: var(--th-primary);
}
.get-child::after {
    content: "New";
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #fee2e2;
    color: var(--th-danger);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* ---------- Layout ---------- */
.content-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
    align-items: start;
}
.tabcontent {
    display: none;
    animation: thFade .25s ease;
}
.tabcontent.active {
    display: block;
}
@keyframes thFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
.rp-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.th-section-title {
    margin: 28px 0 14px;
    font-size: 16px;
}

/* ---------- Cards ---------- */
.theme_link,
.sidebar-section,
.th-plugin-card,
.th-dashboard .content.free-pro {
    position: relative;
    background: var(--th-surface);
    border: 1px solid var(--th-border);
    border-radius: var(--th-radius);
    box-shadow: var(--th-shadow);
}
.theme_link {
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: box-shadow .2s ease, transform .2s ease;
}
.theme_link:hover {
    box-shadow: 0 8px 28px rgba(15, 23, 42, .1);
}
.theme_link h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
}
.theme_link p,
.theme_link li {
    margin: 0 0 10px;
    color: var(--th-muted);
    font-size: 14px;
    line-height: 1.65;
}
.th-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: auto !important;
    padding-top: 8px;
}
.th-step,
.th-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--th-primary);
    font-size: 16px;
    font-weight: 700;
}
.th-card-icon.dashicons {
    font-size: 20px;
}
.th-list {
    margin: 0 0 12px 18px;
    padding: 0;
}
.th-done {
    align-items: center;
    gap: 4px;
    color: var(--th-success);
    font-weight: 600;
}

/* Customizer quick links */
.th-quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 6px;
}
.th-quick-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--th-border);
    border-radius: 8px;
    color: var(--th-text);
    font-weight: 500;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.th-quick-links a .dashicons {
    color: var(--th-primary);
    font-size: 18px;
    width: 18px;
    height: 18px;
}
.th-quick-links a:hover,
.th-quick-links a:focus {
    border-color: var(--th-primary);
    background: #eff6ff;
    color: var(--th-primary);
}

/* ---------- Plugins ---------- */
.th-plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.th-plugin-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.th-plugin-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 1px solid var(--th-border);
    object-fit: cover;
}
.title-plugin h4 {
    margin: 14px 0 4px;
    font-size: 15px;
    font-weight: 700;
}
a.plugin-detail.thickbox.open-plugin-details-modal {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--th-muted);
    font-size: 13px;
    text-decoration: none;
}
a.plugin-detail.thickbox.open-plugin-details-modal:hover {
    color: var(--th-primary);
}
.th-plugin-card .button {
    margin-top: auto;
    align-self: flex-start;
}

/* Import demo */
.theme_link.import-demo {
    flex-direction: row;
    align-items: center;
    gap: 28px;
}
.import-image img {
    max-width: 180px;
    height: auto;
}
.import-demo .title-plugin h3 {
    margin-top: 0;
}

/* Child theme */
.theme_link.child-theme {
    flex-direction: row;
    align-items: center;
    gap: 32px;
}
.child-image img {
    max-width: 260px;
    height: auto;
    border-radius: 8px;
}

/* Share on X */
.x-gropup {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: auto;
    padding: 4px 16px 4px 8px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background .2s ease;
}
.x-gropup .x-image img {
    width: 32px;
    display: block;
}
.x-gropup:hover,
.x-gropup:active,
.x-gropup:focus {
    background: #000;
    color: #fff;
}

/* ---------- Sidebar ---------- */
.sidebar-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 52px;
}
.sidebar-section {
    padding: 20px;
}
.sidebar-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
}
.sidebar-section h3 .dashicons {
    color: var(--th-primary);
}
.sidebar-section p {
    margin: 0 0 12px;
    color: var(--th-muted);
    font-size: 13px;
    line-height: 1.6;
}
.sidebar-link {
    color: var(--th-primary);
    font-weight: 600;
    text-decoration: none;
}
.sidebar-link:hover {
    color: var(--th-primary-dark);
}
.th-pro-card {
    border: 0;
    color: #fff;
    background: linear-gradient(150deg, #0f172a 0%, #1e3a8a 100%);
}
.th-pro-card h3 {
    color: #fff;
    font-size: 17px;
}
.th-pro-card p {
    color: rgba(255, 255, 255, .78);
}
.th-pro-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 10px;
    background: rgba(249, 115, 22, .2);
    color: var(--th-pro);
    font-size: 22px;
    line-height: 40px;
    text-align: center;
}

/* ---------- Free vs Pro ---------- */
.th-dashboard .content.free-pro {
    overflow: hidden;
}
.th-dashboard .content.free-pro .table {
    width: 100%;
    border-collapse: collapse;
}
.th-dashboard .content.free-pro .table .table-head th {
    position: sticky;
    top: 0;
    padding: 18px 20px;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--th-muted);
}
.th-dashboard .content.free-pro .table tr {
    border-bottom: 1px solid var(--th-border);
}
.th-dashboard .content.free-pro .table tr.feature-row:hover {
    background: #f8fafc;
}
.th-dashboard .content.free-pro .table td {
    padding: 14px 20px;
}
.th-dashboard .content.free-pro .table .title h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}
.th-dashboard .content.free-pro .table .status {
    width: 22%;
    text-align: center;
    vertical-align: middle;
}
.th-dashboard .content.free-pro .table .status .dashicons {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 28px;
}
.th-dashboard .content.free-pro .table .status.success .dashicons {
    background: #dcfce7;
    color: var(--th-success);
}
.th-dashboard .content.free-pro .table .status.error .dashicons {
    background: #fee2e2;
    color: var(--th-danger);
}
.th-dashboard .content.free-pro .table span.info {
    display: block;
    margin-top: 4px;
    color: var(--th-muted);
    font-size: 12px;
}
.th-dashboard .content.free-pro .th-buy-pro {
    background: #fff7ed;
}
.th-dashboard .content.free-pro .upsell {
    color: var(--th-muted);
    font-weight: 600;
}
.th-dashboard .content.free-pro .components-button.is-primary {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--th-pro);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.th-dashboard .content.free-pro .components-button.is-primary:hover {
    background: var(--th-pro-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
    .content-wrap {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}
@media (max-width: 1100px) {
    .content-wrap {
        grid-template-columns: 1fr;
    }
    .sidebar-wrap {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}
@media (max-width: 782px) {
    .wrap-th {
        padding: 0 16px 32px;
    }
    .th-option-area {
        margin: 0 -16px 20px;
    }
    .th-option-top-hdr {
        flex-wrap: wrap;
        padding: 20px 16px;
    }
    .th-hdr-actions {
        width: 100%;
    }
    .th-option-bottom-hdr {
        padding: 0 8px;
    }
    .rp-two-column,
    .th-quick-links {
        grid-template-columns: 1fr;
    }
    .theme_link.import-demo,
    .theme_link.child-theme {
        flex-direction: column;
        align-items: flex-start;
    }
    .th-dashboard .content.free-pro {
        overflow-x: auto;
    }
}
